Skip to content

Commit

Permalink
Revert "make smtlib-model-format default for yices-smt2"
Browse files Browse the repository at this point in the history
This reverts commit 7320e76.
  • Loading branch information
ahmed-irfan committed Jun 24, 2024
1 parent edc0d01 commit 8e6297e
Show file tree
Hide file tree
Showing 19 changed files with 21 additions and 23 deletions.
4 changes: 2 additions & 2 deletions doc/manual/manual.tex
Original file line number Diff line number Diff line change
Expand Up @@ -3703,7 +3703,7 @@ \subsubsection*{Model Format}
To use this format, you must invoke \texttt{yices-smt2} as follows
\begin{small}
\begin{lstlisting}[language=sh]
yices-smt2 --yices-model-format
yices-smt2 --smt2-model-format
\end{lstlisting}
\end{small}

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

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

\item[--bvconst-in-decimal] Prints bit-vector constants as numbers
(using the SMT-LIB~2 decimal syntax), instead of constants in binary
Expand Down
4 changes: 2 additions & 2 deletions doc/yices-smt2.1
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ to true.
.B \-\-mcsat
Force use of the MCSAT solver.
.TP
.B \-\-yices-model-format
Print models in the Yices model format (instead of the SMT-LIB format)..
.B \-\-smt2-model-format
Print models in the SMT-LIB format (instead of the default Yices format)..
.TP
.B \-\-bvconst-in-decimal
Print bitvector constants using the SMT-LIB decimal format, instead of the binary format.
Expand Down
12 changes: 6 additions & 6 deletions src/frontend/yices_smt2.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ typedef enum optid {
verbosity_opt, // set verbosity on the command line
incremental_opt, // enable incremental mode
interactive_opt, // enable interactive mode
yicesformat_opt, // use the Yices model format for models
smt2format_opt, // use SMT-LIB2 format for models
bvdecimal_opt, // use (_ bv<xxx> n) for bit-vector constants
timeout_opt, // give a timeout
delegate_opt, // use an external sat solver
Expand Down Expand Up @@ -203,7 +203,7 @@ static option_desc_t options[NUM_OPTIONS] = {
{ "timeout", 't', MANDATORY_INT, timeout_opt },
{ "incremental", '\0', FLAG_OPTION, incremental_opt },
{ "interactive", '\0', FLAG_OPTION, interactive_opt },
{ "yices-model-format", '\0', FLAG_OPTION, yicesformat_opt },
{ "smt2-model-format", '\0', FLAG_OPTION, smt2format_opt },
{ "bvconst-in-decimal", '\0', FLAG_OPTION, bvdecimal_opt },
{ "delegate", '\0', MANDATORY_STRING, delegate_opt },
{ "dimacs", '\0', MANDATORY_STRING, dimacs_opt },
Expand Down Expand Up @@ -267,7 +267,7 @@ static void print_help(const char *progname) {
" --stats, -s Print statistics once all commands have been processed\n"
" --incremental Enable support for push/pop\n"
" --interactive Run in interactive mode (ignored if a filename is given)\n"
" --yices-model-format Display models in the Yices model format (default = false)\n"
" --smt2-model-format Display models in the SMT-LIB 2 format (default = false)\n"
" --bvconst-in-decimal Display bit-vector constants as decimal numbers (default = false)\n"
" --delegate=<satsolver> Use an external SAT solver (can be cadical, cryptominisat, kissat, or y2sat)\n"
" --dimacs=<filename> Bitblast and export to a file (in DIMACS format)\n"
Expand Down Expand Up @@ -374,7 +374,7 @@ static void parse_command_line(int argc, char *argv[]) {
filename = NULL;
incremental = false;
interactive = false;
smt2_model_format = true;
smt2_model_format = false;
bvdecimal = false;
show_stats = false;
verbosity = 0;
Expand Down Expand Up @@ -523,8 +523,8 @@ static void parse_command_line(int argc, char *argv[]) {
}
break;

case yicesformat_opt:
smt2_model_format = false;
case smt2format_opt:
smt2_model_format = true;
break;

case bvdecimal_opt:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--smt2-model-format
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--smt2-model-format
2 changes: 1 addition & 1 deletion tests/regress/mcsat/bool/assumptions/test01.smt2.options
Original file line number Diff line number Diff line change
@@ -1 +1 @@
--mcsat --yices-model-format --trace mcsat::interpolant::check
--mcsat --trace mcsat::interpolant::check
2 changes: 1 addition & 1 deletion tests/regress/mcsat/bool/assumptions/test01m.smt2.options
Original file line number Diff line number Diff line change
@@ -1 +1 @@
--mcsat --yices-model-format --trace mcsat::interpolant::check
--mcsat --trace mcsat::interpolant::check
2 changes: 1 addition & 1 deletion tests/regress/mcsat/bv/assumptions/issue233.smt2.options
Original file line number Diff line number Diff line change
@@ -1 +1 @@
--mcsat --incremental --yices-model-format --trace mcsat::interpolant::check
--mcsat --incremental --trace mcsat::interpolant::check
2 changes: 1 addition & 1 deletion tests/regress/mcsat/bv/assumptions/test01m.smt2.options
Original file line number Diff line number Diff line change
@@ -1 +1 @@
--mcsat --yices-model-format --trace mcsat::interpolant::check
--mcsat --trace mcsat::interpolant::check
2 changes: 1 addition & 1 deletion tests/regress/mcsat/lra/assumptions/test01m.smt2.options
Original file line number Diff line number Diff line change
@@ -1 +1 @@
--mcsat --yices-model-format --trace mcsat::interpolant::check
--mcsat --trace mcsat::interpolant::check
Original file line number Diff line number Diff line change
@@ -1 +1 @@
--incremental --yices-model-format
--incremental
Original file line number Diff line number Diff line change
@@ -1 +1 @@
--incremental --yices-model-format
--incremental
1 change: 0 additions & 1 deletion tests/regress/mcsat/wd/issue311e.smt2.options

This file was deleted.

1 change: 0 additions & 1 deletion tests/regress/mcsat/wd/issue311f.smt2.options

This file was deleted.

1 change: 1 addition & 0 deletions tests/regress/wd/example_mdl.smt2.options
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--smt2-model-format
2 changes: 1 addition & 1 deletion tests/regress/wd/example_mdl2.smt2.options
Original file line number Diff line number Diff line change
@@ -1 +1 @@
--bvconst-in-decimal
--smt2-model-format --bvconst-in-decimal
1 change: 0 additions & 1 deletion tests/regress/wd/issue293.smt2.options

This file was deleted.

1 change: 0 additions & 1 deletion tests/regress/wd/issue311g.smt2.options

This file was deleted.

1 change: 0 additions & 1 deletion tests/regress/wd/issue316c.smt2.options

This file was deleted.

0 comments on commit 8e6297e

Please sign in to comment.