From 3e22cd74be95951547eeb4b81f6c813620f61475 Mon Sep 17 00:00:00 2001 From: Jan Huwald Date: Wed, 27 Feb 2013 15:18:35 +0100 Subject: make iterTrans verbose diff --git a/cacount.cpp b/cacount.cpp index 3b385ab..ca6c1ab 100644 --- a/cacount.cpp +++ b/cacount.cpp @@ -7,12 +7,12 @@ #include #include #include - +#include using namespace std; typedef uint32_t State; -const State logState = 16; +const State logState = 31; const State maxState = 1 << logState; bitset<8> rule(110); @@ -33,9 +33,14 @@ void iterState(function f) { for (State s=0; s f) { - while (times--) + +void iterTrans(int times, function f, bool verbose=false) { + if (verbose) cerr << times << " left\r"; + while (times--) { iterState(f); + if (verbose) cerr << times << " left\r"; + } + if (verbose) cerr << " \r"; } void init(Trans &t) { -- cgit v0.10.1