33 if(goto_function.is_hidden())
37 if(
function.name.starts_with(
"java::array["))
42 !goto_function.body.instructions.empty() &&
43 goto_function.body.instructions.front().source_location().is_built_in())
60 return function.location.get_file() ==
file_id;
86 std::smatch string_matcher;
87 return std::regex_match(
105 unsigned long count_assignments = 0, count_goto = 0;
106 for(
const auto &instruction : goto_function.body.instructions)
108 if(instruction.is_goto())
110 if((++count_goto) >= 2)
113 else if(instruction.is_assign())
115 if((++count_assignments) >= 5)
118 else if(instruction.is_decl())
bool operator()(const symbolt &identifier, const goto_functionst::goto_functiont &goto_function) const override
Filter out all functions except those defined in the file that is given in the constructor.
::goto_functiont goto_functiont
static irep_idt entry_point()
Get the identifier of the entry point to a goto model.
bool operator()(const symbolt &identifier, const goto_functionst::goto_functiont &goto_function) const override
Filter functions whose name matches the regex.
bool operator()(const symbolt &identifier, const goto_functionst::goto_functiont &goto_function) const override
Filter out functions that are not considered provided by the user.
bool operator()(const source_locationt &) const override
Filter goals at source locations considered internal.
bool operator()(const symbolt &identifier, const goto_functionst::goto_functiont &goto_function) const override
Filter out all functions except for one particular function given in the constructor.
const irep_idt & get_file() const
static bool is_built_in(const std::string &s)
bool operator()(const symbolt &identifier, const goto_functionst::goto_functiont &goto_function) const override
Call a goto_program non-trivial if it has:
Filters for the Coverage Instrumentation.
const std::string & id2string(const irep_idt &d)
#define INITIALIZE_FUNCTION