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] Selection Sort loop-invariant problem


  • Subject: [Frama-c-discuss] Selection Sort loop-invariant problem
  • From: ulissesaraujocosta at gmail.com (Ulisses Araújo Costa)
  • Date: Wed, 24 Jun 2009 16:36:07 +0100

Hello everyone,

apparently the example that the online manual has a problem with the sorting
algorithm.
It seems that frama-c can not prove the preservation of the outer-loop
invariant:

    @   Sorted(t,0,i) &&
    @   (\forall integer k1, k2 ;
    @      0 <= k1 < i <= k2 < n ==> t[k1] <= t[k2]) ;

I tried to fix but failed. Can you help me?

Cheers,

-- 
Ulisses Ara?jo Costa - http://caos.di.uminho.pt/~ulisses/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.gforge.inria.fr/pipermail/frama-c-discuss/attachments/20090624/f25f565d/attachment.htm