\documentclass{article}
\usepackage{a4wide}
\usepackage{adjustbox}
\usepackage{fancyhdr}
\usepackage{tikz}
\usepackage{ifthen}
\usetikzlibrary{automata}
\usepackage{datetime}
\lhead{./certificates/march3testa1-march3testb2/sim-25010.tex}
\rhead{08:49:43.226 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 = 19
\begin{tikzpicture}[rotate = 0]
%\begin{tikzpicture}[rotate = 90]
\tikzset{initial text=$ $}

\node[accepting, state] at (3,-12) (n0n2n0n0n0n1) {$p?$\,\ifntiny{\tiny 25297}\fi};
\node[accepting, state] at (4,-12) (n0n2n0n0n0n2) {$p?$\,\ifntiny{\tiny 25311}\fi};
\node[accepting, state] at (6,-4) (n0n3) {$p?$\,\ifntiny{\tiny 27282}\fi};
\node[accepting, state] at (4,-14) (n0n2n0n0n0n2n0) {$p?$\,\ifntiny{\tiny 25310}\fi};
\node[accepting, state] at (3,-10) (n0n2n0n0n0) {$p!$\,\ifntiny{\tiny 25312}\fi};
\node[state] at (0,-4) (n0n0) {$p?$\,\ifntiny{\tiny 27606}\fi};
\node[accepting, state] at (3,-8) (n0n2n0n0) {$p?$\,\ifntiny{\tiny 25313}\fi};
\node[accepting, state] at (5,-14) (n0n3n0n0n0n0n0) {$p?$\,\ifntiny{\tiny 27256}\fi};
\node[accepting, state] at (3,-4) (n0n2) {$p?$\,\ifntiny{\tiny 25315}\fi};
\node[accepting, state] at (3,-6) (n0n2n0) {$p?$\,\ifntiny{\tiny 25314}\fi};
\node[state] at (4,-2) (n0) {$\cup$\,\ifntiny{\tiny 27604}\fi};
\node[accepting, state] at (6,-8) (n0n3n0n0) {$p!$\,\ifntiny{\tiny 27280}\fi};
\node[accepting, state] at (6,-6) (n0n3n0) {$p?$\,\ifntiny{\tiny 27281}\fi};
\node[accepting, state] at (3,-14) (n0n2n0n0n0n1n0) {$p?$\,\ifntiny{\tiny 25296}\fi};
\node[accepting, state] at (5,-12) (n0n3n0n0n0n0) {$p?$\,\ifntiny{\tiny 27257}\fi};
\node[accepting, state] at (7,-12) (n0n3n0n0n2n0) {$p?$\,\ifntiny{\tiny 27278}\fi};
\node[initial, state] at (4,0) (n) {$p?$\,\ifntiny{\tiny 27605}\fi};
\node[accepting, state] at (7,-10) (n0n3n0n0n2) {$p?$\,\ifntiny{\tiny 27279}\fi};
\node[accepting, state] at (5,-10) (n0n3n0n0n0) {$p?$\,\ifntiny{\tiny 27258}\fi};

\draw[->, thick] (n) edge [near start, left] node {a} (n0);
\draw[->, thick] (n0) edge [near start, left] node {} (n0n0);
\draw[->, thick] (n0) edge [near start, right, bend right] node {} (n);
\draw[->, thick] (n0) edge [near start, left] node {} (n0n2);
\draw[->, thick] (n0) edge [near start, left] node {} (n0n3);
\draw[->, thick] (n0n0) edge [near start, right, bend right] node {b} (n);
\draw[->, thick] (n0n2) edge [near start, left] node {a} (n0n2n0);
\draw[->, thick] (n0n2n0) edge [near start, left] node {b} (n0n2n0n0);
\draw[->, thick] (n0n2n0n0) edge [near start, left] node {a} (n0n2n0n0n0);
\draw[->, thick] (n0n2n0n0n0) edge [near start, right, bend right] node {x1} (n0n2);
\draw[->, thick] (n0n2n0n0n0) edge [near start, left] node {x2} (n0n2n0n0n0n1);
\draw[->, thick] (n0n2n0n0n0) edge [near start, left] node {x3} (n0n2n0n0n0n2);
\draw[->, thick] (n0n2n0n0n0n1) edge [near start, left] node {a} (n0n2n0n0n0n1n0);
\draw[->, thick] (n0n2n0n0n0n1n0) edge [near start, right, bend right] node {a} (n0n2n0n0n0);
\draw[->, thick] (n0n2n0n0n0n2) edge [near start, left] node {a} (n0n2n0n0n0n2n0);
\draw[->, thick] (n0n2n0n0n0n2n0) edge [near start, left, bend left] node {a} (n0n2n0n0n0);
\draw[->, thick] (n0n3) edge [near start, left] node {a} (n0n3n0);
\draw[->, thick] (n0n3n0) edge [near start, left] node {a} (n0n3n0n0);
\draw[->, thick] (n0n3n0n0) edge [near start, left] node {x1} (n0n3n0n0n0);
\draw[->, thick] (n0n3n0n0) edge [near start, right, bend right] node {x2} (n0n3);
\draw[->, thick] (n0n3n0n0) edge [near start, left] node {x3} (n0n3n0n0n2);
\draw[->, thick] (n0n3n0n0n0) edge [near start, left] node {a} (n0n3n0n0n0n0);
\draw[->, thick] (n0n3n0n0n0n0) edge [near start, left] node {b} (n0n3n0n0n0n0n0);
\draw[->, thick] (n0n3n0n0n0n0n0) edge [near start, right, bend right] node {a} (n0n3n0n0);
\draw[->, thick] (n0n3n0n0n2) edge [near start, left] node {a} (n0n3n0n0n2n0);
\draw[->, thick] (n0n3n0n0n2n0) edge [near start, left, bend left] node {a} (n0n3n0n0);

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