Files
clang-p2996/clang/test/Analysis/exploded-graph-rewriter/trimmers.dot
Artem Dergachev 2ddd3325c4 [analyzer] Fix scan-build and exploded-graph-rewriter tests on Windows.
Detect script locations in a more straightforward way: we don't need to
search for them because we know exactly where they are anyway.

Fix a file path escaping issue in exploded-graph-rewriter with Windows
backslashes in the path.

'REQUIRES: shell' remains in scan-build tests for now, so that to
observe the buildbot reaction on removing it in a cleaner experiment.

Patch by Denys Petrov!

Differential Revision: https://reviews.llvm.org/D76768
2020-04-06 20:33:37 +03:00

69 lines
2.1 KiB
Plaintext

// RUN: %exploded_graph_rewriter %s \
// RUN: | FileCheck %s -check-prefixes=ONE,TWO,THREE,FOUR
// RUN: %exploded_graph_rewriter -s %s \
// RUN: | FileCheck %s -check-prefixes=ONE,TWO,NOTHREE,FOUR
// RUN: %exploded_graph_rewriter --to=0x2 %s \
// RUN: | FileCheck %s -check-prefixes=ONE,TWO,NOTHREE,NOFOUR
// RUN: %exploded_graph_rewriter --to 2 %s \
// RUN: | FileCheck %s -check-prefixes=ONE,TWO,NOTHREE,NOFOUR
// RUN: %exploded_graph_rewriter --to 2,3 %s \
// RUN: | FileCheck %s -check-prefixes=ONE,TWO,THREE,NOFOUR
// RUN: %exploded_graph_rewriter --to 4 %s \
// RUN: | FileCheck %s -check-prefixes=ONE,TWO,THREE,FOUR
// RUN: %exploded_graph_rewriter --to 4 -s %s \
// RUN: | FileCheck %s -check-prefixes=ONE,TWO,NOTHREE,FOUR
Node0x1 [shape=record,label=
"{{ "state_id": 0, "program_state": null, "program_points": [
{
"kind": "BlockEntrance", "block_id": 1,
"terminator": null, "term_kind": null,
"tag": null, "node_id": 1,
"has_report": 0, "is_sink": 0
}
]}\l}"];
Node0x2 [shape=record,label=
"{{ "state_id": 0, "program_state": null, "program_points": [
{
"kind": "BlockEntrance", "block_id": 1,
"terminator": null, "term_kind": null,
"tag": null, "node_id": 2,
"has_report": 0, "is_sink": 0
}
]}\l}"];
Node0x3 [shape=record,label=
"{{ "state_id": 0, "program_state": null, "program_points": [
{
"kind": "BlockEntrance", "block_id": 1,
"terminator": null, "term_kind": null,
"tag": null, "node_id": 3,
"has_report": 0, "is_sink": 0
}
]}\l}"];
Node0x4 [shape=record,label=
"{{ "state_id": 0, "program_state": null, "program_points": [
{
"kind": "BlockEntrance", "block_id": 1,
"terminator": null, "term_kind": null,
"tag": null, "node_id": 4,
"has_report": 0, "is_sink": 0
}
]}\l}"];
Node0x1 -> Node0x2;
Node0x1 -> Node0x3;
Node0x2 -> Node0x4;
Node0x3 -> Node0x4;
// ONE: Node0x1
// NOTONE-NOT: Node0x1
// TWO: Node0x2
// NOTTWO-NOT: Node0x2
// THREE: Node0x3
// NOTTHREE-NOT: Node0x3
// FOUR: Node0x4
// NOTFOUR-NOT: Node0x4