karelklic / canal

Abstract interpreter for real-world application programs
https://github.com/karelklic/canal/wiki
Other
32 stars 2 forks source link

Handle division by zero in interval #150

Closed xbrukner closed 11 years ago

xbrukner commented 11 years ago

If you divide by interval which contains zero, you can not only use the from and to value into account. You also have to take into account zero (because division is discontinuous). And since we decided to ignore zero and use either 1 or -1 (see #145), you have to use these values.

In Float::Interval, you use negative and positive infinity -> therefore top.