summaryrefslogtreecommitdiff
path: root/src/theory/arith/partial_model.cpp
diff options
context:
space:
mode:
authorTim King <taking@cs.nyu.edu>2012-11-10 19:01:49 +0000
committerTim King <taking@cs.nyu.edu>2012-11-10 19:01:49 +0000
commit8b5686a7dd0b559356e9e3bf76be93ad9c726085 (patch)
tree3cc6fb03604f5cbf913c872ed44504997cdc4b52 /src/theory/arith/partial_model.cpp
parent1161090e572f85d2ed191b66315406daa7ba7527 (diff)
Fix for bug 439. Delta computation now includes disequality information.
Diffstat (limited to 'src/theory/arith/partial_model.cpp')
-rw-r--r--src/theory/arith/partial_model.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/theory/arith/partial_model.cpp b/src/theory/arith/partial_model.cpp
index 73e7943b0..edba437ab 100644
--- a/src/theory/arith/partial_model.cpp
+++ b/src/theory/arith/partial_model.cpp
@@ -289,9 +289,9 @@ void ArithPartialModel::deltaIsSmallerThan(const DeltaRational& l, const DeltaRa
}
}
-void ArithPartialModel::computeDelta(){
+void ArithPartialModel::computeDelta(const Rational& init){
Assert(!d_deltaIsSafe);
- d_delta = 1;
+ d_delta = init;
for(ArithVar x = 0; x < d_mapSize; ++x){
const DeltaRational& a = getAssignment(x);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback