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

\node[accepting, state] at (3,-10) (n0n0n1n0n0) {$p?$\,\ifntiny{\tiny 60917}\fi};
\node[initial, state] at (5,0) (n) {$\cup$\,\ifntiny{\tiny 61275}\fi};
\node[accepting, state] at (6,-10) (n1n0n0n0n1) {$p?$\,\ifntiny{\tiny 59834}\fi};
\node[accepting, state] at (9,-8) (n2n0n0n0) {$p?$\,\ifntiny{\tiny 59831}\fi};
\node[accepting, state] at (6,-16) (n1n0n0n0n1n0n0n0) {$p?$\,\ifntiny{\tiny 59831}\fi};
\node[state] at (2,-2) (n0) {$p?$\,\ifntiny{\tiny 61274}\fi};
\node[accepting, state] at (9,-2) (n2) {$p?$\,\ifntiny{\tiny 59834}\fi};
\node[accepting, state] at (9,-12) (n2n0n0n0n0n0) {$p?$\,\ifntiny{\tiny 59829}\fi};
\node[accepting, state] at (9,-14) (n2n0n0n0n0n0n0) {$p?$\,\ifntiny{\tiny 59828}\fi};
\node[accepting, state] at (6,-22) (n1n0n0n0n1n0n0n0n0n0n0) {$p?$\,\ifntiny{\tiny 59828}\fi};
\node[state] at (6,-2) (n1) {$p?$\,\ifntiny{\tiny 61268}\fi};
\node[accepting, state] at (3,-16) (n0n0n1n0n0n0n0n0) {$p?$\,\ifntiny{\tiny 60914}\fi};
\node[accepting, state] at (9,-4) (n2n0) {$p?$\,\ifntiny{\tiny 59833}\fi};
\node[accepting, state] at (3,-8) (n0n0n1n0) {$p?$\,\ifntiny{\tiny 60918}\fi};
\node[accepting, state] at (9,-10) (n2n0n0n0n0) {$p?$\,\ifntiny{\tiny 59830}\fi};
\node[accepting, state] at (3,-12) (n0n0n1n0n0n0) {$p?$\,\ifntiny{\tiny 60916}\fi};
\node[accepting, state] at (6,-18) (n1n0n0n0n1n0n0n0n0) {$p?$\,\ifntiny{\tiny 59830}\fi};
\node[accepting, state] at (6,-20) (n1n0n0n0n1n0n0n0n0n0) {$p?$\,\ifntiny{\tiny 59829}\fi};
\node[state] at (6,-4) (n1n0) {$\cup$\,\ifntiny{\tiny 61267}\fi};
\node[accepting, state] at (3,-18) (n0n0n1n0n0n0n0n0n0) {$p?$\,\ifntiny{\tiny 60913}\fi};
\node[accepting, state] at (3,-14) (n0n0n1n0n0n0n0) {$p?$\,\ifntiny{\tiny 60915}\fi};
\node[accepting, state] at (3,-20) (n0n0n1n0n0n0n0n0n0n0) {$p!$\,\ifntiny{\tiny 60912}\fi};
\node[state] at (1,-8) (n0n0n0n0) {$\cup$\,\ifntiny{\tiny 61271}\fi};
\node[state] at (1,-6) (n0n0n0) {$p?$\,\ifntiny{\tiny 61272}\fi};
\node[state] at (2,-4) (n0n0) {$\cup$\,\ifntiny{\tiny 61273}\fi};
\node[accepting, state] at (9,-16) (n2n0n0n0n0n0n0n0) {$p!$\,\ifntiny{\tiny 59827}\fi};
\node[accepting, state] at (3,-6) (n0n0n1) {$p?$\,\ifntiny{\tiny 60919}\fi};
\node[accepting, state] at (6,-24) (n1n0n0n0n1n0n0n0n0n0n0n0) {$p!$\,\ifntiny{\tiny 59827}\fi};
\node[state] at (5,-6) (n1n0n0) {$p?$\,\ifntiny{\tiny 61265}\fi};
\node[accepting, state] at (6,-14) (n1n0n0n0n1n0n0) {$p?$\,\ifntiny{\tiny 59832}\fi};
\node[accepting, state] at (9,-6) (n2n0n0) {$p?$\,\ifntiny{\tiny 59832}\fi};
\node[state] at (5,-8) (n1n0n0n0) {$\cup$\,\ifntiny{\tiny 61264}\fi};
\node[accepting, state] at (6,-12) (n1n0n0n0n1n0) {$p?$\,\ifntiny{\tiny 59833}\fi};

