From 641f0ed7111d05a9dcbac919e22b4922f4bce5cf Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Wed, 1 Feb 2017 16:20:41 +0100 Subject: Comment some debug things --- main.cpp | 23 +++++++++++++---------- tree.cpp | 8 ++++---- 2 files changed, 17 insertions(+), 14 deletions(-) diff --git a/main.cpp b/main.cpp index f4fe639..781f72e 100644 --- a/main.cpp +++ b/main.cpp @@ -62,12 +62,12 @@ vector* deduceEq(const vector &axioms,const Tree &startTree,const T if(pqu.size()==0)return nullptr; current=pqu.top(); pqu.pop(); - cerr<<"current = "<([2]*[1])", // Commutativity // "(([1]*[2])*[3])=([1]*([2]*[3]))", // Associativity - "([1]*([1]*[2]))=[1]", // Onno's 1=2 axioms - "(([2]*[1])*[1])=[1]", + // "([1]*([1]*[2]))=[1]", // Onno's 1=2 axioms + // "(([2]*[1])*[1])=[1]", // "[1]=([1]*[1])", // "(([1]*[2])*[3])=(([2]*[3])*[1])", // "[1]=[2]", + + "[1]=([1]*([1]*([1]*[2])))", // Daan's 1=2 axioms + "(([2]*[1])*[1])=[1]", }); const Tree t_from("1"),t_to("2"); diff --git a/tree.cpp b/tree.cpp index a259e9b..c069904 100644 --- a/tree.cpp +++ b/tree.cpp @@ -316,10 +316,10 @@ void Tree::replace(Node *subj,const Tree &pat,const Tree &repl,vector &acc Assign *as=subj->match(*pat.root); if(as){ refreshUnassigned(repl,*as); - cerr<<"replace("<<*subj<<","< &p : *as){ - cerr<<" "< "< &p : *as){ + // cerr<<" "< "<apply(*as); Node backup=*subj; *subj=*res; -- cgit v1.2.3