-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
typo improvements for CH. 1 #29
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
waiting for @davidcok feedback
intro_modern.tex
Outdated
in \lstinline|//@| comments are alike. | ||
|
||
in \lstinline|//@| comments are similar. | ||
\marginpar{Somewhere it needs to be defined in what way ACSL specifications can be split across consecutive \lstinline|//@| comments, if they can be split at all. For example, JML requires each function contract clause to be completely within an annotation.} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The current implementation in Frama-C even requires the entire contract to be in the same comment. I'll propose something in this regard.
@@ -8,6 +8,11 @@ @Misc{ESCJava2 | |||
note = {\url{http://kind.ucd.ie/products/opensource/ESCJava2/}} | |||
} | |||
|
|||
@Misc{OpenJML, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@davidcok you didn't provide a reference for OpenJML. Is the site OK or do you prefer the OpenJML article mentioned there?
or more occurrences of $e$, $e^+$ for repetition of one or more | ||
occurrences of $e$, and $e^?$ for zero or one occurrence of $e$. For | ||
the sake of simplicity, we only describe annotations in the usual | ||
\lstinline|/*@ ... */| style of comments. One-line annotations | ||
in \lstinline|//@| comments are alike. | ||
|
||
in \lstinline|//@| comments are similar. Note however that two consecutive |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@davidcok does it answer your remark?
I will add an OpenJML link - or review the one you have added.
Regarding contracts and extent of comments - we should distinguish what the langue states and what the current implementation requires, if we decide they should be different.
- David
From: Virgile Prevosto <notifications@github.com>
To: acsl-language/acsl <acsl@noreply.github.com>
Cc: David Cok <cok@frontiernet.net>; Mention <mention@noreply.github.com>
Sent: Thursday, March 1, 2018 6:04 PM
Subject: Re: [acsl-language/acsl] typo improvements for CH. 1 (#29)
@vprevosto commented on this pull request.waiting for @davidcok feedbackIn intro_modern.tex:> or more occurrences of $e$, $e^+$ for repetition of one or more
occurrences of $e$, and $e^?$ for zero or one occurrence of $e$. For
the sake of simplicity, we only describe annotations in the usual
\lstinline|/*@ ... */| style of comments. One-line annotations
-in \lstinline|//@| comments are alike.
-
+in \lstinline|//@| comments are similar.
+\marginpar{Somewhere it needs to be defined in what way ACSL specifications can be split across consecutive \lstinline|//@| comments, if they can be split at all. For example, JML requires each function contract clause to be completely within an annotation.}
The current implementation in Frama-C even requires the entire contract to be in the same comment. I'll propose something in this regard.In biblio.bib:> @@ -8,6 +8,11 @@ @misc{ESCJava2
note = {\url{http://kind.ucd.ie/products/opensource/ESCJava2/}}
}
+@misc{OpenJML,
@davidcok you didn't provide a reference for OpenJML. Is the site OK or do you prefer the OpenJML article mentioned there?In intro_modern.tex:> or more occurrences of $e$, $e^+$ for repetition of one or more
occurrences of $e$, and $e^?$ for zero or one occurrence of $e$. For
the sake of simplicity, we only describe annotations in the usual
\lstinline|/*@ ... */| style of comments. One-line annotations
-in \lstinline|//@| comments are alike.
-
+in \lstinline|//@| comments are similar. Note however that two consecutive
@davidcok does it answer your remark?—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Regarding annotations: so must an entire function contract be in one annotation comment? What about multiple loop invariants?Regarding bibliography - I added some references in the jmlupdate branchOn Mar 1, 2018, at 6:04 PM, Virgile Prevosto <notifications@github.com> wrote:@vprevosto commented on this pull request.waiting for @davidcok feedbackIn intro_modern.tex:
or more occurrences of $e$, $e^+$ for repetition of one or more
occurrences of $e$, and $e^?$ for zero or one occurrence of $e$. For
the sake of simplicity, we only describe annotations in the usual
\lstinline|/*@ ... */| style of comments. One-line annotations
-in \lstinline|//@| comments are alike.
-
+in \lstinline|//@| comments are similar.
+\marginpar{Somewhere it needs to be defined in what way ACSL specifications can be split across consecutive \lstinline|//@| comments, if they can be split at all. For example, JML requires each function contract clause to be completely within an annotation.}
The current implementation in Frama-C even requires the entire contract to be in the same comment. I'll propose something in this regard.
In biblio.bib:
@@ -8,6 +8,11 @@ @misc{ESCJava2
note = {\url{http://kind.ucd.ie/products/opensource/ESCJava2/}}
}
+@misc{OpenJML,
@davidcok you didn't provide a reference for OpenJML. Is the site OK or do you prefer the OpenJML article mentioned there?
In intro_modern.tex:
or more occurrences of $e$, $e^+$ for repetition of one or more
occurrences of $e$, and $e^?$ for zero or one occurrence of $e$. For
the sake of simplicity, we only describe annotations in the usual
\lstinline|/*@ ... */| style of comments. One-line annotations
-in \lstinline|//@| comments are alike.
-
+in \lstinline|//@| comments are similar. Note however that two consecutive
@davidcok does it answer your remark?—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or mute the thread.
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/acsl-language/acsl","title":"acsl-language/acsl","subtitle":"GitHub repository","main_image_url":"<a href="https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png" class="">https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png</a>","avatar_image_url":"<a href="https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png" class="">https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png</a>","action":{"name":"Open in GitHub","url":"<a href="https://github.com/acsl-language/acsl" class="">https://github.com/acsl-language/acsl</a>"}},"updates":{"snippets":[{"icon":"PERSON","message":"@vprevosto commented on #29"}],"action":{"name":"View Pull Request","url":"<a href="#29 (review)" class="">#29 (review)</a>"}}}
|
A function contract must indeed be in one annotation comment. It's the same thing for loop annotations: there can only be a single one for each loop, and it must encompass all loop invariants and loop assigns related to the loop.
OK, thanks By the way, It seems that you made your comment by replying to the notification email you received, but I'm under the impression that github.com and your mailer do not cooperate very well, which makes your comment slightly difficult to read. |
(forgot to answer this remark, sorry)
Even though it was never explicitly mentioned, the fact that an ACSL annotation should fit entirely in a single comment has always been taken for granted. I'd suggest to keep the new clarification. If someone ever claims that they absolutely need to be able to split a contract/loop annotation into several comment, we might revise this option (of course, this person can be you 😁). |
Miscellaneous phrasing improvements to Sulfur Foreword & Ch. 1.