New test with automata and arrays

This commit is contained in:
Adrien Guatto 2010-08-17 15:31:39 +02:00
parent d2979fd4dd
commit 0bca1e210b

16
test/good/array_fill.ept Normal file
View 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