Hi, I have a program like: main() { int i,*k; k = &i; i=4; ...... } then why dont i get {k -> i} ie k is aliased to i in any of the analysis. If i want to get this then how can i get it. thanks and regards, Ambika
Hi ambika,> main() { > int i,*k; > k = &i;> then why dont i get {k -> i} ie k is aliased to i in any of the analysis.only pointers can alias each other, and i is not a pointer. Ciao, Duncan.
Oh m sorry for that mistake as I had points to in mind. But still what about the following prog: int main() { int *i,*j,k; i=&k; j=&k; k=4; printf("%d,%d,%d",*i,*j,k); return 0; } here too i dont get <i,j> alias each other. Duncan Sands wrote:> Hi ambika, > >> main() { >> int i,*k; >> k = &i; > >> then why dont i get {k -> i} ie k is aliased to i in any of the >> analysis. > > only pointers can alias each other, and i is not a pointer. > > Ciao, > > Duncan.
Possibly Parallel Threads
- [LLVMdev] A very basic doubt about LLVM Alias Analysis
- [LLVMdev] A very basic doubt about LLVM Alias Analysis
- [LLVMdev] A very basic doubt about LLVM Alias Analysis
- [LLVMdev] A very basic doubt about LLVM Alias Analysis
- [LLVMdev] A very basic doubt about LLVM Alias Analysis