-
Notifications
You must be signed in to change notification settings - Fork 10
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
Adding HUB
constraints
#494
Merged
+48
−49
Merged
Changes from 30 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
4ba5621
add HUB constraints
letypequividelespoubelles 8bd3f94
typo
letypequividelespoubelles a2234f6
typo
letypequividelespoubelles 837f08e
fix: removed stack consistency constraints
OlivierBBB 16d3740
fix: make the constraints compile
OlivierBBB 47fe220
Merge branch 'master' into 484-add-hub-constraints
OlivierBBB 182ad13
fix: context consistency constraints
OlivierBBB 7e018d1
fix: unexceptional RETURN's from message calls now always provide ret…
OlivierBBB b639c86
fix: unexceptional REVERT's now always provide return data, even in t…
OlivierBBB d04e219
fix: splitting the "REVERT setting context" constraint in two
OlivierBBB eb6bfec
fix: simplified GAS_COST for CALLDATACOPY + split the constraint
OlivierBBB b3790cf
fix: split GAS_COST for RETURNDATACOPY into SANS/WITH_COMPUTATION cases
OlivierBBB e3d7047
fix: splitting GAS_COST for CODECOPY
OlivierBBB 0f5f552
fix: spliting GAS_COST for EXTCODECOPY
OlivierBBB 1eb747f
fix: debug constraint had issue
OlivierBBB 96f7c56
fix: TXN instruction family now uses is_ORIGIN and is_GASPRICE flags
OlivierBBB b6464f6
ras
OlivierBBB dc16d76
fix: mix up in SLOAD/SSTORE flags
OlivierBBB 1399625
ras: splitting up the storage-instruction's "setting-values" into 3
OlivierBBB b58578e
ras: formatting + removed empty file
OlivierBBB 409aa98
ras splitting of hub/generalities constraint
OlivierBBB 91b79e9
fix: some renaming of jump instruction constriants
OlivierBBB 74d9408
fix: splitting the MACHINE_STATE's "setting-stack-value" constraint in 3
OlivierBBB 171c644
fix: remain faithful to spec
OlivierBBB 4ee0ff8
fix: implemented the correct formula for MSIZE
OlivierBBB fb233c7
fix: create stack pattern STACK_STAMP typo for CREATE2's + renaming
OlivierBBB 8a44249
ras: renaming
OlivierBBB 5e82508
fix: using HUB_COLUMNS to merge stuff into arith-dev
OlivierBBB 4ab67f2
Merge branch 'master' into 484-add-hub-constraints
OlivierBBB ae831ed
ras
OlivierBBB 1ede9f5
ras
OlivierBBB bbc9587
typo
OlivierBBB File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
(module hub) | ||
|
||
(defconstraint PC-stamp-constancy () | ||
(begin | ||
(hub-stamp-constancy PC) | ||
(hub-stamp-constancy PC_NEW))) | ||
(defconstraint generalities---program-counter---stamp-constancy () | ||
(begin | ||
(hub-stamp-constancy PC) | ||
(hub-stamp-constancy PC_NEW))) | ||
|
||
(defconstraint PC-automatic-vanishing-outside-of-EXEC-phase () | ||
(if-zero TX_EXEC | ||
(begin | ||
(vanishes! PC) | ||
(vanishes! PC_NEW)))) | ||
(defconstraint generalities---program-counter---automatic-vanishing-outside-of-EXEC-phase () | ||
(if-zero TX_EXEC | ||
(begin | ||
(vanishes! PC) | ||
(vanishes! PC_NEW)))) | ||
|
||
(defconstraint PC-automatic-update (:guard PEEK_AT_STACK) | ||
(if-zero (force-bin (+ stack/PUSHPOP_FLAG stack/JUMP_FLAG)) | ||
(eq! PC_NEW (+ 1 PC)))) | ||
(defconstraint generalities---program-counter---automatic-update (:guard PEEK_AT_STACK) | ||
(if-zero (force-bin (+ stack/PUSHPOP_FLAG stack/JUMP_FLAG)) | ||
(eq! PC_NEW (+ 1 PC)))) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This is in
ZKEVM_MODULES_FOR_REFERENCE_TESTS
, which in any case blows up all over the place.