X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=model.h;h=d6c033725dedf36bed645f5615f19d45444b2f07;hb=89c68eaa8c88e6ff491a7611fdf94abddd7378ae;hp=1bd32a1fffcb926449f2b5fc7a11f7d74410cf34;hpb=d96312573c237eb9648976be85de39261c9531c6;p=model-checker.git diff --git a/model.h b/model.h index 1bd32a1..d6c0337 100644 --- a/model.h +++ b/model.h @@ -36,11 +36,11 @@ struct model_params { int maxfuturedelay; unsigned int fairwindow; unsigned int enabledcount; + unsigned int bound; }; struct PendingFutureValue { - uint64_t value; - modelclock_t expiration; + ModelAction *writer; ModelAction * act; }; @@ -112,13 +112,16 @@ public: const model_params params; Scheduler * get_scheduler() { return scheduler;} + Node * get_curr_node(); MEMALLOC private: /** The scheduler to use: tracks the running/ready Threads */ Scheduler *scheduler; + bool sleep_can_read_from(ModelAction * curr, const ModelAction *write); bool thin_air_constraint_may_allow(const ModelAction * writer, const ModelAction *reader); + bool mo_may_allow(const ModelAction * writer, const ModelAction *reader); bool has_asserted() {return asserted;} void reset_asserted() {asserted=false;} int num_executions; @@ -168,7 +171,6 @@ private: bool w_modification_order(ModelAction *curr); bool release_seq_heads(const ModelAction *rf, rel_heads_list_t *release_heads, struct release_seq *pending) const; bool resolve_release_sequences(void *location, work_queue_t *work_queue); - void do_complete_join(ModelAction *join); ModelAction *diverge; ModelAction *earliest_diverge;