From 527f8c7131a748e5c5c45b84a6dd91f365df6122 Mon Sep 17 00:00:00 2001 From: Jordan Wiens Date: Thu, 16 May 2019 19:29:19 -0700 Subject: add incoming and outgoing edges to basic block unit test --- suite/testcommon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/suite/testcommon.py b/suite/testcommon.py index 02ed13c4..2ad46f42 100644 --- a/suite/testcommon.py +++ b/suite/testcommon.py @@ -135,7 +135,7 @@ class BinaryViewTestBuilder(Builder): bblist = [] for func in self.bv.functions: for bb in func.basic_blocks: - bblist.append("basic block {} start: ".format(str(bb)) + hex(bb.start) + ' end: ' + hex(bb.end) + ' undetermined outgoing edges: ' + str(bb.has_undetermined_outgoing_edges)) + bblist.append("basic block {} start: ".format(str(bb)) + hex(bb.start) + ' end: ' + hex(bb.end) + ' undetermined outgoing edges: ' + str(bb.has_undetermined_outgoing_edges) + ' incoming edges: ' + str(bb.incoming_edges) + ' outgoing edges: ' + str(bb.outgoing_edges)) for anno in func.get_block_annotations(bb.start): bblist.append("basic block {} function annotation: ".format(str(bb)) + str(anno)) bblist.append("basic block {} test get self: ".format(str(bb)) + str(func.get_basic_block_at(bb.start))) -- cgit v1.3.1