diff --git a/src/base/abci/abc.c b/src/base/abci/abc.c index 5546aec95c..76bc575c50 100644 --- a/src/base/abci/abc.c +++ b/src/base/abci/abc.c @@ -7948,7 +7948,7 @@ int Abc_CommandExact( Abc_Frame_t * pAbc, int argc, char ** argv ) if ( argc == globalUtilOptind ) goto usage; - memset( pTruth, 0, 64 ); + memset( pTruth, 0, 64 * sizeof(*pTruth) ); while ( globalUtilOptind < argc ) { if ( nFunc == 16 ) diff --git a/src/base/abci/abcExact.c b/src/base/abci/abcExact.c index b717f5b421..f1bde51ecb 100644 --- a/src/base/abci/abcExact.c +++ b/src/base/abci/abcExact.c @@ -388,7 +388,7 @@ static inline Ses_Store_t * Ses_StoreAlloc( int nBTLimit, int fMakeAIG, int fVer pStore->fMakeAIG = fMakeAIG; pStore->fVerbose = fVerbose; pStore->nBTLimit = nBTLimit; - memset( pStore->pEntries, 0, SES_STORE_TABLE_SIZE ); + memset( pStore->pEntries, 0, SES_STORE_TABLE_SIZE * sizeof(pStore->pEntries[0]) ); pStore->pSat = sat_solver_new(); diff --git a/src/bdd/dsd/dsdProc.c b/src/bdd/dsd/dsdProc.c index bcc3102cf0..8c775e8b94 100644 --- a/src/bdd/dsd/dsdProc.c +++ b/src/bdd/dsd/dsdProc.c @@ -873,7 +873,7 @@ if ( s_Show ) for ( m = 0; m < pLR->nDecs; m++ ) if ( pLR->pDecs[m] != pLastDiffL ) pCommon[nCommon++] = pLR->pDecs[m]; - assert( nCommon = pLR->nDecs-1 ); + assert( nCommon == pLR->nDecs-1 ); } } else diff --git a/src/proof/live/ltl_parser.c b/src/proof/live/ltl_parser.c index 36d109ccda..646e8f48cd 100644 --- a/src/proof/live/ltl_parser.c +++ b/src/proof/live/ltl_parser.c @@ -519,7 +519,7 @@ void populateAigPointerUnitGF( Aig_Man_t *pAigNew, ltlNode *topASTNode, Vec_Ptr_ return; case GLOBALLY: nextNode = topASTNode->left; - assert( nextNode->type = EVENTUALLY ); + assert( nextNode->type == EVENTUALLY ); nextToNextNode = nextNode->left; if( nextToNextNode->type == BOOL ) { diff --git a/src/proof/ssc/sscUtil.c b/src/proof/ssc/sscUtil.c index db7f772bf9..c88e0220e2 100644 --- a/src/proof/ssc/sscUtil.c +++ b/src/proof/ssc/sscUtil.c @@ -96,7 +96,7 @@ Gia_Man_t * Gia_ManDropContained( Gia_Man_t * p ) Vec_IntWriteEntry( vLits, i, ConstLit ); // const1 SAT var is always true else { - assert( status = l_True ); + assert( status == l_True ); Vec_IntPush( vKeep, i ); } }