blob: 06b0ee4f843864376056ac646e88b92e61a4fcc8 (
plain)
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
|
#ifndef __CVC4__THEORY__THEORY_UF_H
#define __CVC4__THEORY__THEORY_UF_H
#include "expr/node.h"
#include "theory/theory.h"
#include "theory/output_channel.h"
#include "context/context.h"
#include "theory/uf/ecdata.h"
namespace CVC4 {
namespace theory {
class TheoryUF : public Theory {
private:
context::Context* d_context;
context::CDList<Node> d_pending;
context::CDList<Node> d_disequality;
context::CDO<unsigned> d_currentPendingIdx;
public:
void setup(const Node& n);
void check(OutputChannel& out, Effort level= FULL_EFFORT);
void propagate(OutputChannel& out, Effort level= FULL_EFFORT){}
void explain(OutputChannel& out,
const Node& n,
Effort level = FULL_EFFORT){}
private:
bool equiv(Node x, Node y);
void ccUnion(ECData* ecX, ECData* ecY);
ECData* ccFind(ECData* x);
void merge();
//TODO put back in theory
};
} /* CVC4::theory namespace */
} /* CVC4 namespace */
#endif /* __CVC4__THEORY__THEORY_UF_H */
|