diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2018-11-11 09:37:20 -0800 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2018-11-11 09:37:20 -0800 |
commit | 68da3cfd02ba81f108aacff1dede89006de1d818 (patch) | |
tree | a9ad6eef6ca58edc5fb9d60198bfbe9b15b80bda | |
parent | fb436339a9242b217ff081c8d11870c9f65a6674 (diff) | |
download | abc-68da3cfd02ba81f108aacff1dede89006de1d818.tar.gz abc-68da3cfd02ba81f108aacff1dede89006de1d818.tar.bz2 abc-68da3cfd02ba81f108aacff1dede89006de1d818.zip |
Added a passthrough in command 'fold' if there are no POs, only constraints.
-rw-r--r-- | src/base/abci/abc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/base/abci/abc.c b/src/base/abci/abc.c index 2e86f61d..50bcfb26 100644 --- a/src/base/abci/abc.c +++ b/src/base/abci/abc.c @@ -27292,6 +27292,11 @@ int Abc_CommandFold( Abc_Frame_t * pAbc, int argc, char ** argv ) Abc_Print( 0, "The network has no constraints.\n" ); return 0; } + if ( Abc_NtkConstrNum(pNtk) == Abc_NtkPoNum(pNtk) ) + { + Abc_Print( 0, "The network has no primary outputs (only constraints).\n" ); + return 0; + } if ( Abc_NtkIsComb(pNtk) ) Abc_Print( 0, "The network is combinational.\n" ); // modify the current network |