23 return {
"\"select\" may only select from an array."};
24 if(array_sort->index_sort() != index.
get_sort())
25 return {
"Sort of arrays index must match the sort of the index supplied."};
34 INVARIANT(validation_errors.empty(), validation_errors[0]);
57 INVARIANT(array_sort,
"\"store\" may only update an array.");
59 array_sort->index_sort() == index.
get_sort(),
60 "Sort of arrays index must match the sort of the index supplied.");
62 array_sort->element_sort() == value.
get_sort(),
63 "Sort of arrays value must match the sort of the value supplied.");
static const smt_function_application_termt::factoryt< storet > store
static const smt_function_application_termt::factoryt< selectt > select
const sub_classt * cast() const &
const smt_sortt & get_sort() const
static const char * identifier()
static smt_sortt return_sort(const smt_termt &array, const smt_termt &index)
static void validate(const smt_termt &array, const smt_termt &index)
static std::vector< std::string > validation_errors(const smt_termt &array, const smt_termt &index)
static const char * identifier()
static void validate(const smt_termt &array, const smt_termt &index, const smt_termt &value)
static smt_sortt return_sort(const smt_termt &array, const smt_termt &index, const smt_termt &value)