Skip to content

Commit 4c2f940

Browse files
committed
Do not shadow parameter "f"
Rename container elements to "positive" and "negative."
1 parent fcbc914 commit 4c2f940

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/solvers/refinement/string_constraint_generator_float.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -422,10 +422,12 @@ std::pair<exprt, string_constraintst> add_axioms_from_float_scientific_notation(
422422
int_type);
423423
array_exprt conversion_factor_table(
424424
array_typet(float_type, conversion_factor_table_size));
425-
for(const auto &f : two_power_e_over_ten_power_d_table_negatives)
426-
conversion_factor_table.copy_to_operands(constant_float(f, float_spec));
427-
for(const auto &f : two_power_e_over_ten_power_d_table)
428-
conversion_factor_table.copy_to_operands(constant_float(f, float_spec));
425+
for(const auto &negative : two_power_e_over_ten_power_d_table_negatives)
426+
conversion_factor_table.copy_to_operands(
427+
constant_float(negative, float_spec));
428+
for(const auto &positive : two_power_e_over_ten_power_d_table)
429+
conversion_factor_table.copy_to_operands(
430+
constant_float(positive, float_spec));
429431

430432
// The index in the table, corresponding to exponent e is e+128
431433
plus_exprt shifted_index(bin_exponent, from_integer(128, int_type));

0 commit comments

Comments
 (0)