Skip to content

Commit ef5bd4d

Browse files
author
Joel Allred
committed
Modifications to doxygen
1 parent 334ab00 commit ef5bd4d

File tree

1 file changed

+33
-31
lines changed

1 file changed

+33
-31
lines changed

src/solvers/refinement/string_constraint_generator_concat.cpp

+33-31
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,14 @@ Author: Romain Brenguier, [email protected]
1313

1414
#include <solvers/refinement/string_constraint_generator.h>
1515

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
1717
/// 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+
///
2224
/// \param s1: string expression
2325
/// \param s2: string expression
2426
/// \param start_index: expression representing an integer
@@ -62,9 +64,11 @@ string_exprt string_constraint_generatort::add_axioms_for_concat_substr(
6264
return res;
6365
}
6466

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
6872
/// \return a new string expression
6973
string_exprt string_constraint_generatort::add_axioms_for_concat(
7074
const string_exprt &s1, const string_exprt &s2)
@@ -73,13 +77,15 @@ string_exprt string_constraint_generatort::add_axioms_for_concat(
7377
return add_axioms_for_concat_substr(s1, s2, index_zero, s2.length());
7478
}
7579

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
7984
/// intepreted as a start index and last index from which we extract a substring
8085
/// 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
8389
/// \return a new string expression
8490
string_exprt string_constraint_generatort::add_axioms_for_concat(
8591
const function_application_exprt &f)
@@ -96,9 +102,9 @@ string_exprt string_constraint_generatort::add_axioms_for_concat(
96102
return add_axioms_for_concat(s1, s2);
97103
}
98104

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
102108
/// \return a new string expression
103109
string_exprt string_constraint_generatort::add_axioms_for_concat_int(
104110
const function_application_exprt &f)
@@ -111,8 +117,8 @@ string_exprt string_constraint_generatort::add_axioms_for_concat_int(
111117
}
112118

113119
/// 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
116122
/// \return a new string expression
117123
string_exprt string_constraint_generatort::add_axioms_for_concat_long(
118124
const function_application_exprt &f)
@@ -123,8 +129,8 @@ string_exprt string_constraint_generatort::add_axioms_for_concat_long(
123129
return add_axioms_for_concat(s1, s2);
124130
}
125131

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
128134
/// \return a new string expression
129135
string_exprt string_constraint_generatort::add_axioms_for_concat_bool(
130136
const function_application_exprt &f)
@@ -135,9 +141,8 @@ string_exprt string_constraint_generatort::add_axioms_for_concat_bool(
135141
return add_axioms_for_concat(s1, s2);
136142
}
137143

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
141146
/// \return a new string expression
142147
string_exprt string_constraint_generatort::add_axioms_for_concat_char(
143148
const function_application_exprt &f)
@@ -148,9 +153,8 @@ string_exprt string_constraint_generatort::add_axioms_for_concat_char(
148153
return add_axioms_for_concat(s1, s2);
149154
}
150155

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
154158
/// \return a new string expression
155159
string_exprt string_constraint_generatort::add_axioms_for_concat_double(
156160
const function_application_exprt &f)
@@ -162,9 +166,8 @@ string_exprt string_constraint_generatort::add_axioms_for_concat_double(
162166
return add_axioms_for_concat(s1, s2);
163167
}
164168

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
168171
/// \return a new string expression
169172
string_exprt string_constraint_generatort::add_axioms_for_concat_float(
170173
const function_application_exprt &f)
@@ -177,8 +180,7 @@ string_exprt string_constraint_generatort::add_axioms_for_concat_float(
177180
}
178181

179182
/// 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
182184
/// \return a new string expression
183185
string_exprt string_constraint_generatort::add_axioms_for_concat_code_point(
184186
const function_application_exprt &f)

0 commit comments

Comments
 (0)