From 7b7a18bf813fd91b3fdd54c69703b000ecaff904 Mon Sep 17 00:00:00 2001 From: Ahmet Inan Date: Mon, 2 Feb 2026 09:00:29 +0100 Subject: [PATCH] use CRC by default and add number of CRC bits to K --- tests/pac_list_regression_test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/pac_list_regression_test.cc b/tests/pac_list_regression_test.cc index 6abfc2e..137cd36 100644 --- a/tests/pac_list_regression_test.cc +++ b/tests/pac_list_regression_test.cc @@ -24,7 +24,7 @@ int main() const int MAX_N = 1 << MAX_M; const int M = 7; const int N = 1 << M; - const bool crc_aided = false; + const bool crc_aided = true; CODE::CRC crc(0xD9); const int C = 8; #if 1 @@ -44,7 +44,7 @@ int main() auto codeword = new code_type[N]; double erasure_probability = 0.5; - int K = (1 - erasure_probability) * N; + int K = (1 - erasure_probability) * N + crc_aided * C; double design_SNR = 10 * std::log10(-std::log(erasure_probability)); std::cerr << "design SNR: " << design_SNR << std::endl; auto construct = new CODE::ReedMullerSequence;