about summary refs log tree commit diff stats
path: root/example/symbol_exec/single_instr.py
diff options
context:
space:
mode:
authorAjax <commial@gmail.com>2017-05-09 13:53:36 +0200
committerAjax <commial@gmail.com>2017-05-09 16:35:43 +0200
commit2eafe654c0bdedd6999f738c7b3266768f13e74a (patch)
tree22a992bc7e4fcfc800f3b42fed1f8c44987b0eff /example/symbol_exec/single_instr.py
parenta66957dc88b9b0c45a36c374f6e1c31d97379f70 (diff)
downloadmiasm-2eafe654c0bdedd6999f738c7b3266768f13e74a.tar.gz
miasm-2eafe654c0bdedd6999f738c7b3266768f13e74a.zip
Use and tiny test of .as_assignblock() behavior
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 3e418e5a..c31de738 100644
--- a/example/symbol_exec/single_instr.py
+++ b/example/symbol_exec/single_instr.py
@@ -37,5 +37,6 @@ symb.dump_mem()
 
 # Check final status
 eax, ebx = ira.arch.regs.EAX, ira.arch.regs.EBX
-assert symb.symbols[eax] == symbols_init[ebx]
-assert eax in symb.modified()
+final_state = symb.as_assignblock()
+assert final_state[eax] == symbols_init[ebx]
+assert eax in final_state