We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 813ebd1 commit 9b60a26Copy full SHA for 9b60a26
src/java_bytecode/java_entry_point.cpp
@@ -206,8 +206,12 @@ exprt::operandst java_build_arguments(
206
bool is_this=(param_number==0) && parameters[param_number].get_this();
207
208
object_factory_parameterst parameters = object_factory_parameters;
209
- if(assume_init_pointers_not_null || is_main || is_this)
+ // only pointer must be non-null
210
+ if(assume_init_pointers_not_null || is_this)
211
parameters.max_nonnull_tree_depth = 1;
212
+ // in main() also the array elements of the argument must be non-null
213
+ if(is_main)
214
+ parameters.max_nonnull_tree_depth = 2;
215
216
// generate code to allocate and non-deterministicaly initialize the
217
// argument
0 commit comments