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] Frama-C: Detecting unreachable code? (Dharmalingam Ganesan)


Yes, it does satisfy the contract. However, if there is a conditional statement which is always true then it is good to get feedback on that. It is a programming error most likely...

Best regards,

-----Original Message-----
From: frama-c-discuss-bounces at [mailto:frama-c-discuss-bounces at] On Behalf Of Gerlach, Jens
Sent: Saturday, January 25, 2014 6:31 AM
To: Discussion Discussion
Subject: Re: [Frama-c-discuss] Frama-C: Detecting unreachable code? (Dharmalingam Ganesan)

Hello Dharma,

I think your function satisfies its contract.
So, what shall Frama-C do?

Maybe, your issue is that the function also satisfies the following simpler contract?


int MAX_VALUE = 100;

float x = 0.0;

int status = 0;

  requires MAX_VALUE == 100;
  assigns status;
  ensures status == -1;
int main()

  if((x > MAX_VALUE) ||
     (x <= MAX_VALUE))
     status = -1;

Frama-c-discuss mailing list
Frama-c-discuss at