diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2012-07-30 11:05:54 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2012-07-30 11:05:54 -0700 |
commit | cd39fd6b0585659922908d172b0d058a5cb02dbb (patch) | |
tree | 47e0bce1b658026e15ba4f0d3373bb74b680c908 /src/misc/vec/vecInt.h | |
parent | 401aa6994a63ad60d51ac894dc5ef4141ca33f1a (diff) | |
download | abc-cd39fd6b0585659922908d172b0d058a5cb02dbb.tar.gz abc-cd39fd6b0585659922908d172b0d058a5cb02dbb.tar.bz2 abc-cd39fd6b0585659922908d172b0d058a5cb02dbb.zip |
Fixing performance bug with old proof-logging (adding clauses multiple times).
Diffstat (limited to 'src/misc/vec/vecInt.h')
-rw-r--r-- | src/misc/vec/vecInt.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/misc/vec/vecInt.h b/src/misc/vec/vecInt.h index 84d53e46..6988c8ea 100644 --- a/src/misc/vec/vecInt.h +++ b/src/misc/vec/vecInt.h @@ -1055,6 +1055,28 @@ static inline int Vec_IntCountPositive( Vec_Int_t * p ) /**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.] Description [Assumes that the entries are non-negative integers that |