From 38e632a954a61e02e3397e02d42142ef86fdd9cb Mon Sep 17 00:00:00 2001 From: aletempiac Date: Fri, 12 Jan 2024 14:50:34 +0100 Subject: [PATCH] Consider buffers in matrix covering as free --- src/acd/ac_decomposition.hpp | 4 ++++ 1 file changed, 4 insertions(+) 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 )