3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-07-01 21:08:55 +00:00

Address PR review: push_path helper, lbool eval_cond, fix year

- Add push_path(path, c, sign) that decomposes conjuncts/disjuncts
- Add simplify_ite_rec(path, c, t, e) helper for cleaner recursion
- Change eval_cond signature to return lbool (l_undef = undetermined)
- Fix copyright year from 2025 to 2026

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Nikolaj Bjorner 2026-06-04 08:29:44 -07:00
parent ca238a9107
commit 07cea49e4b
2 changed files with 67 additions and 94 deletions

View file

@ -1,5 +1,5 @@
/*++
Copyright (c) 2025 Microsoft Corporation
Copyright (c) 2026 Microsoft Corporation
Module Name:
@ -116,7 +116,9 @@ namespace seq {
// Simplify ITE conditions w.r.t. m_ele and path knowledge
expr_ref simplify_ite(expr* d);
expr_ref simplify_ite_rec(path_t& path, expr* d);
bool eval_cond(expr* cond, bool& result);
std::pair<expr_ref, expr_ref> simplify_ite_rec(path_t& path, expr* c, expr* t, expr* e);
void push_path(path_t& path, expr* c, bool sign);
lbool eval_cond(expr* cond);
sort* re_sort(expr* r) { return r->get_sort(); }
sort* seq_sort(expr* r) { sort* s = nullptr; m_util.is_re(r, s); return s; }