Skip to content

Commit 48b154a

Browse files
committed
Bugfix: Exclude functions without bodies from GOTO statistics.
1 parent 6bc86e1 commit 48b154a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/goto-programs/goto_statistics.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ void goto_statisticst::extend(
1515
{
1616
for(auto const &elem : functions.function_map)
1717
{
18+
if(!elem.second.body_available())
19+
continue;
1820
for(const auto &instr : elem.second.body.instructions)
1921
{
2022
switch(instr.type)

0 commit comments

Comments
 (0)