Skip to content

Commit

Permalink
fix #1061: propagate c_e to framedproof
Browse files Browse the repository at this point in the history
  • Loading branch information
pieter-bos committed Oct 12, 2023
1 parent bda21b5 commit 48ae8dc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rewrite/vct/rewrite/PropagateContextEverywhere.scala
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ case class PropagateContextEverywhere[Pre <: Generation]() extends Rewriter[Pre]
loop.rewrite(contract = LoopInvariant(freshInvariants() &* dispatch(invariant), decreases.map(dispatch))(inv.blame))
case _: IterationContract[Pre] => throw ExtraNode
}
case frame: FramedProof[Pre] =>
implicit val o: Origin = frame.o
frame.rewrite(pre = freshInvariants() &* dispatch(frame.pre), post = freshInvariants() &* dispatch(frame.post))
case other => rewriteDefault(other)
}

Expand Down

0 comments on commit 48ae8dc

Please sign in to comment.