@@ -59,22 +59,6 @@ std::pair<exprt, string_constraintst> add_axioms_from_long(
59
59
res, f.arguments ()[2 ], 0 , ns, array_pool);
60
60
}
61
61
62
- // / Add axioms corresponding to the String.valueOf(Z) java function.
63
- // / \deprecated This is Java specific and should be implemented in Java instead
64
- // / \param f: function application with a Boolean argument
65
- // / \param array_pool: pool of arrays representing strings
66
- // / \return a new string expression
67
- DEPRECATED (SINCE(2017 , 10 , 5 , " Java specific, should be implemented in Java" ))
68
- std::pair<exprt, string_constraintst> add_axioms_from_bool(
69
- const function_application_exprt &f,
70
- array_poolt &array_pool)
71
- {
72
- PRECONDITION (f.arguments ().size () == 3 );
73
- const array_string_exprt res =
74
- array_pool.find (f.arguments ()[1 ], f.arguments ()[0 ]);
75
- return add_axioms_from_bool (res, f.arguments ()[2 ], array_pool);
76
- }
77
-
78
62
// / Add axioms stating that the returned string equals "true" when the Boolean
79
63
// / expression is true and "false" when it is false.
80
64
// / \deprecated This is Java specific and should be implemented in Java instead
@@ -296,46 +280,6 @@ std::pair<exprt, string_constraintst> add_axioms_from_int_hex(
296
280
return add_axioms_from_int_hex (res, f.arguments ()[2 ], array_pool);
297
281
}
298
282
299
- // / Conversion from char to string
300
- // /
301
- // NOLINTNEXTLINE
302
- // / \copybrief add_axioms_from_char(const array_string_exprt &res, const exprt &c, array_poolt &)
303
- // NOLINTNEXTLINE
304
- // / \link add_axioms_from_char(const array_string_exprt &res, const exprt &c, array_poolt &)
305
- // / (More...) \endlink
306
- // / \param f: function application with arguments integer `|res|`, character
307
- // / pointer `&res[0]` and character `c`
308
- // / \param array_pool: pool of arrays representing strings
309
- // / \return code 0 on success
310
- std::pair<exprt, string_constraintst> add_axioms_from_char (
311
- const function_application_exprt &f,
312
- array_poolt &array_pool)
313
- {
314
- PRECONDITION (f.arguments ().size () == 3 );
315
- const array_string_exprt res =
316
- array_pool.find (f.arguments ()[1 ], f.arguments ()[0 ]);
317
- return add_axioms_from_char (res, f.arguments ()[2 ], array_pool);
318
- }
319
-
320
- // / Add axiom stating that string `res` has length 1 and the character
321
- // / it contains equals `c`.
322
- // /
323
- // / This axiom is: \f$ |{\tt res}| = 1 \land {\tt res}[0] = {\tt c} \f$.
324
- // / \param res: array of characters expression
325
- // / \param c: character expression
326
- // / \param array_pool: pool of arrays representing strings
327
- // / \return code 0 on success
328
- std::pair<exprt, string_constraintst> add_axioms_from_char (
329
- const array_string_exprt &res,
330
- const exprt &c,
331
- array_poolt &array_pool)
332
- {
333
- string_constraintst constraints;
334
- constraints.existential = {and_exprt (
335
- equal_exprt (res[0 ], c), equal_to (array_pool.get_or_create_length (res), 1 ))};
336
- return {from_integer (0 , get_return_code_type ()), std::move (constraints)};
337
- }
338
-
339
283
// / Add axioms making the return value true if the given string is a correct
340
284
// / number in the given radix
341
285
// / \param str: string expression
0 commit comments