\documentclass{article}
\usepackage{a4wide}
\usepackage{adjustbox}
\usepackage{fancyhdr}
\usepackage{tikz}
\usepackage{ifthen}
\usetikzlibrary{automata}
\usepackage{datetime}
\lhead{./certificates/ctxta1-ctxta2/sim-4169.tex}
\rhead{09:11:48.203 on 2025-04-03}
\fancyfoot{}
\begin{document}
\newif\ifntiny
%\ntinyfalse
\ntinytrue
\thispagestyle{fancy}
\begin{center}
\maxsizebox{!}{0.475\textheight}{
\minsizebox{\textwidth}{!}{
\begin{tabular}{@{}c@{}}
% node count = 28
\begin{tikzpicture}[rotate = 0]
%\begin{tikzpicture}[rotate = 90]
\tikzset{initial text=$ $}

\node[accepting, state] at (13,-2) (n1) {$p?$\,\ifntiny{\tiny 4190}\fi};
\node[accepting, state] at (11,-10) (n0n1n1n0n1) {$p?$\,\ifntiny{\tiny 4273}\fi};
\node[accepting, state] at (4,-16) (n0n0n0n1n1n0n1n0) {$p?$\,\ifntiny{\tiny 4272}\fi};
\node[accepting, state] at (13,-4) (n1n0) {$p?$\,\ifntiny{\tiny 4189}\fi};
\node[state] at (1,-10) (n0n0n0n1n0) {$p?$\,\ifntiny{\tiny 5109}\fi};
\node[accepting, state] at (13,-8) (n1n0n1n0) {$p?$\,\ifntiny{\tiny 4186}\fi};
\node[accepting, state] at (3,-18) (n0n0n0n1n1n0n1n0n0) {$p!$\,\ifntiny{\tiny 4270}\fi};
\node[state] at (10,-4) (n0n1) {$\cup$\,\ifntiny{\tiny 5115}\fi};
\node[accepting, state] at (6,-6) (n0n0n1) {$p?$\,\ifntiny{\tiny 4254}\fi};
\node[state] at (6,-2) (n0) {$p?$\,\ifntiny{\tiny 5116}\fi};
\node[accepting, state] at (10,-14) (n0n1n1n0n1n0n0) {$p!$\,\ifntiny{\tiny 4270}\fi};
\node[accepting, state] at (4,-14) (n0n0n0n1n1n0n1) {$p?$\,\ifntiny{\tiny 4273}\fi};
\node[accepting, state] at (6,-10) (n0n0n1n1n0) {$p?$\,\ifntiny{\tiny 4247}\fi};
\node[accepting, state] at (5,-8) (n0n0n1n0) {$p!$\,\ifntiny{\tiny 4240}\fi};
\node[accepting, state] at (7,-8) (n0n0n1n1) {$p!$\,\ifntiny{\tiny 4253}\fi};
\node[accepting, state] at (14,-6) (n1n0n1) {$p!$\,\ifntiny{\tiny 4188}\fi};
\node[state] at (8,-6) (n0n1n0) {$p?$\,\ifntiny{\tiny 5114}\fi};
\node[accepting, state] at (10,-6) (n0n1n1) {$p?$\,\ifntiny{\tiny 4275}\fi};
\node[accepting, state] at (11,-12) (n0n1n1n0n1n0) {$p?$\,\ifntiny{\tiny 4272}\fi};
\node[accepting, state] at (3,-12) (n0n0n0n1n1n0) {$p!$\,\ifntiny{\tiny 4274}\fi};
\node[initial, state] at (7,0) (n) {$\cup$\,\ifntiny{\tiny 5117}\fi};
\node[state] at (2,-6) (n0n0n0) {$p?$\,\ifntiny{\tiny 5111}\fi};
\node[state] at (4,-4) (n0n0) {$\cup$\,\ifntiny{\tiny 5112}\fi};
\node[accepting, state] at (10,-8) (n0n1n1n0) {$p!$\,\ifntiny{\tiny 4274}\fi};
\node[accepting, state] at (3,-10) (n0n0n0n1n1) {$p?$\,\ifntiny{\tiny 4275}\fi};
\node[accepting, state] at (7,-10) (n0n0n1n1n1) {$p?$\,\ifntiny{\tiny 4252}\fi};
\node[accepting, state] at (12,-6) (n1n0n0) {$p!$\,\ifntiny{\tiny 4182}\fi};
\node[state] at (3,-8) (n0n0n0n1) {$\cup$\,\ifntiny{\tiny 5110}\fi};

\draw[->, thick] (n) edge [near start, left] node {} (n0);
\draw[->, thick] (n) edge [near start, left] node {} (n1);
\draw[->, thick] (n0) edge [near start, left] node {a} (n0n0);
\draw[->, thick] (n0) edge [near start, left] node {b} (n0n1);
\draw[->, thick] (n0n0) edge [near start, left] node {} (n0n0n0);
\draw[->, thick] (n0n0) edge [near start, left] node {} (n0n0n1);
\draw[->, thick] (n0n0n0) edge [near start, right, bend right] node {a} (n0n0);
\draw[->, thick] (n0n0n0) edge [near start, left] node {b} (n0n0n0n1);
\draw[->, thick] (n0n0n0n1) edge [near start, left] node {} (n0n0n0n1n0);
\draw[->, thick] (n0n0n0n1) edge [near start, left] node {} (n0n0n0n1n1);
\draw[->, thick] (n0n0n0n1n0) edge [near start, right, bend right] node {b} (n0n0n0n1);
\draw[->, thick] (n0n0n0n1n1) edge [near start, left] node {b} (n0n0n0n1n1n0);
\draw[->, thick] (n0n0n0n1n1n0) edge [near start, right, bend right] node {x} (n0n0n0n1n1);
\draw[->, thick] (n0n0n0n1n1n0) edge [near start, left] node {y} (n0n0n0n1n1n0n1);
\draw[->, thick] (n0n0n0n1n1n0n1) edge [near start, left] node {a} (n0n0n0n1n1n0n1n0);
\draw[->, thick] (n0n0n0n1n1n0n1n0) edge [near start, left] node {a} (n0n0n0n1n1n0n1n0n0);
\draw[->, thick] (n0n0n0n1n1n0n1n0) edge [near start, left, bend left] node {b} (n0n0n0n1n1n0);
\draw[->, thick] (n0n0n0n1n1n0n1n0n0) edge [near start, right, bend right] node {x} (n0n0n0n1n1n0n1n0);
\draw[->, thick] (n0n0n1) edge [near start, left] node {a} (n0n0n1n0);
\draw[->, thick] (n0n0n1) edge [near start, left] node {b} (n0n0n1n1);
\draw[->, thick] (n0n0n1n0) edge [near start, right, bend right] node {x} (n0n0n1);
\draw[->, thick] (n0n0n1n1) edge [near start, left] node {x} (n0n0n1n1n0);
\draw[->, thick] (n0n0n1n1) edge [near start, left] node {y} (n0n0n1n1n1);
\draw[->, thick] (n0n0n1n1n0) edge [near start, right, bend right] node {b} (n0n0n1n1);
\draw[->, thick] (n0n0n1n1n1) edge [near start, left, bend left] node {a} (n0n0n1);
\draw[->, thick] (n0n1) edge [near start, left] node {} (n0n1n0);
\draw[->, thick] (n0n1) edge [near start, left] node {} (n0n1n1);
\draw[->, thick] (n0n1n0) edge [near start, right, bend right] node {b} (n0n1);
\draw[->, thick] (n0n1n1) edge [near start, left] node {b} (n0n1n1n0);
\draw[->, thick] (n0n1n1n0) edge [near start, right, bend right] node {x} (n0n1n1);
\draw[->, thick] (n0n1n1n0) edge [near start, left] node {y} (n0n1n1n0n1);
\draw[->, thick] (n0n1n1n0n1) edge [near start, left] node {a} (n0n1n1n0n1n0);
\draw[->, thick] (n0n1n1n0n1n0) edge [near start, left] node {a} (n0n1n1n0n1n0n0);
\draw[->, thick] (n0n1n1n0n1n0) edge [near start, left, bend left] node {b} (n0n1n1n0);
\draw[->, thick] (n0n1n1n0n1n0n0) edge [near start, right, bend right] node {x} (n0n1n1n0n1n0);
\draw[->, thick] (n1) edge [near start, left] node {a} (n1n0);
\draw[->, thick] (n1n0) edge [near start, left] node {a} (n1n0n0);
\draw[->, thick] (n1n0) edge [near start, left] node {b} (n1n0n1);
\draw[->, thick] (n1n0n0) edge [near start, right, bend right] node {x} (n1n0);
\draw[->, thick] (n1n0n1) edge [near start, left] node {x} (n1n0n1n0);
\draw[->, thick] (n1n0n1) edge [near start, left, bend left] node {y} (n1);
\draw[->, thick] (n1n0n1n0) edge [near start, right, bend right] node {b} (n1n0n1);

\end{tikzpicture}
\end{tabular}}}
\end{center}
\end{document}
