Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix two off-by-one errors with clock vectors
authorMaxwell Pirtle <maxwellpirtle@gmail.com>
Fri, 5 May 2023 08:29:02 +0000 (10:29 +0200)
committerMaxwell Pirtle <maxwellpirtle@gmail.com>
Fri, 12 May 2023 13:58:22 +0000 (15:58 +0200)
commite1e921c13508c418a7f26031f41b1fb3dc1376f3
tree3633f7ea457805f178ee6dd0792a720a81786868
parentda97c5bf0aa171c1eb90e3bd2cc1d8da0fbbfbf5
Fix two off-by-one errors with clock vectors

Two errors were identified with managing clock
vectors in the Execution class. The index
assigned to the new transition was previously
`size() + 1` when it should have read `size()`.
Furthermore, the loop for checking "happens-between"
events excluded event 0. Both issues are now resolved
and a test with a race at the beginning was added
as verification
src/mc/explo/odpor/Execution.cpp
src/mc/explo/odpor/Execution_test.cpp