diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2016-04-24 20:49:05 +0300 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2016-04-24 20:49:05 +0300 |
commit | e37ec2aac577264d4cec9dbe39149ed523cf6958 (patch) | |
tree | 70f9b854a1a51d8a21026b8fe2fafd46f699b23c /src/aig/gia/giaIf.c | |
parent | f91f23bed0ba7cbd79153f37e3e3139f445ece86 (diff) | |
download | abc-e37ec2aac577264d4cec9dbe39149ed523cf6958.tar.gz abc-e37ec2aac577264d4cec9dbe39149ed523cf6958.tar.bz2 abc-e37ec2aac577264d4cec9dbe39149ed523cf6958.zip |
Improved algo for edge computation.
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 |