summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2022-10-19 05:05:56 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2022-10-19 05:05:56 -0700
commit70cb339f869e485802159d7f2b886130793556c4 (patch)
tree6d5bd394520f8fc53f5e62a09f59d06e71827b4d
parent336b41a0636a78bedf80f9d3b2db30d53ad648fc (diff)
downloadabc-70cb339f869e485802159d7f2b886130793556c4.tar.gz
abc-70cb339f869e485802159d7f2b886130793556c4.tar.bz2
abc-70cb339f869e485802159d7f2b886130793556c4.zip
Bug fix in &dch -x.
-rw-r--r--src/aig/gia/giaEquiv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/aig/gia/giaEquiv.c b/src/aig/gia/giaEquiv.c
index 5c82b260..030eaa60 100644
--- a/src/aig/gia/giaEquiv.c
+++ b/src/aig/gia/giaEquiv.c
@@ -1869,7 +1869,7 @@ void Gia_ManEquivToChoices_rec( Gia_Man_t * pNew, Gia_Man_t * p, Gia_Obj_t * pOb
Gia_Obj_t * pRepr, * pReprNew, * pObjNew;
if ( ~pObj->Value )
return;
- if ( (pRepr = Gia_ObjReprObj(p, Gia_ObjId(p, pObj))) )
+ if ( (pRepr = Gia_ObjReprObj(p, Gia_ObjId(p, pObj))) && !Gia_ObjFailed(p,Gia_ObjId(p,pObj)) )
{
if ( Gia_ObjIsConst0(pRepr) )
{