synchronize_with() had an assertion to ensure that synchronization never
occurred opposite the execution trace ordering. But THREAD_JOIN is a special
case, where this ordering won't break the rest of the model-checker.
* @param act The ModelAction to synchronize with
*/
void ModelAction::synchronize_with(const ModelAction *act) {
- ASSERT(*act < *this);
+ ASSERT(*act < *this || type == THREAD_JOIN);
model->check_promises(cv, act->cv);
cv->merge(act->cv);
}