File tree 1 file changed +11
-5
lines changed
1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -483,6 +483,10 @@ void java_bytecode_convert_methodt::convert(
483
483
if ((!m.is_abstract ) && (!m.is_native ))
484
484
method_symbol.value =convert_instructions (m, code_type);
485
485
486
+ #ifdef DEBUG
487
+ std::cerr << method_symbol.value .pretty () << ' \n ' ;
488
+ #endif
489
+
486
490
remove_assert_after_generic_nondet (method_symbol.value );
487
491
488
492
// Replace the existing stub symbol with the real deal:
@@ -1300,12 +1304,14 @@ codet java_bytecode_convert_methodt::convert_instructions(
1300
1304
results[0 ].add_source_location ()=i_it->source_location ;
1301
1305
}
1302
1306
1303
- else if (statement==" invokestatic" &&
1304
- has_prefix (id2string (arg0.get (ID_identifier)),
1305
- " java::org.cprover.CProver.nondetWith" ) &&
1306
- !working_set.empty ())
1307
+ else if (
1308
+ statement==" invokestatic" &&
1309
+ std::regex_match (
1310
+ id2string (arg0.get (ID_identifier)),
1311
+ std::regex (
1312
+ " .*org.cprover.CProver.(nondetWithNull|nondetWithoutNull).*" )) &&
1313
+ !working_set.empty ())
1307
1314
{
1308
- // Currently unused.
1309
1315
const auto working_set_begin=working_set.begin ();
1310
1316
const auto next_address=address_map.find (*working_set_begin);
1311
1317
assert (next_address!=address_map.end ());
You can’t perform that action at this time.
0 commit comments