@@ -42,28 +42,27 @@ Final lowering:
4242Parameters: v0: core::RangeCheck, v1: core::gas::GasBuiltin
4343blk0 (root):
4444Statements:
45- (v2: core::felt252) <- 5
46- (v3: core::RangeCheck, v4: core::gas::GasBuiltin, v5: core::panics::PanicResult::<(core::felt252, core::bool)>) <- test::foo[38-149](v0, v1, v2)
45+ (v2: core::RangeCheck, v3: core::gas::GasBuiltin, v4: core::panics::PanicResult::<(core::felt252, core::bool)>) <- test::foo[38-149]{5, }(v0, v1)
4746End:
48- Match(match_enum(v5 ) {
49- PanicResult::Ok(v6 ) => blk1,
50- PanicResult::Err(v7 ) => blk2,
47+ Match(match_enum(v4 ) {
48+ PanicResult::Ok(v5 ) => blk1,
49+ PanicResult::Err(v6 ) => blk2,
5150 })
5251
5352blk1:
5453Statements:
55- (v8 : core::gas::GasBuiltin) <- core::gas::redeposit_gas(v4 )
56- (v9 : core::felt252, v10 : core::bool) <- struct_destructure(v6 )
57- (v11 : (core::bool,)) <- struct_construct(v10 )
58- (v12 : core::panics::PanicResult::<(core::bool,)>) <- PanicResult::Ok(v11 )
54+ (v7 : core::gas::GasBuiltin) <- core::gas::redeposit_gas(v3 )
55+ (v8 : core::felt252, v9 : core::bool) <- struct_destructure(v5 )
56+ (v10 : (core::bool,)) <- struct_construct(v9 )
57+ (v11 : core::panics::PanicResult::<(core::bool,)>) <- PanicResult::Ok(v10 )
5958End:
60- Return(v3, v8, v12 )
59+ Return(v2, v7, v11 )
6160
6261blk2:
6362Statements:
64- (v13 : core::panics::PanicResult::<(core::bool,)>) <- PanicResult::Err(v7 )
63+ (v12 : core::panics::PanicResult::<(core::bool,)>) <- PanicResult::Err(v6 )
6564End:
66- Return(v3, v4, v13 )
65+ Return(v2, v3, v12 )
6766
6867
6968Generated loop lowering for source location:
@@ -198,28 +197,27 @@ Final lowering:
198197Parameters: v0: core::RangeCheck, v1: core::gas::GasBuiltin
199198blk0 (root):
200199Statements:
201- (v2: core::felt252) <- 5
202- (v3: core::RangeCheck, v4: core::gas::GasBuiltin, v5: core::panics::PanicResult::<(core::felt252, core::bool)>) <- test::foo[38-130](v0, v1, v2)
200+ (v2: core::RangeCheck, v3: core::gas::GasBuiltin, v4: core::panics::PanicResult::<(core::felt252, core::bool)>) <- test::foo[38-130]{5, }(v0, v1)
203201End:
204- Match(match_enum(v5 ) {
205- PanicResult::Ok(v6 ) => blk1,
206- PanicResult::Err(v7 ) => blk2,
202+ Match(match_enum(v4 ) {
203+ PanicResult::Ok(v5 ) => blk1,
204+ PanicResult::Err(v6 ) => blk2,
207205 })
208206
209207blk1:
210208Statements:
211- (v8 : core::gas::GasBuiltin) <- core::gas::redeposit_gas(v4 )
212- (v9 : core::felt252, v10 : core::bool) <- struct_destructure(v6 )
213- (v11 : (core::bool,)) <- struct_construct(v10 )
214- (v12 : core::panics::PanicResult::<(core::bool,)>) <- PanicResult::Ok(v11 )
209+ (v7 : core::gas::GasBuiltin) <- core::gas::redeposit_gas(v3 )
210+ (v8 : core::felt252, v9 : core::bool) <- struct_destructure(v5 )
211+ (v10 : (core::bool,)) <- struct_construct(v9 )
212+ (v11 : core::panics::PanicResult::<(core::bool,)>) <- PanicResult::Ok(v10 )
215213End:
216- Return(v3, v8, v12 )
214+ Return(v2, v7, v11 )
217215
218216blk2:
219217Statements:
220- (v13 : core::panics::PanicResult::<(core::bool,)>) <- PanicResult::Err(v7 )
218+ (v12 : core::panics::PanicResult::<(core::bool,)>) <- PanicResult::Err(v6 )
221219End:
222- Return(v3, v4, v13 )
220+ Return(v2, v3, v12 )
223221
224222
225223Generated loop lowering for source location:
@@ -521,28 +519,27 @@ Final lowering:
521519Parameters: v0: core::RangeCheck, v1: core::gas::GasBuiltin
522520blk0 (root):
523521Statements:
524- (v2: core::felt252) <- 5
525- (v3: core::RangeCheck, v4: core::gas::GasBuiltin, v5: core::panics::PanicResult::<(core::felt252, core::bool)>) <- test::foo[38-201](v0, v1, v2)
522+ (v2: core::RangeCheck, v3: core::gas::GasBuiltin, v4: core::panics::PanicResult::<(core::felt252, core::bool)>) <- test::foo[38-201]{5, }(v0, v1)
526523End:
527- Match(match_enum(v5 ) {
528- PanicResult::Ok(v6 ) => blk1,
529- PanicResult::Err(v7 ) => blk2,
524+ Match(match_enum(v4 ) {
525+ PanicResult::Ok(v5 ) => blk1,
526+ PanicResult::Err(v6 ) => blk2,
530527 })
531528
532529blk1:
533530Statements:
534- (v8 : core::gas::GasBuiltin) <- core::gas::redeposit_gas(v4 )
535- (v9 : core::felt252, v10 : core::bool) <- struct_destructure(v6 )
536- (v11 : (core::bool,)) <- struct_construct(v10 )
537- (v12 : core::panics::PanicResult::<(core::bool,)>) <- PanicResult::Ok(v11 )
531+ (v7 : core::gas::GasBuiltin) <- core::gas::redeposit_gas(v3 )
532+ (v8 : core::felt252, v9 : core::bool) <- struct_destructure(v5 )
533+ (v10 : (core::bool,)) <- struct_construct(v9 )
534+ (v11 : core::panics::PanicResult::<(core::bool,)>) <- PanicResult::Ok(v10 )
538535End:
539- Return(v3, v8, v12 )
536+ Return(v2, v7, v11 )
540537
541538blk2:
542539Statements:
543- (v13 : core::panics::PanicResult::<(core::bool,)>) <- PanicResult::Err(v7 )
540+ (v12 : core::panics::PanicResult::<(core::bool,)>) <- PanicResult::Err(v6 )
544541End:
545- Return(v3, v4, v13 )
542+ Return(v2, v3, v12 )
546543
547544
548545Generated loop lowering for source location:
@@ -1394,29 +1391,27 @@ Final lowering:
13941391Parameters: v0: core::RangeCheck, v1: core::gas::GasBuiltin
13951392blk0 (root):
13961393Statements:
1397- (v2: core::felt252) <- 0
1398- (v3: test::A) <- struct_construct(v2)
1399- (v4: core::RangeCheck, v5: core::gas::GasBuiltin, v6: core::panics::PanicResult::<(test::A, core::felt252, ())>) <- test::foo[58-134](v0, v1, v2, v3)
1394+ (v2: core::RangeCheck, v3: core::gas::GasBuiltin, v4: core::panics::PanicResult::<(test::A, core::felt252, ())>) <- test::foo[58-134]{0, { 0: core::felt252 }, }(v0, v1)
14001395End:
1401- Match(match_enum(v6 ) {
1402- PanicResult::Ok(v7 ) => blk1,
1403- PanicResult::Err(v8 ) => blk2,
1396+ Match(match_enum(v4 ) {
1397+ PanicResult::Ok(v5 ) => blk1,
1398+ PanicResult::Err(v6 ) => blk2,
14041399 })
14051400
14061401blk1:
14071402Statements:
1408- (v9 : core::gas::GasBuiltin) <- core::gas::redeposit_gas(v5 )
1409- (v10 : ()) <- struct_construct()
1410- (v11 : ((),)) <- struct_construct(v10 )
1411- (v12 : core::panics::PanicResult::<((),)>) <- PanicResult::Ok(v11 )
1403+ (v7 : core::gas::GasBuiltin) <- core::gas::redeposit_gas(v3 )
1404+ (v8 : ()) <- struct_construct()
1405+ (v9 : ((),)) <- struct_construct(v8 )
1406+ (v10 : core::panics::PanicResult::<((),)>) <- PanicResult::Ok(v9 )
14121407End:
1413- Return(v4, v9, v12 )
1408+ Return(v2, v7, v10 )
14141409
14151410blk2:
14161411Statements:
1417- (v13 : core::panics::PanicResult::<((),)>) <- PanicResult::Err(v8 )
1412+ (v11 : core::panics::PanicResult::<((),)>) <- PanicResult::Err(v6 )
14181413End:
1419- Return(v4, v5, v13 )
1414+ Return(v2, v3, v11 )
14201415
14211416
14221417Generated loop lowering for source location:
@@ -1561,28 +1556,27 @@ Final lowering:
15611556Parameters: v0: core::RangeCheck, v1: core::gas::GasBuiltin
15621557blk0 (root):
15631558Statements:
1564- (v2: core::integer::u8) <- 0
1565- (v3: core::RangeCheck, v4: core::gas::GasBuiltin, v5: core::panics::PanicResult::<(core::integer::u8, ())>) <- test::MyImpl::impl_in_trait[54-175](v0, v1, v2)
1559+ (v2: core::RangeCheck, v3: core::gas::GasBuiltin, v4: core::panics::PanicResult::<(core::integer::u8, ())>) <- test::MyImpl::impl_in_trait[54-175]{0, }(v0, v1)
15661560End:
1567- Match(match_enum(v5 ) {
1568- PanicResult::Ok(v6 ) => blk1,
1569- PanicResult::Err(v7 ) => blk2,
1561+ Match(match_enum(v4 ) {
1562+ PanicResult::Ok(v5 ) => blk1,
1563+ PanicResult::Err(v6 ) => blk2,
15701564 })
15711565
15721566blk1:
15731567Statements:
1574- (v8 : core::gas::GasBuiltin) <- core::gas::redeposit_gas(v4 )
1575- (v9 : ()) <- struct_construct()
1576- (v10 : ((),)) <- struct_construct(v9 )
1577- (v11 : core::panics::PanicResult::<((),)>) <- PanicResult::Ok(v10 )
1568+ (v7 : core::gas::GasBuiltin) <- core::gas::redeposit_gas(v3 )
1569+ (v8 : ()) <- struct_construct()
1570+ (v9 : ((),)) <- struct_construct(v8 )
1571+ (v10 : core::panics::PanicResult::<((),)>) <- PanicResult::Ok(v9 )
15781572End:
1579- Return(v3, v8, v11 )
1573+ Return(v2, v7, v10 )
15801574
15811575blk2:
15821576Statements:
1583- (v12 : core::panics::PanicResult::<((),)>) <- PanicResult::Err(v7 )
1577+ (v11 : core::panics::PanicResult::<((),)>) <- PanicResult::Err(v6 )
15841578End:
1585- Return(v3, v4, v12 )
1579+ Return(v2, v3, v11 )
15861580
15871581//! > lowering_diagnostics
15881582
@@ -1657,45 +1651,44 @@ Final lowering:
16571651Parameters: v0: core::RangeCheck, v1: core::gas::GasBuiltin
16581652blk0 (root):
16591653Statements:
1660- (v2: core::felt252) <- 5
1661- (v3: core::RangeCheck, v4: core::gas::GasBuiltin, v5: core::panics::PanicResult::<(core::felt252, core::internal::LoopResult::<core::bool, core::integer::u32>)>) <- test::foo[37-253](v0, v1, v2)
1654+ (v2: core::RangeCheck, v3: core::gas::GasBuiltin, v4: core::panics::PanicResult::<(core::felt252, core::internal::LoopResult::<core::bool, core::integer::u32>)>) <- test::foo[37-253]{5, }(v0, v1)
16621655End:
1663- Match(match_enum(v5 ) {
1664- PanicResult::Ok(v6 ) => blk1,
1665- PanicResult::Err(v7 ) => blk4,
1656+ Match(match_enum(v4 ) {
1657+ PanicResult::Ok(v5 ) => blk1,
1658+ PanicResult::Err(v6 ) => blk4,
16661659 })
16671660
16681661blk1:
16691662Statements:
1670- (v8 : core::felt252, v9 : core::internal::LoopResult::<core::bool, core::integer::u32>) <- struct_destructure(v6 )
1663+ (v7 : core::felt252, v8 : core::internal::LoopResult::<core::bool, core::integer::u32>) <- struct_destructure(v5 )
16711664End:
1672- Match(match_enum(v9 ) {
1673- LoopResult::Normal(v10 ) => blk2,
1674- LoopResult::EarlyReturn(v11 ) => blk3,
1665+ Match(match_enum(v8 ) {
1666+ LoopResult::Normal(v9 ) => blk2,
1667+ LoopResult::EarlyReturn(v10 ) => blk3,
16751668 })
16761669
16771670blk2:
16781671Statements:
1679- (v12 : core::gas::GasBuiltin) <- core::gas::redeposit_gas(v4 )
1680- (v13 : core::integer::u32) <- 1
1681- (v14 : (core::integer::u32,)) <- struct_construct(v13 )
1682- (v15 : core::panics::PanicResult::<(core::integer::u32,)>) <- PanicResult::Ok(v14 )
1672+ (v11 : core::gas::GasBuiltin) <- core::gas::redeposit_gas(v3 )
1673+ (v12 : core::integer::u32) <- 1
1674+ (v13 : (core::integer::u32,)) <- struct_construct(v12 )
1675+ (v14 : core::panics::PanicResult::<(core::integer::u32,)>) <- PanicResult::Ok(v13 )
16831676End:
1684- Return(v3, v12, v15 )
1677+ Return(v2, v11, v14 )
16851678
16861679blk3:
16871680Statements:
1688- (v16 : core::gas::GasBuiltin) <- core::gas::redeposit_gas(v4 )
1689- (v17 : (core::integer::u32,)) <- struct_construct(v11 )
1690- (v18 : core::panics::PanicResult::<(core::integer::u32,)>) <- PanicResult::Ok(v17 )
1681+ (v15 : core::gas::GasBuiltin) <- core::gas::redeposit_gas(v3 )
1682+ (v16 : (core::integer::u32,)) <- struct_construct(v10 )
1683+ (v17 : core::panics::PanicResult::<(core::integer::u32,)>) <- PanicResult::Ok(v16 )
16911684End:
1692- Return(v3, v16, v18 )
1685+ Return(v2, v15, v17 )
16931686
16941687blk4:
16951688Statements:
1696- (v19 : core::panics::PanicResult::<(core::integer::u32,)>) <- PanicResult::Err(v7 )
1689+ (v18 : core::panics::PanicResult::<(core::integer::u32,)>) <- PanicResult::Err(v6 )
16971690End:
1698- Return(v3, v4, v19 )
1691+ Return(v2, v3, v18 )
16991692
17001693
17011694Generated loop lowering for source location:
0 commit comments