mirror of https://github.com/YosysHQ/abc.git
Several suggested bug-fixes.
This commit is contained in:
parent
5081b41dc0
commit
4256ad0acb
|
|
@ -550,7 +550,7 @@ static inline int Abc_CubeContain( char * pCube1, char * pCube2, int nVars )
|
|||
fCont12 = 0;
|
||||
else
|
||||
return 0;
|
||||
if ( !fCont21 && !fCont21 )
|
||||
if ( !fCont12 && !fCont21 )
|
||||
return 0;
|
||||
}
|
||||
assert( fCont21 || fCont12 );
|
||||
|
|
|
|||
|
|
@ -4105,7 +4105,7 @@ int Abc_CommandCleanup( Abc_Frame_t * pAbc, int argc, char ** argv )
|
|||
}
|
||||
if ( Abc_NtkIsStrash(pNtk) )
|
||||
{
|
||||
if ( !fCleanupPos && !fCleanupPos )
|
||||
if ( !fCleanupPis && !fCleanupPos )
|
||||
{
|
||||
Abc_Print( -1, "Cleanup for PIs and POs is not enabled.\n" );
|
||||
pNtkRes = Abc_NtkDup( pNtk );
|
||||
|
|
|
|||
|
|
@ -649,7 +649,7 @@ int Gia_FormStrCount( char * pStr, int * pnVars, int * pnPars )
|
|||
}
|
||||
if ( *pnVars != FFTEST_MAX_VARS )
|
||||
{ printf( "The number of input variables (%d) should be 2\n", *pnVars ); return 1; }
|
||||
if ( *pnPars < 1 && *pnPars > FFTEST_MAX_PARS )
|
||||
if ( *pnPars < 1 || *pnPars > FFTEST_MAX_PARS )
|
||||
{ printf( "The number of parameters should be between 1 and %d\n", *pnPars ); return 1; }
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue