@@ -55,21 +55,6 @@ string_constraint_generatort::add_axioms_from_long(
55
55
return add_axioms_for_string_of_int (res, f.arguments ()[2 ], 0 );
56
56
}
57
57
58
- // / Add axioms corresponding to the String.valueOf(Z) java function.
59
- // / \deprecated This is Java specific and should be implemented in Java instead
60
- // / \param f: function application with a Boolean argument
61
- // / \return a new string expression
62
- DEPRECATED (SINCE(2017 , 10 , 5 , " Java specific, should be implemented in Java" ))
63
- std::pair<exprt, string_constraintst>
64
- string_constraint_generatort::add_axioms_from_bool(
65
- const function_application_exprt &f)
66
- {
67
- PRECONDITION (f.arguments ().size () == 3 );
68
- const array_string_exprt res =
69
- array_pool.find (f.arguments ()[1 ], f.arguments ()[0 ]);
70
- return add_axioms_from_bool (res, f.arguments ()[2 ]);
71
- }
72
-
73
58
// / Add axioms stating that the returned string equals "true" when the Boolean
74
59
// / expression is true and "false" when it is false.
75
60
// / \deprecated This is Java specific and should be implemented in Java instead
@@ -281,44 +266,6 @@ string_constraint_generatort::add_axioms_from_int_hex(
281
266
return add_axioms_from_int_hex (res, f.arguments ()[2 ]);
282
267
}
283
268
284
- // / Conversion from char to string
285
- // /
286
- // NOLINTNEXTLINE
287
- // / \copybrief add_axioms_from_char(const array_string_exprt &res, const exprt &c)
288
- // NOLINTNEXTLINE
289
- // / \link add_axioms_from_char(const array_string_exprt &res, const exprt &c)
290
- // / (More...) \endlink
291
- // / \param f: function application with arguments integer `|res|`, character
292
- // / pointer `&res[0]` and character `c`
293
- // / \return code 0 on success
294
- std::pair<exprt, string_constraintst>
295
- string_constraint_generatort::add_axioms_from_char (
296
- const function_application_exprt &f)
297
- {
298
- PRECONDITION (f.arguments ().size () == 3 );
299
- const array_string_exprt res =
300
- array_pool.find (f.arguments ()[1 ], f.arguments ()[0 ]);
301
- return add_axioms_from_char (res, f.arguments ()[2 ]);
302
- }
303
-
304
- // / Add axiom stating that string `res` has length 1 and the character
305
- // / it contains equals `c`.
306
- // /
307
- // / This axiom is: \f$ |{\tt res}| = 1 \land {\tt res}[0] = {\tt c} \f$.
308
- // / \param res: array of characters expression
309
- // / \param c: character expression
310
- // / \return code 0 on success
311
- std::pair<exprt, string_constraintst>
312
- string_constraint_generatort::add_axioms_from_char (
313
- const array_string_exprt &res,
314
- const exprt &c)
315
- {
316
- string_constraintst constraints;
317
- constraints.existential = {and_exprt (
318
- equal_exprt (res[0 ], c), equal_to (array_pool.get_or_create_length (res), 1 ))};
319
- return {from_integer (0 , get_return_code_type ()), std::move (constraints)};
320
- }
321
-
322
269
// / Add axioms making the return value true if the given string is a correct
323
270
// / number in the given radix
324
271
// / \param str: string expression
0 commit comments