From 5d10f696e0e278318c37d386225dd5c2945a952b Mon Sep 17 00:00:00 2001 From: Caroline Leman Date: Fri, 10 Mar 2017 15:45:01 +0100 Subject: analysis: Introduction of use-definition chains - previous dead_simp function has been moved to data_flow.py - ira class has been simplified - reach analysis code has been 'clarified' --- example/expression/asm_to_ir.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'example/expression/asm_to_ir.py') diff --git a/example/expression/asm_to_ir.py b/example/expression/asm_to_ir.py index b28f8a81..058910e3 100644 --- a/example/expression/asm_to_ir.py +++ b/example/expression/asm_to_ir.py @@ -5,7 +5,7 @@ from miasm2.core import parse_asm from miasm2.expression.expression import * from miasm2.core import asmblock from miasm2.arch.x86.ira import ir_a_x86_32 - +from miasm2.analysis.data_flow import dead_simp # First, asm code blocks, symbol_pool = parse_asm.parse_txt(mn_x86, 32, ''' @@ -47,7 +47,7 @@ for lbl, irblock in ir_arch.blocks.items(): # Dead propagation open('graph.dot', 'w').write(ir_arch.graph.dot()) print '*' * 80 -ir_arch.dead_simp() +dead_simp(ir_arch) open('graph2.dot', 'w').write(ir_arch.graph.dot()) # Display new IR -- cgit 1.4.1