CBMC
dfcc_pointer_in_ranget Class Reference

Rewrites calls to pointer_in_range predicates into calls to the library implementation. More...

#include <dfcc_pointer_in_range.h>

+ Collaboration diagram for dfcc_pointer_in_ranget:

Public Member Functions

 dfcc_pointer_in_ranget (dfcc_libraryt &library, message_handlert &message_handler)
 
void rewrite_calls (goto_programt &program, dfcc_cfg_infot cfg_info)
 Rewrites calls to pointer_in_range predicates into calls to the library implementation in the given program, passing the given write_set expression as parameter to the library function. More...
 
void rewrite_calls (goto_programt &program, goto_programt::targett first_instruction, const goto_programt::targett &last_instruction, dfcc_cfg_infot cfg_info)
 Rewrites calls to pointer_in_range predicates into calls to the library implementation in the given program between first_instruction (included) and last_instruction (excluded), passing the given write_set expression as parameter to the library function. More...
 

Protected Attributes

dfcc_librarytlibrary
 
message_handlertmessage_handler
 
messaget log
 

Detailed Description

Rewrites calls to pointer_in_range predicates into calls to the library implementation.

Definition at line 29 of file dfcc_pointer_in_range.h.

Constructor & Destructor Documentation

◆ dfcc_pointer_in_ranget()

dfcc_pointer_in_ranget::dfcc_pointer_in_ranget ( dfcc_libraryt library,
message_handlert message_handler 
)
Parameters
libraryThe contracts instrumentation library
message_handlerUsed for messages

Definition at line 21 of file dfcc_pointer_in_range.cpp.

Member Function Documentation

◆ rewrite_calls() [1/2]

void dfcc_pointer_in_ranget::rewrite_calls ( goto_programt program,
dfcc_cfg_infot  cfg_info 
)

Rewrites calls to pointer_in_range predicates into calls to the library implementation in the given program, passing the given write_set expression as parameter to the library function.

Definition at line 28 of file dfcc_pointer_in_range.cpp.

◆ rewrite_calls() [2/2]

void dfcc_pointer_in_ranget::rewrite_calls ( goto_programt program,
goto_programt::targett  first_instruction,
const goto_programt::targett last_instruction,
dfcc_cfg_infot  cfg_info 
)

Rewrites calls to pointer_in_range predicates into calls to the library implementation in the given program between first_instruction (included) and last_instruction (excluded), passing the given write_set expression as parameter to the library function.

Definition at line 39 of file dfcc_pointer_in_range.cpp.

Member Data Documentation

◆ library

dfcc_libraryt& dfcc_pointer_in_ranget::library
protected

Definition at line 54 of file dfcc_pointer_in_range.h.

◆ log

messaget dfcc_pointer_in_ranget::log
protected

Definition at line 56 of file dfcc_pointer_in_range.h.

◆ message_handler

message_handlert& dfcc_pointer_in_ranget::message_handler
protected

Definition at line 55 of file dfcc_pointer_in_range.h.


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