\documentclass{article}
\usepackage{a4wide}
\usepackage{adjustbox}
\usepackage{fancyhdr}
\usepackage{tikz}
\usepackage{ifthen}
\usetikzlibrary{automata}
\usepackage{datetime}
\lhead{./certificates/expensive1-expensive2/sim-12986.tex}
\rhead{09:11:48.333 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[state] at (5,-2) (n1) {$p?$\,\ifntiny{\tiny 15320}\fi};
\node[accepting, state] at (3,-18) (n0n0n0n0n0n2n1n0n0) {$p?$\,\ifntiny{\tiny 15296}\fi};
\node[state] at (5,-4) (n1n0) {$p?$\,\ifntiny{\tiny 15319}\fi};
\node[accepting, state] at (3,-16) (n0n0n0n0n0n2n1n0) {$p?$\,\ifntiny{\tiny 15297}\fi};
\node[initial, state] at (3,0) (n) {$\cup$\,\ifntiny{\tiny 15321}\fi};
\node[accepting, state] at (2,-20) (n0n0n0n0n0n2n0n0n0n0) {$p?$\,\ifntiny{\tiny 15284}\fi};
\node[accepting, state] at (2,-22) (n0n0n0n0n0n2n0n0n0n0n0) {$p!$\,\ifntiny{\tiny 15283}\fi};
\node[accepting, state] at (3,-12) (n0n0n0n0n0n2) {$p!$\,\ifntiny{\tiny 15299}\fi};
\node[accepting, state] at (2,-18) (n0n0n0n0n0n2n0n0n0) {$p?$\,\ifntiny{\tiny 15285}\fi};
\node[state] at (4,-6) (n0n0n1) {$p?$\,\ifntiny{\tiny 15315}\fi};
\node[state] at (1,-14) (n0n0n0n0n0n1n0) {$p?$\,\ifntiny{\tiny 15310}\fi};
\node[accepting, state] at (2,-14) (n0n0n0n0n0n2n0) {$p!$\,\ifntiny{\tiny 15287}\fi};
\node[state] at (2,-2) (n0) {$p?$\,\ifntiny{\tiny 15317}\fi};
\node[accepting, state] at (3,-20) (n0n0n0n0n0n2n1n0n0n0) {$p?$\,\ifntiny{\tiny 15295}\fi};
\node[state] at (1,-12) (n0n0n0n0n0n1) {$p?$\,\ifntiny{\tiny 15311}\fi};
\node[accepting, state] at (2,-16) (n0n0n0n0n0n2n0n0) {$p?$\,\ifntiny{\tiny 15286}\fi};
\node[accepting, state] at (3,-22) (n0n0n0n0n0n2n1n0n0n0n0) {$p!$\,\ifntiny{\tiny 15294}\fi};
\node[accepting, state] at (3,-14) (n0n0n0n0n0n2n1) {$p!$\,\ifntiny{\tiny 15298}\fi};
\node[state] at (0,-12) (n0n0n0n0n0n0) {$p?$\,\ifntiny{\tiny 15308}\fi};
\node[state] at (2,-10) (n0n0n0n0n0) {$\cup$\,\ifntiny{\tiny 15312}\fi};
\node[state] at (2,-8) (n0n0n0n0) {$p?$\,\ifntiny{\tiny 15313}\fi};
\node[state] at (2,-6) (n0n0n0) {$p?$\,\ifntiny{\tiny 15314}\fi};
\node[state] at (2,-4) (n0n0) {$\cup$\,\ifntiny{\tiny 15316}\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, left] node {b} (n0n0n0n0n0);
\draw[->, thick] (n0n0n0n0n0) edge [near start, left] node {} (n0n0n0n0n0n0);
\draw[->, thick] (n0n0n0n0n0) edge [near start, left] node {} (n0n0n0n0n0n1);
\draw[->, thick] (n0n0n0n0n0) edge [near start, left] node {} (n0n0n0n0n0n2);
\draw[->, thick] (n0n0n0n0n0n0) edge [near start, right, bend right] node {b} (n0n0);
\draw[->, thick] (n0n0n0n0n0n1) edge [near start, left] node {a} (n0n0n0n0n0n1n0);
\draw[->, thick] (n0n0n0n0n0n1n0) edge [near start, right, bend right] node {b} (n);
\draw[->, thick] (n0n0n0n0n0n2) edge [near start, left] node {y} (n0n0n0n0n0n2n0);
\draw[->, thick] (n0n0n0n0n0n2) edge [near start, left] node {z} (n0n0n0n0n0n2n1);
\draw[->, thick] (n0n0n0n0n0n2n0) edge [near start, left] node {u} (n0n0n0n0n0n2n0n0);
\draw[->, thick] (n0n0n0n0n0n2n0n0) edge [near start, left] node {b} (n0n0n0n0n0n2n0n0n0);
\draw[->, thick] (n0n0n0n0n0n2n0n0n0) edge [near start, left] node {a} (n0n0n0n0n0n2n0n0n0n0);
\draw[->, thick] (n0n0n0n0n0n2n0n0n0n0) edge [near start, left] node {b} (n0n0n0n0n0n2n0n0n0n0n0);
\draw[->, thick] (n0n0n0n0n0n2n0n0n0n0n0) edge [near start, right, bend right] node {x} (n0n0n0n0n0n2);
\draw[->, thick] (n0n0n0n0n0n2n1) edge [near start, left] node {v} (n0n0n0n0n0n2n1n0);
\draw[->, thick] (n0n0n0n0n0n2n1n0) edge [near start, left] node {b} (n0n0n0n0n0n2n1n0n0);
\draw[->, thick] (n0n0n0n0n0n2n1n0n0) edge [near start, left] node {a} (n0n0n0n0n0n2n1n0n0n0);
\draw[->, thick] (n0n0n0n0n0n2n1n0n0n0) edge [near start, left] node {b} (n0n0n0n0n0n2n1n0n0n0n0);
\draw[->, thick] (n0n0n0n0n0n2n1n0n0n0n0) edge [near start, right, bend right] node {x} (n0n0n0n0n0n2);
\draw[->, thick] (n0n0n1) edge [near start, left, bend left] node {b} (n0n0);
\draw[->, thick] (n1) edge [near start, left] node {a} (n1n0);
\draw[->, thick] (n1n0) edge [near start, left, bend left] node {b} (n);

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