Skip to content

Commit fcd470a

Browse files
author
Daniel Kroening
committed
only attempt to translate nondet sideeffects for Java code
1 parent 0e70863 commit fcd470a

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

src/goto-programs/convert_nondet.cpp

+13-6
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,20 @@ void convert_nondet(
136136
message_handlert &message_handler,
137137
const object_factory_parameterst &object_factory_parameters)
138138
{
139-
for(auto &goto_program : goto_functions.function_map)
139+
const namespacet ns(symbol_table);
140+
141+
for(auto &f_it : goto_functions.function_map)
140142
{
141-
convert_nondet(
142-
goto_program.second.body,
143-
symbol_table,
144-
message_handler,
145-
object_factory_parameters);
143+
const symbolt &symbol=ns.lookup(f_it.first);
144+
145+
if(symbol.mode==ID_java)
146+
{
147+
convert_nondet(
148+
f_it.second.body,
149+
symbol_table,
150+
message_handler,
151+
object_factory_parameters);
152+
}
146153
}
147154

148155
goto_functions.compute_location_numbers();

0 commit comments

Comments
 (0)