Skip to content

Commit 34ab65c

Browse files
Add function_id parameter to get_primitive_value_of_object
This is in preparation to giving the function_id to the function generating fresh java symbols.
1 parent 4d5d04a commit 34ab65c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

jbmc/src/java_bytecode/java_string_library_preprocess.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1154,6 +1154,7 @@ java_string_library_preprocesst::get_primitive_value_of_object(
11541154
const exprt &object,
11551155
irep_idt type_name,
11561156
const source_locationt &loc,
1157+
const irep_idt &function_id,
11571158
symbol_table_baset &symbol_table,
11581159
code_blockt &code)
11591160
{
@@ -1378,7 +1379,7 @@ struct_exprt java_string_library_preprocesst::make_argument_for_format(
13781379
else if(name==ID_int || name==ID_float || name==ID_char || name==ID_boolean)
13791380
{
13801381
const auto value = get_primitive_value_of_object(
1381-
arg_i, name, loc, symbol_table, code_not_null);
1382+
arg_i, name, loc, function_id, symbol_table, code_not_null);
13821383
if(value.has_value())
13831384
code_not_null.add(code_assignt(field_expr, *value), loc);
13841385
else

jbmc/src/java_bytecode/java_string_library_preprocess.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,7 @@ class java_string_library_preprocesst:public messaget
327327
const exprt &object,
328328
irep_idt type_name,
329329
const source_locationt &loc,
330+
const irep_idt &function_id,
330331
symbol_table_baset &symbol_table,
331332
code_blockt &code);
332333

0 commit comments

Comments
 (0)