Go to the documentation of this file.
33 static irep_idt reference_array_clone_id =
34 "java::array[reference].clone:()Ljava/lang/Object;";
37 const irep_idt ¤t_function = context.back().function_identifier;
39 if(context.size() >= 2 && current_function == reference_array_clone_id)
42 context.at(context.size() - 2).function_identifier;
43 if(
id2string(clone_caller).find(
".values:()[L") != std::string::npos)
49 return current_function;
72 unsigned unwind_count,
79 if(enum_function_id.
empty())
84 INVARIANT(class_id,
"Java methods should have a defining class.");
87 size_t unwinds = class_type.
get_size_t(ID_java_enum_static_unwind);
88 if(unwinds != 0 && unwind_count < unwinds)
dstringt has one field, an unsigned integer no which is an index into a static table of strings.
tvt java_enum_static_init_unwind_handler(const call_stackt &context, unsigned loop_number, unsigned unwind_count, unsigned &unwind_max, const symbol_tablet &symbol_table)
Unwind handler that special-cases the clinit (static initializer) functions of enumeration classes,...
std::size_t get_size_t(const irep_idt &name) const
const symbolt & lookup_ref(const irep_idt &name) const
Find a symbol in the symbol table for read-only access.
The type of an expression, extends irept.
typet type
Type of symbol.
optionalt< irep_idt > declaring_class(const symbolt &symbol)
Gets the identifier of the class which declared a given symbol.
bool has_suffix(const std::string &s, const std::string &suffix)
const std::string & id2string(const irep_idt &d)
#define PRECONDITION(CONDITION)
#define INVARIANT(CONDITION, REASON)
This macro uses the wrapper function 'invariant_violated_string'.
static irep_idt find_enum_function_on_stack(const call_stackt &context)
Check if we may be in a function that loops over the cases of an enumeration (note we return a candid...