@@ -202,7 +202,7 @@ definition updateGhostSuccCount(address key, mathint diff) returns bool = forall
202202// hook to update the ghostOwners and the reach ghost state whenever the owners field
203203// in storage is written .
204204// This also checks that the reach_succ invariant is preserved .
205- hook Sstore currentContract .owners [KEY address key ] address value STORAGE {
205+ hook Sstore currentContract .owners [KEY address key ] address value {
206206 address valueOrNull ;
207207 address someKey ;
208208 require reach_succ (someKey , ghostOwners [someKey ]);
@@ -216,19 +216,19 @@ hook Sstore currentContract.owners[KEY address key] address value STORAGE {
216216 assert ghostSuccCount (someKey ) == count_expected (someKey );
217217}
218218
219- hook Sstore currentContract .ownerCount uint256 value STORAGE {
219+ hook Sstore currentContract .ownerCount uint256 value {
220220 ghostOwnerCount = value ;
221221}
222222
223223// Hook to match ghost state and storage state when reading owners from storage .
224224// This also provides the reach_succ invariant .
225- hook Sload address value currentContract .owners [KEY address key ] STORAGE {
225+ hook Sload address value currentContract .owners [KEY address key ] {
226226 require ghostOwners [key ] == value ;
227227 require reach_succ (key , value );
228228 require ghostSuccCount (key ) == count_expected (key );
229229}
230230
231- hook Sload uint256 value currentContract .ownerCount STORAGE {
231+ hook Sload uint256 value currentContract .ownerCount {
232232 // The prover found a counterexample if the owners count is max uint256 ,
233233 // but this is not a realistic scenario .
234234 require ghostOwnerCount < MAX_UINT256 ();
0 commit comments