CBMC
remove_asm.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void remove_asm (goto_functionst &, symbol_tablet &)
 Replaces inline assembly instructions in the goto program (i.e., instructions of kind OTHER with a code member of type code_asmt) with an appropriate (sequence of) non-assembly goto program instruction(s). More...
 
void remove_asm (goto_modelt &)
 Replaces inline assembly instructions in the goto program (i.e., instructions of kind OTHER with a code member of type code_asmt) with an appropriate (sequence of) non-assembly goto program instruction(s). More...
 

Detailed Description

Remove 'asm' statements by compiling them into suitable standard goto program instructions

Definition in file remove_asm.h.

Function Documentation

◆ remove_asm() [1/2]

void remove_asm ( goto_functionst goto_functions,
symbol_tablet symbol_table 
)

Replaces inline assembly instructions in the goto program (i.e., instructions of kind OTHER with a code member of type code_asmt) with an appropriate (sequence of) non-assembly goto program instruction(s).

Parameters
goto_functionsThe goto functions
symbol_tableThe symbol table

Definition at line 512 of file remove_asm.cpp.

◆ remove_asm() [2/2]

void remove_asm ( goto_modelt goto_model)

Replaces inline assembly instructions in the goto program (i.e., instructions of kind OTHER with a code member of type code_asmt) with an appropriate (sequence of) non-assembly goto program instruction(s).

At present only a small number of x86 and Power instructions are supported. Unrecognised assembly instructions are ignored.

Parameters
goto_modelThe goto model

Definition at line 525 of file remove_asm.cpp.