typedef union constraintTermValue_
{
+ constraintExpr constrExpr;
exprNode expr;
sRef sref;
int intlit;
} constraintTermValue;
+
+typedef enum
+{
+ EXPRNODE, SREF,
+ CONSTRAINTEXPR,
+ INTLITERAL
+} constraintTermType;
+
+
typedef enum
{
LT, LTE, GT, GTE, EQ, NONNEGATIVE, POSITIVE
typedef enum
{
- BUFFSIZE, STRINGLEN, VALUE, CALLSAFE,
+ //BUFFSIZE, STRINGLEN,
+ VALUE, CALLSAFE,
MAXSET, MINSET, MAXREAD, MINREAD,
NULLTERMINATED,
- INCOP,
UNDEFINED
}
constraintType;
constraintExprOp;
-typedef enum
-{
-EXPRNODE, SREF,
-INTLITERAL
-} constraintTermType;
-
-
struct _constraintTerm {
constraintType constrType;
fileloc loc;
};
# define constraintExpr_undefined ((constraintExpr)NULL)
-typedef struct constraintExpr_ * constraintExpr;
-abst_typedef struct constr_ * constr;
+
+//abst_typedef struct constr_ * constr;
struct _constraint {
+ constraint orig;
constraintExpr lexpr;
arithType ar;
constraintExpr expr;
bool post;
} ;
-#define max_constraints 100
-
//constraint constraint_create (exprNode e1, exprNode e2, arithType restriction, constraintType kind);
constraint constraint_createReadSafe (exprNode p_e1, exprNode p_e2);