Skip to content

Commit 0af2cf2

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 6c58e38 commit 0af2cf2

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
@@ -326,6 +326,7 @@ class java_string_library_preprocesst:public messaget
326326
const exprt &object,
327327
irep_idt type_name,
328328
const source_locationt &loc,
329+
const irep_idt &function_id,
329330
symbol_table_baset &symbol_table,
330331
code_blockt &code);
331332

0 commit comments

Comments
 (0)