Corrected good tests to pass initialization check.

This commit is contained in:
Léonard Gérard 2010-10-08 14:38:33 +02:00
parent ea4ef2583b
commit 9e06021b6d
3 changed files with 10 additions and 4 deletions

View file

@ -32,7 +32,7 @@ node g(x: bool) returns (o: bool)
tel
node hhh() returns ()
var last o': int;
var last o' : int = 0;
let
automaton
state S1

View file

@ -31,7 +31,7 @@ node h(x,z,m:int) returns (o:int)
until (1 = 0) then S2
end;
present
| (x = 0) do o = pre o + 2
| (x = 0) do o = 2 -> pre o + 2
| (x = 2) do o = 4
default do o = 2
end

View file

@ -3,8 +3,14 @@ node f(x,z:int) returns (o1,o2:int)
var o4:int;
let
switch (x = z)
| true do o1 = pre o1 + 2;o2 = o4+1;o4 = 3
| false do o1 = 4;o2 = 5;o4 = 5
| true do
o1 = 0 -> pre o1 + 2;
o2 = o4 + 1;
o4 = 3
| false do
o1 = 4;
o2 = 5;
o4 = 5
end;
tel