File: options.rst

package info (click to toggle)
cvc5 1.3.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 87,260 kB
  • sloc: cpp: 383,850; java: 12,207; python: 12,090; sh: 5,679; ansic: 4,729; lisp: 763; perl: 208; makefile: 38
file content (48 lines) | stat: -rw-r--r-- 2,427 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
Options
=======

cvc5 can be configured at runtime using a wide range of options.
When cvc5 is used as a binary, options can be set on the command line.
Also, options can be set and inspected using the respective commands of the input language and the corresponding API functions:

- C++ API: :cpp:func:`setOption() <cvc5::Solver::setOption()>`,
  :cpp:func:`getOption() <cvc5::Solver::getOption()>`,
  :cpp:func:`getOptionNames() <cvc5::Solver::getOptionNames()>`,
  :cpp:func:`getOptionInfo() <cvc5::Solver::getOptionInfo()>`
- Java API: ``setOption()``, ``getOption()``, ``getOptionNames()``, ``getOptionInfo()``
- Base Python API: :py:func:`setOption() <cvc5.Solver.setOption()>`,
  :py:func:`getOption() <cvc5.Solver.getOption()>`,
  :py:func:`getOptionNames() <cvc5.Solver.getOptionNames()>`,
  :py:func:`getOptionInfo() <cvc5.Solver.getOptionInfo()>`
- Pythonic API: :py:func:`setOption() <cvc5.pythonic.Solver.setOption()>`,
  :py:func:`getOption() <cvc5.pythonic.Solver.getOption()>`,
  :py:func:`getOptionNames() <cvc5.pythonic.Solver.getOptionNames()>`,
  :py:func:`getOptionInfo() <cvc5.pythonic.Solver.getOptionInfo()>`

Generally, all options are identified by a name ``<name>``, and (optionally)
by a short name ``<short>`` (a single letter).
Additionally, they can have one or more aliases, which can be used instead of
``<name>``.

**Internally**, options are strongly typed and must be either Boolean, (signed
or unsigned) integers, floating-point numbers, strings, or an enumeration type.
Values for options with a numeric type may be restricted to an interval.

Some options have **custom types** (e.g., :ref:`err <lbl-option-err>`) which
require special treatment internally.
The usage of such options is documented as part of the documentation for the corresponding options.

On the command line, a **Boolean** option can be set to ``true`` via
``--<name>`` or ``-<short>``.
Most Boolean options can also be set to ``false`` via ``--no-<name>``.
In cvc5's APIs, this is done via ``setOption("<name>", "true" | "false")``.

For **all other types**, values are given on the command line using
``--<name>=<value>`` or ``--<name> <value>``,
and ``setOption("<name>", "<value>")`` in the APIs.
The given value must be convertible to the appropriate type, in particular for
numeric and enumeration types.

Below is an exhaustive list of options supported by cvc5.

.. include-build-file:: options_generated.rst