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

\node[accepting, state] at (11,-2) (n1) {$p?$\,\ifntiny{\tiny 5911}\fi};
\node[accepting, state] at (9,-10) (n0n1n1n0n1) {$p?$\,\ifntiny{\tiny 5985}\fi};
\node[accepting, state] at (3,-16) (n0n0n0n1n1n0n1n0) {$end$\,\ifntiny{\tiny 5984}\fi};
\node[accepting, state] at (11,-4) (n1n0) {$p?$\,\ifntiny{\tiny 5910}\fi};
\node[state] at (1,-10) (n0n0n0n1n0) {$p?$\,\ifntiny{\tiny 6689}\fi};
\node[accepting, state] at (6,-12) (n0n0n1n1n1n0) {$end$\,\ifntiny{\tiny 5970}\fi};
\node[accepting, state] at (5,-6) (n0n0n1) {$p?$\,\ifntiny{\tiny 5973}\fi};
\node[state] at (5,-2) (n0) {$p?$\,\ifntiny{\tiny 6693}\fi};
\node[accepting, state] at (3,-14) (n0n0n0n1n1n0n1) {$p?$\,\ifntiny{\tiny 5985}\fi};
\node[accepting, state] at (5,-10) (n0n0n1n1n0) {$p?$\,\ifntiny{\tiny 5965}\fi};
\node[accepting, state] at (4,-8) (n0n0n1n0) {$p!$\,\ifntiny{\tiny 5958}\fi};
\node[accepting, state] at (6,-8) (n0n0n1n1) {$p!$\,\ifntiny{\tiny 5972}\fi};
\node[accepting, state] at (12,-6) (n1n0n1) {$p!$\,\ifntiny{\tiny 5909}\fi};
\node[accepting, state] at (11,-8) (n1n0n1n0) {$p?$\,\ifntiny{\tiny 5904}\fi};
\node[accepting, state] at (12,-10) (n1n0n1n1n0) {$end$\,\ifntiny{\tiny 5907}\fi};
\node[state] at (7,-6) (n0n1n0) {$p?$\,\ifntiny{\tiny 6685}\fi};
\node[accepting, state] at (9,-6) (n0n1n1) {$p?$\,\ifntiny{\tiny 5987}\fi};
\node[accepting, state] at (9,-12) (n0n1n1n0n1n0) {$end$\,\ifntiny{\tiny 5984}\fi};
\node[accepting, state] at (3,-12) (n0n0n0n1n1n0) {$p!$\,\ifntiny{\tiny 5986}\fi};
\node[initial, state] at (6,0) (n) {$\cup$\,\ifntiny{\tiny 6694}\fi};
\node[state] at (2,-6) (n0n0n0) {$p?$\,\ifntiny{\tiny 6691}\fi};
\node[state] at (3,-4) (n0n0) {$\cup$\,\ifntiny{\tiny 6692}\fi};
\node[state] at (8,-4) (n0n1) {$\cup$\,\ifntiny{\tiny 6686}\fi};
\node[accepting, state] at (12,-8) (n1n0n1n1) {$p?$\,\ifntiny{\tiny 5908}\fi};
\node[accepting, state] at (9,-8) (n0n1n1n0) {$p!$\,\ifntiny{\tiny 5986}\fi};
\node[accepting, state] at (3,-10) (n0n0n0n1n1) {$p?$\,\ifntiny{\tiny 5987}\fi};
\node[accepting, state] at (6,-10) (n0n0n1n1n1) {$p?$\,\ifntiny{\tiny 5971}\fi};
\node[accepting, state] at (10,-6) (n1n0n0) {$p!$\,\ifntiny{\tiny 5900}\fi};
\node[state] at (2,-8) (n0n0n0n1) {$\cup$\,\ifntiny{\tiny 6690}\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] (n0) edge [near start, left] node {b} (n0n1);
\draw[->, thick] (n0n0) edge [near start, left] node {} (n0n0n0);
\draw[->, thick] (n0n0) edge [near start, left] node {} (n0n0n1);
\draw[->, thick] (n0n0n0) edge [near start, right, bend right] node {a} (n0n0);
\draw[->, thick] (n0n0n0) edge [near start, left] node {b} (n0n0n0n1);
\draw[->, thick] (n0n0n0n1) edge [near start, left] node {} (n0n0n0n1n0);
\draw[->, thick] (n0n0n0n1) edge [near start, left] node {} (n0n0n0n1n1);
\draw[->, thick] (n0n0n0n1n0) edge [near start, right, bend right] node {b} (n0n0n0n1);
\draw[->, thick] (n0n0n0n1n1) edge [near start, left] node {b} (n0n0n0n1n1n0);
\draw[->, thick] (n0n0n0n1n1n0) edge [near start, right, bend right] node {x} (n0n0n0n1n1);
\draw[->, thick] (n0n0n0n1n1n0) edge [near start, left] node {y} (n0n0n0n1n1n0n1);
\draw[->, thick] (n0n0n0n1n1n0n1) edge [near start, left] node {e} (n0n0n0n1n1n0n1n0);
\draw[->, thick] (n0n0n1) edge [near start, left] node {a} (n0n0n1n0);
\draw[->, thick] (n0n0n1) edge [near start, left] node {b} (n0n0n1n1);
\draw[->, thick] (n0n0n1n0) edge [near start, right, bend right] node {x} (n0n0n1);
\draw[->, thick] (n0n0n1n1) edge [near start, left] node {x} (n0n0n1n1n0);
\draw[->, thick] (n0n0n1n1) edge [near start, left] node {y} (n0n0n1n1n1);
\draw[->, thick] (n0n0n1n1n0) edge [near start, right, bend right] node {b} (n0n0n1n1);
\draw[->, thick] (n0n0n1n1n1) edge [near start, left] node {e} (n0n0n1n1n1n0);
\draw[->, thick] (n0n1) edge [near start, left] node {} (n0n1n0);
\draw[->, thick] (n0n1) edge [near start, left] node {} (n0n1n1);
\draw[->, thick] (n0n1n0) edge [near start, right, bend right] node {b} (n0n1);
\draw[->, thick] (n0n1n1) edge [near start, left] node {b} (n0n1n1n0);
\draw[->, thick] (n0n1n1n0) edge [near start, right, bend right] node {x} (n0n1n1);
\draw[->, thick] (n0n1n1n0) edge [near start, left] node {y} (n0n1n1n0n1);
\draw[->, thick] (n0n1n1n0n1) edge [near start, left] node {e} (n0n1n1n0n1n0);
\draw[->, thick] (n1) edge [near start, left] node {a} (n1n0);
\draw[->, thick] (n1n0) edge [near start, left] node {a} (n1n0n0);
\draw[->, thick] (n1n0) edge [near start, left] node {b} (n1n0n1);
\draw[->, thick] (n1n0n0) edge [near start, right, bend right] node {x} (n1n0);
\draw[->, thick] (n1n0n1) edge [near start, left] node {x} (n1n0n1n0);
\draw[->, thick] (n1n0n1) edge [near start, left] node {y} (n1n0n1n1);
\draw[->, thick] (n1n0n1n0) edge [near start, right, bend right] node {b} (n1n0n1);
\draw[->, thick] (n1n0n1n1) edge [near start, left] node {e} (n1n0n1n1n0);

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