model: add const qualifiers, fixup comments
[model-checker.git] / model.h
diff --git a/model.h b/model.h
index 8d10d51e7e2138904ae415cf8fa11c06c959765e..13704241a83285dba37651a5e7b8ea699a1d2281 100644 (file)
--- a/model.h
+++ b/model.h
@@ -133,9 +133,9 @@ private:
 
        void check_curr_backtracking(ModelAction * curr);
        void add_action_to_lists(ModelAction *act);
-       ModelAction * get_last_action(thread_id_t tid);
-       ModelAction * get_last_seq_cst(ModelAction *curr);
-       ModelAction * get_last_unlock(ModelAction *curr);
+       ModelAction * get_last_action(thread_id_t tid) const;
+       ModelAction * get_last_seq_cst(ModelAction *curr) const;
+       ModelAction * get_last_unlock(ModelAction *curr) const;
        void build_reads_from_past(ModelAction *curr);
        ModelAction * process_rmw(ModelAction *curr);
        void post_r_modification_order(ModelAction *curr, const ModelAction *rf);