mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
20 lines
438 B
JSON
20 lines
438 B
JSON
{
|
|
"language": "Solidity",
|
|
"sources":
|
|
{
|
|
"A":
|
|
{
|
|
"content": "// SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.0;\n\ncontract test {\nfunction f(uint x, uint y, uint k) public pure {\nrequire(k > 0); require(x % k == 0); require(y % k == 0); uint r = mulmod(x, y, k); assert(r % k == 0);}}"
|
|
}
|
|
},
|
|
"settings":
|
|
{
|
|
"modelChecker":
|
|
{
|
|
"targets": ["assert", "divByZero"],
|
|
"engine": "chc",
|
|
"timeout": 1000
|
|
}
|
|
}
|
|
}
|