about summary refs log tree commit diff stats
path: root/example/symbol_exec/single_instr.py
diff options
context:
space:
mode:
authorCamille Mougey <commial@gmail.com>2018-07-05 17:52:12 +0200
committerGitHub <noreply@github.com>2018-07-05 17:52:12 +0200
commita3961b92c47a9cc47510601b57267822fcbdcbdf (patch)
treeac39a9859983baff15d52533829d95ffa760f633 /example/symbol_exec/single_instr.py
parentf5fd096d35a9b3811097c40f553c90d3036cc035 (diff)
parent045182c94d6bb1c9417b612d88fd469e0f87872f (diff)
downloadmiasm-a3961b92c47a9cc47510601b57267822fcbdcbdf.tar.gz
miasm-a3961b92c47a9cc47510601b57267822fcbdcbdf.zip
Merge pull request #784 from serpilliere/split_ir_graph
Split ir graph
Diffstat (limited to 'example/symbol_exec/single_instr.py')
-rw-r--r--example/symbol_exec/single_instr.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/example/symbol_exec/single_instr.py b/example/symbol_exec/single_instr.py
index 6ddd2608..c78f1f7f 100644
--- a/example/symbol_exec/single_instr.py
+++ b/example/symbol_exec/single_instr.py
@@ -21,14 +21,15 @@ asm_block = mdis.dis_block(START_ADDR)
 
 # Translate ASM -> IR
 ira = machine.ira(mdis.loc_db)
-ira.add_block(asm_block)
+ircfg = ira.new_ircfg()
+ira.add_asmblock_to_ircfg(asm_block, ircfg)
 
 # Instanciate a Symbolic Execution engine with default value for registers
 symb = SymbolicExecutionEngine(ira)
 
 # Emulate one IR basic block
 ## Emulation of several basic blocks can be done through .emul_ir_blocks
-cur_addr = symb.run_at(START_ADDR)
+cur_addr = symb.run_at(ircfg, START_ADDR)
 
 # Modified elements
 print 'Modified registers:'