diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2014-11-29 19:34:47 -0800 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2014-11-29 19:34:47 -0800 |
commit | 1d20dea11b329227f43c3fa81008b9eace60e3e3 (patch) | |
tree | df0fed7683d7d97bb6b87c774ecacbb1c796fb97 | |
parent | 2e9d3a3ebf1714ce0690c48f314143de9b7c647b (diff) | |
download | abc-1d20dea11b329227f43c3fa81008b9eace60e3e3.tar.gz abc-1d20dea11b329227f43c3fa81008b9eace60e3e3.tar.bz2 abc-1d20dea11b329227f43c3fa81008b9eace60e3e3.zip |
Induced bug fix in bitblasting of rotation operator.
-rw-r--r-- | src/base/cba/cbaCom.c | 2 | ||||
-rw-r--r-- | src/base/wlc/wlcReadVer.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/base/cba/cbaCom.c b/src/base/cba/cbaCom.c index 2ae0b76e..993d2faf 100644 --- a/src/base/cba/cbaCom.c +++ b/src/base/cba/cbaCom.c @@ -34,7 +34,7 @@ static int Cba_CommandBlast ( Abc_Frame_t * pAbc, int argc, char ** argv ); static int Cba_CommandTest ( Abc_Frame_t * pAbc, int argc, char ** argv ); static inline Cba_Ntk_t * Cba_AbcGetNtk( Abc_Frame_t * pAbc ) { return (Cba_Ntk_t *)pAbc->pAbcCba; } -static inline void Cba_AbcFreeNtk( Abc_Frame_t * pAbc ) { if ( pAbc->pAbcWlc ) Cba_NtkFree(Cba_AbcGetNtk(pAbc)); } +static inline void Cba_AbcFreeNtk( Abc_Frame_t * pAbc ) { if ( pAbc->pAbcCba ) Cba_NtkFree(Cba_AbcGetNtk(pAbc)); } static inline void Cba_AbcUpdateNtk( Abc_Frame_t * pAbc, Cba_Ntk_t * pNtk ) { Cba_AbcFreeNtk(pAbc); pAbc->pAbcCba = pNtk; } //////////////////////////////////////////////////////////////////////// diff --git a/src/base/wlc/wlcReadVer.c b/src/base/wlc/wlcReadVer.c index ae72a2da..bf08ff1d 100644 --- a/src/base/wlc/wlcReadVer.c +++ b/src/base/wlc/wlcReadVer.c @@ -485,7 +485,8 @@ static inline char * Wlc_PrsReadConstant( Wlc_Prs_t * p, char * pStr, Vec_Int_t { // handle decimal number int Number = atoi( pStr ); - *pRange = Abc_Base2Log( Number ); + *pRange = Abc_Base2Log( Number+1 ); + assert( *pRange < 32 ); while ( Wlc_PrsIsDigit(pStr) ) pStr++; Vec_IntFill( vFanins, 1, Number ); |