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] RE : [wp] type conversion check is less strict than Jessie?
- Subject: [Frama-c-discuss] RE : [wp] type conversion check is less strict than Jessie?
- From: x_cui at hotmail.com (Xiao-lei Cui)
- Date: Tue, 10 Dec 2013 21:13:45 -0500
- In-reply-to: <9714BB54B80D7946B2C6265DCB0AE1491A6AC187@EXDAG0-B0.intra.cea.fr>
- References: <BAY169-W53ACB8A0A8736E8656A8DC97D30@phx.gbl>, <9714BB54B80D7946B2C6265DCB0AE1491A6AC187@EXDAG0-B0.intra.cea.fr>
Hi, Thanks for the hints! The version I am using is Fluorine-20130401, WP 0.7. The wp help manual shows: -wp-model <model+...> Memory model selection. Available selectors: * 'Hoare' logic variables only * 'Typed' typed pointers only * '+nocast' no pointer cast * '+cast' unsafe pointer casts * '+raw' no logic variable * '+ref' by-reference-style pointers detection * '+nat/+cint' natural or machine integers arithmetics * '+real/+float' real or IEEE floatting point arithmetics If I understood it correctly, those are the options. But I am not clear about the difference between +cast and +nocast? Moreover, is the model to be configured in command line this way : $ frama-c -wp wp-model Typed+nocast file.c thanks xiao-lei From: loic.correnson at cea.fr To: frama-c-discuss at lists.gforge.inria.fr Date: Mon, 9 Dec 2013 14:33:53 +0000 Subject: [Frama-c-discuss] RE : [wp] type conversion check is less strict than Jessie? Hi, This is because you are casting a constant int into a pointer, which makes a valid physical address. However, you can not do pointer arithmetics on such values, say, you **can not prove** that (int *) 0x100 shifted by one (on 64-bit machine) leads to (int *) 0x108. By the way, I'm surprise by the output of WP you report here. Which version are you using ? I suggest you to move to Fluorine, where the memory model of wp offers more options on pointers and casts. Regards. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.gforge.inria.fr/pipermail/frama-c-discuss/attachments/20131210/4a838ce9/attachment.html>
- Follow-Ups:
- [Frama-c-discuss] RE : RE : [wp] type conversion check is less strict than Jessie?
- From: loic.correnson at cea.fr (CORRENSON Loic 218851)
- [Frama-c-discuss] RE : RE : [wp] type conversion check is less strict than Jessie?
- References:
- [Frama-c-discuss] [wp] type conversion check is less strict than Jessie?
- From: x_cui at hotmail.com (Xiao-lei Cui)
- [Frama-c-discuss] RE : [wp] type conversion check is less strict than Jessie?
- From: loic.correnson at cea.fr (CORRENSON Loic 218851)
- [Frama-c-discuss] [wp] type conversion check is less strict than Jessie?
- Prev by Date: [Frama-c-discuss] how to modify stmt in AST by using a visitor
- Next by Date: [Frama-c-discuss] RE : RE : [wp] type conversion check is less strict than Jessie?
- Previous by thread: [Frama-c-discuss] RE : [wp] type conversion check is less strict than Jessie?
- Next by thread: [Frama-c-discuss] RE : RE : [wp] type conversion check is less strict than Jessie?
- Index(es):