X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=src%2FAST%2Fastops.h;h=a451c5f5cdc023797c59f21afd28e1b3fe1d77a5;hb=e1360c75a71486a0de8c1b30a2a8cd2877902416;hp=cd2beaabd2b056125838b653b78a57f6d5526700;hpb=f503cab120ac6d0d6cd3e9b97b818834a15f0443;p=satune.git diff --git a/src/AST/astops.h b/src/AST/astops.h index cd2beaa..a451c5f 100644 --- a/src/AST/astops.h +++ b/src/AST/astops.h @@ -7,7 +7,8 @@ typedef enum FunctionType FunctionType; enum PredicateType {TABLEPRED, OPERATORPRED}; typedef enum PredicateType PredicateType; -enum ASTNodeType {ORDERCONST, BOOLEANVAR, LOGICOP, PREDICATEOP, BOOLCONST, ELEMSET, ELEMFUNCRETURN, ELEMCONST}; +enum ASTNodeType {ORDERCONST, BOOLEANVAR, LOGICOP, PREDICATEOP, BOOLCONST, ELEMSET, ELEMFUNCRETURN, ELEMCONST, + BOOLEANEDGE, ORDERTYPE, SETTYPE, PREDTABLETYPE, PREDOPERTYPE, TABLETYPE, FUNCTABLETYPE, FUNCOPTYPE}; typedef enum ASTNodeType ASTNodeType; enum Polarity {P_UNDEFINED=0, P_TRUE=1, P_FALSE=2, P_BOTHTRUEFALSE=3}; @@ -16,4 +17,21 @@ typedef enum Polarity Polarity; enum BooleanValue {BV_UNDEFINED=0, BV_MUSTBETRUE=1, BV_MUSTBEFALSE=2, BV_UNSAT=3}; typedef enum BooleanValue BooleanValue; +extern const char *elemEncTypeNames[]; + +enum ElementEncodingType { + ELEM_UNASSIGNED, ONEHOT, UNARY, BINARYINDEX, BINARYVAL +}; + +typedef enum ElementEncodingType ElementEncodingType; + +enum BooleanVarOrdering {CONSTRAINTORDERING=0, CHORONOLOGICALORDERING=1, REVERSEORDERING=2}; +typedef enum BooleanVarOrdering BooleanVarOrdering; + +Polarity negatePolarity(Polarity This); +bool impliesPolarity(Polarity curr, Polarity goal); + + + + #endif