Improve error messages for UF catching higher-order (#6982)
authorHaniel Barbosa <hanielbbarbosa@gmail.com>
Wed, 4 Aug 2021 20:08:06 +0000 (17:08 -0300)
committerGitHub <noreply@github.com>
Wed, 4 Aug 2021 20:08:06 +0000 (20:08 +0000)
Addresses #6979.

src/theory/uf/theory_uf.cpp

index f1adde143ae743ef78306e1f54d4b90a91398d71..4224ec85403b31579cd69512c434a160e2f537c7 100644 (file)
@@ -217,7 +217,8 @@ TrustNode TheoryUF::ppRewrite(TNode node, std::vector<SkolemLemma>& lems)
   {
     if( !options::ufHo() ){
       std::stringstream ss;
-      ss << "Partial function applications are not supported in default mode, try --uf-ho.";
+      ss << "Partial function applications are only supported with "
+            "higher-order logic. Try adding the logic prefix HO_.";
       throw LogicException(ss.str());
     }
     Node ret = d_ho->ppRewrite(node);
@@ -236,7 +237,9 @@ TrustNode TheoryUF::ppRewrite(TNode node, std::vector<SkolemLemma>& lems)
     {
       std::stringstream ss;
       ss << "UF received an application whose operator has higher-order type "
-         << node << ", which is not supported by default, try --uf-ho";
+         << node
+         << ", which is only supported with higher-order logic. Try adding the "
+            "logic prefix HO_.";
       throw LogicException(ss.str());
     }
   }