summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2013-12-29 14:39:25 +0700
committerAlan Mishchenko <alanmi@berkeley.edu>2013-12-29 14:39:25 +0700
commit737e4671cea12f58332c44d65fe8bc28b2537617 (patch)
tree8ae72833e90becdeabbabe0201dc2f182ee1e46f /src
parent15a356fa4dd1dddd6a42702f0431fe0aa773516d (diff)
downloadabc-737e4671cea12f58332c44d65fe8bc28b2537617.tar.gz
abc-737e4671cea12f58332c44d65fe8bc28b2537617.tar.bz2
abc-737e4671cea12f58332c44d65fe8bc28b2537617.zip
Adding check for the presence of precomputed data.
Diffstat (limited to 'src')
-rw-r--r--src/base/abci/abc.c5
-rw-r--r--src/base/io/io.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/src/base/abci/abc.c b/src/base/abci/abc.c
index bc7f5448..c98e4858 100644
--- a/src/base/abci/abc.c
+++ b/src/base/abci/abc.c
@@ -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 );
diff --git a/src/base/io/io.c b/src/base/io/io.c
index fa97ea1e..ff09686b 100644
--- a/src/base/io/io.c
+++ b/src/base/io/io.c
@@ -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