CBMC
symex_builtin_functions.cpp File Reference

Symbolic Execution of ANSI-C. More...

+ Include dependency graph for symex_builtin_functions.cpp:

Go to the source code of this file.

Functions

static std::optional< 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 std::optional< 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 std::optional<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 335 of file symex_builtin_functions.cpp.

◆ get_string_argument_rec()

static irep_idt get_string_argument_rec ( const exprt src)
static

Definition at line 304 of file symex_builtin_functions.cpp.

◆ get_va_args()

static std::optional<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 344 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 213 of file symex_builtin_functions.cpp.