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

\node[state] at (6,-18) (n0n1n0n0n1n0n0n0n0) {$\cup$\,\ifntiny{\tiny 62384}\fi};
\node[accepting, state] at (8,-30) (n0n1n0n0n1n0n0n0n0n1n0n1n0n0n0) {$p?$\,\ifntiny{\tiny 62346}\fi};
\node[state] at (6,-16) (n0n1n0n0n1n0n0n0) {$p?$\,\ifntiny{\tiny 62385}\fi};
\node[accepting, state] at (8,-28) (n0n1n0n0n1n0n0n0n0n1n0n1n0n0) {$p?$\,\ifntiny{\tiny 62347}\fi};
\node[initial, state] at (5,0) (n) {$p?$\,\ifntiny{\tiny 62394}\fi};
\node[state] at (6,-24) (n0n1n0n0n1n0n0n0n0n1n0n0) {$p?$\,\ifntiny{\tiny 62381}\fi};
\node[state] at (6,-4) (n0n1) {$p?$\,\ifntiny{\tiny 62392}\fi};
\node[state] at (3,-14) (n0n1n0n0n0n0n1) {$p?$\,\ifntiny{\tiny 62369}\fi};
\node[accepting, state] at (8,-38) (n0n1n0n0n1n0n0n0n0n1n0n1n0n0n0n0n0n0n0) {$p!$\,\ifntiny{\tiny 62342}\fi};
\node[state] at (7,-10) (n0n1n0n0n1) {$p?$\,\ifntiny{\tiny 62389}\fi};
\node[accepting, state] at (8,-34) (n0n1n0n0n1n0n0n0n0n1n0n1n0n0n0n0n0) {$p?$\,\ifntiny{\tiny 62344}\fi};
\node[accepting, state] at (8,-32) (n0n1n0n0n1n0n0n0n0n1n0n1n0n0n0n0) {$p?$\,\ifntiny{\tiny 62345}\fi};
\node[accepting, state] at (8,-36) (n0n1n0n0n1n0n0n0n0n1n0n1n0n0n0n0n0n0) {$p?$\,\ifntiny{\tiny 62343}\fi};
\node[state] at (7,-14) (n0n1n0n0n1n0n0) {$\cup$\,\ifntiny{\tiny 62387}\fi};
\node[state] at (9,-16) (n0n1n0n0n1n0n0n1) {$p?$\,\ifntiny{\tiny 62386}\fi};
\node[state] at (2,-14) (n0n1n0n0n0n0n0) {$p?$\,\ifntiny{\tiny 62368}\fi};
\node[state] at (6,-6) (n0n1n0) {$p?$\,\ifntiny{\tiny 62391}\fi};
\node[state] at (3,-12) (n0n1n0n0n0n0) {$\cup$\,\ifntiny{\tiny 62370}\fi};
\node[accepting, state] at (8,-26) (n0n1n0n0n1n0n0n0n0n1n0n1n0) {$p?$\,\ifntiny{\tiny 62348}\fi};
\node[state] at (4,-24) (n0n1n0n0n1n0n0n0n0n0n0n0) {$p?$\,\ifntiny{\tiny 62376}\fi};
\node[state] at (0,-8) (n0n0n0n0) {$p?$\,\ifntiny{\tiny 62361}\fi};
\node[state] at (1,-6) (n0n0n0) {$\cup$\,\ifntiny{\tiny 62363}\fi};
\node[state] at (1,-4) (n0n0) {$p?$\,\ifntiny{\tiny 62364}\fi};
\node[accepting, state] at (8,-24) (n0n1n0n0n1n0n0n0n0n1n0n1) {$p?$\,\ifntiny{\tiny 62349}\fi};
\node[state] at (5,-24) (n0n1n0n0n1n0n0n0n0n0n0n1) {$p?$\,\ifntiny{\tiny 62377}\fi};
\node[state] at (5,-22) (n0n1n0n0n1n0n0n0n0n0n0) {$\cup$\,\ifntiny{\tiny 62378}\fi};
\node[state] at (7,-22) (n0n1n0n0n1n0n0n0n0n1n0) {$\cup$\,\ifntiny{\tiny 62382}\fi};
\node[state] at (6,-8) (n0n1n0n0) {$\cup$\,\ifntiny{\tiny 62390}\fi};
\node[state] at (1,-8) (n0n0n0n1) {$p?$\,\ifntiny{\tiny 62362}\fi};
\node[state] at (7,-12) (n0n1n0n0n1n0) {$p?$\,\ifntiny{\tiny 62388}\fi};
\node[state] at (5,-2) (n0) {$\cup$\,\ifntiny{\tiny 62393}\fi};
\node[state] at (5,-20) (n0n1n0n0n1n0n0n0n0n0) {$p?$\,\ifntiny{\tiny 62379}\fi};
\node[state] at (7,-20) (n0n1n0n0n1n0n0n0n0n1) {$p?$\,\ifntiny{\tiny 62383}\fi};
\node[state] at (3,-10) (n0n1n0n0n0) {$p?$\,\ifntiny{\tiny 62371}\fi};

\draw[->, thick] (n) edge [near start, left] node {a} (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 {a} (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, right, bend right] node {a} (n0n0n0);
\draw[->, thick] (n0n0n0n1) edge [near start, right, bend right] node {b} (n);
\draw[->, thick] (n0n1) edge [near start, left] node {b} (n0n1n0);
\draw[->, thick] (n0n1n0) edge [near start, left] node {a} (n0n1n0n0);
\draw[->, thick] (n0n1n0n0) edge [near start, left] node {} (n0n1n0n0n0);
\draw[->, thick] (n0n1n0n0) edge [near start, left] node {} (n0n1n0n0n1);
\draw[->, thick] (n0n1n0n0n0) edge [near start, left] node {a} (n0n1n0n0n0n0);
\draw[->, thick] (n0n1n0n0n0n0) edge [near start, left] node {} (n0n1n0n0n0n0n0);
\draw[->, thick] (n0n1n0n0n0n0) edge [near start, left] node {} (n0n1n0n0n0n0n1);
\draw[->, thick] (n0n1n0n0n0n0n0) edge [near start, right, bend right] node {a} (n0n1n0n0n0n0);
\draw[->, thick] (n0n1n0n0n0n0n1) edge [near start, right, bend right] node {b} (n);
\draw[->, thick] (n0n1n0n0n1) edge [near start, left] node {b} (n0n1n0n0n1n0);
\draw[->, thick] (n0n1n0n0n1n0) edge [near start, left] node {a} (n0n1n0n0n1n0n0);
\draw[->, thick] (n0n1n0n0n1n0n0) edge [near start, left] node {} (n0n1n0n0n1n0n0n0);
\draw[->, thick] (n0n1n0n0n1n0n0) edge [near start, left] node {} (n0n1n0n0n1n0n0n1);
\draw[->, thick] (n0n1n0n0n1n0n0n0) edge [near start, left] node {a} (n0n1n0n0n1n0n0n0n0);
\draw[->, thick] (n0n1n0n0n1n0n0n0n0) edge [near start, left] node {} (n0n1n0n0n1n0n0n0n0n0);
\draw[->, thick] (n0n1n0n0n1n0n0n0n0) edge [near start, left] node {} (n0n1n0n0n1n0n0n0n0n1);
\draw[->, thick] (n0n1n0n0n1n0n0n0n0n0) edge [near start, left] node {a} (n0n1n0n0n1n0n0n0n0n0n0);
\draw[->, thick] (n0n1n0n0n1n0n0n0n0n0n0) edge [near start, left] node {} (n0n1n0n0n1n0n0n0n0n0n0n0);
\draw[->, thick] (n0n1n0n0n1n0n0n0n0n0n0) edge [near start, left] node {} (n0n1n0n0n1n0n0n0n0n0n0n1);
\draw[->, thick] (n0n1n0n0n1n0n0n0n0n0n0n0) edge [near start, right, bend right] node {a} (n0n1n0n0n1n0n0n0n0n0n0);
\draw[->, thick] (n0n1n0n0n1n0n0n0n0n0n0n1) edge [near start, right, bend right] node {b} (n);
\draw[->, thick] (n0n1n0n0n1n0n0n0n0n1) edge [near start, left] node {b} (n0n1n0n0n1n0n0n0n0n1n0);
\draw[->, thick] (n0n1n0n0n1n0n0n0n0n1n0) edge [near start, left] node {} (n0n1n0n0n1n0n0n0n0n1n0n0);
\draw[->, thick] (n0n1n0n0n1n0n0n0n0n1n0) edge [near start, left] node {} (n0n1n0n0n1n0n0n0n0n1n0n1);
\draw[->, thick] (n0n1n0n0n1n0n0n0n0n1n0n0) edge [near start, left, bend left] node {a} (n0);
\draw[->, thick] (n0n1n0n0n1n0n0n0n0n1n0n1) edge [near start, left] node {a} (n0n1n0n0n1n0n0n0n0n1n0n1n0);
\draw[->, thick] (n0n1n0n0n1n0n0n0n0n1n0n1n0) edge [near start, left] node {b} (n0n1n0n0n1n0n0n0n0n1n0n1n0n0);
\draw[->, thick] (n0n1n0n0n1n0n0n0n0n1n0n1n0n0) edge [near start, left] node {a} (n0n1n0n0n1n0n0n0n0n1n0n1n0n0n0);
\draw[->, thick] (n0n1n0n0n1n0n0n0n0n1n0n1n0n0n0) edge [near start, left] node {b} (n0n1n0n0n1n0n0n0n0n1n0n1n0n0n0n0);
\draw[->, thick] (n0n1n0n0n1n0n0n0n0n1n0n1n0n0n0n0) edge [near start, left] node {a} (n0n1n0n0n1n0n0n0n0n1n0n1n0n0n0n0n0);
\draw[->, thick] (n0n1n0n0n1n0n0n0n0n1n0n1n0n0n0n0n0) edge [near start, left] node {a} (n0n1n0n0n1n0n0n0n0n1n0n1n0n0n0n0n0n0);
\draw[->, thick] (n0n1n0n0n1n0n0n0n0n1n0n1n0n0n0n0n0n0) edge [near start, left] node {b} (n0n1n0n0n1n0n0n0n0n1n0n1n0n0n0n0n0n0n0);
\draw[->, thick] (n0n1n0n0n1n0n0n0n0n1n0n1n0n0n0n0n0n0n0) edge [near start, right, bend right] node {x} (n0n1n0n0n1n0n0n0n0n1n0n1);
\draw[->, thick] (n0n1n0n0n1n0n0n0n0n1n0n1n0n0n0n0n0n0n0) edge [near start, right, bend right] node {y} (n0n1n0n0n1n0n0n0n0n1n0n1);
\draw[->, thick] (n0n1n0n0n1n0n0n1) edge [near start, left, bend left] node {b} (n0n1n0n0n1n0);

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