-
Notifications
You must be signed in to change notification settings - Fork 43
Re routing example #180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: cli-beta
Are you sure you want to change the base?
Re routing example #180
Conversation
/** | ||
* @notice Rule to verify data integrity during storage pointer operations | ||
*/ | ||
rule testDataIntegrity(env e) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's interesting in this rule?
"Current data length should match new data length"; | ||
|
||
// Verify operation counter was incremented | ||
assert operationCounter() == initialCounter + 1, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so this will fail, right?
* @notice Invariant to ensure operation counter only increases | ||
*/ | ||
invariant operationCounterMonotonic() | ||
operationCounter() >= 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so with the summary it will not increase, right?
|
||
## Problem Statement | ||
|
||
In traditional CVL specifications, internal functions that accept storage pointers (especially mappings) are difficult to summarize because: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In traditional CVL specifications, internal functions that accept storage pointers (especially mappings) are difficult to summarize because: | |
Internal functions that accept storage pointers (especially mappings) can not be summarized to a CVL function that uses the arguments |
No description provided.