Go to the source code of this file.
symbol_table and the main_class to test, this function generates a new function __CPROVER__start that calls the method under tests. __cprover_initialize to the symbol_table but does not generate code for it yet. Definition at line 22 of file java_entry_point.h.
Definition at line 21 of file java_entry_point.h.
Definition at line 24 of file java_entry_point.h.
Adds __cprover_initialize to the symbol_table but does not generate code for it yet.
Definition at line 48 of file java_entry_point.cpp.
Generate a _start function for a specific function.
See java_entry_point for more details.
codets which initialise the arguments for a function. Definition at line 637 of file java_entry_point.cpp.
Get the symbol name of java.lang.Class' initializer method.
This method should initialize a Class instance with known properties of the type it represents, such as its name, whether it is abstract, or an enumeration, etc. The method may or may not exist in any particular symbol table; it is up to the caller to check. The method's Java signature is: void cproverInitializeClassLiteral( String name, boolean isAnnotation, boolean isArray, boolean isInterface, boolean isSynthetic, boolean isLocalClass, boolean isMemberClass, boolean isEnum);
Definition at line 77 of file java_entry_point.cpp.
Figures out the entry point of the code to verify.
Definition at line 548 of file java_entry_point.cpp.
function. The vector of expressions can be used as arguments for function. The code returned allocates the objects used as test arguments for the function under test (function) and non-deterministically initializes them. This code returned must be placed into the code block of the function call, before the function call. Typically this code block would be __CPROVER__start. Definition at line 321 of file java_entry_point.cpp.
Given the symbol_table and the main_class to test, this function generates a new function __CPROVER__start that calls the method under tests.
If __CPROVER__start is already in the symbol_table, it silently returns. Otherwise it finds the method under test using get_main_symbol and constructs a body for __CPROVER__start which does as follows:
code_outputt , together with other objects possibly altered by the execution of the method under test (in java_record_outputs)When assume_init_pointers_not_null is false, the generated parameter initialization code will non-deterministically set input parameters to either null or a stack-allocated object. Observe that the null/non-null setting only applies to the parameter itself, and is not propagated to other pointers that it might be necessary to initialize in the object tree rooted at the parameter. Parameter max_nondet_array_length provides the maximum length for an array used as part of the input to the method under test, and max_nondet_tree_depth defines the maximum depth of the object tree created for such inputs. This maximum depth is used in conjunction with the so-called "recursive type set" (see field recursive_set in class java_object_factoryt) to bound the depth of the object tree for the parameter. Only when
codets which initialise the arguments for a function. Definition at line 602 of file java_entry_point.cpp.
Adds the body to __CPROVER_initialize.
Definition at line 227 of file java_entry_point.cpp.