Skip to content

Commit

Permalink
feat: update MXP example (#469)
Browse files Browse the repository at this point in the history
Update MXP example

This updates the mxp example so that it exactly reflects its original
formulation.
  • Loading branch information
DavePearce authored Dec 19, 2024
1 parent 3d2eecb commit 7645e1b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions testdata/mxp.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@
S1NZNOMXPX SIZE_1_NONZERO_NO_MXPX
S2NZNOMXPX SIZE_2_NONZERO_NO_MXPX)


(defconst
EVM_INST_RETURN 0xF3
GAS_CONST_G_MEMORY 3)

(module mxp)

Expand Down Expand Up @@ -231,9 +233,9 @@
(vanishes! CT)
(vanishes! INST))))

;; (defconstraint type-flag-sum (:guard STAMP)
;; (eq! 1
;; (reduce + (for i [5] [MXP_TYPE i]))))
(defconstraint type-flag-sum (:guard STAMP)
(eq! 1
(reduce + (for i [5] [MXP_TYPE i]))))

(defconstraint counter-reset ()
(if-not-zero (will-remain-constant! STAMP)
Expand Down

0 comments on commit 7645e1b

Please sign in to comment.