8 VectorBoolean * constraints;
9 VectorBoolean * allBooleans;
11 VectorElement * allElements;
14 /** Create a new solver instance. */
16 CSolver * allocCSolver();
18 /** This function creates a set containing the elements passed in the array. */
20 Set * createSet(CSolver *, VarType type, uint64_t * elements, uint num);
22 /** This function creates a set from lowrange to highrange (inclusive). */
24 Set * createRangeSet(CSolver *, VarType type, uint64_t lowrange, uint64_t highrange);
26 /** This function creates a mutable set. */
28 MutableSet * createMutableSet(CSolver *, VarType type);
30 /** This function adds a new item to a set. */
32 void addItem(CSolver *, MutableSet * set, uint64_t element);
34 /** This function adds a new unique item to the set and returns it.
35 This function cannot be used in conjunction with manually adding
38 uint64_t createUniqueItem(CSolver *, MutableSet * set);
40 /** This function creates an element variable over a set. */
42 Element * getElementVar(CSolver *, Set * set);
44 /** This function creates a boolean variable. */
46 Boolean * getBooleanVar(CSolver *, VarType type);
48 /** This function creates a function operator. */
50 Function * createFunctionOperator(CSolver *solver, enum ArithOp op, Set ** domain, uint numDomain, Set * range,
51 enum OverFlowBehavior overflowbehavior, Boolean * overflowstatus);
53 /** This function creates a predicate operator. */
55 Predicate * createPredicateOperator(CSolver *solver, enum CompOp op, Set ** domain, uint numDomain);
57 /** This function creates an empty instance table.*/
59 Table * createTable(CSolver *solver, Set **domains, uint numDomain, Set * range);
61 /** This function adds an input output relation to a table. */
63 void addTableEntry(CSolver *solver, uint64_t* inputs, uint inputSize, uint64_t result);
65 /** This function converts a completed table into a function. */
67 Function * completeTable(CSolver *, Table *);
69 /** This function applies a function to the Elements in its input. */
71 Element * applyFunction(CSolver *, Function * function, Element ** array);
73 /** This function applies a predicate to the Elements in its input. */
75 Boolean * applyPredicate(CSolver *, Predicate * predicate, Element ** inputs);
77 /** This function applies a logical operation to the Booleans in its input. */
79 Boolean * applyLogicalOperation(CSolver *, enum LogicOp op, Boolean ** array);
81 /** This function adds a boolean constraint to the set of constraints
84 void addBoolean(CSolver *, Boolean * constraint);
86 /** This function instantiates an order of type type over the set set. */
87 Order * createOrder(CSolver *, enum OrderType type, Set * set);
89 /** This function instantiates a predicate on two items in an order. */
90 Boolean * orderConstraint(CSolver *, Order * order, uint64_t first, uint64_t second);