Skip to content

Commit 7320e76

Browse files
committed
make smtlib-model-format default for yices-smt2
1 parent 708e65e commit 7320e76

19 files changed

+23
-21
lines changed

doc/manual/manual.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3707,7 +3707,7 @@ \subsubsection*{Model Format}
37073707
To use this format, you must invoke \texttt{yices-smt2} as follows
37083708
\begin{small}
37093709
\begin{lstlisting}[language=sh]
3710-
yices-smt2 --smt2-model-format
3710+
yices-smt2 --yices-model-format
37113711
\end{lstlisting}
37123712
\end{small}
37133713

@@ -3860,7 +3860,7 @@ \subsubsection*{All Command-line Options}
38603860
after all commands have been executed (i.e., after reaching the
38613861
command \texttt{(exit)} or the end of the input file).
38623862

3863-
\item[--smt2-model-format] Display models in the SMT-LIB~2 format.
3863+
\item[--yices-model-format] Display models in the Yices model format.
38643864

38653865
\item[--bvconst-in-decimal] Prints bit-vector constants as numbers
38663866
(using the SMT-LIB~2 decimal syntax), instead of constants in binary

doc/yices-smt2.1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ to true.
5353
.B \-\-mcsat
5454
Force use of the MCSAT solver.
5555
.TP
56-
.B \-\-smt2-model-format
57-
Print models in the SMT-LIB format (instead of the default Yices format)..
56+
.B \-\-yices-model-format
57+
Print models in the Yices model format (instead of the SMT-LIB format)..
5858
.TP
5959
.B \-\-bvconst-in-decimal
6060
Print bitvector constants using the SMT-LIB decimal format, instead of the binary format.

src/frontend/yices_smt2.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ typedef enum optid {
153153
verbosity_opt, // set verbosity on the command line
154154
incremental_opt, // enable incremental mode
155155
interactive_opt, // enable interactive mode
156-
smt2format_opt, // use SMT-LIB2 format for models
156+
yicesformat_opt, // use the Yices model format for models
157157
bvdecimal_opt, // use (_ bv<xxx> n) for bit-vector constants
158158
timeout_opt, // give a timeout
159159
delegate_opt, // use an external sat solver
@@ -201,7 +201,7 @@ static option_desc_t options[NUM_OPTIONS] = {
201201
{ "timeout", 't', MANDATORY_INT, timeout_opt },
202202
{ "incremental", '\0', FLAG_OPTION, incremental_opt },
203203
{ "interactive", '\0', FLAG_OPTION, interactive_opt },
204-
{ "smt2-model-format", '\0', FLAG_OPTION, smt2format_opt },
204+
{ "yices-model-format", '\0', FLAG_OPTION, yicesformat_opt },
205205
{ "bvconst-in-decimal", '\0', FLAG_OPTION, bvdecimal_opt },
206206
{ "delegate", '\0', MANDATORY_STRING, delegate_opt },
207207
{ "dimacs", '\0', MANDATORY_STRING, dimacs_opt },
@@ -264,7 +264,7 @@ static void print_help(const char *progname) {
264264
" --stats, -s Print statistics once all commands have been processed\n"
265265
" --incremental Enable support for push/pop\n"
266266
" --interactive Run in interactive mode (ignored if a filename is given)\n"
267-
" --smt2-model-format Display models in the SMT-LIB 2 format (default = false)\n"
267+
" --yices-model-format Display models in the Yices model format (default = false)\n"
268268
" --bvconst-in-decimal Display bit-vector constants as decimal numbers (default = false)\n"
269269
" --delegate=<satsolver> Use an external SAT solver (can be cadical, cryptominisat, kissat, or y2sat)\n"
270270
" --dimacs=<filename> Bitblast and export to a file (in DIMACS format)\n"
@@ -369,7 +369,7 @@ static void parse_command_line(int argc, char *argv[]) {
369369
filename = NULL;
370370
incremental = false;
371371
interactive = false;
372-
smt2_model_format = false;
372+
smt2_model_format = true;
373373
bvdecimal = false;
374374
show_stats = false;
375375
verbosity = 0;
@@ -505,8 +505,8 @@ static void parse_command_line(int argc, char *argv[]) {
505505
}
506506
break;
507507

508-
case smt2format_opt:
509-
smt2_model_format = true;
508+
case yicesformat_opt:
509+
smt2_model_format = false;
510510
break;
511511

512512
case bvdecimal_opt:

tests/regress/coverage/smtlib/QF_RDL/SMT-Temporal-Planning-Benchmarks/cooking09.smt2.options

Lines changed: 0 additions & 1 deletion
This file was deleted.

tests/regress/coverage/smtlib/QF_RDL/SMT-Temporal-Planning-Benchmarks/tms-2-3-light-03.smt2.options

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
--mcsat --trace mcsat::interpolant::check
1+
--mcsat --yices-model-format --trace mcsat::interpolant::check
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
--mcsat --trace mcsat::interpolant::check
1+
--mcsat --yices-model-format --trace mcsat::interpolant::check
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
--mcsat --incremental --trace mcsat::interpolant::check
1+
--mcsat --incremental --yices-model-format --trace mcsat::interpolant::check
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
--mcsat --trace mcsat::interpolant::check
1+
--mcsat --yices-model-format --trace mcsat::interpolant::check
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
--mcsat --trace mcsat::interpolant::check
1+
--mcsat --yices-model-format --trace mcsat::interpolant::check

0 commit comments

Comments
 (0)