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] Lemma from ACSL doc doesn't verify

  • Subject: [Frama-c-discuss] Lemma from ACSL doc doesn't verify
  • From: Boris.Hollas at (Hollas Boris (CR/AEY1))
  • Date: Thu, 3 Dec 2009 13:03:30 +0100
  • In-reply-to: <>
  • References: <> <20091125162200.0a3ccb44@is010235> <> <>

> But the way, for using these lemmas in your codes, PLEASE USE TYPE
> integer INSTEAD OF TYPE int

> /@ lemma mean_property: \forall integer l, h; l <= h  ==>  l <= l + (h-l)/2 <= h;

> - Claude

If I use

/@ lemma mean_property2: \forall integer l, h; l <= h  ==>  l <= (l+h)/2 <= h;

Instead of the lemma above and try to use it for numbers of type int, will the prover detect that mean_property2 doesn't hold for int as (l+h) may overflow?