<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div>Hi,<br><br>i need a sample-code, for which the llvm alias-analysis finds a *must-aliases*.<br>I have tried codes like followings. In all cases, i see just *may-aliases* when i use "opt -aa-eval -print-all-alias-modref-info foo.bc":<br><br>Regards<br>Raad <br><br><br>1 ==========================================<br>void foo() {<br> int i = 2;<br> int& r = i;<br>} <br><br>2 ===========================================<br>void foo(){<br> int gi;<br> int *gip1 = &gi;<br> int *gip2 = &gi;<br>}<br><br>3 ==========================================<br>void foo (double * fa){<br> int fi, fj;<br> fi = 0;<br> fj = 2;<br> if (!
fa)<br> fj = fj + 4;<br> fa[fi] = fa[fi + fj];<br>}<br></div></div><br>
</body></html>