blob: 57cbb5e83ad2f57267c7582c5f17a09ff5cde0c9 [file] [log] [blame]
Artem Dergachevdeb7acc2019-07-03 01:26:32 +00001// RUN: %exploded_graph_rewriter -d %s | FileCheck %s
2
3// FIXME: Substitution doesn't seem to work on Windows.
4// UNSUPPORTED: system-windows
5
6Node0x1 [shape=record,label=
7 "{
8 { "node_id": 1,
9 "pointer": "0x1",
10 "state_id": 2,
11 "program_points": [],
12 "program_state": {
13 "environment": null,
14 "store": null,
15 "constraints": null,
16 "dynamic_types": null,
17 "constructing_objects": null,
18 "checker_messages": [
19 { "checker": "FooChecker", "messages": [
20 "Foo: Bar"
21 ]},
22 { "checker": "BarChecker", "messages": [
23 "Bar: Foo"
24 ]}
25 ]
26 }
27 }
28\l}"];
29
30Node0x1 -> Node0x4;
31
32
33// CHECK: Node0x4 [
34// CHECK-SAME: <tr>
35// CHECK-SAME: <td><font color="red">-</font></td>
36// CHECK-SAME: <td align="left"><i>BarChecker</i>:</td>
37// CHECK-SAME: </tr>
38// CHECK-SAME: <tr>
39// CHECK-SAME: <td><font color="red">-</font></td>
40// CHECK-SAME: <td align="left">Bar: Foo</td>
41// CHECK-SAME: </tr>
42// CHECK-SAME: <tr>
43// CHECK-SAME: <td></td>
44// CHECK-SAME: <td align="left"><i>FooChecker</i>:</td>
45// CHECK-SAME: </tr>
46// CHECK-SAME: <tr>
47// CHECK-SAME: <td><font color="forestgreen">+</font></td>
48// CHECK-SAME: <td align="left"> Bar: Foo</td>
49// CHECK-SAME: </tr>
50// CHECK-SAME: <tr>
51// CHECK-SAME: <td><font color="forestgreen">+</font></td>
52// CHECK-SAME: <td align="left"><i>DunnoWhateverSomeOtherChecker</i>:</td>
53// CHECK-SAME: </tr>
54// CHECK-SAME: <tr>
55// CHECK-SAME: <td><font color="forestgreen">+</font></td>
56// CHECK-SAME: <td align="left">Dunno, some other message.</td>
57// CHECK-SAME: </tr>
58Node0x4 [shape=record,label=
59 "{
60 { "node_id": 4,
61 "pointer": "0x4",
62 "state_id": 5,
63 "program_points": [],
64 "program_state": {
65 "environment": null,
66 "store": null,
67 "constraints": null,
68 "dynamic_types": null,
69 "constructing_objects": null,
70 "checker_messages": [
71 { "checker": "FooChecker", "messages": [
72 "Foo: Bar",
73 "Bar: Foo"
74 ]},
75 { "checker": "DunnoWhateverSomeOtherChecker", "messages": [
76 "Dunno, some other message."
77 ]}
78 ]
79 }
80 }
81\l}"];
82
83Node0x4 -> Node0x6;
84
85Node0x6 [shape=record,label=
86 "{
87 { "node_id": 6,
88 "pointer": "0x6",
89 "state_id": 7,
90 "program_points": [],
91 "program_state": null
92 }
93\l}"];