+++ /dev/null
-#include "elementencoder.h"
-
-ElementEncoder * allocElementEncoder(ElementEncoderType type, Element *element) {
- ElementEncoder * this=(ElementEncoder *)ourmalloc(sizeof(ElementEncoder));
- this->element=element;
- this->type=type;
- return this;
-}
-
-void deleteElementEncoder(ElementEncoder *this) {
- ourfree(this);
-}
+++ /dev/null
-#ifndef ELEMENTENCODER_H
-#define ELEMENTENCODER_H
-#include "classlist.h"
-
-enum ElementEncoderType {
- ONEHOT, UNARY, BINARYINDEX, ONEHOTBINARY, BINARYVAL
-};
-
-typedef enum ElementEncoderType ElementEncoderType;
-
-struct ElementEncoder {
- ElementEncoderType type;
- Element * element;
-};
-
-ElementEncoder * allocElementEncoder(ElementEncoderType type, Element *element);
-void deleteElementEncoder(ElementEncoder *this);
-#endif
--- /dev/null
+#include "elementencoding.h"
+
+ElementEncoding * allocElementEncoding(ElementEncodingType type, Element *element) {
+ ElementEncoding * this=(ElementEncoding *)ourmalloc(sizeof(ElementEncoding));
+ this->element=element;
+ this->type=type;
+ return this;
+}
+
+void deleteElementEncoding(ElementEncoding *this) {
+ ourfree(this);
+}
--- /dev/null
+#ifndef ELEMENTENCODING_H
+#define ELEMENTENCODING_H
+#include "classlist.h"
+
+enum ElementEncodingType {
+ ONEHOT, UNARY, BINARYINDEX, ONEHOTBINARY, BINARYVAL
+};
+
+typedef enum ElementEncodingType ElementEncodingType;
+
+struct ElementEncoding {
+ ElementEncodingType type;
+ Element * element;
+};
+
+ElementEncoding * allocElementEncoding(ElementEncodingType type, Element *element);
+void deleteElementEncoding(ElementEncoding *this);
+#endif
+++ /dev/null
-#include "functionencoder.h"
-
-FunctionEncoder * allocFunctionEncoder(FunctionEncoderType type, Element *function) {
- FunctionEncoder * this=(FunctionEncoder *)ourmalloc(sizeof(FunctionEncoder));
- this->op.function=function;
- this->type=type;
- return this;
-}
-
-FunctionEncoder * allocPredicateEncoder(FunctionEncoderType type, Boolean *predicate) {
- FunctionEncoder * this=(FunctionEncoder *)ourmalloc(sizeof(FunctionEncoder));
- this->op.predicate=predicate;
- this->type=type;
- return this;
-}
-
-void deleteFunctionEncoder(FunctionEncoder *this) {
- ourfree(this);
-}
+++ /dev/null
-#ifndef FUNCTIONENCODER_H
-#define FUNCTIONENCODER_H
-#include "classlist.h"
-
-enum FunctionEncoderType {
- ENUMERATEIMPLICATIONS, CIRCUIT
-};
-
-typedef enum FunctionEncoderType FunctionEncoderType;
-
-union ElementPredicate {
- Element * function;
- Boolean * predicate;
-};
-
-typedef union ElementPredicate ElementPredicate;
-
-struct FunctionEncoder {
- FunctionEncoderType type;
- bool isFunction;//true for function, false for predicate
- ElementPredicate op;
-};
-
-FunctionEncoder * allocFunctionEncoder(FunctionEncoderType type, Element *function);
-FunctionEncoder * allocPredicateEncoder(FunctionEncoderType type, Boolean *predicate);
-void deleteFunctionEncoder(FunctionEncoder *this);
-#endif
--- /dev/null
+#include "functionencoding.h"
+
+FunctionEncoding * allocFunctionEncoding(FunctionEncodingType type, Element *function) {
+ FunctionEncoding * this=(FunctionEncoding *)ourmalloc(sizeof(FunctionEncoding));
+ this->op.function=function;
+ this->type=type;
+ return this;
+}
+
+FunctionEncoding * allocPredicateEncoding(FunctionEncodingType type, Boolean *predicate) {
+ FunctionEncoding * this=(FunctionEncoding *)ourmalloc(sizeof(FunctionEncoding));
+ this->op.predicate=predicate;
+ this->type=type;
+ return this;
+}
+
+void deleteFunctionEncoding(FunctionEncoding *this) {
+ ourfree(this);
+}
--- /dev/null
+#ifndef FUNCTIONENCODING_H
+#define FUNCTIONENCODING_H
+#include "classlist.h"
+
+enum FunctionEncodingType {
+ ENUMERATEIMPLICATIONS, CIRCUIT
+};
+
+typedef enum FunctionEncodingType FunctionEncodingType;
+
+union ElementPredicate {
+ Element * function;
+ Boolean * predicate;
+};
+
+typedef union ElementPredicate ElementPredicate;
+
+struct FunctionEncoding {
+ FunctionEncodingType type;
+ bool isFunction;//true for function, false for predicate
+ ElementPredicate op;
+};
+
+FunctionEncoding * allocFunctionEncoding(FunctionEncodingType type, Element *function);
+FunctionEncoding * allocPredicateEncoding(FunctionEncodingType type, Boolean *predicate);
+void deleteFunctionEncoding(FunctionEncoding *this);
+#endif
MARKDOWN := ../docs/Markdown/Markdown.pl
-all: directories $(LIB_SO)
+all: directories ${OBJ_DIR}/$(LIB_SO)
directories: ${OBJ_DIR}
docs: $(C_SOURCES) $(HEADERS)
doxygen
-$(LIB_SO): $(OBJECTS)
+${OBJ_DIR}/$(LIB_SO): $(OBJECTS)
$(CC) -g $(SHARED) -o ${OBJ_DIR}/$(LIB_SO) $+ $(LDFLAGS)
${OBJ_DIR}/%.o: %.c
struct Order;
typedef struct Order Order;
-struct ElementEncoder;
-typedef struct ElementEncoder ElementEncoder;
+struct ElementEncoding;
+typedef struct ElementEncoding ElementEncoding;
-struct FunctionEncoder;
-typedef struct FunctionEncoder FunctionEncoder;
+struct FunctionEncoding;
+typedef struct FunctionEncoding FunctionEncoding;
typedef unsigned int uint;
typedef uint64_t VarType;