10#define COMMAND_ID(the_id) \
11 const irep_idt ID_smt_##the_id##_command{"smt_" #the_id "_command"};
10#define COMMAND_ID(the_id) \ …
12#include "smt_commands.def"
22 return !(*
this == other);
30 "Only terms with boolean sorts can be asserted.");
46 std::vector<smt_sortt> parameter_sorts)
70std::vector<std::reference_wrapper<const smt_sortt>>
84 std::vector<smt_identifier_termt> parameters,
107std::vector<std::reference_wrapper<const smt_identifier_termt>>
181template <
typename visitort>
184#define COMMAND_ID(the_id) \
185 if(id == ID_smt_##the_id##_command) \
186 return visitor.visit(static_cast<const smt_##the_id##_commandt &>(command));
189#include "smt_commands.def"
230 const std::vector<smt_termt> &arguments)
const
236 const std::vector<smt_termt> &arguments)
const
240 "Number of parameters and number of arguments must be the same.");
248 "Sort of argument must have the same sort as the parameter.");
ait supplies three of the four components needed: an abstract interpreter (in this case handling func...
dstringt has one field, an unsigned integer no which is an index into a static table of strings.
There are a large number of kinds of tree structured or tree-like data in CPROVER.
bool operator==(const irept &other) const
std::size_t get_size_t(const irep_idt &name) const
const irept & find(const irep_idt &name) const
void set(const irep_idt &name, const irep_idt &value)
void set_size_t(const irep_idt &name, const std::size_t value)
smt_assert_commandt(smt_termt condition)
const smt_termt & condition() const
std::vector< smt_sortt > parameter_sorts
irep_idt identifier() const
smt_command_functiont(const smt_declare_function_commandt &function_declaration)
smt_sortt return_sort(const std::vector< smt_termt > &arguments) const
smt_identifier_termt _identifier
void validate(const std::vector< smt_termt > &arguments) const
void accept(smt_command_const_downcast_visitort &) const
bool operator==(const smt_commandt &) const
bool operator!=(const smt_commandt &) const
const smt_identifier_termt & identifier() const
smt_declare_function_commandt(smt_identifier_termt identifier, std::vector< smt_sortt > parameter_sorts)
const smt_sortt & return_sort() const
std::vector< std::reference_wrapper< const smt_sortt > > parameter_sorts() const
const smt_termt & definition() const
const smt_identifier_termt & identifier() const
smt_define_function_commandt(irep_idt identifier, std::vector< smt_identifier_termt > parameters, smt_termt definition)
std::vector< std::reference_wrapper< const smt_identifier_termt > > parameters() const
const smt_sortt & return_sort() const
const smt_termt & descriptor() const
smt_get_value_commandt(smt_termt descriptor)
This constructor constructs the get-value command, such that it stores a single descriptor for which ...
Stores identifiers in unescaped and unquoted form.
irep_idt identifier() const
static const smt_logict & downcast(const irept &)
static irept upcast(smt_logict logic)
static const smt_optiont & downcast(const irept &)
static irept upcast(smt_optiont option)
smt_pop_commandt(std::size_t levels)
smt_push_commandt(std::size_t levels)
const smt_logict & logic() const
smt_set_logic_commandt(smt_logict logic)
smt_set_option_commandt(smt_optiont option)
const smt_optiont & option() const
static irept upcast(smt_sortt sort)
static const smt_sortt & downcast(const irept &)
static irept upcast(smt_termt term)
static const smt_termt & downcast(const irept &)
const smt_sortt & get_sort() const
Ranges: pair of begin and end iterators, which can be initialized from containers,...
ranget< iteratort > make_range(iteratort begin, iteratort end)
void accept(const smt_commandt &command, const irep_idt &id, visitort &&visitor)
#define UNREACHABLE
This should be used to mark dead code.
#define INVARIANT(CONDITION, REASON)
This macro uses the wrapper function 'invariant_violated_string'.