\documentclass{article}
\usepackage{a4wide}
\usepackage{adjustbox}
\usepackage{fancyhdr}
\usepackage{tikz}
\usepackage{ifthen}
\usetikzlibrary{automata}
\usepackage{datetime}
\lhead{./certificates/march3testa1-march3testb2/sim-5802.tex}
\rhead{10:46:59.329 on 2025-03-31}
\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 5950}\fi};
\node[accepting, state] at (10,-16) (n0n0n4n0n0n0n2n0) {$p?$\,\ifntiny{\tiny 5961}\fi};
\node[accepting, state] at (6,-8) (n0n0n3n0) {$p?$\,\ifntiny{\tiny 6526}\fi};
\node[accepting, state] at (12,-6) (n1n0n1) {$p?$\,\ifntiny{\tiny 5852}\fi};
\node[accepting, state] at (12,-8) (n1n0n1n0) {$p?$\,\ifntiny{\tiny 5851}\fi};
\node[accepting, state] at (9,-14) (n0n0n4n0n0n0n1) {$p?$\,\ifntiny{\tiny 5951}\fi};
\node[accepting, state] at (2,-12) (n0n0n2n0n0n0) {$p?$\,\ifntiny{\tiny 6199}\fi};
\node[accepting, state] at (10,-14) (n0n0n4n0n0n0n2) {$p?$\,\ifntiny{\tiny 5962}\fi};
\node[accepting, state] at (3,-10) (n0n0n2n0n0) {$p!$\,\ifntiny{\tiny 6221}\fi};
\node[accepting, state] at (9,-6) (n0n0n4) {$p?$\,\ifntiny{\tiny 5966}\fi};
\node[state] at (5,-2) (n0) {$p?$\,\ifntiny{\tiny 6652}\fi};
\node[accepting, state] at (9,-8) (n0n0n4n0) {$p?$\,\ifntiny{\tiny 5965}\fi};
\node[accepting, state] at (13,-6) (n1n0n2) {$p?$\,\ifntiny{\tiny 5857}\fi};
\node[accepting, state] at (9,-10) (n0n0n4n0n0) {$p?$\,\ifntiny{\tiny 5964}\fi};
\node[accepting, state] at (12,-2) (n1) {$p?$\,\ifntiny{\tiny 5859}\fi};
\node[accepting, state] at (5,-12) (n0n0n3n0n0n0) {$p?$\,\ifntiny{\tiny 6515}\fi};
\node[accepting, state] at (3,-6) (n0n0n2) {$p?$\,\ifntiny{\tiny 6223}\fi};
\node[accepting, state] at (12,-4) (n1n0) {$p!$\,\ifntiny{\tiny 5858}\fi};
\node[accepting, state] at (6,-12) (n0n0n3n0n0n1) {$p?$\,\ifntiny{\tiny 6523}\fi};
\node[accepting, state] at (2,-16) (n0n0n2n0n0n0n0n0) {$p?$\,\ifntiny{\tiny 6197}\fi};
\node[accepting, state] at (6,-14) (n0n0n3n0n0n1n0) {$p?$\,\ifntiny{\tiny 6522}\fi};
\node[initial, state] at (7,0) (n) {$\cup$\,\ifntiny{\tiny 6691}\fi};
\node[accepting, state] at (6,-6) (n0n0n3) {$p?$\,\ifntiny{\tiny 6527}\fi};
\node[accepting, state] at (6,-10) (n0n0n3n0n0) {$p!$\,\ifntiny{\tiny 6525}\fi};
\node[state] at (0,-6) (n0n0n0) {$p?$\,\ifntiny{\tiny 6653}\fi};
\node[state] at (5,-4) (n0n0) {$\cup$\,\ifntiny{\tiny 6651}\fi};
\node[accepting, state] at (2,-14) (n0n0n2n0n0n0n0) {$p?$\,\ifntiny{\tiny 6198}\fi};
\node[accepting, state] at (9,-12) (n0n0n4n0n0n0) {$p!$\,\ifntiny{\tiny 5963}\fi};
\node[state] at (1,-6) (n0n0n1) {$p?$\,\ifntiny{\tiny 6650}\fi};
\node[accepting, state] at (3,-8) (n0n0n2n0) {$p?$\,\ifntiny{\tiny 6222}\fi};
\node[accepting, state] at (4,-14) (n0n0n2n0n0n2n0) {$p?$\,\ifntiny{\tiny 6219}\fi};
\node[accepting, state] at (11,-6) (n1n0n0) {$p?$\,\ifntiny{\tiny 5861}\fi};
\node[accepting, state] at (5,-16) (n0n0n3n0n0n0n0n0) {$p?$\,\ifntiny{\tiny 6513}\fi};
\node[accepting, state] at (5,-14) (n0n0n3n0n0n0n0) {$p?$\,\ifntiny{\tiny 6514}\fi};
\node[accepting, state] at (13,-8) (n1n0n2n0) {$p?$\,\ifntiny{\tiny 5856}\fi};
\node[accepting, state] at (11,-8) (n1n0n0n0) {$p?$\,\ifntiny{\tiny 5860}\fi};
\node[accepting, state] at (4,-12) (n0n0n2n0n0n2) {$p?$\,\ifntiny{\tiny 6220}\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 {b} (n0);
\draw[->, thick] (n0n0n1) edge [near start, right, bend right] node {a} (n0n0);
\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}
