-
Notifications
You must be signed in to change notification settings - Fork 15
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
424 implicitdebug constraints in implementation #440
424 implicitdebug constraints in implementation #440
Conversation
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.
We should revert the (debug ...
constraints for now.
(defconstraint call-instruction---backward-setting-CREATE-instruction () | ||
(if-not-zero PEEK_AT_SCENARIO | ||
(defconstraint call-instruction---backward-setting-CALL-instruction () | ||
(debug (if-not-zero PEEK_AT_SCENARIO |
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.
OK for the name change
@@ -29,7 +29,7 @@ | |||
( CALLER_CONTEXT_NUMBER :i32 ) | |||
|
|||
;; | |||
( CONTEXT_WILL_REVERT :binary@prove ) | |||
( CONTEXT_WILL_REVERT :binary ) |
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.
Indeed not required.
@@ -33,17 +33,14 @@ | |||
stack/HALT_FLAG)) | |||
|
|||
(defconstraint setting-CMC-and-XAHOY () | |||
(begin (is-binary CMC) | |||
(is-binary XAHOY) |
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.
Useless if CMC
and XAHOY
are binary@prove
. Are they ?
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.
Yes.
( CONTEXT_MAY_CHANGE :binary@prove )
( EXCEPTION_AHOY :binary@prove )
@@ -16,7 +16,7 @@ | |||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |||
|
|||
|
|||
(defconstraint call-instruction---final-context-row-for-unexceptional-unaborted-EOA-CALLs (:guard (* PEEK_AT_SCENARIO (scenario-shorthand---CALL---externally-owned-account))) | |||
(defconstraint call-instruction---final-context-row-for-unexceptional-unaborted-EOA-CALLs (:guard PEEK_AT_SCENARIO) |
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.
OK
@@ -16,7 +16,7 @@ | |||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |||
|
|||
|
|||
(defconstraint call-instruction---final-context-row-for-unexceptional-unaborted-SMC-CALLs (:guard (* PEEK_AT_SCENARIO (scenario-shorthand---CALL---smart-contract))) | |||
(defconstraint call-instruction---final-context-row-for-unexceptional-unaborted-SMC-CALLs (:guard PEEK_AT_SCENARIO) |
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.
OK
@@ -16,7 +16,7 @@ | |||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |||
|
|||
|
|||
(defconstraint call-instruction---setting-up-the-second-phase-of-CALLs-to-precompiles (:guard (* PEEK_AT_SCENARIO (scenario-shorthand---CALL---precompile))) | |||
(defconstraint call-instruction---setting-up-the-second-phase-of-CALLs-to-precompiles (:guard PEEK_AT_SCENARIO) |
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.
OK
(debug (eq! (shift account/CODE_HASH_HI tx-skip---row-offset---recipient-account) EMPTY_KECCAK_HI)) | ||
(debug (eq! (shift account/CODE_HASH_LO tx-skip---row-offset---recipient-account) EMPTY_KECCAK_LO)) | ||
(debug (eq! (shift account/CODE_HASH_HI_NEW tx-skip---row-offset---recipient-account) EMPTY_KECCAK_HI)) | ||
(debug (eq! (shift account/CODE_HASH_LO_NEW tx-skip---row-offset---recipient-account) EMPTY_KECCAK_LO)) |
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.
Discard this. I will push the right fix.
Signed-off-by: Lorenzo Gentile <lorenzogentile404@gmail.com>
Signed-off-by: Lorenzo Gentile <lorenzogentile404@gmail.com>
Signed-off-by: Lorenzo Gentile <lorenzogentile404@gmail.com>
Signed-off-by: Lorenzo Gentile <lorenzogentile404@gmail.com>
Signed-off-by: Lorenzo Gentile <lorenzogentile404@gmail.com>
Signed-off-by: Lorenzo Gentile <lorenzogentile404@gmail.com>
Signed-off-by: Lorenzo Gentile <lorenzogentile404@gmail.com>
Signed-off-by: Lorenzo Gentile <lorenzogentile404@gmail.com>
Signed-off-by: Lorenzo Gentile <lorenzogentile404@gmail.com>
Signed-off-by: Lorenzo Gentile <lorenzogentile404@gmail.com>
Signed-off-by: Lorenzo Gentile <lorenzogentile404@gmail.com>
Signed-off-by: Lorenzo Gentile <lorenzogentile404@gmail.com>
Signed-off-by: Lorenzo Gentile <lorenzogentile404@gmail.com>
Signed-off-by: Lorenzo Gentile <lorenzogentile404@gmail.com>
Signed-off-by: Lorenzo Gentile <lorenzogentile404@gmail.com>
Signed-off-by: Lorenzo Gentile <lorenzogentile404@gmail.com>
Signed-off-by: Lorenzo Gentile <lorenzogentile404@gmail.com>
Signed-off-by: Lorenzo Gentile <lorenzogentile404@gmail.com>
Signed-off-by: Lorenzo Gentile <lorenzogentile404@gmail.com>
https://www.notion.so/veridise/Implicit-debug-constraints-in-implementation-53a84f3c2e4642f1b0cd49602d56cb49