diff options
| author | Rusty Wagner <rusty@vector35.com> | 2019-08-03 22:40:57 -0400 |
|---|---|---|
| committer | Rusty Wagner <rusty@vector35.com> | 2020-04-17 14:20:37 -0400 |
| commit | 620dd96217a49803fe04c6bc286291ddd857dcba (patch) | |
| tree | c416e88ecd9ac0d15e1864bbd17a6eb70548965f /python/function.py | |
| parent | c9845e5a200228f20809336d9e9afee45e776d19 (diff) | |
Expand support for HLIL switch/case and data flow access
Diffstat (limited to 'python/function.py')
| -rw-r--r-- | python/function.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/python/function.py b/python/function.py index dfb83e34..97f832d1 100644 --- a/python/function.py +++ b/python/function.py @@ -278,10 +278,16 @@ class ValueRange(object): class PossibleValueSet(object): - def __init__(self, arch, value): + def __init__(self, arch = None, value = None): + if value is None: + self._type = RegisterValueType.UndeterminedValue + return self._type = RegisterValueType(value.state) if value.state == RegisterValueType.EntryValue: - self._reg = arch.get_reg_name(value.value) + if arch is None: + self._reg = value.value + else: + self._reg = arch.get_reg_name(value.value) elif value.state == RegisterValueType.ConstantValue: self._value = value.value elif value.state == RegisterValueType.ConstantPointerValue: |
