Skip to content

Commit 1ddcf3b

Browse files
committed
fixed few tests
1 parent ab53b67 commit 1ddcf3b

File tree

4 files changed

+37
-2
lines changed

4 files changed

+37
-2
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// RUN: %parallel-boogie "%s" > "%t"
2+
// RUN: %diff "%s.expect" "%t"
3+
4+
var {:layer 1,1} g:int;
5+
6+
pure action P(x:int)
7+
{
8+
assert x >= 0;
9+
}
10+
11+
yield procedure {:layer 1} X(x:int)
12+
{
13+
call {:layer 1} P(x);
14+
}
15+
16+
yield procedure {:layer 1} Y(x:int)
17+
{
18+
assert {:layer 1} x == 0;
19+
call {:layer 1} P(x);
20+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Pure2.bpl(8,3): Error: this gate of P could not be proved
2+
Execution trace:
3+
Pure2.bpl(13,3): anon0
4+
Pure2.bpl(18,3): Error: this assertion could not be proved
5+
Execution trace:
6+
Pure2.bpl(18,3): anon0
7+
8+
Boogie program verifier finished with 2 verified, 2 errors

Test/civl/regression-tests/chris5.bpl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
// RUN: %parallel-boogie "%s" > "%t"
1+
// RUN: %parallel-boogie /trustRefinement "%s" > "%t"
22
// RUN: %diff "%s.expect" "%t"
3+
4+
// flag /trustRefinement avoids duplicate error messages since the inlined assert in P
5+
// is checked during both invariant checking and refinement checking at layer 1
6+
37
var {:layer 1,1} g:int;
48

59
pure procedure {:inline 1} P(x:int)

Test/civl/regression-tests/permissions-fail.bpl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
// RUN: %parallel-boogie "%s" > "%t"
1+
// RUN: %parallel-boogie /trustRefinement "%s" > "%t"
22
// RUN: %diff "%s.expect" "%t"
33

4+
// flag /trustRefinement avoids duplicate error messages since the precondition of Lemma
5+
// is checked during both invariant checking and refinement checking at layer 1
6+
47
var {:linear} {:layer 0,1} A : Set int;
58

69
pure procedure Lemma (set: Set int, i: One int);

0 commit comments

Comments
 (0)