1 // RUN: %exploded_graph_rewriter %s | FileCheck %s
3 // CHECK: <b>Objects Under Construction: </b>
4 // CHECK-SAME:<table border="0">
6 // CHECK-SAME: <td></td>
7 // CHECK-SAME: <td align="left"><b>#0 Call</b></td>
8 // CHECK-SAME: <td align="left" colspan="2">
9 // CHECK-SAME: <font color="gray60">main </font>
13 // CHECK-SAME: <td></td>
14 // CHECK-SAME: <td align="left"><i>S870</i></td>
15 // CHECK-SAME: <td align="left">
16 // CHECK-SAME: <font color="darkgreen">
17 // CHECK-SAME: <i>(construct into local variable)</i>
18 // CHECK-SAME: </font>
20 // CHECK-SAME: <td align="left">S s;</td>
21 // CHECK-SAME: <td align="left">&s</td>
23 // CHECK-SAME:</table>
24 Node0x1 [
shape=
record,label=
30 "kind
": "BlockEntrance
", "block_id
": 1,
31 "terminator
": null, "term_kind
": null,
32 "tag
": null, "node_id
": 1,
33 "has_report
": 0, "is_sink
": 0
40 "equivalence_classes
": null,
41 "disequality_info
": null,
42 "dynamic_types
": null,
43 "dynamic_casts
": null,
44 "constructing_objects
": [
46 "lctx_id
": 1, "location_context
": "#
0 Call
", "calling
": "main
", "location
": null, "items
": [
47 { "stmt_id
": 870, "kind
": "construct into local variable
", "argument_index
": null, "pretty
": "S s
;", "value
": "&s
" }
51 "checker_messages
": null
56 // CHECK: <b>Indices Of Elements Under Construction: </b>
57 // CHECK-SAME:<table border="0">
59 // CHECK-SAME: <td></td>
60 // CHECK-SAME: <td align="left"><b>#0 Call</b></td>
61 // CHECK-SAME: <td align="left" colspan="2">
62 // CHECK-SAME: <font color="gray60">main </font>
66 // CHECK-SAME: <td></td>
67 // CHECK-SAME: <td align="left"><i>S895</i></td>
68 // CHECK-SAME: <td align="left">
69 // CHECK-SAME: <font color="darkgreen"><i> </i></font>
71 // CHECK-SAME: <td align="left">
72 // CHECK-SAME: CXXConstructExpr <test.cpp:8:7> 'S[2]'
74 // CHECK-SAME: <td align="left">Current index: 0</td>
76 // CHECK-SAME:</table>
77 Node0x2 [
shape=
record,label=
83 "kind
": "BlockEntrance
", "block_id
": 1,
84 "terminator
": null, "term_kind
": null,
85 "tag
": null, "node_id
": 1,
86 "has_report
": 0, "is_sink
": 0
93 "equivalence_classes
": null,
94 "disequality_info
": null,
95 "dynamic_types
": null,
96 "dynamic_casts
": null,
100 "location_context
": "#
0 Call
",
107 "pretty
": "CXXConstructExpr
<test
.cpp
:8:7> 'S[
2]'
",
108 "value
": "Current index
: 0"
113 "checker_messages
": null
118 // CHECK: <b>Pending Array Init Loop Expressions: </b>
119 // CHECK-SAME:<table border="0">
121 // CHECK-SAME: <td></td>
122 // CHECK-SAME: <td align="left"><b>#0 Call</b></td>
123 // CHECK-SAME: <td align="left" colspan="2">
124 // CHECK-SAME: <font color="gray60">main </font>
128 // CHECK-SAME: <td></td>
129 // CHECK-SAME: <td align="left"><i>S1112</i></td>
130 // CHECK-SAME: <td align="left">
131 // CHECK-SAME: <font color="darkgreen"><i> </i></font>
133 // CHECK-SAME: <td align="left">
134 // CHECK-SAME: CXXConstructExpr <test.cpp:10:6> 'S'
136 // CHECK-SAME: <td align="left">Flattened size: 2</td>
138 // CHECK-SAME:</table>
139 Node0x3 [
shape=
record,label=
145 "kind
": "BlockEntrance
", "block_id
": 1,
146 "terminator
": null, "term_kind
": null,
147 "tag
": null, "node_id
": 1,
148 "has_report
": 0, "is_sink
": 0
155 "equivalence_classes
": null,
156 "disequality_info
": null,
157 "dynamic_types
": null,
158 "dynamic_casts
": null,
159 "pending_init_loops
": [
162 "location_context
": "#
0 Call
",
169 "pretty
": "CXXConstructExpr
<test
.cpp
:10:6> 'S'
", "value
": "Flattened
size: 2"
174 "checker_messages
": null
179 // CHECK: <b>Indices of Elements Under Destruction: </b>
180 // CHECK-SAME:<table border="0">
182 // CHECK-SAME: <td></td>
183 // CHECK-SAME: <td align="left"><b>#0 Call</b></td>
184 // CHECK-SAME: <td align="left" colspan="2">
185 // CHECK-SAME: <font color="gray60">main </font>
189 // CHECK-SAME: <td></td>
190 // CHECK-SAME: <td align="left"><i>SNone</i></td>
191 // CHECK-SAME: <td align="left">
192 // CHECK-SAME: <font color="darkgreen"><i> </i></font>
194 // CHECK-SAME: <td align="left">Current index: </td>
195 // CHECK-SAME: <td align="left">1</td>
197 // CHECK-SAME:</table>
198 Node0x4 [
shape=
record,label=
204 "kind
": "BlockEntrance
", "block_id
": 1,
205 "terminator
": null, "term_kind
": null,
206 "tag
": null, "node_id
": 1,
207 "has_report
": 0, "is_sink
": 0
214 "equivalence_classes
": null,
215 "disequality_info
": null,
216 "dynamic_types
": null,
217 "dynamic_casts
": null,
218 "pending_destructors
": [
221 "location_context
": "#
0 Call
",
228 "pretty
": "Current index
: ",
234 "checker_messages
": null