so-un-bot/Ingegneria del Software/1122_2/wrong 1.txt

17 lines
247 B
Text
Raw Normal View History

2022-10-28 16:32:32 +02:00
<pre>
class Monitor
InputReal x, y;
OutputBoolean wy;
Boolean wz;
initial equation
wy = false;
equation
2022-11-06 17:27:39 +01:00
wz = (time > 40) and (delay(x, 10) > 1) and (y >= 0);
2022-10-28 16:32:32 +02:00
algorithm
when edge(wz) then
wy := true;
end when;
end Monitor;
</pre>