blob: aefa0a2af1fea7823624f988d66924233814d499 (
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
|
#include "theory/$dir/theory_$dir.h"
using namespace std;
namespace CVC4 {
namespace theory {
namespace $dir {
/** Constructs a new instance of Theory$camel w.r.t. the provided contexts. */
Theory$camel::Theory$camel(context::Context* c,
context::UserContext* u,
OutputChannel& out,
Valuation valuation,
const LogicInfo& logicInfo,
QuantifiersEngine* qe) :
Theory(THEORY_$id, c, u, out, valuation, logicInfo, qe) {
}/* Theory$camel::Theory$camel() */
void Theory$camel::check(Effort level) {
while(!done()) {
// Get all the assertions
Assertion assertion = get();
TNode fact = assertion.assertion;
Debug("$dir") << "Theory$camel::check(): processing " << fact << std::endl;
// Do the work
switch(fact.getKind()) {
/* cases for all the theory's kinds go here... */
default:
Unhandled(fact.getKind());
}
}
}/* Theory$camel::check() */
}/* CVC4::theory::$dir namespace */
}/* CVC4::theory namespace */
}/* CVC4 namespace */
|