mirror of
https://github.com/appinfosapienza/so-un-bot.git
synced 2025-03-14 07:46:14 +01:00
Merge remote-tracking branch 'refs/remotes/origin/main'
nothing really changed
This commit is contained in:
commit
0c3a30b201
1 changed files with 16 additions and 0 deletions
16
Ingegneria del Software/0621_6/wrong2.txt
Normal file
16
Ingegneria del Software/0621_6/wrong2.txt
Normal file
|
@ -0,0 +1,16 @@
|
|||
function next
|
||||
input Integer x;
|
||||
output Integer y;
|
||||
algorithm
|
||||
y := 1 - x;
|
||||
end next;
|
||||
|
||||
class System
|
||||
Integer x;
|
||||
initial equation
|
||||
x = 0;
|
||||
equation
|
||||
when sample(0, 1) then
|
||||
x = next(pre(x));
|
||||
end when;
|
||||
end System;
|
Loading…
Reference in a new issue