datarace: factor subtle clock-vector logic into a reusable function
authorBrian Norris <banorris@uci.edu>
Fri, 6 Jul 2012 18:44:46 +0000 (11:44 -0700)
committerBrian Norris <banorris@uci.edu>
Fri, 6 Jul 2012 18:44:46 +0000 (11:44 -0700)
commit1555554a743a69644432215413e0dad83a18a235
treed207e6b189b65fbb6a223965fb7d9fe5d6d390fe
parentbcb3a311780c22c8a344c1288f1dd883b7b1960a
datarace: factor subtle clock-vector logic into a reusable function

These comparisons are performed many times throughout datarace.cc, featuring a
lot of code duplication without strong documentation. This factors the
duplicated code into a single function and documents that single function more
clearly.

Brian Demsky: please review this fix (it should make no actual logical change)
and take a look at the TODO I have inserted; I'm not sure if the TODO is
warranted.
datarace.cc