Skip to content

Commit dc5ffc9

Browse files
Documentation improvements in string solver
1 parent 0fc9c5e commit dc5ffc9

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/solvers/refinement/string_refinement.cpp

+9-4
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ string_refinementt::string_refinementt(const infot &info, bool):
171171
string_refinementt::string_refinementt(const infot &info):
172172
string_refinementt(info, validate(info)) { }
173173

174-
/// display the current index set, for debugging
174+
/// Write index set to the given stream, use for debugging
175175
static void display_index_set(
176176
messaget::mstreamt &stream,
177177
const namespacet &ns,
@@ -669,6 +669,7 @@ union_find_replacet string_identifiers_resolution_from_equations(
669669
return result;
670670
}
671671

672+
/// Output a vector of equations to the given stream, used for debugging.
672673
void output_equations(
673674
std::ostream &output,
674675
const std::vector<equal_exprt> &equations,
@@ -1021,8 +1022,12 @@ void string_refinementt::add_lemma(
10211022

10221023
/// Get a model of an array and put it in a certain form.
10231024
/// If the model is incomplete or if it is too big, return no value.
1024-
/// \par parameters: an expression representing an array and an expression
1025-
/// representing an integer
1025+
/// \param super_get: function returning the valuation of an expression
1026+
/// in a model
1027+
/// \param ns: namespace
1028+
/// \param max_string_length: maximum length of strings to analyze
1029+
/// \param stream: output stream for warning messages
1030+
/// \param arr: expression of type array representing a string
10261031
/// \return an optional array expression or array_of_exprt
10271032
static optionalt<exprt> get_array(
10281033
const std::function<exprt(const exprt &)> &super_get,
@@ -1104,7 +1109,7 @@ static optionalt<exprt> get_array(
11041109

11051110
/// convert the content of a string to a more readable representation. This
11061111
/// should only be used for debugging.
1107-
/// \par parameters: a constant array expression and a integer expression
1112+
/// \param arr: a constant array expression
11081113
/// \return a string
11091114
static std::string string_of_array(const array_exprt &arr)
11101115
{

0 commit comments

Comments
 (0)