A program with a return statement which appears within at least 2 nested loops
cannot be verified in general.
The problem is that there is a program variable "rtrn" holding whether a return
has been encountered. It is introduced when handling the first loop. Since it
is a program variable assigned to in the loop body, it becomes anonymised when
handling the inner loop. Due to this effect, the program loses information. This
cannot be fixed in a JML invariant since the new program variables are introduced
only after parsing the specification.
This issue was created at git.key-project.org where the discussions are preserved.
Description
Steps to reproduce
Files
AA.java
:History
(at)mulbrich -- (
NEW_BUG
) 2012-12-19(at)mulbrich -- (
FILE_ADDED
) 2012-12-19Attributes
View in Mantis
Information: