From 3e33c91c3dc5d95c4152ffa7d280607e974d2fdc Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Fri, 28 Sep 2018 10:09:19 -0700 Subject: Adding command 'cof' to replace node by a constant (bug fix). --- src/base/abci/abc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/base/abci/abc.c b/src/base/abci/abc.c index 53a43b25..679a33d2 100644 --- a/src/base/abci/abc.c +++ b/src/base/abci/abc.c @@ -11287,8 +11287,9 @@ int Abc_CommandCof( Abc_Frame_t * pAbc, int argc, char ** argv ) Abc_Print( -1, "Wrong number of auguments.\n" ); goto usage; } - - pNode = Abc_NtkFindNode( pNtk, argv[globalUtilOptind] ); + pNode = Abc_NtkFindCi( pNtk, argv[globalUtilOptind] ); + if ( pNode == NULL ) + pNode = Abc_NtkFindNode( pNtk, argv[globalUtilOptind] ); if ( pNode == NULL ) { Abc_Print( -1, "Cannot find node \"%s\".\n", argv[globalUtilOptind] ); -- cgit v1.2.3