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

\node[accepting, state] at (3,-2) (n1) {$p!$\,\ifntiny{\tiny 42177}\fi};
\node[accepting, state] at (2,-4) (n1n0) {$end$\,\ifntiny{\tiny 42174}\fi};
\node[initial, accepting, state] at (2,0) (n) {$p?$\,\ifntiny{\tiny 42178}\fi};
\node[accepting, state] at (0,-4) (n0n0) {$end$\,\ifntiny{\tiny 42168}\fi};
\node[accepting, state] at (1,-4) (n0n1) {$end$\,\ifntiny{\tiny 42170}\fi};
\node[accepting, state] at (3,-4) (n1n1) {$end$\,\ifntiny{\tiny 42176}\fi};
\node[accepting, state] at (1,-2) (n0) {$p!$\,\ifntiny{\tiny 42171}\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 {a} (n0n0);
\draw[->, thick] (n0) edge [near start, left] node {b} (n0n1);
\draw[->, thick] (n1) edge [near start, left] node {a} (n1n0);
\draw[->, thick] (n1) edge [near start, left] node {c} (n1n1);

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