mirror of
https://github.com/Z3Prover/z3
synced 2025-06-28 08:58:44 +00:00
taking a look at mbp_qel for arrays
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
dda60737dc
commit
a143ed3bff
4 changed files with 53 additions and 27 deletions
|
@ -33,6 +33,18 @@ inline sort* get_array_domain(sort const * s, unsigned idx) {
|
|||
return to_sort(s->get_parameter(idx).get_ast());
|
||||
}
|
||||
|
||||
inline expr_container array_select_indices(app* e) {
|
||||
return expr_container(e->get_args() + 1, e->get_args() + e->get_num_args());
|
||||
}
|
||||
|
||||
inline expr_container array_store_indices(app* e) {
|
||||
return expr_container(e->get_args() + 1, e->get_args() + e->get_num_args() - 1);
|
||||
}
|
||||
|
||||
inline expr* array_store_elem(app* e) {
|
||||
return e->get_arg(e->get_num_args() - 1);
|
||||
}
|
||||
|
||||
enum array_sort_kind {
|
||||
ARRAY_SORT,
|
||||
_SET_SORT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue