blob: 1e827d316a58bc88e2bb3a8f548c84892b83580a (
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
|
#include "theory/arith/callbacks.h"
#include "theory/arith/theory_arith_private.h"
namespace CVC4 {
namespace theory {
namespace arith {
void SetupLiteralCallBack::operator()(TNode lit){
TNode atom = (lit.getKind() == kind::NOT) ? lit[0] : lit;
if(!d_arith.isSetup(atom)){
d_arith.setupAtom(atom);
}
}
Rational DeltaComputeCallback::operator()() const{
return d_ta.deltaValueForTotalOrder();
}
ArithVar TempVarMalloc::request(){
Node skolem = mkRealSkolem("tmpVar");
return d_ta.requestArithVar(skolem, false);
}
void TempVarMalloc::release(ArithVar v){
d_ta.releaseArithVar(v);
}
void BasicVarModelUpdateCallBack::operator()(ArithVar x){
d_ta.signal(x);
}
void RaiseConflict::operator()(Node n){
d_ta.raiseConflict(n);
}
const BoundsInfo& BoundCountingLookup::boundsInfo(ArithVar basic) const{
return d_ta.boundsInfo(basic);
}
}/* CVC4::theory::arith namespace */
}/* CVC4::theory namespace */
}/* CVC4 namespace */
|