1 %struct = type { int , {float, {ubyte } } , ulong }
2 %complexty = type {int, {[4 x sbyte *], float}, double}
8 call int %testfunction(long 0, long 1)
12 int "testfunction"(long %i0, long %j0)
14 %array0 = malloc [4 x ubyte] ; yields {[4 x ubyte]*}:array0
15 %size = add uint 2, 2 ; yields {uint}:size = uint %4
16 %array1 = malloc ubyte, uint 4 ; yields {ubyte*}:array1
17 %array2 = malloc ubyte, uint %size ; yields {ubyte*}:array2
19 %idx = getelementptr [4 x ubyte]* %array0, long 0, long 2
20 store ubyte 123, ubyte* %idx
21 free [4x ubyte]* %array0
26 %aa = alloca %complexty, uint 5
27 %idx2 = getelementptr %complexty* %aa, long %i0, ubyte 1, ubyte 0, long %j0
28 store sbyte *null, sbyte** %idx2
30 %ptr = alloca int ; yields {int*}:ptr
31 store int 3, int* %ptr ; yields {void}
32 %val = load int* %ptr ; yields {int}:val = int %3
34 %sptr = alloca %struct ; yields {%struct*}:sptr
35 %ubsptr = getelementptr %struct * %sptr, long 0, ubyte 1, ubyte 1 ; yields {{ubyte}*}:ubsptr
36 %idx3 = getelementptr {ubyte} * %ubsptr, long 0, ubyte 0
37 store ubyte 4, ubyte* %idx3