Frama-C-discuss mailing list archives
This page gathers the archives of the old Frama-C-discuss archives, that was hosted by Inria's gforge before its demise at the end of 2020. To search for mails newer than September 2020, please visit the page of the new mailing list on Renater.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Frama-c-discuss] static arrays
- Subject: [Frama-c-discuss] static arrays
- From: junkil.park at cis.upenn.edu (Junkil (David) Park)
- Date: Mon, 17 Aug 2015 15:57:59 -0400
Hi, In the code below, the assertions in the main function are verified by Frama-C/WP (Sodium-20150201), but the assertions in the foo function are not. Can anyone please explain why? What is the semantics of static arrays in nested curly braces? void foo() { { static const int a[2] = { 4, 5 }; //@assert a[0] == 4; //@assert a[1] == 5; } } int main() { { static const int b[2] = { 9, 8 }; //@assert b[0] == 9; //@assert b[1] == 8; } return 0; } -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.gforge.inria.fr/pipermail/frama-c-discuss/attachments/20150817/0dff8154/attachment.html>
- Follow-Ups:
- [Frama-c-discuss] static arrays
- From: pascal.cuoq at gmail.com (Pascal Cuoq)
- [Frama-c-discuss] static arrays
- Prev by Date: [Frama-c-discuss] PhD position announcement: Mixing Unproved and Proved sub-systems through Contracts for Correct-by-Construction system design
- Next by Date: [Frama-c-discuss] static arrays
- Previous by thread: [Frama-c-discuss] PhD position announcement: Mixing Unproved and Proved sub-systems through Contracts for Correct-by-Construction system design
- Next by thread: [Frama-c-discuss] static arrays
- Index(es):