1// RUN: %exploded_graph_rewriter %s \
2// RUN:     | FileCheck %s -check-prefixes=CHECK,LIGHT,COLOR
3// RUN: %exploded_graph_rewriter %s --dark \
4// RUN:     | FileCheck %s -check-prefixes CHECK,DARK,COLOR
5// RUN: %exploded_graph_rewriter %s --gray \
6// RUN:     | FileCheck %s -check-prefixes=CHECK,LIGHT,GRAY
7// RUN: %exploded_graph_rewriter %s --gray --dark \
8// RUN:     | FileCheck %s -check-prefixes CHECK,DARK,GRAY
9
10// FIXME: Substitution doesn't seem to work on Windows.
11// UNSUPPORTED: system-windows
12
13// LIGHT: Node0x1 [shape=record,label=<
14// DARK:  Node0x1 [shape=record,color="white",fontcolor="gray80",label=<
15// CHECK-SAME:   <tr>
16// LIGHT-SAME:     <td bgcolor="gray">
17// DARK-SAME:      <td bgcolor="gray20">
18// CHECK-SAME:       <b>Node 1 (0x1) - State Unspecified</b>
19// CHECK-SAME:     </td>
20// CHECK-SAME:   </tr>
21Node0x1 [shape=record,label=
22 "{
23    { "node_id": 1, "pointer": "0x1", "has_report": false, "is_sink": false,
24      "program_state": null,
25      "program_points": []
26    }
27\l}"];
28
29// CHECK: Node0x2 [
30// CHECK-SAME: <tr><td>
31// COLOR-SAME:   <font color="red"><b>Bug Report Attached</b></font>
32// GRAY-SAME:    <b>Bug Report Attached</b>
33// CHECK-SAME: </td></tr>
34// CHECK-SAME: <tr><td>
35// COLOR-SAME:   <font color="cornflowerblue"><b>Sink Node</b></font>
36// GRAY-SAME:    <b>Sink Node</b>
37// CHECK-SAME: </td></tr>
38Node0x2 [shape=record,label=
39 "{
40    { "node_id": 2, "pointer": "0x2", "has_report": true, "is_sink": true,
41      "program_state": null,
42      "program_points": []
43    }
44\l}"];
45