Skip to content

Commit 5c71733

Browse files
Comment corrections in string_constraint_generator_concat
1 parent 6518369 commit 5c71733

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/solvers/refinement/string_constraint_generator_concat.cpp

+4-5
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ 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 enforcing that the returned string expression is equal to the
1717
/// concatenation of s1 with the substring of s2 starting at index start_index
1818
/// and ending at index end_index.
1919
///
@@ -77,15 +77,15 @@ string_exprt string_constraint_generatort::add_axioms_for_concat(
7777
return add_axioms_for_concat_substr(s1, s2, index_zero, s2.length());
7878
}
7979

80-
/// Add axioms to say that the returned string expression is equal to the
80+
/// Add axioms enforcing that the returned string expression is equal to the
8181
/// concatenation of the two string arguments of the function application.
8282
///
8383
/// In case 4 arguments instead of 2 are given the last two arguments are
8484
/// intepreted as a start index and last index from which we extract a substring
8585
/// of the second argument: this is similar to the Java
8686
/// StringBuilder.append(CharSequence s, int start, int end) method.
8787
///
88-
/// \param f: function application with two arguments which are strings
88+
/// \param f: function application with two string arguments
8989
/// \return a new string expression
9090
string_exprt string_constraint_generatort::add_axioms_for_concat(
9191
const function_application_exprt &f)
@@ -151,12 +151,11 @@ string_exprt string_constraint_generatort::add_axioms_for_concat_char(
151151
return add_axioms_for_concat_char(s1, args(f, 2)[1]);
152152
}
153153

154-
/// Add axioms corresponding adding the character char at the end of
154+
/// Add axioms corresponding to adding the character char at the end of
155155
/// string_expr.
156156
/// \param string_expr: a string expression
157157
/// \param char' a character expression
158158
/// \return a new string expression
159-
160159
string_exprt string_constraint_generatort::add_axioms_for_concat_char(
161160
const string_exprt &string_expr, const exprt &char_expr)
162161
{

0 commit comments

Comments
 (0)