mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 01:25:31 +00:00
stubs for model finder
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
458572323a
commit
414db51d5a
7 changed files with 123 additions and 19 deletions
|
@ -502,6 +502,17 @@ void model::remove_decls(ptr_vector<func_decl> & decls, func_decl_set const & s)
|
|||
decls.shrink(j);
|
||||
}
|
||||
|
||||
expr_ref model::unfold_as_array(expr* e) {
|
||||
func_decl* f = nullptr;
|
||||
array_util autil(m);
|
||||
if (!autil.is_as_array(e, f))
|
||||
return expr_ref(e, m);
|
||||
auto* fi = get_func_interp(f);
|
||||
if (!fi)
|
||||
return expr_ref(e, m);
|
||||
return fi->get_array_interp(f);
|
||||
}
|
||||
|
||||
|
||||
expr_ref model::get_inlined_const_interp(func_decl* f) {
|
||||
expr* v = get_const_interp(f);
|
||||
|
|
|
@ -78,6 +78,7 @@ public:
|
|||
bool has_uninterpreted_sort(sort * s) const;
|
||||
|
||||
expr_ref get_inlined_const_interp(func_decl* f);
|
||||
expr_ref unfold_as_array(expr* e);
|
||||
|
||||
//
|
||||
// Primitives for building models
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue