Skip to content

Commit

Permalink
Premise now add to path conditions.
Browse files Browse the repository at this point in the history
  • Loading branch information
robby-phd committed Sep 11, 2023
1 parent 9757ba6 commit 29acc78
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions shared/src/main/scala/org/sireum/logika/plugin/AutoPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -305,12 +305,18 @@ object AutoPlugin {
| ${(for (e <- pathConditions) yield e.prettyST, ";\n")}
|}""".render)
}
return Plugin.Result(T, state.nextFresh, ISZ())
val (stat, nextFresh, premises, conclusion) =
logika.evalRegularStepClaim(smt2, cache, state, step.claim, step.id.posOpt, reporter)
return Plugin.Result(stat, nextFresh, premises :+ conclusion)
} else if (id == "Premise") {
AutoPlugin.detectOrIntro(logika.th, step.claim, pathConditions) match {
case Some(acceptMsg) =>
reporter.inform(pos, Logika.Reporter.Info.Kind.Verified, acceptMsg.render)
return Plugin.Result(T, state.nextFresh, ISZ())
if (logika.config.detailedInfo) {
reporter.inform(pos, Logika.Reporter.Info.Kind.Verified, acceptMsg.render)
}
val (stat, nextFresh, premises, conclusion) =
logika.evalRegularStepClaim(smt2, cache, state, step.claim, step.id.posOpt, reporter)
return Plugin.Result(stat, nextFresh, premises :+ conclusion)
case _ =>
reporter.error(posOpt, Logika.kind,
st"""The stated claim has not been proven before nor is a premise in:
Expand Down

0 comments on commit 29acc78

Please sign in to comment.