Compiler warnings.

This commit is contained in:
Alan Mishchenko 2024-08-16 21:35:10 -07:00
parent 2055b1b490
commit 732abf5b48
3 changed files with 5 additions and 2 deletions

1
.gitignore vendored
View File

@ -13,6 +13,7 @@ lib/m114*
lib/bip*
docs/
.vscode/
.cache/
src/ext*
src/xxx/

View File

@ -510,7 +510,7 @@ private:
}
} while ( combinations_offset_next( free_set_size, offset, pComb, pInvPerm, tt ) );
std::array<uint32_t, max_num_vars> res_perm;
std::array<uint32_t, max_num_vars> res_perm = {0};
if ( best_cost > ( 1 << ( ps.lut_size - free_set_size ) ) )
{
@ -543,7 +543,7 @@ private:
}
/* enumerate combinations */
std::array<uint32_t, max_num_vars> res_perm;
std::array<uint32_t, max_num_vars> res_perm = {0};
do
{

View File

@ -84,6 +84,8 @@ int Fxu_PreprocessCubePairs( Fxu_Matrix * p, Vec_Ptr_t * vCovers, int nPairsTota
nBitsMax = nFanins;
}
assert( iPair == nPairsTotal );
if ( nBitsMax == -1 )
nBitsMax = 0;
// allocate storage for counters of cube pairs by difference
pnPairCounters = ABC_CALLOC( int, 2 * nBitsMax );