From bfebc0751c37d8353b2b2b9e61fe37f2a3f6f6f4 Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Tue, 22 Sep 2015 19:51:24 -0700 Subject: Fixing corner-cases in 'tempor' and in 'unfold'. --- src/aig/gia/giaDup.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/aig/gia') 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 ); -- cgit v1.2.3