Skip to content

Commit d717dae

Browse files
committed
remove the parameter for throttling nla lemmas
1 parent 2b6c73a commit d717dae

File tree

5 files changed

+1
-11
lines changed

5 files changed

+1
-11
lines changed

src/math/lp/nla_core.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ core::core(lp::lar_solver& s, params_ref const& p, reslimit & lim) :
4242
m_throttle(lra.trail(),
4343
lra.settings().stats()) {
4444
m_nlsat_delay_bound = lp_settings().nlsat_delay();
45-
m_throttle.set_enabled(m_params.arith_nl_thrl());
4645
lra.m_find_monics_with_changed_bounds_func = [&](const indexed_uint_set& columns_with_changed_bounds) {
4746
for (lpvar j : columns_with_changed_bounds) {
4847
if (is_monic_var(j))

src/math/lp/nla_core.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,6 @@ class core {
436436
void add_fixed_equality(lp::lpvar v, rational const& k, lp::explanation const& e) { m_fixed_equalities.push_back({v, k, e}); }
437437
void add_equality(lp::lpvar i, lp::lpvar j, lp::explanation const& e) { m_equalities.push_back({i, j, e}); }
438438

439-
void set_throttle_enabled(bool enabled) { m_throttle_enabled = enabled; m_throttle.set_enabled(enabled); }
440439
bool throttle_enabled() const { return m_throttle_enabled; }
441440
nla_throttle& throttle() { return m_throttle; }
442441
const nla_throttle& throttle() const { return m_throttle; }

src/math/lp/nla_throttle.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
namespace nla {
1212

1313
bool nla_throttle::insert_new(throttle_kind k, lpvar mvar, bool is_lt) {
14-
if (!m_enabled) return false;
1514
signature sig;
1615
sig.m_values[0] = static_cast<unsigned>(k);
1716
sig.m_values[1] = static_cast<unsigned>(mvar);
@@ -20,7 +19,6 @@ bool nla_throttle::insert_new(throttle_kind k, lpvar mvar, bool is_lt) {
2019
}
2120

2221
bool nla_throttle::insert_new(throttle_kind k, lpvar xy_var, lpvar x, lpvar y, int sign, int sy) {
23-
if (!m_enabled) return false;
2422
signature sig;
2523
sig.m_values[0] = static_cast<unsigned>(k);
2624
sig.m_values[1] = static_cast<unsigned>(xy_var);
@@ -33,7 +31,6 @@ bool nla_throttle::insert_new(throttle_kind k, lpvar xy_var, lpvar x, lpvar y, i
3331

3432
bool nla_throttle::insert_new(throttle_kind k, lpvar ac_var, lpvar a, const rational& c_sign, lpvar c,
3533
lpvar bd_var, lpvar b_var, const rational& d_sign, lpvar d, llc ab_cmp) {
36-
if (!m_enabled) return false;
3734
signature sig;
3835
sig.m_values[0] = static_cast<unsigned>(k);
3936
sig.m_values[1] = static_cast<unsigned>(ac_var);
@@ -50,7 +47,6 @@ bool nla_throttle::insert_new(throttle_kind k, lpvar ac_var, lpvar a, const rati
5047
}
5148

5249
bool nla_throttle::insert_new(throttle_kind k, lpvar monic_var, lpvar x_var, lpvar y_var, bool below, int plane_type) {
53-
if (!m_enabled) return false;
5450
signature sig;
5551
sig.m_values[0] = static_cast<unsigned>(k);
5652
sig.m_values[1] = static_cast<unsigned>(monic_var);
@@ -62,7 +58,6 @@ bool nla_throttle::insert_new(throttle_kind k, lpvar monic_var, lpvar x_var, lpv
6258
}
6359

6460
bool nla_throttle::insert_new(throttle_kind k, lpvar monic_var, lpvar x_var, lpvar y_var, bool below) {
65-
if (!m_enabled) return false;
6661
signature sig;
6762
sig.m_values[0] = static_cast<unsigned>(k);
6863
sig.m_values[1] = static_cast<unsigned>(monic_var);

src/math/lp/nla_throttle.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,10 @@ class nla_throttle {
4949
hashtable<signature, signature_hash, default_eq<signature>> m_seen;
5050
trail_stack& m_trail;
5151
lp::statistics& m_stats;
52-
bool m_enabled = true;
52+
5353

5454
public:
5555
nla_throttle(trail_stack& trail, lp::statistics& stats) : m_trail(trail), m_stats(stats) {}
56-
void set_enabled(bool enabled) { m_enabled = enabled; }
57-
bool enabled() const { return m_enabled; }
5856

5957
// Monotone lemma: mvar + is_lt
6058
bool insert_new(throttle_kind k, lpvar mvar, bool is_lt);

src/params/smt_params_helper.pyg

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ def_module_params(module_name='smt',
6565
('arith.nl.order', BOOL, True, 'run order lemmas'),
6666
('arith.nl.expp', BOOL, False, 'expensive patching'),
6767
('arith.nl.tangents', BOOL, True, 'run tangent lemmas'),
68-
('arith.nl.thrl', BOOL, True, 'throttle repeated lemmas - debug, remove later!!!'),
6968
('arith.nl.horner', BOOL, True, 'run horner\'s heuristic'),
7069
('arith.nl.horner_subs_fixed', UINT, 2, '0 - no subs, 1 - substitute, 2 - substitute fixed zeros only'),
7170
('arith.nl.horner_frequency', UINT, 4, 'horner\'s call frequency'),

0 commit comments

Comments
 (0)