Skip to content

Commit e4b1bde

Browse files
sat,solvers: adapt setPolarity for MergeSat
MergeSat is based on the MiniSat 2.2 interface. Hence, setPolarity needs a bool instead of an lbool. Signed-off-by: Norbert Manthey <[email protected]>
1 parent ed38dc2 commit e4b1bde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/solvers/sat/satcheck_minisat2.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ void satcheck_minisat2_baset<T>::set_polarity(literalt a, bool value)
7979
try
8080
{
8181
add_variables();
82-
solver->setPolarity(a.var_no(), value ? l_True : l_False);
82+
solver->setPolarity(a.var_no(), value); // ? l_True : l_False);
8383
}
8484
catch(Minisat::OutOfMemoryException)
8585
{

0 commit comments

Comments
 (0)