simple.ll 591 B

123456789101112131415161718
  1. ; This testcase consists of alias relations which should be completely
  2. ; resolvable by cfl-aa (derived from BasicAA/2003-11-04-SimpleCases.ll).
  3. ; RUN: opt < %s -cfl-aa -aa-eval -print-may-aliases -disable-output 2>&1 | FileCheck %s
  4. %T = type { i32, [10 x i8] }
  5. ; CHECK: Function: test
  6. ; CHECK-NOT: May:
  7. define void @test(%T* %P) {
  8. %A = getelementptr %T, %T* %P, i64 0
  9. %B = getelementptr %T, %T* %P, i64 0, i32 0
  10. %C = getelementptr %T, %T* %P, i64 0, i32 1
  11. %D = getelementptr %T, %T* %P, i64 0, i32 1, i64 0
  12. %E = getelementptr %T, %T* %P, i64 0, i32 1, i64 5
  13. ret void
  14. }