Skip to content

Commit 7697874

Browse files
Refactor check for false assumptions
No need to look beyond the first false assumption.
1 parent 0f79d79 commit 7697874

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/solvers/sat/satcheck_minisat2.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,13 @@ propt::resultt satcheck_minisat2_baset<T>::do_prop_solve()
185185
bool has_false=false;
186186

187187
forall_literals(it, assumptions)
188+
{
188189
if(it->is_false())
189-
has_false=true;
190+
{
191+
has_false = true;
192+
break;
193+
}
194+
}
190195

191196
if(has_false)
192197
{

0 commit comments

Comments
 (0)