\documentclass{article}
\usepackage{a4wide}
\usepackage{adjustbox}
\usepackage{fancyhdr}
\usepackage{tikz}
\usepackage{ifthen}
\usetikzlibrary{automata}
\usepackage{datetime}
\lhead{./certificates/GPSYex192-GPSYex191/sim-6.tex}
\rhead{11:43:10.766 on 2025-03-31}
\fancyfoot{}
\begin{document}
\newif\ifntiny
%\ntinyfalse
\ntinytrue
\thispagestyle{fancy}
\begin{center}
\maxsizebox{!}{0.475\textheight}{
\minsizebox{\textwidth}{!}{
\begin{tabular}{@{}c@{}}
% node count = 10
\begin{tikzpicture}[rotate = 0]
%\begin{tikzpicture}[rotate = 90]
\tikzset{initial text=$ $}

\node[accepting, state] at (5,-2) (n1) {$p?$\,\ifntiny{\tiny 19}\fi};
\node[accepting, state] at (4,-4) (n1n0) {$p!$\,\ifntiny{\tiny 15}\fi};
\node[initial, state] at (3,0) (n) {$\cup$\,\ifntiny{\tiny 129}\fi};
\node[state] at (1,-4) (n0n0) {$\cup$\,\ifntiny{\tiny 127}\fi};
\node[accepting, state] at (3,-4) (n0n1) {$p!$\,\ifntiny{\tiny 101}\fi};
\node[state] at (2,-2) (n0) {$p?$\,\ifntiny{\tiny 128}\fi};
\node[accepting, state] at (1,-8) (n0n0n1n0) {$p!$\,\ifntiny{\tiny 75}\fi};
\node[accepting, state] at (2,-8) (n0n0n1n1) {$p!$\,\ifntiny{\tiny 82}\fi};
\node[accepting, state] at (2,-6) (n0n0n1) {$p?$\,\ifntiny{\tiny 83}\fi};
\node[accepting, state] at (5,-4) (n1n1) {$p!$\,\ifntiny{\tiny 18}\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 {l1} (n0n0);
\draw[->, thick] (n0) edge [near start, left] node {l2} (n0n1);
\draw[->, thick] (n0n0) edge [near start, right, bend right] node {} (n0);
\draw[->, thick] (n0n0) edge [near start, left] node {} (n0n0n1);
\draw[->, thick] (n0n0n1) edge [near start, left] node {l1} (n0n0n1n0);
\draw[->, thick] (n0n0n1) edge [near start, left] node {l2} (n0n0n1n1);
\draw[->, thick] (n0n0n1n0) edge [near start, right, bend right] node {l3} (n0n0n1);
\draw[->, thick] (n0n0n1n1) edge [near start, above, loop left] node {l3} (n0n0n1n1);
\draw[->, thick] (n0n1) edge [near start, above, loop left] node {l3} (n0n1);
\draw[->, thick] (n1) edge [near start, left] node {l1} (n1n0);
\draw[->, thick] (n1) edge [near start, left] node {l2} (n1n1);
\draw[->, thick] (n1n0) edge [near start, right, bend right] node {l3} (n1);
\draw[->, thick] (n1n1) edge [near start, above, loop left] node {l3} (n1n1);

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