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] approximations in value analysis
- Subject: [Frama-c-discuss] approximations in value analysis
- From: pascal.cuoq at gmail.com (Pascal Cuoq)
- Date: Mon, 11 Jul 2011 11:37:01 +0200
- In-reply-to: <784_1310023508_4E155F54_784_241_1_12615CBFF54930468079CF80A7B1355339BF77ABAD@DE0-MAILMBX-P13.res.airbus.corp>
- References: <Acw8dvyTbgyqbyxvThWoanSEares4w==> <784_1310023508_4E155F54_784_241_1_12615CBFF54930468079CF80A7B1355339BF77ABAD@DE0-MAILMBX-P13.res.airbus.corp>
On Thursday, July 7, 2011, SENE, Sali <sali.sene at airbus.com> wrote: > I have many approximations in the result of my analysis. Some of this approximations are caused by arithmetic on variable pointer. Be aware that the indications provided in the log are only hints as to the cause of the approximation. Engineer judgement is required to determine, with help from these hints, the true cause of the approximation. > > sources/alloc_new.c:59:[value] reading left-value new. > ??????? It contains a garbled mix of {heap; ioctl_requests; ioctl_args; "DRIVER DSO"; } > ??????? because of Arithmetic {sources/alloc_new.c:56; }. > > The line alloc_new.c:56 > new->size = (int)next - (int)new - BLOCK_SIZE; > > next and new are some variable pointer. This is something that the value analysis handles perfectly, as you can check on a small example, when next and new are in the same block. It cannot handle it (because there is no good answer) when it has not been able to determine that next and new point inside the same block. If this is the reason for the approximation, the fix is to force the value analysis to reach this line only with values for next and new inside the same block, by whatever means. Pascal
- Follow-Ups:
- [Frama-c-discuss] approximations in value analysis
- From: pascal.cuoq at gmail.com (Pascal Cuoq)
- [Frama-c-discuss] approximations in value analysis
- References:
- [Frama-c-discuss] approximations in value analysis
- From: sali.sene at airbus.com (SENE, Sali)
- [Frama-c-discuss] approximations in value analysis
- Prev by Date: [Frama-c-discuss] unbound value when calling "Annotations.get_annotations"
- Next by Date: [Frama-c-discuss] approximations in value analysis
- Previous by thread: [Frama-c-discuss] approximations in value analysis
- Next by thread: [Frama-c-discuss] approximations in value analysis
- Index(es):