mirror of
https://github.com/Z3Prover/z3
synced 2026-07-15 03:25:43 +00:00
simplify: align choice axiom naming and inline literal in theory_array_full
- Rename 'ax' to 'body' in instantiate_choice_axiom to match the parallel implementation in sat/smt/array_axioms.cpp (assert_choice_axiom), where the same variable is already called 'body' - Inline redundant 'literal l' variable: assert_axiom(mk_literal(q)) - Remove trailing whitespace in array_decl_plugin.h Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
9d09a050e8
commit
62dd0b223a
2 changed files with 4 additions and 5 deletions
|
|
@ -107,7 +107,7 @@ class array_decl_plugin : public decl_plugin {
|
|||
func_decl * mk_set_subset(unsigned arity, sort * const * domain);
|
||||
|
||||
func_decl * mk_as_array(func_decl * f);
|
||||
|
||||
|
||||
func_decl * mk_choice(unsigned arity, sort* const* domain);
|
||||
|
||||
bool is_array_sort(sort* s) const;
|
||||
|
|
|
|||
|
|
@ -619,12 +619,11 @@ namespace smt {
|
|||
expr_ref px(mk_select(2, args1), m);
|
||||
expr* args2[2] = { pred, choice_term };
|
||||
expr_ref pc(mk_select(2, args2), m);
|
||||
expr_ref ax(m.mk_implies(px, pc), m);
|
||||
expr_ref body(m.mk_implies(px, pc), m);
|
||||
symbol x_name("x");
|
||||
expr_ref q(m.mk_forall(1, &x_sort, &x_name, ax), m);
|
||||
expr_ref q(m.mk_forall(1, &x_sort, &x_name, body), m);
|
||||
ctx.get_rewriter()(q);
|
||||
literal l = mk_literal(q);
|
||||
assert_axiom(l);
|
||||
assert_axiom(mk_literal(q));
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue