File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -2127,7 +2127,7 @@ bool simplify_exprt::simplify_node(exprt &expr)
2127
2127
2128
2128
bool result=true ;
2129
2129
2130
- result= sort_and_join (expr) && result;
2130
+ result = sort_and_join (expr, false ) && result;
2131
2131
2132
2132
if (expr.id ()==ID_typecast)
2133
2133
result=simplify_typecast (expr) && result;
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ static const struct saj_tablet &sort_and_join(
119
119
return saj_table[i];
120
120
}
121
121
122
- bool sort_and_join (exprt &expr)
122
+ bool sort_and_join (exprt &expr, bool do_sort )
123
123
{
124
124
bool result=true ;
125
125
@@ -158,8 +158,9 @@ bool sort_and_join(exprt &expr)
158
158
}
159
159
160
160
// sort it
161
+ if (do_sort)
162
+ result = sort_operands (new_ops) && result;
161
163
162
- result=sort_operands (new_ops) && result;
163
164
expr.operands ().swap (new_ops);
164
165
165
166
return result;
Original file line number Diff line number Diff line change 14
14
15
15
bool sort_operands (exprt ::operandst & operands );
16
16
17
- bool sort_and_join (exprt & expr );
17
+ bool sort_and_join (exprt & expr , bool do_sort = true );
18
18
19
19
#endif // CPROVER_UTIL_SIMPLIFY_UTILS_H
You can’t perform that action at this time.
0 commit comments