Skip to content

Commit

Permalink
Small benign bug fix (#643)
Browse files Browse the repository at this point in the history
Changed a single `if` to `elif`. Previously, effects would be duplicated
for each for loop.
  • Loading branch information
skeqiqevian authored May 1, 2024
1 parent a1d6ffd commit a195d62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/exo/effectcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -1018,7 +1018,7 @@ def bd_pred(x, lo, hi, srcinfo):

body_eff = eff_concat(stmt.eff, body_eff)

if isinstance(stmt, LoopIR.If):
elif isinstance(stmt, LoopIR.If):
# first, do the if-branch
self.push()
self.solver.add_assertion(self.expr_to_smt(lift_expr(stmt.cond)))
Expand Down

0 comments on commit a195d62

Please sign in to comment.