diff options
| author | serpilliere <serpilliere@users.noreply.github.com> | 2020-04-03 13:19:15 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-03 13:19:15 +0200 |
| commit | 7266729107dbbe6d93cae88bdeffd6e72f3f4c69 (patch) | |
| tree | a1983268549523fcc94376ee53ebfa4cb2c42f42 /test/arch/msp430/sem.py | |
| parent | 1d5127036dc7e1688c102c5781a6618b5dd27f16 (diff) | |
| parent | 95b24655c797f5b4f96c8834ad6ef2f21748699c (diff) | |
| download | miasm-7266729107dbbe6d93cae88bdeffd6e72f3f4c69.tar.gz miasm-7266729107dbbe6d93cae88bdeffd6e72f3f4c69.zip | |
Merge pull request #1172 from serpilliere/use_int_expr
Use int(expr) instead of expr.arg.arg
Diffstat (limited to 'test/arch/msp430/sem.py')
| -rwxr-xr-x | test/arch/msp430/sem.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/arch/msp430/sem.py b/test/arch/msp430/sem.py index 2aca66ed..cb101937 100755 --- a/test/arch/msp430/sem.py +++ b/test/arch/msp430/sem.py @@ -39,10 +39,12 @@ def compute(asm, inputstate={}, debug=False): for k, v in viewitems(symexec.symbols): if regs_init.get(k, None) != v: print(k, v) - return { - k: v.arg.arg for k, v in viewitems(symexec.symbols) + + result = { + k: int(v) for k, v in viewitems(symexec.symbols) if k not in EXCLUDE_REGS and regs_init.get(k, None) != v } + return result class TestMSP430Semantic(unittest.TestCase): |