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

\node[accepting, state] at (3,-10) (n0n0n0n1n0) {$p?$\,\ifntiny{\tiny 19471}\fi};
\node[accepting, state] at (4,-6) (n0n1n0) {$p?$\,\ifntiny{\tiny 19471}\fi};
\node[initial, state] at (3,0) (n) {$p?$\,\ifntiny{\tiny 19498}\fi};
\node[accepting, state] at (5,-10) (n0n2n0n0n0) {$p!$\,\ifntiny{\tiny 19482}\fi};
\node[accepting, state] at (2,-12) (n0n0n0n0n0n2) {$p!$\,\ifntiny{\tiny 19445}\fi};
\node[accepting, state] at (3,-14) (n0n0n0n1n0n0n0) {$p!$\,\ifntiny{\tiny 19469}\fi};
\node[accepting, state] at (2,-18) (n0n0n0n0n0n2n0n0n0) {$p!$\,\ifntiny{\tiny 19442}\fi};
\node[accepting, state] at (3,-12) (n0n0n0n1n0n0) {$p!$\,\ifntiny{\tiny 19470}\fi};
\node[accepting, state] at (4,-10) (n0n1n0n0n0) {$p!$\,\ifntiny{\tiny 19469}\fi};
\node[accepting, state] at (1,-12) (n0n0n0n0n0n1) {$p?$\,\ifntiny{\tiny 19472}\fi};
\node[accepting, state] at (2,-16) (n0n0n0n0n0n2n0n0) {$p?$\,\ifntiny{\tiny 19443}\fi};
\node[state] at (0,-12) (n0n0n0n0n0n0) {$p?$\,\ifntiny{\tiny 19492}\fi};
\node[state] at (1,-10) (n0n0n0n0n0) {$\cup$\,\ifntiny{\tiny 19493}\fi};
\node[state] at (1,-8) (n0n0n0n0) {$p?$\,\ifntiny{\tiny 19494}\fi};
\node[state] at (2,-6) (n0n0n0) {$\cup$\,\ifntiny{\tiny 19495}\fi};
\node[state] at (2,-4) (n0n0) {$p?$\,\ifntiny{\tiny 19496}\fi};
\node[accepting, state] at (5,-8) (n0n2n0n0) {$p?$\,\ifntiny{\tiny 19483}\fi};
\node[accepting, state] at (4,-4) (n0n1) {$p?$\,\ifntiny{\tiny 19472}\fi};
\node[accepting, state] at (4,-8) (n0n1n0n0) {$p!$\,\ifntiny{\tiny 19470}\fi};
\node[accepting, state] at (3,-8) (n0n0n0n1) {$p?$\,\ifntiny{\tiny 19472}\fi};
\node[accepting, state] at (1,-14) (n0n0n0n0n0n1n0) {$p?$\,\ifntiny{\tiny 19471}\fi};
\node[accepting, state] at (5,-4) (n0n2) {$p!$\,\ifntiny{\tiny 19485}\fi};
\node[accepting, state] at (5,-6) (n0n2n0) {$p?$\,\ifntiny{\tiny 19484}\fi};
\node[accepting, state] at (1,-16) (n0n0n0n0n0n1n0n0) {$p!$\,\ifntiny{\tiny 19470}\fi};
\node[accepting, state] at (2,-14) (n0n0n0n0n0n2n0) {$p?$\,\ifntiny{\tiny 19444}\fi};
\node[state] at (3,-2) (n0) {$\cup$\,\ifntiny{\tiny 19497}\fi};
\node[accepting, state] at (1,-18) (n0n0n0n0n0n1n0n0n0) {$p!$\,\ifntiny{\tiny 19469}\fi};

\draw[->, thick] (n) edge [near start, left] node {b} (n0);
\draw[->, thick] (n0) edge [near start, left] node {} (n0n0);
\draw[->, thick] (n0) edge [near start, left] node {} (n0n1);
\draw[->, thick] (n0) edge [near start, left] node {} (n0n2);
\draw[->, thick] (n0n0) edge [near start, left] node {b} (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, 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} (n0n0n0n0n0);
\draw[->, thick] (n0n0n0n0n0n1) edge [near start, left] node {b} (n0n0n0n0n0n1n0);
\draw[->, thick] (n0n0n0n0n0n1n0) edge [near start, left] node {b} (n0n0n0n0n0n1n0n0);
\draw[->, thick] (n0n0n0n0n0n1n0n0) edge [near start, left] node {a} (n0n0n0n0n0n1n0n0n0);
\draw[->, thick] (n0n0n0n0n0n1n0n0n0) edge [near start, right, bend right] node {a} (n0n0n0n0n0n1);
\draw[->, thick] (n0n0n0n0n0n2) edge [near start, left] node {a} (n0n0n0n0n0n2n0);
\draw[->, thick] (n0n0n0n0n0n2n0) edge [near start, left] node {b} (n0n0n0n0n0n2n0n0);
\draw[->, thick] (n0n0n0n0n0n2n0n0) edge [near start, left] node {b} (n0n0n0n0n0n2n0n0n0);
\draw[->, thick] (n0n0n0n0n0n2n0n0n0) edge [near start, right, bend right] node {a} (n0n0n0n0n0n2);
\draw[->, thick] (n0n0n0n1) edge [near start, left] node {b} (n0n0n0n1n0);
\draw[->, thick] (n0n0n0n1n0) edge [near start, left] node {b} (n0n0n0n1n0n0);
\draw[->, thick] (n0n0n0n1n0n0) edge [near start, left] node {a} (n0n0n0n1n0n0n0);
\draw[->, thick] (n0n0n0n1n0n0n0) edge [near start, right, bend right] node {a} (n0n0n0n1);
\draw[->, thick] (n0n1) edge [near start, left] node {b} (n0n1n0);
\draw[->, thick] (n0n1n0) edge [near start, left] node {b} (n0n1n0n0);
\draw[->, thick] (n0n1n0n0) edge [near start, left] node {a} (n0n1n0n0n0);
\draw[->, thick] (n0n1n0n0n0) edge [near start, right, bend right] node {a} (n0n1);
\draw[->, thick] (n0n2) edge [near start, left] node {a} (n0n2n0);
\draw[->, thick] (n0n2n0) edge [near start, left] node {b} (n0n2n0n0);
\draw[->, thick] (n0n2n0n0) edge [near start, left] node {b} (n0n2n0n0n0);
\draw[->, thick] (n0n2n0n0n0) edge [near start, right, bend right] node {a} (n0n2);

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