diff options
Diffstat (limited to 'src/aig/gia/giaIf.c')
-rw-r--r-- | src/aig/gia/giaIf.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/aig/gia/giaIf.c b/src/aig/gia/giaIf.c index 79cfcf6d..326e6a48 100644 --- a/src/aig/gia/giaIf.c +++ b/src/aig/gia/giaIf.c @@ -175,8 +175,11 @@ int Gia_ManLutLevel( Gia_Man_t * p, int ** ppLevels ) } Level = 0; Gia_ManForEachCo( p, pObj, k ) - if ( Level < pLevels[Gia_ObjFaninId0p(p, pObj)] ) - Level = pLevels[Gia_ObjFaninId0p(p, pObj)]; + { + int LevelFan = pLevels[Gia_ObjFaninId0p(p, pObj)]; + Level = Abc_MaxInt( Level, LevelFan ); + pLevels[Gia_ObjId(p, pObj)] = LevelFan; + } if ( ppLevels ) *ppLevels = pLevels; else |