shnarazk / mios

A SAT solver written in Haskell.
https://gitlab.com/satisfiability01/mios/
GNU General Public License v3.0
39 stars 3 forks source link

fix crashes by SC17main/mp1-21.*.cnf #50

Closed shnarazk closed 6 years ago

shnarazk commented 6 years ago

reason

simplifyDB clears all watches. Then subsumeAll tries to purge all subsumable clauses by calling removeWatch on them. Since, however, these clauses lost the registered watch literals, markClause called in removeWatch has to overrun.

fix

by stopping reset all watches. It might be a shortcut as I coded. But it's a wrong logic.