summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorajreynol <andrew.j.reynolds@gmail.com>2015-06-13 23:45:11 +0200
committerajreynol <andrew.j.reynolds@gmail.com>2015-06-13 23:45:17 +0200
commit16955c76a25a8030dc24840e74d0ab24d54f0a35 (patch)
treee9403d9cbe105e164971993c16023a87ea4cadcc /src/util
parentdc8df0a8c79098c34c96c3722ed5b5269e5f6c78 (diff)
Robust check to avoid store all instantiations. Fix prior commit for sort inference.
Diffstat (limited to 'src/util')
-rw-r--r--src/util/sort_inference.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/sort_inference.cpp b/src/util/sort_inference.cpp
index 76e39c2b3..9aef059bd 100644
--- a/src/util/sort_inference.cpp
+++ b/src/util/sort_inference.cpp
@@ -290,7 +290,6 @@ void SortInference::setEqual( int t1, int t2 ){
rt1 = rt2;
rt2 = swap;
}
- d_type_union_find.d_eqc[rt1] = rt2;
std::map< int, TypeNode >::iterator it1 = d_type_types.find( rt1 );
if( it1!=d_type_types.end() ){
if( d_type_types.find( rt2 )==d_type_types.end() ){
@@ -298,8 +297,10 @@ void SortInference::setEqual( int t1, int t2 ){
d_type_types.erase( rt1 );
}else{
//may happen for mixed int/real
+ return;
}
}
+ d_type_union_find.d_eqc[rt1] = rt2;
}
}
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback