#include "boolean.h"
-Boolean* allocBoolean(VarType t){
- Boolean* tmp = (Boolean*) ourmalloc(sizeof (Boolean));
- tmp->vtype=t;
- tmp->btype=_BOOLEAN;
- return tmp;
+Boolean* allocBoolean(VarType t) {
+ Boolean* tmp=(Boolean*) ourmalloc(sizeof (Boolean));
+ tmp->vtype=t;
+ tmp->btype=_BOOLEAN;
+ return tmp;
}
-Boolean* allocBooleanOrder(Order* order,uint64_t first, uint64_t second){
- Boolean* tmp = (Boolean*) ourmalloc(sizeof (Boolean));
- tmp->btype= _ORDER;
- tmp->order = order;
- tmp->first=first;
- tmp->second=second;
- return tmp;
+Boolean* allocBooleanOrder(Order* order,uint64_t first, uint64_t second) {
+ Boolean* tmp=(Boolean*) ourmalloc(sizeof (Boolean));
+ tmp->btype=_ORDER;
+ tmp->order=order;
+ tmp->first=first;
+ tmp->second=second;
+ return tmp;
}
void deleteBoolean(Boolean * this) {
#include "ops.h"
#include "structs.h"
struct Function {
- enum ArithOp op;
- VectorSet* domains;
- Set * range;
- enum OverFlowBehavior overflowbehavior;
- Table* table;
+ enum ArithOp op;
+ VectorSet* domains;
+ Set * range;
+ enum OverFlowBehavior overflowbehavior;
+ Table* table;
};
#endif
#include "csolver.h"
-#include "AST/set.h"
-#include "AST/mutableset.h"
-#include "AST/element.h"
-#include "AST/boolean.h"
-#include "AST/predicate.h"
-#include "AST/order.h"
+#include "set.h"
+#include "mutableset.h"
+#include "element.h"
+#include "boolean.h"
+#include "predicate.h"
+#include "order.h"
CSolver * allocCSolver() {
CSolver * tmp=(CSolver *) ourmalloc(sizeof(CSolver));
}
Function * createFunctionOperator(CSolver *solver, enum ArithOp op, Set ** domain, uint numDomain, Set * range,
- enum OverFlowBehavior overflowbehavior, Boolean * overflowstatus) {
+ enum OverFlowBehavior overflowbehavior, Boolean * overflowstatus) {
return NULL;
}
#include "structs.h"
struct CSolver {
+ /** This is a vector of constraints that must be satisfied. */
VectorBoolean * constraints;
+
+ /** This is a vector of all boolean structs that we have allocated. */
VectorBoolean * allBooleans;
+
+ /** This is a vector of all set structs that we have allocated. */
VectorSet * allSets;
+
+ /** This is a vector of all element structs that we have allocated. */
VectorElement * allElements;
};