mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add optional bounds to unroll loops in BMC model checker
This commit is contained in:
@@ -142,6 +142,7 @@ BOOST_AUTO_TEST_CASE(cli_mode_options)
|
||||
"--optimize",
|
||||
"--optimize-runs=1000",
|
||||
"--yul-optimizations=agf",
|
||||
"--model-checker-bmc-loop-iterations=2",
|
||||
"--model-checker-contracts=contract1.yul:A,contract2.yul:B",
|
||||
"--model-checker-div-mod-no-slacks",
|
||||
"--model-checker-engine=bmc",
|
||||
@@ -152,7 +153,7 @@ BOOST_AUTO_TEST_CASE(cli_mode_options)
|
||||
"--model-checker-show-unsupported",
|
||||
"--model-checker-solvers=z3,smtlib2",
|
||||
"--model-checker-targets=underflow,divByZero",
|
||||
"--model-checker-timeout=5",
|
||||
"--model-checker-timeout=5"
|
||||
};
|
||||
|
||||
if (inputMode == InputMode::CompilerWithASTImport)
|
||||
@@ -210,6 +211,7 @@ BOOST_AUTO_TEST_CASE(cli_mode_options)
|
||||
|
||||
expectedOptions.modelChecker.initialize = true;
|
||||
expectedOptions.modelChecker.settings = {
|
||||
2,
|
||||
{{{"contract1.yul", {"A"}}, {"contract2.yul", {"B"}}}},
|
||||
true,
|
||||
{true, false},
|
||||
|
||||
Reference in New Issue
Block a user