When the program counter exceeds the length of the program, the task
terminates.
-\begin{lstlisting}[caption={Thermostat bytecode},language=c]
+\begin{lstlisting}[language=Clean,caption={Thermostat bytecode},language=c]
0-1 : BCAnalogRead (Analog A0)
2-5 : BCPush (Int 50)
6 : BCGre
\gls{mTask} and the generated messages followed by the actual bytecode in a
readable form.
-\begin{lstlisting}[caption={Factorial as an \gls{mTask}-\gls{Task}}]
+\begin{lstlisting}[language=Clean,caption={Factorial as an \gls{mTask}-\gls{Task}}]
factorial :: Int -> Main (ByteCode () Stmt)
factorial i = sds \y=i In
namedsds \x=1 Named "result" In
//[MTSds 2 (BCValue 5), MTSds 1 (BCValue 1), MTTask (OnInterval 500) ...]
\end{lstlisting}
-\begin{lstlisting}[label={lst:actualbc},%
+\begin{lstlisting}[language=Clean,label={lst:actualbc},%
caption={The resulting bytecode for the factorial function},language=C]
0-2 : BCSdsFetch 1
3-6 : BCPush (Int 1)