14
14
#include < solvers/refinement/string_refinement_invariant.h>
15
15
#include < solvers/refinement/string_constraint_generator.h>
16
16
#include < util/simplify_expr.h>
17
+ #include < util/deprecate.h>
17
18
18
19
#include < cmath>
19
20
#include < solvers/floatbv/float_bv.h>
@@ -40,6 +41,7 @@ exprt string_constraint_generatort::add_axioms_from_int(
40
41
// / \deprecated should use add_axioms_from_int instead
41
42
// / \param f: function application with one long argument
42
43
// / \return a new string expression
44
+ DEPRECATED (" should use add_axioms_from_int instead" )
43
45
exprt string_constraint_generatort::add_axioms_from_long(
44
46
const function_application_exprt &f)
45
47
{
@@ -54,9 +56,10 @@ exprt string_constraint_generatort::add_axioms_from_long(
54
56
}
55
57
56
58
// / Add axioms corresponding to the String.valueOf(Z) java function.
57
- // / \deprecated this is specific to Java
59
+ // / \deprecated This is Java specific and should be implemented in Java instead
58
60
// / \param f: function application with a Boolean argument
59
61
// / \return a new string expression
62
+ DEPRECATED (" This is Java specific and should be implemented in Java instead" )
60
63
exprt string_constraint_generatort::add_axioms_from_bool(
61
64
const function_application_exprt &f)
62
65
{
@@ -68,10 +71,11 @@ exprt string_constraint_generatort::add_axioms_from_bool(
68
71
69
72
// / Add axioms stating that the returned string equals "true" when the Boolean
70
73
// / expression is true and "false" when it is false.
71
- // / \deprecated This is language dependent
74
+ // / \deprecated This is Java specific and should be implemented in Java instead
72
75
// / \param res: string expression for the result
73
76
// / \param b: Boolean expression
74
77
// / \return code 0 on success
78
+ DEPRECATED (" This is Java specific and should be implemented in Java instead" )
75
79
exprt string_constraint_generatort::add_axioms_from_bool(
76
80
const array_string_exprt &res,
77
81
const exprt &b)
@@ -200,6 +204,7 @@ exprt string_constraint_generatort::int_of_hex_char(const exprt &chr)
200
204
// / \param res: string expression for the result
201
205
// / \param i: an integer argument
202
206
// / \return code 0 on success
207
+ DEPRECATED (" use add_axioms_from_int which takes a radix argument instead" )
203
208
exprt string_constraint_generatort::add_axioms_from_int_hex(
204
209
const array_string_exprt &res,
205
210
const exprt &i)
0 commit comments