so-un-bot/Data/Questions/ingsw/0613_23/wrong2.txt

15 lines
No EOL
242 B
Text

<pre>
class Monitor
InputReal x, y;
OutputBoolean wy;
Boolean wz;
initial equation
wy = false;
equation
wz = (time > 60) and (delay(x, 10) > 0) and (y > 0);
algorithm
when edge(wz) then
wy := true;
end when;
end Monitor;
</pre>