% control-incon-asmetal-deadlock.tex  -*-latex-*-

% Copyright (C) 2020 Amin Bandali <bandali@uwaterloo.ca>

% This file is part of Amin Bandali's MMath thesis.

% This thesis is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.

% This thesis is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
% GNU General Public License for more details.

% You should have received a copy of the GNU General Public License
% along with this thesis.  If not, see <https://www.gnu.org/licenses/>.


\begin{figure*}
\begin{lstlisting}[style=asmetal]
asm example

import StandardLibrary

signature:
  domain Coord subsetof Integer
  controlled v: Coord

definitions:
  domain Coord = {1..5}

  rule %*\colorbox{orange!40}{r\_vinc}*) =
    while v < 3 do
      v := v + 1

  main rule r_Main = r_vinc[]

default init s0:
  function v = 1
\end{lstlisting}
\caption{\asm{} that eventually reaches deadlock}
\label{fig:control/incon-asmetal-deadlock}
\end{figure*}


%% Local Variables:
%% tex-main-file: "../bandali-mmath-thesis.tex"
%% End:
