Delete duplicated code (#5718)
authoryoni206 <yoni206@users.noreply.github.com>
Tue, 22 Dec 2020 23:17:27 +0000 (15:17 -0800)
committerGitHub <noreply@github.com>
Tue, 22 Dec 2020 23:17:27 +0000 (17:17 -0600)
src/theory/term_registration_visitor.cpp

index 471a94e25b10bc32d261b4d0fad38e663be9adc0..b4ad87f1e7967a9aca30f7cc92e57ae2b8041548 100644 (file)
@@ -222,22 +222,6 @@ bool SharedTermsVisitor::alreadyVisited(TNode current, TNode parent) const {
   bool useType = false;
   TheoryId typeTheoryId = THEORY_LAST;
 
-  if (current != parent) {
-    if (currentTheoryId != parentTheoryId) {
-      // If enclosed by different theories it's shared -- in read(a, f(a)) f(a) should be shared with integers
-      TypeNode type = current.getType();
-      useType = true;
-      typeTheoryId = Theory::theoryOf(type);
-    } else {
-      TypeNode type = current.getType();
-      typeTheoryId = Theory::theoryOf(type);
-      if (typeTheoryId != currentTheoryId) {
-        if (type.isInterpretedFinite()) {
-          useType = true;
-        }
-      }
-    }
-  }
   if (current != parent) {
     if (currentTheoryId != parentTheoryId) {
       // If enclosed by different theories it's shared -- in read(a, f(a)) f(a) should be shared with integers