Blog

Helping the value analysis — part 3
Pascal Cuoq on 11 April 2012

Sven Mattsen is working at CEA until the summer. He is the author of this post. The post continues the series explaining how to guide the value analysis towards more precise conclusions. It starts where that one and that other left off. Problem This article is concerned with the Value...

Read More

Why do signed overflows so often do what programmers expect?
Pascal Cuoq on 29 March 2012

Semi-serious musings During the Frama-C random testing experiment described at length on this blog and this page we found a few bugs in Csmith too. John Regehr one of the Csmith developers and not entirely coincidentally a co-author of the article linked in the previous post is also a co-author...

Read More

More about integer overflows
Pascal Cuoq on 28 March 2012

It may be because I read an earlier draft that has had the time to sink in, but I find this article on the subject of integer overflows extremely clear and informative. It relates to the previous post. Key quote: integer overflow issues in C and C++ [...] are common...

Read More

Overflow alarms vs informative messages about 2's complement
Pascal Cuoq on 27 March 2012

A privately sent question may deserve a quick blog post. Context The example is as below: int x, y, s; main(){ x = Frama_C_interval(0, 2000000000); y = 1000000000; s = x + y; Frama_C_dump_each(); } Sorry for all the zeroes. There are nine of them in each large constant, so...

Read More