diff options
| author | serpilliere <devnull@localhost> | 2012-06-12 13:08:34 +0200 |
|---|---|---|
| committer | serpilliere <devnull@localhost> | 2012-06-12 13:08:34 +0200 |
| commit | f29e0cfd42e6207929205e26dc6afebb686ca339 (patch) | |
| tree | 67af001655f4ef7105e95582001f6d22b95a47fa /example/expression | |
| parent | 7349000a9649cbce710a3e5df7a779e56c0e7ae4 (diff) | |
| download | miasm-f29e0cfd42e6207929205e26dc6afebb686ca339.tar.gz miasm-f29e0cfd42e6207929205e26dc6afebb686ca339.zip | |
expression: replace reload_expr with replace_expr using visitor
Diffstat (limited to 'example/expression')
| -rw-r--r-- | example/expression/find_conditions.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/example/expression/find_conditions.py b/example/expression/find_conditions.py index 9fa5def8..3fe64f2c 100644 --- a/example/expression/find_conditions.py +++ b/example/expression/find_conditions.py @@ -75,8 +75,8 @@ def emul_mn(states_todo, states_done, all_blocs, job_done): c2 = {ad.cond: ExprInt(uint32(1))} p1[ad.cond] = ExprInt(uint32(0)) p2[ad.cond] = ExprInt(uint32(1)) - ad1 = machine.eval_expr(ad.reload_expr(c1), {}) - ad2 = machine.eval_expr(ad.reload_expr(c2), {}) + ad1 = machine.eval_expr(ad.replace_expr(c1), {}) + ad2 = machine.eval_expr(ad.replace_expr(c2), {}) if not (isinstance(ad1, ExprInt) and isinstance(ad2, ExprInt)): print str(ad1), str(ad2) raise ValueError("zarb condition") @@ -120,4 +120,4 @@ for ad, pool in states_done: machine = x86_machine() for k, v in list(all_info): - print machine.eval_expr(k.reload_expr({}), {}), "=", v + print machine.eval_expr(k.replace_expr({}), {}), "=", v |