Skip to content

Commit

Permalink
Refactor(Decomposition): Use boolean operator && in condition
Browse files Browse the repository at this point in the history
Related: #136
  • Loading branch information
wjrforcyber committed Sep 23, 2024
1 parent 5b7ea89 commit 923d646
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/kitty/decomposition.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ inline std::tuple<std::vector<int>, std::vector<int>, bi_decomposition> best_var
{
if ( xor_cost )
{
if ( ( x_xor.first.size() != 0 ) & ( x_xor.second.size() != 0 ) )
if ( ( x_xor.first.size() != 0 ) && ( x_xor.second.size() != 0 ) )
{
return std::make_tuple( x_xor.first, x_xor.second, bi_decomposition::xor_ );
}
Expand Down Expand Up @@ -953,4 +953,4 @@ uint32_t ashenhurst_decomposition( const TTf& tt, const std::vector<uint32_t>& y
return static_cast<uint32_t>( decomposition.size() );
}

} // namespace kitty
} // namespace kitty

0 comments on commit 923d646

Please sign in to comment.