so-un-bot/Ingegneria del Software/7/wrong 2.txt

20 lines
252 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
wz = (time > 60) or (delay(x, 10) > 0) or (y >= 0);
algorithm
when edge(wz) then
wy := true;
end when;
end Monitor;
</pre>