X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=action.h;h=7c9146fdda694adfd97c7f932f75822e53a4303c;hb=8d4a273698366b54612e40742ef6fb7bd63c7090;hp=8a3650b64c8e1ad8103d6767522a4aa36c56f879;hpb=559511b7622dcbc48501f57b7adafb57aab5de3e;p=model-checker.git diff --git a/action.h b/action.h index 8a3650b..7c9146f 100644 --- a/action.h +++ b/action.h @@ -81,6 +81,7 @@ public: modelclock_t get_seq_number() const { return seq_number; } uint64_t get_value() const { return value; } uint64_t get_reads_from_value() const; + uint64_t get_write_value() const; const ModelAction * get_reads_from() const { return reads_from; } Promise * get_reads_from_promise() const { return reads_from_promise; } @@ -154,6 +155,9 @@ public: bool equals(const ModelAction *x) const { return this == x; } bool equals(const Promise *x) const { return false; } + + bool may_read_from(const ModelAction *write) const; + bool may_read_from(const Promise *promise) const; MEMALLOC private: