3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-09-05 17:47:41 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2024-08-14 15:55:30 -07:00
parent 4978f5a9ac
commit 7d765ddb6b
3 changed files with 47 additions and 250 deletions

View file

@ -38,6 +38,8 @@ namespace sls {
return false;
if (m.is_distinct(e) && !m.is_bool(to_app(e)->get_arg(0)))
return false;
if (m.is_not(e, x))
return is_basic(x);
return true;
}
@ -50,7 +52,7 @@ namespace sls {
}
void basic_plugin::register_term(expr* e) {
if (is_basic(e))
if (is_basic(e) && m.is_bool(e))
m_values.setx(e->get_id(), bval1(to_app(e)), false);
}
@ -94,6 +96,7 @@ namespace sls {
}
bool basic_plugin::bval1(app* e) const {
verbose_stream() << mk_bounded_pp(e, m) << "\n";
if (m.is_not(e))
return bval1(to_app(e->get_arg(0)));
SASSERT(m.is_bool(e));