File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -957,8 +957,8 @@ class smt2_printer {
957
957
unsigned num_lets = 0 ;
958
958
format * f_body = pp_let (m_format_stack.back (), num_lets);
959
959
// The current SMT2 frontend uses weight 1 as default.
960
- #define MIN_WEIGHT 1
961
- if (q->has_patterns () || q->get_weight () > MIN_WEIGHT ||
960
+ #define DEFAULT_WEIGHT 1
961
+ if (q->has_patterns () || q->get_weight () != DEFAULT_WEIGHT ||
962
962
q->get_skid () != symbol::null || (q->get_qid () != symbol::null && !q->get_qid ().is_numerical ())) {
963
963
ptr_buffer<format> buf;
964
964
buf.push_back (f_body);
@@ -976,7 +976,7 @@ class smt2_printer {
976
976
buf.push_back (pp_attribute (" :no-pattern " , *it));
977
977
}
978
978
}
979
- if (q->get_weight () > MIN_WEIGHT ) {
979
+ if (q->get_weight () != DEFAULT_WEIGHT ) {
980
980
buf.push_back (pp_simple_attribute (" :weight " , q->get_weight ()));
981
981
}
982
982
if (q->get_skid () != symbol::null) {
You can’t perform that action at this time.
0 commit comments