summaryrefslogtreecommitdiffstats
path: root/src/aig/gia/giaDup.c
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2015-09-22 19:51:24 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2015-09-22 19:51:24 -0700
commitbfebc0751c37d8353b2b2b9e61fe37f2a3f6f6f4 (patch)
tree3051cd28c2dc4e425302f640911ee6d3a75f4079 /src/aig/gia/giaDup.c
parentedf6c1372113ceedd833d312214fc677b996cc5b (diff)
downloadabc-bfebc0751c37d8353b2b2b9e61fe37f2a3f6f6f4.tar.gz
abc-bfebc0751c37d8353b2b2b9e61fe37f2a3f6f6f4.tar.bz2
abc-bfebc0751c37d8353b2b2b9e61fe37f2a3f6f6f4.zip
Fixing corner-cases in 'tempor' and in 'unfold'.
Diffstat (limited to 'src/aig/gia/giaDup.c')
-rw-r--r--src/aig/gia/giaDup.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/aig/gia/giaDup.c b/src/aig/gia/giaDup.c
index 1cdf12a3..38adfb41 100644
--- a/src/aig/gia/giaDup.c
+++ b/src/aig/gia/giaDup.c
@@ -3068,6 +3068,11 @@ Gia_Man_t * Gia_ManDupWithConstr( Gia_Man_t * p )
printf( "The miter's output is not AND-decomposable.\n" );
return NULL;
}
+ if ( Gia_ObjFaninId0p(p, pObj) == 0 )
+ {
+ printf( "The miter's output is a constant.\n" );
+ return NULL;
+ }
vSuper = Vec_IntAlloc( 100 );
Gia_ManDupWithConstrCollectAnd_rec( p, Gia_ObjChild0(pObj), vSuper, 1 );
assert( Vec_IntSize(vSuper) > 1 );