Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
shazqadeer committed Oct 25, 2024
1 parent c59f931 commit 52d5765
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Test/datatypes/is-cons.bpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// RUN: %parallel-boogie "%s" > "%t"
// RUN: %diff "%s.expect" "%t"

datatype X {
A'(a: int),
B'(b: bool)
}

procedure P(x: X) {
assume x is A';
assert !(x is B');
}
2 changes: 2 additions & 0 deletions Test/datatypes/is-cons.bpl.expect
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

Boogie program verifier finished with 1 verified, 0 errors

0 comments on commit 52d5765

Please sign in to comment.