Skip to content

Commit 5a0d6b4

Browse files
Rename first_index in array_expr
This more accurately describe what this object is.
1 parent d03b8cc commit 5a0d6b4

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/java_bytecode/java_object_factory.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -596,12 +596,12 @@ codet initialize_nondet_string_struct(
596596

597597
struct_expr.copy_to_operands(length_expr);
598598

599-
const address_of_exprt first_index(
599+
const address_of_exprt array_pointer(
600600
index_exprt(data_expr, from_integer(0, java_int_type())));
601-
struct_expr.copy_to_operands(first_index);
601+
struct_expr.copy_to_operands(array_pointer);
602602

603603
add_pointer_to_array_association(
604-
first_index, data_expr, symbol_table, loc, code);
604+
array_pointer, data_expr, symbol_table, loc, code);
605605

606606
add_array_to_length_association(
607607
data_expr, length_expr, symbol_table, loc, code);

src/java_bytecode/java_string_library_preprocess.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -544,16 +544,16 @@ refined_string_exprt java_string_library_preprocesst::make_nondet_string_expr(
544544
exprt nondet_array_expr =
545545
make_nondet_infinite_char_array(symbol_table, loc, code);
546546

547-
address_of_exprt first_index(
547+
address_of_exprt array_pointer(
548548
index_exprt(nondet_array_expr, from_integer(0, java_int_type())));
549549

550550
add_pointer_to_array_association(
551-
first_index, nondet_array_expr, symbol_table, loc, code);
551+
array_pointer, nondet_array_expr, symbol_table, loc, code);
552552

553553
add_array_to_length_association(
554554
nondet_array_expr, str.length(), symbol_table, loc, code);
555555

556-
code.add(code_assignt(str.content(), first_index));
556+
code.add(code_assignt(str.content(), array_pointer));
557557

558558
return refined_string_exprt(str.length(), str.content());
559559
}

0 commit comments

Comments
 (0)