CBMC
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
string_of_int_builtin_functiont Class Reference

String creation from integer types. More...

#include <string_builtin_function.h>

+ Inheritance diagram for string_of_int_builtin_functiont:
+ Collaboration diagram for string_of_int_builtin_functiont:

Public Member Functions

 
std::optional< exprteval (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.
 
std::string  name () const override
 
  Add constraints ensuring that the value of result expression of the builtin function corresponds to the value of the function call.
 
  Constraint ensuring that the length of the strings are coherent with the function call.
 
- Public Member Functions inherited from string_creation_builtin_functiont
  Constructor from arguments of a function application.
 
 
  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.
 
- Public Member Functions inherited from string_builtin_functiont
 
 
 
 

Private Attributes

 

Additional Inherited Members

- Public Attributes inherited from string_creation_builtin_functiont
 
 
- Public Attributes inherited from string_builtin_functiont
 
- Protected Member Functions inherited from string_builtin_functiont
 
- Protected Attributes inherited from string_builtin_functiont
 

Detailed Description

String creation from integer types.

Definition at line 363 of file string_builtin_function.h.

Constructor & Destructor Documentation

◆  string_of_int_builtin_functiont()

string_of_int_builtin_functiont::string_of_int_builtin_functiont ( const exprtreturn_code,
const std::vector< exprt > &  fun_args,
array_pooltarray_pool 
)
inline

Definition at line 366 of file string_builtin_function.h.

Member Function Documentation

◆  constraints()

string_constraintst string_of_int_builtin_functiont::constraints ( string_constraint_generatort &  ,
) const
overridevirtual

Add constraints ensuring that the value of result expression of the builtin function corresponds to the value of the function call.

The constraints are only added when deemed necessary, i.e. when maybe_testing_function() returns true, or when testing function depends on the result of this function. This logic is implemented in add_constraints().

Implements string_builtin_functiont.

Definition at line 417 of file string_builtin_function.cpp.

◆  eval()

std::optional< exprt > string_of_int_builtin_functiont::eval ( const std::function< exprt(const exprt &)> &  get_value ) const
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 383 of file string_builtin_function.cpp.

◆  length_constraint()

exprt string_of_int_builtin_functiont::length_constraint ( ) const
overridevirtual

Constraint ensuring that the length of the strings are coherent with the function call.

Implements string_builtin_functiont.

Definition at line 427 of file string_builtin_function.cpp.

◆  name()

std::string string_of_int_builtin_functiont::name ( ) const
inlineoverridevirtual

Implements string_builtin_functiont.

Definition at line 382 of file string_builtin_function.h.

Member Data Documentation

◆  radix

exprt string_of_int_builtin_functiont::radix
private

Definition at line 394 of file string_builtin_function.h.


The documentation for this class was generated from the following files:

AltStyle によって変換されたページ (->オリジナル) /