1 %inners = type {float, {ubyte } }
2 %struct = type { int , {float, {ubyte } } , ulong }
6 int "test function"(int %i0, int %j0)
9 %ptr = alloca int ; yields {int*}:ptr
10 store int 3, int* %ptr ; yields {void}
11 %val = load int* %ptr ; yields {int}:val = int %3
13 %sptr = alloca %struct ; yields {%struct*}:sptr
14 %nsptr = getelementptr %struct * %sptr, uint 0, ubyte 1 ; yields {inners*}:nsptr
15 %ubsptr = getelementptr %inners * %nsptr, uint 0, ubyte 1 ; yields {{ubyte}*}:ubsptr
16 store ubyte 4, {ubyte} * %ubsptr, uint 0, ubyte 0
18 %fptr = getelementptr %struct * %sptr, uint 0, ubyte 1, ubyte 0 ; yields {float*}:fptr
19 store float 4.0, float * %fptr