@@ -13565,22 +13565,22 @@ ir.cpp:
13565
13565
# 1757| Type = [IntType] int
13566
13566
# 1757| getEntryPoint(): [BlockStmt] { ... }
13567
13567
# 1758| getStmt(0): [IfStmt] if (...) ...
13568
- # 1758| getInitialization(): [DeclStmt] declaration
13569
- # 1758| getDeclarationEntry(0): [VariableDeclarationEntry] definition of y
13570
- # 1758| Type = [IntType] int
13571
- # 1758| getVariable().getInitializer(): [Initializer] initializer for y
13572
- # 1758| getExpr(): [VariableAccess] x
13573
- # 1758| Type = [IntType] int
13574
- # 1758| ValueCategory = prvalue(load)
13575
- # 1758| getCondition(): [AddExpr] ... + ...
13576
- # 1758| Type = [IntType] int
13568
+ # 1758| getCondition(): [ConditionDeclExpr] (condition decl)
13569
+ # 1758| Type = [BoolType] bool
13577
13570
# 1758| ValueCategory = prvalue
13578
- # 1758| getLeftOperand( ): [VariableAccess] x
13571
+ # 1758| getChild(0 ): [AddExpr] ... + ...
13579
13572
# 1758| Type = [IntType] int
13580
- # 1758| ValueCategory = prvalue(load)
13581
- # 1758| getRightOperand(): [Literal] 1
13582
- # 1758| Type = [IntType] int
13583
- # 1758| Value = [Literal] 1
13573
+ # 1758| ValueCategory = prvalue
13574
+ # 1758| getLeftOperand(): [VariableAccess] x
13575
+ # 1758| Type = [IntType] int
13576
+ # 1758| ValueCategory = prvalue(load)
13577
+ # 1758| getRightOperand(): [Literal] 1
13578
+ # 1758| Type = [IntType] int
13579
+ # 1758| Value = [Literal] 1
13580
+ # 1758| ValueCategory = prvalue
13581
+ # 1758| getChild(0).getFullyConverted(): [CStyleCast] (bool)...
13582
+ # 1758| Conversion = [BoolConversion] conversion to bool
13583
+ # 1758| Type = [BoolType] bool
13584
13584
# 1758| ValueCategory = prvalue
13585
13585
# 1758| getThen(): [BlockStmt] { ... }
13586
13586
# 1759| getStmt(0): [ExprStmt] ExprStmt
@@ -13599,33 +13599,26 @@ ir.cpp:
13599
13599
# 1759| getRightOperand(): [VariableAccess] y
13600
13600
# 1759| Type = [IntType] int
13601
13601
# 1759| ValueCategory = prvalue(load)
13602
- # 1758| getCondition().getFullyConverted(): [CStyleCast] (bool)...
13603
- # 1758| Conversion = [BoolConversion] conversion to bool
13604
- # 1758| Type = [BoolType] bool
13605
- # 1758| ValueCategory = prvalue
13606
13602
# 1762| getStmt(1): [DeclStmt] declaration
13607
13603
# 1762| getDeclarationEntry(0): [VariableDeclarationEntry] definition of w
13608
13604
# 1762| Type = [IntType] int
13609
13605
# 1763| getStmt(2): [IfStmt] if (...) ...
13610
- # 1763| getInitialization(): [ExprStmt] ExprStmt
13611
- # 1763| getExpr(): [AssignExpr] ... = ...
13606
+ # 1763| getCondition(): [ConditionDeclExpr] (condition decl)
13607
+ # 1763| Type = [BoolType] bool
13608
+ # 1763| ValueCategory = prvalue
13609
+ # 1763| getChild(0): [AddExpr] ... + ...
13612
13610
# 1763| Type = [IntType] int
13613
- # 1763| ValueCategory = lvalue
13614
- # 1763| getLValue(): [VariableAccess] w
13615
- # 1763| Type = [IntType] int
13616
- # 1763| ValueCategory = lvalue
13617
- # 1763| getRValue(): [VariableAccess] x
13611
+ # 1763| ValueCategory = prvalue
13612
+ # 1763| getLeftOperand(): [VariableAccess] x
13618
13613
# 1763| Type = [IntType] int
13619
13614
# 1763| ValueCategory = prvalue(load)
13620
- # 1763| getCondition(): [AddExpr] ... + ...
13621
- # 1763| Type = [IntType] int
13622
- # 1763| ValueCategory = prvalue
13623
- # 1763| getLeftOperand(): [VariableAccess] x
13624
- # 1763| Type = [IntType] int
13625
- # 1763| ValueCategory = prvalue(load)
13626
- # 1763| getRightOperand(): [Literal] 1
13627
- # 1763| Type = [IntType] int
13628
- # 1763| Value = [Literal] 1
13615
+ # 1763| getRightOperand(): [Literal] 1
13616
+ # 1763| Type = [IntType] int
13617
+ # 1763| Value = [Literal] 1
13618
+ # 1763| ValueCategory = prvalue
13619
+ # 1763| getChild(0).getFullyConverted(): [CStyleCast] (bool)...
13620
+ # 1763| Conversion = [BoolConversion] conversion to bool
13621
+ # 1763| Type = [BoolType] bool
13629
13622
# 1763| ValueCategory = prvalue
13630
13623
# 1763| getThen(): [BlockStmt] { ... }
13631
13624
# 1764| getStmt(0): [ExprStmt] ExprStmt
@@ -13644,21 +13637,7 @@ ir.cpp:
13644
13637
# 1764| getRightOperand(): [VariableAccess] w
13645
13638
# 1764| Type = [IntType] int
13646
13639
# 1764| ValueCategory = prvalue(load)
13647
- # 1763| getCondition().getFullyConverted(): [CStyleCast] (bool)...
13648
- # 1763| Conversion = [BoolConversion] conversion to bool
13649
- # 1763| Type = [BoolType] bool
13650
- # 1763| ValueCategory = prvalue
13651
13640
# 1767| getStmt(3): [IfStmt] if (...) ...
13652
- # 1767| getInitialization(): [ExprStmt] ExprStmt
13653
- # 1767| getExpr(): [AssignExpr] ... = ...
13654
- # 1767| Type = [IntType] int
13655
- # 1767| ValueCategory = lvalue
13656
- # 1767| getLValue(): [VariableAccess] w
13657
- # 1767| Type = [IntType] int
13658
- # 1767| ValueCategory = lvalue
13659
- # 1767| getRValue(): [VariableAccess] x
13660
- # 1767| Type = [IntType] int
13661
- # 1767| ValueCategory = prvalue(load)
13662
13641
# 1767| getCondition(): [ConditionDeclExpr] (condition decl)
13663
13642
# 1767| Type = [BoolType] bool
13664
13643
# 1767| ValueCategory = prvalue
@@ -13687,13 +13666,6 @@ ir.cpp:
13687
13666
# 1768| Type = [IntType] int
13688
13667
# 1768| ValueCategory = prvalue(load)
13689
13668
# 1771| getStmt(4): [IfStmt] if (...) ...
13690
- # 1771| getInitialization(): [DeclStmt] declaration
13691
- # 1771| getDeclarationEntry(0): [VariableDeclarationEntry] definition of v
13692
- # 1771| Type = [IntType] int
13693
- # 1771| getVariable().getInitializer(): [Initializer] initializer for v
13694
- # 1771| getExpr(): [VariableAccess] x
13695
- # 1771| Type = [IntType] int
13696
- # 1771| ValueCategory = prvalue(load)
13697
13669
# 1771| getCondition(): [ConditionDeclExpr] (condition decl)
13698
13670
# 1771| Type = [BoolType] bool
13699
13671
# 1771| ValueCategory = prvalue
@@ -13782,23 +13754,19 @@ ir.cpp:
13782
13754
# 1785| Type = [IntType] int
13783
13755
# 1785| getEntryPoint(): [BlockStmt] { ... }
13784
13756
# 1786| getStmt(0): [SwitchStmt] switch (...) ...
13785
- # 1786| getInitialization(): [DeclStmt] declaration
13786
- # 1786| getDeclarationEntry(0): [VariableDeclarationEntry] definition of y
13787
- # 1786| Type = [IntType] int
13788
- # 1786| getVariable().getInitializer(): [Initializer] initializer for y
13789
- # 1786| getExpr(): [VariableAccess] x
13790
- # 1786| Type = [IntType] int
13791
- # 1786| ValueCategory = prvalue(load)
13792
- # 1786| getExpr(): [AddExpr] ... + ...
13757
+ # 1786| getExpr(): [ConditionDeclExpr] (condition decl)
13793
13758
# 1786| Type = [IntType] int
13794
13759
# 1786| ValueCategory = prvalue
13795
- # 1786| getLeftOperand( ): [VariableAccess] x
13760
+ # 1786| getChild(0 ): [AddExpr] ... + ...
13796
13761
# 1786| Type = [IntType] int
13797
- # 1786| ValueCategory = prvalue(load)
13798
- # 1786| getRightOperand(): [Literal] 1
13799
- # 1786| Type = [IntType] int
13800
- # 1786| Value = [Literal] 1
13801
13762
# 1786| ValueCategory = prvalue
13763
+ # 1786| getLeftOperand(): [VariableAccess] x
13764
+ # 1786| Type = [IntType] int
13765
+ # 1786| ValueCategory = prvalue(load)
13766
+ # 1786| getRightOperand(): [Literal] 1
13767
+ # 1786| Type = [IntType] int
13768
+ # 1786| Value = [Literal] 1
13769
+ # 1786| ValueCategory = prvalue
13802
13770
# 1786| getStmt(): [BlockStmt] { ... }
13803
13771
# 1787| getStmt(0): [SwitchCase] default:
13804
13772
# 1788| getStmt(1): [ExprStmt] ExprStmt
@@ -13821,26 +13789,19 @@ ir.cpp:
13821
13789
# 1791| getDeclarationEntry(0): [VariableDeclarationEntry] definition of w
13822
13790
# 1791| Type = [IntType] int
13823
13791
# 1792| getStmt(2): [SwitchStmt] switch (...) ...
13824
- # 1792| getInitialization(): [ExprStmt] ExprStmt
13825
- # 1792| getExpr(): [AssignExpr] ... = ...
13826
- # 1792| Type = [IntType] int
13827
- # 1792| ValueCategory = lvalue
13828
- # 1792| getLValue(): [VariableAccess] w
13829
- # 1792| Type = [IntType] int
13830
- # 1792| ValueCategory = lvalue
13831
- # 1792| getRValue(): [VariableAccess] x
13832
- # 1792| Type = [IntType] int
13833
- # 1792| ValueCategory = prvalue(load)
13834
- # 1792| getExpr(): [AddExpr] ... + ...
13792
+ # 1792| getExpr(): [ConditionDeclExpr] (condition decl)
13835
13793
# 1792| Type = [IntType] int
13836
13794
# 1792| ValueCategory = prvalue
13837
- # 1792| getLeftOperand(): [VariableAccess] x
13838
- # 1792| Type = [IntType] int
13839
- # 1792| ValueCategory = prvalue(load)
13840
- # 1792| getRightOperand(): [Literal] 1
13795
+ # 1792| getChild(0): [AddExpr] ... + ...
13841
13796
# 1792| Type = [IntType] int
13842
- # 1792| Value = [Literal] 1
13843
13797
# 1792| ValueCategory = prvalue
13798
+ # 1792| getLeftOperand(): [VariableAccess] x
13799
+ # 1792| Type = [IntType] int
13800
+ # 1792| ValueCategory = prvalue(load)
13801
+ # 1792| getRightOperand(): [Literal] 1
13802
+ # 1792| Type = [IntType] int
13803
+ # 1792| Value = [Literal] 1
13804
+ # 1792| ValueCategory = prvalue
13844
13805
# 1792| getStmt(): [BlockStmt] { ... }
13845
13806
# 1793| getStmt(0): [SwitchCase] default:
13846
13807
# 1794| getStmt(1): [ExprStmt] ExprStmt
@@ -13860,16 +13821,6 @@ ir.cpp:
13860
13821
# 1794| Type = [IntType] int
13861
13822
# 1794| ValueCategory = prvalue(load)
13862
13823
# 1797| getStmt(3): [SwitchStmt] switch (...) ...
13863
- # 1797| getInitialization(): [ExprStmt] ExprStmt
13864
- # 1797| getExpr(): [AssignExpr] ... = ...
13865
- # 1797| Type = [IntType] int
13866
- # 1797| ValueCategory = lvalue
13867
- # 1797| getLValue(): [VariableAccess] w
13868
- # 1797| Type = [IntType] int
13869
- # 1797| ValueCategory = lvalue
13870
- # 1797| getRValue(): [VariableAccess] x
13871
- # 1797| Type = [IntType] int
13872
- # 1797| ValueCategory = prvalue(load)
13873
13824
# 1797| getExpr(): [ConditionDeclExpr] (condition decl)
13874
13825
# 1797| Type = [IntType] int
13875
13826
# 1797| ValueCategory = prvalue
@@ -13895,13 +13846,6 @@ ir.cpp:
13895
13846
# 1799| Type = [IntType] int
13896
13847
# 1799| ValueCategory = prvalue(load)
13897
13848
# 1802| getStmt(4): [SwitchStmt] switch (...) ...
13898
- # 1802| getInitialization(): [DeclStmt] declaration
13899
- # 1802| getDeclarationEntry(0): [VariableDeclarationEntry] definition of v
13900
- # 1802| Type = [IntType] int
13901
- # 1802| getVariable().getInitializer(): [Initializer] initializer for v
13902
- # 1802| getExpr(): [VariableAccess] x
13903
- # 1802| Type = [IntType] int
13904
- # 1802| ValueCategory = prvalue(load)
13905
13849
# 1802| getExpr(): [ConditionDeclExpr] (condition decl)
13906
13850
# 1802| Type = [IntType] int
13907
13851
# 1802| ValueCategory = prvalue
0 commit comments