summaryrefslogtreecommitdiff
path: root/Test/dafny2/MajorityVote.dfy
diff options
context:
space:
mode:
Diffstat (limited to 'Test/dafny2/MajorityVote.dfy')
-rw-r--r--Test/dafny2/MajorityVote.dfy3
1 files changed, 3 insertions, 0 deletions
diff --git a/Test/dafny2/MajorityVote.dfy b/Test/dafny2/MajorityVote.dfy
index eb7ae766..51e5b968 100644
--- a/Test/dafny2/MajorityVote.dfy
+++ b/Test/dafny2/MajorityVote.dfy
@@ -1,3 +1,6 @@
+// RUN: %dafny /compile:0 /dprint:"%t.dprint" "%s" > "%t"
+// RUN: %diff "%s.expect" "%t"
+
// Rustan Leino, June 2012.
// This file verifies an algorithm, due to Boyer and Moore, that finds the majority choice
// among a sequence of votes, see http://www.cs.utexas.edu/~moore/best-ideas/mjrty/.