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

\node[accepting, state] at (5,-26) (n0n0n1n0n0n2n0n0n0n0n0n1n0) {$p?$\,\ifntiny{\tiny 14242}\fi};
\node[accepting, state] at (12,-28) (n1n0n0n2n0n0n0n0n0n1n0n0n0n0) {$p!$\,\ifntiny{\tiny 14340}\fi};
\node[state] at (9,-6) (n1n0n0) {$\cup$\,\ifntiny{\tiny 14351}\fi};
\node[accepting, state] at (12,-26) (n1n0n0n2n0n0n0n0n0n1n0n0n0) {$p?$\,\ifntiny{\tiny 14341}\fi};
\node[state] at (9,-16) (n1n0n0n1n0n0n0n0) {$\cup$\,\ifntiny{\tiny 14303}\fi};
\node[state] at (3,-2) (n0) {$p?$\,\ifntiny{\tiny 14254}\fi};
\node[accepting, state] at (12,-20) (n1n0n0n2n0n0n0n0n0n1) {$p!$\,\ifntiny{\tiny 14344}\fi};
\node[state] at (7,-12) (n1n0n0n0n0n1) {$p?$\,\ifntiny{\tiny 14277}\fi};
\node[accepting, state] at (12,-14) (n1n0n0n2n0n0n0) {$p?$\,\ifntiny{\tiny 14347}\fi};
\node[state] at (9,-2) (n1) {$p?$\,\ifntiny{\tiny 14353}\fi};
\node[state] at (9,-14) (n1n0n0n1n0n0n0) {$p?$\,\ifntiny{\tiny 14304}\fi};
\node[accepting, state] at (12,-8) (n1n0n0n2) {$p!$\,\ifntiny{\tiny 14350}\fi};
\node[state] at (3,-14) (n0n0n1n0n0n1n0) {$p?$\,\ifntiny{\tiny 14132}\fi};
\node[state] at (9,-12) (n1n0n0n1n0n0) {$\cup$\,\ifntiny{\tiny 14310}\fi};
\node[accepting, state] at (12,-22) (n1n0n0n2n0n0n0n0n0n1n0) {$p?$\,\ifntiny{\tiny 14343}\fi};
\node[accepting, state] at (5,-22) (n0n0n1n0n0n2n0n0n0n0n0) {$p!$\,\ifntiny{\tiny 14244}\fi};
\node[accepting, state] at (5,-32) (n0n0n1n0n0n2n0n0n0n0n0n1n0n0n0n0) {$p!$\,\ifntiny{\tiny 14239}\fi};
\node[state] at (3,-8) (n0n0n1n0) {$p?$\,\ifntiny{\tiny 14251}\fi};
\node[state] at (6,-12) (n1n0n0n0n0n0) {$p?$\,\ifntiny{\tiny 14269}\fi};
\node[state] at (1,-12) (n0n0n1n0n0n0) {$p?$\,\ifntiny{\tiny 14114}\fi};
\node[state] at (9,-4) (n1n0) {$p?$\,\ifntiny{\tiny 14352}\fi};
\node[state] at (3,-18) (n0n0n1n0n0n1n0n0n1) {$p?$\,\ifntiny{\tiny 14130}\fi};
\node[state] at (7,-10) (n1n0n0n0n0) {$\cup$\,\ifntiny{\tiny 14278}\fi};
\node[state] at (3,-10) (n0n0n1n0n0) {$\cup$\,\ifntiny{\tiny 14250}\fi};
\node[accepting, state] at (12,-24) (n1n0n0n2n0n0n0n0n0n1n0n0) {$p?$\,\ifntiny{\tiny 14342}\fi};
\node[accepting, state] at (12,-12) (n1n0n0n2n0n0) {$p?$\,\ifntiny{\tiny 14348}\fi};
\node[accepting, state] at (12,-10) (n1n0n0n2n0) {$p?$\,\ifntiny{\tiny 14349}\fi};
\node[state] at (10,-14) (n1n0n0n1n0n0n1) {$p?$\,\ifntiny{\tiny 14309}\fi};
\node[initial, state] at (6,0) (n) {$\cup$\,\ifntiny{\tiny 14354}\fi};
\node[accepting, state] at (12,-16) (n1n0n0n2n0n0n0n0) {$p!$\,\ifntiny{\tiny 14346}\fi};
\node[state] at (0,-6) (n0n0n0) {$p?$\,\ifntiny{\tiny 14103}\fi};
\node[state] at (3,-4) (n0n0) {$\cup$\,\ifntiny{\tiny 14253}\fi};
\node[state] at (3,-12) (n0n0n1n0n0n1) {$p?$\,\ifntiny{\tiny 14133}\fi};
\node[accepting, state] at (5,-14) (n0n0n1n0n0n2n0) {$p?$\,\ifntiny{\tiny 14248}\fi};
\node[accepting, state] at (12,-18) (n1n0n0n2n0n0n0n0n0) {$p!$\,\ifntiny{\tiny 14345}\fi};
\node[accepting, state] at (5,-30) (n0n0n1n0n0n2n0n0n0n0n0n1n0n0n0) {$p?$\,\ifntiny{\tiny 14240}\fi};
\node[state] at (9,-18) (n1n0n0n1n0n0n0n0n1) {$p?$\,\ifntiny{\tiny 14302}\fi};
\node[accepting, state] at (5,-18) (n0n0n1n0n0n2n0n0n0) {$p?$\,\ifntiny{\tiny 14246}\fi};
\node[accepting, state] at (5,-20) (n0n0n1n0n0n2n0n0n0n0) {$p!$\,\ifntiny{\tiny 14245}\fi};
\node[accepting, state] at (5,-16) (n0n0n1n0n0n2n0n0) {$p?$\,\ifntiny{\tiny 14247}\fi};
\node[state] at (9,-8) (n1n0n0n1) {$p?$\,\ifntiny{\tiny 14312}\fi};
\node[state] at (3,-6) (n0n0n1) {$p?$\,\ifntiny{\tiny 14252}\fi};
\node[state] at (7,-14) (n1n0n0n0n0n1n0) {$p?$\,\ifntiny{\tiny 14276}\fi};
\node[accepting, state] at (5,-12) (n0n0n1n0n0n2) {$p!$\,\ifntiny{\tiny 14249}\fi};
\node[accepting, state] at (5,-28) (n0n0n1n0n0n2n0n0n0n0n0n1n0n0) {$p?$\,\ifntiny{\tiny 14241}\fi};
\node[state] at (3,-16) (n0n0n1n0n0n1n0n0) {$\cup$\,\ifntiny{\tiny 14131}\fi};
\node[state] at (7,-8) (n1n0n0n0) {$p?$\,\ifntiny{\tiny 14279}\fi};
\node[state] at (9,-20) (n1n0n0n1n0n0n0n0n1n0) {$p?$\,\ifntiny{\tiny 14301}\fi};
\node[state] at (9,-10) (n1n0n0n1n0) {$p?$\,\ifntiny{\tiny 14311}\fi};
\node[state] at (2,-18) (n0n0n1n0n0n1n0n0n0) {$p?$\,\ifntiny{\tiny 14125}\fi};
\node[state] at (8,-18) (n1n0n0n1n0n0n0n0n0) {$p?$\,\ifntiny{\tiny 14294}\fi};
\node[accepting, state] at (5,-24) (n0n0n1n0n0n2n0n0n0n0n0n1) {$p!$\,\ifntiny{\tiny 14243}\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, right, bend right] node {b} (n0n0);
\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 {} (n0n0n1n0n0n0);
\draw[->, thick] (n0n0n1n0n0) edge [near start, left] node {} (n0n0n1n0n0n1);
\draw[->, thick] (n0n0n1n0n0) edge [near start, left] node {} (n0n0n1n0n0n2);
\draw[->, thick] (n0n0n1n0n0n0) edge [near start, right, bend right] node {b} (n0n0);
\draw[->, thick] (n0n0n1n0n0n1) edge [near start, left] node {a} (n0n0n1n0n0n1n0);
\draw[->, thick] (n0n0n1n0n0n1n0) edge [near start, left] node {b} (n0n0n1n0n0n1n0n0);
\draw[->, thick] (n0n0n1n0n0n1n0n0) edge [near start, left] node {} (n0n0n1n0n0n1n0n0n0);
\draw[->, thick] (n0n0n1n0n0n1n0n0) edge [near start, left] node {} (n0n0n1n0n0n1n0n0n1);
\draw[->, thick] (n0n0n1n0n0n1n0n0n0) edge [near start, right, bend right] node {b} (n0n0);
\draw[->, thick] (n0n0n1n0n0n1n0n0n1) edge [near start, right, bend right] node {a} (n0n0n1n0n0n1n0);
\draw[->, thick] (n0n0n1n0n0n2) edge [near start, left] node {u} (n0n0n1n0n0n2n0);
\draw[->, thick] (n0n0n1n0n0n2n0) edge [near start, left] node {b} (n0n0n1n0n0n2n0n0);
\draw[->, thick] (n0n0n1n0n0n2n0n0) edge [near start, left] node {a} (n0n0n1n0n0n2n0n0n0);
\draw[->, thick] (n0n0n1n0n0n2n0n0n0) edge [near start, left] node {b} (n0n0n1n0n0n2n0n0n0n0);
\draw[->, thick] (n0n0n1n0n0n2n0n0n0n0) edge [near start, left] node {x} (n0n0n1n0n0n2n0n0n0n0n0);
\draw[->, thick] (n0n0n1n0n0n2n0n0n0n0n0) edge [near start, right, bend right] node {y} (n0n0n1n0n0n2);
\draw[->, thick] (n0n0n1n0n0n2n0n0n0n0n0) edge [near start, left] node {z} (n0n0n1n0n0n2n0n0n0n0n0n1);
\draw[->, thick] (n0n0n1n0n0n2n0n0n0n0n0n1) edge [near start, left] node {v} (n0n0n1n0n0n2n0n0n0n0n0n1n0);
\draw[->, thick] (n0n0n1n0n0n2n0n0n0n0n0n1n0) edge [near start, left] node {b} (n0n0n1n0n0n2n0n0n0n0n0n1n0n0);
\draw[->, thick] (n0n0n1n0n0n2n0n0n0n0n0n1n0n0) edge [near start, left] node {a} (n0n0n1n0n0n2n0n0n0n0n0n1n0n0n0);
\draw[->, thick] (n0n0n1n0n0n2n0n0n0n0n0n1n0n0n0) edge [near start, left] node {b} (n0n0n1n0n0n2n0n0n0n0n0n1n0n0n0n0);
\draw[->, thick] (n0n0n1n0n0n2n0n0n0n0n0n1n0n0n0n0) edge [near start, right, bend right] node {x} (n0n0n1n0n0n2n0n0n0n0n0);
\draw[->, thick] (n1) edge [near start, left] node {a} (n1n0);
\draw[->, thick] (n1n0) edge [near start, left] node {b} (n1n0n0);
\draw[->, thick] (n1n0n0) edge [near start, left] node {} (n1n0n0n0);
\draw[->, thick] (n1n0n0) edge [near start, left] node {} (n1n0n0n1);
\draw[->, thick] (n1n0n0) edge [near start, left] node {} (n1n0n0n2);
\draw[->, thick] (n1n0n0n0) edge [near start, left] node {b} (n1n0n0n0n0);
\draw[->, thick] (n1n0n0n0n0) edge [near start, left] node {} (n1n0n0n0n0n0);
\draw[->, thick] (n1n0n0n0n0) edge [near start, left] node {} (n1n0n0n0n0n1);
\draw[->, thick] (n1n0n0n0n0n0) edge [near start, right, bend right] node {b} (n1n0n0n0n0);
\draw[->, thick] (n1n0n0n0n0n1) edge [near start, left] node {a} (n1n0n0n0n0n1n0);
\draw[->, thick] (n1n0n0n0n0n1n0) edge [near start, right, bend right] node {b} (n1n0n0);
\draw[->, thick] (n1n0n0n1) edge [near start, left] node {a} (n1n0n0n1n0);
\draw[->, thick] (n1n0n0n1n0) edge [near start, left] node {b} (n1n0n0n1n0n0);
\draw[->, thick] (n1n0n0n1n0n0) edge [near start, left] node {} (n1n0n0n1n0n0n0);
\draw[->, thick] (n1n0n0n1n0n0) edge [near start, left] node {} (n1n0n0n1n0n0n1);
\draw[->, thick] (n1n0n0n1n0n0n0) edge [near start, left] node {b} (n1n0n0n1n0n0n0n0);
\draw[->, thick] (n1n0n0n1n0n0n0n0) edge [near start, left] node {} (n1n0n0n1n0n0n0n0n0);
\draw[->, thick] (n1n0n0n1n0n0n0n0) edge [near start, left] node {} (n1n0n0n1n0n0n0n0n1);
\draw[->, thick] (n1n0n0n1n0n0n0n0n0) edge [near start, right, bend right] node {b} (n1n0n0n1n0n0n0n0);
\draw[->, thick] (n1n0n0n1n0n0n0n0n1) edge [near start, left] node {a} (n1n0n0n1n0n0n0n0n1n0);
\draw[->, thick] (n1n0n0n1n0n0n0n0n1n0) edge [near start, right, bend right] node {b} (n1n0n0);
\draw[->, thick] (n1n0n0n1n0n0n1) edge [near start, left, bend left] node {a} (n1n0n0n1n0);
\draw[->, thick] (n1n0n0n2) edge [near start, left] node {u} (n1n0n0n2n0);
\draw[->, thick] (n1n0n0n2n0) edge [near start, left] node {b} (n1n0n0n2n0n0);
\draw[->, thick] (n1n0n0n2n0n0) edge [near start, left] node {a} (n1n0n0n2n0n0n0);
\draw[->, thick] (n1n0n0n2n0n0n0) edge [near start, left] node {b} (n1n0n0n2n0n0n0n0);
\draw[->, thick] (n1n0n0n2n0n0n0n0) edge [near start, left] node {x} (n1n0n0n2n0n0n0n0n0);
\draw[->, thick] (n1n0n0n2n0n0n0n0n0) edge [near start, right, bend right] node {y} (n1n0n0n2);
\draw[->, thick] (n1n0n0n2n0n0n0n0n0) edge [near start, left] node {z} (n1n0n0n2n0n0n0n0n0n1);
\draw[->, thick] (n1n0n0n2n0n0n0n0n0n1) edge [near start, left] node {v} (n1n0n0n2n0n0n0n0n0n1n0);
\draw[->, thick] (n1n0n0n2n0n0n0n0n0n1n0) edge [near start, left] node {b} (n1n0n0n2n0n0n0n0n0n1n0n0);
\draw[->, thick] (n1n0n0n2n0n0n0n0n0n1n0n0) edge [near start, left] node {a} (n1n0n0n2n0n0n0n0n0n1n0n0n0);
\draw[->, thick] (n1n0n0n2n0n0n0n0n0n1n0n0n0) edge [near start, left] node {b} (n1n0n0n2n0n0n0n0n0n1n0n0n0n0);
\draw[->, thick] (n1n0n0n2n0n0n0n0n0n1n0n0n0n0) edge [near start, right, bend right] node {x} (n1n0n0n2n0n0n0n0n0);

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