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

We don't need to duplicate FunDef's when generating VCs

parent 673f4fae
Branches
Tags
No related merge requests found
......@@ -10,8 +10,7 @@ import purescala.ExprOps._
abstract class Tactic(vctx: VerificationContext) {
val description : String
def generateVCs(fdUnsafe: FunDef): Seq[VC] = {
val fd = fdUnsafe.duplicate
def generateVCs(fd: FunDef): Seq[VC] = {
fd.fullBody = matchToIfThenElse(fd.fullBody)
generatePostconditions(fd) ++
generatePreconditions(fd) ++
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment