Skip to content

Set base_name member for __CPROVER_start #6784

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
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
1 change: 1 addition & 0 deletions jbmc/src/java_bytecode/java_entry_point.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -767,6 +767,7 @@ bool generate_java_start_function(
symbolt new_symbol;

new_symbol.name=goto_functionst::entry_point();
new_symbol.base_name = goto_functionst::entry_point();
new_symbol.type = java_method_typet({}, java_void_type());
new_symbol.value.swap(init_code);
new_symbol.mode=ID_java;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ CORE
--
"last line":[[:space:]]*$
^warning: ignoring
"function": ""
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ unreachable.c not_obviously_dead 25 31$
^SIGNAL=0$
--
^warning: ignoring
^ 35$
1 change: 1 addition & 0 deletions src/ansi-c/ansi_c_entry_point.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,7 @@ bool generate_ansi_c_start_function(
symbolt new_symbol;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Maybe a proper constructor could help.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'd just need to get #6591 approved (@kroening ?), which not only adds constructors, but also changes this line of code to use one of those constructors!


new_symbol.name=goto_functionst::entry_point();
new_symbol.base_name = goto_functionst::entry_point();
new_symbol.type = code_typet({}, void_type());
new_symbol.value.swap(init_code);
new_symbol.mode=symbol.mode;
Expand Down
1 change: 1 addition & 0 deletions src/jsil/jsil_entry_point.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ bool jsil_entry_point(
symbolt new_symbol;

new_symbol.name=goto_functionst::entry_point();
new_symbol.base_name = goto_functionst::entry_point();
new_symbol.type = code_typet({}, empty_typet());
new_symbol.value.swap(init_code);

Expand Down
1 change: 1 addition & 0 deletions src/statement-list/statement_list_entry_point.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ bool generate_statement_list_start_function(
// Add the start symbol.
symbolt start_symbol;
start_symbol.name = goto_functionst::entry_point();
start_symbol.base_name = goto_functionst::entry_point();
start_symbol.type = code_typet({}, empty_typet{});
start_symbol.value.swap(start_function_body);
start_symbol.mode = main.mode;
Expand Down
1 change: 1 addition & 0 deletions unit/analyses/ai/ai.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ SCENARIO(

symbolt start;
start.name = goto_functionst::entry_point();
start.base_name = goto_functionst::entry_point();
start.mode = ID_C;
start.type = code_typet({}, empty_typet());
start.value = make_void_call(f.symbol_expr());
Expand Down