File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -248,6 +248,17 @@ bool ci_lazy_methodst::operator()(
248
248
}
249
249
}
250
250
251
+ // cproverNondetInitialize has to be force-loaded for mocks to return valid
252
+ // objects (objects which satisfy invariants specified in the
253
+ // cproverNondetInitialize method)
254
+ for (const auto &class_name : instantiated_classes)
255
+ {
256
+ const irep_idt cprover_validate =
257
+ id2string (class_name) + " .cproverNondetInitialize:()V" ;
258
+ if (symbol_table.symbols .count (cprover_validate))
259
+ methods_already_populated.insert (cprover_validate);
260
+ }
261
+
251
262
// Remove symbols for methods that were declared but never used:
252
263
symbol_tablet keep_symbols;
253
264
// Manually keep @inflight_exception, as it is unused at this stage
You can’t perform that action at this time.
0 commit comments