Skip to content

Commit 738cdf9

Browse files
committed
Fix check error
1 parent ff4b7fd commit 738cdf9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+57
-57
lines changed

tests/abstract-function-bad.slang

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
function square(n: Int) : Int
2-
ensures result == n * n
3-
4-
method c() {
5-
var y: Int := 4;
6-
// @CheckError
7-
assert 15 == square(y)
1+
function square(n: Int) : Int
2+
ensures result == n * n
3+
4+
method c() {
5+
var y: Int := 4;
6+
//@CheckError
7+
assert 15 == square(y)
88
}

tests/assert-assign-bad.slang

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
method client() {
22
var x: Int := 2 ;
3-
// @CheckError
3+
//@CheckError
44
assert x == 3
55
}

tests/assert-false.slang

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
method client() {
2-
// @CheckError
2+
//@CheckError
33
assert false
44
}

tests/assert-sum-bad.slang

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
method client() {
2-
// @CheckError
2+
//@CheckError
33
assert 1 + 2 == 4
44
}

tests/assert-true-false.slang

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
method client() {
22
assert true;
3-
// @CheckError
3+
//@CheckError
44
assert false
55
}

tests/assume-true.slang

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
method client() {
22
assume 2 == 2;
3-
// @CheckError
3+
//@CheckError
44
assert false
55
}

tests/break-paths-complex.slang

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ method client(n: Int)
2323
assert j == -1,
2424
n % 2 == 1 =>
2525
// This fails because j is actually -2
26-
// @CheckError
26+
//@CheckError
2727
assert j == -3,
2828
n % 2 == 2 =>
2929
assert false
3030
};
3131

3232
// this is reachable so should also fail
33-
// @CheckError
33+
//@CheckError
3434
assert false
3535
}

tests/broke-bad.slang

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ method client()
1010
true =>
1111
match {
1212
i == 15 =>
13-
// @CheckError
13+
//@CheckError
1414
break
1515
};
1616
i := i - 1

tests/broke-good.slang

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ method client()
1414
i := i - 1
1515
};
1616
assert i == 15;
17-
// @CheckError
17+
//@CheckError
1818
assert false
1919
}

tests/continue-invariant-bad.slang

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ method client(n: Int)
1111
match {
1212
i == 6 =>
1313
i := i + 1;
14-
// @CheckError
14+
//@CheckError
1515
continue
1616
};
1717
i := i + 2

0 commit comments

Comments
 (0)