<div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi all,</div><div>I have the condition of an ICmpInst in a variable called condition obtained doing GenericValue condition = getOperandValue(&I, SF);</div><div><br></div><div>Now I would like to understand if the comparison was true or false. Is it correct to use condition.IntVal.getSExtValue() and if the value is 0 consider the true and if the value is -1 consider the condition false?</div><div><br></div><div>I'm not sure because I was expecting something different and I'm a bit lost</div><div><br></div><div>Should I use another approach?</div><div><br></div><div>Thanks<br></div></div></div></div>