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

\node[accepting, state] at (2,-24) (n0n0n0n0n1n0n0n0n0n0n0n0) {$p!$\,\ifntiny{\tiny 59862}\fi};
\node[accepting, state] at (2,-14) (n0n0n0n0n1n0n0) {$p?$\,\ifntiny{\tiny 59867}\fi};
\node[accepting, state] at (7,-6) (n1n0n1) {$p?$\,\ifntiny{\tiny 59987}\fi};
\node[accepting, state] at (2,-12) (n0n0n0n0n1n0) {$p?$\,\ifntiny{\tiny 59868}\fi};
\node[state] at (6,-4) (n1n0) {$\cup$\,\ifntiny{\tiny 60161}\fi};
\node[accepting, state] at (7,-12) (n1n0n1n0n0n0) {$p?$\,\ifntiny{\tiny 59984}\fi};
\node[accepting, state] at (7,-18) (n1n0n1n0n0n0n0n0n0) {$p?$\,\ifntiny{\tiny 59981}\fi};
\node[accepting, state] at (7,-8) (n1n0n1n0) {$p?$\,\ifntiny{\tiny 59986}\fi};
\node[initial, state] at (4,0) (n) {$\cup$\,\ifntiny{\tiny 60167}\fi};
\node[accepting, state] at (7,-20) (n1n0n1n0n0n0n0n0n0n0) {$p!$\,\ifntiny{\tiny 59980}\fi};
\node[accepting, state] at (7,-14) (n1n0n1n0n0n0n0) {$p?$\,\ifntiny{\tiny 59983}\fi};
\node[state] at (2,-2) (n0) {$p?$\,\ifntiny{\tiny 60166}\fi};
\node[accepting, state] at (7,-10) (n1n0n1n0n0) {$p?$\,\ifntiny{\tiny 59985}\fi};
\node[state] at (5,-8) (n1n0n0n0) {$\cup$\,\ifntiny{\tiny 60159}\fi};
\node[accepting, state] at (2,-10) (n0n0n0n0n1) {$p?$\,\ifntiny{\tiny 59869}\fi};
\node[state] at (6,-2) (n1) {$p?$\,\ifntiny{\tiny 60162}\fi};
\node[accepting, state] at (2,-16) (n0n0n0n0n1n0n0n0) {$p?$\,\ifntiny{\tiny 59866}\fi};
\node[accepting, state] at (7,-16) (n1n0n1n0n0n0n0n0) {$p?$\,\ifntiny{\tiny 59982}\fi};
\node[state] at (1,-8) (n0n0n0n0) {$\cup$\,\ifntiny{\tiny 60163}\fi};
\node[state] at (1,-6) (n0n0n0) {$p?$\,\ifntiny{\tiny 60164}\fi};
\node[state] at (2,-4) (n0n0) {$\cup$\,\ifntiny{\tiny 60165}\fi};
\node[accepting, state] at (2,-22) (n0n0n0n0n1n0n0n0n0n0n0) {$p?$\,\ifntiny{\tiny 59863}\fi};
\node[accepting, state] at (2,-18) (n0n0n0n0n1n0n0n0n0) {$p?$\,\ifntiny{\tiny 59865}\fi};
\node[accepting, state] at (2,-20) (n0n0n0n0n1n0n0n0n0n0) {$p?$\,\ifntiny{\tiny 59864}\fi};
\node[state] at (5,-6) (n1n0n0) {$p?$\,\ifntiny{\tiny 60160}\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 {a} (n0n0);
\draw[->, thick] (n0n0) edge [near start, left] node {} (n0n0n0);
\draw[->, thick] (n0n0) edge [near start, right, bend right] node {} (n0);
\draw[->, thick] (n0n0n0) edge [near start, left] node {b} (n0n0n0n0);
\draw[->, thick] (n0n0n0n0) edge [near start, right, bend right] node {} (n0);
\draw[->, thick] (n0n0n0n0) edge [near start, left] node {} (n0n0n0n0n1);
\draw[->, thick] (n0n0n0n0n1) edge [near start, left] node {a} (n0n0n0n0n1n0);
\draw[->, thick] (n0n0n0n0n1n0) edge [near start, left] node {b} (n0n0n0n0n1n0n0);
\draw[->, thick] (n0n0n0n0n1n0n0) edge [near start, left] node {a} (n0n0n0n0n1n0n0n0);
\draw[->, thick] (n0n0n0n0n1n0n0n0) edge [near start, left] node {b} (n0n0n0n0n1n0n0n0n0);
\draw[->, thick] (n0n0n0n0n1n0n0n0n0) edge [near start, left] node {a} (n0n0n0n0n1n0n0n0n0n0);
\draw[->, thick] (n0n0n0n0n1n0n0n0n0n0) edge [near start, left] node {a} (n0n0n0n0n1n0n0n0n0n0n0);
\draw[->, thick] (n0n0n0n0n1n0n0n0n0n0n0) edge [near start, left] node {b} (n0n0n0n0n1n0n0n0n0n0n0n0);
\draw[->, thick] (n0n0n0n0n1n0n0n0n0n0n0n0) edge [near start, right, bend right] node {x} (n0n0n0n0n1);
\draw[->, thick] (n0n0n0n0n1n0n0n0n0n0n0n0) edge [near start, right, bend right] node {y} (n0n0n0n0n1);
\draw[->, thick] (n1) edge [near start, left] node {b} (n1n0);
\draw[->, thick] (n1n0) edge [near start, left] node {} (n1n0n0);
\draw[->, thick] (n1n0) edge [near start, left] node {} (n1n0n1);
\draw[->, thick] (n1n0n0) edge [near start, left] node {a} (n1n0n0n0);
\draw[->, thick] (n1n0n0n0) edge [near start, right, bend right] node {} (n1);
\draw[->, thick] (n1n0n0n0) edge [near start, right, bend right] node {} (n1n0n0);
\draw[->, thick] (n1n0n1) edge [near start, left] node {a} (n1n0n1n0);
\draw[->, thick] (n1n0n1n0) edge [near start, left] node {b} (n1n0n1n0n0);
\draw[->, thick] (n1n0n1n0n0) edge [near start, left] node {a} (n1n0n1n0n0n0);
\draw[->, thick] (n1n0n1n0n0n0) edge [near start, left] node {b} (n1n0n1n0n0n0n0);
\draw[->, thick] (n1n0n1n0n0n0n0) edge [near start, left] node {a} (n1n0n1n0n0n0n0n0);
\draw[->, thick] (n1n0n1n0n0n0n0n0) edge [near start, left] node {a} (n1n0n1n0n0n0n0n0n0);
\draw[->, thick] (n1n0n1n0n0n0n0n0n0) edge [near start, left] node {b} (n1n0n1n0n0n0n0n0n0n0);
\draw[->, thick] (n1n0n1n0n0n0n0n0n0n0) edge [near start, right, bend right] node {x} (n1n0n1);
\draw[->, thick] (n1n0n1n0n0n0n0n0n0n0) edge [near start, right, bend right] node {y} (n1n0n1);

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