@@ -30,6 +30,10 @@ Author: Matt Lewis
30
30
#include " scratch_program.h"
31
31
#include " util.h"
32
32
33
+ #ifdef DEBUG
34
+ # include < util/format_expr.h>
35
+ #endif
36
+
33
37
bool disjunctive_polynomial_accelerationt::accelerate (
34
38
path_acceleratort &accelerator)
35
39
{
@@ -58,7 +62,7 @@ bool disjunctive_polynomial_accelerationt::accelerate(
58
62
it!=modified.end ();
59
63
++it)
60
64
{
61
- std::cout << expr2c (*it, ns ) << ' \n ' ;
65
+ std::cout << format (*it) << ' \n ' ;
62
66
}
63
67
#endif
64
68
@@ -107,7 +111,7 @@ bool disjunctive_polynomial_accelerationt::accelerate(
107
111
if(utils.check_inductive(this_poly, path))
108
112
{
109
113
#ifdef DEBUG
110
- std::cout << "Fitted a polynomial for " << expr2c (target, ns )
114
+ std::cout << "Fitted a polynomial for " << format (target)
111
115
<< '\n';
112
116
#endif
113
117
polynomials[target]=poly;
@@ -145,7 +149,7 @@ bool disjunctive_polynomial_accelerationt::accelerate(
145
149
++it)
146
150
{
147
151
#ifdef DEBUG
148
- std::cout << " Trying to accelerate " << expr2c (*it, ns ) << ' \n ' ;
152
+ std::cout << " Trying to accelerate " << format (*it) << ' \n ' ;
149
153
#endif
150
154
151
155
if (it->type ().id ()==ID_bool)
@@ -205,7 +209,7 @@ bool disjunctive_polynomial_accelerationt::accelerate(
205
209
}
206
210
207
211
#ifdef DEBUG
208
- std::cout << " Failed to accelerate " << expr2c (*it, ns ) << ' \n ' ;
212
+ std::cout << " Failed to accelerate " << format (*it) << ' \n ' ;
209
213
#endif
210
214
211
215
// We weren't able to accelerate this target...
@@ -396,14 +400,14 @@ bool disjunctive_polynomial_accelerationt::fit_polynomial(
396
400
cone_of_influence (var, influence);
397
401
398
402
#ifdef DEBUG
399
- std::cout << " Fitting a polynomial for " << expr2c (var, ns )
403
+ std::cout << " Fitting a polynomial for " << format (var)
400
404
<< " , which depends on:\n " ;
401
405
402
406
for (expr_sett::iterator it=influence.begin ();
403
407
it!=influence.end ();
404
408
++it)
405
409
{
406
- std::cout << expr2c (*it, ns ) << ' \n ' ;
410
+ std::cout << format (*it) << ' \n ' ;
407
411
}
408
412
#endif
409
413
0 commit comments