Added some more testcases for array usage checking that involve complicated expressions
This commit is contained in:
parent
2ea7e15570
commit
c23c575f73
|
@ -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
|
||||
|
||||
%
|
||||
|
|
Loading…
Reference in New Issue
Block a user