cprover
ansi_c_entry_point.cpp
Go to the documentation of this file.
1 /*******************************************************************\
2 
3 Module:
4 
5 Author: Daniel Kroening, kroening@kroening.com
6 
7 \*******************************************************************/
8 
9 #include "ansi_c_entry_point.h"
10 
11 #include <util/arith_tools.h>
12 #include <util/c_types.h>
13 #include <util/config.h>
14 #include <util/string_constant.h>
15 
17 
19 
21 
23  const code_typet::parameterst &parameters,
24  code_blockt &init_code,
25  symbol_tablet &symbol_table,
26  const c_object_factory_parameterst &object_factory_parameters)
27 {
28  exprt::operandst main_arguments;
29  main_arguments.resize(parameters.size());
30 
31  for(std::size_t param_number=0;
32  param_number<parameters.size();
33  param_number++)
34  {
35  const code_typet::parametert &p=parameters[param_number];
36  const irep_idt base_name=p.get_base_name().empty()?
37  ("argument#"+std::to_string(param_number)):p.get_base_name();
38 
39  main_arguments[param_number] = c_nondet_symbol_factory(
40  init_code,
41  symbol_table,
42  base_name,
43  p.type(),
44  p.source_location(),
45  object_factory_parameters,
47  }
48 
49  return main_arguments;
50 }
51 
53  const symbolt &function,
54  code_blockt &init_code,
55  symbol_tablet &symbol_table)
56 {
57  bool has_return_value =
58  to_code_type(function.type).return_type() != void_type();
59 
60  if(has_return_value)
61  {
62  const symbolt &return_symbol = symbol_table.lookup_ref("return'");
63 
64  // record return value
65  init_code.add(code_outputt{
66  return_symbol.base_name, return_symbol.symbol_expr(), function.location});
67  }
68 
69  #if 0
70  std::size_t i=0;
71 
72  for(const auto &p : parameters)
73  {
74  if(p.get_identifier().empty())
75  continue;
76 
77  irep_idt identifier=p.get_identifier();
78 
79  const symbolt &symbol=symbol_table.lookup(identifier);
80 
81  if(symbol.type.id()==ID_pointer)
82  {
83  codet output(ID_output);
84  output.operands().resize(2);
85 
86  output.op0()=
90  from_integer(0, index_type())));
91  output.op1()=symbol.symbol_expr();
92  output.add_source_location()=p.source_location();
93 
94  init_code.add(std::move(output));
95  }
96 
97  i++;
98  }
99  #endif
100 }
101 
103  symbol_tablet &symbol_table,
104  message_handlert &message_handler,
105  const c_object_factory_parameterst &object_factory_parameters)
106 {
107  // check if entry point is already there
108  if(symbol_table.symbols.find(goto_functionst::entry_point())!=
109  symbol_table.symbols.end())
110  return false; // silently ignore
111 
112  irep_idt main_symbol;
113 
114  // find main symbol, if any is given
115  if(config.main.has_value())
116  {
117  std::list<irep_idt> matches;
118 
120  it, symbol_table.symbol_base_map, config.main.value())
121  {
122  // look it up
123  symbol_tablet::symbolst::const_iterator s_it=
124  symbol_table.symbols.find(it->second);
125 
126  if(s_it==symbol_table.symbols.end())
127  continue;
128 
129  if(s_it->second.type.id()==ID_code)
130  matches.push_back(it->second);
131  }
132 
133  if(matches.empty())
134  {
135  messaget message(message_handler);
136  message.error() << "main symbol '" << config.main.value() << "' not found"
137  << messaget::eom;
138  return true; // give up
139  }
140 
141  if(matches.size()>=2)
142  {
143  messaget message(message_handler);
144  message.error() << "main symbol '" << config.main.value()
145  << "' is ambiguous" << messaget::eom;
146  return true;
147  }
148 
149  main_symbol=matches.front();
150  }
151  else
152  main_symbol=ID_main;
153 
154  // look it up
155  symbol_tablet::symbolst::const_iterator s_it=
156  symbol_table.symbols.find(main_symbol);
157 
158  if(s_it==symbol_table.symbols.end())
159  return false; // give up silently
160 
161  const symbolt &symbol=s_it->second;
162 
163  // check if it has a body
164  if(symbol.value.is_nil())
165  {
166  messaget message(message_handler);
167  message.error() << "main symbol '" << id2string(main_symbol)
168  << "' has no body" << messaget::eom;
169  return false; // give up
170  }
171 
172  static_lifetime_init(symbol_table, symbol.location);
173 
175  symbol, symbol_table, message_handler, object_factory_parameters);
176 }
177 
188  const symbolt &symbol,
189  symbol_tablet &symbol_table,
190  message_handlert &message_handler,
191  const c_object_factory_parameterst &object_factory_parameters)
192 {
193  PRECONDITION(!symbol.value.is_nil());
194  code_blockt init_code;
195 
196  // add 'HIDE' label
197  init_code.add(code_labelt(CPROVER_PREFIX "HIDE", code_skipt()));
198 
199  // build call to initialization function
200 
201  {
202  symbol_tablet::symbolst::const_iterator init_it=
203  symbol_table.symbols.find(INITIALIZE_FUNCTION);
204 
205  if(init_it==symbol_table.symbols.end())
206  {
207  messaget message(message_handler);
208  message.error() << "failed to find " INITIALIZE_FUNCTION " symbol"
209  << messaget::eom;
210  return true;
211  }
212 
213  code_function_callt call_init(init_it->second.symbol_expr());
214  call_init.add_source_location()=symbol.location;
215 
216  init_code.add(std::move(call_init));
217  }
218 
219  // build call to main function
220 
221  code_function_callt call_main(symbol.symbol_expr());
222  call_main.add_source_location()=symbol.location;
223  call_main.function().add_source_location()=symbol.location;
224 
225  if(to_code_type(symbol.type).return_type() != void_type())
226  {
227  auxiliary_symbolt return_symbol;
228  return_symbol.mode=ID_C;
229  return_symbol.is_static_lifetime=false;
230  return_symbol.name="return'";
231  return_symbol.base_name = "return'";
232  return_symbol.type=to_code_type(symbol.type).return_type();
233 
234  symbol_table.add(return_symbol);
235  call_main.lhs()=return_symbol.symbol_expr();
236  }
237 
238  const code_typet::parameterst &parameters=
239  to_code_type(symbol.type).parameters();
240 
241  if(symbol.name==ID_main)
242  {
243  if(parameters.empty())
244  {
245  // ok
246  }
247  else if(parameters.size()==2 || parameters.size()==3)
248  {
249  namespacet ns(symbol_table);
250 
251  {
252  symbolt argc_symbol;
253 
254  argc_symbol.base_name = "argc'";
255  argc_symbol.name = "argc'";
256  argc_symbol.type = signed_int_type();
257  argc_symbol.is_static_lifetime = true;
258  argc_symbol.is_lvalue = true;
259  argc_symbol.mode = ID_C;
260 
261  auto r = symbol_table.insert(argc_symbol);
262  if(!r.second && r.first != argc_symbol)
263  {
264  messaget message(message_handler);
265  message.error() << "argc already exists but is not usable"
266  << messaget::eom;
267  return true;
268  }
269  }
270 
271  const symbolt &argc_symbol = ns.lookup("argc'");
272 
273  {
274  // we make the type of this thing an array of pointers
275  // need to add one to the size -- the array is terminated
276  // with NULL
277  const exprt one_expr = from_integer(1, argc_symbol.type);
278  const plus_exprt size_expr(argc_symbol.symbol_expr(), one_expr);
279  const array_typet argv_type(pointer_type(char_type()), size_expr);
280 
281  symbolt argv_symbol;
282 
283  argv_symbol.base_name = "argv'";
284  argv_symbol.name = "argv'";
285  argv_symbol.type = argv_type;
286  argv_symbol.is_static_lifetime = true;
287  argv_symbol.is_lvalue = true;
288  argv_symbol.mode = ID_C;
289 
290  auto r = symbol_table.insert(argv_symbol);
291  if(!r.second && r.first != argv_symbol)
292  {
293  messaget message(message_handler);
294  message.error() << "argv already exists but is not usable"
295  << messaget::eom;
296  return true;
297  }
298  }
299 
300  const symbolt &argv_symbol=ns.lookup("argv'");
301 
302  {
303  // assume argc is at least one
304  exprt one=from_integer(1, argc_symbol.type);
305 
307  argc_symbol.symbol_expr(), ID_ge, std::move(one));
308 
309  init_code.add(code_assumet(std::move(ge)));
310  }
311 
312  {
313  // assume argc is at most MAX/8-1
314  mp_integer upper_bound=
316 
317  exprt bound_expr=from_integer(upper_bound, argc_symbol.type);
318 
320  argc_symbol.symbol_expr(), ID_le, std::move(bound_expr));
321 
322  init_code.add(code_assumet(std::move(le)));
323  }
324 
325  // record argc as an input
326  init_code.add(code_inputt{"argc", argc_symbol.symbol_expr()});
327 
328  if(parameters.size()==3)
329  {
330  {
331  symbolt envp_size_symbol;
332  envp_size_symbol.base_name = "envp_size'";
333  envp_size_symbol.name = "envp_size'";
334  envp_size_symbol.type = size_type();
335  envp_size_symbol.is_static_lifetime = true;
336  envp_size_symbol.mode = ID_C;
337 
338  if(!symbol_table.insert(std::move(envp_size_symbol)).second)
339  {
340  messaget message(message_handler);
341  message.error()
342  << "failed to insert envp_size symbol" << messaget::eom;
343  return true;
344  }
345  }
346 
347  const symbolt &envp_size_symbol=ns.lookup("envp_size'");
348 
349  {
350  symbolt envp_symbol;
351  envp_symbol.base_name = "envp'";
352  envp_symbol.name = "envp'";
353  envp_symbol.type = array_typet(
354  pointer_type(char_type()), envp_size_symbol.symbol_expr());
355  envp_symbol.is_static_lifetime = true;
356  envp_symbol.mode = ID_C;
357 
358  if(!symbol_table.insert(std::move(envp_symbol)).second)
359  {
360  messaget message(message_handler);
361  message.error() << "failed to insert envp symbol" << messaget::eom;
362  return true;
363  }
364  }
365 
366  // assume envp_size is INTMAX-1
367  const mp_integer max =
368  to_integer_bitvector_type(envp_size_symbol.type).largest();
369 
370  exprt max_minus_one=from_integer(max-1, envp_size_symbol.type);
371 
373  envp_size_symbol.symbol_expr(), ID_le, std::move(max_minus_one));
374 
375  init_code.add(code_assumet(le));
376  }
377 
378  {
379  /* zero_string doesn't work yet */
380 
381  /*
382  exprt zero_string(ID_zero_string, array_typet());
383  zero_string.type().subtype()=char_type();
384  zero_string.type().set(ID_size, "infinity");
385  const index_exprt index(zero_string, from_integer(0, uint_type()));
386  exprt address_of =
387  typecast_exprt::conditional_cast(
388  address_of_exprt(index, pointer_type(char_type())),
389  argv_symbol.type.subtype());
390 
391  // assign argv[*] to the address of a string-object
392  array_of_exprt array_of(address_of, argv_symbol.type);
393 
394  init_code.copy_to_operands(
395  code_assignt(argv_symbol.symbol_expr(), array_of));
396  */
397  }
398 
399  {
400  // assign argv[argc] to NULL
401  const null_pointer_exprt null(
402  to_pointer_type(argv_symbol.type.subtype()));
403 
404  index_exprt index_expr(
405  argv_symbol.symbol_expr(), argc_symbol.symbol_expr());
406 
407  // disable bounds check on that one
408  index_expr.set("bounds_check", false);
409 
410  init_code.add(code_assignt(index_expr, null));
411  }
412 
413  if(parameters.size()==3)
414  {
415  const symbolt &envp_symbol=ns.lookup("envp'");
416  const symbolt &envp_size_symbol=ns.lookup("envp_size'");
417 
418  // assume envp[envp_size] is NULL
419  null_pointer_exprt null(to_pointer_type(envp_symbol.type.subtype()));
420 
421  index_exprt index_expr(
422  envp_symbol.symbol_expr(), envp_size_symbol.symbol_expr());
423  // disable bounds check on that one
424  index_expr.set("bounds_check", false);
425 
426  equal_exprt is_null(std::move(index_expr), std::move(null));
427 
428  init_code.add(code_assumet(is_null));
429  }
430 
431  {
432  exprt::operandst &operands=call_main.arguments();
433 
434  if(parameters.size()==3)
435  operands.resize(3);
436  else
437  operands.resize(2);
438 
439  exprt &op0=operands[0];
440  exprt &op1=operands[1];
441 
443  argc_symbol.symbol_expr(), parameters[0].type());
444 
445  {
446  index_exprt index_expr(
447  argv_symbol.symbol_expr(), from_integer(0, index_type()));
448 
449  // disable bounds check on that one
450  index_expr.set("bounds_check", false);
451 
452  const pointer_typet &pointer_type =
453  to_pointer_type(parameters[1].type());
454 
456  address_of_exprt(index_expr), pointer_type);
457  }
458 
459  // do we need envp?
460  if(parameters.size()==3)
461  {
462  const symbolt &envp_symbol=ns.lookup("envp'");
463 
464  index_exprt index_expr(
465  envp_symbol.symbol_expr(), from_integer(0, index_type()));
466 
467  const pointer_typet &pointer_type =
468  to_pointer_type(parameters[2].type());
469 
470  operands[2] = typecast_exprt::conditional_cast(
471  address_of_exprt(index_expr), pointer_type);
472  }
473  }
474  }
475  else
476  UNREACHABLE;
477  }
478  else
479  {
480  // produce nondet arguments
482  parameters, init_code, symbol_table, object_factory_parameters);
483  }
484 
485  init_code.add(std::move(call_main));
486 
487  // TODO: add read/modified (recursively in call graph) globals as INPUT/OUTPUT
488 
489  record_function_outputs(symbol, init_code, symbol_table);
490 
491  // add the entry point symbol
492  symbolt new_symbol;
493 
494  new_symbol.name=goto_functionst::entry_point();
495  new_symbol.type = code_typet({}, void_type());
496  new_symbol.value.swap(init_code);
497  new_symbol.mode=symbol.mode;
498 
499  if(!symbol_table.insert(std::move(new_symbol)).second)
500  {
501  messaget message(message_handler);
502  message.error() << "failed to insert main symbol" << messaget::eom;
503  return true;
504  }
505 
506  return false;
507 }
c_nondet_symbol_factory.h
messaget
Class that provides messages with a built-in verbosity 'level'.
Definition: message.h:152
UNREACHABLE
#define UNREACHABLE
This should be used to mark dead code.
Definition: invariant.h:504
dstringt
dstringt has one field, an unsigned integer no which is an index into a static table of strings.
Definition: dstring.h:37
code_blockt
A codet representing sequential composition of program statements.
Definition: std_code.h:173
typecast_exprt::conditional_cast
static exprt conditional_cast(const exprt &expr, const typet &type)
Definition: std_expr.h:2050
symbol_tablet
The symbol table.
Definition: symbol_table.h:20
symbol_table_baset::lookup_ref
const symbolt & lookup_ref(const irep_idt &name) const
Find a symbol in the symbol table for read-only access.
Definition: symbol_table_base.h:104
typet::subtype
const typet & subtype() const
Definition: type.h:47
arith_tools.h
symbol_table_baset::symbol_base_map
const symbol_base_mapt & symbol_base_map
Read-only field, used to look up symbol names given their base names.
Definition: symbol_table_base.h:33
codet::op0
exprt & op0()
Definition: expr.h:101
lifetimet::AUTOMATIC_LOCAL
@ AUTOMATIC_LOCAL
Allocate local objects with automatic lifetime.
ansi_c_entry_point.h
code_typet::parameterst
std::vector< parametert > parameterst
Definition: std_types.h:738
symbolt::type
typet type
Type of symbol.
Definition: symbol.h:31
mp_integer
BigInt mp_integer
Definition: mp_arith.h:19
configt::main
optionalt< std::string > main
Definition: config.h:173
plus_exprt
The plus expression Associativity is not specified.
Definition: std_expr.h:887
string_constant.h
c_nondet_symbol_factory
symbol_exprt c_nondet_symbol_factory(code_blockt &init_code, symbol_tablet &symbol_table, const irep_idt base_name, const typet &type, const source_locationt &loc, const c_object_factory_parameterst &object_factory_parameters, const lifetimet lifetime)
Creates a symbol and generates code so that it can vary over all possible values for its type.
Definition: c_nondet_symbol_factory.cpp:200
exprt
Base class for all expressions.
Definition: expr.h:53
symbolt::base_name
irep_idt base_name
Base (non-scoped) name.
Definition: symbol.h:46
build_function_environment
exprt::operandst build_function_environment(const code_typet::parameterst &parameters, code_blockt &init_code, symbol_tablet &symbol_table, const c_object_factory_parameterst &object_factory_parameters)
Definition: ansi_c_entry_point.cpp:22
to_string
std::string to_string(const string_not_contains_constraintt &expr)
Used for debug printing.
Definition: string_constraint.cpp:55
messaget::eom
static eomt eom
Definition: message.h:283
auxiliary_symbolt
Internally generated symbol table entry.
Definition: symbol.h:160
configt::ansi_c
struct configt::ansi_ct ansi_c
string_constantt
Definition: string_constant.h:16
index_type
bitvector_typet index_type()
Definition: c_types.cpp:16
equal_exprt
Equality.
Definition: std_expr.h:1196
void_type
empty_typet void_type()
Definition: c_types.cpp:253
record_function_outputs
void record_function_outputs(const symbolt &function, code_blockt &init_code, symbol_tablet &symbol_table)
Definition: ansi_c_entry_point.cpp:52
code_function_callt::lhs
exprt & lhs()
Definition: std_code.h:1211
namespacet
A namespacet is essentially one or two symbol tables bound together, to allow for symbol lookups in t...
Definition: namespace.h:92
code_outputt
A codet representing the declaration that an output of a particular description has a value which cor...
Definition: std_code.h:695
message
static const char * message(const static_verifier_resultt::statust &status)
Makes a status message string from a status.
Definition: static_verifier.cpp:74
exprt::type
typet & type()
Return the type of the expression.
Definition: expr.h:81
namespacet::lookup
bool lookup(const irep_idt &name, const symbolt *&symbol) const override
See documentation for namespace_baset::lookup().
Definition: namespace.cpp:140
code_function_callt
codet representation of a function call statement.
Definition: std_code.h:1186
to_code_type
const code_typet & to_code_type(const typet &type)
Cast a typet to a code_typet.
Definition: std_types.h:946
symbolt::mode
irep_idt mode
Language mode.
Definition: symbol.h:49
code_typet::parametert::get_base_name
const irep_idt & get_base_name() const
Definition: std_types.h:797
signed_int_type
signedbv_typet signed_int_type()
Definition: c_types.cpp:30
c_object_factory_parameterst
Definition: c_object_factory_parameters.h:15
null_pointer_exprt
The null pointer constant.
Definition: std_expr.h:4018
id2string
const std::string & id2string(const irep_idt &d)
Definition: irep.h:44
code_labelt
codet representation of a label for branch targets.
Definition: std_code.h:1378
PRECONDITION
#define PRECONDITION(CONDITION)
Definition: invariant.h:464
code_assumet
An assumption, which must hold in subsequent code.
Definition: std_code.h:538
symbolt::symbol_expr
class symbol_exprt symbol_expr() const
Produces a symbol_exprt for a symbol.
Definition: symbol.cpp:122
INITIALIZE_FUNCTION
#define INITIALIZE_FUNCTION
Definition: static_lifetime_init.h:23
symbol_tablet::insert
virtual std::pair< symbolt &, bool > insert(symbolt symbol) override
Author: Diffblue Ltd.
Definition: symbol_table.cpp:19
pointer_type
pointer_typet pointer_type(const typet &subtype)
Definition: c_types.cpp:243
to_integer_bitvector_type
const integer_bitvector_typet & to_integer_bitvector_type(const typet &type)
Cast a typet to an integer_bitvector_typet.
Definition: std_types.h:1199
irept::swap
void swap(irept &irep)
Definition: irep.h:463
code_typet
Base type of functions.
Definition: std_types.h:736
irept::is_nil
bool is_nil() const
Definition: irep.h:398
irept::id
const irep_idt & id() const
Definition: irep.h:418
message_handlert
Definition: message.h:27
exprt::operandst
std::vector< exprt > operandst
Definition: expr.h:55
dstringt::empty
bool empty() const
Definition: dstring.h:88
code_blockt::add
void add(const codet &code)
Definition: std_code.h:211
generate_ansi_c_start_function
bool generate_ansi_c_start_function(const symbolt &symbol, symbol_tablet &symbol_table, message_handlert &message_handler, const c_object_factory_parameterst &object_factory_parameters)
Generate a _start function for a specific function.
Definition: ansi_c_entry_point.cpp:187
code_typet::parameters
const parameterst & parameters() const
Definition: std_types.h:857
to_pointer_type
const pointer_typet & to_pointer_type(const typet &type)
Cast a typet to a pointer_typet.
Definition: std_types.h:1526
ansi_c_entry_point
bool ansi_c_entry_point(symbol_tablet &symbol_table, message_handlert &message_handler, const c_object_factory_parameterst &object_factory_parameters)
Definition: ansi_c_entry_point.cpp:102
code_function_callt::arguments
argumentst & arguments()
Definition: std_code.h:1231
config
configt config
Definition: config.cpp:24
char_type
bitvector_typet char_type()
Definition: c_types.cpp:114
symbol_table_baset::add
bool add(const symbolt &symbol)
Add a new symbol to the symbol table.
Definition: symbol_table_base.cpp:18
symbolt::value
exprt value
Initial value of symbol.
Definition: symbol.h:34
array_typet
Arrays with given size.
Definition: std_types.h:965
code_skipt
A codet representing a skip statement.
Definition: std_code.h:273
is_null
static exprt is_null(const array_string_exprt &string, array_poolt &array_pool)
Expression which is true when the string is equal to the literal "null".
Definition: string_format_builtin_function.cpp:93
symbolt::location
source_locationt location
Source code location of definition of symbol.
Definition: symbol.h:37
code_inputt
A codet representing the declaration that an input of a particular description has a value which corr...
Definition: std_code.h:648
symbolt
Symbol table entry.
Definition: symbol.h:28
irept::set
void set(const irep_namet &name, const irep_idt &value)
Definition: irep.h:442
from_integer
constant_exprt from_integer(const mp_integer &int_value, const typet &type)
Definition: arith_tools.cpp:99
static_lifetime_init
static optionalt< codet > static_lifetime_init(const irep_idt &identifier, symbol_tablet &symbol_table)
Definition: static_lifetime_init.cpp:26
symbol_table_baset::symbols
const symbolst & symbols
Read-only field, used to look up symbols given their names.
Definition: symbol_table_base.h:30
binary_relation_exprt
A base class for relations, i.e., binary predicates whose two operands have the same type.
Definition: std_expr.h:725
forall_symbol_base_map
#define forall_symbol_base_map(it, expr, base_name)
Definition: symbol_table.h:11
CPROVER_PREFIX
#define CPROVER_PREFIX
Definition: cprover_prefix.h:14
power
mp_integer power(const mp_integer &base, const mp_integer &exponent)
A multi-precision implementation of the power operator.
Definition: arith_tools.cpp:194
code_typet::parametert
Definition: std_types.h:753
symbolt::is_static_lifetime
bool is_static_lifetime
Definition: symbol.h:65
goto_functions.h
config.h
integer_bitvector_typet::largest
mp_integer largest() const
Return the largest value that can be represented using this type.
Definition: std_types.cpp:171
symbol_table_baset::lookup
const symbolt * lookup(const irep_idt &name) const
Find a symbol in the symbol table for read-only access.
Definition: symbol_table_base.h:95
code_typet::return_type
const typet & return_type() const
Definition: std_types.h:847
exprt::operands
operandst & operands()
Definition: expr.h:95
r
static int8_t r
Definition: irep_hash.h:59
symbolt::is_lvalue
bool is_lvalue
Definition: symbol.h:66
goto_functionst::entry_point
static irep_idt entry_point()
Get the identifier of the entry point to a goto model.
Definition: goto_functions.h:90
codet::op1
exprt & op1()
Definition: expr.h:104
index_exprt
Array index operator.
Definition: std_expr.h:1299
static_lifetime_init.h
address_of_exprt
Operator to return the address of an object.
Definition: std_expr.h:2815
exprt::add_source_location
source_locationt & add_source_location()
Definition: expr.h:257
pointer_typet
The pointer type These are both 'bitvector_typet' (they have a width) and 'type_with_subtypet' (they ...
Definition: std_types.h:1488
size_type
unsignedbv_typet size_type()
Definition: c_types.cpp:58
code_assignt
A codet representing an assignment in the program.
Definition: std_code.h:298
exprt::source_location
const source_locationt & source_location() const
Definition: expr.h:252
configt::ansi_ct::int_width
std::size_t int_width
Definition: config.h:31
c_types.h
symbolt::name
irep_idt name
The unique identifier.
Definition: symbol.h:40
code_function_callt::function
exprt & function()
Definition: std_code.h:1221
codet
Data structure for representing an arbitrary statement in a program.
Definition: std_code.h:35