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="gray70"> 17// DARK-SAME: <td bgcolor="gray20"> 18// CHECK-SAME: <b>State 0</b> 19// CHECK-SAME: </td> 20// CHECK-SAME: </tr> 21Node0x1 [shape=record,label= 22 "{ 23 { "state_id": 0, "program_state": null, 24 "program_points": [ 25 { 26 "kind": "BlockEntrance", "block_id": 1, 27 "terminator": null, "term_kind": null, 28 "tag": null, "node_id": 1, 29 "has_report": 0, "is_sink": 0 30 } 31 ] 32 } 33\l}"]; 34 35// CHECK: Node0x2 [ 36// CHECK-SAME: <tr> 37// CHECK-SAME: <td colspan="3" align="left"> 38// COLOR-SAME: <font color="red"><b>Bug Report Attached</b></font> 39// GRAY-SAME: <b>Bug Report Attached</b> 40// CHECK-SAME: </td> 41// CHECK-SAME: </tr> 42// CHECK-SAME: <tr> 43// CHECK-SAME: <td colspan="3" align="left"> 44// COLOR-SAME: <font color="cornflowerblue"><b>Sink Node</b></font> 45// GRAY-SAME: <b>Sink Node</b> 46// CHECK-SAME: </td> 47// CHECK-SAME: </tr> 48Node0x2 [shape=record,label= 49 "{ 50 { "state_id": 0, "program_state": null, 51 "program_points": [ 52 { 53 "kind": "BlockEntrance", "block_id": 1, 54 "terminator": null, "term_kind": null, 55 "tag": null, "node_id": 2, 56 "has_report": 1, "is_sink": 1 57 } 58 ] 59 } 60\l}"]; 61