3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-29 03:45:51 +00:00

port Grobner, add fixed var dependency to Horner's scheme

Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
Lev Nachmanson 2019-10-17 12:07:15 -07:00
parent 628bbcc676
commit b3fc12ffdc
11 changed files with 70 additions and 43 deletions

View file

@ -269,6 +269,8 @@ public:
return get_degree() < 2; // todo: make it more efficient
}
bool all_factors_are_elementary() const;
// #ifdef Z3DEBUG
// virtual void sort() {
// for (nex * c : m_children) {
@ -418,6 +420,7 @@ inline std::ostream& operator<<(std::ostream& out, const nex& e ) {
// return less_than_nex(a, b, lt);
// }
inline std::unordered_set<lpvar> get_vars_of_expr(const nex *e ) {
std::unordered_set<lpvar> r;
switch (e->type()) {