\documentclass{article}
\usepackage{a4wide}
\usepackage{adjustbox}
\usepackage{fancyhdr}
\usepackage{tikz}
\usepackage{ifthen}
\usetikzlibrary{automata}
\usepackage{datetime}
\lhead{./certificates/smallinnerloop1-innerloop2/sim-52343.tex}
\rhead{09:11:49.094 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 (3,-10) (n0n0n1n1n0) {$p!$\,\ifntiny{\tiny 52503}\fi};
\node[accepting, state] at (14,-4) (n2n0) {$p!$\,\ifntiny{\tiny 52372}\fi};
\node[accepting, state] at (10,-14) (n1n0n0n0n1n1n0) {$p!$\,\ifntiny{\tiny 53815}\fi};
\node[initial, state] at (9,0) (n) {$\cup$\,\ifntiny{\tiny 53984}\fi};
\node[accepting, state] at (10,-10) (n1n0n0n0n1) {$p?$\,\ifntiny{\tiny 53822}\fi};
\node[accepting, state] at (17,-4) (n3n0) {$p!$\,\ifntiny{\tiny 52358}\fi};
\node[accepting, state] at (3,-6) (n0n0n1) {$p?$\,\ifntiny{\tiny 52512}\fi};
\node[accepting, state] at (7,-10) (n0n1n0n1n1) {$p?$\,\ifntiny{\tiny 52504}\fi};
\node[state] at (4,-2) (n0) {$p?$\,\ifntiny{\tiny 53973}\fi};
\node[accepting, state] at (15,-2) (n2) {$p?$\,\ifntiny{\tiny 52373}\fi};
\node[accepting, state] at (16,-8) (n3n0n0n0) {$p!$\,\ifntiny{\tiny 52356}\fi};
\node[state] at (11,-2) (n1) {$p?$\,\ifntiny{\tiny 53983}\fi};
\node[accepting, state] at (2,-8) (n0n0n1n0) {$p!$\,\ifntiny{\tiny 52511}\fi};
\node[accepting, state] at (3,-8) (n0n0n1n1) {$p?$\,\ifntiny{\tiny 52504}\fi};
\node[accepting, state] at (13,-6) (n1n0n1) {$p?$\,\ifntiny{\tiny 52831}\fi};
\node[accepting, state] at (7,-12) (n0n1n0n1n1n0) {$p!$\,\ifntiny{\tiny 52503}\fi};
\node[state] at (11,-4) (n1n0) {$\cup$\,\ifntiny{\tiny 53982}\fi};
\node[accepting, state] at (10,-12) (n1n0n0n0n1n1) {$p?$\,\ifntiny{\tiny 53816}\fi};
\node[accepting, state] at (12,-8) (n1n0n1n0) {$p!$\,\ifntiny{\tiny 52830}\fi};
\node[accepting, state] at (13,-10) (n1n0n1n1n0) {$p!$\,\ifntiny{\tiny 52824}\fi};
\node[accepting, state] at (17,-6) (n3n0n0) {$p?$\,\ifntiny{\tiny 52357}\fi};
\node[accepting, state] at (6,-10) (n0n1n0n1n0) {$p!$\,\ifntiny{\tiny 52511}\fi};
\node[accepting, state] at (15,-4) (n2n1) {$p?$\,\ifntiny{\tiny 52369}\fi};
\node[state] at (6,-6) (n0n1n0) {$\cup$\,\ifntiny{\tiny 53971}\fi};
\node[accepting, state] at (17,-2) (n3) {$p?$\,\ifntiny{\tiny 52359}\fi};
\node[state] at (1,-6) (n0n0n0) {$p?$\,\ifntiny{\tiny 53966}\fi};
\node[state] at (2,-4) (n0n0) {$\cup$\,\ifntiny{\tiny 53967}\fi};
\node[state] at (6,-4) (n0n1) {$p?$\,\ifntiny{\tiny 53972}\fi};
\node[accepting, state] at (13,-8) (n1n0n1n1) {$p?$\,\ifntiny{\tiny 52825}\fi};
\node[state] at (10,-6) (n1n0n0) {$p?$\,\ifntiny{\tiny 53981}\fi};
\node[state] at (5,-8) (n0n1n0n0) {$p?$\,\ifntiny{\tiny 53970}\fi};
\node[state] at (1,-8) (n0n0n0n1) {$p?$\,\ifntiny{\tiny 53965}\fi};
\node[state] at (9,-8) (n1n0n0n0) {$\cup$\,\ifntiny{\tiny 53979}\fi};
\node[accepting, state] at (15,-6) (n2n1n0) {$p!$\,\ifntiny{\tiny 52368}\fi};
\node[accepting, state] at (7,-8) (n0n1n0n1) {$p?$\,\ifntiny{\tiny 52512}\fi};
\node[accepting, state] at (9,-12) (n1n0n0n0n1n0) {$p!$\,\ifntiny{\tiny 53821}\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] (n) edge [near start, left] node {} (n3);
\draw[->, thick] (n0) edge [near start, left] node {b} (n0n0);
\draw[->, thick] (n0) edge [near start, left] node {c} (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 {b} (n0n0);
\draw[->, thick] (n0n0n0) edge [near start, left] node {c} (n0n0n0n1);
\draw[->, thick] (n0n0n0n1) edge [near start, right, bend right] node {a} (n0n0);
\draw[->, thick] (n0n0n1) edge [near start, left] node {b} (n0n0n1n0);
\draw[->, thick] (n0n0n1) edge [near start, left] node {c} (n0n0n1n1);
\draw[->, thick] (n0n0n1n0) edge [near start, right, bend right] node {x} (n0n0n1);
\draw[->, thick] (n0n0n1n1) edge [near start, left] node {a} (n0n0n1n1n0);
\draw[->, thick] (n0n0n1n1n0) edge [near start, right, bend right] node {x} (n0n0n1);
\draw[->, thick] (n0n1) edge [near start, left] node {a} (n0n1n0);
\draw[->, thick] (n0n1n0) edge [near start, left] node {} (n0n1n0n0);
\draw[->, thick] (n0n1n0) edge [near start, left] node {} (n0n1n0n1);
\draw[->, thick] (n0n1n0n0) edge [near start, right, bend right] node {b} (n0n1n0);
\draw[->, thick] (n0n1n0n0) edge [near start, right, bend right] node {c} (n0n1);
\draw[->, thick] (n0n1n0n1) edge [near start, left] node {b} (n0n1n0n1n0);
\draw[->, thick] (n0n1n0n1) edge [near start, left] node {c} (n0n1n0n1n1);
\draw[->, thick] (n0n1n0n1n0) edge [near start, right, bend right] node {x} (n0n1n0n1);
\draw[->, thick] (n0n1n0n1n1) edge [near start, left] node {a} (n0n1n0n1n1n0);
\draw[->, thick] (n0n1n0n1n1n0) edge [near start, right, bend right] node {x} (n0n1n0n1);
\draw[->, thick] (n1) edge [near start, left] node {a} (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 {b} (n1n0n0n0);
\draw[->, thick] (n1n0n0) edge [near start, right, bend right] node {c} (n1);
\draw[->, thick] (n1n0n0n0) edge [near start, right, bend right] node {} (n1n0n0);
\draw[->, thick] (n1n0n0n0) edge [near start, left] node {} (n1n0n0n0n1);
\draw[->, thick] (n1n0n0n0n1) edge [near start, left] node {b} (n1n0n0n0n1n0);
\draw[->, thick] (n1n0n0n0n1) edge [near start, left] node {c} (n1n0n0n0n1n1);
\draw[->, thick] (n1n0n0n0n1n0) edge [near start, right, bend right] node {x} (n1n0n0n0n1);
\draw[->, thick] (n1n0n0n0n1n1) edge [near start, left] node {a} (n1n0n0n0n1n1n0);
\draw[->, thick] (n1n0n0n0n1n1n0) edge [near start, right, bend right] node {x} (n1n0n0n0n1);
\draw[->, thick] (n1n0n1) edge [near start, left] node {b} (n1n0n1n0);
\draw[->, thick] (n1n0n1) edge [near start, left] node {c} (n1n0n1n1);
\draw[->, thick] (n1n0n1n0) edge [near start, right, bend right] node {x} (n1n0n1);
\draw[->, thick] (n1n0n1n1) edge [near start, left] node {a} (n1n0n1n1n0);
\draw[->, thick] (n1n0n1n1n0) edge [near start, right, bend right] node {x} (n1n0n1);
\draw[->, thick] (n2) edge [near start, left] node {b} (n2n0);
\draw[->, thick] (n2) edge [near start, left] node {c} (n2n1);
\draw[->, thick] (n2n0) edge [near start, right, bend right] node {x} (n2);
\draw[->, thick] (n2n1) edge [near start, left] node {a} (n2n1n0);
\draw[->, thick] (n2n1n0) edge [near start, right, bend right] node {x} (n2);
\draw[->, thick] (n3) edge [near start, left] node {a} (n3n0);
\draw[->, thick] (n3n0) edge [near start, left] node {x} (n3n0n0);
\draw[->, thick] (n3n0n0) edge [near start, left] node {b} (n3n0n0n0);
\draw[->, thick] (n3n0n0) edge [near start, right, bend right] node {c} (n3);
\draw[->, thick] (n3n0n0n0) edge [near start, right, bend right] node {x} (n3n0n0);

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