CBMC
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Private Member Functions | List of all members
generate_function_bodiest Class Referenceabstract

Base class for replace_function_body implementations. More...

#include <generate_function_bodies.h>

+ Inheritance diagram for generate_function_bodiest:

Public Member Functions

 
void  generate_function_body (goto_functiont &function, symbol_tablet &symbol_table, const irep_idt &function_name) const
  Replace the function body with one based on the replace_function_body class being used.
 

Protected Member Functions

virtual void  generate_function_body_impl (goto_functiont &function, symbol_tablet &symbol_table, const irep_idt &function_name) const =0
  Produce a body for the passed function At this point the body of function is always empty, and all function parameters have identifiers.
 

Private Member Functions

void  generate_parameter_names (goto_functiont &function, symbol_tablet &symbol_table, const irep_idt &function_name) const
  Generate parameter names for unnamed parameters.
 

Detailed Description

Base class for replace_function_body implementations.

Definition at line 24 of file generate_function_bodies.h.

Constructor & Destructor Documentation

◆  ~generate_function_bodiest()

virtual generate_function_bodiest::~generate_function_bodiest ( )
virtualdefault

Member Function Documentation

◆  generate_function_body()

void generate_function_bodiest::generate_function_body ( goto_functiontfunction,
symbol_tabletsymbol_table,
const irep_idtfunction_name 
) const

Replace the function body with one based on the replace_function_body class being used.

Parameters
function whose body to replace
symbol_table of the current goto program
function_name Identifier of function

Definition at line 24 of file generate_function_bodies.cpp.

◆  generate_function_body_impl()

virtual void generate_function_bodiest::generate_function_body_impl ( goto_functiontfunction,
symbol_tabletsymbol_table,
const irep_idtfunction_name 
) const
protectedpure virtual

Produce a body for the passed function At this point the body of function is always empty, and all function parameters have identifiers.

Parameters
function whose body to generate
symbol_table of the current goto program
function_name Identifier of function

Implemented in assume_false_generate_function_bodiest, assert_false_generate_function_bodiest, assert_false_then_assume_false_generate_function_bodiest, and havoc_generate_function_bodiest.

◆  generate_parameter_names()

void generate_function_bodiest::generate_parameter_names ( goto_functiontfunction,
symbol_tabletsymbol_table,
const irep_idtfunction_name 
) const
private

Generate parameter names for unnamed parameters.

CBMC expect functions to have parameter names if they are called and have a body

Definition at line 34 of file generate_function_bodies.cpp.


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

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