MCPcopy Create free account
hub / github.com/Z3Prover/z3 / get_map_array_sort

Method get_map_array_sort

src/ast/rewriter/array_rewriter.cpp:401–407  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

399}
400
401sort_ref array_rewriter::get_map_array_sort(func_decl* f, unsigned num_args, expr* const* args) {
402 sort* s0 = args[0]->get_sort();
403 unsigned sz = get_array_arity(s0);
404 ptr_vector<sort> domain;
405 for (unsigned i = 0; i < sz; ++i) domain.push_back(get_array_domain(s0, i));
406 return sort_ref(m_util.mk_array_sort(sz, domain.data(), f->get_range()), m());
407}
408
409br_status array_rewriter::mk_map_core(func_decl * f, unsigned num_args, expr * const * args, expr_ref & result) {
410

Callers

nothing calls this directly

Calls 7

get_array_arityFunction · 0.85
get_array_domainFunction · 0.85
get_sortMethod · 0.45
push_backMethod · 0.45
mk_array_sortMethod · 0.45
dataMethod · 0.45
get_rangeMethod · 0.45

Tested by

no test coverage detected