about summary refs log tree commit diff stats
path: root/example/symbol_exec/depgraph.py
diff options
context:
space:
mode:
authorserpilliere <serpilliere@users.noreply.github.com>2020-12-26 00:03:54 +0100
committerGitHub <noreply@github.com>2020-12-26 00:03:54 +0100
commit1673c3eb29d88cbd7b642419c197fa0993ca5871 (patch)
treeb5489af2d481c9db7f3c530d3b1634031cfbd4d5 /example/symbol_exec/depgraph.py
parent931a7d95bf48ec35b9c69b4e22b890f512164a9b (diff)
parent1d95a7febaee8c53df432cdbf1539f6f58a4d5d9 (diff)
downloadmiasm-1673c3eb29d88cbd7b642419c197fa0993ca5871.tar.gz
miasm-1673c3eb29d88cbd7b642419c197fa0993ca5871.zip
Merge pull request #1335 from serpilliere/rename_ir_arch
Rename ir arch
Diffstat (limited to '')
-rw-r--r--example/symbol_exec/depgraph.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/example/symbol_exec/depgraph.py b/example/symbol_exec/depgraph.py
index 62190e6b..21c6fe45 100644
--- a/example/symbol_exec/depgraph.py
+++ b/example/symbol_exec/depgraph.py
@@ -52,7 +52,7 @@ for element in args.element:
         raise ValueError("Unknown element '%s'" % element)
 
 mdis = machine.dis_engine(cont.bin_stream, dont_dis_nulstart_bloc=True, loc_db=loc_db)
-ir_arch = machine.lifter_model_call(loc_db)
+lifter = machine.lifter_model_call(loc_db)
 
 # Common argument forms
 init_ctx = {}
@@ -67,7 +67,7 @@ if args.rename_args:
 asmcfg = mdis.dis_multiblock(int(args.func_addr, 0))
 
 # Generate IR
-ircfg = ir_arch.new_ircfg_from_asmcfg(asmcfg)
+ircfg = lifter.new_ircfg_from_asmcfg(asmcfg)
 
 # Get the instance
 dg = DependencyGraph(
@@ -93,7 +93,7 @@ for sol_nb, sol in enumerate(dg.get(current_block.loc_key, elements, assignblk_i
     with open(fname, "w") as fdesc:
             fdesc.write(sol.graph.dot())
 
-    results = sol.emul(ir_arch, ctx=init_ctx)
+    results = sol.emul(lifter, ctx=init_ctx)
     tokens = {str(k): str(v) for k, v in viewitems(results)}
     if not args.json:
         result = ", ".join("=".join(x) for x in viewitems(tokens))