We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 751c040 commit 7348c74Copy full SHA for 7348c74
jbmc/src/java_bytecode/java_entry_point.cpp
@@ -303,8 +303,12 @@ exprt::operandst java_build_arguments(
303
bool is_this=(param_number==0) && parameters[param_number].get_this();
304
305
object_factory_parameterst parameters = object_factory_parameters;
306
- if(assume_init_pointers_not_null || is_main || is_this)
+ // only pointer must be non-null
307
+ if(assume_init_pointers_not_null || is_this)
308
parameters.max_nonnull_tree_depth = 1;
309
+ // in main() also the array elements of the argument must be non-null
310
+ if(is_main)
311
+ parameters.max_nonnull_tree_depth = 2;
312
313
parameters.function_id = goto_functionst::entry_point();
314
0 commit comments