Skip to content
Snippets Groups Projects
Commit d95757de authored by Manos Koukoutos's avatar Manos Koukoutos
Browse files

Give a position to artificial postc.

parent c3411d07
No related branches found
No related tags found
No related merge requests found
......@@ -61,7 +61,11 @@ object TypingPhase extends LeonPhase[Program, Program] {
).setPos(p)).setPos(p))
case None =>
Some(Lambda(Seq(ValDef(resId)), IsInstanceOf(ct, Variable(resId))))
val pos = fd.body.map{ _.getPos } match {
case Some(df: DefinedPosition) => df.focusEnd
case _ => NoPosition
}
Some(Lambda(Seq(ValDef(resId)), IsInstanceOf(ct, Variable(resId))).setPos(pos))
}
}
case _ => fd.postcondition
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment