mirror of
https://github.com/Z3Prover/z3
synced 2026-05-05 18:05:15 +00:00
seq_axioms: eliminate redundant mk_literal call in add_clause (#9215)
* Initial plan * fix: use already-computed literal in seq_axioms::add_clause Agent-Logs-Url: https://github.com/Z3Prover/z3/sessions/0ab6afce-13a9-4e77-87b4-e416bc06f413 Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
This commit is contained in:
parent
ddd8bf84d7
commit
bbb704e63c
1 changed files with 1 additions and 1 deletions
|
|
@ -97,7 +97,7 @@ void seq_axioms::add_clause(expr_ref_vector const& clause) {
|
||||||
if (lit == true_literal)
|
if (lit == true_literal)
|
||||||
return;
|
return;
|
||||||
if (lit != false_literal)
|
if (lit != false_literal)
|
||||||
lits[idx++] = mk_literal(e);
|
lits[idx++] = lit;
|
||||||
SASSERT(idx <= 5);
|
SASSERT(idx <= 5);
|
||||||
}
|
}
|
||||||
add_axiom(lits[0], lits[1], lits[2], lits[3], lits[4]);
|
add_axiom(lits[0], lits[1], lits[2], lits[3], lits[4]);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue