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] JessieIntegerModel question


  • Subject: [Frama-c-discuss] JessieIntegerModel question
  • From: regehr at cs.utah.edu (John Regehr)
  • Date: Thu, 07 Nov 2013 14:26:45 -0700

Ok, one more question, hopefully smarter than the last one.

If I understand correctly, Jessie's three integer models are:

- math -- infinite range
- modulo -- both signed and unsigned behave as if two's complement
- strict -- no overflow permitted

The problem is that none of these is a match for C. In C, unsigned 
integers follow the modulo rules and signed integers follow the strict 
rules. Is there a way to get the C integer model in Jessie?  Otherwise 
it seems like I might be stuck with some strange tradeoffs.

Thanks,

John Regehr