<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div><div><div><div>Hi,</div>

<div><br></div><div>I have a question regarding the GEP instruction. Is 
it correct to consider that two GEP instructions compute the same memory
 address if and only if all their corresponding fields are equal? <br></div>
<div>
<br></div><div>For instance, for a two-dimensional array of integers, can we have two GEP instructions that are equal? <br></div><div><br></div><div>  %arrayidx = getelementptr [10 x [30 x i32]]* @main.B, i64 0, i64 0, i64 %tmp157</div>

<div><br>  %tmp = load i32* getelementptr inbounds ([10 x [30 x i32]]* @main.B, i64 0, i64 3, i64 10), align 8</div><div><br></div><div>although
 their corresponding indices are different? For instance if %tmp157 goes
 out of the bounds of the line 0 and computes the address of the 10th 
element in line 3.</div>

<div><br></div><div><br></div><div>Thank
 you,</div>Alexandra</div></div></div></div></body></html>