diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2012-02-19 13:33:21 -0800 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2012-02-19 13:33:21 -0800 |
commit | ea13085fe34bed2e827fe8ec6fb7e24c6e1a5d8f (patch) | |
tree | cf0dd47d29716f6ef34baca85a6c1b9514567b5a /src/aig/gia/giaMan.c | |
parent | c2b2e99284727cc0b1c8122b267746cf598846ab (diff) | |
download | abc-ea13085fe34bed2e827fe8ec6fb7e24c6e1a5d8f.tar.gz abc-ea13085fe34bed2e827fe8ec6fb7e24c6e1a5d8f.tar.bz2 abc-ea13085fe34bed2e827fe8ec6fb7e24c6e1a5d8f.zip |
Added printout of BMC tents in &ps.
Diffstat (limited to 'src/aig/gia/giaMan.c')
-rw-r--r-- | src/aig/gia/giaMan.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/aig/gia/giaMan.c b/src/aig/gia/giaMan.c index 80fcf896..0e08341c 100644 --- a/src/aig/gia/giaMan.c +++ b/src/aig/gia/giaMan.c @@ -363,7 +363,7 @@ void Gia_ManPrintPlacement( Gia_Man_t * p ) SeeAlso [] ***********************************************************************/ -void Gia_ManPrintStats( Gia_Man_t * p, int fSwitch ) +void Gia_ManPrintStats( Gia_Man_t * p, int fTents, int fSwitch ) { if ( p->pName ) printf( "%-8s : ", p->pName ); @@ -399,6 +399,19 @@ void Gia_ManPrintStats( Gia_Man_t * p, int fSwitch ) Gia_ManPrintFlopClasses( p ); Gia_ManPrintGateClasses( p ); Gia_ManPrintObjClasses( p ); + if ( fTents ) + { + int k, Entry, Prev = 1; + Vec_Int_t * vLimit = Vec_IntAlloc( 1000 ); + Gia_Man_t * pNew = Gia_ManUnrollDup( p, vLimit ); + printf( "Tents: " ); + Vec_IntForEachEntryStart( vLimit, Entry, k, 1 ) + printf( "%d = %d ", k, Entry-Prev ), Prev = Entry; + printf( " Unused = %d.", Gia_ManObjNum(p) - Gia_ManObjNum(pNew) ); + printf( "\n" ); + Vec_IntFree( vLimit ); + Gia_ManStop( pNew ); + } } /**Function************************************************************* |