-
Notifications
You must be signed in to change notification settings - Fork 16
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
Stephen Gaito's comments on the Tutorial #46
Comments
About exercise 3.1.3.3, which version of Alt-Ergo do you use ? (the timeout is expressed in seconds). |
@AllanBlanchard As requested I have supplied more context information above.... alas I suspect there may be two problems... Firstly My machine is rather elderly so 10 seconds of elapsed time might not allow Alt-Ergo enough time ;-( So an explicit gentle reminder to increase timeouts on older machines would be welcome.... but in hindsight you have implicitly essentially suggested as much.... I was just being a "human of very little brain" and did not notice. Secondly I have observed that one or other of Frama-C-Gui and/or WP (or even possibly Alt-Ergo) are not clearing their internal state... after a number of attempts at checking something I notice that VCs start to fail which I know should succeed... once I fully restart Frama-C-Gui all of the VCs succeed in the first attempt. Alas there is no repeatable set of actions which exhibit this ... so there is very little way I could raise a meaningful issue on Frama-C/WP. SO, my problems with exercise 3.1.3.3 might have come from working on an old Frama-C-Gui / WP state... I have just checked that your answer to exercise 3.1.3.3 on my machine fails with 10 seconds timeout but succeeds when run a second time with a 20 second timeout. When I try your answer with a fresh startup of Frama-C-Gui/WP and 20 seconds timeout, it fails the first time and succeeds on the second attempt... SO there is some issue with the underlying internal state of Frama-C-Gui/WP/Why3/Alt-Ergo (I note that I still have 9525 MiB of free memory -- so running out of RAM is not the issue) ;-( I guess I should raise this as an issue with Frama-C-Gui/WP ;-( I discovered this (mild) "instability" of the Frama-C-Gui while trying to use Frama-C in a way similar to Dafny.... unfortunately rapid editing and re-view of VCs successes are limited by this "instability".... I can not fully trust that VC failures are true failures... |
On my machine, the proof is produced by Alt-Ergo 2.4.1 in 5 ms. So even if you have an old machine 10 seconds should be enough (there are examples where a bigger timeout is needed, or where I have identified regressions between Alt-Ergo 2.4.0 and 2.4.1). Let us eliminate some sources of nondeterminism, and check whether the example is proved:
First, try running:
Then:
Then:
And start the proof via the GUI. If all of these succeeds, that probably means that there are even more problem with the GUI than we had before and that the reparse button should not be used anymore (so I have to remove it from the tutorial until Ivette is ready). |
I have removed all I have removed
The command:
results in: The command:
results in: Alas, it looks like on my machine I can not reliably use the reparse button.... taking me even further from Dafny.... hey ho! |
Stranger and stranger. In the first GUI command, the "Messages" tab indicates 3 messages. Can you show me the messages (and also the content of the console)? |
While I have re-removed the .frama-c directory and run the
Now only gives me two messages: The console contains:
|
Ok 🤔 . And what are the messages indicated with the third way to start the verification? So:
And start the proof via the GUI. |
@AllanBlanchard Sorry I got distracted :$
gives: and in the console:
|
Ok, that's really strange, I'll try to reproduce in VM with your settings. |
This (single?) issue will contain my evolving comments and issues with this (wonderful!) tutorial.
I intend to keep an expanding task list of items I think need addressing. (Feel free to
strikethroughany tasks which are out of scope).an Appendix describing the WP interactive proof editor (all in one place) which is more detailed than the WP user document's coverage. (created issue Interactive proof editor #47)
Exercise 3.1.3.3 Alphabet Letter: the provided answer takes longer than the frama-c-gui's default timeout of 10ms(?) -- you might want to add some comments about the possible need to up/change the default timeout? (using this answer with frama-c on the command line succeeds, so your regression tests probably do not show this issue).
... more to come...
See also
Contextual information
The text was updated successfully, but these errors were encountered: