mirror of
https://github.com/YosysHQ/abc.git
synced 2026-09-03 01:43:12 +02:00
Fixing performance bug with old proof-logging (adding clauses multiple times).
This commit is contained in:
@@ -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.]
|
||||
|
||||
Reference in New Issue
Block a user