@@ -22,39 +22,39 @@ proc absorb_scratch_into_batch_hasher
2222 push.0 exec.memory::set_scratch_word_index
2323
2424 exec.memory::load_batch_hasher_state
25- # Stack: [RATE0, RATE1, CAPACITY]
25+ # => [RATE0, RATE1, CAPACITY]
2626
2727 exec.memory::get_scratch_word_index
2828 exec.memory::get_scratch_words_count
2929 u32lt
30- # Stack: [should_loop, RATE0, RATE1, CAPACITY]
30+ # => [should_loop, RATE0, RATE1, CAPACITY]
3131
3232 while.true
3333 exec.memory::get_scratch_word_index
3434 mul.4 add.TX_NOTES_SCRATCH_PTR
35- # Stack: [scratch_ptr, RATE0, RATE1, CAPACITY]
35+ # => [scratch_ptr, RATE0, RATE1, CAPACITY]
3636
3737 padw dup.4 mem_loadw_le
38- # Stack: [DATA1, scratch_ptr, RATE0, RATE1, CAPACITY]
38+ # => [DATA1, scratch_ptr, RATE0, RATE1, CAPACITY]
3939
4040 padw dup.8 add.4 mem_loadw_le
41- # Stack: [DATA2, DATA1, scratch_ptr, RATE0, RATE1, CAPACITY]
41+ # => [DATA2, DATA1, scratch_ptr, RATE0, RATE1, CAPACITY]
4242
4343 movup.8 drop
44- # Stack: [DATA2, DATA1, RATE0, RATE1, CAPACITY]
44+ # => [DATA2, DATA1, RATE0, RATE1, CAPACITY]
4545
4646 # Replace RATE0 + RATE1 with DATA1 + DATA2 (DATA1 first, DATA2 second), then permute.
4747 swapdw
4848 dropw dropw
4949 swapw
5050 exec.poseidon2::permute
51- # Stack: [RATE0', RATE1', CAPACITY']
51+ # => [RATE0', RATE1', CAPACITY']
5252
5353 exec.memory::get_scratch_word_index add.2 exec.memory::set_scratch_word_index
5454 exec.memory::get_scratch_word_index
5555 exec.memory::get_scratch_words_count
5656 u32lt
57- # Stack: [should_loop, RATE0, RATE1, CAPACITY]
57+ # => [should_loop, RATE0, RATE1, CAPACITY]
5858 end
5959
6060 exec.memory::save_batch_hasher_state
@@ -87,51 +87,51 @@ pub proc compute_input_notes_commitment
8787
8888 exec.memory::get_num_transactions
8989 push.0
90- # Stack: [tx_index, num_transactions]
90+ # => [tx_index, num_transactions]
9191
9292 dup.1 dup.1 neq
93- # Stack: [should_loop, tx_index, num_transactions]
93+ # => [should_loop, tx_index, num_transactions]
9494
9595 while.true
9696 dup exec.memory::get_tx_input_notes_commitment
97- # Stack: [INPUT_NOTES_COMMITMENT_i, tx_index, num_transactions]
97+ # => [INPUT_NOTES_COMMITMENT_i, tx_index, num_transactions]
9898
9999 dupw exec.word::eqz
100- # Stack: [is_empty, INPUT_NOTES_COMMITMENT_i, tx_index, num_transactions]
100+ # => [is_empty, INPUT_NOTES_COMMITMENT_i, tx_index, num_transactions]
101101
102102 if.true
103103 dropw
104104 else
105105 push.TX_NOTES_SCRATCH_PTR movdn.4
106- # Stack: [INPUT_NOTES_COMMITMENT_i, tx_notes_scratch_ptr, tx_index, num_transactions]
106+ # => [INPUT_NOTES_COMMITMENT_i, tx_notes_scratch_ptr, tx_index, num_transactions]
107107
108108 adv.push_mapvaln
109109 adv_push div.4
110- # Stack: [num_words, INPUT_NOTES_COMMITMENT_i, tx_notes_scratch_ptr, tx_index, num_transactions]
110+ # => [num_words, INPUT_NOTES_COMMITMENT_i, tx_notes_scratch_ptr, tx_index, num_transactions]
111111
112112 dup exec.memory::set_scratch_words_count
113113
114114 movup.5 swap
115- # Stack: [num_words, tx_notes_scratch_ptr, INPUT_NOTES_COMMITMENT_i, tx_index, num_transactions]
115+ # => [num_words, tx_notes_scratch_ptr, INPUT_NOTES_COMMITMENT_i, tx_index, num_transactions]
116116
117117 # Pipe the note data into scratch, asserting its poseidon2 hash equals
118118 # INPUT_NOTES_COMMITMENT_i.
119119 exec.mem::pipe_preimage_to_memory
120- # Stack: [end_ptr, tx_index, num_transactions]
120+ # => [end_ptr, tx_index, num_transactions]
121121 drop
122122
123123 exec.absorb_scratch_into_batch_hasher
124124 end
125- # Stack: [tx_index, num_transactions]
125+ # => [tx_index, num_transactions]
126126
127127 add.1
128128 dup.1 dup.1 neq
129- # Stack: [should_loop, tx_index, num_transactions]
129+ # => [should_loop, tx_index, num_transactions]
130130 end
131131
132132 drop drop
133133
134134 exec.memory::load_batch_hasher_state
135135 exec.poseidon2::squeeze_digest
136- # Stack: [INPUT_NOTES_COMMITMENT]
136+ # => [INPUT_NOTES_COMMITMENT]
137137end
0 commit comments