X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;ds=inline;f=src%2FAST%2Fops.h;h=a26d1cd5068d6149625fe158eef79e57f3f3d146;hb=ef5d7a44cfe435c24e5f104e320b1a81835626e7;hp=adbef8dda52ede93bcce7c6ace8fdaca57eba28d;hpb=da8edf8ffe23430b414467fb4e35c66c94562356;p=satune.git diff --git a/src/AST/ops.h b/src/AST/ops.h index adbef8d..a26d1cd 100644 --- a/src/AST/ops.h +++ b/src/AST/ops.h @@ -1,34 +1,32 @@ #ifndef OPS_H #define OPS_H -enum LogicOp {AND, OR, NOT, XOR, IMPLIES}; +enum LogicOp {SATC_AND, SATC_OR, SATC_NOT, SATC_XOR, SATC_IFF, SATC_IMPLIES}; typedef enum LogicOp LogicOp; -enum ArithOp {ADD, SUB}; +enum ArithOp {SATC_ADD, SATC_SUB}; typedef enum ArithOp ArithOp; -enum CompOp {EQUALS}; +enum CompOp {SATC_EQUALS, SATC_LT, SATC_GT, SATC_LTE, SATC_GTE}; typedef enum CompOp CompOp; -enum OrderType {PARTIAL, TOTAL}; +enum OrderType {SATC_PARTIAL, SATC_TOTAL}; typedef enum OrderType OrderType; +enum HappenedBefore {SATC_FIRST, SATC_SECOND, SATC_UNORDERED}; +typedef enum HappenedBefore HappenedBefore; + /** - * FLAGFORCESOVERFLOW forces the operation to overflow if the boolean flag is true - * OVERFLOWSETSFLAG -- sets the flag if the operation overflows - * FLAGIFFOVERFLOW -- flag is set iff the operation overflows - * IGNORE -- doesn't constrain output if the result cannot be represented - * WRAPAROUND -- wraps around like stand integer arithmetic - * NOOVERFLOW -- client has ensured that overflow is impossible + * SATC_FLAGFORCESOVERFLOW forces the operation to overflow if the boolean flag is true + * SATC_OVERFLOWSETSFLAG -- sets the flag if the operation overflows + * SATC_FLAGIFFOVERFLOW -- flag is set iff the operation overflows + * SATC_IGNORE -- doesn't constrain output if the result cannot be represented + * SATC_WRAPAROUND -- wraps around like stand integer arithmetic + * SATC_NOOVERFLOW -- client has ensured that overflow is impossible */ -enum OverFlowBehavior {IGNORE, WRAPAROUND, FLAGFORCESOVERFLOW, OVERFLOWSETSFLAG, FLAGIFFOVERFLOW, NOOVERFLOW}; +enum OverFlowBehavior {SATC_IGNORE, SATC_WRAPAROUND, SATC_FLAGFORCESOVERFLOW, SATC_OVERFLOWSETSFLAG, SATC_FLAGIFFOVERFLOW, SATC_NOOVERFLOW}; typedef enum OverFlowBehavior OverFlowBehavior; -enum BooleanType {ORDERCONST, BOOLEANVAR, LOGICOP, COMPARE, PREDICATEOP}; -typedef enum BooleanType BooleanType; - -enum FunctionType {TABLEFUNC, OPERATORFUNC}; -typedef enum FunctionType FunctionType; +enum UndefinedBehavior {SATC_IGNOREBEHAVIOR, SATC_FLAGFORCEUNDEFINED, SATC_UNDEFINEDSETSFLAG, SATC_FLAGIFFUNDEFINED}; +typedef enum UndefinedBehavior UndefinedBehavior; -enum ElementType {ELEMSET, ELEMFUNCRETURN}; -typedef enum ElementType ElementType; #endif