@@ -323,6 +323,7 @@ class set_get_option_cmd : public cmd {
323
323
symbol m_produce_assertions;
324
324
symbol m_regular_output_channel;
325
325
symbol m_diagnostic_output_channel;
326
+ symbol m_random_seed;
326
327
symbol m_verbosity;
327
328
symbol m_global_decls;
328
329
symbol m_global_declarations;
@@ -337,7 +338,7 @@ class set_get_option_cmd : public cmd {
337
338
s == m_interactive_mode || s == m_produce_proofs || s == m_produce_unsat_cores || s == m_produce_unsat_assumptions ||
338
339
s == m_produce_models || s == m_produce_assignments ||
339
340
s == m_regular_output_channel || s == m_diagnostic_output_channel ||
340
- s == m_verbosity || s == m_global_decls || s == m_global_declarations ||
341
+ s == m_random_seed || s == m_verbosity || s == m_global_decls || s == m_global_declarations ||
341
342
s == m_produce_assertions || s == m_reproducible_resource_limit;
342
343
}
343
344
@@ -358,6 +359,7 @@ class set_get_option_cmd : public cmd {
358
359
m_produce_assertions (" :produce-assertions" ),
359
360
m_regular_output_channel (" :regular-output-channel" ),
360
361
m_diagnostic_output_channel (" :diagnostic-output-channel" ),
362
+ m_random_seed (" :random-seed" ),
361
363
m_verbosity (" :verbosity" ),
362
364
m_global_decls (" :global-decls" ),
363
365
m_global_declarations (" :global-declarations" ),
@@ -501,7 +503,10 @@ class set_option_cmd : public set_get_option_cmd {
501
503
}
502
504
503
505
void set_next_arg (cmd_context & ctx, rational const & val) override {
504
- if (m_option == m_reproducible_resource_limit) {
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) {
505
510
ctx.params ().set_rlimit (to_unsigned (val));
506
511
}
507
512
else if (m_option == m_verbosity) {
@@ -589,6 +594,9 @@ class get_option_cmd : public set_get_option_cmd {
589
594
else if (opt == m_global_decls || opt == m_global_declarations) {
590
595
print_bool (ctx, ctx.global_decls ());
591
596
}
597
+ else if (opt == m_random_seed) {
598
+ print_unsigned (ctx, ctx.random_seed ());
599
+ }
592
600
else if (opt == m_verbosity) {
593
601
print_unsigned (ctx, get_verbosity_level ());
594
602
}
0 commit comments