sanity rule preparations

This commit is contained in:
Aleksander Kryukov
2021-11-03 17:05:06 +02:00
parent 6776cc6ee4
commit cac49bfc2e
9 changed files with 45 additions and 16 deletions

14
certora/specs/sanity.spec Normal file
View File

@ -0,0 +1,14 @@
/*
This rule looks for a non-reverting execution path to each method, including those overridden in the harness.
A method has such an execution path if it violates this rule.
How it works:
- If there is a non-reverting execution path, we reach the false assertion, and the sanity fails.
- If all execution paths are reverting, we never call the assertion, and the method will pass this rule vacuously.
*/
rule sanity(method f) {
env e;
calldataarg arg;
f(e, arg);
assert false;
}