diff options
Diffstat (limited to 'src/aig/gia')
-rw-r--r-- | src/aig/gia/giaDup.c | 5 |
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 ); |