Skip to content

Commit

Permalink
[analyzer] exploded-graph-rewriter: Implement program point tags.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
haoNoQ committed Jul 1, 2019
1 parent 81a5eb2 commit d4916e2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
10 changes: 9 additions & 1 deletion test/Analysis/exploded-graph-rewriter/program_points.dot
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ Node0x1 [shape=record,label=
// CHECK-SAME: </td>
// CHECK-SAME: <td>x</td>
// CHECK-SAME: </tr>
// CHECK-SAME: <tr>
// CHECK-SAME: <td width="0">
// CHECK-SAME: </td>
// CHECK-SAME: <td colspan="2" align="left">
// CHECK-SAME: <b>Tag: </b>
// CHECK-SAME: <font color="crimson">ExprEngine : Clean Node</font>
// CHECK-SAME: </td>
// CHECK-SAME: </tr>
// CHECK-SAME: </table>
Node0x2 [shape=record,label=
"{
Expand All @@ -56,7 +64,7 @@ Node0x2 [shape=record,label=
"line": 4,
"column": 5
},
"tag": null
"tag": "ExprEngine : Clean Node"
}
]}
\l}"];
6 changes: 6 additions & 0 deletions utils/analyzer/exploded-graph-rewriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,12 @@ def visit_program_point(self, p):
'<font color="%s">%s</font></td></tr>'
% (color, p.kind))

if p.tag is not None:
self._dump('<tr><td width="0"></td>'
'<td colspan="2" align="left">'
'<b>Tag: </b> <font color="crimson">'
'%s</font></td></tr>' % p.tag)

def visit_environment(self, e, prev_e=None):
self._dump('<table border="0">')

Expand Down

0 comments on commit d4916e2

Please sign in to comment.