From d0e3ed0b01ba7e55081e5b2593460b7b1486fd24 Mon Sep 17 00:00:00 2001 From: Artem Dergachev Date: Thu, 17 Oct 2019 23:10:09 +0000 Subject: [analyzer] Assign truly stable identifiers to exploded nodes. ExplodedGraph nodes will now have a numeric identifier stored in them which will keep track of the order in which the nodes were created and it will be fully deterministic both accross runs and across machines. This is extremely useful for debugging as it allows reliably setting conditional breakpoints by node IDs. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@375186 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../exploded-graph-rewriter/node_labels.dot | 43 +++++++++++++++------- 1 file changed, 30 insertions(+), 13 deletions(-) (limited to 'test/Analysis/exploded-graph-rewriter/node_labels.dot') diff --git a/test/Analysis/exploded-graph-rewriter/node_labels.dot b/test/Analysis/exploded-graph-rewriter/node_labels.dot index a434cd2307..a3d7420fed 100644 --- a/test/Analysis/exploded-graph-rewriter/node_labels.dot +++ b/test/Analysis/exploded-graph-rewriter/node_labels.dot @@ -15,30 +15,47 @@ // CHECK-SAME: // LIGHT-SAME: // DARK-SAME: -// CHECK-SAME: Node 1 (0x1) - State Unspecified +// CHECK-SAME: State Unspecified // CHECK-SAME: // CHECK-SAME: Node0x1 [shape=record,label= "{ { "node_id": 1, "pointer": "0x1", "has_report": false, "is_sink": false, "program_state": null, - "program_points": [] + "program_points": [ + { + "kind": "BlockEntrance", "block_id": 1, + "terminator": null, "term_kind": null, + "tag": null, "node_id": 1, + "has_report": 0, "is_sink": 0 + } + ] } \l}"]; // CHECK: Node0x2 [ -// CHECK-SAME: -// COLOR-SAME: Bug Report Attached -// GRAY-SAME: Bug Report Attached -// CHECK-SAME: -// CHECK-SAME: -// COLOR-SAME: Sink Node -// GRAY-SAME: Sink Node -// CHECK-SAME: +// CHECK-SAME: +// CHECK-SAME: +// COLOR-SAME: Bug Report Attached +// GRAY-SAME: Bug Report Attached +// CHECK-SAME: +// CHECK-SAME: +// CHECK-SAME: +// CHECK-SAME: +// COLOR-SAME: Sink Node +// GRAY-SAME: Sink Node +// CHECK-SAME: +// CHECK-SAME: Node0x2 [shape=record,label= "{ - { "node_id": 2, "pointer": "0x2", "has_report": true, "is_sink": true, - "program_state": null, - "program_points": [] + { "program_state": null, + "program_points": [ + { + "kind": "BlockEntrance", "block_id": 1, + "terminator": null, "term_kind": null, + "tag": null, "node_id": 2, + "has_report": 1, "is_sink": 1 + } + ] } \l}"]; -- cgit v1.2.1