diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2017-01-13 21:17:00 +0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2017-01-13 21:17:00 +0700 |
commit | 6d606b51ab084c96d92848be789397700bb3591f (patch) | |
tree | 254815f109dd104faaec234057fe242c1f40f3f2 /src/base/wlc | |
parent | 1a39fb39462d34e40e4ed9da4615d18a463471e0 (diff) | |
download | abc-6d606b51ab084c96d92848be789397700bb3591f.tar.gz abc-6d606b51ab084c96d92848be789397700bb3591f.tar.bz2 abc-6d606b51ab084c96d92848be789397700bb3591f.zip |
Updates to arithmetic verification.
Diffstat (limited to 'src/base/wlc')
-rw-r--r-- | src/base/wlc/wlcBlast.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/base/wlc/wlcBlast.c b/src/base/wlc/wlcBlast.c index b22ac6cd..b49c2dd7 100644 --- a/src/base/wlc/wlcBlast.c +++ b/src/base/wlc/wlcBlast.c @@ -645,12 +645,22 @@ void Wlc_IntInsert( Vec_Int_t * vProd, Vec_Int_t * vLevel, int Node, int Level ) } void Wlc_BlastPrintMatrix( Gia_Man_t * p, Vec_Wec_t * vProds ) { + int fVerbose = 0; Vec_Int_t * vSupp = Vec_IntAlloc( 100 ); Vec_Wrd_t * vTemp = Vec_WrdStart( Gia_ManObjNum(p) ); Vec_Int_t * vLevel; word Truth; int i, k, iLit; Vec_WecForEachLevel( vProds, vLevel, i ) Vec_IntForEachEntry( vLevel, iLit, k ) + if ( Gia_ObjIsAnd(Gia_ManObj(p, Abc_Lit2Var(iLit))) ) + Vec_IntPushUnique( vSupp, Abc_Lit2Var(iLit) ); + printf( "Booth partial products: %d pps, %d unique, %d nodes.\n", + Vec_WecSizeSize(vProds), Vec_IntSize(vSupp), Gia_ManAndNum(p) ); + Vec_IntPrint( vSupp ); + + if ( fVerbose ) + Vec_WecForEachLevel( vProds, vLevel, i ) + Vec_IntForEachEntry( vLevel, iLit, k ) { printf( "Obj = %4d : ", Abc_Lit2Var(iLit) ); printf( "Compl = %d ", Abc_LitIsCompl(iLit) ); |