3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-23 11:37:54 +00:00

code simplification

This commit is contained in:
Nikolaj Bjorner 2025-02-18 19:07:58 -08:00
parent a143ed3bff
commit a5e5a35755
6 changed files with 34 additions and 38 deletions

View file

@ -25,9 +25,9 @@ bool is_partial_eq(const func_decl *f) {
return f->get_name() == PARTIAL_EQ;
}
bool is_partial_eq(const app *a) {
bool is_partial_eq(const expr *a) {
SASSERT(a);
return is_partial_eq(a->get_decl());
return is_app(a) && is_partial_eq(to_app(a)->get_decl());
}
app_ref mk_peq(expr *e0, expr *e1, vector<expr_ref_vector> const &indices,