From: Brian Norris Date: Thu, 21 Mar 2013 23:17:16 +0000 (-0700) Subject: model: add 'const' X-Git-Url: http://plrg.eecs.uci.edu/git/?p=c11tester.git;a=commitdiff_plain;h=9452f3d15b8e205aaa74dab361b9727a1b78d0a0 model: add 'const' --- diff --git a/model.cc b/model.cc index f0763cbf..7ce959e9 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 faa0dfe3..3e9d0643 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();