File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -231,9 +231,6 @@ allocates a new string before calling a primitive.
231
231
* ` cprover_string_is_prefix ` :
232
232
\copybrief string_constraint_generatort::add_axioms_for_is_prefix
233
233
\link string_constraint_generatort::add_axioms_for_is_prefix More... \endlink
234
- * ` cprover_string_is_suffix ` :
235
- \copybrief string_constraint_generatort::add_axioms_for_is_suffix
236
- \link string_constraint_generatort::add_axioms_for_is_suffix More... \endlink
237
234
* ` cprover_string_index_of ` :
238
235
\copybrief string_constraint_generatort::add_axioms_for_index_of(const function_application_exprt &f)
239
236
\link string_constraint_generatort::add_axioms_for_index_of(const function_application_exprt &f) More... \endlink
@@ -319,6 +316,8 @@ allocates a new string before calling a primitive.
319
316
* ` cprover_string_intern ` : Never tested.
320
317
* ` cprover_string_is_empty ` :
321
318
Should use ` cprover_string_length(s) == 0 ` instead.
319
+ * ` cprover_string_is_suffix ` : Should use ` cprover_string_is_prefix ` with an
320
+ offset argument.
322
321
* ` cprover_string_empty_string ` : Can use literal of empty string instead.
323
322
* ` cprover_string_of_long ` : Should be the same as ` cprover_string_of_int ` .
324
323
* ` cprover_string_delete_char_at ` : A call to
Original file line number Diff line number Diff line change @@ -135,6 +135,7 @@ exprt string_constraint_generatort::add_axioms_for_is_empty(
135
135
// / \param swap_arguments: boolean flag telling whether the suffix is the second
136
136
// / argument or the first argument
137
137
// / \return Boolean expression `issuffix`
138
+ DEPRECATED (" should use `strings_startwith(s0, s1, s1.length - s0.length)`" )
138
139
exprt string_constraint_generatort::add_axioms_for_is_suffix(
139
140
const function_application_exprt &f, bool swap_arguments)
140
141
{
You can’t perform that action at this time.
0 commit comments