Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
Signed-off-by: Danno Ferrin <[email protected]>
  • Loading branch information
shemnon committed Oct 11, 2024
1 parent 30b668e commit 77596fa
Showing 1 changed file with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -386,24 +386,24 @@ def test_callf_max_stack(
code=Container(
sections=[
Section.Code(
code=Op.PUSH0 * 4 # fill the stack up a little bit
code=Op.PUSH0 * 4 # fill the stack up a little bit
+ Op.PUSH2(stack_height)
+ Op.CALLF[1]
+ Op.SSTORE(slot_code_worked, value_code_worked)
+ Op.RETURN(0, 0),
max_stack_height=7
max_stack_height=7,
),
Section.Code(
Op.PUSH1(1) # arg, 1
+ Op.SWAP1 # 1, arg
+ Op.SUB # arg-1,
+ Op.DUP1 # arg-1, arg-1
+ Op.CALLF[2] # arg-1, arg-1
+ Op.ISZERO # jump?, arg-1,
Op.PUSH1(1) # arg, 1
+ Op.SWAP1 # 1, arg
+ Op.SUB # arg-1,
+ Op.DUP1 # arg-1, arg-1
+ Op.CALLF[2] # arg-1, arg-1
+ Op.ISZERO # jump?, arg-1,
+ Op.RJUMPI[5] # arg-1
+ Op.DUP1 # arg-1, arg-1
+ Op.CALLF[1] # ret, arg-1
+ Op.POP # arg-1
+ Op.DUP1 # arg-1, arg-1
+ Op.CALLF[1] # ret, arg-1
+ Op.POP # arg-1
+ Op.RETF,
code_inputs=1,
code_outputs=1,
Expand Down

0 comments on commit 77596fa

Please sign in to comment.