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

\node[accepting, state] at (1,-2) (n1) {$p!$\,\ifntiny{\tiny 17684}\fi};
\node[accepting, state] at (1,-4) (n1n0) {$end$\,\ifntiny{\tiny 17683}\fi};
\node[initial, state] at (1,0) (n) {$p?$\,\ifntiny{\tiny 17685}\fi};
\node[accepting, state] at (0,-4) (n0n0) {$end$\,\ifntiny{\tiny 17674}\fi};
\node[accepting, state] at (0,-2) (n0) {$p!$\,\ifntiny{\tiny 17675}\fi};

\draw[->, thick] (n) edge [near start, left] node {b} (n0);
\draw[->, thick] (n) edge [near start, left] node {c} (n1);
\draw[->, thick] (n0) edge [near start, left] node {x1} (n0n0);
\draw[->, thick] (n1) edge [near start, left] node {x2} (n1n0);

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