// This file is automatically generated by DemeterJ. EqualVisitor { {{ private java.util.Stack history = new java.util.Stack(); public EqualVisitor(Object obj) { history.push(obj); } }} before -> Formula, clauses, Clause_List {{ if (is_equal) { Formula obj = (Formula) history.peek(); Object temp1 = obj.get_clauses(); if(temp1==null) { is_equal = false; return; } history.push(temp1); } }} after -> Formula, clauses, Clause_List {{ if (is_equal) history.pop(); }} before Formula {{ Object obj = history.peek(); is_equal = is_equal && obj.getClass().equals(host.getClass()); if(!is_equal) return; is_equal = is_equal && host.get_sats() == ((Formula) obj).get_sats(); is_equal = is_equal && host.get_unsats() == ((Formula) obj).get_unsats(); }} before -> Clause, weight, Weight {{ if (is_equal) { Clause obj = (Clause) history.peek(); Object temp2 = obj.get_weight(); if(temp2==null) { is_equal = false; return; } history.push(temp2); } }} after -> Clause, weight, Weight {{ if (is_equal) history.pop(); }} before -> Clause, literals, Literals {{ if (is_equal) { Clause obj = (Clause) history.peek(); Object temp3 = obj.get_literals(); if(temp3==null) { is_equal = false; return; } history.push(temp3); } }} after -> Clause, literals, Literals {{ if (is_equal) history.pop(); }} before Clause {{ Object obj = history.peek(); is_equal = is_equal && obj.getClass().equals(host.getClass()); if(!is_equal) return; }} before -> Literals, literal_list, Literal_List {{ if (is_equal) { Literals obj = (Literals) history.peek(); Object temp4 = obj.get_literal_list(); if(temp4==null) { is_equal = false; return; } history.push(temp4); } }} after -> Literals, literal_list, Literal_List {{ if (is_equal) history.pop(); }} before Literals {{ Object obj = history.peek(); is_equal = is_equal && obj.getClass().equals(host.getClass()); if(!is_equal) return; }} before -> Literal, variable, Variable {{ if (is_equal) { Literal obj = (Literal) history.peek(); Object temp5 = obj.get_variable(); if(temp5==null) { is_equal = false; return; } history.push(temp5); } }} after -> Literal, variable, Variable {{ if (is_equal) history.pop(); }} before Literal {{ Object obj = history.peek(); is_equal = is_equal && obj.getClass().equals(host.getClass()); if(!is_equal) return; }} before Positive {{ Object obj = history.peek(); is_equal = is_equal && obj.getClass().equals(host.getClass()); if(!is_equal) return; }} before Negative {{ Object obj = history.peek(); is_equal = is_equal && obj.getClass().equals(host.getClass()); if(!is_equal) return; }} before Variable {{ Object obj = history.peek(); is_equal = is_equal && obj.getClass().equals(host.getClass()); if(!is_equal) return; Object temp6 = host.get_integer(); Object temp7 = ((Variable) obj).get_integer(); if(temp6 == null && temp7 == null) {} else if(temp6 == null || temp7 == null || !temp6.equals(temp7)) { is_equal = false; return; } }} before Weight {{ Object obj = history.peek(); is_equal = is_equal && obj.getClass().equals(host.getClass()); if(!is_equal) return; Object temp8 = host.get_v(); Object temp9 = ((Weight) obj).get_v(); if(temp8 == null && temp9 == null) {} else if(temp8 == null || temp9 == null || !temp8.equals(temp9)) { is_equal = false; return; } }} before Main {{ Object obj = history.peek(); is_equal = is_equal && obj.getClass().equals(host.getClass()); if(!is_equal) return; Object temp10 = host.get_s(); Object temp11 = ((Main) obj).get_s(); if(temp10 == null && temp11 == null) {} else if(temp10 == null || temp11 == null || !temp10.equals(temp11)) { is_equal = false; return; } }} before -> ReduceVisitor, curLiteral, Literal {{ if (is_equal) { ReduceVisitor obj = (ReduceVisitor) history.peek(); Object temp12 = obj.get_curLiteral(); if(temp12==null) { is_equal = false; return; } history.push(temp12); } }} after -> ReduceVisitor, curLiteral, Literal {{ if (is_equal) history.pop(); }} before -> ReduceVisitor, newClauses, Clause_List {{ if (is_equal) { ReduceVisitor obj = (ReduceVisitor) history.peek(); Object temp13 = obj.get_newClauses(); if(temp13==null) { is_equal = false; return; } history.push(temp13); } }} after -> ReduceVisitor, newClauses, Clause_List {{ if (is_equal) history.pop(); }} before ReduceVisitor {{ Object obj = history.peek(); is_equal = is_equal && obj.getClass().equals(host.getClass()); if(!is_equal) return; is_equal = is_equal && host.get_sats() == ((ReduceVisitor) obj).get_sats(); is_equal = is_equal && host.get_unsats() == ((ReduceVisitor) obj).get_unsats(); }} before PrintVisitor {{ Object obj = history.peek(); is_equal = is_equal && obj.getClass().equals(host.getClass()); if(!is_equal) return; is_equal = is_equal && host.get_indent() == ((PrintVisitor) obj).get_indent(); is_equal = is_equal && host.get_needSpace() == ((PrintVisitor) obj).get_needSpace(); }} before CopyVisitor {{ Object obj = history.peek(); is_equal = is_equal && obj.getClass().equals(host.getClass()); if(!is_equal) return; Object temp14 = host.get_copy(); Object temp15 = ((CopyVisitor) obj).get_copy(); if(temp14 == null && temp15 == null) {} else if(temp14 == null || temp15 == null || !temp14.equals(temp15)) { is_equal = false; return; } }} before SubgraphVisitor {{ Object obj = history.peek(); is_equal = is_equal && obj.getClass().equals(host.getClass()); if(!is_equal) return; is_equal = is_equal && host.get_is_equal() == ((SubgraphVisitor) obj).get_is_equal(); }} before EqualVisitor {{ Object obj = history.peek(); is_equal = is_equal && obj.getClass().equals(host.getClass()); if(!is_equal) return; is_equal = is_equal && host.get_is_equal() == ((EqualVisitor) obj).get_is_equal(); }} before DisplayVisitor {{ Object obj = history.peek(); is_equal = is_equal && obj.getClass().equals(host.getClass()); if(!is_equal) return; is_equal = is_equal && host.get_indent() == ((DisplayVisitor) obj).get_indent(); }} before TraceVisitor {{ Object obj = history.peek(); is_equal = is_equal && obj.getClass().equals(host.getClass()); if(!is_equal) return; is_equal = is_equal && host.get_indent() == ((TraceVisitor) obj).get_indent(); }} before UniversalVisitor {{ Object obj = history.peek(); is_equal = is_equal && obj.getClass().equals(host.getClass()); if(!is_equal) return; }} before -> Clause_List, first, Nonempty_Clause_List {{ if (is_equal) { Clause_List obj = (Clause_List) history.peek(); Object temp16 = obj.get_first(); if(temp16==null) { is_equal = false; return; } history.push(temp16); } }} after -> Clause_List, first, Nonempty_Clause_List {{ if (is_equal) history.pop(); }} before Clause_List {{ Object obj = history.peek(); is_equal = is_equal && obj.getClass().equals(host.getClass()); if(!is_equal) return; }} before -> Literal_List, first, Nonempty_Literal_List {{ if (is_equal) { Literal_List obj = (Literal_List) history.peek(); Object temp17 = obj.get_first(); if(temp17==null) { is_equal = false; return; } history.push(temp17); } }} after -> Literal_List, first, Nonempty_Literal_List {{ if (is_equal) history.pop(); }} before Literal_List {{ Object obj = history.peek(); is_equal = is_equal && obj.getClass().equals(host.getClass()); if(!is_equal) return; }} before -> Nonempty_Clause_List, it, Clause {{ if (is_equal) { Nonempty_Clause_List obj = (Nonempty_Clause_List) history.peek(); Object temp18 = obj.get_it(); if(temp18==null) { is_equal = false; return; } history.push(temp18); } }} after -> Nonempty_Clause_List, it, Clause {{ if (is_equal) history.pop(); }} before -> Nonempty_Clause_List, next, Nonempty_Clause_List {{ if (is_equal) { Nonempty_Clause_List obj = (Nonempty_Clause_List) history.peek(); Object temp19 = obj.get_next(); if(temp19==null) { is_equal = false; return; } history.push(temp19); } }} after -> Nonempty_Clause_List, next, Nonempty_Clause_List {{ if (is_equal) history.pop(); }} before Nonempty_Clause_List {{ Object obj = history.peek(); is_equal = is_equal && obj.getClass().equals(host.getClass()); if(!is_equal) return; }} before -> Nonempty_Literal_List, it, Literal {{ if (is_equal) { Nonempty_Literal_List obj = (Nonempty_Literal_List) history.peek(); Object temp20 = obj.get_it(); if(temp20==null) { is_equal = false; return; } history.push(temp20); } }} after -> Nonempty_Literal_List, it, Literal {{ if (is_equal) history.pop(); }} before -> Nonempty_Literal_List, next, Nonempty_Literal_List {{ if (is_equal) { Nonempty_Literal_List obj = (Nonempty_Literal_List) history.peek(); Object temp21 = obj.get_next(); if(temp21==null) { is_equal = false; return; } history.push(temp21); } }} after -> Nonempty_Literal_List, next, Nonempty_Literal_List {{ if (is_equal) history.pop(); }} before Nonempty_Literal_List {{ Object obj = history.peek(); is_equal = is_equal && obj.getClass().equals(host.getClass()); if(!is_equal) return; }} return boolean {{ is_equal }} }