diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2012-01-07 20:29:11 +0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2012-01-07 20:29:11 +0700 |
commit | 99cc6ae9d235096140026f04d1fa5556db899fcb (patch) | |
tree | 0ddd995720ffb0c8d8bbe2e45cf5a14b129c27fc | |
parent | 36bc5703adc870bd6c8cb143dd638fe33a1e74b2 (diff) | |
download | abc-99cc6ae9d235096140026f04d1fa5556db899fcb.tar.gz abc-99cc6ae9d235096140026f04d1fa5556db899fcb.tar.bz2 abc-99cc6ae9d235096140026f04d1fa5556db899fcb.zip |
Crash fix in 'tempor' in case the leading length is 0.
-rw-r--r-- | src/aig/saig/saigTempor.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/aig/saig/saigTempor.c b/src/aig/saig/saigTempor.c index 962a81de..fc57c1f5 100644 --- a/src/aig/saig/saigTempor.c +++ b/src/aig/saig/saigTempor.c @@ -192,6 +192,12 @@ Aig_Man_t * Saig_ManTempor( Aig_Man_t * pAig, int nFrames, int TimeOut, int nCon if ( nFrames == 0 ) { nFrames = Saig_ManPhasePrefixLength( pAig, fVerbose, fVeryVerbose, &vTransSigs ); + if ( nFrames == 0 ) + { + Vec_IntFreeP( &vTransSigs ); + printf( "The leading sequence has length 0. Temporal decomposition is not performed.\n" ); + return NULL; + } if ( nFrames == 1 ) { Vec_IntFreeP( &vTransSigs ); |