3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-24 01:25:31 +00:00
This commit is contained in:
Nikolaj Bjorner 2023-07-13 10:23:28 -07:00
parent 3e58f0cff1
commit d0d434e4f1
4 changed files with 29 additions and 24 deletions

View file

@ -633,6 +633,12 @@ bool array_decl_plugin::is_value(app * _e) const {
}
}
bool array_decl_plugin::is_unique_value(app* _e) const {
array_util u(*m_manager);
expr* e = _e;
return u.is_const(e, e) && m_manager->is_unique_value(e);
}
func_decl * array_recognizers::get_as_array_func_decl(expr * n) const {
SASSERT(is_as_array(n));

View file

@ -137,6 +137,8 @@ class array_decl_plugin : public decl_plugin {
bool is_value(app * e) const override;
bool is_unique_value(app* e) const override;
};
class array_recognizers {