Z3
Data Structures | Public Member Functions | Properties
Statistics Class Reference

Objects of this class track statistical information about solvers. More...

+ Inheritance diagram for Statistics:

Data Structures

class  DecRefQueue
 
class  Entry
 Statistical data is organized into pairs of [Key, Entry], where every Entry is either a DoubleEntry or a UIntEntry More...
 

Public Member Functions

override string ToString ()
 A string representation of the statistical data. More...
 
- Public Member Functions inherited from Z3Object
void Dispose ()
 Disposes of the underlying native Z3 object. More...
 

Properties

uint Size [get]
 The number of statistical data. More...
 
Entry[] Entries [get]
 The data entries. More...
 
string[] Keys [get]
 The statistical counters. More...
 
Entry this[string key] [get]
 The value of a particular statistical counter. More...
 
- Properties inherited from Z3Object
Context Context [get]
 Access Context object More...
 

Detailed Description

Objects of this class track statistical information about solvers.

Definition at line 32 of file Statistics.cs.

Member Function Documentation

◆ ToString()

override string ToString ( )
inline

A string representation of the statistical data.


Definition at line 109 of file Statistics.cs.

110 {
111 return Native.Z3_stats_to_string(Context.nCtx, NativeObject);
112 }
Context Context
Access Context object
Definition: Z3Object.cs:120

Property Documentation

◆ Entries

Entry [] Entries
get

The data entries.

Definition at line 125 of file Statistics.cs.

126 {
127 get
128 {
129 return NativeEntries(Context.nCtx, NativeObject);
130 }
131 }

◆ Keys

string [] Keys
get

The statistical counters.

Definition at line 155 of file Statistics.cs.

156 {
157 get
158 {
159
160 uint n = Size;
161 string[] res = new string[n];
162 for (uint i = 0; i < n; i++)
163 res[i] = Native.Z3_stats_get_key(Context.nCtx, NativeObject, i);
164 return res;
165 }
166 }
uint Size
The number of statistical data.
Definition: Statistics.cs:118

◆ Size

uint Size
get

The number of statistical data.

Definition at line 117 of file Statistics.cs.

118 {
119 get { return Native.Z3_stats_size(Context.nCtx, NativeObject); }
120 }

◆ this[string key]

Entry this[string key]
get

The value of a particular statistical counter.


Returns null if the key is unknown.

Definition at line 172 of file Statistics.cs.

173 {
174 get
175 {
176 uint n = Size;
177 Entry[] es = Entries;
178 for (uint i = 0; i < n; i++)
179 if (es[i].Key == key)
180 return es[i];
181 return null;
182 }
183 }
Entry[] Entries
The data entries.
Definition: Statistics.cs:126