Skip to content

Commit

Permalink
Revert, try enabling regressions
Browse files Browse the repository at this point in the history
  • Loading branch information
ajreynol committed Jan 14, 2025
1 parent 18bdd46 commit a3c73e6
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 15 deletions.
16 changes: 11 additions & 5 deletions src/theory/uf/theory_uf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,16 +229,22 @@ TrustNode TheoryUF::ppRewrite(TNode node, std::vector<SkolemLemma>& lems)
ss << "Cannot process term of abstract type " << node;
throw LogicException(ss.str());
}
if (k == Kind::HO_APPLY)
if (k == Kind::HO_APPLY || node.getType().isFunction())
{
if (!isHol)
{
if (!node.getType().isFunction())
std::stringstream ss;
if (k == Kind::HO_APPLY)
{
// If not HO logic, we convert to APPLY_UF
Node ret = TheoryUfRewriter::getApplyUfForHoApply(node);
return TrustNode::mkTrustRewrite(node, ret);
ss << "Higher-order function applications";
}
else
{
ss << "Function terms";
}
ss << " are only supported with "
"higher-order logic. Try adding the logic prefix HO_.";
throw LogicException(ss.str());
}
}
else if (k == Kind::APPLY_UF)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
; DISABLE-TESTER: alethe
; EXPECT: unsat
(set-logic QF_BV)

Expand Down
1 change: 0 additions & 1 deletion test/regress/cli/regress0/cores/dd.uc-min-wrong.smt2
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
; DISABLE-TESTER: alethe
; COMMAND-LINE: --minimal-unsat-cores
; EXPECT: unsat
(set-logic ALL)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
; DISABLE-TESTER: alethe
; EXPECT: unsat
(set-logic ALL)
(declare-const _vp1-1 (_ BitVec 1))
Expand Down
1 change: 0 additions & 1 deletion test/regress/cli/regress0/proofs/dd_fv-bvl.smt2
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
; DISABLE-TESTER: alethe
; EXPECT: unsat
(set-logic ALL)
(define-fun b ((bv (_ BitVec 4))) (_ BitVec 4) bv)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
; DISABLE-TESTER: alethe
; EXPECT: unsat
(set-logic QF_LIA)

Expand Down
1 change: 0 additions & 1 deletion test/regress/cli/regress1/bv/bug787.smt2
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
; COMMAND-LINE: --bitblast=eager
; EXPECT: unsat
; DISABLE-TESTER: alethe
(set-logic QF_BV)
(set-info :status unsat)
(define-fun hamming-weight ((bv (_ BitVec 4))) (_ BitVec 4)
Expand Down
1 change: 0 additions & 1 deletion test/regress/cli/regress1/bv2int-isabelle.smt2
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
; DISABLE-TESTER: alethe
; COMMAND-LINE: --solve-bv-as-int=sum
; EXPECT: unsat
(set-logic ALL)
Expand Down
1 change: 0 additions & 1 deletion test/regress/cli/regress1/proofs/add_two_base.smt2
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
; DISABLE-TESTER: alethe
; COMMAND-LINE: --lfsc-flatten --lfsc-expand-trust
; EXPECT: unsat

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
; DISABLE-TESTER: alethe
; EXPECT: unsat
(set-logic ALL)
(declare-sort integer 0)
Expand Down
1 change: 0 additions & 1 deletion test/regress/cli/regress1/quantifiers/proj-issue155.smt2
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
; DISABLE-TESTER: alethe
(set-logic ALL)
(set-info :status unsat)
(set-option :miniscope-quant agg)
Expand Down

0 comments on commit a3c73e6

Please sign in to comment.