Skip to content

Commit 7357f8e

Browse files
committed
Move documentation of try_get_string_data_array() to header file
1 parent 17eeece commit 7357f8e

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

src/util/simplify_expr.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1656,18 +1656,6 @@ optionalt<std::string> simplify_exprt::expr2bits(
16561656
return {};
16571657
}
16581658

1659-
/// Get char sequence from refined string expression
1660-
///
1661-
/// If `s.content()` is of the form `&id[e]`, where `id` is an array-typed
1662-
/// symbol expression (and `e` is any expression), return the value of the
1663-
/// symbol `id` (as given by the `value` field of the symbol in the namespace
1664-
/// `ns`); otherwise return an empty optional.
1665-
///
1666-
/// \param s: refined string expression
1667-
/// \param ns: namespace
1668-
/// \return array expression representing the char sequence which forms the
1669-
/// content of the refined string expression, empty optional if the content
1670-
/// cannot be determined
16711659
optionalt<std::reference_wrapper<const array_exprt>>
16721660
try_get_string_data_array(const refined_string_exprt &s, const namespacet &ns)
16731661
{

src/util/simplify_expr.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,18 @@ bool simplify(
3131
// this is the preferred interface
3232
exprt simplify_expr(exprt src, const namespacet &ns);
3333

34+
/// Get char sequence from refined string expression
35+
///
36+
/// If `s.content()` is of the form `&id[e]`, where `id` is an array-typed
37+
/// symbol expression (and `e` is any expression), return the value of the
38+
/// symbol `id` (as given by the `value` field of the symbol in the namespace
39+
/// `ns`); otherwise return an empty optional.
40+
///
41+
/// \param s: refined string expression
42+
/// \param ns: namespace
43+
/// \return array expression representing the char sequence which forms the
44+
/// content of the refined string expression, empty optional if the content
45+
/// cannot be determined
3446
optionalt<std::reference_wrapper<const array_exprt>>
3547
try_get_string_data_array(const refined_string_exprt &s, const namespacet &ns);
3648

0 commit comments

Comments
 (0)