Skip to content

Commit 146bb29

Browse files
svorenovaThomas Kiley
svorenova
authored and
Thomas Kiley
committed
Adding debug information to dereference type comparison
1 parent 7b9a20a commit 146bb29

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/pointer-analysis/value_set_dereference.cpp

+12
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,18 @@ bool value_set_dereferencet::dereference_type_compare(
221221
{
222222
return true;
223223
}
224+
else if(dereference_unwrapped->id() == ID_pointer &&
225+
object_unwrapped->id() != ID_pointer)
226+
{
227+
#ifdef DEBUG
228+
std::cout << "value_set_dereference: the dereference type has "
229+
"too many ID_pointer levels"
230+
<< std::endl;
231+
std::cout << " object_type: " << object_type.pretty() << std::endl;
232+
std::cout << " dereference_type: " << dereference_type.pretty()
233+
<< std::endl;
234+
#endif
235+
}
224236

225237
if(base_type_eq(object_type, dereference_type, ns))
226238
return true; // ok, they just match

0 commit comments

Comments
 (0)