From: Brian Norris Date: Thu, 21 Mar 2013 23:17:16 +0000 (-0700) Subject: model: add 'const' X-Git-Tag: oopsla2013~130 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9452f3d15b8e205aaa74dab361b9727a1b78d0a0;hp=c29b803ac6dce04a6531d33e36341eb662124835;p=model-checker.git model: add 'const' --- diff --git a/model.cc b/model.cc index f0763cb..7ce959e 100644 --- a/model.cc +++ b/model.cc @@ -2049,7 +2049,7 @@ bool ModelChecker::w_modification_order(ModelAction *curr, ModelVectoris_rmw()) return true; diff --git a/model.h b/model.h index faa0dfe..3e9d064 100644 --- a/model.h +++ b/model.h @@ -146,7 +146,7 @@ private: void add_thread(Thread *t); bool sleep_can_read_from(ModelAction *curr, const ModelAction *write); - bool thin_air_constraint_may_allow(const ModelAction *writer, const ModelAction *reader); + bool thin_air_constraint_may_allow(const ModelAction *writer, const ModelAction *reader) const; bool mo_may_allow(const ModelAction *writer, const ModelAction *reader); bool has_asserted() const; void set_assert();