From 9ea4341a8093d4d8c907b2e854fb2d8d399da753 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Fri, 26 Jul 2024 02:17:31 +0100 Subject: A simple test, iterating 10 times and printing out the generated tree Seems to work! --- src/main.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/main.cpp b/src/main.cpp index e013202..d7f720c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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; } -- cgit v1.2.3-13-gbd6f