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

solutionToProgram should use Choose spec as postcondition

parent 7e8f60bf
No related branches found
No related tags found
No related merge requests found
......@@ -174,6 +174,11 @@ class Synthesizer(val context : LeonContext,
case fd if fd eq ci.fd =>
val nfd = fd.duplicate()
nfd.fullBody = replace(Map(ci.source -> solutionExpr), nfd.fullBody)
(fd.body, fd.postcondition) match {
case (Some(Choose(pred)), None) =>
nfd.postcondition = Some(pred)
case _ =>
}
Some(nfd)
case _ => None
})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment