Skip to content

Commit

Permalink
Supporting MWSF in Z3 API (#859)
Browse files Browse the repository at this point in the history
Supporting MWSF in Z3 API, fixing prover options reset in test suite
  • Loading branch information
marcoeilers authored Jul 1, 2024
1 parent 1b11869 commit 46a35ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/scala/decider/Decider.scala
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ trait DefaultDeciderProvider extends VerifierComponent { this: Verifier =>
_declaredFreshMacros = Vector.empty
_freshMacroStack = Stack.empty
_freshFunctionStack = Stack.empty
_proverOptions = Map.empty
}

def stop(): Unit = {
Expand Down
2 changes: 2 additions & 0 deletions src/main/scala/decider/TermToZ3APIConverter.scala
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ class TermToZ3APIConverter

case sorts.FieldPermFunction() => ctx.mkUninterpretedSort("$FPM") // text("$FPM")
case sorts.PredicatePermFunction() => ctx.mkUninterpretedSort("$PPM") // text("$PPM")
case sorts.MagicWandSnapFunction => ctx.mkUninterpretedSort("$MWSF")
}
sortCache.update(s, res)
res
Expand Down Expand Up @@ -159,6 +160,7 @@ class TermToZ3APIConverter

case sorts.FieldPermFunction() => Some(ctx.mkSymbol("$FPM")) // text("$FPM")
case sorts.PredicatePermFunction() => Some(ctx.mkSymbol("$PPM")) // text("$PPM")
case sorts.MagicWandSnapFunction => Some(ctx.mkSymbol("$MWSF"))
}
}

Expand Down

0 comments on commit 46a35ff

Please sign in to comment.