Reordering if-statements in the xsat solver.

This commit is contained in:
Alan Mishchenko 2017-02-02 12:44:54 -08:00
parent a226496bf9
commit f14ee271ab
1 changed files with 3 additions and 5 deletions

View File

@ -680,12 +680,10 @@ unsigned xSAT_SolverPropagate( xSAT_Solver_t* s )
nProp++;
for ( i = begin; i < end; i++ )
{
if ( Vec_StrEntry( s->vAssigns, xSAT_Lit2Var( i->Blocker ) ) == xSAT_LitSign( xSAT_NegLit( i->Blocker ) ) )
{
return i->CRef;
}
else if ( Vec_StrEntry( s->vAssigns, xSAT_Lit2Var( i->Blocker ) ) == VarX )
if ( Vec_StrEntry( s->vAssigns, xSAT_Lit2Var( i->Blocker ) ) == VarX )
xSAT_SolverEnqueue( s, i->Blocker, i->CRef );
else if ( Vec_StrEntry( s->vAssigns, xSAT_Lit2Var( i->Blocker ) ) == xSAT_LitSign( xSAT_NegLit( i->Blocker ) ) )
return i->CRef;
}
ws = xSAT_VecWatchListEntry( s->vWatches, p );