static check, still errors

main
Brett 2024-08-10 16:43:49 -04:00
parent 02d4b2b3e3
commit f227d1fb1c
6 changed files with 8 additions and 6 deletions

View File

@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.25)
project(image-gp-6 VERSION 0.0.30)
project(image-gp-6 VERSION 0.0.31)
include(FetchContent)

View File

@ -0,0 +1 @@
---

View File

@ -0,0 +1,3 @@
Start testing: Aug 10 16:33 EDT
----------------------------------------------------------
End testing: Aug 10 16:33 EDT

View File

@ -27,7 +27,7 @@ inline constexpr size_t log2(size_t n) // NOLINT
}
inline const blt::u64 SEED = std::random_device()();
//inline const blt::u64 SEED = 553372510;
//inline const blt::u64 SEED = 125003014;
inline constexpr blt::size_t IMAGE_SIZE = 128;
inline constexpr blt::size_t IMAGE_PADDING = 16;
inline constexpr blt::size_t POP_SIZE = 64;

@ -1 +1 @@
Subproject commit 502ea6ea36246de0a9ad6f67d9085796d3c0cf5b
Subproject commit 8ee64b5666cf9d1dc308ff629bd4c7ef14b0c96a

View File

@ -253,7 +253,6 @@ namespace blt::gp
// not enough args
blt::size_t total_bytes_after = 0;
blt::size_t start_index = c_node + 1;
blt::size_t insert_index = c_node + 1;
//if (current_func_info.argc.argc != 0)
// start_index = children_data.back().end;
for (blt::size_t i = start_index; i < ops.size(); i++)
@ -287,13 +286,12 @@ namespace blt::gp
ops.insert(ops.begin() + static_cast<blt::ptrdiff_t>(start_index), tree.get_operations().begin(),
tree.get_operations().end());
start_index += tree.get_operations().size();
insert_index += tree.get_operations().size();
}
vals.copy_from(data, total_bytes_after);
}
// now finally update the type.
ops[c_node] = {replacement_func_info.function, program.get_typesystem().get_type(replacement_func_info.return_type).size(),
random_replacement, false};
random_replacement, program.is_static(random_replacement)};
} else
{
blt::size_t bytes_from_head = 0;