From: Artem Dergachev Date: Mon, 1 Jul 2019 23:01:55 +0000 (+0000) Subject: [analyzer] exploded-graph-rewriter: Implement program point tags. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d4916e2a6ffbff852897a807f87e4e83b1a2145c;p=clang [analyzer] exploded-graph-rewriter: Implement program point tags. Keep them on a separate line for more visibility. Differential Revision: https://reviews.llvm.org/D63965 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@364864 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Analysis/exploded-graph-rewriter/program_points.dot b/test/Analysis/exploded-graph-rewriter/program_points.dot index 26beff4be8..31dcc4adb6 100644 --- a/test/Analysis/exploded-graph-rewriter/program_points.dot +++ b/test/Analysis/exploded-graph-rewriter/program_points.dot @@ -41,6 +41,14 @@ Node0x1 [shape=record,label= // CHECK-SAME: // CHECK-SAME: x // CHECK-SAME: +// CHECK-SAME: +// CHECK-SAME: +// CHECK-SAME: +// CHECK-SAME: +// CHECK-SAME: Tag: +// CHECK-SAME: ExprEngine : Clean Node +// CHECK-SAME: +// CHECK-SAME: // CHECK-SAME: Node0x2 [shape=record,label= "{ @@ -56,7 +64,7 @@ Node0x2 [shape=record,label= "line": 4, "column": 5 }, - "tag": null + "tag": "ExprEngine : Clean Node" } ]} \l}"]; diff --git a/utils/analyzer/exploded-graph-rewriter.py b/utils/analyzer/exploded-graph-rewriter.py index f0f0316da9..c4b015e5de 100755 --- a/utils/analyzer/exploded-graph-rewriter.py +++ b/utils/analyzer/exploded-graph-rewriter.py @@ -387,6 +387,12 @@ class DotDumpVisitor(object): '%s' % (color, p.kind)) + if p.tag is not None: + self._dump('' + '' + 'Tag: ' + '%s' % p.tag) + def visit_environment(self, e, prev_e=None): self._dump('')