File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -1043,15 +1043,12 @@ void java_object_factoryt::gen_nondet_struct_init(
1043
1043
if (const auto func = symbol_table.lookup (validate_method_name))
1044
1044
{
1045
1045
const code_typet &type = to_code_type (func->type );
1046
- if (type.has_this () && type.parameters ().size () == 1 )
1047
- {
1048
- code_function_callt fun_call;
1049
- fun_call.function () = func->symbol_expr ();
1046
+ code_function_callt fun_call;
1047
+ fun_call.function () = func->symbol_expr ();
1048
+ if (type.has_this ())
1050
1049
fun_call.arguments ().push_back (address_of_exprt (expr));
1051
- assignments.add (fun_call);
1052
- }
1053
- else
1054
- throw " cproverNondetInitialize should be a non-static function" ;
1050
+
1051
+ assignments.add (fun_call);
1055
1052
}
1056
1053
}
1057
1054
You can’t perform that action at this time.
0 commit comments