X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=clockvector.cc;h=e56c2ace662507be12875c18446932fe54593252;hb=6b87c110fbda87ccec4f58b1e292d5f9434c8691;hp=4dd03dc26fb7291a59ed4d1304358948bff6e062;hpb=cabbdfb6fe631a0e4b1bfd1cb73862da6f04d7d8;p=model-checker.git diff --git a/clockvector.cc b/clockvector.cc index 4dd03dc..e56c2ac 100644 --- a/clockvector.cc +++ b/clockvector.cc @@ -1,4 +1,3 @@ -#include #include #include @@ -76,17 +75,6 @@ bool ClockVector::synchronized_since(const ModelAction *act) const return false; } -bool ClockVector::has_synchronized_with(const ClockVector *cv) const -{ - ASSERT(cv); - if (cv->num_threads > num_threads) - return false; - for (int i = 0; i < cv->num_threads; i++) - if (cv->clock[i] > clock[i]) - return false; - return true; -} - /** Gets the clock corresponding to a given thread id from the clock vector. */ modelclock_t ClockVector::getClock(thread_id_t thread) { int threadid = id_to_int(thread);