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] specifying binary search trees ...?

  • Subject: [Frama-c-discuss] specifying binary search trees ...?
  • From: Claude.Marche at (Claude Marché)
  • Date: Tue, 21 Oct 2014 13:12:11 +0200
  • In-reply-to: <>
  • References: <>

Le 26/09/2014 18:02, Marko Sch?tz Schmuck a ?crit :
> Dear All,
> I'd like to specify binary search trees parameterized with the
> comparison function on the data items stored in them. I run into the
> problem that I am not allowed to do anything with the function
> pointers other than check for equality.
> How would one go about this?

Well, the first thing I would do is to specify binary search trees with 
a specific comparison function. I would think about making a parametric 
one only after succeeding to specify and prove a specific one.

Then, to make that parametric, I'm afraid that ACSL is missing 
constructs on function pointers: typically, one would like to specify 
something like "the function pointed by this pointer has this contract". 
But I'm not aware of any way to do that in ACSL.

By the way, about specification of binary search trees and similar 
structures, there are already many existing material, e.g see the recent 

or the VCC case study

Hope this helps,

- Claude

Claude March?                          | tel: +33 1 72 92 59 69
INRIA Saclay - ?le-de-France           |
Universit? Paris-sud, Bat. 650         |
F-91405 ORSAY Cedex                    |