-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1076 from utwente-fmt/inline-pattern-let
- Loading branch information
Showing
3 changed files
with
71 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
test/main/vct/test/integration/features/PatternInlinesLet.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package vct.test.integration.features | ||
|
||
import vct.test.integration.helper.VercorsSpec | ||
|
||
class PatternInlinesLet extends VercorsSpec { | ||
vercors should verify using anyBackend in "example that shows let bindings are inlined in patterns" pvl """ | ||
pure int f(int x); | ||
pure int g(int x, int y); | ||
requires (\forall int i; (\let int j = g(i, i); {: f(j) :} == 0)); | ||
void test() { | ||
assert f(g(5, 5)) == 0; | ||
} | ||
""" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters