ABC: A System for Sequential Synthesis and Verification
 
Loading...
Searching...
No Matches
level.hpp
Go to the documentation of this file.
1#ifndef _level_hpp_INCLUDED
2#define _level_hpp_INCLUDED
3
4#include "global.h"
5
6#include <climits>
7
9
10namespace CaDiCaL {
11
12// For each new decision we increase the decision level and push a 'Level'
13// on the 'control' stack. The information gathered here is used in
14// 'reuse_trail' and for early aborts in clause minimization.
15
16struct Level {
17
18 int decision; // decision literal of this level
19 int trail; // trail start of this level
20
21 struct {
22 int count; // how many variables seen during 'analyze'
23 int trail; // smallest trail position seen on this level
25
26 void reset () {
27 seen.count = 0;
28 seen.trail = INT_MAX;
29 }
30
31 Level (int d, int t) : decision (d), trail (t) { reset (); }
32 Level () {}
33};
34
35} // namespace CaDiCaL
36
38
39#endif
#define ABC_NAMESPACE_CXX_HEADER_START
#define ABC_NAMESPACE_CXX_HEADER_END
struct CaDiCaL::Level::@023147271015376226021074167111310127126167046351 seen
Level(int d, int t)
Definition level.hpp:31
void reset()
Definition level.hpp:26