diff options
author | Morgan Deters <mdeters@gmail.com> | 2011-09-02 17:56:43 +0000 |
---|---|---|
committer | Morgan Deters <mdeters@gmail.com> | 2011-09-02 17:56:43 +0000 |
commit | 487e610b88f2a634e3285886ff96717c103338de (patch) | |
tree | 7f034b5c9f537195df72ac9ecd7666226dc2ed9f /src/theory/arith/ordered_set.h | |
parent | 90267f8729799f44c6fb33ace11b971a16e78dff (diff) |
Partial merge of integers work; this is simple B&B and some pseudoboolean
infrastructure, and takes care not to affect CVC4's performance on LRA
benchmarks.
Diffstat (limited to 'src/theory/arith/ordered_set.h')
-rw-r--r-- | src/theory/arith/ordered_set.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/theory/arith/ordered_set.h b/src/theory/arith/ordered_set.h index 43ccd7815..e44ba8687 100644 --- a/src/theory/arith/ordered_set.h +++ b/src/theory/arith/ordered_set.h @@ -53,14 +53,18 @@ public: void addLeq(TNode leq){ Assert(leq.getKind() == kind::LEQ); Assert(rightHandRational(leq) == getValue()); - Assert(!hasLeq()); + // [MGD] With context-dependent pre-registration, we could get the + // same one twice + Assert(!hasLeq() || d_leq == leq); d_leq = leq; } void addGeq(TNode geq){ Assert(geq.getKind() == kind::GEQ); Assert(rightHandRational(geq) == getValue()); - Assert(!hasGeq()); + // [MGD] With context-dependent pre-registration, we could get the + // same one twice + Assert(!hasGeq() || d_geq == geq); d_geq = geq; } |