datarace.o impatomic.o cmodelint.o \
snapshot.o malloc.o mymemory.o common.o mutex.o conditionvariable.o \
context.o execution.o libannotate.o plugins.o pthread.o futex.o fuzzer.o \
- sleeps.o history.o funcnode.o funcinst.o printf.o
+ sleeps.o history.o funcnode.o funcinst.o predicate.o printf.o
CPPFLAGS += -Iinclude -I.
LDFLAGS := -ldl -lrt -rdynamic -lpthread
#include "threads-model.h"
#include "datarace.h"
-memory_order orders[8] = {
+memory_order orders[7] = {
memory_order_relaxed, memory_order_consume, memory_order_acquire,
memory_order_release, memory_order_acq_rel, memory_order_seq_cst,
};
{}
unsigned int pred_expr_hash(struct pred_expr * expr) {
- return (unsigned int)((uintptr_t)hash);
+ return (unsigned int)((uintptr_t)expr);
}
bool pred_expr_equal(struct pred_expr * p1, struct pred_expr * p2)
void Predicate::add_predicate(token_t token, void * location, bool value)
{
- struct pred_expr = {token, location, value};
+ struct pred_expr predicate = {token, location, value};
predicates.add(&predicate);
}
#define __PREDICATE_H__
#include "funcinst.h"
+#include "hashset.h"
unsigned int pred_expr_hash (struct pred_expr *);
bool pred_expr_equal(struct pred_expr *, struct pred_expr *);