mirror of https://github.com/YosysHQ/abc.git
Adding check for the presence of precomputed data.
This commit is contained in:
parent
15a356fa4d
commit
737e4671ce
|
|
@ -32830,6 +32830,11 @@ int Abc_CommandAbc9Bmc( Abc_Frame_t * pAbc, int argc, char ** argv )
|
|||
Abc_Print( -1, "Abc_CommandAbc9Bmc(): There is no AIG.\n" );
|
||||
return 0;
|
||||
}
|
||||
if ( !pPars->fUseOldCnf && !Sdm_ManCanRead() )
|
||||
{
|
||||
Abc_Print( -1, "Abc_CommandAbc9Bmc(): Cannot input precomputed DSD information.\n" );
|
||||
return 0;
|
||||
}
|
||||
pAbc->Status = Gia_ManBmcPerform( pAbc->pGia, pPars );
|
||||
pAbc->nFrames = pPars->iFrame;
|
||||
Abc_FrameReplaceCex( pAbc, &pAbc->pGia->pCexSeq );
|
||||
|
|
|
|||
|
|
@ -2063,6 +2063,11 @@ int IoCommandWriteCnf2( Abc_Frame_t * pAbc, int argc, char **argv )
|
|||
Abc_Print( -1, "IoCommandWriteCnf2(): Works only for combinational miters.\n" );
|
||||
return 0;
|
||||
}
|
||||
if ( !Sdm_ManCanRead() )
|
||||
{
|
||||
Abc_Print( -1, "IoCommandWriteCnf2(): Cannot input precomputed DSD information.\n" );
|
||||
return 0;
|
||||
}
|
||||
if ( argc != globalUtilOptind + 1 )
|
||||
goto usage;
|
||||
// get the input file name
|
||||
|
|
|
|||
Loading…
Reference in New Issue