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

\node[accepting, state] at (9,-16) (n0n0n4n0n0n0n1n0) {$p?$\,\ifntiny{\tiny 258}\fi};
\node[accepting, state] at (10,-16) (n0n0n4n0n0n0n2n0) {$p?$\,\ifntiny{\tiny 269}\fi};
\node[accepting, state] at (6,-8) (n0n0n3n0) {$p?$\,\ifntiny{\tiny 726}\fi};
\node[accepting, state] at (12,-6) (n1n0n1) {$p?$\,\ifntiny{\tiny 52}\fi};
\node[accepting, state] at (12,-8) (n1n0n1n0) {$p?$\,\ifntiny{\tiny 51}\fi};
\node[accepting, state] at (9,-14) (n0n0n4n0n0n0n1) {$p?$\,\ifntiny{\tiny 259}\fi};
\node[accepting, state] at (2,-12) (n0n0n2n0n0n0) {$p?$\,\ifntiny{\tiny 399}\fi};
\node[accepting, state] at (10,-14) (n0n0n4n0n0n0n2) {$p?$\,\ifntiny{\tiny 270}\fi};
\node[accepting, state] at (3,-10) (n0n0n2n0n0) {$p!$\,\ifntiny{\tiny 421}\fi};
\node[accepting, state] at (9,-6) (n0n0n4) {$p?$\,\ifntiny{\tiny 274}\fi};
\node[state] at (5,-2) (n0) {$p?$\,\ifntiny{\tiny 852}\fi};
\node[accepting, state] at (9,-8) (n0n0n4n0) {$p?$\,\ifntiny{\tiny 273}\fi};
\node[accepting, state] at (13,-6) (n1n0n2) {$p?$\,\ifntiny{\tiny 57}\fi};
\node[accepting, state] at (9,-10) (n0n0n4n0n0) {$p?$\,\ifntiny{\tiny 272}\fi};
\node[accepting, state] at (12,-2) (n1) {$p?$\,\ifntiny{\tiny 59}\fi};
\node[accepting, state] at (5,-12) (n0n0n3n0n0n0) {$p?$\,\ifntiny{\tiny 715}\fi};
\node[accepting, state] at (3,-6) (n0n0n2) {$p?$\,\ifntiny{\tiny 423}\fi};
\node[accepting, state] at (12,-4) (n1n0) {$p!$\,\ifntiny{\tiny 58}\fi};
\node[accepting, state] at (6,-12) (n0n0n3n0n0n1) {$p?$\,\ifntiny{\tiny 723}\fi};
\node[accepting, state] at (2,-16) (n0n0n2n0n0n0n0n0) {$p?$\,\ifntiny{\tiny 397}\fi};
\node[accepting, state] at (6,-14) (n0n0n3n0n0n1n0) {$p?$\,\ifntiny{\tiny 722}\fi};
\node[initial, state] at (7,0) (n) {$\cup$\,\ifntiny{\tiny 891}\fi};
\node[accepting, state] at (6,-6) (n0n0n3) {$p?$\,\ifntiny{\tiny 727}\fi};
\node[accepting, state] at (6,-10) (n0n0n3n0n0) {$p!$\,\ifntiny{\tiny 725}\fi};
\node[state] at (0,-6) (n0n0n0) {$p?$\,\ifntiny{\tiny 850}\fi};
\node[state] at (5,-4) (n0n0) {$\cup$\,\ifntiny{\tiny 851}\fi};
\node[accepting, state] at (2,-14) (n0n0n2n0n0n0n0) {$p?$\,\ifntiny{\tiny 398}\fi};
\node[accepting, state] at (9,-12) (n0n0n4n0n0n0) {$p!$\,\ifntiny{\tiny 271}\fi};
\node[state] at (1,-6) (n0n0n1) {$p?$\,\ifntiny{\tiny 853}\fi};
\node[accepting, state] at (3,-8) (n0n0n2n0) {$p?$\,\ifntiny{\tiny 422}\fi};
\node[accepting, state] at (4,-14) (n0n0n2n0n0n2n0) {$p?$\,\ifntiny{\tiny 419}\fi};
\node[accepting, state] at (11,-6) (n1n0n0) {$p?$\,\ifntiny{\tiny 61}\fi};
\node[accepting, state] at (5,-16) (n0n0n3n0n0n0n0n0) {$p?$\,\ifntiny{\tiny 713}\fi};
\node[accepting, state] at (5,-14) (n0n0n3n0n0n0n0) {$p?$\,\ifntiny{\tiny 714}\fi};
\node[accepting, state] at (13,-8) (n1n0n2n0) {$p?$\,\ifntiny{\tiny 56}\fi};
\node[accepting, state] at (11,-8) (n1n0n0n0) {$p?$\,\ifntiny{\tiny 60}\fi};
\node[accepting, state] at (4,-12) (n0n0n2n0n0n2) {$p?$\,\ifntiny{\tiny 420}\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] (n0n0) edge [near start, left] node {} (n0n0n0);
\draw[->, thick] (n0n0) edge [near start, left] node {} (n0n0n1);
\draw[->, thick] (n0n0) edge [near start, left] node {} (n0n0n2);
\draw[->, thick] (n0n0) edge [near start, left] node {} (n0n0n3);
\draw[->, thick] (n0n0) edge [near start, left] node {} (n0n0n4);
\draw[->, thick] (n0n0n0) edge [near start, right, bend right] node {a} (n0n0);
\draw[->, thick] (n0n0n1) edge [near start, right, bend right] node {b} (n0);
\draw[->, thick] (n0n0n2) edge [near start, left] node {a} (n0n0n2n0);
\draw[->, thick] (n0n0n2n0) edge [near start, left] node {a} (n0n0n2n0n0);
\draw[->, thick] (n0n0n2n0n0) edge [near start, left] node {x1} (n0n0n2n0n0n0);
\draw[->, thick] (n0n0n2n0n0) edge [near start, right, bend right] node {x2} (n0n0n2);
\draw[->, thick] (n0n0n2n0n0) edge [near start, left] node {x3} (n0n0n2n0n0n2);
\draw[->, thick] (n0n0n2n0n0n0) edge [near start, left] node {a} (n0n0n2n0n0n0n0);
\draw[->, thick] (n0n0n2n0n0n0n0) edge [near start, left] node {b} (n0n0n2n0n0n0n0n0);
\draw[->, thick] (n0n0n2n0n0n0n0n0) edge [near start, right, bend right] node {a} (n0n0n2n0n0);
\draw[->, thick] (n0n0n2n0n0n2) edge [near start, left] node {a} (n0n0n2n0n0n2n0);
\draw[->, thick] (n0n0n2n0n0n2n0) edge [near start, left, bend left] node {a} (n0n0n2n0n0);
\draw[->, thick] (n0n0n3) edge [near start, left] node {a} (n0n0n3n0);
\draw[->, thick] (n0n0n3n0) edge [near start, left] node {a} (n0n0n3n0n0);
\draw[->, thick] (n0n0n3n0n0) edge [near start, left] node {x1} (n0n0n3n0n0n0);
\draw[->, thick] (n0n0n3n0n0) edge [near start, left] node {x2} (n0n0n3n0n0n1);
\draw[->, thick] (n0n0n3n0n0) edge [near start, right, bend right] node {x3} (n0n0n3);
\draw[->, thick] (n0n0n3n0n0n0) edge [near start, left] node {a} (n0n0n3n0n0n0n0);
\draw[->, thick] (n0n0n3n0n0n0n0) edge [near start, left] node {b} (n0n0n3n0n0n0n0n0);
\draw[->, thick] (n0n0n3n0n0n0n0n0) edge [near start, right, bend right] node {a} (n0n0n3n0n0);
\draw[->, thick] (n0n0n3n0n0n1) edge [near start, left] node {a} (n0n0n3n0n0n1n0);
\draw[->, thick] (n0n0n3n0n0n1n0) edge [near start, right, bend right] node {a} (n0n0n3n0n0);
\draw[->, thick] (n0n0n4) edge [near start, left] node {a} (n0n0n4n0);
\draw[->, thick] (n0n0n4n0) edge [near start, left] node {b} (n0n0n4n0n0);
\draw[->, thick] (n0n0n4n0n0) edge [near start, left] node {a} (n0n0n4n0n0n0);
\draw[->, thick] (n0n0n4n0n0n0) edge [near start, right, bend right] node {x1} (n0n0n4);
\draw[->, thick] (n0n0n4n0n0n0) edge [near start, left] node {x2} (n0n0n4n0n0n0n1);
\draw[->, thick] (n0n0n4n0n0n0) edge [near start, left] node {x3} (n0n0n4n0n0n0n2);
\draw[->, thick] (n0n0n4n0n0n0n1) edge [near start, left] node {a} (n0n0n4n0n0n0n1n0);
\draw[->, thick] (n0n0n4n0n0n0n1n0) edge [near start, right, bend right] node {a} (n0n0n4n0n0n0);
\draw[->, thick] (n0n0n4n0n0n0n2) edge [near start, left] node {a} (n0n0n4n0n0n0n2n0);
\draw[->, thick] (n0n0n4n0n0n0n2n0) edge [near start, left, bend left] node {a} (n0n0n4n0n0n0);
\draw[->, thick] (n1) edge [near start, left] node {a} (n1n0);
\draw[->, thick] (n1n0) edge [near start, left] node {x1} (n1n0n0);
\draw[->, thick] (n1n0) edge [near start, left] node {x2} (n1n0n1);
\draw[->, thick] (n1n0) edge [near start, left] node {x3} (n1n0n2);
\draw[->, thick] (n1n0n0) edge [near start, left] node {a} (n1n0n0n0);
\draw[->, thick] (n1n0n0n0) edge [near start, right, bend right] node {b} (n1);
\draw[->, thick] (n1n0n1) edge [near start, left] node {a} (n1n0n1n0);
\draw[->, thick] (n1n0n1n0) edge [near start, right, bend right] node {a} (n1n0);
\draw[->, thick] (n1n0n2) edge [near start, left] node {a} (n1n0n2n0);
\draw[->, thick] (n1n0n2n0) edge [near start, left, bend left] node {a} (n1n0);

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