so-un-bot/Ingegneria del Software/28/wrong.txt

15 lines
226 B
Text
Raw Normal View History

2022-11-02 09:13:43 +01:00
<pre>
class Monitor
InputReal x, y;
OutputBoolean wy;
Boolean wz;
initial equation
wy = false;
equation
wz = (time > 60) or (delay(x, 10) > 0) or (y <= 0);
algorithm
when edge(wz) then
wy := true;
end when;
end Monitor;
</pre>