Commit cc0954e0 by Alan Mishchenko

Bug fix in SMT-LIB parser.

parent 8c1e81a7
......@@ -290,7 +290,7 @@ static inline int Smt_PrsBuildConstant( Wlc_Ntk_t * pNtk, char * pStr, int nBits
Vec_Int_t * vFanins = Vec_IntAlloc( 10 );
if ( pStr[0] != '#' ) // decimal
{
if ( pStr[0] >= 0 && pStr[0] <= 9 )
if ( pStr[0] >= '0' && pStr[0] <= '9' )
{
int Number = atoi( pStr );
nBits = Abc_Base2Log( Number+1 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment