Skip to content

Commit d9c0598

Browse files
romainbrenguiersmowton
authored andcommitted
[pointer-analysis] Better debugging information in pointer analysis
1 parent b97a766 commit d9c0598

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/pointer-analysis/value_set.cpp

+7-4
Original file line numberDiff line numberDiff line change
@@ -1093,11 +1093,14 @@ void value_sett::assign(
10931093
bool is_simplified,
10941094
bool add_to_sets)
10951095
{
1096-
#if 0
1097-
std::cout << "ASSIGN LHS: " << from_expr(ns, "", lhs) << '\n';
1098-
std::cout << "ASSIGN RHS: " << from_expr(ns, "", rhs) << '\n';
1096+
#if 0
1097+
std::cout << "ASSIGN LHS: " << from_expr(ns, "", lhs) << " : "
1098+
<< from_type(ns, "", lhs.type()) << '\n';
1099+
std::cout << "ASSIGN RHS: " << from_expr(ns, "", rhs) << " : "
1100+
<< from_type(ns, "", rhs.type()) << '\n';
1101+
std::cout << "--------------------------------------------\n";
10991102
output(ns, std::cout);
1100-
#endif
1103+
#endif
11011104

11021105
const typet &type=ns.follow(lhs.type());
11031106

0 commit comments

Comments
 (0)