Skip to content

Commit 372dfba

Browse files
committed
better handling of dynamic array allocation
1 parent 31f1b6e commit 372dfba

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Legion.py

+3
Original file line numberDiff line numberDiff line change
@@ -945,6 +945,9 @@ def symex(state: State) -> List[State]:
945945
"""
946946
# Note: Need to keep all successors?
947947
LOGGER.debug("computing successors for {}".format(state))
948+
if state is None:
949+
LOGGER.debug("No corresponding state found, any dynamic array allocation in the code?")
950+
return []
948951
successors = state.step().successors
949952
LOGGER.debug("Successors are: {}".format(successors))
950953
return successors

0 commit comments

Comments
 (0)