Functions

Link copied to clipboard
@JvmName(name = "assertExpr")
abstract fun assert(expr: KExpr<KBoolSort>)

Assert an expression into solver.

@JvmName(name = "assertExprs")
open fun assert(exprs: List<KExpr<KBoolSort>>)

Assert multiple expressions into solver.

Link copied to clipboard
abstract fun assertAndTrack(expr: KExpr<KBoolSort>)

Assert an expression into solver and track it in unsat cores.

open fun assertAndTrack(exprs: List<KExpr<KBoolSort>>)

Assert multiple expressions into solver and track them in unsat cores.

Link copied to clipboard
@JvmName(name = "check")
abstract fun check(timeout: Duration = Duration.INFINITE): KSolverStatus

Performs satisfiability check of currently asserted expressions.

Link copied to clipboard
@JvmName(name = "checkWithAssumptions")
abstract fun checkWithAssumptions(assumptions: List<KExpr<KBoolSort>>, timeout: Duration = Duration.INFINITE): KSolverStatus

Performs satisfiability check of currently asserted expressions and provided assumptions.

Link copied to clipboard
abstract override fun close()

Close solver and release acquired native resources.

Link copied to clipboard
abstract fun configure(configurator: Config.() -> Unit)

Set solver specific options.

Link copied to clipboard
abstract fun interrupt()

Cancel currently performing check-sat.

Link copied to clipboard
abstract fun model(): KModel

Retrieve the model for the last check or checkWithAssumptions.

Link copied to clipboard
@JvmName(name = "pop")
abstract fun pop(n: UInt)

Revert solver assertions state to previously created backtracking point.

Link copied to clipboard
abstract fun push()

Create a backtracking point for assertion stack.

Link copied to clipboard
abstract fun reasonOfUnknown(): String

Retrieve a brief explanation of an KSolverStatus.UNKNOWN result. The format of resulting string is solver implementation dependent.

Link copied to clipboard
abstract fun unsatCore(): List<KExpr<KBoolSort>>

Retrieve the unsat core for the last check or checkWithAssumptions.