We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f6dab8 commit f1db4e5Copy full SHA for f1db4e5
jbmc/src/java_bytecode/java_utils.cpp
@@ -420,11 +420,13 @@ resolve_inherited_componentt::inherited_componentt get_inherited_component(
420
/// \return true if this static field is known never to be null
421
bool is_non_null_library_global(const irep_idt &symbolid)
422
{
423
- static const std::unordered_set<irep_idt> non_null_globals = {
+ static const irep_idt non_null_globals[] = {
424
"java::java.lang.System.out",
425
"java::java.lang.System.err",
426
"java::java.lang.System.in"};
427
- return non_null_globals.count(symbolid);
+ return symbolid == non_null_globals[0] ||
428
+ symbolid == non_null_globals[1] ||
429
+ symbolid == non_null_globals[2];
430
}
431
432
/// Methods belonging to the class org.cprover.CProver that should be ignored
0 commit comments