summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Huwald <jh@sotun.de>2013-06-25 12:58:09 (GMT)
committerJan Huwald <jh@sotun.de>2013-06-25 12:58:09 (GMT)
commitf9fb52f365f2354d2133a05e7dee92eb8edc5ec4 (patch)
treefa8322dc559b529a4e9b00822772746d780c7579
parent2f7d24215ec57f5376f06e4cc3d8136a6e26ed28 (diff)
add canon program option to test canonicalisation
-rw-r--r--cacount.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/cacount.cpp b/cacount.cpp
index 3cda3d9..5d00af0 100644
--- a/cacount.cpp
+++ b/cacount.cpp
@@ -206,5 +206,11 @@ int main(int argc, char **argv) {
findCycle(*t, *c);
cycleStat(*t, *c, *r);
}
+ if (!strcmp(argv[2], "canon")) {
+ assert(argc == 4);
+ State s = atoi(argv[3]);
+ for (auto i : {(StateIter) s, (StateIter) canonize(s), acanonize(s)})
+ cout << bitset<logState>(i) << " " << uint64_t(i) << endl;
+ }
return 0;
}
contact: Jan Huwald // Impressum