cprover
add_failed_symbols.h
Go to the documentation of this file.
1 /*******************************************************************\
2 
3 Module: Pointer Dereferencing
4 
5 Author: Daniel Kroening, kroening@kroening.com
6 
7 \*******************************************************************/
8 
11 
12 #ifndef CPROVER_POINTER_ANALYSIS_ADD_FAILED_SYMBOLS_H
13 #define CPROVER_POINTER_ANALYSIS_ADD_FAILED_SYMBOLS_H
14 
15 #include <util/irep.h>
16 
17 class symbol_table_baset;
18 class symbolt;
19 class exprt;
20 class namespacet;
21 class symbol_exprt;
22 
23 void add_failed_symbols(symbol_table_baset &symbol_table);
24 
26  const symbolt &symbol, symbol_table_baset &symbol_table);
27 
28 irep_idt failed_symbol_id(const irep_idt &identifier);
29 
31  const symbol_exprt &expr,
32  const namespacet &ns);
33 
34 #endif // CPROVER_POINTER_ANALYSIS_ADD_FAILED_SYMBOLS_H
irep_idt failed_symbol_id(const irep_idt &identifier)
Get the name of the special symbol used to denote an unknown referee pointed to by a given pointer-ty...
void add_failed_symbol_if_needed(const symbolt &symbol, symbol_table_baset &symbol_table)
Create a failed-dereference symbol for the given base symbol if it is pointer-typed,...
Symbol table entry.
Definition: symbol.h:27
exprt get_failed_symbol(const symbol_exprt &expr, const namespacet &ns)
Get the failed-dereference symbol for the given symbol.
A namespacet is essentially one or two symbol tables bound together, to allow for symbol lookups in t...
Definition: namespace.h:93
dstringt has one field, an unsigned integer no which is an index into a static table of strings.
Definition: dstring.h:35
Base class for all expressions.
Definition: expr.h:54
The symbol table base class interface.
Expression to hold a symbol (variable)
Definition: std_expr.h:143
void add_failed_symbols(symbol_table_baset &symbol_table)
Create a failed-dereference symbol for all symbols in the given table that need one (i....