mirror of
https://github.com/Z3Prover/z3
synced 2025-07-19 10:52:02 +00:00
Add stub for match_max
This commit is contained in:
parent
516eb55442
commit
b42b027a40
2 changed files with 22 additions and 0 deletions
|
@ -185,6 +185,11 @@ namespace polysat {
|
||||||
if (match_zero(c, a1, b1, e1, a2, b2, e2, fi))
|
if (match_zero(c, a1, b1, e1, a2, b2, e2, fi))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
// -1 <= a*v + b, a odd
|
||||||
|
// -1 > a*v + b, a odd
|
||||||
|
if (match_max(c, a1, b1, e1, a2, b2, e2, fi))
|
||||||
|
return true;
|
||||||
|
|
||||||
if (match_linear1(c, a1, b1, e1, a2, b2, e2, fi))
|
if (match_linear1(c, a1, b1, e1, a2, b2, e2, fi))
|
||||||
return true;
|
return true;
|
||||||
if (match_linear2(c, a1, b1, e1, a2, b2, e2, fi))
|
if (match_linear2(c, a1, b1, e1, a2, b2, e2, fi))
|
||||||
|
@ -425,6 +430,18 @@ namespace polysat {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*/
|
||||||
|
bool forbidden_intervals::match_max(
|
||||||
|
signed_constraint const& c,
|
||||||
|
rational const & a1, pdd const& b1, pdd const& e1,
|
||||||
|
rational const & a2, pdd const& b2, pdd const& e2,
|
||||||
|
fi_record& fi) {
|
||||||
|
_last_function = __func__;
|
||||||
|
// TODO: analogous to match_zero but for the equation -1 <= a*v + b, a odd
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* v > q
|
* v > q
|
||||||
* forbidden interval for v is [0,1[
|
* forbidden interval for v is [0,1[
|
||||||
|
|
|
@ -73,6 +73,11 @@ namespace polysat {
|
||||||
rational const & a2, pdd const& b2, pdd const& e2,
|
rational const & a2, pdd const& b2, pdd const& e2,
|
||||||
fi_record& fi);
|
fi_record& fi);
|
||||||
|
|
||||||
|
bool match_max(signed_constraint const& c,
|
||||||
|
rational const & a1, pdd const& b1, pdd const& e1,
|
||||||
|
rational const & a2, pdd const& b2, pdd const& e2,
|
||||||
|
fi_record& fi);
|
||||||
|
|
||||||
bool match_non_zero(signed_constraint const& c,
|
bool match_non_zero(signed_constraint const& c,
|
||||||
rational const& a1, pdd const& b1, pdd const& e1,
|
rational const& a1, pdd const& b1, pdd const& e1,
|
||||||
pdd const& q,
|
pdd const& q,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue