From 1fb168a8f82675020f81bb47747beb563d4bbea6 Mon Sep 17 00:00:00 2001 From: Brett Date: Tue, 6 Aug 2024 13:45:24 -0400 Subject: [PATCH] remove redundant test --- CMakeLists.txt | 2 +- examples/symbolic_regression.cpp | 3 ++- src/tree.cpp | 10 ++-------- 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 43e062b..bae24a8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.25) -project(blt-gp VERSION 0.0.121) +project(blt-gp VERSION 0.0.122) include(CTest) diff --git a/examples/symbolic_regression.cpp b/examples/symbolic_regression.cpp index 164dfed..e098cd7 100644 --- a/examples/symbolic_regression.cpp +++ b/examples/symbolic_regression.cpp @@ -22,7 +22,8 @@ #include #include -static constexpr long SEED = 41912; +//static constexpr long SEED = 41912; +static const unsigned long SEED = std::random_device()(); struct context { diff --git a/src/tree.cpp b/src/tree.cpp index f9ac0c5..6d32d3b 100644 --- a/src/tree.cpp +++ b/src/tree.cpp @@ -56,17 +56,11 @@ namespace blt::gp operations_stack.pop_back(); if (operation.is_value) { - //BLT_DEBUG("Processed Value %ld with size %ld", operation.id, stack_allocator::aligned_size(operation.type_size)); - //BLT_DEBUG("Stack info: %ld %ld", values_process.size().total_used_bytes, value_stack.size().total_used_bytes); - //BLT_DEBUG("In Head: %ld %ld", values_process.bytes_in_head(), value_stack.bytes_in_head()); value_stack.transfer_bytes(values_process, operation.type_size); continue; } - //BLT_DEBUG("Processed function %ld with size %ld", operation.id, stack_allocator::aligned_size(operation.type_size)); - //BLT_TRACE("Stack info: %ld %ld", values_process.size().total_used_bytes, value_stack.size().total_used_bytes); - //BLT_INFO("In Head: %ld %ld", values_process.bytes_in_head(), value_stack.bytes_in_head()); - operation.func(context, values_process, value_stack); - operations_stack.emplace_back(empty_callable, operation.type_size, operation.id, true); + operation.func(context, values_process, values_process); + //operations_stack.emplace_back(empty_callable, operation.type_size, operation.id, true); } return results;