From 45d8b1a74beaf6a80ce44a1f9aa3d59abc5d0582 Mon Sep 17 00:00:00 2001 From: Brian Norris Date: Wed, 22 Aug 2012 19:15:04 -0700 Subject: [PATCH] action: (assertion) disallow out-of-order synchronization We build our ModelChecker around the assumption that synchronization never occurs counter to the execution order. This assertion lets us know if that fails. --- action.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/action.cc b/action.cc index b9e9c02..5124780 100644 --- a/action.cc +++ b/action.cc @@ -177,6 +177,7 @@ void ModelAction::read_from(const ModelAction *act) * @param act The ModelAction to synchronize with */ void ModelAction::synchronize_with(const ModelAction *act) { + ASSERT(*act < *this); model->check_promises(cv, act->cv); cv->merge(act->cv); } -- 2.34.1