CBMC
symex_builtin_functions.cpp File Reference
+ Include dependency graph for symex_builtin_functions.cpp:

Go to the source code of this file.

Functions

static optionalt< typetc_sizeof_type_rec (const exprt &expr)
 
static exprt va_list_entry (const irep_idt &parameter, const pointer_typet &lhs_type, const namespacet &ns)
 Construct an entry for the var args array. More...
 
static irep_idt get_string_argument_rec (const exprt &src)
 
static irep_idt get_string_argument (const exprt &src, const namespacet &ns)
 
static optionalt< exprtget_va_args (const exprt::operandst &operands)
 Return an expression if operands fulfills all criteria that we expect of the expression to be a variable argument list. More...
 

Detailed Description

Symbolic Execution of ANSI-C

Definition in file symex_builtin_functions.cpp.

Function Documentation

◆ c_sizeof_type_rec()

static optionalt<typet> c_sizeof_type_rec ( const exprt expr)
inlinestatic

Definition at line 28 of file symex_builtin_functions.cpp.

◆ get_string_argument()

static irep_idt get_string_argument ( const exprt src,
const namespacet ns 
)
static

Definition at line 337 of file symex_builtin_functions.cpp.

◆ get_string_argument_rec()

static irep_idt get_string_argument_rec ( const exprt src)
static

Definition at line 306 of file symex_builtin_functions.cpp.

◆ get_va_args()

static optionalt<exprt> get_va_args ( const exprt::operandst operands)
static

Return an expression if operands fulfills all criteria that we expect of the expression to be a variable argument list.

Definition at line 346 of file symex_builtin_functions.cpp.

◆ va_list_entry()

static exprt va_list_entry ( const irep_idt parameter,
const pointer_typet lhs_type,
const namespacet ns 
)
static

Construct an entry for the var args array.

Visual Studio complicates this as we need to put immediate values or pointers in there, depending on the size of the parameter.

Definition at line 215 of file symex_builtin_functions.cpp.