From 9792c0e927d3e860535b96e8d588d6158dd901a9 Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Mon, 27 Jun 2022 18:38:06 -0700 Subject: Step limit. --- main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp index b7d577f..c9a084c 100644 --- a/main.cpp +++ b/main.cpp @@ -10,10 +10,11 @@ #include "fib/fib.h" #include "git-tag.h" +const unsigned int max_steps = 300; const bool show_mem_fetch = false; const bool show_mem_store = true; const bool show_regs = false; -const bool show_steps = true; +const bool show_steps = false; const bool show_tasks = false; int main(int argc, const char *argv[]) @@ -88,7 +89,7 @@ int main(int argc, const char *argv[]) return 1; } - while (true) { + for (unsigned int i = 0; i < max_steps; ++i) { auto res = eval.async_fetch_and_run_step()(); if (res.has_value()) { auto &es = *res; -- cgit v1.2.3