Crash fix in 'tempor' in case the leading length is 0.

This commit is contained in:
Alan Mishchenko 2012-01-07 20:29:11 +07:00
parent 36bc5703ad
commit 99cc6ae9d2
1 changed files with 6 additions and 0 deletions

View File

@ -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 );