From 9452f3d15b8e205aaa74dab361b9727a1b78d0a0 Mon Sep 17 00:00:00 2001 From: Brian Norris Date: Thu, 21 Mar 2013 16:17:16 -0700 Subject: [PATCH] model: add 'const' --- model.cc | 2 +- model.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(); -- 2.34.1