cprover
|
String creation from integer types. More...
#include <string_builtin_function.h>
Public Member Functions | |
string_of_int_builtin_functiont (const exprt &return_code, const std::vector< exprt > &fun_args, array_poolt &array_pool) | |
optionalt< exprt > | eval (const std::function< exprt(const exprt &)> &get_value) const override |
Given a function get_value which gives a valuation to expressions, attempt to find the result of the builtin function. More... | |
std::string | name () const override |
string_constraintst | constraints (string_constraint_generatort &generator) const override |
Add constraints ensuring that the value of result expression of the builtin function corresponds to the value of the function call. More... | |
exprt | length_constraint () const override |
Constraint ensuring that the length of the strings are coherent with the function call. More... | |
![]() | |
string_creation_builtin_functiont (const exprt &return_code, const std::vector< exprt > &fun_args, array_poolt &array_pool) | |
Constructor from arguments of a function application. More... | |
optionalt< array_string_exprt > | string_result () const override |
bool | maybe_testing_function () const override |
Tells whether the builtin function can be a testing function, that is a function that does not return a string, for instance like equals , indexOf or compare . More... | |
![]() | |
string_builtin_functiont (const string_builtin_functiont &)=delete | |
virtual | ~string_builtin_functiont ()=default |
virtual std::vector< array_string_exprt > | string_arguments () const |
Private Attributes | |
exprt | radix |
Additional Inherited Members | |
![]() | |
array_string_exprt | result |
exprt | arg |
![]() | |
exprt | return_code |
![]() | |
string_builtin_functiont (exprt return_code) | |
String creation from integer types.
Definition at line 385 of file string_builtin_function.h.
|
inline |
Definition at line 388 of file string_builtin_function.h.
|
overridevirtual |
Add constraints ensuring that the value of result expression of the builtin function corresponds to the value of the function call.
Implements string_builtin_functiont.
Definition at line 566 of file string_builtin_function.cpp.
|
overridevirtual |
Given a function get_value
which gives a valuation to expressions, attempt to find the result of the builtin function.
If not enough information can be gathered from get_value
, return an empty optional.
Implements string_builtin_functiont.
Definition at line 533 of file string_builtin_function.cpp.
|
overridevirtual |
Constraint ensuring that the length of the strings are coherent with the function call.
Implements string_builtin_functiont.
Definition at line 575 of file string_builtin_function.cpp.
|
inlineoverridevirtual |
Implements string_builtin_functiont.
Definition at line 404 of file string_builtin_function.h.
|
private |
Definition at line 415 of file string_builtin_function.h.