Skip to content

Commit 9d976e6

Browse files
author
Daniel Kroening
authored
Merge pull request #3308 from tautschnig/show-properties-fix
show-properties: do not skip functions marked for inlining
2 parents c632625 + 3b343a7 commit 9d976e6

File tree

3 files changed

+21
-4
lines changed

3 files changed

+21
-4
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
inline int foo()
2+
{
3+
int *p;
4+
return *p;
5+
}
6+
7+
int main()
8+
{
9+
foo();
10+
return 0;
11+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CORE
2+
main.c
3+
--pointer-check --show-properties
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
^Property foo.pointer_dereference.1:$
7+
--
8+
^warning: ignoring

src/goto-programs/show_properties.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,7 @@ void show_properties_json(
152152
json_arrayt json_properties;
153153

154154
for(const auto &fct : goto_functions.function_map)
155-
if(!fct.second.is_inlined())
156-
convert_properties_json(json_properties, ns, fct.first, fct.second.body);
155+
convert_properties_json(json_properties, ns, fct.first, fct.second.body);
157156

158157
json_objectt json_result;
159158
json_result["properties"] = json_properties;
@@ -170,8 +169,7 @@ void show_properties(
170169
show_properties_json(ns, message_handler, goto_functions);
171170
else
172171
for(const auto &fct : goto_functions.function_map)
173-
if(!fct.second.is_inlined())
174-
show_properties(ns, fct.first, message_handler, ui, fct.second.body);
172+
show_properties(ns, fct.first, message_handler, ui, fct.second.body);
175173
}
176174

177175
void show_properties(

0 commit comments

Comments
 (0)