Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 590 Bytes

interface.md

File metadata and controls

23 lines (15 loc) · 590 Bytes

Solver's interface functions

Add a variable to CNF and return its number:

  • addVariable(): Int

Add a clause to CNF as pure literals or list of literals:

  • addClause(literals: List<Lit>)

Solve CNF without assumptions:

  • solve(): Boolean

Solve CNF with the passed assumptions:

  • solve(assumptions: List<Lit>): Boolean

Query boolean value of a literal:

  • getValue(lit: Lit): Boolean

Note: the solver should be in the SAT state.

Query the satisfying assignment (model) for the SAT problem:

  • fun getModel(): List<Lit>

Note: the solver should be in the SAT state.