mirror of
https://github.com/appinfosapienza/so-un-bot.git
synced 2025-03-14 16:46:15 +01:00
18 lines
No EOL
217 B
Text
18 lines
No EOL
217 B
Text
<pre>
|
|
function next
|
|
input Integer x;
|
|
output Integer y;
|
|
algorithm
|
|
y := 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;
|
|
</pre> |