CBMC
Loading...
Searching...
No Matches
Classes | Functions
array_pool.h File Reference

Associates arrays and length to pointers, so that the string refinement can transform builtin function calls with pointer arguments to formulas over arrays. More...

#include <util/std_expr.h>
#include <util/string_expr.h>
+ Include dependency graph for array_pool.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

  Generation of fresh symbols of a given type. More...
 
class   array_poolt
  Correspondance between arrays and pointers string representations. More...
 

Functions

  Converts a struct containing a length and pointer to an array.
 
  Fetch the string_exprt corresponding to the given refined_string_exprt.
 

Detailed Description

Associates arrays and length to pointers, so that the string refinement can transform builtin function calls with pointer arguments to formulas over arrays.

Definition in file array_pool.h.

Function Documentation

◆  get_string_expr()

array_string_exprt get_string_expr ( array_pooltarray_pool,
const exprtexpr 
)

Fetch the string_exprt corresponding to the given refined_string_exprt.

Parameters
array_pool pool of arrays representing strings
expr an expression of refined string type
Returns
a string expression

Definition at line 199 of file array_pool.cpp.

◆  of_argument()

array_string_exprt of_argument ( array_pooltarray_pool,
const exprtarg 
)

Converts a struct containing a length and pointer to an array.

This allows to get a string expression from arguments of a string builtion function, because string arguments in these function calls are given as a struct containing a length and pointer to an array.

Definition at line 193 of file array_pool.cpp.

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