From f81c3e4b42d0ce487101b8e0802e43b32b261b1d Mon Sep 17 00:00:00 2001 From: Ajax Date: Wed, 29 Mar 2017 15:44:15 +0200 Subject: Replace ExprInt[num](x) -> ExprInt(x, num) --- example/symbol_exec/depgraph.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'example/symbol_exec/depgraph.py') diff --git a/example/symbol_exec/depgraph.py b/example/symbol_exec/depgraph.py index b4f793c0..0b971b15 100644 --- a/example/symbol_exec/depgraph.py +++ b/example/symbol_exec/depgraph.py @@ -5,7 +5,7 @@ import json from miasm2.analysis.machine import Machine from miasm2.analysis.binary import Container from miasm2.analysis.depgraph import DependencyGraph -from miasm2.expression.expression import ExprMem, ExprId, ExprInt32 +from miasm2.expression.expression import ExprMem, ExprId, ExprInt parser = ArgumentParser("Dependency grapher") parser.add_argument("filename", help="Binary to analyse") @@ -55,7 +55,7 @@ if args.rename_args: if arch == "x86_32": # StdCall example for i in xrange(4): - e_mem = ExprMem(ExprId("ESP_init") + ExprInt32(4 * (i + 1)), 32) + e_mem = ExprMem(ExprId("ESP_init") + ExprInt(4 * (i + 1), 32), 32) init_ctx[e_mem] = ExprId("arg%d" % i) # Disassemble the targeted function -- cgit 1.4.1