diff options
| author | Brian Potchik <brian@vector35.com> | 2021-01-22 11:01:15 -0500 |
|---|---|---|
| committer | Brian Potchik <brian@vector35.com> | 2021-01-22 11:01:15 -0500 |
| commit | 1537fbe8746803ee9024954bd75f09e7a8a3138e (patch) | |
| tree | 523fd2953186f1471c602dfc011b069b427bd67a | |
| parent | cbb543e796e89f3734862616ef5a6497033f936e (diff) | |
Add unit tests for 'get_llils_at' and 'get_lifted_ils_at' APIs.
| -rw-r--r-- | suite/testcommon.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/suite/testcommon.py b/suite/testcommon.py index 3503aa93..33300de7 100644 --- a/suite/testcommon.py +++ b/suite/testcommon.py @@ -190,6 +190,8 @@ class BinaryViewTestBuilder(Builder): for func in self.bv.functions: for bb in func.low_level_il.basic_blocks: for ins in bb: + retinfo.append("Function: {:x} Instruction: {:x} ADDR->LiftedILS: {}".format(func.start, ins.address, str(sorted(list(map(str, func.get_lifted_ils_at(ins.address))))))) + retinfo.append("Function: {:x} Instruction: {:x} ADDR->LLILS: {}".format(func.start, ins.address, str(sorted(list(map(str, func.get_llils_at(ins.address))))))) retinfo.append("Function: {:x} Instruction: {:x} LLIL->MLIL: {}".format(func.start, ins.address, str(ins.mlil))) retinfo.append("Function: {:x} Instruction: {:x} LLIL->MLILS: {}".format(func.start, ins.address, str(sorted(list(map(str, ins.mlils)))))) # TODO figure out the LLIL->HLIL instability |
