Skip to content

Commit 0854a6b

Browse files
committed
Update error message text
1 parent 90eda22 commit 0854a6b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/lec1_logic.dfy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ lemma AbsStrictlyLarger_attempt(x: int)
102102
// other languages.
103103
if x < 0 {
104104
// there's no error here! the postcondition actually does hold on this path
105-
} else { // error: a postcondition might not hold on this return path
105+
} else { // error: a postcondition could not be proved on this return path
106106
// But here, if we think about it, we realize abs(x) == x.
107107
assert abs(x) == x;
108108
}

src/lec2_sequences.dfy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ lemma CheckedPreconditions(s: seq<int>, i: nat)
7676
lemma CheckedFunctionPreconditions(s: seq<int>, i: nat)
7777
// almost same as above, but notice that the error specifically points to the
7878
// `SeqGet` precondition
79-
requires SeqGet(s, i) > 0 // error: function precondition might not hold
79+
requires SeqGet(s, i) > 0 // error: function precondition could not be proved
8080
{}
8181

8282
lemma SequenceAppendFact(s1: seq<int>, s2: seq<int>)

src/lec3_algebraic_datatypes.dfy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ lemma MilkDrink_spec_v1(coffee: CoffeeRecipe)
160160
match coffee {
161161
case Latte(milk) => {}
162162
case Espresso(drip) => {}
163-
case Drip(oz, milk) => { // error: A postcondition might not hold on this return path
163+
case Drip(oz, milk) => { // error: A postcondition could not be proved on this return path
164164
// the error message pinpoints this case
165165
}
166166
}

0 commit comments

Comments
 (0)