\draw[->, thick] (n) edge [near start, left] node {} (n0);
\draw[->, thick] (n) edge [near start, left] node {} (n1);
\draw[->, thick] (n) edge [near start, left] node {} (n2);
\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, right, bend right] node {} (n0n0n0);
\draw[->, thick] (n0n0n0n0) edge [near start, right, bend right] node {} (n0);
\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 {a} (n0n0n1n0n0n0);
\draw[->, thick] (n0n0n1n0n0n0) edge [near start, left] node {b} (n0n0n1n0n0n0n0);
\draw[->, thick] (n0n0n1n0n0n0n0) edge [near start, left] node {a} (n0n0n1n0n0n0n0n0);
\draw[->, thick] (n0n0n1n0n0n0n0n0) edge [near start, left] node {a} (n0n0n1n0n0n0n0n0n0);
\draw[->, thick] (n0n0n1n0n0n0n0n0n0) edge [near start, left] node {b} (n0n0n1n0n0n0n0n0n0n0);
\draw[->, thick] (n0n0n1n0n0n0n0n0n0n0) edge [near start, right, bend right] node {x} (n0n0n1);
\draw[->, thick] (n0n0n1n0n0n0n0n0n0n0) edge [near start, right, bend right] node {y} (n0n0n1);
\draw[->, thick] (n1) edge [near start, left] node {a} (n1n0);
\draw[->, thick] (n1n0) edge [near start, left] node {} (n1n0n0);
\draw[->, thick] (n1n0) edge [near start, right, bend right] node {} (n1);
\draw[->, thick] (n1n0n0) edge [near start, left] node {b} (n1n0n0n0);
\draw[->, thick] (n1n0n0n0) edge [near start, right, bend right] node {} (n1);
\draw[->, thick] (n1n0n0n0) edge [near start, left] node {} (n1n0n0n0n1);
\draw[->, thick] (n1n0n0n0n1) edge [near start, left] node {a} (n1n0n0n0n1n0);
\draw[->, thick] (n1n0n0n0n1n0) edge [near start, left] node {b} (n1n0n0n0n1n0n0);
\draw[->, thick] (n1n0n0n0n1n0n0) edge [near start, left] node {a} (n1n0n0n0n1n0n0n0);
\draw[->, thick] (n1n0n0n0n1n0n0n0) edge [near start, left] node {b} (n1n0n0n0n1n0n0n0n0);
\draw[->, thick] (n1n0n0n0n1n0n0n0n0) edge [near start, left] node {a} (n1n0n0n0n1n0n0n0n0n0);
\draw[->, thick] (n1n0n0n0n1n0n0n0n0n0) edge [near start, left] node {a} (n1n0n0n0n1n0n0n0n0n0n0);
\draw[->, thick] (n1n0n0n0n1n0n0n0n0n0n0) edge [near start, left] node {b} (n1n0n0n0n1n0n0n0n0n0n0n0);
\draw[->, thick] (n1n0n0n0n1n0n0n0n0n0n0n0) edge [near start, right, bend right] node {x} (n1n0n0n0n1);
\draw[->, thick] (n1n0n0n0n1n0n0n0n0n0n0n0) edge [near start, right, bend right] node {y} (n1n0n0n0n1);
\draw[->, thick] (n2) edge [near start, left] node {a} (n2n0);
\draw[->, thick] (n2n0) edge [near start, left] node {b} (n2n0n0);
\draw[->, thick] (n2n0n0) edge [near start, left] node {a} (n2n0n0n0);
\draw[->, thick] (n2n0n0n0) edge [near start, left] node {b} (n2n0n0n0n0);
\draw[->, thick] (n2n0n0n0n0) edge [near start, left] node {a} (n2n0n0n0n0n0);
\draw[->, thick] (n2n0n0n0n0n0) edge [near start, left] node {a} (n2n0n0n0n0n0n0);
\draw[->, thick] (n2n0n0n0n0n0n0) edge [near start, left] node {b} (n2n0n0n0n0n0n0n0);
\draw[->, thick] (n2n0n0n0n0n0n0n0) edge [near start, right, bend right] node {x} (n2);
\draw[->, thick] (n2n0n0n0n0n0n0n0) edge [near start, right, bend right] node {y} (n2);

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