Displaying 1 result from an estimated 1 matches for "c7c542af".
Did you mean:
07c5c2af
2019 Mar 22
2
Understand if a condition was true or false
Hi all,
I have the condition of an ICmpInst in a variable called condition obtained
doing GenericValue condition = getOperandValue(&I, SF);
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?
I'm not sure because I was expecting