@@ -337,14 +337,14 @@ std::pair<exprt, string_constraintst> add_axioms_for_fractional_part(
337337// / \todo For now we only consider single precision.
338338// / \param fresh_symbol: generator of fresh symbols
339339// / \param res: string expression representing the float in scientific notation
340- // / \param f : a float expression, which is positive
340+ // / \param float_expr : a float expression, which is positive
341341// / \param array_pool: pool of arrays representing strings
342342// / \param ns: namespace
343343// / \return a integer expression different from 0 to signal an exception
344344std::pair<exprt, string_constraintst> add_axioms_from_float_scientific_notation (
345345 symbol_generatort &fresh_symbol,
346346 const array_string_exprt &res,
347- const exprt &f ,
347+ const exprt &float_expr ,
348348 array_poolt &array_pool,
349349 const namespacet &ns)
350350{
@@ -359,13 +359,13 @@ std::pair<exprt, string_constraintst> add_axioms_from_float_scientific_notation(
359359 exprt round_to_zero_expr=from_integer (ieee_floatt::ROUND_TO_ZERO, int_type);
360360
361361 // `bin_exponent` is $e$ in the formulas
362- exprt bin_exponent= get_exponent (f , float_spec);
362+ exprt bin_exponent = get_exponent (float_expr , float_spec);
363363
364364 // $m$ from the formula is a value between 0.0 and 2.0 represented
365365 // with values in the range 0x000000 0xFFFFFF so 1 corresponds to 0x800000.
366366 // `bin_significand_int` represents $m * 0x800000$
367- exprt bin_significand_int=
368- get_significand (f , float_spec, unsignedbv_typet (32 ));
367+ exprt bin_significand_int =
368+ get_significand (float_expr , float_spec, unsignedbv_typet (32 ));
369369 // `bin_significand` represents $m$ and is obtained
370370 // by multiplying `binary_significand_as_int` by
371371 // 1/0x800000 = 2^-23 = 1.1920928955078125 * 10^-7
@@ -375,7 +375,8 @@ std::pair<exprt, string_constraintst> add_axioms_from_float_scientific_notation(
375375
376376 // This is a first approximation of the exponent that will adjust
377377 // if the fraction we get is greater than 10
378- exprt dec_exponent_estimate=estimate_decimal_exponent (f, float_spec);
378+ exprt dec_exponent_estimate =
379+ estimate_decimal_exponent (float_expr, float_spec);
379380
380381 // Table for values of $2^x / 10^(floor(log_10(2)*x))$ where x=Range[0,128]
381382 std::vector<double > two_power_e_over_ten_power_d_table (
@@ -462,7 +463,7 @@ std::pair<exprt, string_constraintst> add_axioms_from_float_scientific_notation(
462463 minus_exprt fractional_part (
463464 dec_significand, floatbv_of_int_expr (dec_significand_int, float_spec));
464465
465- // shifted_float is floor(f * 1e5)
466+ // shifted_float is floor(float_expr * 1e5)
466467 exprt shifting=constant_float (1e5 , float_spec);
467468 exprt shifted_float=
468469 round_expr_to_zero (floatbv_mult (fractional_part, shifting));
@@ -471,7 +472,7 @@ std::pair<exprt, string_constraintst> add_axioms_from_float_scientific_notation(
471472 // the exponent notation.
472473 exprt max_non_exponent_notation=from_integer (100000 , shifted_float.type ());
473474
474- // fractional_part_shifted is floor(f * 100000) % 100000
475+ // fractional_part_shifted is floor(float_expr * 100000) % 100000
475476 const mod_exprt fractional_part_shifted (
476477 shifted_float, max_non_exponent_notation);
477478
0 commit comments