13
13
14
14
#include < solvers/refinement/string_constraint_generator.h>
15
15
16
- // / add axioms to say that the returned string expression is equal to the
16
+ // / Add axioms to say that the returned string expression is equal to the
17
17
// / concatenation of s1 with the substring of s2 starting at index start_index
18
- // / and ending at index end_index. If start_index >= end_index, the value
19
- // / returned is s1. If end_index > |s2| and/or start_index < 0, the appended
20
- // / string will be of length end_index - start_index and padded with non-
21
- // / deterministic values.
18
+ // / and ending at index end_index.
19
+ // /
20
+ // / If start_index >= end_index, the value returned is s1.
21
+ // / If end_index > |s2| and/or start_index < 0, the appended string will be of
22
+ // / length end_index - start_index and padded with non-deterministic values.
23
+ // /
22
24
// / \param s1: string expression
23
25
// / \param s2: string expression
24
26
// / \param start_index: expression representing an integer
@@ -62,9 +64,11 @@ string_exprt string_constraint_generatort::add_axioms_for_concat_substr(
62
64
return res;
63
65
}
64
66
65
- // / add axioms to say that the returned string expression is equal to the
66
- // / concatenation of the two string expressions given as input
67
- // / \par parameters: two string expressions
67
+ // / Add axioms to say that the returned string expression is equal to the
68
+ // / concatenation of the two string expressions given as input.
69
+ // /
70
+ // / \param s1: the string expression to append to
71
+ // / \param s2: the string expression to append to the first one
68
72
// / \return a new string expression
69
73
string_exprt string_constraint_generatort::add_axioms_for_concat (
70
74
const string_exprt &s1, const string_exprt &s2)
@@ -73,13 +77,15 @@ string_exprt string_constraint_generatort::add_axioms_for_concat(
73
77
return add_axioms_for_concat_substr (s1, s2, index_zero, s2.length ());
74
78
}
75
79
76
- // / add axioms to say that the returned string expression is equal to the
77
- // / concatenation of the two string arguments of the function application. In
78
- // / case 4 arguments instead of 2 are given the last two arguments are
80
+ // / Add axioms to say that the returned string expression is equal to the
81
+ // / concatenation of the two string arguments of the function application.
82
+ // /
83
+ // / In case 4 arguments instead of 2 are given the last two arguments are
79
84
// / intepreted as a start index and last index from which we extract a substring
80
85
// / of the second argument: this is similar to the Java
81
- // / StringBuiledr.append(CharSequence s, int start, int end) method.
82
- // / \par parameters: function application with two arguments which are strings
86
+ // / StringBuilder.append(CharSequence s, int start, int end) method.
87
+ // /
88
+ // / \param f: function application with two arguments which are strings
83
89
// / \return a new string expression
84
90
string_exprt string_constraint_generatort::add_axioms_for_concat (
85
91
const function_application_exprt &f)
@@ -96,9 +102,9 @@ string_exprt string_constraint_generatort::add_axioms_for_concat(
96
102
return add_axioms_for_concat (s1, s2);
97
103
}
98
104
99
- // / add axioms corresponding to the StringBuilder.append(I) java function
100
- // / \par parameters : function application with two arguments: a string and an
101
- // / integer
105
+ // / Add axioms corresponding to the StringBuilder.append(I) java function
106
+ // / \param f : function application with two arguments: a string and an
107
+ // / integer
102
108
// / \return a new string expression
103
109
string_exprt string_constraint_generatort::add_axioms_for_concat_int (
104
110
const function_application_exprt &f)
@@ -111,8 +117,8 @@ string_exprt string_constraint_generatort::add_axioms_for_concat_int(
111
117
}
112
118
113
119
// / Add axioms corresponding to the StringBuilder.append(J) java function
114
- // / \par parameters : function application with two arguments: a string and a
115
- // / integer of type long
120
+ // / \param f : function application with two arguments: a string and an
121
+ // / integer of type long
116
122
// / \return a new string expression
117
123
string_exprt string_constraint_generatort::add_axioms_for_concat_long (
118
124
const function_application_exprt &f)
@@ -123,8 +129,8 @@ string_exprt string_constraint_generatort::add_axioms_for_concat_long(
123
129
return add_axioms_for_concat (s1, s2);
124
130
}
125
131
126
- // / add axioms corresponding to the StringBuilder.append(Z) java function
127
- // / \par parameters : function application two arguments: a string and a bool
132
+ // / Add axioms corresponding to the StringBuilder.append(Z) java function
133
+ // / \param f : function application two arguments: a string and a bool
128
134
// / \return a new string expression
129
135
string_exprt string_constraint_generatort::add_axioms_for_concat_bool (
130
136
const function_application_exprt &f)
@@ -135,9 +141,8 @@ string_exprt string_constraint_generatort::add_axioms_for_concat_bool(
135
141
return add_axioms_for_concat (s1, s2);
136
142
}
137
143
138
- // / add axioms corresponding to the StringBuilder.append(C) java function
139
- // / \par parameters: function application with two arguments: a string and a
140
- // / char
144
+ // / Add axioms corresponding to the StringBuilder.append(C) java function
145
+ // / \param f: function application with two arguments: a string and a char
141
146
// / \return a new string expression
142
147
string_exprt string_constraint_generatort::add_axioms_for_concat_char (
143
148
const function_application_exprt &f)
@@ -148,9 +153,8 @@ string_exprt string_constraint_generatort::add_axioms_for_concat_char(
148
153
return add_axioms_for_concat (s1, s2);
149
154
}
150
155
151
- // / add axioms corresponding to the StringBuilder.append(D) java function
152
- // / \par parameters: function application with two arguments: a string and a
153
- // / double
156
+ // / Add axioms corresponding to the StringBuilder.append(D) java function
157
+ // / \param f: function application with two arguments: a string and a double
154
158
// / \return a new string expression
155
159
string_exprt string_constraint_generatort::add_axioms_for_concat_double (
156
160
const function_application_exprt &f)
@@ -162,9 +166,8 @@ string_exprt string_constraint_generatort::add_axioms_for_concat_double(
162
166
return add_axioms_for_concat (s1, s2);
163
167
}
164
168
165
- // / add axioms corresponding to the StringBuilder.append(F) java function
166
- // / \par parameters: function application with two arguments: a string and a
167
- // / float
169
+ // / Add axioms corresponding to the StringBuilder.append(F) java function
170
+ // / \param f: function application with two arguments: a string and a float
168
171
// / \return a new string expression
169
172
string_exprt string_constraint_generatort::add_axioms_for_concat_float (
170
173
const function_application_exprt &f)
@@ -177,8 +180,7 @@ string_exprt string_constraint_generatort::add_axioms_for_concat_float(
177
180
}
178
181
179
182
// / Add axioms corresponding to the StringBuilder.appendCodePoint(I) function
180
- // / \par parameters: function application with two arguments: a string and a
181
- // / code point
183
+ // / \param f: function application with two arguments: a string and a code point
182
184
// / \return a new string expression
183
185
string_exprt string_constraint_generatort::add_axioms_for_concat_code_point (
184
186
const function_application_exprt &f)
0 commit comments