summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2013-09-13 09:52:54 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2013-09-13 09:52:54 -0700
commitdfb43b2f58162573580af8572eb8a223accf5896 (patch)
tree1ebe3f40f9e82e142200ee1935c63a635d22f80b /src
parent5b6b7c5bbe6df6e3790a825767902a84a21b7692 (diff)
downloadabc-dfb43b2f58162573580af8572eb8a223accf5896.tar.gz
abc-dfb43b2f58162573580af8572eb8a223accf5896.tar.bz2
abc-dfb43b2f58162573580af8572eb8a223accf5896.zip
Fix a bug in 'zeropo'.
Diffstat (limited to 'src')
-rw-r--r--src/base/abc/abcNtk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/base/abc/abcNtk.c b/src/base/abc/abcNtk.c
index a574bf82..687d130f 100644
--- a/src/base/abc/abcNtk.c
+++ b/src/base/abc/abcNtk.c
@@ -1771,7 +1771,7 @@ void Abc_NtkDropOneOutput( Abc_Ntk_t * pNtk, int iOutput, int fSkipSweep, int fU
pObj = Abc_NtkPo( pNtk, iOutput );
if ( Abc_ObjFanin0(pObj) == Abc_AigConst1(pNtk) )
{
- if ( !Abc_ObjFaninC0(pObj) )
+ if ( !Abc_ObjFaninC0(pObj) ^ fUseConst1 )
Abc_ObjXorFaninC( pObj, 0 );
return;
}