[BUG] Intervals multiplication #81
Labels
🎊 resolution:resolved
Bug or feature resolved - might not have been merged to master yet
🔍 scope:analysis
Work regarding abstract domains or fixpoint algorithms
🐛 type:bug
Something isn't working
Projects
Milestone
Description
There is a mistake in the current implementation of interval multiplication: it calculates
x2 * y2
in the intervals multiplication equations, instead ofx1 * y2
.Source: https://en.wikipedia.org/wiki/Interval_arithmetic#Interval_operators
Reproducibility information
This bug was introduced in commit ae11414 , on master branch inside the file
lisa/src/test/java/it/unive/lisa/test/imp/tutorial/intervals/Intv.java
.You can reproduce this bug by doing operations in your programs like:
[5,5] * [10,10]
, that returns:[50, 100]
instead of the correct answer:[50, 50]
.The text was updated successfully, but these errors were encountered: