Added some more testcases for array usage checking that involve complicated expressions

This commit is contained in:
Neil Brown 2008-02-11 14:40:28 +00:00
parent 2ea7e15570
commit c23c575f73

View File

@ -143,4 +143,34 @@ PROC m()
x := 2
y := 3
%PASS PAR with unuseable (but safe) division #1
a[x / y] := 3
a[(x / y) + 1] := 3
%PASS PAR with unuseable (but safe) division #2
a[x / (y * z)] := 3
a[(x / (z * y)) + 1] := 3
%PASS PAR with confusing multiplied indices #1
a[x * y] := 3
a[(y * x) + 1] := 3
%PASS PAR with confusing multiplied indices #2
a[(x * y) * z] := 3
a[((y * z) * x) + 1] := 3
a[(y * (z * x)) + 2] := 3
a[((x * z) * y) + 3] := 3
%PASS PAR with confusing multiplied indices #3
a[(x * y) / 3] := 3
a[((y * x) / 3) + 1] := 3
%PASS PAR with confusing multiplied indices #4
a[x*(x+y)] := 3
a[((x*x) + (x*y)) + 1] := 3
%PASS PAR with confusing multiplied indices #5
a[(x REM z)*(x+y)] := 3
a[(((x REM z)*x) + ((x REM z)*y)) + 1] := 3
%