-
Notifications
You must be signed in to change notification settings - Fork 10
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 #146 from shym/pure
Add pure OCaml and ghost functions to the context
- Loading branch information
Showing
5 changed files
with
56 additions
and
8 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
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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
type t = { c : int } | ||
|
||
let make i = { c = i } | ||
let plus1 i = i + 1 | ||
let plus2 i = i + 2 | ||
let get { c } = c |
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
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 |
---|---|---|
@@ -1,5 +1,13 @@ | ||
File "record.mli", line 13, characters 16-19: | ||
13 | ensures i = r.c *) | ||
File "record.mli", line 9, characters 12-22: | ||
9 | val plus1 : int -> int | ||
^^^^^^^^^^ | ||
Warning: Skipping plus1: functions with no SUT argument cannot be tested. | ||
File "record.mli", line 15, characters 12-22: | ||
15 | val plus2 : int -> int | ||
^^^^^^^^^^ | ||
Warning: Skipping plus2: functions with no SUT argument cannot be tested. | ||
File "record.mli", line 24, characters 16-19: | ||
24 | ensures i = r.c | ||
^^^ | ||
Warning: Skipping clause: occurrences of the SUT in clauses are only | ||
supported to access its model fields. |
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