1// RUN: %exploded_graph_rewriter -d %s | FileCheck %s
2
3Node0x1 [shape=record,label=
4 "{
5    {
6      "state_id": 2,
7      "program_points": [
8        {
9          "kind": "BlockEntrance", "block_id": 1,
10          "terminator": null, "term_kind": null,
11          "tag": null, "node_id": 1,
12          "has_report": 0, "is_sink": 0
13        }
14      ],
15      "program_state": {
16        "store": null,
17        "environment": null,
18        "dynamic_types": null,
19        "constructing_objects": null,
20        "index_of_element": null,
21        "checker_messages": null,
22        "constraints": [
23          { "symbol": "reg_$0<x>", "range": "{ [0, 10] }" }
24        ]
25      }
26    }
27\l}"];
28
29Node0x1 -> Node0x3;
30
31// CHECK: Node0x3 [
32// CHECK-SAME: <tr>
33// CHECK-SAME:   <td><font color="red">-</font></td>
34// CHECK-SAME:   <td align="left">reg_$0<x></td>
35// CHECK-SAME:   <td align="left">\{ [0, 10] \}</td>
36// CHECK-SAME: </tr>
37// CHECK-SAME: <tr>
38// CHECK-SAME:   <td><font color="forestgreen">+</font></td>
39// CHECK-SAME:   <td align="left">reg_$0<x></td>
40// CHECK-SAME:   <td align="left">\{ [0, 5] \}</td>
41// CHECK-SAME: </tr>
42Node0x3 [shape=record,label=
43 "{
44    {
45      "state_id": 4,
46      "program_points": [
47        {
48          "kind": "BlockEntrance", "block_id": 1,
49          "terminator": null, "term_kind": null,
50          "tag": null, "node_id": 1,
51          "has_report": 0, "is_sink": 0
52        }
53      ],
54      "program_state": {
55        "store": null,
56        "environment": null,
57        "dynamic_types": null,
58        "constructing_objects": null,
59        "index_of_element": null,
60        "checker_messages": null,
61        "constraints": [
62          { "symbol": "reg_$0<x>", "range": "{ [0, 5] }" }
63        ]
64      }
65    }
66\l}"];
67
68Node0x3 -> Node0x5;
69
70Node0x5 [shape=record,label=
71 "{
72    {
73      "state_id": 6,
74      "program_points": [
75        {
76          "kind": "BlockEntrance", "block_id": 1,
77          "terminator": null, "term_kind": null,
78          "tag": null, "node_id": 1,
79          "has_report": 0, "is_sink": 0
80        }
81      ],
82      "program_state": {
83        "store": null,
84        "environment": null,
85        "constraints": null,
86        "dynamic_types": null,
87        "constructing_objects": null,
88        "index_of_element": null,
89        "checker_messages": null
90      }
91    }
92\l}"];
93