8
8
9
9
#include " arrays.h"
10
10
11
- #include < iostream>
12
-
13
11
#include < langapi/language_util.h>
14
12
15
13
#include < util/std_expr.h>
20
18
21
19
#include < solvers/prop/prop.h>
22
20
21
+ #ifdef DEBUG
22
+ #include < iostream>
23
+ #endif
24
+
23
25
arrayst::arrayst (
24
26
const namespacet &_ns,
25
27
propt &_prop):equalityt(_ns, _prop)
@@ -48,7 +50,9 @@ literalt arrayst::record_array_equality(
48
50
if (!base_type_eq (op0.type (), op1.type (), ns))
49
51
{
50
52
prop.error () << equality.pretty () << messaget::eom;
51
- DATA_INVARIANT (false , " record_array_equality got equality without matching types" );
53
+ DATA_INVARIANT (
54
+ false ,
55
+ " record_array_equality got equality without matching types" );
52
56
}
53
57
54
58
DATA_INVARIANT (
@@ -133,7 +137,9 @@ void arrayst::collect_arrays(const exprt &a)
133
137
if (!base_type_eq (array_type, update_expr.old ().type (), ns))
134
138
{
135
139
prop.error () << a.pretty () << messaget::eom;
136
- DATA_INVARIANT (false , " collect_arrays got 'update' without matching types" );
140
+ DATA_INVARIANT (
141
+ false ,
142
+ " collect_arrays got 'update' without matching types" );
137
143
}
138
144
139
145
arrays.make_union (a, update_expr.old ());
@@ -291,7 +297,7 @@ void arrayst::add_array_Ackermann_constraints()
291
297
{
292
298
// this is quadratic!
293
299
294
- #if 0
300
+ #ifdef DEBUG
295
301
std::cout << " arrays.size(): " << arrays.size () << ' \n ' ;
296
302
#endif
297
303
@@ -300,7 +306,7 @@ void arrayst::add_array_Ackermann_constraints()
300
306
{
301
307
const index_sett &index_set=index_map[arrays.find_number (i)];
302
308
303
- #if 0
309
+ #ifdef DEBUG
304
310
std::cout << " index_set.size(): " << index_set.size () << ' \n ' ;
305
311
#endif
306
312
0 commit comments