New test with automata and arrays
This commit is contained in:
parent
d2979fd4dd
commit
0bca1e210b
1 changed files with 16 additions and 0 deletions
16
test/good/array_fill.ept
Normal file
16
test/good/array_fill.ept
Normal file
|
@ -0,0 +1,16 @@
|
|||
const n : int = 33
|
||||
|
||||
node stopbb(shiftenable : bool) returns (dataout : bool^n)
|
||||
var last dataint : bool^n = false^n;
|
||||
let
|
||||
dataout = (false^n) fby dataint;
|
||||
switch shiftenable
|
||||
| true do dataint = [true] @ dataout[0 .. n - 2];
|
||||
| false do
|
||||
end
|
||||
tel
|
||||
|
||||
node main() returns (dataout : bool^n)
|
||||
let
|
||||
dataout = stopbb(true);
|
||||
tel
|
Loading…
Reference in a new issue