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

424 implicitdebug constraints in implementation #440

Merged

Conversation

Copy link
Collaborator

@OlivierBBB OlivierBBB left a 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
Copy link
Collaborator

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 )
Copy link
Collaborator

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)
Copy link
Collaborator

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 ?

Copy link
Contributor Author

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)
Copy link
Collaborator

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)
Copy link
Collaborator

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)
Copy link
Collaborator

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))
Copy link
Collaborator

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>
@lorenzogentile404 lorenzogentile404 merged commit 9594649 into master Oct 11, 2024
2 checks passed
@lorenzogentile404 lorenzogentile404 deleted the 424-implicitdebug-constraints-in-implementation branch October 11, 2024 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implicit/debug constraints in implementation
2 participants