summaryrefslogtreecommitdiffstats
path: root/src/aig/gia/giaUtil.c
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2013-02-26 17:10:37 -0500
committerAlan Mishchenko <alanmi@berkeley.edu>2013-02-26 17:10:37 -0500
commit12253f47cee3bf04909363cc78aeaecb94b0556f (patch)
tree2cd20b5d5170461629df6c1ab18e21ad26073efe /src/aig/gia/giaUtil.c
parentc98119594e4137dee341d171a5ad3b3d647a279e (diff)
downloadabc-12253f47cee3bf04909363cc78aeaecb94b0556f.tar.gz
abc-12253f47cee3bf04909363cc78aeaecb94b0556f.tar.bz2
abc-12253f47cee3bf04909363cc78aeaecb94b0556f.zip
User-controlable SAT sweeper.
Diffstat (limited to 'src/aig/gia/giaUtil.c')
-rw-r--r--src/aig/gia/giaUtil.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/aig/gia/giaUtil.c b/src/aig/gia/giaUtil.c
index a7f594e4..5adf9ebd 100644
--- a/src/aig/gia/giaUtil.c
+++ b/src/aig/gia/giaUtil.c
@@ -461,15 +461,15 @@ int Gia_ManLevelNum( Gia_Man_t * p )
Gia_ManCleanLevels( p, Gia_ManObjNum(p) );
p->nLevels = 0;
Gia_ManForEachObj( p, pObj, i )
+ {
if ( Gia_ObjIsAnd(pObj) )
Gia_ObjSetAndLevel( p, pObj );
else if ( Gia_ObjIsCo(pObj) )
- {
Gia_ObjSetCoLevel( p, pObj );
- p->nLevels = Abc_MaxInt( p->nLevels, Gia_ObjLevel(p, pObj) );
- }
else
Gia_ObjSetLevel( p, pObj, 0 );
+ p->nLevels = Abc_MaxInt( p->nLevels, Gia_ObjLevel(p, pObj) );
+ }
return p->nLevels;
}