From 68da3cfd02ba81f108aacff1dede89006de1d818 Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Sun, 11 Nov 2018 09:37:20 -0800 Subject: Added a passthrough in command 'fold' if there are no POs, only constraints. --- src/base/abci/abc.c | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.2.3