Skip to content

Commit e2a9cb8

Browse files
remove unused random seed parameter on cmd_context
Signed-off-by: Nikolaj Bjorner <[email protected]>
1 parent 9847675 commit e2a9cb8

File tree

3 files changed

+2
-14
lines changed

3 files changed

+2
-14
lines changed

src/cmd_context/basic_cmds.cpp

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,6 @@ class set_get_option_cmd : public cmd {
323323
symbol m_produce_assertions;
324324
symbol m_regular_output_channel;
325325
symbol m_diagnostic_output_channel;
326-
symbol m_random_seed;
327326
symbol m_verbosity;
328327
symbol m_global_decls;
329328
symbol m_global_declarations;
@@ -338,7 +337,7 @@ class set_get_option_cmd : public cmd {
338337
s == m_interactive_mode || s == m_produce_proofs || s == m_produce_unsat_cores || s == m_produce_unsat_assumptions ||
339338
s == m_produce_models || s == m_produce_assignments ||
340339
s == m_regular_output_channel || s == m_diagnostic_output_channel ||
341-
s == m_random_seed || s == m_verbosity || s == m_global_decls || s == m_global_declarations ||
340+
s == m_verbosity || s == m_global_decls || s == m_global_declarations ||
342341
s == m_produce_assertions || s == m_reproducible_resource_limit;
343342
}
344343

@@ -359,7 +358,6 @@ class set_get_option_cmd : public cmd {
359358
m_produce_assertions(":produce-assertions"),
360359
m_regular_output_channel(":regular-output-channel"),
361360
m_diagnostic_output_channel(":diagnostic-output-channel"),
362-
m_random_seed(":random-seed"),
363361
m_verbosity(":verbosity"),
364362
m_global_decls(":global-decls"),
365363
m_global_declarations(":global-declarations"),
@@ -503,10 +501,7 @@ class set_option_cmd : public set_get_option_cmd {
503501
}
504502

505503
void set_next_arg(cmd_context & ctx, rational const & val) override {
506-
if (m_option == m_random_seed) {
507-
ctx.set_random_seed(to_unsigned(val));
508-
}
509-
else if (m_option == m_reproducible_resource_limit) {
504+
if (m_option == m_reproducible_resource_limit) {
510505
ctx.params().set_rlimit(to_unsigned(val));
511506
}
512507
else if (m_option == m_verbosity) {
@@ -594,9 +589,6 @@ class get_option_cmd : public set_get_option_cmd {
594589
else if (opt == m_global_decls || opt == m_global_declarations) {
595590
print_bool(ctx, ctx.global_decls());
596591
}
597-
else if (opt == m_random_seed) {
598-
print_unsigned(ctx, ctx.random_seed());
599-
}
600592
else if (opt == m_verbosity) {
601593
print_unsigned(ctx, get_verbosity_level());
602594
}

src/cmd_context/cmd_context.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,6 @@ cmd_context::cmd_context(bool main_ctx, ast_manager * m, symbol const & l):
466466
m_interactive_mode(false),
467467
m_global_decls(false),
468468
m_print_success(m_params.m_smtlib2_compliant),
469-
m_random_seed(0),
470469
m_produce_unsat_cores(false),
471470
m_produce_unsat_assumptions(false),
472471
m_produce_assignments(false),

src/cmd_context/cmd_context.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,6 @@ class cmd_context : public progress_callback, public tactic_manager, public ast_
185185
bool m_interactive_mode;
186186
bool m_global_decls;
187187
bool m_print_success;
188-
unsigned m_random_seed;
189188
bool m_produce_unsat_cores;
190189
bool m_produce_unsat_assumptions;
191190
bool m_produce_assignments;
@@ -337,8 +336,6 @@ class cmd_context : public progress_callback, public tactic_manager, public ast_
337336
void print_unsupported(symbol const & s, int line, int pos) { print_unsupported_msg(); print_unsupported_info(s, line, pos); }
338337
bool global_decls() const { return m_global_decls; }
339338
void set_global_decls(bool flag) { SASSERT(!has_manager()); m_global_decls = flag; }
340-
unsigned random_seed() const { return m_random_seed; }
341-
void set_random_seed(unsigned s) { m_random_seed = s; }
342339
bool produce_models() const;
343340
bool produce_proofs() const;
344341
bool produce_unsat_cores() const;

0 commit comments

Comments
 (0)