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

\node[accepting, state] at (7,-12) (n0n3n0n0n0n2) {$p?$\,\ifntiny{\tiny 1624}\fi};
\node[accepting, state] at (4,-10) (n0n2n0n0n2) {$p?$\,\ifntiny{\tiny 2357}\fi};
\node[accepting, state] at (6,-12) (n0n3n0n0n0n1) {$p?$\,\ifntiny{\tiny 1610}\fi};
\node[accepting, state] at (6,-4) (n0n3) {$p?$\,\ifntiny{\tiny 1628}\fi};
\node[initial, state] at (4,0) (n) {$p?$\,\ifntiny{\tiny 2600}\fi};
\node[accepting, state] at (2,-10) (n0n2n0n0n0) {$p?$\,\ifntiny{\tiny 2336}\fi};
\node[accepting, state] at (6,-10) (n0n3n0n0n0) {$p!$\,\ifntiny{\tiny 1625}\fi};
\node[accepting, state] at (2,-12) (n0n2n0n0n0n0) {$p?$\,\ifntiny{\tiny 2335}\fi};
\node[accepting, state] at (3,-4) (n0n2) {$p?$\,\ifntiny{\tiny 2360}\fi};
\node[accepting, state] at (3,-6) (n0n2n0) {$p?$\,\ifntiny{\tiny 2359}\fi};
\node[state] at (4,-2) (n0) {$\cup$\,\ifntiny{\tiny 2599}\fi};
\node[accepting, state] at (6,-14) (n0n3n0n0n0n1n0) {$p?$\,\ifntiny{\tiny 1609}\fi};
\node[accepting, state] at (6,-8) (n0n3n0n0) {$p?$\,\ifntiny{\tiny 1626}\fi};
\node[accepting, state] at (6,-6) (n0n3n0) {$p?$\,\ifntiny{\tiny 1627}\fi};
\node[accepting, state] at (2,-14) (n0n2n0n0n0n0n0) {$p?$\,\ifntiny{\tiny 2334}\fi};
\node[accepting, state] at (4,-12) (n0n2n0n0n2n0) {$p?$\,\ifntiny{\tiny 2356}\fi};
\node[accepting, state] at (3,-8) (n0n2n0n0) {$p!$\,\ifntiny{\tiny 2358}\fi};
\node[state] at (1,-4) (n0n1) {$p?$\,\ifntiny{\tiny 2601}\fi};
\node[accepting, state] at (7,-14) (n0n3n0n0n0n2n0) {$p?$\,\ifntiny{\tiny 1623}\fi};

\draw[->, thick] (n) edge [near start, left] node {a} (n0);
\draw[->, thick] (n0) edge [near start, right, bend right] node {} (n);
\draw[->, thick] (n0) edge [near start, left] node {} (n0n1);
\draw[->, thick] (n0) edge [near start, left] node {} (n0n2);
\draw[->, thick] (n0) edge [near start, left] node {} (n0n3);
\draw[->, thick] (n0n1) 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 {a} (n0n2n0n0);
\draw[->, thick] (n0n2n0n0) edge [near start, left] node {x1} (n0n2n0n0n0);
\draw[->, thick] (n0n2n0n0) edge [near start, right, bend right] node {x2} (n0n2);
\draw[->, thick] (n0n2n0n0) edge [near start, left] node {x3} (n0n2n0n0n2);
\draw[->, thick] (n0n2n0n0n0) edge [near start, left] node {a} (n0n2n0n0n0n0);
\draw[->, thick] (n0n2n0n0n0n0) edge [near start, left] node {b} (n0n2n0n0n0n0n0);
\draw[->, thick] (n0n2n0n0n0n0n0) edge [near start, right, bend right] node {a} (n0n2n0n0);
\draw[->, thick] (n0n2n0n0n2) edge [near start, left] node {a} (n0n2n0n0n2n0);
\draw[->, thick] (n0n2n0n0n2n0) edge [near start, left, bend left] node {a} (n0n2n0n0);
\draw[->, thick] (n0n3) edge [near start, left] node {a} (n0n3n0);
\draw[->, thick] (n0n3n0) edge [near start, left] node {b} (n0n3n0n0);
\draw[->, thick] (n0n3n0n0) edge [near start, left] node {a} (n0n3n0n0n0);
\draw[->, thick] (n0n3n0n0n0) edge [near start, right, bend right] node {x1} (n0n3);
\draw[->, thick] (n0n3n0n0n0) edge [near start, left] node {x2} (n0n3n0n0n0n1);
\draw[->, thick] (n0n3n0n0n0) edge [near start, left] node {x3} (n0n3n0n0n0n2);
\draw[->, thick] (n0n3n0n0n0n1) edge [near start, left] node {a} (n0n3n0n0n0n1n0);
\draw[->, thick] (n0n3n0n0n0n1n0) edge [near start, right, bend right] node {a} (n0n3n0n0n0);
\draw[->, thick] (n0n3n0n0n0n2) edge [near start, left] node {a} (n0n3n0n0n0n2n0);
\draw[->, thick] (n0n3n0n0n0n2n0) edge [near start, left, bend left] node {a} (n0n3n0n0n0);

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