Added some tests for the new usage checking and reachability mechanisms
This commit is contained in:
parent
78a513a852
commit
b9b025a429
|
@ -1172,6 +1172,7 @@ ioqcTests
|
|||
,"testcases/automatic/usage-check-3.occ.test"
|
||||
,"testcases/automatic/usage-check-4.occ.test"
|
||||
,"testcases/automatic/usage-check-5.occ.test"
|
||||
, "testcases/automatic/usage-check-6.occ.test"
|
||||
]
|
||||
,return $ qcOmegaEquality ++ qcOmegaPrune ++ qcTestMakeEquations)
|
||||
|
||||
|
|
32
testcases/automatic/usage-check-6.occ.test
Normal file
32
testcases/automatic/usage-check-6.occ.test
Normal file
|
@ -0,0 +1,32 @@
|
|||
-- This file tests array uses with prior knowledge
|
||||
|
||||
PROC p(INT x, y, z)
|
||||
INT i,j:
|
||||
[10]INT a:
|
||||
%%
|
||||
:
|
||||
|
||||
PROC m()
|
||||
SKIP
|
||||
:
|
||||
|
||||
%PASS Distinct variables
|
||||
SEQ
|
||||
i, j := 1,2
|
||||
PAR
|
||||
a[i] := 0
|
||||
a[j] := 0
|
||||
%FAIL Same variable
|
||||
SEQ
|
||||
i, j := 1, 1
|
||||
PAR
|
||||
a[i] := 0
|
||||
a[j] := 0
|
||||
%PASS Distinct variable based on earlier equality
|
||||
SEQ
|
||||
i := j
|
||||
PAR
|
||||
a[i] := 0
|
||||
a[j + 1] := 0
|
||||
|
||||
%
|
Loading…
Reference in New Issue
Block a user