Fix sort comparison within assertion in cegis (#4113)
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>
Fri, 20 Mar 2020 20:36:35 +0000 (15:36 -0500)
committerGitHub <noreply@github.com>
Fri, 20 Mar 2020 20:36:35 +0000 (15:36 -0500)
src/theory/quantifiers/sygus/cegis.cpp

index 57fe405177dad8140a4b177d6ee6bfcee9872140..dfef0bad45ba467e88059b1ad7ddf8d83a9cf220 100644 (file)
@@ -599,7 +599,7 @@ bool Cegis::checkRefinementEvalLemmas(const std::vector<Node>& vs,
       for (unsigned j = 0, psize = vsProc.size(); j < psize; j++)
       {
         evalVisited[vsProc[j]] = msProc[j];
-        Assert(vsProc[j].getType() == msProc[j].getType());
+        Assert(vsProc[j].getType().isComparableTo(msProc[j].getType()));
       }
     }
   }