@@ -8812,6 +8812,15 @@ ir.cpp:
8812
8812
# 976| getVariableAccess(): [VariableAccess] b
8813
8813
# 976| Type = [BoolType] bool
8814
8814
# 976| ValueCategory = prvalue(load)
8815
+ # 976| getInitializingExpr(): [LTExpr] ... < ...
8816
+ # 976| Type = [BoolType] bool
8817
+ # 976| ValueCategory = prvalue
8818
+ # 976| getLesserOperand(): [VariableAccess] x
8819
+ # 976| Type = [IntType] int
8820
+ # 976| ValueCategory = prvalue(load)
8821
+ # 976| getGreaterOperand(): [VariableAccess] y
8822
+ # 976| Type = [IntType] int
8823
+ # 976| ValueCategory = prvalue(load)
8815
8824
# 976| getThen(): [BlockStmt] { ... }
8816
8825
# 977| getStmt(0): [ExprStmt] ExprStmt
8817
8826
# 977| getExpr(): [AssignExpr] ... = ...
@@ -8831,6 +8840,15 @@ ir.cpp:
8831
8840
# 979| getVariableAccess(): [VariableAccess] z
8832
8841
# 979| Type = [IntType] int
8833
8842
# 979| ValueCategory = prvalue(load)
8843
+ # 979| getInitializingExpr(): [AddExpr] ... + ...
8844
+ # 979| Type = [IntType] int
8845
+ # 979| ValueCategory = prvalue
8846
+ # 979| getLeftOperand(): [VariableAccess] x
8847
+ # 979| Type = [IntType] int
8848
+ # 979| ValueCategory = prvalue(load)
8849
+ # 979| getRightOperand(): [VariableAccess] y
8850
+ # 979| Type = [IntType] int
8851
+ # 979| ValueCategory = prvalue(load)
8834
8852
# 979| getVariableAccess().getFullyConverted(): [CStyleCast] (bool)...
8835
8853
# 979| Conversion = [BoolConversion] conversion to bool
8836
8854
# 979| Type = [BoolType] bool
@@ -8854,6 +8872,12 @@ ir.cpp:
8854
8872
# 982| getVariableAccess(): [VariableAccess] p
8855
8873
# 982| Type = [IntPointerType] int *
8856
8874
# 982| ValueCategory = prvalue(load)
8875
+ # 982| getInitializingExpr(): [AddressOfExpr] & ...
8876
+ # 982| Type = [IntPointerType] int *
8877
+ # 982| ValueCategory = prvalue
8878
+ # 982| getOperand(): [VariableAccess] x
8879
+ # 982| Type = [IntType] int
8880
+ # 982| ValueCategory = lvalue
8857
8881
# 982| getVariableAccess().getFullyConverted(): [CStyleCast] (bool)...
8858
8882
# 982| Conversion = [BoolConversion] conversion to bool
8859
8883
# 982| Type = [BoolType] bool
@@ -8888,6 +8912,15 @@ ir.cpp:
8888
8912
# 988| getVariableAccess(): [VariableAccess] b
8889
8913
# 988| Type = [BoolType] bool
8890
8914
# 988| ValueCategory = prvalue(load)
8915
+ # 988| getInitializingExpr(): [LTExpr] ... < ...
8916
+ # 988| Type = [BoolType] bool
8917
+ # 988| ValueCategory = prvalue
8918
+ # 988| getLesserOperand(): [VariableAccess] x
8919
+ # 988| Type = [IntType] int
8920
+ # 988| ValueCategory = prvalue(load)
8921
+ # 988| getGreaterOperand(): [VariableAccess] y
8922
+ # 988| Type = [IntType] int
8923
+ # 988| ValueCategory = prvalue(load)
8891
8924
# 988| getStmt(): [BlockStmt] { ... }
8892
8925
# 990| getStmt(1): [WhileStmt] while (...) ...
8893
8926
# 990| getCondition(): [ConditionDeclExpr] (condition decl)
@@ -8896,6 +8929,15 @@ ir.cpp:
8896
8929
# 990| getVariableAccess(): [VariableAccess] z
8897
8930
# 990| Type = [IntType] int
8898
8931
# 990| ValueCategory = prvalue(load)
8932
+ # 990| getInitializingExpr(): [AddExpr] ... + ...
8933
+ # 990| Type = [IntType] int
8934
+ # 990| ValueCategory = prvalue
8935
+ # 990| getLeftOperand(): [VariableAccess] x
8936
+ # 990| Type = [IntType] int
8937
+ # 990| ValueCategory = prvalue(load)
8938
+ # 990| getRightOperand(): [VariableAccess] y
8939
+ # 990| Type = [IntType] int
8940
+ # 990| ValueCategory = prvalue(load)
8899
8941
# 990| getVariableAccess().getFullyConverted(): [CStyleCast] (bool)...
8900
8942
# 990| Conversion = [BoolConversion] conversion to bool
8901
8943
# 990| Type = [BoolType] bool
@@ -8908,6 +8950,12 @@ ir.cpp:
8908
8950
# 992| getVariableAccess(): [VariableAccess] p
8909
8951
# 992| Type = [IntPointerType] int *
8910
8952
# 992| ValueCategory = prvalue(load)
8953
+ # 992| getInitializingExpr(): [AddressOfExpr] & ...
8954
+ # 992| Type = [IntPointerType] int *
8955
+ # 992| ValueCategory = prvalue
8956
+ # 992| getOperand(): [VariableAccess] x
8957
+ # 992| Type = [IntType] int
8958
+ # 992| ValueCategory = lvalue
8911
8959
# 992| getVariableAccess().getFullyConverted(): [CStyleCast] (bool)...
8912
8960
# 992| Conversion = [BoolConversion] conversion to bool
8913
8961
# 992| Type = [BoolType] bool
@@ -14780,6 +14828,9 @@ ir.cpp:
14780
14828
# 1816| getVariableAccess(): [VariableAccess] w2
14781
14829
# 1816| Type = [IntType] int
14782
14830
# 1816| ValueCategory = prvalue(load)
14831
+ # 1816| getInitializingExpr(): [VariableAccess] w
14832
+ # 1816| Type = [IntType] int
14833
+ # 1816| ValueCategory = prvalue(load)
14783
14834
# 1816| getVariableAccess().getFullyConverted(): [CStyleCast] (bool)...
14784
14835
# 1816| Conversion = [BoolConversion] conversion to bool
14785
14836
# 1816| Type = [BoolType] bool
@@ -14815,6 +14866,9 @@ ir.cpp:
14815
14866
# 1820| getVariableAccess(): [VariableAccess] v2
14816
14867
# 1820| Type = [IntType] int
14817
14868
# 1820| ValueCategory = prvalue(load)
14869
+ # 1820| getInitializingExpr(): [VariableAccess] v
14870
+ # 1820| Type = [IntType] int
14871
+ # 1820| ValueCategory = prvalue(load)
14818
14872
# 1820| getVariableAccess().getFullyConverted(): [CStyleCast] (bool)...
14819
14873
# 1820| Conversion = [BoolConversion] conversion to bool
14820
14874
# 1820| Type = [BoolType] bool
@@ -14875,6 +14929,9 @@ ir.cpp:
14875
14929
# 1829| getVariableAccess(): [VariableAccess] z2
14876
14930
# 1829| Type = [IntType] int
14877
14931
# 1829| ValueCategory = prvalue(load)
14932
+ # 1829| getInitializingExpr(): [VariableAccess] z
14933
+ # 1829| Type = [IntType] int
14934
+ # 1829| ValueCategory = prvalue(load)
14878
14935
# 1829| getVariableAccess().getFullyConverted(): [CStyleCast] (bool)...
14879
14936
# 1829| Conversion = [BoolConversion] conversion to bool
14880
14937
# 1829| Type = [BoolType] bool
@@ -14991,6 +15048,9 @@ ir.cpp:
14991
15048
# 1846| getVariableAccess(): [VariableAccess] w2
14992
15049
# 1846| Type = [IntType] int
14993
15050
# 1846| ValueCategory = prvalue(load)
15051
+ # 1846| getInitializingExpr(): [VariableAccess] w
15052
+ # 1846| Type = [IntType] int
15053
+ # 1846| ValueCategory = prvalue(load)
14994
15054
# 1846| getStmt(): [BlockStmt] { ... }
14995
15055
# 1847| getStmt(0): [SwitchCase] default:
14996
15056
# 1848| getStmt(1): [ExprStmt] ExprStmt
@@ -15023,6 +15083,9 @@ ir.cpp:
15023
15083
# 1851| getVariableAccess(): [VariableAccess] v2
15024
15084
# 1851| Type = [IntType] int
15025
15085
# 1851| ValueCategory = prvalue(load)
15086
+ # 1851| getInitializingExpr(): [VariableAccess] v
15087
+ # 1851| Type = [IntType] int
15088
+ # 1851| ValueCategory = prvalue(load)
15026
15089
# 1851| getStmt(): [BlockStmt] { ... }
15027
15090
# 1852| getStmt(0): [SwitchCase] default:
15028
15091
# 1853| getStmt(1): [ExprStmt] ExprStmt
@@ -15077,6 +15140,9 @@ ir.cpp:
15077
15140
# 1862| getVariableAccess(): [VariableAccess] z2
15078
15141
# 1862| Type = [IntType] int
15079
15142
# 1862| ValueCategory = prvalue(load)
15143
+ # 1862| getInitializingExpr(): [VariableAccess] z
15144
+ # 1862| Type = [IntType] int
15145
+ # 1862| ValueCategory = prvalue(load)
15080
15146
# 1862| getStmt(): [BlockStmt] { ... }
15081
15147
# 1863| getStmt(0): [SwitchCase] default:
15082
15148
# 1864| getStmt(1): [ExprStmt] ExprStmt
@@ -17048,6 +17114,10 @@ ir.cpp:
17048
17114
# 2169| getQualifier(): [VariableAccess] b
17049
17115
# 2169| Type = [Struct] HasOperatorBool
17050
17116
# 2169| ValueCategory = prvalue(load)
17117
+ # 2169| getInitializingExpr(): [Literal] 0
17118
+ # 2169| Type = [Struct] HasOperatorBool
17119
+ # 2169| Value = [Literal] 0
17120
+ # 2169| ValueCategory = prvalue
17051
17121
# 2169| getThen(): [BlockStmt] { ... }
17052
17122
# 2170| getStmt(1): [ReturnStmt] return ...
17053
17123
# 2172| [CopyAssignmentOperator] ClassWithDestructor& ClassWithDestructor::operator=(ClassWithDestructor const&)
@@ -18650,6 +18720,12 @@ ir.cpp:
18650
18720
# 2318| getQualifier(): [VariableAccess] B
18651
18721
# 2318| Type = [Class] Bool
18652
18722
# 2318| ValueCategory = prvalue(load)
18723
+ # 2318| getInitializingExpr(): [ConstructorCall] call to Bool
18724
+ # 2318| Type = [VoidType] void
18725
+ # 2318| ValueCategory = prvalue
18726
+ # 2318| getArgument(0): [VariableAccess] b
18727
+ # 2318| Type = [BoolType] bool
18728
+ # 2318| ValueCategory = prvalue(load)
18653
18729
# 2318| getThen(): [BlockStmt] { ... }
18654
18730
# 2319| getStmt(0): [DeclStmt] declaration
18655
18731
# 2319| getDeclarationEntry(0): [VariableDeclarationEntry] definition of s1
@@ -18731,6 +18807,12 @@ ir.cpp:
18731
18807
# 2334| getQualifier(): [VariableAccess] B
18732
18808
# 2334| Type = [Class] Bool
18733
18809
# 2334| ValueCategory = prvalue(load)
18810
+ # 2334| getInitializingExpr(): [ConstructorCall] call to Bool
18811
+ # 2334| Type = [VoidType] void
18812
+ # 2334| ValueCategory = prvalue
18813
+ # 2334| getArgument(0): [VariableAccess] b
18814
+ # 2334| Type = [BoolType] bool
18815
+ # 2334| ValueCategory = prvalue(load)
18734
18816
# 2334| getStmt(): [BlockStmt] { ... }
18735
18817
# 2335| getStmt(0): [ExprStmt] ExprStmt
18736
18818
# 2335| getExpr(): [AssignExpr] ... = ...
@@ -19678,6 +19760,21 @@ ir.cpp:
19678
19760
# 2397| getVariableAccess(): [VariableAccess] x
19679
19761
# 2397| Type = [PlainCharType] char
19680
19762
# 2397| ValueCategory = prvalue(load)
19763
+ # 2397| getInitializingExpr(): [FunctionCall] call to get_x
19764
+ # 2397| Type = [PlainCharType] char
19765
+ # 2397| ValueCategory = prvalue
19766
+ # 2397| getQualifier(): [ConstructorCall] call to ClassWithDestructor
19767
+ # 2397| Type = [VoidType] void
19768
+ # 2397| ValueCategory = prvalue
19769
+ # 2397| getImplicitDestructorCall(0): [DestructorCall] call to ~ClassWithDestructor
19770
+ # 2397| Type = [VoidType] void
19771
+ # 2397| ValueCategory = prvalue
19772
+ # 2397| getQualifier(): [ReuseExpr] reuse of temporary object
19773
+ # 2397| Type = [Class] ClassWithDestructor
19774
+ # 2397| ValueCategory = xvalue
19775
+ # 2397| getQualifier().getFullyConverted(): [TemporaryObjectExpr] temporary object
19776
+ # 2397| Type = [Class] ClassWithDestructor
19777
+ # 2397| ValueCategory = prvalue(load)
19681
19778
# 2397| getVariableAccess().getFullyConverted(): [CStyleCast] (bool)...
19682
19779
# 2397| Conversion = [BoolConversion] conversion to bool
19683
19780
# 2397| Type = [BoolType] bool
@@ -19749,6 +19846,21 @@ ir.cpp:
19749
19846
# 2406| getVariableAccess(): [VariableAccess] x
19750
19847
# 2406| Type = [PlainCharType] char
19751
19848
# 2406| ValueCategory = prvalue(load)
19849
+ # 2406| getInitializingExpr(): [FunctionCall] call to get_x
19850
+ # 2406| Type = [PlainCharType] char
19851
+ # 2406| ValueCategory = prvalue
19852
+ # 2406| getQualifier(): [ConstructorCall] call to ClassWithDestructor
19853
+ # 2406| Type = [VoidType] void
19854
+ # 2406| ValueCategory = prvalue
19855
+ # 2406| getImplicitDestructorCall(0): [DestructorCall] call to ~ClassWithDestructor
19856
+ # 2406| Type = [VoidType] void
19857
+ # 2406| ValueCategory = prvalue
19858
+ # 2406| getQualifier(): [ReuseExpr] reuse of temporary object
19859
+ # 2406| Type = [Class] ClassWithDestructor
19860
+ # 2406| ValueCategory = xvalue
19861
+ # 2406| getQualifier().getFullyConverted(): [TemporaryObjectExpr] temporary object
19862
+ # 2406| Type = [Class] ClassWithDestructor
19863
+ # 2406| ValueCategory = prvalue(load)
19752
19864
# 2406| getVariableAccess().getFullyConverted(): [CStyleCast] (int)...
19753
19865
# 2406| Conversion = [IntegralConversion] integral conversion
19754
19866
# 2406| Type = [IntType] int
0 commit comments