incl: certora spec
This commit is contained in:
parent
46a7dc5d64
commit
443cbfc9c4
|
@ -1,8 +1,8 @@
|
|||
{
|
||||
"files": ["src/Foo.sol"],
|
||||
"msg": "Verifying Foo.sol",
|
||||
"files": ["src/Rln.sol"],
|
||||
"msg": "Verifying Rln.sol",
|
||||
"rule_sanity": "basic",
|
||||
"verify": "Foo:certora/specs/Foo.spec",
|
||||
"verify": "Rln:certora/specs/Rln.spec",
|
||||
"wait_for_results": "all",
|
||||
}
|
||||
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
methods {
|
||||
function id(uint256) external returns (uint256) envfree;
|
||||
}
|
||||
|
||||
rule checkIdOutputIsAlwaysEqualToInput {
|
||||
uint256 input;
|
||||
|
||||
assert id(input) == input;
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
methods {
|
||||
function root() external returns (uint256) envfree;
|
||||
}
|
||||
|
||||
rule checkDefaultRootIsCorrect {
|
||||
uint256 defaultRoot = 15019797232609675441998260052101280400536945603062888308240081994073687793470;
|
||||
|
||||
assert root() == input;
|
||||
}
|
Loading…
Reference in New Issue