Skip to content

Commit

Permalink
Merge pull request diffblue#1656 from tautschnig/double-preproc
Browse files Browse the repository at this point in the history
Type consistent string preprocessing for floating-point expressions
  • Loading branch information
tautschnig authored Dec 8, 2017
2 parents cf187c8 + 18f9079 commit e324de6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion regression/jbmc-strings/StringValueOf09/test.desc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
THOROUGH
CORE
StringValueOf09.class
--refine-strings --string-max-length 1000
^EXIT=10$
Expand Down
2 changes: 1 addition & 1 deletion src/java_bytecode/java_string_library_preprocess.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -971,7 +971,7 @@ codet java_string_library_preprocesst::make_float_to_string_code(
exprt str=allocate_fresh_string(type.return_type(), loc, symbol_table, code);

// Expression representing 0.0
ieee_float_spect float_spec=ieee_float_spect::single_precision();
ieee_float_spect float_spec(to_floatbv_type(params[0].type()));
ieee_floatt zero_float(float_spec);
zero_float.from_float(0.0);
constant_exprt zero=zero_float.to_expr();
Expand Down

0 comments on commit e324de6

Please sign in to comment.