A simple test, iterating 10 times and printing out the generated tree

Seems to work!
This commit is contained in:
2024-07-26 02:17:31 +01:00
parent 93d3ce89cc
commit 9ea4341a80

View File

@@ -152,6 +152,12 @@ void iterate(void)
int main(void)
{
puts("Hello, world!");
word_t root = alloc_node(Fraction{2, 4});
to_iterate.push(root);
for (int i = 0; i < 10; ++i)
{
iterate();
printf("step[%d]:\n%s\n\n", i, to_string(nodes[root]).c_str());
}
return 0;
}