|
78 | 78 |
|
79 | 79 | blk1:
|
80 | 80 | Statements:
|
81 |
| - (v23: core::array::SpanIter::<core::felt252>, v24: core::felt252, v25: ()) <- struct_destructure(v21) |
82 |
| - (v26: (core::felt252,)) <- struct_construct(v24) |
83 |
| - (v27: core::panics::PanicResult::<(core::felt252,)>) <- PanicResult::Ok(v26) |
| 81 | + (v23: core::gas::GasBuiltin) <- core::gas::redeposit_gas(v19) |
| 82 | + (v24: core::array::SpanIter::<core::felt252>, v25: core::felt252, v26: ()) <- struct_destructure(v21) |
| 83 | + (v27: (core::felt252,)) <- struct_construct(v25) |
| 84 | + (v28: core::panics::PanicResult::<(core::felt252,)>) <- PanicResult::Ok(v27) |
84 | 85 | End:
|
85 |
| - Return(v18, v19, v27) |
| 86 | + Return(v18, v23, v28) |
86 | 87 |
|
87 | 88 | blk2:
|
88 | 89 | Statements:
|
89 |
| - (v28: core::panics::PanicResult::<(core::felt252,)>) <- PanicResult::Err(v22) |
| 90 | + (v29: core::gas::GasBuiltin) <- core::gas::redeposit_gas(v19) |
| 91 | + (v30: core::panics::PanicResult::<(core::felt252,)>) <- PanicResult::Err(v22) |
90 | 92 | End:
|
91 |
| - Return(v18, v19, v28) |
| 93 | + Return(v18, v29, v30) |
92 | 94 |
|
93 | 95 |
|
94 | 96 | Generated loop lowering for source location:
|
@@ -139,81 +141,89 @@ End:
|
139 | 141 |
|
140 | 142 | blk1:
|
141 | 143 | Statements:
|
142 |
| - (v9: core::array::Span::<core::felt252>) <- struct_destructure(v2) |
143 |
| - (v10: @core::array::Array::<core::felt252>) <- struct_destructure(v9) |
| 144 | + (v9: core::gas::GasBuiltin) <- core::gas::redeposit_gas(v6) |
| 145 | + (v10: core::array::Span::<core::felt252>) <- struct_destructure(v2) |
| 146 | + (v11: @core::array::Array::<core::felt252>) <- struct_destructure(v10) |
144 | 147 | End:
|
145 |
| - Match(match core::array::array_snapshot_pop_front::<core::felt252>(v10) { |
146 |
| - Option::Some(v11, v12) => blk2, |
147 |
| - Option::None(v13) => blk3, |
| 148 | + Match(match core::array::array_snapshot_pop_front::<core::felt252>(v11) { |
| 149 | + Option::Some(v12, v13) => blk2, |
| 150 | + Option::None(v14) => blk3, |
148 | 151 | })
|
149 | 152 |
|
150 | 153 | blk2:
|
151 | 154 | Statements:
|
152 |
| - (v14: core::option::Option::<core::box::Box::<@core::felt252>>) <- Option::Some(v12) |
| 155 | + (v15: core::gas::GasBuiltin) <- core::gas::redeposit_gas(v9) |
| 156 | + (v16: core::option::Option::<core::box::Box::<@core::felt252>>) <- Option::Some(v13) |
153 | 157 | End:
|
154 |
| - Goto(blk4, {v11 -> v15, v14 -> v16}) |
| 158 | + Goto(blk4, {v15 -> v17, v12 -> v18, v16 -> v19}) |
155 | 159 |
|
156 | 160 | blk3:
|
157 | 161 | Statements:
|
158 |
| - (v17: ()) <- struct_construct() |
159 |
| - (v18: core::option::Option::<core::box::Box::<@core::felt252>>) <- Option::None(v17) |
| 162 | + (v20: core::gas::GasBuiltin) <- core::gas::redeposit_gas(v9) |
| 163 | + (v21: ()) <- struct_construct() |
| 164 | + (v22: core::option::Option::<core::box::Box::<@core::felt252>>) <- Option::None(v21) |
160 | 165 | End:
|
161 |
| - Goto(blk4, {v13 -> v15, v18 -> v16}) |
| 166 | + Goto(blk4, {v20 -> v17, v14 -> v18, v22 -> v19}) |
162 | 167 |
|
163 | 168 | blk4:
|
164 | 169 | Statements:
|
165 |
| - (v19: core::array::Span::<core::felt252>) <- struct_construct(v15) |
| 170 | + (v23: core::array::Span::<core::felt252>) <- struct_construct(v18) |
166 | 171 | End:
|
167 |
| - Match(match_enum(v16) { |
168 |
| - Option::Some(v20) => blk5, |
169 |
| - Option::None(v21) => blk6, |
| 172 | + Match(match_enum(v19) { |
| 173 | + Option::Some(v24) => blk5, |
| 174 | + Option::None(v25) => blk6, |
170 | 175 | })
|
171 | 176 |
|
172 | 177 | blk5:
|
173 | 178 | Statements:
|
174 |
| - (v22: @core::felt252) <- core::box::unbox::<@core::felt252>(v20) |
175 |
| - (v23: core::option::Option::<@core::felt252>) <- Option::Some(v22) |
| 179 | + (v26: core::gas::GasBuiltin) <- core::gas::redeposit_gas(v17) |
| 180 | + (v27: @core::felt252) <- core::box::unbox::<@core::felt252>(v24) |
| 181 | + (v28: core::option::Option::<@core::felt252>) <- Option::Some(v27) |
176 | 182 | End:
|
177 |
| - Goto(blk7, {v23 -> v24}) |
| 183 | + Goto(blk7, {v26 -> v29, v28 -> v30}) |
178 | 184 |
|
179 | 185 | blk6:
|
180 | 186 | Statements:
|
181 |
| - (v25: ()) <- struct_construct() |
182 |
| - (v26: core::option::Option::<@core::felt252>) <- Option::None(v25) |
| 187 | + (v31: core::gas::GasBuiltin) <- core::gas::redeposit_gas(v17) |
| 188 | + (v32: ()) <- struct_construct() |
| 189 | + (v33: core::option::Option::<@core::felt252>) <- Option::None(v32) |
183 | 190 | End:
|
184 |
| - Goto(blk7, {v26 -> v24}) |
| 191 | + Goto(blk7, {v31 -> v29, v33 -> v30}) |
185 | 192 |
|
186 | 193 | blk7:
|
187 | 194 | Statements:
|
188 |
| - (v27: core::array::SpanIter::<core::felt252>) <- struct_construct(v19) |
| 195 | + (v34: core::array::SpanIter::<core::felt252>) <- struct_construct(v23) |
189 | 196 | End:
|
190 |
| - Match(match_enum(v24) { |
191 |
| - Option::Some(v28) => blk8, |
192 |
| - Option::None(v29) => blk9, |
| 197 | + Match(match_enum(v30) { |
| 198 | + Option::Some(v35) => blk8, |
| 199 | + Option::None(v36) => blk9, |
193 | 200 | })
|
194 | 201 |
|
195 | 202 | blk8:
|
196 | 203 | Statements:
|
197 |
| - (v30: core::felt252) <- core::felt252_add(v3, v4) |
198 |
| - (v31: core::RangeCheck, v32: core::gas::GasBuiltin, v33: core::panics::PanicResult::<(core::array::SpanIter::<core::felt252>, core::felt252, ())>) <- test::foo[expr30](v5, v6, v27, v30, v4) |
| 204 | + (v37: core::gas::GasBuiltin) <- core::gas::redeposit_gas(v29) |
| 205 | + (v38: core::felt252) <- core::felt252_add(v3, v4) |
| 206 | + (v39: core::RangeCheck, v40: core::gas::GasBuiltin, v41: core::panics::PanicResult::<(core::array::SpanIter::<core::felt252>, core::felt252, ())>) <- test::foo[expr30](v5, v37, v34, v38, v4) |
199 | 207 | End:
|
200 |
| - Return(v31, v32, v33) |
| 208 | + Return(v39, v40, v41) |
201 | 209 |
|
202 | 210 | blk9:
|
203 | 211 | Statements:
|
204 |
| - (v34: ()) <- struct_construct() |
205 |
| - (v35: (core::array::SpanIter::<core::felt252>, core::felt252, ())) <- struct_construct(v27, v3, v34) |
206 |
| - (v36: core::panics::PanicResult::<(core::array::SpanIter::<core::felt252>, core::felt252, ())>) <- PanicResult::Ok(v35) |
| 212 | + (v42: core::gas::GasBuiltin) <- core::gas::redeposit_gas(v29) |
| 213 | + (v43: ()) <- struct_construct() |
| 214 | + (v44: (core::array::SpanIter::<core::felt252>, core::felt252, ())) <- struct_construct(v34, v3, v43) |
| 215 | + (v45: core::panics::PanicResult::<(core::array::SpanIter::<core::felt252>, core::felt252, ())>) <- PanicResult::Ok(v44) |
207 | 216 | End:
|
208 |
| - Return(v5, v6, v36) |
| 217 | + Return(v5, v42, v45) |
209 | 218 |
|
210 | 219 | blk10:
|
211 | 220 | Statements:
|
212 |
| - (v37: core::array::Array::<core::felt252>) <- core::array::array_new::<core::felt252>() |
213 |
| - (v38: core::felt252) <- 375233589013918064796019 |
214 |
| - (v39: core::array::Array::<core::felt252>) <- core::array::array_append::<core::felt252>(v37, v38) |
215 |
| - (v40: core::panics::Panic) <- struct_construct() |
216 |
| - (v41: (core::panics::Panic, core::array::Array::<core::felt252>)) <- struct_construct(v40, v39) |
217 |
| - (v42: core::panics::PanicResult::<(core::array::SpanIter::<core::felt252>, core::felt252, ())>) <- PanicResult::Err(v41) |
| 221 | + (v46: core::gas::GasBuiltin) <- core::gas::redeposit_gas(v8) |
| 222 | + (v47: core::array::Array::<core::felt252>) <- core::array::array_new::<core::felt252>() |
| 223 | + (v48: core::felt252) <- 375233589013918064796019 |
| 224 | + (v49: core::array::Array::<core::felt252>) <- core::array::array_append::<core::felt252>(v47, v48) |
| 225 | + (v50: core::panics::Panic) <- struct_construct() |
| 226 | + (v51: (core::panics::Panic, core::array::Array::<core::felt252>)) <- struct_construct(v50, v49) |
| 227 | + (v52: core::panics::PanicResult::<(core::array::SpanIter::<core::felt252>, core::felt252, ())>) <- PanicResult::Err(v51) |
218 | 228 | End:
|
219 |
| - Return(v7, v8, v42) |
| 229 | + Return(v7, v46, v52) |
0 commit comments