summaryrefslogtreecommitdiffstats
path: root/src/base/abci
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2015-04-27 13:56:17 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2015-04-27 13:56:17 -0700
commitb3e6cb30bb9e37e688ac11f6f69156646676c11c (patch)
tree9048fcfa7d53a7fefe9ef2b0581ff097a2a289f0 /src/base/abci
parentc0f0e145c46291db88fea7ae1251637b97f48e29 (diff)
downloadabc-b3e6cb30bb9e37e688ac11f6f69156646676c11c.tar.gz
abc-b3e6cb30bb9e37e688ac11f6f69156646676c11c.tar.bz2
abc-b3e6cb30bb9e37e688ac11f6f69156646676c11c.zip
Bug fix in %read_smt and prevent crash of &cec if there is no current AIG.
Diffstat (limited to 'src/base/abci')
-rw-r--r--src/base/abci/abc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/base/abci/abc.c b/src/base/abci/abc.c
index e9df4ec2..4de17f26 100644
--- a/src/base/abci/abc.c
+++ b/src/base/abci/abc.c
@@ -31034,6 +31034,11 @@ int Abc_CommandAbc9Cec( Abc_Frame_t * pAbc, int argc, char ** argv )
goto usage;
}
}
+ if ( pAbc->pGia == NULL )
+ {
+ Abc_Print( -1, "Abc_CommandAbc9Cec(): There is no AIG.\n" );
+ return 1;
+ }
if ( fMiter )
{
if ( fDualOutput )