Commit Graph

470 Commits

Author SHA1 Message Date
Michael Walker
232e7e5f40 Bump version numbers 2016-05-26 14:02:07 +01:00
Michael Walker
d4cb712b50 Make everything build with GHC 8 2016-05-26 13:54:13 +01:00
Michael Walker
c306deb1f9 Support Stackage lts-3, lts-4, and lts-6 2016-05-26 13:08:24 +01:00
Michael Walker
dd5042e78f Build all branches with travis 2016-05-12 14:37:13 +01:00
Michael Walker
246f680248 Add Travis tests 2016-05-03 20:05:02 +01:00
Michael Walker
832559c4a7 Better README 2016-05-03 00:12:08 +01:00
Michael Walker
88da371bf6 Bump versions for dejafu-0.3.1.0 2016-05-02 23:44:00 +01:00
Michael Walker
452cc07553 Merge branch 'commit-preemptions' 2016-05-02 23:38:49 +01:00
Michael Walker
cea4d59b3c Correctly count preemptions with commit threads.
Conceptually, commits are happening truly in parallel
nondeterministically, and the commit threads are introduced to unify
this source of nondeterminism with the scheduling decisions. Commit
threads are not real threads, and switching to one is not a real context
switch, it therefore doesn't count as a preemption.

For example, this execution clearly has no preemptions in:

    S1---C-S1---

It would be absurd to say it has 1 preemption. But what about this?

    S1---C-S2---

This clearly DOES have a preemption. S1 was preempted by C (but we don't
count that), and then S2 started to execute! Control should have been
returned to S1.

Prior to now, this case was not considered specially. So every commit
effectively gives rise to a free preemption! This is bad for two
reasons:

- More schedules get executed, so testing takes longer.
- This is actually, in a sense, unsound! Results are potentially being
  reported which could NEVER arise under ANY real-world execution
  subject to those bounds!

It is because of this latter point that some of the expected results in
test litmusWP27 have been removed. They require more than the standard
two preemptions to observe.

