10 #define COMMAND_ID(the_id) \
11 const irep_idt ID_smt_##the_id##_command{"smt_" #the_id "_command"};
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)
70 std::vector<std::reference_wrapper<const smt_sortt>>
84 std::vector<smt_identifier_termt> parameters,
96 return upcast(std::move(parameter));
107 std::vector<std::reference_wrapper<const smt_identifier_termt>>
181 template <
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"
201 ::accept(*
this,
id(), std::move(visitor));
206 : _identifier(function_declaration.identifier())
215 : _identifier{function_definition.identifier()}
217 const auto parameters = function_definition.
parameters();
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.");
241 const auto parameter_sort_arguments =
243 for(
const auto ¶meter_sort_argument_pair : parameter_sort_arguments)
246 parameter_sort_argument_pair.first ==
247 parameter_sort_argument_pair.second.get_sort(),
248 "Sort of argument must have the same sort as the parameter.");
static abstract_object_pointert transform(const exprt &expr, const std::vector< abstract_object_pointert > &operands, const abstract_environmentt &environment, const namespacet &ns)
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.