File tree 2 files changed +0
-19
lines changed
2 files changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -177,8 +177,6 @@ class string_constraint_generatort final
177
177
array_string_exprt
178
178
fresh_string (const typet &index_type, const typet &char_type);
179
179
array_string_exprt get_string_expr (const exprt &expr);
180
- plus_exprt plus_exprt_with_overflow_check (const exprt &op1, const exprt &op2);
181
-
182
180
183
181
static constant_exprt constant_char (int i, const typet &char_type);
184
182
Original file line number Diff line number Diff line change @@ -145,23 +145,6 @@ exprt sum_overflows(const plus_exprt &sum)
145
145
notequal_exprt (op1_negative, sum_negative));
146
146
}
147
147
148
- // / Create a plus expression while adding extra constraints to axioms in order
149
- // / to prevent overflows.
150
- // / \param op1: First term of the sum
151
- // / \param op2: Second term of the sum
152
- // / \return A plus expression representing the sum of the arguments
153
- // / \deprecated
154
- plus_exprt string_constraint_generatort::plus_exprt_with_overflow_check (
155
- const exprt &op1, const exprt &op2)
156
- {
157
- const plus_exprt sum (plus_exprt (op1, op2));
158
- // We prevent overflows by adding the following constraint:
159
- // If the signs of the two operands are the same, then the sign of the sum
160
- // should also be the same.
161
- lemmas.push_back (not_exprt (sum_overflows (sum)));
162
- return sum;
163
- }
164
-
165
148
// / Associate an actual finite length to infinite arrays
166
149
// / \param s: array expression representing a string
167
150
// / \return expression for the length of `s`
You can’t perform that action at this time.
0 commit comments