CBMC
|
Remove initializations of unused global variables. More...
#include "slice_global_inits.h"
#include <util/cprover_prefix.h>
#include <util/find_symbols.h>
#include <util/std_expr.h>
#include <analyses/call_graph.h>
#include <linking/static_lifetime_init.h>
#include "goto_functions.h"
#include "goto_model.h"
Go to the source code of this file.
Functions | |
void | slice_global_inits (goto_modelt &goto_model, message_handlert &message_handler) |
Remove initialization of global variables that are not used in any function reachable from the entry point of goto_model . More... | |
Remove initializations of unused global variables.
Definition in file slice_global_inits.cpp.
void slice_global_inits | ( | goto_modelt & | goto_model, |
message_handlert & | message_handler | ||
) |
Remove initialization of global variables that are not used in any function reachable from the entry point of goto_model
.
Warnings are reported via message_handler
.
Definition at line 26 of file slice_global_inits.cpp.