3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-28 11:25:51 +00:00

limit the row length in horner's scheme

Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
Lev Nachmanson 2019-08-23 11:01:17 -07:00
parent b075d3923e
commit bf79d93d51
4 changed files with 15 additions and 2 deletions

View file

@ -26,11 +26,14 @@ class nla_settings {
bool m_run_horner;
// how often to call the horner heuristic
unsigned m_horner_frequency;
unsigned m_horner_row_length_limit;
public:
nla_settings() : m_run_order(true),
m_run_tangents(true),
m_run_horner(true),
m_horner_frequency(4) {}
m_horner_frequency(4),
m_horner_row_length_limit(10)
{}
bool run_order() const { return m_run_order; }
bool& run_order() { return m_run_order; }
@ -42,6 +45,8 @@ public:
bool& run_horner() { return m_run_horner; }
unsigned horner_frequency() const { return m_horner_frequency; }
unsigned& horner_frequency() { return m_horner_frequency; }
unsigned& horner_frequency() { return m_horner_frequency; }
unsigned horner_row_length_limit() const { return m_horner_row_length_limit; }
unsigned& horner_row_length_limit() { return m_horner_row_length_limit; }
};
}