Closes #39.
2016-05-02 23:35:08 +01:00
Michael Walker
e931a1a2c5 Code tidying 2016-05-02 23:16:10 +01:00
Michael Walker
396a743327 Code tidying 2016-05-02 22:35:33 +01:00
Michael Walker
ebcf7686c4 Bump versions for async-dejafu-0.1.2.1 2016-05-01 21:56:27 +01:00
Michael Walker
8b4785f51b Fix async-dejafu tests 2016-05-01 21:56:17 +01:00
Michael Walker
50a5e0c63b Bump versions for {hunit,tasty}-dejafu-0.3 2016-04-28 23:22:12 +01:00
Michael Walker
a1ef5a8813 Merge branch 'test-concurrently' 2016-04-28 23:20:19 +01:00
Michael Walker
f4bcf51709 Add IsTest and IsOption instances to tasty-dejafu 2016-04-28 23:18:17 +01:00
Michael Walker
bdf289d84d Add Assertable and Testable instancs to hunit-dejafu 2016-04-28 23:16:51 +01:00
Michael Walker
710529df39 Bump versions for async-dejafu-0.1.2 2016-04-28 23:05:28 +01:00
Michael Walker
6757a2a857 Merge branch '0.2-compat' 2016-04-28 23:02:49 +01:00
Michael Walker
3334928acf Make tasty-dejafu work with 0.2 and 0.3 2016-04-28 17:09:46 +01:00
Michael Walker
636886c6fc Relax hunit-dejafu constraint to work with 0.2 and 0.3 2016-04-28 17:07:05 +01:00
Michael Walker
4e08f66302 Make async-dejafu work with 0.2 and 0.3 2016-04-28 17:05:41 +01:00
Michael Walker
6fef2be497 Bump version numbers for hackage release.
async-dejafu, hunit-dejafu, and tasty-dejafu only get a minor bump
because the API didn't change, only the dependencies. I'm not entirely
sure how to fit that properly into the PVP.
2016-04-03 14:40:51 +01:00
Michael Walker
93c9ff9aa8 Document deviations from standard functionality 2016-04-03 06:56:26 +01:00
Michael Walker
aefba4b7d3 Add an Ord constraint on ThreadId. 2016-04-03 06:45:22 +01:00
Michael Walker
4afca62119 Drop the lock and unlock MVar functions 2016-04-03 06:45:11 +01:00
Michael Walker
073f3c69fb Add a README and source repository for dpor 2016-04-03 06:07:37 +01:00
Michael Walker
539be21df5 Make tasty-dejafu work with new Trace type 2016-04-03 05:48:53 +01:00
Michael Walker
355a54cde6 Merge branch 'dpor-as-a-library' 2016-04-03 05:41:46 +01:00
Michael Walker
8ad7548faa Add a simpler DPOR function variant 2016-04-03 05:36:43 +01:00
Michael Walker
39658767df Improve dpor docs 2016-04-03 05:36:38 +01:00
Michael Walker
7d02708f92 Move Schedule module from DejaFu to DPOR. 2016-04-03 05:36:34 +01:00
Michael Walker
58643b9374 Reorganise Test.DPOR exports. 2016-04-03 05:36:28 +01:00
Michael Walker
5a599db0ca More consistent type variable naming 2016-04-03 05:36:23 +01:00
Michael Walker
c8139ace2b Tidy up Test.DPOR a bit 2016-04-03 05:36:16 +01:00
Michael Walker
7733c762c1 Merge the SCT modules 2016-04-03 05:34:01 +01:00
Michael Walker
552894d0bb Split DPOR packages into separate library 2016-04-03 05:34:01 +01:00
Michael Walker
05741e1cd8 hlint fixes 2016-04-03 05:34:01 +01:00
Michael Walker
20a18ae598 Drop the unknown CRState. 2016-04-03 05:34:01 +01:00
Michael Walker
29150d03a3 Drop dependency (3) and compute state in dporSched
This massively reduces the number of schedules tried for the litmus
tests, as expected, which is great! Interestingly, it does result in
more unique results being discovered for intelWP27 and intelWP28. This
is surprising DPOR is supposed to be complete. Perhaps this indicates
some unsoundness in the way I have integrated schedule bounding with
relaxed memory.
2016-04-03 05:31:06 +01:00
Michael Walker
6df702f818 Document dpor function. 2016-04-03 05:09:51 +01:00
Michael Walker
f89b4d81e8 Move the rest of the generic SCT stuff to DPOR 2016-04-03 05:07:34 +01:00
Michael Walker
db8df120b9 Generalise and move todo to DPOR module. 2016-04-03 05:04:29 +01:00
Michael Walker
f3457b23a0 Generalise and move grow to DPOR module.
For some reason, this causes significantly more schedules to be explored
in some of the litmus tests, in particular intelWP27 and intelWP28. I've
not dug too deeply, but it's probably something which should be
addresed.
2016-04-03 05:02:44 +01:00
Michael Walker
bc205f428e Generalise and move BacktrackStep and findBacktrack to DPOR module. 2016-04-03 04:08:25 +01:00
Michael Walker
6f3bcb4190 Generalise and move next to DPOR module. 2016-04-03 04:07:50 +01:00
Michael Walker
3e6a463014 Generalise and move BPOR type to DPOR module 2016-04-03 04:07:05 +01:00
Michael Walker
8ae1bbe14b Start moving generic DPOR to separate module 2016-04-03 04:06:14 +01:00
Michael Walker
802d823351 Avoid repeated O(n) list traversals in todo.
Store the prior tid, rather than compute every time.
2016-04-03 04:05:22 +01:00
Michael Walker
87ffa1aa52 Remove the Commit decision 2016-04-03 04:04:31 +01:00