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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
/******************************************
Copyright (C) 2009-2020 Authors of CryptoMiniSat, see AUTHORS file
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
***********************************************/
#ifndef __SEARCHSTATS_H__
#define __SEARCHSTATS_H__
#include <cstdint>
#include "solvertypes.h"
#include "clause.h"
namespace CMSat {
class SearchStats
{
public:
void clear()
{
SearchStats tmp;
*this = tmp;
}
SearchStats& operator+=(const SearchStats& other);
SearchStats& operator-=(const SearchStats& other);
SearchStats operator-(const SearchStats& other) const;
void printCommon(uint64_t props, bool do_print_times) const;
void print_short(uint64_t props, bool do_print_times) const;
void print(uint64_t props, bool do_print_times) const;
//Restart stats
uint64_t blocked_restart = 0;
uint64_t blocked_restart_same = 0;
uint64_t numRestarts = 0;
//Decisions
uint64_t decisions = 0;
uint64_t decisionsAssump = 0;
uint64_t decisionsRand = 0;
uint64_t decisionFlippedPolar = 0;
//Clause shrinking
uint64_t litsRedNonMin = 0;
uint64_t litsRedFinal = 0;
uint64_t recMinCl = 0;
uint64_t recMinLitRem = 0;
uint64_t permDiff_attempt = 0;
uint64_t permDiff_success = 0;
uint64_t permDiff_rem_lits = 0;
uint64_t furtherShrinkAttempt = 0;
uint64_t binTriShrinkedClause = 0;
uint64_t furtherShrinkedSuccess = 0;
uint64_t moreMinimLitsStart = 0;
uint64_t moreMinimLitsEnd = 0;
uint64_t recMinimCost = 0;
//Learnt clause stats
uint64_t learntUnits = 0;
uint64_t learntBins = 0;
uint64_t learntLongs = 0;
uint64_t otfSubsumed = 0;
uint64_t otfSubsumedImplicit = 0;
uint64_t otfSubsumedLong = 0;
uint64_t otfSubsumedRed = 0;
uint64_t otfSubsumedLitsGained = 0;
uint64_t red_cl_in_which0 = 0;
//Hyper-bin & transitive reduction
uint64_t advancedPropCalled = 0;
uint64_t hyperBinAdded = 0;
uint64_t transReduRemIrred = 0;
uint64_t transReduRemRed = 0;
//SatZillaFeatures
uint64_t num_xors_found_last = 0;
uint64_t num_gates_found_last = 0;
//Resolution Stats
AtecedentData<uint64_t> resolvs;
//Stat structs
ConflStats conflStats;
//Time
double cpu_time = 0.0;
};
}
#endif //__SEARCHSTATS_H__