Skip to content

Commit

Permalink
SMTChecker: Add command-line test for Eldarica
Browse files Browse the repository at this point in the history
  • Loading branch information
blishko committed Mar 25, 2024
1 parent 0484906 commit e1a0bf5
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/cmdlineTests/model_checker_solvers_eld/args
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--model-checker-engine chc --model-checker-solvers eld
5 changes: 5 additions & 0 deletions test/cmdlineTests/model_checker_solvers_eld/err
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Warning: CHC: Assertion violation happens here.
--> model_checker_solvers_eld/input.sol:5:3:
|
5 | assert(x > 0);
| ^^^^^^^^^^^^^
7 changes: 7 additions & 0 deletions test/cmdlineTests/model_checker_solvers_eld/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 e1a0bf5

Please sign in to comment.