summaryrefslogtreecommitdiff
path: root/src/theory/uf/theory_uf_model.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/theory/uf/theory_uf_model.cpp')
-rw-r--r--src/theory/uf/theory_uf_model.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/theory/uf/theory_uf_model.cpp b/src/theory/uf/theory_uf_model.cpp
index 7b990c4cd..f7272f7ba 100644
--- a/src/theory/uf/theory_uf_model.cpp
+++ b/src/theory/uf/theory_uf_model.cpp
@@ -51,8 +51,10 @@ bool UfModelTreeNode::hasConcreteArgumentDefinition(){
//set value function
void UfModelTreeNode::setValue( TheoryModel* m, Node n, Node v, std::vector< int >& indexOrder, bool ground, int argIndex ){
if( d_data.empty() ){
+ //overwrite value if either at leaf or this is a fresh tree
d_value = v;
}else if( !d_value.isNull() && d_value!=v ){
+ //value is no longer constant
d_value = Node::null();
}
if( argIndex<(int)indexOrder.size() ){
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback