# SDA SE Wiki

Software Engineering for Smart Data Analytics & Smart Data Analytics for Software Engineering

# Differences

This shows you the differences between two versions of the page.

 teaching:labs:mdse:2013:bug_descriptions:jt-bug-cor6 [2019/02/13 00:08]Günter Kniesel [Detailed Description] teaching:labs:mdse:2013:bug_descriptions:jt-bug-cor6 [2019/06/19 11:27] (current)Günter Kniesel [Detailed Description] Both sides previous revision Previous revision 2019/06/19 11:27 Günter Kniesel [Detailed Description] 2019/02/13 00:08 Günter Kniesel [Detailed Description] 2019/02/13 00:03 Günter Kniesel [Detailed Description] 2018/05/09 01:59 external edit2014/02/13 17:14 malte.mauelshagen 2014/02/05 20:01 external edit2014/01/29 01:43 jorge.or 2014/01/27 17:25 external edit2013/10/13 19:53 santiago.zapata 2013/10/13 19:51 santiago.zapata 2013/10/13 19:48 santiago.zapata created 2019/06/19 11:27 Günter Kniesel [Detailed Description] 2019/02/13 00:08 Günter Kniesel [Detailed Description] 2019/02/13 00:03 Günter Kniesel [Detailed Description] 2018/05/09 01:59 external edit2014/02/13 17:14 malte.mauelshagen 2014/02/05 20:01 external edit2014/01/29 01:43 jorge.or 2014/01/27 17:25 external edit2013/10/13 19:53 santiago.zapata 2013/10/13 19:51 santiago.zapata 2013/10/13 19:48 santiago.zapata created Line 21: Line 21: Would assign c, as result, the value: 1 (1 in binary). ​ Would assign c, as result, the value: 1 (1 in binary). ​ - When the result of a bitwise AND operation is compared with another value, which can be determined before runtime and one of the compared numbers can also be determined before runtime, it is possible to detect if the comparison will always evaluate to false. This is owning to the fact that, in order to produce 1 at a particular bit, the AND operator requires that both none of the corresponding bits in the parameters are 1. If a 0 is detected in one operand, its very likely due to a logic error in the code or an incorrect usage of the AND operator where [[http://​docs.oracle.com/​javase/​tutorial/​java/​nutsandbolts/​op3.html| OR (|)]] should have been used. + When the result of a bitwise AND operation is compared with another value, which can be determined before runtime and one of the compared numbers can also be determined before runtime, it is possible to detect if the comparison will always evaluate to false. This is owning to the fact that, in order to produce 1 at a particular bit, the AND operator requires that both of the corresponding bits in the parameters are 1. If a 0 is detected in one operand, its very likely due to a logic error in the code or an incorrect usage of the AND operator where [[http://​docs.oracle.com/​javase/​tutorial/​java/​nutsandbolts/​op3.html| OR (|)]] should have been used. ===== Sample Problem Scenario ===== ===== Sample Problem Scenario =====
teaching/labs/mdse/2013/bug_descriptions/jt-bug-cor6.txt · Last modified: 2019/06/19 11:27 by Günter Kniesel