@@ -11,15 +11,14 @@ Author: Peter Schrammel
11
11
12
12
#include " constant_propagator.h"
13
13
14
- #include < goto-programs/adjust_float_expressions.h>
15
-
16
14
#ifdef DEBUG
17
15
#include < iostream>
18
16
#include < util/format_expr.h>
19
17
#endif
20
18
21
19
#include < util/arith_tools.h>
22
20
#include < util/c_types.h>
21
+ #include < util/config.h>
23
22
#include < util/cprover_prefix.h>
24
23
#include < util/expr_util.h>
25
24
#include < util/ieee_float.h>
@@ -662,7 +661,7 @@ bool constant_propagator_domaint::partial_evaluate(
662
661
// if the current rounding mode is top we can
663
662
// still get a non-top result by trying all rounding
664
663
// modes and checking if the results are all the same
665
- if (!known_values.is_constant (rounding_mode_identifier (), ns))
664
+ if (!known_values.is_constant (config. rounding_mode_identifier (), ns))
666
665
return partial_evaluate_with_all_rounding_modes (known_values, expr, ns);
667
666
668
667
return replace_constants_and_simplify (known_values, expr, ns);
@@ -692,7 +691,7 @@ bool constant_propagator_domaint::partial_evaluate_with_all_rounding_modes(
692
691
{
693
692
valuest tmp_values = known_values;
694
693
tmp_values.set_to (
695
- symbol_exprt (rounding_mode_identifier (), integer_typet ()),
694
+ symbol_exprt (config. rounding_mode_identifier (), integer_typet ()),
696
695
from_integer (rounding_modes[i], integer_typet ()));
697
696
exprt result = expr;
698
697
if (replace_constants_and_simplify (tmp_values, result, ns))
0 commit comments