@@ -45,7 +45,11 @@ class string_transformation_builtin_functiont : public string_builtin_functiont
45
45
std::vector<exprt> args;
46
46
exprt return_code;
47
47
48
- // / Constructor from arguments of a function application
48
+ // / Constructor from arguments of a function application.
49
+ // / The arguments in `fun_args` should be in order:
50
+ // / an integer `result.length`, a character pointer `&result[0]`,
51
+ // / a string `arg1` of type refined_string_typet, and potentially some
52
+ // / arguments of primitive types.
49
53
string_transformation_builtin_functiont (
50
54
const std::vector<exprt> &fun_args,
51
55
array_poolt &array_pool);
@@ -73,6 +77,10 @@ class string_concat_char_builtin_functiont
73
77
: public string_transformation_builtin_functiont
74
78
{
75
79
public:
80
+ // / Constructor from arguments of a function application.
81
+ // / The arguments in `fun_args` should be in order:
82
+ // / an integer `result.length`, a character pointer `&result[0]`,
83
+ // / a string `arg1` of type refined_string_typet, and a character.
76
84
string_concat_char_builtin_functiont (
77
85
const std::vector<exprt> &fun_args,
78
86
array_poolt &array_pool)
@@ -100,7 +108,12 @@ class string_insertion_builtin_functiont : public string_builtin_functiont
100
108
std::vector<exprt> args;
101
109
exprt return_code;
102
110
103
- // / Constructor from arguments of a function application
111
+ // / Constructor from arguments of a function application.
112
+ // / The arguments in `fun_args` should be in order:
113
+ // / an integer `result.length`, a character pointer `&result[0]`,
114
+ // / a string `arg1` of type refined_string_typet,
115
+ // / a string `arg2` of type refined_string_typet,
116
+ // / and potentially some arguments of primitive types.
104
117
string_insertion_builtin_functiont (
105
118
const std::vector<exprt> &fun_args,
106
119
array_poolt &array_pool);
@@ -136,6 +149,12 @@ class string_concatenation_builtin_functiont final
136
149
: public string_insertion_builtin_functiont
137
150
{
138
151
public:
152
+ // / Constructor from arguments of a function application.
153
+ // / The arguments in `fun_args` should be in order:
154
+ // / an integer `result.length`, a character pointer `&result[0]`,
155
+ // / a string `arg1` of type refined_string_typet,
156
+ // / a string `arg2` of type refined_string_typet,
157
+ // / optionally followed by an integer `start` and an integer `end`.
139
158
string_concatenation_builtin_functiont (
140
159
const std::vector<exprt> &fun_args,
141
160
array_poolt &array_pool);
0 commit comments