Skip to content

Commit

Permalink
Correct condition in is_in_input_stack
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcere committed Jul 4, 2024
1 parent 2a8d952 commit 7ef81c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions parser/utils_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ def is_in_input_stack(var, instructions):
if instructions == []:
return True

candidate = any(filter(lambda x: var not in x.get_out_args(),instructions))
return candidate
candidate = any(filter(lambda x: var in x.get_out_args(),instructions))
return not candidate

def is_in_output_stack(var, instructions):
if instructions == []:
Expand Down

0 comments on commit 7ef81c8

Please sign in to comment.