solidity/test/cmdlineTests/standard_model_checker_targets_overflow_chc/input.json
2021-03-30 10:28:48 +02:00

31 lines
507 B
JSON

{
"language": "Solidity",
"sources":
{
"A":
{
"content": "// SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.0;\npragma experimental SMTChecker;\ncontract 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();
arr[x];
}
}"
}
},
"settings":
{
"modelChecker":
{
"engine": "chc",
"targets": "overflow"
}
}
}