File tree 1 file changed +24
-0
lines changed
1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change 31
31
#include < algorithm>
32
32
#include < functional>
33
33
#include < unordered_set>
34
+ #include < regex>
34
35
35
36
class patternt
36
37
{
@@ -2531,6 +2532,29 @@ void java_bytecode_convert_method(
2531
2532
safe_pointer<std::vector<irep_idt> > needed_methods,
2532
2533
safe_pointer<std::set<irep_idt> > needed_classes)
2533
2534
{
2535
+ static const std::unordered_set<std::string> methods_to_ignore
2536
+ {
2537
+ " nondetBoolean" ,
2538
+ " nondetByte" ,
2539
+ " nondetChar" ,
2540
+ " nondetShort" ,
2541
+ " nondetInt" ,
2542
+ " nondetLong" ,
2543
+ " nondetFloat" ,
2544
+ " nondetDouble" ,
2545
+ " nondetWithNull" ,
2546
+ " nondetWithoutNull" ,
2547
+ };
2548
+
2549
+ if (std::regex_match (
2550
+ id2string (class_symbol.name ),
2551
+ std::regex (" .*org\\ .cprover\\ .CProver.*" )) &&
2552
+ methods_to_ignore.find (id2string (method.name ))!=methods_to_ignore.end ())
2553
+ {
2554
+ // Ignore these methods, rely on default stubbing behaviour.
2555
+ return ;
2556
+ }
2557
+
2534
2558
java_bytecode_convert_methodt java_bytecode_convert_method (
2535
2559
symbol_table,
2536
2560
message_handler,
You can’t perform that action at this time.
0 commit comments