Skip to content

Commit 8e6297e

Browse files
committed
Revert "make smtlib-model-format default for yices-smt2"
This reverts commit 7320e76.
1 parent edc0d01 commit 8e6297e

19 files changed

+21
-23
lines changed

doc/manual/manual.tex

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

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

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

38613861
\item[--bvconst-in-decimal] Prints bit-vector constants as numbers
38623862
(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 \-\-yices-model-format
57-
Print models in the Yices model format (instead of the SMT-LIB format)..
56+
.B \-\-smt2-model-format
57+
Print models in the SMT-LIB format (instead of the default Yices 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
@@ -154,7 +154,7 @@ typedef enum optid {
154154
verbosity_opt, // set verbosity on the command line
155155
incremental_opt, // enable incremental mode
156156
interactive_opt, // enable interactive mode
157-
yicesformat_opt, // use the Yices model format for models
157+
smt2format_opt, // use SMT-LIB2 format for models
158158
bvdecimal_opt, // use (_ bv<xxx> n) for bit-vector constants
159159
timeout_opt, // give a timeout
160160
delegate_opt, // use an external sat solver
@@ -203,7 +203,7 @@ static option_desc_t options[NUM_OPTIONS] = {
203203
{ "timeout", 't', MANDATORY_INT, timeout_opt },
204204
{ "incremental", '\0', FLAG_OPTION, incremental_opt },
205205
{ "interactive", '\0', FLAG_OPTION, interactive_opt },
206-
{ "yices-model-format", '\0', FLAG_OPTION, yicesformat_opt },
206+
{ "smt2-model-format", '\0', FLAG_OPTION, smt2format_opt },
207207
{ "bvconst-in-decimal", '\0', FLAG_OPTION, bvdecimal_opt },
208208
{ "delegate", '\0', MANDATORY_STRING, delegate_opt },
209209
{ "dimacs", '\0', MANDATORY_STRING, dimacs_opt },
@@ -267,7 +267,7 @@ static void print_help(const char *progname) {
267267
" --stats, -s Print statistics once all commands have been processed\n"
268268
" --incremental Enable support for push/pop\n"
269269
" --interactive Run in interactive mode (ignored if a filename is given)\n"
270-
" --yices-model-format Display models in the Yices model format (default = false)\n"
270+
" --smt2-model-format Display models in the SMT-LIB 2 format (default = false)\n"
271271
" --bvconst-in-decimal Display bit-vector constants as decimal numbers (default = false)\n"
272272
" --delegate=<satsolver> Use an external SAT solver (can be cadical, cryptominisat, kissat, or y2sat)\n"
273273
" --dimacs=<filename> Bitblast and export to a file (in DIMACS format)\n"
@@ -374,7 +374,7 @@ static void parse_command_line(int argc, char *argv[]) {
374374
filename = NULL;
375375
incremental = false;
376376
interactive = false;
377-
smt2_model_format = true;
377+
smt2_model_format = false;
378378
bvdecimal = false;
379379
show_stats = false;
380380
verbosity = 0;
@@ -523,8 +523,8 @@ static void parse_command_line(int argc, char *argv[]) {
523523
}
524524
break;
525525

526-
case yicesformat_opt:
527-
smt2_model_format = false;
526+
case smt2format_opt:
527+
smt2_model_format = true;
528528
break;
529529

530530
case bvdecimal_opt:
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--smt2-model-format
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--smt2-model-format
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
--mcsat --yices-model-format --trace mcsat::interpolant::check
1+
--mcsat --trace mcsat::interpolant::check
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
--mcsat --yices-model-format --trace mcsat::interpolant::check
1+
--mcsat --trace mcsat::interpolant::check
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
--mcsat --incremental --yices-model-format --trace mcsat::interpolant::check
1+
--mcsat --incremental --trace mcsat::interpolant::check
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
--mcsat --yices-model-format --trace mcsat::interpolant::check
1+
--mcsat --trace mcsat::interpolant::check
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
--mcsat --yices-model-format --trace mcsat::interpolant::check
1+
--mcsat --trace mcsat::interpolant::check

0 commit comments

Comments
 (0)