// RUN: %exploded_graph_rewriter %s | FileCheck %s
// CHECK: Objects Under Construction:
// CHECK-SAME:
// CHECK-SAME:
// CHECK-SAME: |
// CHECK-SAME: #0 Call |
// CHECK-SAME:
// CHECK-SAME: main
// CHECK-SAME: |
// CHECK-SAME:
// CHECK-SAME:
// CHECK-SAME: |
// CHECK-SAME: S870 |
// CHECK-SAME:
// CHECK-SAME:
// CHECK-SAME: (construct into local variable)
// CHECK-SAME:
// CHECK-SAME: |
// CHECK-SAME: S s; |
// CHECK-SAME: &s |
// CHECK-SAME:
// CHECK-SAME:
Node0x1 [shape=record,label=
"{
{
"state_id": 2,
"program_points": [
{
"kind": "BlockEntrance", "block_id": 1,
"terminator": null, "term_kind": null,
"tag": null, "node_id": 1,
"has_report": 0, "is_sink": 0
}
],
"program_state": {
"store": null,
"environment": null,
"constraints": null,
"equivalence_classes": null,
"disequality_info": null,
"dynamic_types": null,
"dynamic_casts": null,
"constructing_objects": [
{
"lctx_id": 1, "location_context": "#0 Call", "calling": "main", "location": null, "items": [
{ "stmt_id": 870, "kind": "construct into local variable", "argument_index": null, "pretty": "S s;", "value": "&s" }
]
}
],
"checker_messages": null
}
}
\l}"];
// CHECK: Indices Of Elements Under Construction:
// CHECK-SAME:
// CHECK-SAME:
// CHECK-SAME: |
// CHECK-SAME: #0 Call |
// CHECK-SAME:
// CHECK-SAME: main
// CHECK-SAME: |
// CHECK-SAME:
// CHECK-SAME:
// CHECK-SAME: |
// CHECK-SAME: S895 |
// CHECK-SAME:
// CHECK-SAME:
// CHECK-SAME: |
// CHECK-SAME:
// CHECK-SAME: CXXConstructExpr 'S[2]'
// CHECK-SAME: |
// CHECK-SAME: Current index: 0 |
// CHECK-SAME:
// CHECK-SAME:
Node0x2 [shape=record,label=
"{
{
"state_id": 2,
"program_points": [
{
"kind": "BlockEntrance", "block_id": 1,
"terminator": null, "term_kind": null,
"tag": null, "node_id": 1,
"has_report": 0, "is_sink": 0
}
],
"program_state": {
"store": null,
"environment": null,
"constraints": null,
"equivalence_classes": null,
"disequality_info": null,
"dynamic_types": null,
"dynamic_casts": null,
"index_of_element": [
{
"lctx_id": 1,
"location_context": "#0 Call",
"calling": "main",
"location": null,
"items": [
{
"stmt_id": 895,
"kind": null,
"pretty": "CXXConstructExpr 'S[2]'",
"value": "Current index: 0"
}
]
}
],
"checker_messages": null
}
}
\l}"];
// CHECK: Pending Array Init Loop Expressions:
// CHECK-SAME:
// CHECK-SAME:
// CHECK-SAME: |
// CHECK-SAME: #0 Call |
// CHECK-SAME:
// CHECK-SAME: main
// CHECK-SAME: |
// CHECK-SAME:
// CHECK-SAME:
// CHECK-SAME: |
// CHECK-SAME: S1112 |
// CHECK-SAME:
// CHECK-SAME:
// CHECK-SAME: |
// CHECK-SAME:
// CHECK-SAME: CXXConstructExpr 'S'
// CHECK-SAME: |
// CHECK-SAME: Flattened size: 2 |
// CHECK-SAME:
// CHECK-SAME:
Node0x3 [shape=record,label=
"{
{
"state_id": 2,
"program_points": [
{
"kind": "BlockEntrance", "block_id": 1,
"terminator": null, "term_kind": null,
"tag": null, "node_id": 1,
"has_report": 0, "is_sink": 0
}
],
"program_state": {
"store": null,
"environment": null,
"constraints": null,
"equivalence_classes": null,
"disequality_info": null,
"dynamic_types": null,
"dynamic_casts": null,
"pending_init_loops": [
{
"lctx_id": 1,
"location_context": "#0 Call",
"calling": "main",
"location": null,
"items": [
{
"stmt_id": 1112,
"kind": null,
"pretty": "CXXConstructExpr 'S'", "value": "Flattened size: 2"
}
]
}
],
"checker_messages": null
}
}
\l}"];
// CHECK: Indices of Elements Under Destruction:
// CHECK-SAME:
// CHECK-SAME:
// CHECK-SAME: |
// CHECK-SAME: #0 Call |
// CHECK-SAME:
// CHECK-SAME: main
// CHECK-SAME: |
// CHECK-SAME:
// CHECK-SAME:
// CHECK-SAME: |
// CHECK-SAME: SNone |
// CHECK-SAME:
// CHECK-SAME:
// CHECK-SAME: |
// CHECK-SAME: Current index: |
// CHECK-SAME: 1 |
// CHECK-SAME:
// CHECK-SAME:
Node0x4 [shape=record,label=
"{
{
"state_id": 2,
"program_points": [
{
"kind": "BlockEntrance", "block_id": 1,
"terminator": null, "term_kind": null,
"tag": null, "node_id": 1,
"has_report": 0, "is_sink": 0
}
],
"program_state": {
"store": null,
"environment": null,
"constraints": null,
"equivalence_classes": null,
"disequality_info": null,
"dynamic_types": null,
"dynamic_casts": null,
"pending_destructors": [
{
"lctx_id": 1,
"location_context": "#0 Call",
"calling": "main",
"location": null,
"items": [
{
"stmt_id": null,
"kind": null,
"pretty": "Current index: ",
"value": "1"
}
]
}
],
"checker_messages": null
}
}
\l}"];