From 4cfbdc08ec631657c9132ad14b35a756386900f5 Mon Sep 17 00:00:00 2001 From: Brett Laptop Date: Mon, 20 Jan 2025 15:45:32 -0500 Subject: [PATCH] test --- CMakeLists.txt | 2 +- src/transformers.cpp | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3dc402a..84ec579 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,7 +27,7 @@ macro(compile_options target_name) sanitizers(${target_name}) endmacro() -project(blt-gp VERSION 0.3.23) +project(blt-gp VERSION 0.3.24) include(CTest) diff --git a/src/transformers.cpp b/src/transformers.cpp index 48c50ff..dba6549 100644 --- a/src/transformers.cpp +++ b/src/transformers.cpp @@ -404,6 +404,11 @@ namespace blt::gp thread_local tree_t child_tree{program}; c.copy_subtree(tree_t::subtree_point_t(child.start), child.end, child_tree); + if (!child_tree.check(detail::debug::context_ptr)) + { + child_tree.print(std::cout, false, true); + BLT_ABORT("We found an error"); + } c.delete_subtree(tree_t::subtree_point_t(static_cast(c_node))); c.insert_subtree(tree_t::subtree_point_t(static_cast(c_node)), child_tree); child_tree.clear(program);