summaryrefslogtreecommitdiff
path: root/lang/maude/files/patch-src_Mixfix_variableGenerator.cc
blob: a00361608c5efa83e743465133339732c9bce7d5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
kind::IFF was removed in CVC4 1.6 
--- src/Mixfix/variableGenerator.cc.orig	2018-09-17 10:44:35 UTC
+++ src/Mixfix/variableGenerator.cc
@@ -312,18 +312,7 @@ VariableGenerator::dagToCVC4(DagNode* dag)
 	  //
 	case SMT_Symbol::EQUALS:
 	  {
-	    //
-	    //	Bizarrely CVC4 requires the IFF be used for Boolean equality so we need to
-	    //	check the SMT type associated with our first argument sort to catch this case.
-	    //
-	    Sort* domainSort = s->getOpDeclarations()[0].getDomainAndRange()[0];
-	    SMT_Info::SMT_Type smtType = smtInfo.getType(domainSort);
-	    if (smtType == SMT_Info::NOT_SMT)
-	      {
-		IssueWarning("term " << QUOTE(dag) << " does not belong to an SMT sort.");
-		goto fail;
-	      }
-	    return exprManager->mkExpr(((smtType == SMT_Info::BOOLEAN) ? kind::IFF : kind::EQUAL), exprs[0], exprs[1]);
+	    return exprManager->mkExpr(kind::EQUAL, exprs[0], exprs[1]);
 	  }
 	case SMT_Symbol::NOT_EQUALS:
 	  {