diff options
| author | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2020-04-03 10:16:25 +0200 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2020-04-03 11:56:59 +0200 |
| commit | 95b24655c797f5b4f96c8834ad6ef2f21748699c (patch) | |
| tree | a1983268549523fcc94376ee53ebfa4cb2c42f42 /test/arch/msp430/sem.py | |
| parent | 1d5127036dc7e1688c102c5781a6618b5dd27f16 (diff) | |
| download | miasm-95b24655c797f5b4f96c8834ad6ef2f21748699c.tar.gz miasm-95b24655c797f5b4f96c8834ad6ef2f21748699c.zip | |
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): |