summaryrefslogtreecommitdiff
path: root/Source/Core/GraphAlgorithms.cs
diff options
context:
space:
mode:
authorGravatar mikebarnett <unknown>2011-03-07 05:15:14 +0000
committerGravatar mikebarnett <unknown>2011-03-07 05:15:14 +0000
commit241de8264a32285d371a53d8d91a219625d76922 (patch)
treebde7c8c1dead587fc23a131810cf32779d7e9c8f /Source/Core/GraphAlgorithms.cs
parent0cd15d2b78a68bcdc566b31d53287f63625560e7 (diff)
Fix contracts so runtime checking can be turned on.
Diffstat (limited to 'Source/Core/GraphAlgorithms.cs')
-rw-r--r--Source/Core/GraphAlgorithms.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/GraphAlgorithms.cs b/Source/Core/GraphAlgorithms.cs
index e901005e..0815e54a 100644
--- a/Source/Core/GraphAlgorithms.cs
+++ b/Source/Core/GraphAlgorithms.cs
@@ -72,10 +72,10 @@ namespace Microsoft.Boogie {
}
public sealed class StronglyConnectedComponents<Node> : IEnumerable<SCC<Node>/*!*/> {
- private readonly IDictionary<Node/*!*/, object/*!*/>/*!*/ graph;
+ private readonly IDictionary<Node/*!*/, object>/*!*/ graph;
[ContractInvariantMethod]
void graphInvariantMethod() {
- Contract.Invariant(cce.NonNullElements(graph));
+ Contract.Invariant(Contract.ForAll(graph, entry => entry.Key != null));
Contract.Invariant(preds != null);
Contract.Invariant(succs != null);
}