Minor improvements to user_assertions.py

harvey_style_assertions
Nathan 5 years ago
parent 2a34a5d712
commit bd8c3f8cd4
  1. 9
      mythril/analysis/modules/user_assertions.py

@ -55,14 +55,9 @@ class UserAssertions(DetectionModule):
:param state:
:return:
"""
mem_start = state.mstate.stack[-1]
size = state.mstate.stack[-2]
topic = state.mstate.stack[-3]
topic, size, mem_start = state.mstate.stack[-3:]
if topic.symbolic:
return []
if topic.value != assertion_failed_hash:
if topic.symbolic or topic.value != assertion_failed_hash:
return []
message = None

Loading…
Cancel
Save