Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
atomb committed Nov 15, 2023
1 parent 972c1e3 commit 2777ecd
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Test/prover/smt-options.bpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// RUN: %boogie /proverLog:"%t.smt2" "%s"
// RUN: %OutputCheck --file-to-check "%t.smt2" "%s"
// CHECK: (set-option :smt.arith.solver 2)
// CHECK: (set-option :smt.arith.solver 6)
// CHECK: (set-option :sat.smt.proof.check true)
procedure
{:smt_option "smt.arith.solver", 2}
P1(a: int, b: int) {
assert (a + b) - (a * b) == (b + a) - (a * b);
}

procedure
{:smt_option "smt.arith.solver", 6}
{:smt_option "sat.smt.proof.check", true}
P2(a: int, b: int) {
assert (a + b) - (a * b) == (b + a) - (a * b);
}

0 comments on commit 2777ecd

Please sign in to comment.