The edge caption style of this automaton is really fancy, yet I can't figure out how to use tikz to reproduce it, any help would be greatly appreciated!
I could only use tikz automata library to draw trival automatons like below:
\usepackage{tikz}
\usetikzlibrary{automata, arrows.meta, positioning}
% ... codes ...
\begin{tikzpicture} [node distance = 2cm, on grid, auto]
\node (q0) [state, initial, initial text = {}] {$l_0$};
\node (q1) [state, below = of q0] {$l_1$};
\node (q2) [state, below = of q1] {$l_2$};
\path [-stealth, thick]
(q0) edge node {$x = *; true$} (q1)
(q1) edge node {$y = 1; x >= 0$} (q2)
(q2) edge [bend left] node[left] {$!(x>0); x < 0$} (q0)
\end{tikzpicture}