File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -101,9 +101,7 @@ guard_exprt &operator-=(guard_exprt &g1, const guard_exprt &g2)
101
101
return g1;
102
102
}
103
103
104
- sort_and_join (g1.expr );
105
104
exprt g2_sorted = g2.as_expr ();
106
- sort_and_join (g2_sorted);
107
105
108
106
exprt::operandst &op1 = g1.expr .operands ();
109
107
const exprt::operandst &op2 = g2_sorted.operands ();
@@ -112,10 +110,10 @@ guard_exprt &operator-=(guard_exprt &g1, const guard_exprt &g2)
112
110
for (exprt::operandst::const_iterator it2 = op2.begin (); it2 != op2.end ();
113
111
++it2)
114
112
{
115
- while (it1 != op1.end () && *it1 < *it2)
116
- ++it1;
117
113
if (it1 != op1.end () && *it1 == *it2)
118
114
it1 = op1.erase (it1);
115
+ else
116
+ break ;
119
117
}
120
118
121
119
g1.expr = conjunction (op1);
@@ -159,9 +157,7 @@ guard_exprt &operator|=(guard_exprt &g1, const guard_exprt &g2)
159
157
}
160
158
161
159
// find common prefix
162
- sort_and_join (g1.expr );
163
160
exprt g2_sorted = g2.as_expr ();
164
- sort_and_join (g2_sorted);
165
161
166
162
exprt::operandst &op1 = g1.expr .operands ();
167
163
const exprt::operandst &op2 = g2_sorted.operands ();
You can’t perform that action at this time.
0 commit comments