CBMC
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
nondet.h
Go to the documentation of this file.
1/*******************************************************************\
2
3Module: Non-deterministic object init and choice for JBMC
4
5Author: Diffblue Ltd.
6
7\*******************************************************************/
8
9#ifndef CPROVER_JAVA_BYTECODE_NONDET_H
10#define CPROVER_JAVA_BYTECODE_NONDET_H
11
12#include <util/std_code.h>
13
16
18 std::function<symbol_exprt(const typet &type, std::string)>;
19
30 const exprt &min_value_expr,
31 const exprt &max_value_expr,
32 const std::string &basename_prefix,
33 const source_locationt &source_location,
34 allocate_objectst &allocate_objects,
35 code_blockt &instructions);
36
48 const exprt &min_value_expr,
49 const exprt &max_value_expr,
50 const std::string &basename_prefix,
51 const source_locationt &source_location,
53 code_blockt &instructions);
54
74 const mp_integer &min_value,
75 const mp_integer &max_value,
76 const std::string &basename_prefix,
77 const typet &int_type,
78 const source_locationt &source_location,
79 allocate_objectst &allocate_objects,
80 code_blockt &instructions);
81
82typedef std::vector<codet> alternate_casest;
83
95 const irep_idt &name_prefix,
97 const typet &int_type,
98 const irep_idt &mode,
99 const source_locationt &source_location,
100 symbol_table_baset &symbol_table);
101
102#endif // CPROVER_JAVA_BYTECODE_NONDET_H
ait supplies three of the four components needed: an abstract interpreter (in this case handling func...
Definition ai.h:562
A codet representing sequential composition of program statements.
Definition std_code.h:130
dstringt has one field, an unsigned integer no which is an index into a static table of strings.
Definition dstring.h:38
Base class for all expressions.
Definition expr.h:56
Expression to hold a symbol (variable)
Definition std_expr.h:131
The symbol table base class interface.
The type of an expression, extends irept.
Definition type.h:29
code_blockt generate_nondet_switch(const irep_idt &name_prefix, const alternate_casest &switch_cases, const typet &int_type, const irep_idt &mode, const source_locationt &source_location, symbol_table_baset &symbol_table)
Pick nondeterministically between imperative actions 'switch_cases'.
Definition nondet.cpp:91
std::vector< codet > alternate_casest
Definition nondet.h:82
std::function< symbol_exprt(const typet &type, std::string)> allocate_local_symbolt
Definition nondet.h:18
symbol_exprt generate_nondet_int(const exprt &min_value_expr, const exprt &max_value_expr, const std::string &basename_prefix, const source_locationt &source_location, allocate_objectst &allocate_objects, code_blockt &instructions)
Same as generate_nondet_int( const mp_integer &min_value, const mp_integer &max_value,...
Definition nondet.cpp:15
BigInt mp_integer
Definition smt_terms.h:17