-
Notifications
You must be signed in to change notification settings - Fork 11.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[analyzer] exploded-graph-rewriter: Implement a topology-only mode.
In this mode the rewriter will only rewrite program points and omit program states. Useful for understanding the rough topology of the graph. Differential Revision: https://reviews.llvm.org/D64264 llvm-svn: 365410
- Loading branch information
Showing
2 changed files
with
45 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// RUN: %exploded_graph_rewriter %s \ | ||
// RUN: | FileCheck -check-prefixes=NORMAL %s | ||
// RUN: %exploded_graph_rewriter -t %s \ | ||
// RUN: | FileCheck -check-prefixes=TOPOLOGY %s | ||
|
||
// FIXME: Substitution doesn't seem to work on Windows. | ||
// UNSUPPORTED: system-windows | ||
|
||
// NORMAL: Program point | ||
// TOPOLOGY-NOT: Program point | ||
// NORMAL: Checker State | ||
// TOPOLOGY-NOT: Checker State | ||
Node0x1 [shape=record,label= | ||
"{ | ||
{ "node_id": 1, | ||
"pointer": "0x1", | ||
"has_report": false, | ||
"is_sink": false, | ||
"state_id": 2, | ||
"program_points": [], | ||
"program_state": { | ||
"environment": null, | ||
"constraints": null, | ||
"dynamic_types": null, | ||
"constructing_objects": null, | ||
"checker_messages": [ | ||
{ "checker": "foo", "messages": ["bar"] } | ||
], | ||
"store": null | ||
} | ||
} | ||
\l}"]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters