2021-04-09 15:28:18 -07:00
|
|
|
Sort
|
|
|
|
|
====
|
|
|
|
|
|
2022-03-30 19:30:21 -07:00
|
|
|
The :cpp:class:`Sort <cvc5::Sort>` class represents the sort of a
|
|
|
|
|
:cpp:class:`Term <cvc5::Term>`.
|
2023-09-11 09:31:57 -07:00
|
|
|
Its kind is represented as enum class :cpp:enum:`cvc5::SortKind`.
|
2022-03-24 20:13:06 -07:00
|
|
|
|
2022-03-30 19:30:21 -07:00
|
|
|
A :cpp:class:`Sort <cvc5::Sort>` can be hashed (using
|
|
|
|
|
:cpp:class:`std::hash\<cvc5::Sort>`) and serialized to an output stream
|
2024-08-05 11:47:34 -07:00
|
|
|
(using function
|
|
|
|
|
:cpp:func:`std::ostream& cvc5::operator<< (std::ostream& out, const Sort& s)`).
|
2022-03-24 20:13:06 -07:00
|
|
|
|
2023-09-11 09:31:57 -07:00
|
|
|
Class :cpp:class:`cvc5::Sort` only provides the default constructor
|
2024-07-12 09:17:06 -07:00
|
|
|
to create a null Sort. Class :cpp:class:`TermManager <cvc5::TermManager>`
|
2023-09-11 09:31:57 -07:00
|
|
|
provides factory functions for all other sorts, e.g.,
|
2024-07-12 09:17:06 -07:00
|
|
|
:cpp:func:`cvc5::TermManager::getBooleanSort()` for the Boolean sort and
|
|
|
|
|
:cpp:func:`cvc5::TermManager::mkBitVectorSort()` for bit-vector
|
2022-03-24 20:13:06 -07:00
|
|
|
sorts.
|
|
|
|
|
|
|
|
|
|
Sorts are defined as standardized in the SMT-LIB standard for standardized
|
|
|
|
|
theories. Additionally, we introduce the following sorts for non-standardized
|
|
|
|
|
theories:
|
|
|
|
|
|
2024-07-12 11:05:13 -07:00
|
|
|
- *Bag* (:doc:`Theory of Bags <../../../theories/bags>`)
|
2022-03-24 20:13:06 -07:00
|
|
|
|
2024-07-12 09:17:06 -07:00
|
|
|
- Created with :cpp:func:`cvc5::TermManager::mkBagSort()`
|
2022-03-24 20:13:06 -07:00
|
|
|
|
2024-07-12 11:05:13 -07:00
|
|
|
- *Set* (:doc:`Theory of Sets and Relations <../../../theories/sets-and-relations>`)
|
2022-03-24 20:13:06 -07:00
|
|
|
|
2024-07-12 09:17:06 -07:00
|
|
|
- Created with :cpp:func:`cvc5::TermManager::mkSetSort()`
|
2022-03-24 20:13:06 -07:00
|
|
|
|
2024-07-12 11:05:13 -07:00
|
|
|
- *Relation* (:doc:`Theory of Sets and Relations <../../../theories/sets-and-relations>`)
|
2022-03-24 20:13:06 -07:00
|
|
|
|
2024-07-12 09:17:06 -07:00
|
|
|
- Created with :cpp:func:`cvc5::TermManager::mkSetSort()` as a set of tuple
|
2022-03-24 20:13:06 -07:00
|
|
|
sorts
|
|
|
|
|
|
|
|
|
|
- *Table*
|
|
|
|
|
|
2024-07-12 09:17:06 -07:00
|
|
|
- Created with :cpp:func:`cvc5::TermManager::mkBagSort()` as a bag of tuple
|
2022-03-24 20:13:06 -07:00
|
|
|
sorts
|
|
|
|
|
|
2023-09-11 09:31:57 -07:00
|
|
|
----
|
|
|
|
|
|
|
|
|
|
- class :cpp:class:`cvc5::Sort`
|
|
|
|
|
- :cpp:func:`std::ostream& cvc5::operator<< (std::ostream& out, const Sort& s)`
|
|
|
|
|
- :cpp:struct:`std::hash\<cvc5::Sort>`
|
|
|
|
|
|
|
|
|
|
----
|
|
|
|
|
|
2022-03-30 19:30:21 -07:00
|
|
|
.. doxygenclass:: cvc5::Sort
|
2021-04-09 15:28:18 -07:00
|
|
|
:project: cvc5
|
|
|
|
|
:members:
|
|
|
|
|
:undoc-members:
|
2021-04-27 07:31:58 +02:00
|
|
|
|
2023-09-11 09:31:57 -07:00
|
|
|
----
|
|
|
|
|
|
2022-03-30 19:30:21 -07:00
|
|
|
.. doxygenfunction:: cvc5::operator<<(std::ostream& out, const Sort& s)
|
2023-09-11 09:31:57 -07:00
|
|
|
:project: cvc5
|
|
|
|
|
|
|
|
|
|
----
|
|
|
|
|
|
2022-03-24 20:13:06 -07:00
|
|
|
|
2022-03-30 19:30:21 -07:00
|
|
|
.. doxygenstruct:: std::hash< cvc5::Sort >
|
2021-04-27 07:31:58 +02:00
|
|
|
:project: std
|
|
|
|
|
:members:
|
|
|
|
|
:undoc-members:
|
2022-03-24 20:13:06 -07:00
|
|
|
|