Skip to content

Commit

Permalink
SMTChecker: Add command-line test for cvc4
Browse files Browse the repository at this point in the history
  • Loading branch information
blishko committed May 8, 2024
1 parent b4341d2 commit 06f5be1
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/cmdlineTests/model_checker_cvc4/args
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--model-checker-engine bmc --model-checker-solvers cvc4
10 changes: 10 additions & 0 deletions test/cmdlineTests/model_checker_cvc4/err
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Warning: BMC: Assertion violation happens here.
--> test/cmdlineTests/model_checker_cvc4/input.sol:5:3:
|
5 | assert(x > 0);
| ^^^^^^^^^^^^^
Note: Counterexample:
x = 0

Note: Callstack:
Note:
7 changes: 7 additions & 0 deletions test/cmdlineTests/model_checker_cvc4/input.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.0;
contract test {
function f(uint x) public pure {
assert(x > 0);
}
}

0 comments on commit 06f5be1

Please sign in to comment.