summaryrefslogtreecommitdiff
path: root/src/theory/arith/partial_model.h
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.h
parent1161090e572f85d2ed191b66315406daa7ba7527 (diff)
Fix for bug 439. Delta computation now includes disequality information.
Diffstat (limited to 'src/theory/arith/partial_model.h')
-rw-r--r--src/theory/arith/partial_model.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/theory/arith/partial_model.h b/src/theory/arith/partial_model.h
index 83e2a4f2b..bcc65b85d 100644
--- a/src/theory/arith/partial_model.h
+++ b/src/theory/arith/partial_model.h
@@ -175,16 +175,19 @@ public:
return d_ubc[x] != NullConstraint;
}
- const Rational& getDelta(){
+ const Rational& getDelta(const Rational& init = Rational(1)){
+ Assert(init.sgn() > 0);
if(!d_deltaIsSafe){
- computeDelta();
+ computeDelta(init);
+ }else if(init < d_delta){
+ d_delta = init;
}
return d_delta;
}
private:
- void computeDelta();
+ void computeDelta(const Rational& init);
void deltaIsSmallerThan(const DeltaRational& l, const DeltaRational& u);
/**
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback