cprover
escape_analysis.cpp
Go to the documentation of this file.
1 /*******************************************************************\
2 
3 Module: Field-insensitive, location-sensitive escape analysis
4 
5 Author: Daniel Kroening, kroening@kroening.com
6 
7 \*******************************************************************/
8 
11 
12 #include "escape_analysis.h"
13 
14 #include <util/cprover_prefix.h>
15 #include <util/pointer_expr.h>
16 
18 {
19  const irep_idt &identifier=symbol.get_identifier();
20  if(
21  identifier == CPROVER_PREFIX "memory_leak" ||
22  identifier == CPROVER_PREFIX "malloc_object" ||
23  identifier == CPROVER_PREFIX "dead_object" ||
24  identifier == CPROVER_PREFIX "deallocated")
25  {
26  return false;
27  }
28 
29  return true;
30 }
31 
33 {
34  if(lhs.id()==ID_address_of)
35  return get_function(to_address_of_expr(lhs).object());
36  else if(lhs.id()==ID_typecast)
37  return get_function(to_typecast_expr(lhs).op());
38  else if(lhs.id()==ID_symbol)
39  {
40  irep_idt identifier=to_symbol_expr(lhs).get_identifier();
41  return identifier;
42  }
43 
44  return irep_idt();
45 }
46 
48  const exprt &lhs,
49  const std::set<irep_idt> &cleanup_functions)
50 {
51  if(lhs.id()==ID_symbol)
52  {
53  const symbol_exprt &symbol_expr=to_symbol_expr(lhs);
54  if(is_tracked(symbol_expr))
55  {
56  irep_idt identifier=symbol_expr.get_identifier();
57 
58  if(cleanup_functions.empty())
59  cleanup_map.erase(identifier);
60  else
61  cleanup_map[identifier].cleanup_functions=cleanup_functions;
62  }
63  }
64 }
65 
67  const exprt &lhs,
68  const std::set<irep_idt> &alias_set)
69 {
70  if(lhs.id()==ID_symbol)
71  {
72  const symbol_exprt &symbol_expr=to_symbol_expr(lhs);
73  if(is_tracked(symbol_expr))
74  {
75  irep_idt identifier=symbol_expr.get_identifier();
76 
77  aliases.isolate(identifier);
78 
79  for(const auto &alias : alias_set)
80  {
81  aliases.make_union(identifier, alias);
82  }
83  }
84  }
85 }
86 
88  const exprt &rhs,
89  std::set<irep_idt> &cleanup_functions)
90 {
91  if(rhs.id()==ID_symbol)
92  {
93  const symbol_exprt &symbol_expr=to_symbol_expr(rhs);
94  if(is_tracked(symbol_expr))
95  {
96  irep_idt identifier=symbol_expr.get_identifier();
97 
98  const escape_domaint::cleanup_mapt::const_iterator m_it=
99  cleanup_map.find(identifier);
100 
101  if(m_it!=cleanup_map.end())
102  cleanup_functions.insert(m_it->second.cleanup_functions.begin(),
103  m_it->second.cleanup_functions.end());
104  }
105  }
106  else if(rhs.id()==ID_if)
107  {
108  get_rhs_cleanup(to_if_expr(rhs).true_case(), cleanup_functions);
109  get_rhs_cleanup(to_if_expr(rhs).false_case(), cleanup_functions);
110  }
111  else if(rhs.id()==ID_typecast)
112  {
113  get_rhs_cleanup(to_typecast_expr(rhs).op(), cleanup_functions);
114  }
115 }
116 
118  const exprt &rhs,
119  std::set<irep_idt> &alias_set)
120 {
121  if(rhs.id()==ID_symbol)
122  {
123  const symbol_exprt &symbol_expr=to_symbol_expr(rhs);
124  if(is_tracked(symbol_expr))
125  {
126  irep_idt identifier=symbol_expr.get_identifier();
127  alias_set.insert(identifier);
128 
129  for(const auto &alias : aliases)
130  if(aliases.same_set(alias, identifier))
131  alias_set.insert(alias);
132  }
133  }
134  else if(rhs.id()==ID_if)
135  {
136  get_rhs_aliases(to_if_expr(rhs).true_case(), alias_set);
137  get_rhs_aliases(to_if_expr(rhs).false_case(), alias_set);
138  }
139  else if(rhs.id()==ID_typecast)
140  {
141  get_rhs_aliases(to_typecast_expr(rhs).op(), alias_set);
142  }
143  else if(rhs.id()==ID_address_of)
144  {
145  get_rhs_aliases_address_of(to_address_of_expr(rhs).op(), alias_set);
146  }
147 }
148 
150  const exprt &rhs,
151  std::set<irep_idt> &alias_set)
152 {
153  if(rhs.id()==ID_symbol)
154  {
155  irep_idt identifier=to_symbol_expr(rhs).get_identifier();
156  alias_set.insert("&"+id2string(identifier));
157  }
158  else if(rhs.id()==ID_if)
159  {
160  get_rhs_aliases_address_of(to_if_expr(rhs).true_case(), alias_set);
161  get_rhs_aliases_address_of(to_if_expr(rhs).false_case(), alias_set);
162  }
163  else if(rhs.id()==ID_dereference)
164  {
165  }
166 }
167 
169  const irep_idt &function_from,
170  trace_ptrt trace_from,
171  const irep_idt &function_to,
172  trace_ptrt trace_to,
173  ai_baset &ai,
174  const namespacet &ns)
175 {
176  locationt from{trace_from->current_location()};
177 
178  if(has_values.is_false())
179  return;
180 
181  // upcast of ai
182  // escape_analysist &ea=
183  // static_cast<escape_analysist &>(ai);
184 
185  const goto_programt::instructiont &instruction=*from;
186 
187  switch(instruction.type)
188  {
189  case ASSIGN:
190  {
191  const code_assignt &code_assign = instruction.get_assign();
192 
193  std::set<irep_idt> cleanup_functions;
194  get_rhs_cleanup(code_assign.rhs(), cleanup_functions);
195  assign_lhs_cleanup(code_assign.lhs(), cleanup_functions);
196 
197  std::set<irep_idt> rhs_aliases;
198  get_rhs_aliases(code_assign.rhs(), rhs_aliases);
199  assign_lhs_aliases(code_assign.lhs(), rhs_aliases);
200  }
201  break;
202 
203  case DECL:
204  aliases.isolate(instruction.decl_symbol().get_identifier());
205  assign_lhs_cleanup(instruction.decl_symbol(), std::set<irep_idt>());
206  break;
207 
208  case DEAD:
209  aliases.isolate(instruction.dead_symbol().get_identifier());
210  assign_lhs_cleanup(instruction.dead_symbol(), std::set<irep_idt>());
211  break;
212 
213  case FUNCTION_CALL:
214  {
215  const exprt &function = instruction.call_function();
216 
217  if(function.id()==ID_symbol)
218  {
219  const irep_idt &identifier=to_symbol_expr(function).get_identifier();
220  if(identifier == CPROVER_PREFIX "cleanup")
221  {
222  if(instruction.call_arguments().size() == 2)
223  {
224  exprt lhs = instruction.call_arguments()[0];
225 
226  irep_idt cleanup_function =
227  get_function(instruction.call_arguments()[1]);
228 
229  if(!cleanup_function.empty())
230  {
231  // may alias other stuff
232  std::set<irep_idt> lhs_set;
233  get_rhs_aliases(lhs, lhs_set);
234 
235  for(const auto &l : lhs_set)
236  {
237  cleanup_map[l].cleanup_functions.insert(cleanup_function);
238  }
239  }
240  }
241  }
242  }
243  }
244  break;
245 
246  case END_FUNCTION:
247  // This is the edge to the call site.
248  break;
249 
250  case GOTO: // Ignoring the guard is a valid over-approximation
251  break;
252  case CATCH:
253  case THROW:
254  DATA_INVARIANT(false, "Exceptions must be removed before analysis");
255  break;
256  case SET_RETURN_VALUE:
257  DATA_INVARIANT(false, "SET_RETURN_VALUE must be removed before analysis");
258  break;
259  case ATOMIC_BEGIN: // Ignoring is a valid over-approximation
260  case ATOMIC_END: // Ignoring is a valid over-approximation
261  case LOCATION: // No action required
262  case START_THREAD: // Require a concurrent analysis at higher level
263  case END_THREAD: // Require a concurrent analysis at higher level
264  case ASSERT: // No action required
265  case ASSUME: // Ignoring is a valid over-approximation
266  case SKIP: // No action required
267  break;
268  case OTHER:
269 #if 0
270  DATA_INVARIANT(false, "Unclear what is a safe over-approximation of OTHER");
271 #endif
272  break;
273  case INCOMPLETE_GOTO:
274  case NO_INSTRUCTION_TYPE:
275  DATA_INVARIANT(false, "Only complete instructions can be analyzed");
276  break;
277  }
278 }
279 
281  std::ostream &out,
282  const ai_baset &,
283  const namespacet &) const
284 {
285  if(has_values.is_known())
286  {
287  out << has_values.to_string() << '\n';
288  return;
289  }
290 
291  for(const auto &cleanup : cleanup_map)
292  {
293  out << cleanup.first << ':';
294  for(const auto &id : cleanup.second.cleanup_functions)
295  out << ' ' << id;
296  out << '\n';
297  }
298 
300  a_it1!=aliases.end();
301  a_it1++)
302  {
303  bool first=true;
304 
306  a_it2!=aliases.end();
307  a_it2++)
308  {
309  if(aliases.is_root(a_it1) && a_it1!=a_it2 &&
310  aliases.same_set(a_it1, a_it2))
311  {
312  if(first)
313  {
314  out << "Aliases: " << *a_it1;
315  first=false;
316  }
317  out << ' ' << *a_it2;
318  }
319  }
320 
321  if(!first)
322  out << '\n';
323  }
324 }
325 
327 {
328  bool changed=has_values.is_false();
330 
331  for(const auto &cleanup : b.cleanup_map)
332  {
333  const std::set<irep_idt> &b_cleanup=cleanup.second.cleanup_functions;
334  std::set<irep_idt> &a_cleanup=cleanup_map[cleanup.first].cleanup_functions;
335  auto old_size=a_cleanup.size();
336  a_cleanup.insert(b_cleanup.begin(), b_cleanup.end());
337  if(a_cleanup.size()!=old_size)
338  changed=true;
339  }
340 
341  // kill empty ones
342 
343  for(cleanup_mapt::iterator a_it=cleanup_map.begin();
344  a_it!=cleanup_map.end();
345  ) // no a_it++
346  {
347  if(a_it->second.cleanup_functions.empty())
348  a_it=cleanup_map.erase(a_it);
349  else
350  a_it++;
351  }
352 
353  // do union
355  it!=b.aliases.end(); it++)
356  {
357  irep_idt b_root=b.aliases.find(it);
358 
359  if(!aliases.same_set(*it, b_root))
360  {
361  aliases.make_union(*it, b_root);
362  changed=true;
363  }
364  }
365 
366  // isolate non-tracked ones
367  #if 0
369  it!=aliases.end(); it++)
370  {
371  if(cleanup_map.find(*it)==cleanup_map.end())
372  aliases.isolate(it);
373  }
374  #endif
375 
376  return changed;
377 }
378 
380  const exprt &lhs,
381  std::set<irep_idt> &cleanup_functions) const
382 {
383  if(lhs.id()==ID_symbol)
384  {
385  const irep_idt &identifier=to_symbol_expr(lhs).get_identifier();
386 
387  // pointer with cleanup function?
388  const escape_domaint::cleanup_mapt::const_iterator m_it=
389  cleanup_map.find(identifier);
390 
391  if(m_it!=cleanup_map.end())
392  {
393  // count the aliases
394 
395  std::size_t count=0;
396 
397  for(const auto &alias : aliases)
398  {
399  if(alias!=identifier && aliases.same_set(alias, identifier))
400  count+=1;
401  }
402 
403  // There is an alias? Then we are still ok.
404  if(count==0)
405  {
406  cleanup_functions.insert(
407  m_it->second.cleanup_functions.begin(),
408  m_it->second.cleanup_functions.end());
409  }
410  }
411  }
412 }
413 
415  goto_functionst::goto_functiont &goto_function,
416  goto_programt::targett location,
417  const exprt &lhs,
418  const std::set<irep_idt> &cleanup_functions,
419  bool is_object,
420  const namespacet &ns)
421 {
422  source_locationt source_location=location->source_location;
423 
424  for(const auto &cleanup : cleanup_functions)
425  {
426  symbol_exprt function=ns.lookup(cleanup).symbol_expr();
427  const code_typet &function_type=to_code_type(function.type());
428 
429  goto_function.body.insert_before_swap(location);
430  code_function_callt code(function);
431  code.function().add_source_location()=source_location;
432 
433  if(function_type.parameters().size()==1)
434  {
435  typet param_type=function_type.parameters().front().type();
436  exprt arg=lhs;
437  if(is_object)
438  arg=address_of_exprt(arg);
439 
440  arg = typecast_exprt::conditional_cast(arg, param_type);
441 
442  code.arguments().push_back(arg);
443  }
444 
445  *location = goto_programt::make_function_call(code, source_location);
446  }
447 }
448 
450  goto_modelt &goto_model)
451 {
452  const namespacet ns(goto_model.symbol_table);
453 
454  for(auto &gf_entry : goto_model.goto_functions.function_map)
455  {
456  Forall_goto_program_instructions(i_it, gf_entry.second.body)
457  {
458  get_state(i_it);
459 
460  const goto_programt::instructiont &instruction=*i_it;
461 
462  if(instruction.type == ASSIGN)
463  {
464  const code_assignt &code_assign = instruction.get_assign();
465 
466  std::set<irep_idt> cleanup_functions;
467  operator[](i_it).check_lhs(code_assign.lhs(), cleanup_functions);
469  gf_entry.second,
470  i_it,
471  code_assign.lhs(),
472  cleanup_functions,
473  false,
474  ns);
475  }
476  else if(instruction.type == DEAD)
477  {
478  const auto &dead_symbol = instruction.dead_symbol();
479 
480  std::set<irep_idt> cleanup_functions1;
481 
482  const escape_domaint &d = operator[](i_it);
483 
484  const escape_domaint::cleanup_mapt::const_iterator m_it =
485  d.cleanup_map.find("&" + id2string(dead_symbol.get_identifier()));
486 
487  // does it have a cleanup function for the object?
488  if(m_it != d.cleanup_map.end())
489  {
490  cleanup_functions1.insert(
491  m_it->second.cleanup_functions.begin(),
492  m_it->second.cleanup_functions.end());
493  }
494 
495  std::set<irep_idt> cleanup_functions2;
496 
497  d.check_lhs(dead_symbol, cleanup_functions2);
498 
500  gf_entry.second, i_it, dead_symbol, cleanup_functions1, true, ns);
502  gf_entry.second, i_it, dead_symbol, cleanup_functions2, false, ns);
503 
504  for(const auto &c : cleanup_functions1)
505  {
506  (void)c;
507  i_it++;
508  }
509 
510  for(const auto &c : cleanup_functions2)
511  {
512  (void)c;
513  i_it++;
514  }
515  }
516  }
517  }
518 }
Forall_goto_program_instructions
#define Forall_goto_program_instructions(it, program)
Definition: goto_program.h:1260
dstringt
dstringt has one field, an unsigned integer no which is an index into a static table of strings.
Definition: dstring.h:37
escape_domaint
Definition: escape_analysis.h:23
typecast_exprt::conditional_cast
static exprt conditional_cast(const exprt &expr, const typet &type)
Definition: std_expr.h:1874
SET_RETURN_VALUE
@ SET_RETURN_VALUE
Definition: goto_program.h:43
escape_domaint::output
void output(std::ostream &out, const ai_baset &ai, const namespacet &ns) const final override
Definition: escape_analysis.cpp:280
ait< escape_domaint >::operator[]
const escape_domaint & operator[](locationt l) const
Find the analysis result for a given location.
Definition: ai.h:595
typet
The type of an expression, extends irept.
Definition: type.h:28
code_assignt::rhs
exprt & rhs()
Definition: std_code.h:315
to_if_expr
const if_exprt & to_if_expr(const exprt &expr)
Cast an exprt to an if_exprt.
Definition: std_expr.h:2237
goto_programt::instructiont::type
goto_program_instruction_typet type
What kind of instruction?
Definition: goto_program.h:434
escape_domaint::check_lhs
void check_lhs(const exprt &, std::set< irep_idt > &) const
Definition: escape_analysis.cpp:379
escape_domaint::get_rhs_aliases
void get_rhs_aliases(const exprt &, std::set< irep_idt > &)
Definition: escape_analysis.cpp:117
escape_domaint::assign_lhs_cleanup
void assign_lhs_cleanup(const exprt &, const std::set< irep_idt > &)
Definition: escape_analysis.cpp:47
exprt
Base class for all expressions.
Definition: expr.h:54
goto_modelt
Definition: goto_model.h:26
irep_idt
dstringt irep_idt
Definition: irep.h:37
escape_domaint::get_rhs_cleanup
void get_rhs_cleanup(const exprt &, std::set< irep_idt > &)
Definition: escape_analysis.cpp:87
goto_functionst::function_map
function_mapt function_map
Definition: goto_functions.h:29
symbol_exprt
Expression to hold a symbol (variable)
Definition: std_expr.h:80
goto_programt::instructiont::decl_symbol
const symbol_exprt & decl_symbol() const
Get the declared symbol for DECL.
Definition: goto_program.h:253
goto_programt::instructiont::call_arguments
const exprt::operandst & call_arguments() const
Get the arguments of a FUNCTION_CALL.
Definition: goto_program.h:389
ai_domain_baset::trace_ptrt
ai_history_baset::trace_ptrt trace_ptrt
Definition: ai_domain.h:74
goto_programt::instructiont::get_assign
const code_assignt & get_assign() const
Get the assignment for ASSIGN.
Definition: goto_program.h:198
tvt::is_known
bool is_known() const
Definition: threeval.h:28
namespacet
A namespacet is essentially one or two symbol tables bound together, to allow for symbol lookups in t...
Definition: namespace.h:91
goto_programt::make_function_call
static instructiont make_function_call(const code_function_callt &_code, const source_locationt &l=source_locationt::nil())
Create a function call instruction.
Definition: goto_program.h:1107
THROW
@ THROW
Definition: goto_program.h:48
namespacet::lookup
bool lookup(const irep_idt &name, const symbolt *&symbol) const override
See documentation for namespace_baset::lookup().
Definition: namespace.cpp:138
code_function_callt
codet representation of a function call statement.
Definition: std_code.h:1213
GOTO
@ GOTO
Definition: goto_program.h:32
to_code_type
const code_typet & to_code_type(const typet &type)
Cast a typet to a code_typet.
Definition: std_types.h:744
escape_domaint::aliases
aliasest aliases
Definition: escape_analysis.h:80
escape_domaint::get_function
irep_idt get_function(const exprt &)
Definition: escape_analysis.cpp:32
union_find::make_union
bool make_union(const T &a, const T &b)
Definition: union_find.h:155
DATA_INVARIANT
#define DATA_INVARIANT(CONDITION, REASON)
This condition should be used to document that assumptions that are made on goto_functions,...
Definition: invariant.h:510
escape_domaint::merge
bool merge(const escape_domaint &b, trace_ptrt from, trace_ptrt to)
Definition: escape_analysis.cpp:326
goto_programt::instructiont::dead_symbol
const symbol_exprt & dead_symbol() const
Get the symbol for DEAD.
Definition: goto_program.h:295
id2string
const std::string & id2string(const irep_idt &d)
Definition: irep.h:49
ait< escape_domaint >::get_state
virtual statet & get_state(trace_ptrt p)
Get the state for the given history, creating it with the factory if it doesn't exist.
Definition: ai.h:517
symbol_exprt::get_identifier
const irep_idt & get_identifier() const
Definition: std_expr.h:109
escape_domaint::get_rhs_aliases_address_of
void get_rhs_aliases_address_of(const exprt &, std::set< irep_idt > &)
Definition: escape_analysis.cpp:149
pointer_expr.h
API to expression classes for Pointers.
code_assignt::lhs
exprt & lhs()
Definition: std_code.h:310
union_find::find
const T & find(const_iterator it) const
Definition: union_find.h:191
union_find< irep_idt >::const_iterator
typename numbering_typet::const_iterator const_iterator
Definition: union_find.h:152
NO_INSTRUCTION_TYPE
@ NO_INSTRUCTION_TYPE
Definition: goto_program.h:31
to_symbol_expr
const symbol_exprt & to_symbol_expr(const exprt &expr)
Cast an exprt to a symbol_exprt.
Definition: std_expr.h:189
code_typet
Base type of functions.
Definition: std_types.h:539
union_find::isolate
void isolate(const_iterator it)
Definition: union_find.h:253
OTHER
@ OTHER
Definition: goto_program.h:35
irept::id
const irep_idt & id() const
Definition: irep.h:407
escape_domaint::assign_lhs_aliases
void assign_lhs_aliases(const exprt &, const std::set< irep_idt > &)
Definition: escape_analysis.cpp:66
tvt::unknown
static tvt unknown()
Definition: threeval.h:33
dstringt::empty
bool empty() const
Definition: dstring.h:88
tvt::to_string
const char * to_string() const
Definition: threeval.cpp:13
escape_analysist::instrument
void instrument(goto_modelt &)
Definition: escape_analysis.cpp:449
END_FUNCTION
@ END_FUNCTION
Definition: goto_program.h:40
SKIP
@ SKIP
Definition: goto_program.h:36
code_typet::parameters
const parameterst & parameters() const
Definition: std_types.h:655
cprover_prefix.h
tvt::is_false
bool is_false() const
Definition: threeval.h:26
code_function_callt::arguments
argumentst & arguments()
Definition: std_code.h:1258
source_locationt
Definition: source_location.h:19
goto_functionst::goto_functiont
::goto_functiont goto_functiont
Definition: goto_functions.h:27
ASSIGN
@ ASSIGN
Definition: goto_program.h:44
union_find::same_set
bool same_set(const T &a, const T &b) const
Definition: union_find.h:173
ai_domain_baset::locationt
goto_programt::const_targett locationt
Definition: ai_domain.h:73
escape_domaint::has_values
tvt has_values
Definition: escape_analysis.h:94
union_find::is_root
bool is_root(const T &a) const
Definition: union_find.h:221
CATCH
@ CATCH
Definition: goto_program.h:49
goto_modelt::goto_functions
goto_functionst goto_functions
GOTO functions.
Definition: goto_model.h:33
DECL
@ DECL
Definition: goto_program.h:45
ASSUME
@ ASSUME
Definition: goto_program.h:33
to_typecast_expr
const typecast_exprt & to_typecast_expr(const exprt &expr)
Cast an exprt to a typecast_exprt.
Definition: std_expr.h:1900
union_find::begin
iterator begin()
Definition: union_find.h:273
ai_baset
This is the basic interface of the abstract interpreter with default implementations of the core func...
Definition: ai.h:119
CPROVER_PREFIX
#define CPROVER_PREFIX
Definition: cprover_prefix.h:14
START_THREAD
@ START_THREAD
Definition: goto_program.h:37
FUNCTION_CALL
@ FUNCTION_CALL
Definition: goto_program.h:47
ATOMIC_END
@ ATOMIC_END
Definition: goto_program.h:42
union_find::end
iterator end()
Definition: union_find.h:277
to_address_of_expr
const address_of_exprt & to_address_of_expr(const exprt &expr)
Cast an exprt to an address_of_exprt.
Definition: pointer_expr.h:378
DEAD
@ DEAD
Definition: goto_program.h:46
escape_analysist::insert_cleanup
void insert_cleanup(goto_functionst::goto_functiont &, goto_programt::targett, const exprt &, const std::set< irep_idt > &, bool is_object, const namespacet &)
Definition: escape_analysis.cpp:414
ATOMIC_BEGIN
@ ATOMIC_BEGIN
Definition: goto_program.h:41
address_of_exprt
Operator to return the address of an object.
Definition: pointer_expr.h:341
exprt::add_source_location
source_locationt & add_source_location()
Definition: expr.h:235
code_assignt
A codet representing an assignment in the program.
Definition: std_code.h:293
LOCATION
@ LOCATION
Definition: goto_program.h:39
ASSERT
@ ASSERT
Definition: goto_program.h:34
goto_programt::instructiont
This class represents an instruction in the GOTO intermediate representation.
Definition: goto_program.h:178
goto_modelt::symbol_table
symbol_tablet symbol_table
Symbol table.
Definition: goto_model.h:30
escape_domaint::transform
void transform(const irep_idt &function_from, trace_ptrt trace_from, const irep_idt &function_to, trace_ptrt trace_to, ai_baset &ai, const namespacet &ns) final override
how function calls are treated: a) there is an edge from each call site to the function head b) there...
Definition: escape_analysis.cpp:168
escape_domaint::cleanup_map
cleanup_mapt cleanup_map
Definition: escape_analysis.h:91
goto_programt::instructiont::call_function
const exprt & call_function() const
Get the function that is called for FUNCTION_CALL.
Definition: goto_program.h:361
END_THREAD
@ END_THREAD
Definition: goto_program.h:38
INCOMPLETE_GOTO
@ INCOMPLETE_GOTO
Definition: goto_program.h:50
goto_programt::targett
instructionst::iterator targett
Definition: goto_program.h:646
code_function_callt::function
exprt & function()
Definition: std_code.h:1248
escape_domaint::is_tracked
bool is_tracked(const symbol_exprt &)
Definition: escape_analysis.cpp:17
escape_analysis.h
Field-insensitive, location-sensitive, over-approximative escape analysis.