Skip to content

Commit 75014ac

Browse files
Daniel KroeningPetr Bauch
Daniel Kroening
authored and
Petr Bauch
committed
goto-analyzer: use display name for functions
Improved readability for languages with identifier mangling.
1 parent cac1c58 commit 75014ac

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

src/goto-analyzer/static_verifier.cpp

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ bool static_verifier(
4444

4545
forall_goto_functions(f_it, goto_model.goto_functions)
4646
{
47-
m.progress() << "Checking " << f_it->first << messaget::eom;
47+
const auto &symbol = ns.lookup(f_it->first);
48+
49+
m.progress() << "Checking " << symbol.display_name() << messaget::eom;
4850

4951
if(!f_it->second.body.has_assertion())
5052
continue;
@@ -94,7 +96,9 @@ bool static_verifier(
9496

9597
forall_goto_functions(f_it, goto_model.goto_functions)
9698
{
97-
m.progress() << "Checking " << f_it->first << messaget::eom;
99+
const auto &symbol = ns.lookup(f_it->first);
100+
101+
m.progress() << "Checking " << symbol.display_name() << messaget::eom;
98102

99103
if(!f_it->second.body.has_assertion())
100104
continue;
@@ -147,12 +151,14 @@ bool static_verifier(
147151
{
148152
forall_goto_functions(f_it, goto_model.goto_functions)
149153
{
150-
m.progress() << "Checking " << f_it->first << messaget::eom;
154+
const auto &symbol = ns.lookup(f_it->first);
155+
156+
m.progress() << "Checking " << symbol.display_name() << messaget::eom;
151157

152158
if(!f_it->second.body.has_assertion())
153159
continue;
154160

155-
out << "******** Function " << f_it->first << '\n';
161+
out << "******** Function " << symbol.display_name() << '\n';
156162

157163
forall_goto_program_instructions(i_it, f_it->second.body)
158164
{
@@ -208,7 +214,10 @@ bool static_verifier(
208214
if(!f_it->second.body.has_assertion())
209215
continue;
210216

211-
m.result() << "******** Function " << f_it->first << messaget::eom;
217+
const auto &symbol = ns.lookup(f_it->first);
218+
219+
m.result() << "******** Function " << symbol.display_name()
220+
<< messaget::eom;
212221

213222
forall_goto_program_instructions(i_it, f_it->second.body)
214223
{

0 commit comments

Comments
 (0)