so-un-bot/legacy/Data/ingsw/43/correct.txt

15 lines
No EOL
226 B
Text

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