\documentclass{article}
\usepackage{a4wide}
\usepackage{adjustbox}
\usepackage{fancyhdr}
\usepackage{tikz}
\usepackage{ifthen}
\usetikzlibrary{automata}
\usepackage{datetime}
\lhead{./certificates/ex1-ok-loop-ex2-ok-loop/sim-13679.tex}
\rhead{08:49:43.140 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 = 36
\begin{tikzpicture}[rotate = 0]
%\begin{tikzpicture}[rotate = 90]
\tikzset{initial text=$ $}

\node[accepting, state] at (9,-4) (n2n0) {$p?$\,\ifntiny{\tiny 13705}\fi};
\node[state] at (6,-4) (n1n0) {$\cup$\,\ifntiny{\tiny 14080}\fi};
\node[accepting, state] at (7,-18) (n1n0n1n0n0n0n0n0n0) {$p?$\,\ifntiny{\tiny 13881}\fi};
\node[accepting, state] at (7,-20) (n1n0n1n0n0n0n0n0n0n0) {$p!$\,\ifntiny{\tiny 13880}\fi};
\node[accepting, state] at (3,-20) (n0n0n1n0n1n0n0n0n0n0) {$p?$\,\ifntiny{\tiny 13882}\fi};
\node[state] at (5,-6) (n1n0n0) {$p?$\,\ifntiny{\tiny 14079}\fi};
\node[state] at (2,-2) (n0) {$p?$\,\ifntiny{\tiny 14069}\fi};
\node[accepting, state] at (7,-10) (n1n0n1n0n0) {$p?$\,\ifntiny{\tiny 13885}\fi};
\node[accepting, state] at (9,-2) (n2) {$p?$\,\ifntiny{\tiny 13706}\fi};
\node[state] at (5,-8) (n1n0n0n0) {$\cup$\,\ifntiny{\tiny 14078}\fi};
\node[accepting, state] at (9,-12) (n2n0n0n0n0n0) {$p?$\,\ifntiny{\tiny 13701}\fi};
\node[accepting, state] at (9,-14) (n2n0n0n0n0n0n0) {$p!$\,\ifntiny{\tiny 13700}\fi};
\node[accepting, state] at (3,-10) (n0n0n1n0n1) {$p?$\,\ifntiny{\tiny 13887}\fi};
\node[state] at (6,-2) (n1) {$p?$\,\ifntiny{\tiny 14081}\fi};
\node[accepting, state] at (3,-24) (n0n0n1n0n1n0n0n0n0n0n0n0) {$p!$\,\ifntiny{\tiny 13880}\fi};
\node[accepting, state] at (9,-16) (n2n0n0n0n0n0n0n1) {$p?$\,\ifntiny{\tiny 13707}\fi};
\node[state] at (2,-8) (n0n0n1n0) {$\cup$\,\ifntiny{\tiny 14066}\fi};
\node[accepting, state] at (9,-10) (n2n0n0n0n0) {$p?$\,\ifntiny{\tiny 13702}\fi};
\node[accepting, state] at (7,-6) (n1n0n1) {$p?$\,\ifntiny{\tiny 13887}\fi};
\node[accepting, state] at (7,-12) (n1n0n1n0n0n0) {$p?$\,\ifntiny{\tiny 13884}\fi};
\node[accepting, state] at (3,-22) (n0n0n1n0n1n0n0n0n0n0n0) {$p?$\,\ifntiny{\tiny 13881}\fi};
\node[state] at (4,-10) (n1n0n0n0n0) {$p?$\,\ifntiny{\tiny 14077}\fi};
\node[accepting, state] at (7,-8) (n1n0n1n0) {$p?$\,\ifntiny{\tiny 13886}\fi};
\node[state] at (1,-10) (n0n0n1n0n0) {$p?$\,\ifntiny{\tiny 14065}\fi};
\node[accepting, state] at (3,-12) (n0n0n1n0n1n0) {$p?$\,\ifntiny{\tiny 13886}\fi};
\node[accepting, state] at (7,-16) (n1n0n1n0n0n0n0n0) {$p?$\,\ifntiny{\tiny 13882}\fi};
\node[accepting, state] at (3,-14) (n0n0n1n0n1n0n0) {$p?$\,\ifntiny{\tiny 13885}\fi};
\node[initial, state] at (5,0) (n) {$\cup$\,\ifntiny{\tiny 14082}\fi};
\node[accepting, state] at (3,-16) (n0n0n1n0n1n0n0n0) {$p?$\,\ifntiny{\tiny 13884}\fi};
\node[state] at (2,-4) (n0n0) {$\cup$\,\ifntiny{\tiny 14068}\fi};
\node[accepting, state] at (7,-14) (n1n0n1n0n0n0n0) {$p?$\,\ifntiny{\tiny 13883}\fi};
\node[accepting, state] at (9,-8) (n2n0n0n0) {$p?$\,\ifntiny{\tiny 13703}\fi};
\node[accepting, state] at (8,-16) (n2n0n0n0n0n0n0n0) {$p?$\,\ifntiny{\tiny 13707}\fi};
\node[state] at (2,-6) (n0n0n1) {$p?$\,\ifntiny{\tiny 14067}\fi};
\node[accepting, state] at (3,-18) (n0n0n1n0n1n0n0n0n0) {$p?$\,\ifntiny{\tiny 13883}\fi};
\node[accepting, state] at (9,-6) (n2n0n0) {$p?$\,\ifntiny{\tiny 13704}\fi};

\draw[->, thick] (n) edge [near start, left] node {} (n0);
\draw[->, thick] (n) edge [near start, left] node {} (n1);
\draw[->, thick] (n) edge [near start, left] node {} (n2);
\draw[->, thick] (n0) edge [near start, left] node {a} (n0n0);
\draw[->, thick] (n0n0) edge [near start, right, bend right] node {} (n0);
\draw[->, thick] (n0n0) edge [near start, left] node {} (n0n0n1);
\draw[->, thick] (n0n0n1) edge [near start, left] node {b} (n0n0n1n0);
\draw[->, thick] (n0n0n1n0) edge [near start, left] node {} (n0n0n1n0n0);
\draw[->, thick] (n0n0n1n0) edge [near start, left] node {} (n0n0n1n0n1);
\draw[->, thick] (n0n0n1n0n0) edge [near start, right, bend right] node {a} (n0n0);
\draw[->, thick] (n0n0n1n0n1) edge [near start, left] node {a} (n0n0n1n0n1n0);
\draw[->, thick] (n0n0n1n0n1n0) edge [near start, left] node {b} (n0n0n1n0n1n0n0);
\draw[->, thick] (n0n0n1n0n1n0n0) edge [near start, left] node {a} (n0n0n1n0n1n0n0n0);
\draw[->, thick] (n0n0n1n0n1n0n0n0) edge [near start, left] node {b} (n0n0n1n0n1n0n0n0n0);
\draw[->, thick] (n0n0n1n0n1n0n0n0n0) edge [near start, left] node {a} (n0n0n1n0n1n0n0n0n0n0);
\draw[->, thick] (n0n0n1n0n1n0n0n0n0n0) edge [near start, left] node {a} (n0n0n1n0n1n0n0n0n0n0n0);
\draw[->, thick] (n0n0n1n0n1n0n0n0n0n0n0) edge [near start, left] node {b} (n0n0n1n0n1n0n0n0n0n0n0n0);
\draw[->, thick] (n0n0n1n0n1n0n0n0n0n0n0n0) edge [near start, right, bend right] node {x} (n0n0n1n0n1);
\draw[->, thick] (n0n0n1n0n1n0n0n0n0n0n0n0) edge [near start, right, bend right] node {y} (n0n0n1n0n1);
\draw[->, thick] (n1) edge [near start, left] node {b} (n1n0);
\draw[->, thick] (n1n0) edge [near start, left] node {} (n1n0n0);
\draw[->, thick] (n1n0) edge [near start, left] node {} (n1n0n1);
\draw[->, thick] (n1n0n0) edge [near start, left] node {a} (n1n0n0n0);
\draw[->, thick] (n1n0n0n0) edge [near start, left] node {} (n1n0n0n0n0);
\draw[->, thick] (n1n0n0n0) edge [near start, right, bend right] node {} (n1);
\draw[->, thick] (n1n0n0n0n0) edge [near start, right, bend right] node {a} (n1n0n0n0);
\draw[->, thick] (n1n0n1) edge [near start, left] node {a} (n1n0n1n0);
\draw[->, thick] (n1n0n1n0) edge [near start, left] node {b} (n1n0n1n0n0);
\draw[->, thick] (n1n0n1n0n0) edge [near start, left] node {a} (n1n0n1n0n0n0);
\draw[->, thick] (n1n0n1n0n0n0) edge [near start, left] node {b} (n1n0n1n0n0n0n0);
\draw[->, thick] (n1n0n1n0n0n0n0) edge [near start, left] node {a} (n1n0n1n0n0n0n0n0);
\draw[->, thick] (n1n0n1n0n0n0n0n0) edge [near start, left] node {a} (n1n0n1n0n0n0n0n0n0);
\draw[->, thick] (n1n0n1n0n0n0n0n0n0) edge [near start, left] node {b} (n1n0n1n0n0n0n0n0n0n0);
\draw[->, thick] (n1n0n1n0n0n0n0n0n0n0) edge [near start, right, bend right] node {x} (n1n0n1);
\draw[->, thick] (n1n0n1n0n0n0n0n0n0n0) edge [near start, right, bend right] node {y} (n1n0n1);
\draw[->, thick] (n2) edge [near start, left] node {b} (n2n0);
\draw[->, thick] (n2n0) edge [near start, left] node {a} (n2n0n0);
\draw[->, thick] (n2n0n0) edge [near start, left] node {b} (n2n0n0n0);
\draw[->, thick] (n2n0n0n0) edge [near start, left] node {a} (n2n0n0n0n0);
\draw[->, thick] (n2n0n0n0n0) edge [near start, left] node {a} (n2n0n0n0n0n0);
\draw[->, thick] (n2n0n0n0n0n0) edge [near start, left] node {b} (n2n0n0n0n0n0n0);
\draw[->, thick] (n2n0n0n0n0n0n0) edge [near start, left] node {x} (n2n0n0n0n0n0n0n0);
\draw[->, thick] (n2n0n0n0n0n0n0) edge [near start, left] node {y} (n2n0n0n0n0n0n0n1);
\draw[->, thick] (n2n0n0n0n0n0n0n0) edge [near start, right, bend right] node {a} (n2);
\draw[->, thick] (n2n0n0n0n0n0n0n1) edge [near start, right, bend right] node {a} (n2);

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