Skip to content

Commit f8d0d23

Browse files
authored
Fixes (#56)
* Update AllDirect.spec * Update config.yml * Update config.yml * Update structs.spec * Update config.yml
1 parent 8d4125f commit f8d0d23

2 files changed

Lines changed: 2 additions & 8 deletions

File tree

CVLByExample/Structs/BankAccounts/certora/specs/structs.spec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,12 @@ rule integrityOfCustomerKeyRule(address a, method f) {
104104

105105
/// Represent the sum of all accounts of all users
106106
/// sum _customers[a].accounts[i].accountBalance
107-
ghost mathint sumBalances {
107+
persistent ghost mathint sumBalances {
108108
init_state axiom sumBalances == 0;
109109
}
110110

111111
/// Mirror on a struct _customers[a].accounts[i].accountBalance
112-
ghost mapping(address => mapping(uint256 => uint256)) accountBalanceMirror {
112+
persistent ghost mapping(address => mapping(uint256 => uint256)) accountBalanceMirror {
113113
init_state axiom forall address a. forall uint256 i. accountBalanceMirror[a][i] == 0;
114114
}
115115

CVLByExample/Summarization/Library/DirectSummary/certora/specs/AllDirect.spec

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
* For each function called from Test.sol a summary is provided.
33
*/
44

5-
using TestLibrary as testlibrary;
6-
75
methods {
86
// functions declared in TestLibrary
97
function TestLibrary.calleeInternal() internal returns bool => ALWAYS(true);
@@ -35,7 +33,3 @@ rule callOverloadedInInterfaceExternal(env e) {
3533
rule callIOverloadedInInterfaceExternal(env e) {
3634
assert (callIOverloadedInInterfaceExternal(e), "Unresolved function not summarized as expected") ;
3735
}
38-
39-
rule callSummarizedFromCVL(env e) {
40-
assert (testlibrary.calleeExternal(e), "Function called from CVL is not summarized");
41-
}

0 commit comments

Comments
 (0)