diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2019-10-02 20:43:18 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2019-10-02 20:43:18 -0700 |
commit | 623b5e82513d076a19f864c01930ad1838498894 (patch) | |
tree | cc0a24c9e927aaa7cb9462bb732529a468673a40 /src/base/abci | |
parent | cdabd42a26b28f19b883682c26df32c53ab31164 (diff) | |
download | abc-623b5e82513d076a19f864c01930ad1838498894.tar.gz abc-623b5e82513d076a19f864c01930ad1838498894.tar.bz2 abc-623b5e82513d076a19f864c01930ad1838498894.zip |
Several corner-case bug fixes in scorr with constraints.
Diffstat (limited to 'src/base/abci')
-rw-r--r-- | src/base/abci/abc.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/base/abci/abc.c b/src/base/abci/abc.c index 69d6db89..d31a1fc1 100644 --- a/src/base/abci/abc.c +++ b/src/base/abci/abc.c @@ -21211,10 +21211,18 @@ int Abc_CommandSeqSweep2( Abc_Frame_t * pAbc, int argc, char ** argv ) if ( pPars->fConstrs ) { + if ( Abc_NtkConstrNum(pNtk) == Abc_NtkPoNum(pNtk) ) + { + Abc_Print( 0, "Command cannot be applied because the network has only constraint outputs (no primary outputs).\n" ); + return 0; + } if ( Abc_NtkConstrNum(pNtk) > 0 ) Abc_Print( 0, "Performing scorr with %d constraints.\n", Abc_NtkConstrNum(pNtk) ); else + { Abc_Print( 0, "Performing constraint-based scorr without constraints.\n" ); + pPars->fConstrs = 0; + } } if ( pPars->fEquivDump && pPars->fEquivDump2 ) { |