Skip to content
Snippets Groups Projects
Commit 6562b9f3 authored by Regis Blanc's avatar Regis Blanc
Browse files

keep positions in post conditions

parent f78d0120
No related branches found
No related tags found
No related merge requests found
...@@ -316,7 +316,7 @@ object ImperativeCodeElimination extends UnitPhase[Program] { ...@@ -316,7 +316,7 @@ object ImperativeCodeElimination extends UnitPhase[Program] {
(v.toVariable, TupleSelect(newRes.toVariable, i+2)): (Expr, Expr)}.toMap + (v.toVariable, TupleSelect(newRes.toVariable, i+2)): (Expr, Expr)}.toMap +
(res.toVariable -> TupleSelect(newRes.toVariable, 1)), (res.toVariable -> TupleSelect(newRes.toVariable, 1)),
postBody) postBody)
Lambda(Seq(newRes), newBody) Lambda(Seq(newRes), newBody).setPos(post)
}) })
val (bodyRes, bodyScope, bodyFun) = toFunction(b)(state.withFunDef(fd, newFd, modifiedVars)) val (bodyRes, bodyScope, bodyFun) = toFunction(b)(state.withFunDef(fd, newFd, modifiedVars))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment