Skip to content

Commit

Permalink
Removing the for loop in result processing
Browse files Browse the repository at this point in the history
  • Loading branch information
jankofron authored Oct 18, 2024
1 parent 554effc commit ebe6a3a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions benchexec/tools/hornix.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ def project_url(self):
return "https://github.com/d3sformal/hornix"

def determine_result(self, run):
for line in run.output:
if "sat" == line.strip():
return result.RESULT_TRUE_PROP
elif "unsat" == line.strip():
return result.RESULT_FALSE_REACH
else:
return result.RESULT_UNKNOWN
line = run.output[0]
if "sat" == line.strip():
return result.RESULT_TRUE_PROP
elif "unsat" == line.strip():
return result.RESULT_FALSE_REACH
else:
return result.RESULT_UNKNOWN

0 comments on commit ebe6a3a

Please sign in to comment.