File: statistics.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 (55 lines) | stat: -rw-r--r-- 1,864 bytes parent folder | download
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
49
50
51
52
53
54
55
Statistics
==========

See :doc:`/statistics` for general information on statistics in cvc5.

Class :cpp:class:`cvc5::Statistics` represents a mapping from statistic names
(as ``std::string``) to statistic values, which are represented by class
:cpp:class:`cvc5::Stat`. A :cpp:class:`cvc5::Stat` may hold values of different
types (``int64_t``, ``double``, ``std::string`` and histograms) and can be
inspected by identifying the type
(:cpp:func:`Stat::isInt() <cvc5::Stat::isInt()>`,
:cpp:func:`Stat::isDouble() <cvc5::Stat::isDouble()>`, etc) and obtaining
the actual value (:cpp:func:`Stat::getInt() <cvc5::Stat::getInt()>`,
:cpp:func:`Stat::getDouble() <cvc5::Stat::getDouble()>`, etc). Histograms
are represented as ``std::map<std::string, uint64_t>`` where the key is the
string representation of one enumeration value
and the value is the frequency of this particular value.

By default, iterating over a :cpp:class:`Statistics <cvc5::Statistics>`
object shows all statistics, including internal and unchanged ones.
The inclusion of internal and defaulted statistics can be configured via
Boolean parameters ``internal`` and ``defaulted`` of function
:cpp:func:`Statistics::begin() <cvc5::Statistics::begin()>`.

----

- class :cpp:class:`cvc5::Statistics`
- :cpp:func:`std::ostream& cvc5::operator<< (std::ostream& out, const Statistics& s)`
- class :cpp:class:`cvc5::Stat`
- :cpp:func:`std::ostream& cvc5::operator<< (std::ostream& out, const Stat& s)`

----

.. doxygenclass:: cvc5::Statistics
    :project: cvc5
    :members: get, begin, end
    :undoc-members:

----

.. doxygenfunction:: cvc5::operator<<(std::ostream& out, const Statistics& s)
    :project: cvc5

----

.. doxygenclass:: cvc5::Stat
    :project: cvc5
    :members:
    :undoc-members:

----

.. doxygenfunction:: cvc5::operator<<(std::ostream& out, const Stat& s)
    :project: cvc5