@@ -453,10 +453,10 @@ void value_sett::get_value_set_rec(
453
453
const typet &original_type,
454
454
const namespacet &ns) const
455
455
{
456
- # if 0
456
+ # ifdef DEBUG
457
457
std::cout << " GET_VALUE_SET_REC EXPR: " << format (expr) << " \n " ;
458
458
std::cout << " GET_VALUE_SET_REC SUFFIX: " << suffix << ' \n ' ;
459
- #endif
459
+ #endif
460
460
461
461
const typet &expr_type=ns.follow (expr.type ());
462
462
@@ -1013,10 +1013,10 @@ void value_sett::get_reference_set_rec(
1013
1013
object_mapt &dest,
1014
1014
const namespacet &ns) const
1015
1015
{
1016
- # if 0
1016
+ # ifdef DEBUG
1017
1017
std::cout << " GET_REFERENCE_SET_REC EXPR: " << format (expr)
1018
1018
<< ' \n ' ;
1019
- #endif
1019
+ #endif
1020
1020
1021
1021
if (expr.id ()==ID_symbol ||
1022
1022
expr.id ()==ID_dynamic_object ||
@@ -1037,10 +1037,12 @@ void value_sett::get_reference_set_rec(
1037
1037
1038
1038
get_value_set_rec (pointer, dest, " " , pointer.type (), ns);
1039
1039
1040
- #if 0
1041
- for(expr_sett::const_iterator it=value_set.begin();
1042
- it!=value_set.end(); it++)
1043
- std::cout << "VALUE_SET: " << format(*it) << '\n';
1040
+ #ifdef DEBUG
1041
+ for (const auto &map_entry : dest.read ())
1042
+ {
1043
+ std::cout << " VALUE_SET: " << format (object_numbering[map_entry.first ])
1044
+ << ' \n ' ;
1045
+ }
1044
1046
#endif
1045
1047
1046
1048
return ;
@@ -1169,13 +1171,13 @@ void value_sett::assign(
1169
1171
bool is_simplified,
1170
1172
bool add_to_sets)
1171
1173
{
1172
- #if 0
1174
+ #ifdef DEBUG
1173
1175
std::cout << " ASSIGN LHS: " << format (lhs) << " : "
1174
1176
<< format (lhs.type ()) << ' \n ' ;
1175
1177
std::cout << " ASSIGN RHS: " << format (rhs) << " : "
1176
1178
<< format (rhs.type ()) << ' \n ' ;
1177
1179
std::cout << " --------------------------------------------\n " ;
1178
- output(ns, std::cout);
1180
+ output (std::cout);
1179
1181
#endif
1180
1182
1181
1183
const typet &type=ns.follow (lhs.type ());
@@ -1304,7 +1306,7 @@ void value_sett::assign_rec(
1304
1306
const namespacet &ns,
1305
1307
bool add_to_sets)
1306
1308
{
1307
- # if 0
1309
+ # ifdef DEBUG
1308
1310
std::cout << " ASSIGN_REC LHS: " << format (lhs) << ' \n ' ;
1309
1311
std::cout << " ASSIGN_REC LHS ID: " << lhs.id () << ' \n ' ;
1310
1312
std::cout << " ASSIGN_REC SUFFIX: " << suffix << ' \n ' ;
@@ -1315,7 +1317,7 @@ void value_sett::assign_rec(
1315
1317
std::cout << " ASSIGN_REC RHS: " <<
1316
1318
format (object_numbering[it->first ]) << ' \n ' ;
1317
1319
std::cout << ' \n ' ;
1318
- #endif
1320
+ #endif
1319
1321
1320
1322
if (lhs.id ()==ID_symbol)
1321
1323
{
0 commit comments