Gbury / mSAT

A modular sat/smt solver with proof output.
https://gbury.github.io/mSAT/
Apache License 2.0
97 stars 8 forks source link

function to add a literal #6

Closed c-cube closed 7 years ago

c-cube commented 7 years ago

would be nice to have add_lit: lit -> unit that forces the solver to decide on this literal, even if there is no constraint on it yet.

Gbury commented 7 years ago

Would it be enough to have such a fonction in the signature of the solver, or do you need it in the slice ? Also note that such a function would add literals to the set of literals on which to decide, so that they will be decided on at some time later in the algorithm, but not right away.

c-cube commented 7 years ago

I'm aware they will not be decided just yet, sure. It can be in the signature directly, I guess?

c-cube commented 7 years ago

Also:

val reset : unit -> unit to go back to level 0 without solving again immediately. Should backtrack the theory as well, but not forget the learnt clauses.

Gbury commented 7 years ago

About the reset function, two things:

Would that be sufficient ? If not, what exactly would be your use case of reset ?

c-cube commented 7 years ago

bah, should be fine anyway.

Gbury commented 7 years ago

Closed with 928622b5115e3c2247de196a6b8ab9c715ccd047