so-un-bot/Ingegneria del Software/0721_11/wrong1.txt

15 lines
229 B
Text
Raw Normal View History

2022-11-16 17:56:16 +01:00
<pre>
2022-11-15 14:27:16 +01:00
class 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;
2022-11-16 17:56:16 +01:00
end Monitor;
</pre>