I used the command alive-tv src.ll tgt.ll for verification, and the result was correct. However, I believe the result should be incorrect because the return a + b in the tgt.c file uses an address value. It should be changed to return a + *b to be correct. Is this a false positive?
The result of the addition is not observable, so there's nothing to verify. In both cases, main() returns 0 and has no further side effects.
You need to, e.g., print the value or call some external function.
I am trying to use alive-tv. My src file and their IR are as follow:
My tgt file and their IR are as fllow:
I used the command alive-tv src.ll tgt.ll for verification, and the result was correct. However, I believe the result should be incorrect because the return a + b in the tgt.c file uses an address value. It should be changed to return a + *b to be correct. Is this a false positive?