model: add 'const'
[model-checker.git] / model.h
diff --git a/model.h b/model.h
index faa0dfe353a6c908100cafafdac9415a7c278f28..3e9d0643d5e4f7496cb5b51bd8fd8a42ac31c505 100644 (file)
--- 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();