solidity/test/cmdlineTests/standard_model_checker_targets_all_bmc/input.json

30 lines
450 B
JSON
Raw Normal View History

{
"language": "Solidity",
"sources":
{
"A":
{
2021-03-31 15:31:23 +00:00
"content": "// SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.0;\n\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();
2021-03-23 18:15:14 +00:00
arr[x];
}
}"
}
},
"settings":
{
"modelChecker":
{
"engine": "bmc"
}
}
}