mirror of https://github.com/YosysHQ/abc.git
Bug fix in SMT-LIB parser.
This commit is contained in:
parent
8c1e81a7c8
commit
cc0954e022
|
|
@ -290,7 +290,7 @@ static inline int Smt_PrsBuildConstant( Wlc_Ntk_t * pNtk, char * pStr, int nBits
|
||||||
Vec_Int_t * vFanins = Vec_IntAlloc( 10 );
|
Vec_Int_t * vFanins = Vec_IntAlloc( 10 );
|
||||||
if ( pStr[0] != '#' ) // decimal
|
if ( pStr[0] != '#' ) // decimal
|
||||||
{
|
{
|
||||||
if ( pStr[0] >= 0 && pStr[0] <= 9 )
|
if ( pStr[0] >= '0' && pStr[0] <= '9' )
|
||||||
{
|
{
|
||||||
int Number = atoi( pStr );
|
int Number = atoi( pStr );
|
||||||
nBits = Abc_Base2Log( Number+1 );
|
nBits = Abc_Base2Log( Number+1 );
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue