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] Unable to prove the example code in ACSL documentation
- Subject: [Frama-c-discuss] Unable to prove the example code in ACSL documentation
- From: georgeleeliangwei at gmail.com (gg lee)
- Date: Thu, 23 Oct 2014 16:12:16 +0800
Hi, I am trying to prove a function A in file A.c which invokes another function B in file B.c, but this function B has the contract "assigns X" which is a static global variable in B.c. This causes a problem since function A cannot see variable X. I looked through the ACSL documentation (Neon version) and found that under the appendix "A.4.1 Accessing a C variable that is masked", which seems like the solution to my problem. However, after running Frama-C (Neon) on the example code: int x; //@ ghost int* const ghost_ptr_x = &x; //@ assigns x; int g() { return x; } //@ assigns *ghost_ptr_x; int f(int x) { // ... return g(); } surprisingly I am not able to prove the code completely. Please help me on this as I have been stuck on this for a few days. Thanks. George -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.gforge.inria.fr/pipermail/frama-c-discuss/attachments/20141023/24750d69/attachment.html>
- Follow-Ups:
- [Frama-c-discuss] Unable to prove the example code in ACSL documentation
- From: loic.correnson at cea.fr (Loïc Correnson)
- [Frama-c-discuss] Unable to prove the example code in ACSL documentation
- From: virgile.prevosto at m4x.org (Virgile Prevosto)
- [Frama-c-discuss] Unable to prove the example code in ACSL documentation
- From: kazarmy at gmail.com (Khairul Azhar Kasmiran)
- [Frama-c-discuss] Unable to prove the example code in ACSL documentation
- Prev by Date: [Frama-c-discuss] CFP: 9th International Conference on TESTS AND PROOFS (TAP 2015)
- Next by Date: [Frama-c-discuss] Unable to prove the example code in ACSL documentation
- Previous by thread: [Frama-c-discuss] CFP: 9th International Conference on TESTS AND PROOFS (TAP 2015)
- Next by thread: [Frama-c-discuss] Unable to prove the example code in ACSL documentation
- Index(es):