\documentclass{article}
\usepackage{a4wide}
\usepackage{adjustbox}
\usepackage{fancyhdr}
\usepackage{tikz}
\usepackage{ifthen}
\usetikzlibrary{automata}
\usepackage{datetime}
\lhead{./certificates/mario-b-ex2/sim-37646.tex}
\rhead{09:11:48.757 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 = 27
\begin{tikzpicture}[rotate = 0]
%\begin{tikzpicture}[rotate = 90]
\tikzset{initial text=$ $}

\node[accepting, state] at (3,-16) (n0n0n1n0n0n0n0n0) {$p?$\,\ifntiny{\tiny 38051}\fi};
\node[initial, state] at (4,0) (n) {$\cup$\,\ifntiny{\tiny 38279}\fi};
\node[accepting, state] at (6,-10) (n1n0n0n0n1) {$p?$\,\ifntiny{\tiny 37751}\fi};
\node[accepting, state] at (6,-16) (n1n0n0n0n1n0n0n0) {$p?$\,\ifntiny{\tiny 37748}\fi};
\node[accepting, state] at (3,-6) (n0n0n1) {$p?$\,\ifntiny{\tiny 38056}\fi};
\node[state] at (2,-2) (n0) {$p?$\,\ifntiny{\tiny 38270}\fi};
\node[accepting, state] at (6,-14) (n1n0n0n0n1n0n0) {$p?$\,\ifntiny{\tiny 37749}\fi};
\node[accepting, state] at (6,-22) (n1n0n0n0n1n0n0n0n0n0n0) {$p?$\,\ifntiny{\tiny 37745}\fi};
\node[state] at (6,-2) (n1) {$p?$\,\ifntiny{\tiny 38278}\fi};
\node[accepting, state] at (3,-8) (n0n0n1n0) {$p?$\,\ifntiny{\tiny 38055}\fi};
\node[accepting, state] at (3,-12) (n0n0n1n0n0n0) {$p?$\,\ifntiny{\tiny 38053}\fi};
\node[state] at (7,-6) (n1n0n1) {$p?$\,\ifntiny{\tiny 38276}\fi};
\node[accepting, state] at (6,-18) (n1n0n0n0n1n0n0n0n0) {$p?$\,\ifntiny{\tiny 37747}\fi};
\node[accepting, state] at (6,-20) (n1n0n0n0n1n0n0n0n0n0) {$p?$\,\ifntiny{\tiny 37746}\fi};
\node[state] at (6,-4) (n1n0) {$\cup$\,\ifntiny{\tiny 38277}\fi};
\node[accepting, state] at (3,-18) (n0n0n1n0n0n0n0n0n0) {$p?$\,\ifntiny{\tiny 38050}\fi};
\node[state] at (4,-10) (n1n0n0n0n0) {$p?$\,\ifntiny{\tiny 38273}\fi};
\node[accepting, state] at (3,-10) (n0n0n1n0n0) {$p?$\,\ifntiny{\tiny 38054}\fi};
\node[accepting, state] at (3,-14) (n0n0n1n0n0n0n0) {$p?$\,\ifntiny{\tiny 38052}\fi};
\node[accepting, state] at (3,-20) (n0n0n1n0n0n0n0n0n0n0) {$p!$\,\ifntiny{\tiny 38049}\fi};
\node[state] at (1,-8) (n0n0n0n0) {$\cup$\,\ifntiny{\tiny 38267}\fi};
\node[state] at (1,-6) (n0n0n0) {$p?$\,\ifntiny{\tiny 38268}\fi};
\node[state] at (2,-4) (n0n0) {$\cup$\,\ifntiny{\tiny 38269}\fi};
\node[accepting, state] at (6,-24) (n1n0n0n0n1n0n0n0n0n0n0n0) {$p!$\,\ifntiny{\tiny 37744}\fi};
\node[state] at (5,-6) (n1n0n0) {$p?$\,\ifntiny{\tiny 38275}\fi};
\node[state] at (5,-8) (n1n0n0n0) {$\cup$\,\ifntiny{\tiny 38274}\fi};
\node[accepting, state] at (6,-12) (n1n0n0n0n1n0) {$p?$\,\ifntiny{\tiny 37750}\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 {b} (n0n0);
\draw[->, thick] (n0n0) edge [near start, left] node {} (n0n0n0);
\draw[->, thick] (n0n0) edge [near start, left] node {} (n0n0n1);
\draw[->, thick] (n0n0n0) edge [near start, left] node {a} (n0n0n0n0);
\draw[->, thick] (n0n0n0n0) edge [near start, right, bend right] node {} (n0n0n0);
\draw[->, thick] (n0n0n0n0) edge [near start, right, bend right] node {} (n0);
\draw[->, thick] (n0n0n1) edge [near start, left] node {a} (n0n0n1n0);
\draw[->, thick] (n0n0n1n0) edge [near start, left] node {b} (n0n0n1n0n0);
\draw[->, thick] (n0n0n1n0n0) edge [near start, left] node {a} (n0n0n1n0n0n0);
\draw[->, thick] (n0n0n1n0n0n0) edge [near start, left] node {b} (n0n0n1n0n0n0n0);
\draw[->, thick] (n0n0n1n0n0n0n0) edge [near start, left] node {a} (n0n0n1n0n0n0n0n0);
\draw[->, thick] (n0n0n1n0n0n0n0n0) edge [near start, left] node {a} (n0n0n1n0n0n0n0n0n0);
\draw[->, thick] (n0n0n1n0n0n0n0n0n0) edge [near start, left] node {b} (n0n0n1n0n0n0n0n0n0n0);
\draw[->, thick] (n0n0n1n0n0n0n0n0n0n0) edge [near start, right, bend right] node {x} (n0n0n1);
\draw[->, thick] (n0n0n1n0n0n0n0n0n0n0) edge [near start, right, bend right] node {y} (n0n0n1);
\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] (n1n0n0n0) edge [near start, left] node {} (n1n0n0n0n0);
\draw[->, thick] (n1n0n0n0) edge [near start, left] node {} (n1n0n0n0n1);
\draw[->, thick] (n1n0n0n0n0) edge [near start, right, bend right] node {a} (n1n0);
\draw[->, thick] (n1n0n0n0n1) edge [near start, left] node {a} (n1n0n0n0n1n0);
\draw[->, thick] (n1n0n0n0n1n0) edge [near start, left] node {b} (n1n0n0n0n1n0n0);
\draw[->, thick] (n1n0n0n0n1n0n0) edge [near start, left] node {a} (n1n0n0n0n1n0n0n0);
\draw[->, thick] (n1n0n0n0n1n0n0n0) edge [near start, left] node {b} (n1n0n0n0n1n0n0n0n0);
\draw[->, thick] (n1n0n0n0n1n0n0n0n0) edge [near start, left] node {a} (n1n0n0n0n1n0n0n0n0n0);
\draw[->, thick] (n1n0n0n0n1n0n0n0n0n0) edge [near start, left] node {a} (n1n0n0n0n1n0n0n0n0n0n0);
\draw[->, thick] (n1n0n0n0n1n0n0n0n0n0n0) edge [near start, left] node {b} (n1n0n0n0n1n0n0n0n0n0n0n0);
\draw[->, thick] (n1n0n0n0n1n0n0n0n0n0n0n0) edge [near start, right, bend right] node {x} (n1n0n0n0n1);
\draw[->, thick] (n1n0n0n0n1n0n0n0n0n0n0n0) edge [near start, right, bend right] node {y} (n1n0n0n0n1);
\draw[->, thick] (n1n0n1) edge [near start, left, bend left] node {a} (n1n0);

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