code annotation placed above a local declaration are not correctly handled
ID0001009:
**This issue was created automatically from Mantis Issue 1009. Further discussion may take place here.**
---
| **Id** | **Project** | **Category** | **View** | **Due Date** | **Updated** |
| --- | --- | --- | --- | --- | --- |
| ID0001009 | Frama-C | Kernel > ACSL implementation | public | 2011-11-04 | 2014-02-12 |
| | | | | | |
| --- | --- | --- | --- | --- | --- |
| **Reporter** | virgile | **Assigned To** | virgile | **Resolution** | fixed |
| **Priority** | normal | **Severity** | minor | **Reproducibility** | always |
| **Platform** | - | **OS** | - | **OS Version** | - |
| **Product Version** | Frama-C GIT, precise the release id | **Target Version** | - | **Fixed in Version** | Frama-C Oxygen-20120901 |
### Description :
with the attached file.i, frama-c -check file.i crashes. Apparently local x is not put in the appropriate block.
### Additional Information :
If you replace the assert with an ensures (arguably a function contract in this place does not mean anything), it is silently discarded.
## Attachments
- [file.i](/uploads/a88c569413cf827b5c301aa038732516/file.i)
issue