void ArithPartialModel::stopRecordingAssignments(bool revert){
Assert(d_savingAssignments);
- d_savingAssignments = false;
+ d_savingAssignments = false; //
if(revert){
while(!d_history.empty()){
pair<TNode, DeltaRational>& curr = d_history.back();
- d_history.pop_back();
-
- TNode x = curr.first;
- DeltaRational* c;
- bool hasAssignment = x.getAttribute(partial_model::Assignment(), c);
- Assert(hasAssignment);
+ setAssignment(curr.first,curr.second);
- *c = curr.second;
+ d_history.pop_back();
}
}else{
d_history.clear();