Skip to content

Commit e0a4489

Browse files
purge smt.timeout, use timeout instead to control solver timing #2354
Signed-off-by: Nikolaj Bjorner <[email protected]>
1 parent 63a952f commit e0a4489

File tree

7 files changed

+2
-13
lines changed

7 files changed

+2
-13
lines changed

src/muz/base/dl_context.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,9 +288,9 @@ namespace datalog {
288288
bool context::compile_with_widening() const { return m_params->datalog_compile_with_widening(); }
289289
bool context::unbound_compressor() const { return m_unbound_compressor; }
290290
void context::set_unbound_compressor(bool f) { m_unbound_compressor = f; }
291+
unsigned context::soft_timeout() const { return m_params->datalog_timeout(); }
291292
bool context::similarity_compressor() const { return m_params->datalog_similarity_compressor(); }
292293
unsigned context::similarity_compressor_threshold() const { return m_params->datalog_similarity_compressor_threshold(); }
293-
unsigned context::soft_timeout() const { return m_fparams.m_timeout; }
294294
unsigned context::initial_restart_timeout() const { return m_params->datalog_initial_restart_timeout(); }
295295
bool context::generate_explanations() const { return m_params->datalog_generate_explanations(); }
296296
bool context::explanations_on_relation_level() const { return m_params->datalog_explanations_on_relation_level(); }

src/muz/base/fp_params.pyg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ def_module_params('fp',
4141
('datalog.initial_restart_timeout', UINT, 0,
4242
"length of saturation run before the first restart (in ms), " +
4343
"zero means no restarts"),
44+
('datalog.timeout', UINT, 0, "Time limit used for saturation"),
4445
('datalog.output_profile', BOOL, False,
4546
"determines whether profile information should be " +
4647
"output when outputting Datalog rules or instructions"),

src/muz/clp/clp_context.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ namespace datalog {
5757
{
5858
// m_fparams.m_relevancy_lvl = 0;
5959
m_fparams.m_mbqi = false;
60-
m_fparams.m_timeout = 1000;
6160
}
6261

6362
~imp() {}

src/muz/tab/tab_context.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1354,7 +1354,6 @@ namespace datalog {
13541354
{
13551355
// m_fparams.m_relevancy_lvl = 0;
13561356
m_fparams.m_mbqi = false;
1357-
m_fparams.m_timeout = 1000;
13581357
}
13591358

13601359
~imp() {}

src/smt/params/smt_params.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ void smt_params::updt_local_params(params_ref const & _p) {
3737
m_delay_units = p.delay_units();
3838
m_delay_units_threshold = p.delay_units_threshold();
3939
m_preprocess = _p.get_bool("preprocess", true); // hidden parameter
40-
m_timeout = p.timeout();
41-
m_rlimit = p.rlimit();
4240
m_max_conflicts = p.max_conflicts();
4341
m_restart_max = p.restart_max();
4442
m_core_validate = p.core_validate();
@@ -159,8 +157,6 @@ void smt_params::display(std::ostream & out) const {
159157
DISPLAY_PARAM(m_preprocess);
160158
DISPLAY_PARAM(m_user_theory_preprocess_axioms);
161159
DISPLAY_PARAM(m_user_theory_persist_axioms);
162-
DISPLAY_PARAM(m_timeout);
163-
DISPLAY_PARAM(m_rlimit);
164160
DISPLAY_PARAM(m_at_labels_cex);
165161
DISPLAY_PARAM(m_check_at_labels);
166162
DISPLAY_PARAM(m_dump_goal_as_smt);

src/smt/params/smt_params.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,6 @@ struct smt_params : public preprocessor_params,
215215
bool m_preprocess; // temporary hack for disabling all preprocessing..
216216
bool m_user_theory_preprocess_axioms;
217217
bool m_user_theory_persist_axioms;
218-
unsigned m_timeout;
219-
unsigned m_rlimit;
220218
bool m_at_labels_cex; // only use labels which contains the @ symbol when building multiple counterexamples.
221219
bool m_check_at_labels; // check that @ labels are inserted to generate unique counter-examples.
222220
bool m_dump_goal_as_smt;
@@ -304,8 +302,6 @@ struct smt_params : public preprocessor_params,
304302
m_preprocess(true), // temporary hack for disabling all preprocessing..
305303
m_user_theory_preprocess_axioms(false),
306304
m_user_theory_persist_axioms(false),
307-
m_timeout(0),
308-
m_rlimit(0),
309305
m_at_labels_cex(false),
310306
m_check_at_labels(false),
311307
m_dump_goal_as_smt(false),

src/smt/params/smt_params_helper.pyg

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ def_module_params(module_name='smt',
1818
('delay_units_threshold', UINT, 32, 'maximum number of learned unit clauses before restarting, ignored if delay_units is false'),
1919
('pull_nested_quantifiers', BOOL, False, 'pull nested quantifiers'),
2020
('refine_inj_axioms', BOOL, True, 'refine injectivity axioms'),
21-
('timeout', UINT, UINT_MAX, 'timeout (in milliseconds) (UINT_MAX and 0 mean no timeout)'),
22-
('rlimit', UINT, 0, 'resource limit (0 means no limit)'),
2321
('max_conflicts', UINT, UINT_MAX, 'maximum number of conflicts before giving up.'),
2422
('restart.max', UINT, UINT_MAX, 'maximal number of restarts.'),
2523
('mbqi', BOOL, True, 'model based quantifier instantiation (MBQI)'),

0 commit comments

Comments
 (0)