We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d2d6c4 commit 4fd14b2Copy full SHA for 4fd14b2
src/java_bytecode/java_object_factory.cpp
@@ -1043,15 +1043,12 @@ void java_object_factoryt::gen_nondet_struct_init(
1043
if(const auto func = symbol_table.lookup(validate_method_name))
1044
{
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();
+ code_function_callt fun_call;
+ fun_call.function() = func->symbol_expr();
+ if(type.has_this())
1050
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";
+
+ assignments.add(fun_call);
1055
}
1056
1057
0 commit comments