% control-incon-pluscal-contra-postcond.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=pluscal]
EXTENDS Naturals

(* --algorithm example
variables a = 1;
process %*\colorbox{orange!40}{contra\_post}*) = "contra_post"
begin
    contra_post:
        a := 2;%* \label{lbl:control/incon-pluscal-a-2} *)
        a := 3 \* problem %* \label{lbl:control/incon-pluscal-a-3} *)
end process
end algorithm *)
\end{lstlisting}
\caption{Invalid contradictory transition postcondition thanks to
  \pluscal's \emph{label} semantics}
\label{fig:control/incon-pluscal-contra-postcond}
\end{figure*}


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