void Smt2::checkLogicAllowsFunctions()
{
- if (!d_logic.isTheoryEnabled(theory::THEORY_UF))
+ if (!d_logic.isTheoryEnabled(theory::THEORY_UF) && !isHoEnabled())
{
parseError(
"Functions (of non-zero arity) cannot "
"be declared in logic "
- + d_logic.getLogicString() + ". Try adding the prefix HO_.");
+ + d_logic.getLogicString()
+ + ". Try including UF or adding the prefix HO_.");
}
}
regress0/ho/issue4477.smt2
regress0/ho/issue4990-care-graph.smt2
regress0/ho/issue5233-part1-usort-owner.smt2
+ regress0/ho/issue6526.smt2
regress0/ho/ite-apply-eq.smt2
regress0/ho/lambda-equality-non-canon.smt2
regress0/ho/match-middle.smt2
--- /dev/null
+; COMMAND-LINE:
+; EXPECT: sat
+(set-logic HO_NIA)
+(declare-fun x (Int) Bool)
+(check-sat)
\ No newline at end of file