Skip to content

Commit 538c52b

Browse files
author
Daniel Kroening
committed
did class_hierarchyt::output
1 parent ab11447 commit 538c52b

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

src/goto-programs/class_hierarchy.cpp

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,14 @@ Function: class_hierarchyt::output
121121

122122
void class_hierarchyt::output(std::ostream &out) const
123123
{
124-
//for(const auto & c : class_map)
125-
//{
126-
//out << c.first << ": " << c.second.parent << '\n';
127-
//}
124+
for(const auto & c : class_map)
125+
{
126+
for(const auto & pa : c.second.parents)
127+
out << "Parent of " << c.first << ": "
128+
<< pa << '\n';
129+
130+
for(const auto & ch : c.second.children)
131+
out << "Child of " << c.first << ": "
132+
<< ch << '\n';
133+
}
128134
}

0 commit comments

Comments
 (0)