summaryrefslogtreecommitdiff
path: root/src/compat
diff options
context:
space:
mode:
authorAndres Noetzli <andres.noetzli@gmail.com>2017-08-17 08:51:51 -0700
committerGitHub <noreply@github.com>2017-08-17 08:51:51 -0700
commit33ca2a3f2359493a9154a229a30ad3aa3a21f2aa (patch)
tree2faebdb98cff292d4b4cd9aed254a685efada15b /src/compat
parent7766f0ba088ad6d6c58ea9678477b255c9e52fee (diff)
Remove unused SubrangeBound(s) classes (#221)
As discussed in pull request #220, commit 360d6ee8d3cdd5ddb47c328043eaed3a107b8db1 mostly got rid of SubrangeBound(s). There were still a few mentions of it left in the code, most of them commented out. The occurrences in expr.i and expr_manager.i, however, created issues with the Python wrapper. This commit removes the SubrangeBound(s) implementation and other leftovers.
Diffstat (limited to 'src/compat')
-rw-r--r--src/compat/cvc3_compat.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/compat/cvc3_compat.cpp b/src/compat/cvc3_compat.cpp
index ffb299394..169b49faa 100644
--- a/src/compat/cvc3_compat.cpp
+++ b/src/compat/cvc3_compat.cpp
@@ -33,7 +33,6 @@
#include "smt/command.h"
#include "util/bitvector.h"
#include "util/sexpr.h"
-#include "util/subrange_bound.h"
using namespace std;
@@ -1255,15 +1254,6 @@ Type ValidityChecker::intType() {
}
Type ValidityChecker::subrangeType(const Expr& l, const Expr& r) {
-/*
- bool noLowerBound = l.getType().isString() && l.getConst<CVC4::String>() == "_NEGINF";
- bool noUpperBound = r.getType().isString() && r.getConst<CVC4::String>() == "_POSINF";
- CompatCheckArgument(noLowerBound || (l.getKind() == CVC4::kind::CONST_RATIONAL && l.getConst<Rational>().isIntegral()), l);
- CompatCheckArgument(noUpperBound || (r.getKind() == CVC4::kind::CONST_RATIONAL && r.getConst<Rational>().isIntegral()), r);
- CVC4::SubrangeBound bl = noLowerBound ? CVC4::SubrangeBound() : CVC4::SubrangeBound(l.getConst<Rational>().getNumerator());
- CVC4::SubrangeBound br = noUpperBound ? CVC4::SubrangeBound() : CVC4::SubrangeBound(r.getConst<Rational>().getNumerator());
- return d_em->mkSubrangeType(CVC4::SubrangeBounds(bl, br));
- */
Unimplemented("Subrange types not supported by CVC4 (sorry!)");
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback