#include "boolean.h"
#define GETELEMENTTYPE(o) GETASTNODETYPE(o)
-#define GETELEMENTPARENTS(o) (&((Element*)o)->parents)
-
+#define GETELEMENTPARENTS(o) (&((Element*)o)->parents)
struct Element {
ASTNode base;
VectorASTNode parents;
Element * allocElementSet(Set *s);
Element* allocElementFunction(Function * function, Element ** array, uint numArrays, Boolean * overflowstatus);
void deleteElement(Element *This);
-
-inline ElementEncoding* getElementEncoding(Element* This){
+Set* getElementSet(Element* This);
+static inline ElementEncoding* getElementEncoding(Element* This){
switch(GETELEMENTTYPE(This)){
case ELEMSET:
return &((ElementSet*)This)->encoding;
}
-inline FunctionEncoding* getElementFunctionEncoding(ElementFunction* func){
+static inline FunctionEncoding* getElementFunctionEncoding(ElementFunction* func){
return &func->functionencoding;
}
-uint getElementSize(Element* This);
-Constraint * getElementValueConstraint(Element* This, uint64_t value);
#endif