Fixing performance bug with old proof-logging (adding clauses multiple times).

This commit is contained in:
Alan Mishchenko
2012-07-30 11:05:54 -07:00
parent 401aa6994a
commit cd39fd6b05
3 changed files with 32 additions and 17 deletions
+22
View File
@@ -1053,6 +1053,28 @@ static inline int Vec_IntCountPositive( Vec_Int_t * p )
return Counter;
}
/**Function*************************************************************
Synopsis [Checks if two vectors are equal.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
static inline int Vec_IntEqual( Vec_Int_t * p1, Vec_Int_t * p2 )
{
int i;
if ( p1->nSize != p2->nSize )
return 0;
for ( i = 0; i < p1->nSize; i++ )
if ( p1->pArray[i] != p2->pArray[i] )
return 0;
return 1;
}
/**Function*************************************************************
Synopsis [Counts the number of common entries.]