Throw error in incorporateTrace if no to-do points.

This commit is contained in:
Michael Walker 2017-02-25 05:33:29 +00:00
parent 0079254b8b
commit 3efc8acaed

View File

@ -167,7 +167,7 @@ incorporateTrace dependency conservative trace dpor0 = grow initialDepState (ini
, dporTodo = M.delete tid' (dporTodo dpor) , dporTodo = M.delete tid' (dporTodo dpor)
, dporDone = done , dporDone = done
} }
grow _ _ [] dpor = dpor grow _ _ [] _ = err "incorporateTrace" "trace exhausted without reading a to-do point!"
-- Construct a new subtree corresponding to a trace suffix. -- Construct a new subtree corresponding to a trace suffix.
subtree state tid sleep ((_, _, a):rest) = subtree state tid sleep ((_, _, a):rest) =