Skip to content

Commit

Permalink
Use star instead of and
Browse files Browse the repository at this point in the history
  • Loading branch information
bobismijnnaam committed Jun 22, 2023
1 parent 6b9476f commit 708c629
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rewrite/vct/rewrite/EncodeRangedFor.scala
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ case class EncodeRangedFor[Pre <: Generation]() extends Rewriter[Pre] {

override def dispatch(contract: LoopContract[Pre]): LoopContract[Post] = (bounds.topOption, contract) match {
case (Some((rf, iBounds)), l: LoopInvariant[Pre]) =>
l.rewrite(invariant = (iBounds && dispatch(l.invariant))(rf.o))
l.rewrite(invariant = (iBounds &* dispatch(l.invariant))(rf.o))
case (Some((rf, iBounds)), ic: IterationContract[Pre]) =>
ic.rewrite(context_everywhere = (iBounds && dispatch(ic.context_everywhere))(rf.o))
ic.rewrite(context_everywhere = (iBounds &* dispatch(ic.context_everywhere))(rf.o))
case (None, c) => rewriteDefault(c)
}
}

0 comments on commit 708c629

Please sign in to comment.