Skip to content

Commit 8bb92e1

Browse files
committed
fix ALL summary
1 parent 03d71d9 commit 8bb92e1

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
methods {
66
// functions declared in TestLibrary
77
function TestLibrary.calleeInternal() internal returns bool => ALWAYS(true);
8-
function _.calleeExternal() external => ALWAYS(true);
8+
function _.calleeExternal() external => ALWAYS(true) ALL;
99
// functions declared in IUnresolved
1010
function _.calleeOverloadedInInterfaceExternal() external => ALWAYS(true) UNRESOLVED;
1111
// functions from the contract Test.

CVLByExample/Summarization/MultiContract/certora/specs/FunctionSummary.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ methods {
88
// A wildcard method entry may not specify return types in the method signature.
99
// The summarized functions belong to other contracts and therefore defined as `external`.
1010
// Functions of other contracts
11-
function _.summarizedByFunction() external => summary() expect uint256;
11+
function _.summarizedByFunction() external => summary() expect uint256 ALL;
1212
function _.notSummarized() external optional envfree;
1313
// functions of the main contract
1414
function callByFunctionInCalled1() external returns(uint256) envfree;

CVLByExample/Summarization/UserDefinedReturnType/LibraryVSContractSummary.spec

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@
66
*/
77
methods {
88
// should summarize both contract and lib functions
9-
function _.funcWithStruct(CalledLibrary.S s) external => ALWAYS(1);
9+
function _.funcWithStruct(CalledLibrary.S s) external => ALWAYS(1) ALL;
1010

1111
// should summarize both contract and lib functions
12-
function _.funcWithEnum(CalledLibrary.E e) external => ALWAYS(4);
12+
function _.funcWithEnum(CalledLibrary.E e) external => ALWAYS(4) ALL;
1313

1414
// should summarize only the lib function
15-
function _.funcWithStorage(uint[] storage s) external => ALWAYS(2);
15+
function _.funcWithStorage(uint[] storage s) external => ALWAYS(2) ALL;
1616

1717
// should summarize only the contract function (in the context of a library, no location
1818
// means _not_ storage, so that shouldn't be summarized here)
19-
function _.funcWithStorage(uint[] s) external => ALWAYS(3);
19+
function _.funcWithStorage(uint[] s) external => ALWAYS(3) ALL;
2020

2121
function callLibFuncWithStruct(CalledLibrary.S s) external returns (uint) envfree;
2222
function callLibFuncWithEnum(CalledLibrary.E e) external returns (uint) envfree;

0 commit comments

Comments
 (0)