Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix missing parenthesis and naming error #7

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Pomelo introduces an array of extended syntactic constructs into Bitcoin Script
Inserts a large integer onto the stack in little-endian order, occupying ` ceil(n_bits/limb_size)` stack elements corresponding to individual limbs. Each non-base stack element represents a machine integer of `limb_size` bits, whereas the base element encapsulates `(n_bits - 1) mod limb_size + 1`$` bits.
- Subsequently, the large integer pushed onto the stack is denoted by the symbolic variable $v_i$, with `limbs{i}[j]` representing the $j$-th limb of $v_i$.
- The variable $v_i$ is syntactic sugar for the expression:
`v_i = limbsi[0] + limbsi[1] * (1 << limb_size) + ... + limbsi[ceil(n_bits/limb_size) - 1] * (1 << (ceil(n_bits/limb_size) - 1) * limb_size))`
`v_i = limbsi[0] + limbsi[1] * (1 << limb_size) + ... + limbsi[ceil(n_bits/limb_size) - 1] * (1 << ((ceil(n_bits/limb_size) - 1) * limb_size))`


2. **`PUSH_SYMINT_{i}`**
Expand Down
2 changes: 1 addition & 1 deletion pomelo/bs/ast.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@
; ...

; ======================================= ;
; ======== pomela symbolic words ======== ;
; ======== pomelo symbolic words ======== ;
; ======================================= ;


Expand Down
2 changes: 1 addition & 1 deletion pomelo/bs/svm.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@
; ============================== ;
; no op code here
; ======================================= ;
; ======== pomela symbolic words ======== ;
; ======== pomelo symbolic words ======== ;
; ======================================= ;
[(bs::op::symint x)
(define r (fresh-symbolic* (format "v~a" x) 'int))
Expand Down