1 #ifndef __PREDICTAE_H__
2 #define __PREDICATE_H__
7 unsigned int pred_expr_hash (struct pred_expr *);
8 bool pred_expr_equal(struct pred_expr *, struct pred_expr *);
9 typedef HashSet<struct pred_expr *, uintptr_t, 0, model_malloc, model_calloc, model_free, pred_expr_hash, pred_expr_equal> PredicateSet;
11 typedef enum predicate_token {
15 /* If token is EQUALITY, then the predicate asserts whether
16 * this load should read the same value as the last value
17 * read at memory location specified in predicate_expr.
28 Predicate(FuncInst * func_inst);
31 FuncInst * get_func_inst() { return func_inst; }
32 PredicateSet * get_predicates() { return &predicates; }
33 void add_predicate(token_t token, void * location, bool value);
38 /* may have multiple precicates */
39 PredicateSet predicates;
40 ModelVector<Predicate *> children;
43 #endif /* __PREDICATE_H__ */