Skip to content
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

Fix value constraints for EXTCODESIZE / EXTCODECOPY #419

Merged
merged 2 commits into from
Oct 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions hub/constraints/instruction-handling/acc.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
(defun (account-instruction-decoded-flags-sum) (+ [ stack/DEC_FLAG 1 ]
[ stack/DEC_FLAG 2 ]
[ stack/DEC_FLAG 3 ]
[ stack/DEC_FLAG 4 ]))
[ stack/DEC_FLAG 4 ])) ;; ""


;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Expand Down Expand Up @@ -106,7 +106,7 @@
(begin
(eq! account/ROMLEX_FLAG 1)
(eq! account/TRM_RAW_ADDRESS_HI [ stack/STACK_ITEM_VALUE_HI 1 ])
(eq! account/ADDRESS_LO [ stack/STACK_ITEM_VALUE_LO 1 ])
(eq! account/ADDRESS_LO [ stack/STACK_ITEM_VALUE_LO 1 ]) ;;""
(account-same-balance 1)
(account-same-nonce 1)
(account-same-code 1)
Expand Down Expand Up @@ -163,12 +163,12 @@
(if-not-zero [ stack/DEC_FLAG 2 ]
(begin
(eq! [ stack/STACK_ITEM_VALUE_HI 4 ] 0)
(eq! [ stack/STACK_ITEM_VALUE_LO 4 ] (shift account/CODE_SIZE 1))))
(eq! [ stack/STACK_ITEM_VALUE_LO 4 ] (shift (* account/CODE_SIZE account/HAS_CODE) 1))))
;;
(if-not-zero [ stack/DEC_FLAG 3 ]
(begin
(eq! [ stack/STACK_ITEM_VALUE_HI 4 ] (shift account/CODE_HASH_HI 1))
(eq! [ stack/STACK_ITEM_VALUE_LO 4 ] (shift account/CODE_HASH_LO 1))))
(eq! [ stack/STACK_ITEM_VALUE_HI 4 ] (shift (* account/CODE_HASH_HI account/EXISTS) 1))
(eq! [ stack/STACK_ITEM_VALUE_LO 4 ] (shift (* account/CODE_HASH_LO account/EXISTS) 1))))
;;
(if-not-zero [ stack/DEC_FLAG 4 ]
(begin
Expand Down
Loading