Add CLI and JSON option to select SMTChecker targets

This commit is contained in:
Leonardo Alt
2021-01-20 17:35:37 +01:00
parent 86051dc099
commit 3b23cadbdc
131 changed files with 3771 additions and 119 deletions
@@ -0,0 +1 @@
--model-checker-targets aaa,bbb
@@ -0,0 +1 @@
Invalid option for --model-checker-targets: aaa,bbb
@@ -0,0 +1 @@
1
@@ -0,0 +1,15 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.0;
pragma experimental SMTChecker;
contract test {
uint[] arr;
function f(address payable a, uint x) public {
require(x >= 0);
--x;
x + type(uint).max;
2 / x;
a.transfer(x);
assert(x > 0);
arr.pop();
}
}