diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/ir/translators/z3_ir.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/ir/translators/z3_ir.py b/test/ir/translators/z3_ir.py index 5f8f3e45..fa656ed0 100644 --- a/test/ir/translators/z3_ir.py +++ b/test/ir/translators/z3_ir.py @@ -1,5 +1,6 @@ import z3 +from miasm2.core.asmbloc import asm_label from miasm2.expression.expression import * from miasm2.ir.translators.translator import Translator from miasm2.ir.translators.z3_ir import TranslatorZ3, Z3Mem @@ -137,5 +138,10 @@ for miasm_int, res in [(five, -5), (four, -4)]: z3_e6 = z3.BitVecVal(res, 32) assert equiv(ez3, z3_e6) +# -------------------------------------------------------------------------- +# Should just not throw anything +e7 = ExprId(asm_label("label_histoire", 0xdeadbeef), 32) +ez3 = Translator.to_language('z3').from_expr(e7) + print "TranslatorZ3 tests are OK." |