diff --git a/src/acd/ac_decomposition.hpp b/src/acd/ac_decomposition.hpp index 64155b713..8ba2fb20e 100644 --- a/src/acd/ac_decomposition.hpp +++ b/src/acd/ac_decomposition.hpp @@ -945,6 +945,10 @@ private: /* discard solutions with support over LUT size */ if ( cost > ps.lut_size ) continue; + + /* buffers have zero cost */ + if ( cost == 1 ) + cost = 0; float sort_cost = 0; if constexpr ( UseHeuristic )