mirror of
https://github.com/Z3Prover/z3
synced 2026-06-10 19:07:18 +00:00
Refactor arith_rewriter::find_nl_factor() to use std::optional (#8313)
* Initial plan * Refactor arith_rewriter::find_nl_factor() to use std::optional 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
1d022fa591
commit
c2d996574f
2 changed files with 8 additions and 6 deletions
|
|
@ -18,6 +18,7 @@ Notes:
|
|||
--*/
|
||||
#pragma once
|
||||
|
||||
#include <optional>
|
||||
#include "ast/rewriter/poly_rewriter.h"
|
||||
#include "ast/arith_decl_plugin.h"
|
||||
#include "ast/seq_decl_plugin.h"
|
||||
|
|
@ -75,7 +76,7 @@ class arith_rewriter : public poly_rewriter<arith_rewriter_core> {
|
|||
br_status mk_le_ge_eq_core(expr * arg1, expr * arg2, op_kind kind, expr_ref & result);
|
||||
bool is_add_factor(expr* s, expr* t);
|
||||
bool is_mul_factor(expr* s, expr* t);
|
||||
expr* find_nl_factor(expr* t);
|
||||
std::optional<expr*> find_nl_factor(expr* t);
|
||||
void get_nl_muls(expr* t, ptr_buffer<expr>& muls);
|
||||
expr_ref remove_factor(expr* s, expr* t);
|
||||
br_status factor_le_ge_eq(expr * arg1, expr * arg2, op_kind kind, expr_ref & result);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue