mirror of
https://github.com/Z3Prover/z3
synced 2026-07-04 22:36:10 +00:00
Update src/math/simplex/model_based_opt.h
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
fc6696c5e4
commit
835da14afa
1 changed files with 3 additions and 3 deletions
|
|
@ -162,18 +162,18 @@ namespace opt {
|
||||||
struct add_def : public def {
|
struct add_def : public def {
|
||||||
def* x, *y;
|
def* x, *y;
|
||||||
add_def(def* x, def* y) : x(x), y(y) { m_type = add_t; x->inc_ref(); y->inc_ref(); }
|
add_def(def* x, def* y) : x(x), y(y) { m_type = add_t; x->inc_ref(); y->inc_ref(); }
|
||||||
~add_def() { x->dec_ref(); y->dec_ref(); }
|
~add_def() override { x->dec_ref(); y->dec_ref(); }
|
||||||
};
|
};
|
||||||
struct mul_def : public def {
|
struct mul_def : public def {
|
||||||
def* x, *y;
|
def* x, *y;
|
||||||
mul_def(def* x, def* y) : x(x), y(y) { m_type = mul_t; x->inc_ref(); y->inc_ref(); }
|
mul_def(def* x, def* y) : x(x), y(y) { m_type = mul_t; x->inc_ref(); y->inc_ref(); }
|
||||||
~mul_def() { x->dec_ref(); y->dec_ref(); }
|
~mul_def() override { x->dec_ref(); y->dec_ref(); }
|
||||||
};
|
};
|
||||||
struct div_def : public def {
|
struct div_def : public def {
|
||||||
def* x;
|
def* x;
|
||||||
rational m_div{ 1 };
|
rational m_div{ 1 };
|
||||||
div_def(def* x, rational const& d) : x(x), m_div(d) { m_type = div_t; x->inc_ref(); }
|
div_def(def* x, rational const& d) : x(x), m_div(d) { m_type = div_t; x->inc_ref(); }
|
||||||
~div_def() { x->dec_ref(); }
|
~div_def() override { x->dec_ref(); }
|
||||||
};
|
};
|
||||||
struct var_def : public def {
|
struct var_def : public def {
|
||||||
var v;
|
var v;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue