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

-----Message d'origine-----
De : frama-c-discuss-bounces at [mailto:frama-c-discuss-bounces at] De la part de Pascal Cuoq
Envoy? : lundi 11 juillet 2011 14:27
? : Frama-C public discussion
Objet : Re: [Frama-c-discuss] approximations in value analysis

>>> new->size = (int)next - (int)new - BLOCK_SIZE;
>> 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.

>Actually, it occurs to me that we could emit an alarm stating that
>next and new *must* be in the same block for the subtraction to make
>sense, and then evaluate the result as the set of values that can be
>obtained under this condition. 

Normally new and next are still in the same block that should not cause problems.
  next = block->next;
  new = (alloc_block_t*)((int)block + BLOCK_SIZE + size);
  block->next = new;
Frama-c-discuss mailing list
Frama-c-discuss at

This mail has originated outside your organization, either from an external partner or the Global Internet.
Keep this in mind if you answer this message.

The information in this e-mail is confidential. The contents may not be disclosed or used by anyone other than the addressee. Access to this e-mail by anyone else is unauthorised.
If you are not the intended recipient, please notify Airbus immediately and delete this e-mail.
Airbus cannot accept any responsibility for the accuracy or completeness of this e-mail as it has been sent over public networks. If you have any concerns over the content of this message or its Accuracy or Integrity, please contact Airbus immediately.
All outgoing e-mails from Airbus are checked using regularly updated virus scanning software but you should take whatever measures you deem to be appropriate to ensure that this message and any attachments are virus free.