Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions regression/cbmc/builtin-function-hidden-flag/test.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#include <assert.h>
#include <stdlib.h>

int main()
{
char *x = malloc(1);
assert(0);
}
10 changes: 10 additions & 0 deletions regression/cbmc/builtin-function-hidden-flag/test.desc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
CORE
test.c
--json-ui
activate-multi-line-match
^EXIT=10$
^SIGNAL=0$
"function": \{[^}]*"displayName": "malloc",[^}]*"sourceLocation": \{[^}]*\}[^}]*\}[^}]*"hidden": false[^}]*"sourceLocation": \{[^}]*\}[^}]*"stepType": "function-call"
"function": \{[^}]*"displayName": "malloc",[^}]*"sourceLocation": \{[^}]*\}[^}]*\}[^}]*"hidden": false[^}]*"sourceLocation": \{[^}]*\}[^}]*"stepType": "function-return"
--
^warning: ignoring
10 changes: 10 additions & 0 deletions regression/cbmc/builtin-function-hidden-flag/test_xml.desc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
CORE
test.c
--xml-ui
activate-multi-line-match
^EXIT=10$
^SIGNAL=0$
<function_call hidden="false" step_nr="\d+" thread="0">\n\s*<function display_name="malloc" identifier="malloc"
<function_return hidden="false" step_nr="\d+" thread="0">\n\s*<function display_name="malloc" identifier="malloc"
--
^warning: ignoring
2 changes: 1 addition & 1 deletion src/goto-symex/symex_function_call.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ void goto_symext::symex_function_call_post_clean(
frame.call_lhs = cleaned_lhs;
frame.end_of_function = --goto_function.body.instructions.end();
frame.function_identifier=identifier;
frame.hidden_function = goto_function.is_hidden();
frame.hidden_function = hidden;

// set up the 'return value symbol' when needed
if(frame.call_lhs.is_not_nil())
Expand Down
Loading