Skip to content

Commit

Permalink
fix check in reducer
Browse files Browse the repository at this point in the history
  • Loading branch information
agroce committed Dec 26, 2018
1 parent 2a618d0 commit 54c42c7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bin/deepstate/reducer.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,9 @@ def structure(result):
currentOneOf.append(-1)
elif "Reading byte at" in line:
lastRead = int(line.split()[-1])
if currentOneOf[-1] == -1:
currentOneOf[-1] = lastRead
if len(currentOneOf) > 0:
if currentOneOf[-1] == -1:
currentOneOf[-1] = lastRead
elif "FINISHED OneOf CALL" in line:
OneOfs.append((currentOneOf[-1], lastRead))
currentOneOf = currentOneOf[:-1]
Expand Down

0 comments on commit 54c42c7

Please sign in to comment.