File tree Expand file tree Collapse file tree 4 files changed +37
-2
lines changed
Test/civl/regression-tests Expand file tree Collapse file tree 4 files changed +37
-2
lines changed Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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+
37var {:layer 1 ,1 } g:int;
48
59pure procedure {:inline 1 } P(x:int)
Original file line number Diff line number Diff line change 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+
47var {:linear} {:layer 0 ,1 } A : Set int;
58
69pure procedure Lemma (set: Set int, i: One int);
You can’t perform that action at this time.
0 commit comments