diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2012-01-30 23:11:38 -0800 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2012-01-30 23:11:38 -0800 |
commit | 044149593d94e3fe047e6c52066c77a317bbcd5b (patch) | |
tree | dd038938b3a287830c9df4138f2b0363d163ae86 /src/misc/vec | |
parent | 7ea40494eb637c5c717c3fa80529bfbbec897f83 (diff) | |
download | abc-044149593d94e3fe047e6c52066c77a317bbcd5b.tar.gz abc-044149593d94e3fe047e6c52066c77a317bbcd5b.tar.bz2 abc-044149593d94e3fe047e6c52066c77a317bbcd5b.zip |
Graph isomorphism checking code.
Diffstat (limited to 'src/misc/vec')
-rw-r--r-- | src/misc/vec/vecInt.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/misc/vec/vecInt.h b/src/misc/vec/vecInt.h index 5a25d2c9..be54e583 100644 --- a/src/misc/vec/vecInt.h +++ b/src/misc/vec/vecInt.h @@ -926,6 +926,8 @@ static inline Vec_Int_t * Vec_IntInvert( Vec_Int_t * p, int Fill ) { int Entry, i; Vec_Int_t * vRes = Vec_IntAlloc( 0 ); + if ( Vec_IntSize(p) == 0 ) + return vRes; Vec_IntFill( vRes, Vec_IntFindMax(p) + 1, Fill ); Vec_IntForEachEntry( p, Entry, i ) if ( Entry != Fill ) |