[SMTChecker] User timeout option

This commit is contained in:
Leonardo Alt
2020-11-03 10:46:11 +00:00
parent 22b31054b6
commit d03ddeb0fa
47 changed files with 436 additions and 62 deletions
@@ -0,0 +1 @@
--model-checker-engine chc --model-checker-timeout 1
@@ -0,0 +1,17 @@
Warning: CHC: Assertion violation might happen here.
--> model_checker_timeout_chc/input.sol:6:3:
|
6 | assert(x > 0);
| ^^^^^^^^^^^^^
Warning: CHC: Assertion violation might happen here.
--> model_checker_timeout_chc/input.sol:7:3:
|
7 | assert(x > 2);
| ^^^^^^^^^^^^^
Warning: CHC: Assertion violation might happen here.
--> model_checker_timeout_chc/input.sol:8:3:
|
8 | assert(x > 4);
| ^^^^^^^^^^^^^
@@ -0,0 +1,10 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.0;
pragma experimental SMTChecker;
contract test {
function f(uint x) public pure {
assert(x > 0);
assert(x > 2);
assert(x > 4);
}
}