summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/theory/arith/partial_model.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/theory/arith/partial_model.cpp b/src/theory/arith/partial_model.cpp
index 7e4a2daad..73e7943b0 100644
--- a/src/theory/arith/partial_model.cpp
+++ b/src/theory/arith/partial_model.cpp
@@ -91,6 +91,9 @@ void ArithPartialModel::initialize(ArithVar x, const DeltaRational& r){
++d_mapSize;
d_hasSafeAssignment.push_back( false );
+ // Is wirth mentioning that this is not strictly necessary, but this maintains the internal invariant
+ // that when d_assignment is set this gets set.
+ d_deltaIsSafe = false;
d_assignment.push_back( r );
d_safeAssignment.push_back( DeltaRational(0) );
@@ -146,6 +149,7 @@ void ArithPartialModel::setLowerBoundConstraint(Constraint c){
Assert(inMaps(x));
Assert(greaterThanLowerBound(x, c->getValue()));
+ d_deltaIsSafe = false;
d_lbc.set(x, c);
}
@@ -159,6 +163,7 @@ void ArithPartialModel::setUpperBoundConstraint(Constraint c){
Assert(inMaps(x));
Assert(lessThanUpperBound(x, c->getValue()));
+ d_deltaIsSafe = false;
d_ubc.set(x, c);
}
@@ -240,7 +245,7 @@ void ArithPartialModel::clearSafeAssignments(bool revert){
}
if(revert && !d_history.empty()){
- d_deltaIsSafe = true;
+ d_deltaIsSafe = false;
}
d_history.clear();
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback