Quote Originally Posted by hamster_nz View Post
As I don't know your code or the problem you are solving , so I can't tell what you know is not right.

What seems to be the problem? and what would you expect the correct output would be? What should be happening but isn't?
In the output I gave, this:
Code:
test.c:122: reg_compare() 1: num.node = 8, val.node = 9
test.c:126: reg_compare() 2: num.node = 8, val.node = 9
test.c:130: reg_compare() 3: num.node = 8, val.node = 9
test.c:140: reg_compare() 4: num.node = 8, val.node = 9
Is the correct difference those values should ALWAYS have because they are supposed to refer to different registers, this:
Code:
test.c:122: reg_compare() 1: num.node = 9, val.node = 9
test.c:126: reg_compare() 2: num.node = 9, val.node = 9
test.c:130: reg_compare() 3: num.node = 9, val.node = 9
test.c:140: reg_compare() 4: num.node = 9, val.node = 9
Is an example of corrupt output as they refer to the same register