Skip to content

Commit 4b300c3

Browse files
committed
[Scripts] fix distance calculation
* resolves #155
1 parent 4667371 commit 4b300c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/cfg_preprocess.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def build_funcmap(cfgs):
149149
print(f'Total number of nodes: {node_cnt}', file=sys.stderr)
150150
print(f'Total number of edges: {edge_cnt}', file=sys.stderr)
151151

152-
entire_cfg = merge_cfgs(cfgs, callgraph)
152+
entire_cfg = merge_cfgs(cfgs, callgraph).reverse()
153153

154154
fulldistmap = defaultdict(list)
155155
for v in target_nodes:

0 commit comments

Comments
 (0)