+/** Process a RMW by converting previous read into a RMW. */
+void ModelChecker::process_rmw(ModelAction * act) {
+ int tid = id_to_int(act->get_tid());
+ std::vector<action_list_t> *vec = &(*obj_thrd_map)[act->get_location()];
+ ASSERT(tid < (int) vec->size());
+ ModelAction *lastread=(*vec)[tid].back();
+ lastread->upgrade_rmw(act);
+}
+