8 #include "functionencoding.h"
9 #include "constraint.h"
12 This is a little sketchy, but apparently legit.
13 https://www.python.org/dev/peps/pep-3123/ */
15 #define GETBOOLEANTYPE(o) (o->type)
16 #define GETBOOLEANPARENTS(o) (&(o->parents))
17 #define GETBOOLEANPOLARITY(b) (b->polarity)
18 #define GETBOOLEANVALUE(b) (b->boolVal)
20 class Boolean : public ASTNode {
22 Boolean(ASTNodeType _type);
25 Vector<Boolean *> parents;
29 class BooleanVar : public Boolean {
31 BooleanVar(VarType t);
37 class BooleanOrder : public Boolean {
39 BooleanOrder(Order *_order, uint64_t _first, uint64_t _second);
46 class BooleanPredicate : public Boolean {
48 BooleanPredicate(Predicate *_predicate, Element **_inputs, uint _numInputs, Boolean *_undefinedStatus);
51 FunctionEncoding encoding;
52 Array<Element *> inputs;
54 FunctionEncoding * getFunctionEncoding() {return &encoding;}
58 class BooleanLogic : public Boolean {
60 BooleanLogic(CSolver *solver, LogicOp _op, Boolean **array, uint asize);
62 Array<Boolean *> inputs;