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

\node[accepting, state] at (2,-30) (n0n0n0n0n0n0n2n0n0n0n0n0n0n0n0) {$p?$\,\ifntiny{\tiny 15519}\fi};
\node[accepting, state] at (2,-32) (n0n0n0n0n0n0n2n0n0n0n0n0n0n0n0n0) {$p?$\,\ifntiny{\tiny 15518}\fi};
\node[accepting, state] at (3,-22) (n0n0n0n0n0n0n2n0n0n0n0) {$p!$\,\ifntiny{\tiny 15524}\fi};
\node[accepting, state] at (3,-16) (n0n0n0n0n0n0n2n0) {$p?$\,\ifntiny{\tiny 15527}\fi};
\node[accepting, state] at (3,-24) (n0n0n0n0n0n0n2n0n0n0n0n0) {$p!$\,\ifntiny{\tiny 15523}\fi};
\node[initial, state] at (3,0) (n) {$p?$\,\ifntiny{\tiny 15545}\fi};
\node[state] at (1,-14) (n0n0n0n0n0n0n1) {$p?$\,\ifntiny{\tiny 15490}\fi};
\node[state] at (4,-8) (n0n0n0n1) {$p?$\,\ifntiny{\tiny 15536}\fi};
\node[state] at (1,-16) (n0n0n0n0n0n0n1n0) {$p?$\,\ifntiny{\tiny 15489}\fi};
\node[state] at (0,-14) (n0n0n0n0n0n0n0) {$p?$\,\ifntiny{\tiny 15482}\fi};
\node[state] at (2,-12) (n0n0n0n0n0n0) {$\cup$\,\ifntiny{\tiny 15529}\fi};
\node[state] at (2,-10) (n0n0n0n0n0) {$p?$\,\ifntiny{\tiny 15530}\fi};
\node[state] at (2,-8) (n0n0n0n0) {$p?$\,\ifntiny{\tiny 15531}\fi};
\node[state] at (2,-6) (n0n0n0) {$\cup$\,\ifntiny{\tiny 15537}\fi};
\node[state] at (2,-4) (n0n0) {$p?$\,\ifntiny{\tiny 15538}\fi};
\node[state] at (5,-4) (n0n1) {$p?$\,\ifntiny{\tiny 15543}\fi};
\node[accepting, state] at (3,-20) (n0n0n0n0n0n0n2n0n0n0) {$p?$\,\ifntiny{\tiny 15525}\fi};
\node[accepting, state] at (3,-18) (n0n0n0n0n0n0n2n0n0) {$p?$\,\ifntiny{\tiny 15526}\fi};
\node[accepting, state] at (3,-14) (n0n0n0n0n0n0n2) {$p!$\,\ifntiny{\tiny 15528}\fi};
\node[accepting, state] at (2,-34) (n0n0n0n0n0n0n2n0n0n0n0n0n0n0n0n0n0) {$p!$\,\ifntiny{\tiny 15517}\fi};
\node[accepting, state] at (2,-26) (n0n0n0n0n0n0n2n0n0n0n0n0n0) {$p!$\,\ifntiny{\tiny 15521}\fi};
\node[accepting, state] at (2,-28) (n0n0n0n0n0n0n2n0n0n0n0n0n0n0) {$p?$\,\ifntiny{\tiny 15520}\fi};
\node[state] at (3,-2) (n0) {$\cup$\,\ifntiny{\tiny 15544}\fi};

\draw[->, thick] (n) edge [near start, left] node {b} (n0);
\draw[->, thick] (n0) edge [near start, left] node {} (n0n0);
\draw[->, thick] (n0) edge [near start, left] node {} (n0n1);
\draw[->, thick] (n0n0) edge [near start, left] node {b} (n0n0n0);
\draw[->, thick] (n0n0n0) edge [near start, left] node {} (n0n0n0n0);
\draw[->, thick] (n0n0n0) edge [near start, left] node {} (n0n0n0n1);
\draw[->, thick] (n0n0n0n0) edge [near start, left] node {a} (n0n0n0n0n0);
\draw[->, thick] (n0n0n0n0n0) edge [near start, left] node {b} (n0n0n0n0n0n0);
\draw[->, thick] (n0n0n0n0n0n0) edge [near start, left] node {} (n0n0n0n0n0n0n0);
\draw[->, thick] (n0n0n0n0n0n0) edge [near start, left] node {} (n0n0n0n0n0n0n1);
\draw[->, thick] (n0n0n0n0n0n0) edge [near start, left] node {} (n0n0n0n0n0n0n2);
\draw[->, thick] (n0n0n0n0n0n0n0) edge [near start, right, bend right] node {b} (n0n0n0);
\draw[->, thick] (n0n0n0n0n0n0n1) edge [near start, left] node {a} (n0n0n0n0n0n0n1n0);
\draw[->, thick] (n0n0n0n0n0n0n1n0) edge [near start, right, bend right] node {b} (n0);
\draw[->, thick] (n0n0n0n0n0n0n2) edge [near start, left] node {v} (n0n0n0n0n0n0n2n0);
\draw[->, thick] (n0n0n0n0n0n0n2n0) edge [near start, left] node {b} (n0n0n0n0n0n0n2n0n0);
\draw[->, thick] (n0n0n0n0n0n0n2n0n0) edge [near start, left] node {a} (n0n0n0n0n0n0n2n0n0n0);
\draw[->, thick] (n0n0n0n0n0n0n2n0n0n0) edge [near start, left] node {b} (n0n0n0n0n0n0n2n0n0n0n0);
\draw[->, thick] (n0n0n0n0n0n0n2n0n0n0n0) edge [near start, left] node {x} (n0n0n0n0n0n0n2n0n0n0n0n0);
\draw[->, thick] (n0n0n0n0n0n0n2n0n0n0n0n0) edge [near start, left] node {y} (n0n0n0n0n0n0n2n0n0n0n0n0n0);
\draw[->, thick] (n0n0n0n0n0n0n2n0n0n0n0n0) edge [near start, right, bend right] node {z} (n0n0n0n0n0n0n2);
\draw[->, thick] (n0n0n0n0n0n0n2n0n0n0n0n0n0) edge [near start, left] node {u} (n0n0n0n0n0n0n2n0n0n0n0n0n0n0);
\draw[->, thick] (n0n0n0n0n0n0n2n0n0n0n0n0n0n0) edge [near start, left] node {b} (n0n0n0n0n0n0n2n0n0n0n0n0n0n0n0);
\draw[->, thick] (n0n0n0n0n0n0n2n0n0n0n0n0n0n0n0) edge [near start, left] node {a} (n0n0n0n0n0n0n2n0n0n0n0n0n0n0n0n0);
\draw[->, thick] (n0n0n0n0n0n0n2n0n0n0n0n0n0n0n0n0) edge [near start, left] node {b} (n0n0n0n0n0n0n2n0n0n0n0n0n0n0n0n0n0);
\draw[->, thick] (n0n0n0n0n0n0n2n0n0n0n0n0n0n0n0n0n0) edge [near start, right, bend right] node {x} (n0n0n0n0n0n0n2n0n0n0n0n0);
\draw[->, thick] (n0n0n0n1) edge [near start, left, bend left] node {b} (n0n0n0);
\draw[->, thick] (n0n1) edge [near start, left, bend left] node {a} (n);

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