From: Mathias Preiner Date: Fri, 1 Apr 2022 06:09:38 +0000 (-0700) Subject: docs: Add documentation for modes. (#8509) X-Git-Tag: cvc5-1.0.0~71 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0a531a383e7281bc6ca1bf6610d067f1cc34a8b8;p=cvc5.git docs: Add documentation for modes. (#8509) --- diff --git a/docs/api/cpp/cpp.rst b/docs/api/cpp/cpp.rst index 6001b2a86..6b17d1222 100644 --- a/docs/api/cpp/cpp.rst +++ b/docs/api/cpp/cpp.rst @@ -20,6 +20,7 @@ For most applications, the :cpp:class:`Solver ` class is the main driveroptions grammar kind + modes op optioninfo result @@ -68,4 +69,6 @@ Class hierarchy * class :cpp:class:`const_iterator ` + * modes enums :ref:`api/cpp/modes:modes` + ``}`` diff --git a/docs/api/cpp/modes.rst b/docs/api/cpp/modes.rst new file mode 100644 index 000000000..be93dac47 --- /dev/null +++ b/docs/api/cpp/modes.rst @@ -0,0 +1,5 @@ +Modes +====== + +.. doxygennamespace:: cvc5::modes + :project: cvc5 diff --git a/src/api/cpp/cvc5.h b/src/api/cpp/cvc5.h index 9f4113fb6..b8bab4bcc 100644 --- a/src/api/cpp/cvc5.h +++ b/src/api/cpp/cvc5.h @@ -4499,9 +4499,9 @@ class CVC5_EXPORT Solver * (block-model) * * Requires enabling option - * :ref:`produce-models `. - * 'produce-models' and setting option - * :ref:`block-models `. + * :ref:`produce-models ` + * and setting option + * :ref:`block-models ` * to a mode other than ``none``. * \endverbatim * @@ -4522,7 +4522,6 @@ class CVC5_EXPORT Solver * * Requires enabling option * :ref:`produce-models `. - * 'produce-models'. * \endverbatim * * @warning This method is experimental and may change in future versions. diff --git a/src/api/cpp/cvc5_types.h b/src/api/cpp/cvc5_types.h index cf694cd3f..909efc650 100644 --- a/src/api/cpp/cvc5_types.h +++ b/src/api/cpp/cvc5_types.h @@ -102,6 +102,12 @@ enum RoundingMode namespace cvc5::modes { +/** + * Mode for blocking models. + * + * Specifies how models are blocked in Solver::blockModel and + * Solver::blockModelValues. + */ enum BlockModelsMode { /** Block models based on the SAT skeleton. */