18class validate_goto_modelt
33 void entry_point_exists();
47 const function_mapt &function_map;
50validate_goto_modelt::validate_goto_modelt(
54 : vm{vm}, function_map{goto_functions.function_map}
62void validate_goto_modelt::entry_point_exists()
67 "an entry point must exist");
70void validate_goto_modelt::check_called_functions()
73 [
this](
const exprt &expr) {
84 function_map.find(identifier) != function_map.end(),
85 "every function whose address is taken must be in the "
91 for(
const auto &
fun : function_map)
93 for(
const auto &
instr :
fun.second.body.instructions)
96 if(
instr.is_function_call())
108 "function call expected to be code-typed symbol expression");
115 function_map.find(identifier) != function_map.end(),
116 "every function call callee must be in the function map");
120 const auto &src =
static_cast<const exprt &
>(
instr.code());
ait supplies three of the four components needed: an abstract interpreter (in this case handling func...
dstringt has one field, an unsigned integer no which is an index into a static table of strings.
Base class for all expressions.
void visit_pre(std::function< void(exprt &)>)
A collection of goto functions.
std::map< irep_idt, goto_functiont > function_mapt
static irep_idt entry_point()
Get the identifier of the entry point to a goto model.
Goto Programs with Functions.
API to expression classes for Pointers.
const address_of_exprt & to_address_of_expr(const exprt &expr)
Cast an exprt to an address_of_exprt.
const symbol_exprt & to_symbol_expr(const exprt &expr)
Cast an exprt to a symbol_exprt.
#define DATA_CHECK(vm, condition, message)
This macro takes a condition which denotes a well-formedness criterion on goto programs,...
void validate_goto_model(const goto_functionst &goto_functions, const validation_modet vm, const goto_model_validation_optionst validation_options)