Skip to content

Commit

Permalink
Compiler warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
alanminko committed Aug 17, 2024
1 parent 2055b1b commit 732abf5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ lib/m114*
lib/bip*
docs/
.vscode/
.cache/

src/ext*
src/xxx/
Expand Down
4 changes: 2 additions & 2 deletions src/map/if/acd/ac_decomposition.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ class ac_decomposition_impl
}
} 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 ) ) )
{
Expand Down Expand Up @@ -543,7 +543,7 @@ class ac_decomposition_impl
}

/* enumerate combinations */
std::array<uint32_t, max_num_vars> res_perm;
std::array<uint32_t, max_num_vars> res_perm = {0};

do
{
Expand Down
2 changes: 2 additions & 0 deletions src/opt/fxu/fxuReduce.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit 732abf5

Please sign in to comment.