[BUG] [13:54] Interval's satisfies method #235
Labels
‼ priority:p1
Priority planning - level 1
🎊 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
Milestone
Description
In the satisfiesBinaryExpression method in the Interval domain when calculating the satisfiability of comparison BinaryExpression the method translate the GreaterThan operator in the LessOrEqualThan operator and the GreaterOrEqualThan operator in the
LessThan operator (in both case it switches the left and right operand). The conversion is wrong, it should be:
Reproducibility information
commit hash: 3122841
Expected behavior
If we calculate the the satisfiesBinaryExpression on the GreaterThan operator and on operand left: [0, 1000] and right: [0, 0] the expected output should be Satisfiability.UNKNOWN
Actual behavior
Instead what we see as output is Satisfiability.SATISFIED. That is because the GreaterThan operator is translated in the LessOrEqualThan operator with operand: right: [0, 0] and left: [0, 1000], which, in fact, is always satisfied
The text was updated successfully, but these errors were encountered: