Skip to content

Commit ce4c008

Browse files
Remove plus_exprt_with_overflow_check
1 parent 4779b25 commit ce4c008

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

src/solvers/refinement/string_constraint_generator.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,6 @@ class string_constraint_generatort final
177177
array_string_exprt
178178
fresh_string(const typet &index_type, const typet &char_type);
179179
array_string_exprt get_string_expr(const exprt &expr);
180-
plus_exprt plus_exprt_with_overflow_check(const exprt &op1, const exprt &op2);
181-
182180

183181
static constant_exprt constant_char(int i, const typet &char_type);
184182

src/solvers/refinement/string_constraint_generator_main.cpp

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -145,23 +145,6 @@ exprt sum_overflows(const plus_exprt &sum)
145145
notequal_exprt(op1_negative, sum_negative));
146146
}
147147

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-
165148
/// Associate an actual finite length to infinite arrays
166149
/// \param s: array expression representing a string
167150
/// \return expression for the length of `s`

0 commit comments

Comments
 (0)