Add option divModWithSlacks

This commit is contained in:
Leo Alt
2021-08-06 15:50:25 +02:00
parent a532df20ec
commit 08c065ee04
37 changed files with 799 additions and 10 deletions
@@ -0,0 +1,23 @@
{
"language": "Solidity",
"sources":
{
"A":
{
"content": "// SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.0;\n\ncontract C {
function f(uint a, uint b) public pure returns (uint, uint) {
require(b != 0);
return (a / b, a % b);
}
}"
}
},
"settings":
{
"modelChecker":
{
"engine": "chc",
"divModNoSlacks": true
}
}
}
@@ -0,0 +1,15 @@
{"errors":[{"component":"general","errorCode":"1218","formattedMessage":"Warning: CHC: Error trying to invoke SMT solver.
--> A:7:15:
|
7 | \t\t\t\t\t\treturn (a / b, a % b);
| \t\t\t\t\t\t ^^^^^
","message":"CHC: Error trying to invoke SMT solver.","severity":"warning","sourceLocation":{"end":182,"file":"A","start":177},"type":"Warning"},{"component":"general","errorCode":"1218","formattedMessage":"Warning: CHC: Error trying to invoke SMT solver.
--> A:7:22:
|
7 | \t\t\t\t\t\treturn (a / b, a % b);
| \t\t\t\t\t\t ^^^^^
","message":"CHC: Error trying to invoke SMT solver.","severity":"warning","sourceLocation":{"end":189,"file":"A","start":184},"type":"Warning"},{"component":"general","errorCode":"5840","formattedMessage":"Warning: CHC: 2 verification condition(s) could not be proved. Enable the model checker option \"show unproved\" to see all of them. Consider choosing a specific contract to be verified in order to reduce the solving problems. Consider increasing the timeout per query.
","message":"CHC: 2 verification condition(s) could not be proved. Enable the model checker option \"show unproved\" to see all of them. Consider choosing a specific contract to be verified in order to reduce the solving problems. Consider increasing the timeout per query.","severity":"warning","type":"Warning"}],"sources":{"A":{"id":0}}}