We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d42d90 commit 0f79d79Copy full SHA for 0f79d79
src/solvers/sat/satcheck_minisat2.cpp
@@ -328,14 +328,16 @@ bool satcheck_minisat2_baset<T>::is_in_conflict(literalt a) const
328
template<typename T>
329
void satcheck_minisat2_baset<T>::set_assumptions(const bvt &bv)
330
{
331
- assumptions=bv;
332
-
333
- forall_literals(it, assumptions)
334
- if(it->is_true())
+ // We filter out 'true' assumptions which cause an assertion violation
+ // in Minisat2.
+ assumptions.clear();
+ for(const auto &assumption : bv)
335
+ {
336
+ if(!assumption.is_true())
337
- assumptions.clear();
- break;
338
+ assumptions.push_back(assumption);
339
}
340
+ }
341
342
343
satcheck_minisat_no_simplifiert::satcheck_minisat_no_simplifiert(
0 commit comments