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] Alt Ergo - Problem

  • Subject: [Frama-c-discuss] Alt Ergo - Problem
  • From: kurt at (Kurt Roeckx)
  • Date: Sat, 3 Oct 2015 22:29:04 +0200
  • In-reply-to: <>
  • References: <B517F47C2F6D914AA8121201F9EBEE6701C76682DC58@Mail1.FCMD.local> <> <B517F47C2F6D914AA8121201F9EBEE6701C76682E584@Mail1.FCMD.local> <> <B517F47C2F6D914AA8121201F9EBEE6701C7CAEBB147@Mail1.FCMD.local> <> <B517F47C2F6D914AA8121201F9EBEE6701C7CAEBB172@Mail1.FCMD.local> <> <B517F47C2F6D914AA8121201F9EBEE6701C7CAEBB178@Mail1.FCMD.local> <>

On Sat, Oct 03, 2015 at 10:03:26PM +0200, Pascal Cuoq wrote:
> The usual logic rules do not apply in a C program in presence of undefined
> behavior.

Just to clarify this, the compiler will assume you did not do
something that creates undefined behaviour, so it assumes that in
case of a (signed) int x that x * x does not overflow, and so that
if x >= 0 then x * x must be >= 0.