main() {
  int int_array[6], *p_int, i;
  float float_array[6], *p_float;
  char char_array[6], *p_char;
  double double_array[6], *p_double;
  p_int = int_array;
  p_float = float_array;
  p_char = char_array;
  p_double = double_array;
  printf("  INDEX\t\t int_array\t float_array\t char_array\t double_array\n");
  for (i = 0; i < 6; i++)
    printf("p_type + %d: \t %0X \t %0X \t %0X \t %0X \n", i, p_int + i,
           p_float + i, p_char + i, p_double + i);
  printf("\n");
  printf("  INDEX\t\t int_array\t float_array\t char_array\t double_array\n");
  for (i = 0; i < 6; i++)
    printf("p_type + %d: \t %0X \t %0X \t %0X \t %0X \n", i, p_int + i,
           p_float + i, p_char + i, p_double + i);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x20(%rbp),%rax
mov    %rax,-0x28(%rbp)
lea    -0x50(%rbp),%rax
mov    %rax,-0x58(%rbp)
lea    -0x5e(%rbp),%rax
mov    %rax,-0x68(%rbp)
lea    -0xa0(%rbp),%rax
mov    %rax,-0xa8(%rbp)
lea    0xeb1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x2c(%rbp)
cmpl   $0x6,-0x2c(%rbp)
jge    11c1 <main+0xb1>
mov    -0x2c(%rbp),%esi
mov    -0x28(%rbp),%rdx
movslq -0x2c(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rdx
mov    -0x58(%rbp),%rcx
movslq -0x2c(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rcx
mov    -0x68(%rbp),%r8
movslq -0x2c(%rbp),%rax
add    %rax,%r8
mov    -0xa8(%rbp),%r9
movslq -0x2c(%rbp),%rax
shl    $0x3,%rax
add    %rax,%r9
lea    0xe90(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    115d <main+0x4d>
lea    0xe99(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe2a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x2c(%rbp)
cmpl   $0x6,-0x2c(%rbp)
jge    1248 <main+0x138>
mov    -0x2c(%rbp),%esi
mov    -0x28(%rbp),%rdx
movslq -0x2c(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rdx
mov    -0x58(%rbp),%rcx
movslq -0x2c(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rcx
mov    -0x68(%rbp),%r8
movslq -0x2c(%rbp),%rax
add    %rax,%r8
mov    -0xa8(%rbp),%r9
movslq -0x2c(%rbp),%rax
shl    $0x3,%rax
add    %rax,%r9
lea    0xe09(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    11e4 <main+0xd4>
mov    -0x4(%rbp),%eax
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x88,%rsp
lea    0xedf(%rip),%rdi
call   1040 <puts@plt>
lea    0xeac(%rip),%rbx
lea    0x30(%rsp),%rdx
lea    0x10(%rsp),%rcx
lea    0xa(%rsp),%r8
lea    0x50(%rsp),%r9
mov    %rbx,%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x34(%rsp),%rdx
lea    0x14(%rsp),%rcx
lea    0xb(%rsp),%r8
lea    0x58(%rsp),%r9
mov    %rbx,%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x38(%rsp),%rdx
lea    0x18(%rsp),%rcx
lea    0xc(%rsp),%r8
lea    0x60(%rsp),%r9
mov    %rbx,%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x3c(%rsp),%rdx
lea    0x1c(%rsp),%rcx
lea    0xd(%rsp),%r8
lea    0x68(%rsp),%r9
mov    %rbx,%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x40(%rsp),%rbp
lea    0x20(%rsp),%rcx
lea    0xe(%rsp),%r8
lea    0x70(%rsp),%r9
mov    %rbx,%rdi
mov    $0x4,%esi
mov    %rbp,%rdx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x44(%rsp),%r13
lea    0x24(%rsp),%r14
lea    0xf(%rsp),%r15
lea    0x78(%rsp),%r12
mov    %rbx,%rdi
mov    $0x5,%esi
mov    %r13,%rdx
mov    %r14,%rcx
mov    %r15,%r8
mov    %r12,%r9
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xde4(%rip),%rdi
call   1040 <puts@plt>
mov    %rbx,%rdi
xor    %esi,%esi
lea    0x30(%rsp),%rdx
lea    0x10(%rsp),%rcx
lea    0xa(%rsp),%r8
lea    0x50(%rsp),%r9
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
lea    0x34(%rsp),%rdx
lea    0x14(%rsp),%rcx
lea    0xb(%rsp),%r8
lea    0x58(%rsp),%r9
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x2,%esi
lea    0x38(%rsp),%rdx
lea    0x18(%rsp),%rcx
lea    0xc(%rsp),%r8
lea    0x60(%rsp),%r9
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x3,%esi
lea    0x3c(%rsp),%rdx
lea    0x1c(%rsp),%rcx
lea    0xd(%rsp),%r8
lea    0x68(%rsp),%r9
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x4,%esi
mov    %rbp,%rdx
lea    0x20(%rsp),%rcx
lea    0xe(%rsp),%r8
lea    0x70(%rsp),%r9
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x5,%esi
mov    %r13,%rdx
mov    %r14,%rcx
mov    %r15,%r8
mov    %r12,%r9
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
add    $0x88,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [60 x i8] c" INDEX\09\09 int_array\09 float_array\09 char_array\09 double_array\0A\00"
@.str.1 = [39 x i8] c"p_type + %d: \09 %0X \09 %0X \09 %0X \09 %0X \0A\00"
@.str.2 = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [6 x i32]
%3 = alloca i32*
%4 = alloca i32
%5 = alloca [6 x float]
%6 = alloca float*
%7 = alloca [6 x i8]
%8 = alloca i8*
%9 = alloca [6 x double]
%10 = alloca double*
store i32 0, i32* %1
%11 = getelementptr inbounds [6 x i32], [6 x i32]* %2, i64 0, i64 0
store i32* %11, i32** %3
%12 = getelementptr inbounds [6 x float], [6 x float]* %5, i64 0, i64 0
store float* %12, float** %6
%13 = getelementptr inbounds [6 x i8], [6 x i8]* %7, i64 0, i64 0
store i8* %13, i8** %8
%14 = getelementptr inbounds [6 x double], [6 x double]* %9, i64 0, i64 0
store double* %14, double** %10
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %4
br label %16
16: ; preds = %38, %0
%17 = load i32, i32* %4
%18 = icmp slt i32 %17, 6
br i1 %18, label %19, label %41
19: ; preds = %16
%20 = load i32, i32* %4
%21 = load i32*, i32** %3
%22 = load i32, i32* %4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i32, i32* %21, i64 %23
%25 = load float*, float** %6
%26 = load i32, i32* %4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds float, float* %25, i64 %27
%29 = load i8*, i8** %8
%30 = load i32, i32* %4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i8, i8* %29, i64 %31
%33 = load double*, double** %10
%34 = load i32, i32* %4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds double, double* %33, i64 %35
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0), i32 %20, i32* %24, float* %28, i8* %32, double* %36)
br label %38
38: ; preds = %19
%39 = load i32, i32* %4
%40 = add nsw i32 %39, 1
store i32 %40, i32* %4
br label %16
41: ; preds = %16
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %4
br label %44
44: ; preds = %66, %41
%45 = load i32, i32* %4
%46 = icmp slt i32 %45, 6
br i1 %46, label %47, label %69
47: ; preds = %44
%48 = load i32, i32* %4
%49 = load i32*, i32** %3
%50 = load i32, i32* %4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds i32, i32* %49, i64 %51
%53 = load float*, float** %6
%54 = load i32, i32* %4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds float, float* %53, i64 %55
%57 = load i8*, i8** %8
%58 = load i32, i32* %4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds i8, i8* %57, i64 %59
%61 = load double*, double** %10
%62 = load i32, i32* %4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds double, double* %61, i64 %63
%65 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0), i32 %48, i32* %52, float* %56, i8* %60, double* %64)
br label %66
66: ; preds = %47
%67 = load i32, i32* %4
%68 = add nsw i32 %67, 1
store i32 %68, i32* %4
br label %44
69: ; preds = %44
%70 = load i32, i32* %1
ret i32 %70
}

LLVM IR (-O2):
@.str.1 = [39 x i8] c"p_type + %d: \09 %0X \09 %0X \09 %0X \09 %0X \0A\00"
@str.3 = [59 x i8] c" INDEX\09\09 int_array\09 float_array\09 char_array\09 double_array\00"
define i32 @main() {
%1 = alloca [6 x i32]
%2 = alloca [6 x float]
%3 = alloca [6 x i8]
%4 = alloca [6 x double]
%5 = bitcast [6 x i32]* %1 to i8*
%6 = bitcast [6 x float]* %2 to i8*
%7 = getelementptr inbounds [6 x i8], [6 x i8]* %3, i64 0, i64 0
%8 = bitcast [6 x double]* %4 to i8*
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.3, i64 0, i64 0))
%10 = getelementptr inbounds [6 x i32], [6 x i32]* %1, i64 0, i64 0
%11 = getelementptr inbounds [6 x float], [6 x float]* %2, i64 0, i64 0
%12 = getelementptr inbounds [6 x double], [6 x double]* %4, i64 0, i64 0
%13 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0), i32 0, i32* %10, float* %11, i8* %7, double* %12)
%14 = getelementptr inbounds [6 x i32], [6 x i32]* %1, i64 0, i64 1
%15 = getelementptr inbounds [6 x float], [6 x float]* %2, i64 0, i64 1
%16 = getelementptr inbounds [6 x i8], [6 x i8]* %3, i64 0, i64 1
%17 = getelementptr inbounds [6 x double], [6 x double]* %4, i64 0, i64 1
%18 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0), i32 1, i32* %14, float* %15, i8* %16, double* %17)
%19 = getelementptr inbounds [6 x i32], [6 x i32]* %1, i64 0, i64 2
%20 = getelementptr inbounds [6 x float], [6 x float]* %2, i64 0, i64 2
%21 = getelementptr inbounds [6 x i8], [6 x i8]* %3, i64 0, i64 2
%22 = getelementptr inbounds [6 x double], [6 x double]* %4, i64 0, i64 2
%23 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0), i32 2, i32* %19, float* %20, i8* %21, double* %22)
%24 = getelementptr inbounds [6 x i32], [6 x i32]* %1, i64 0, i64 3
%25 = getelementptr inbounds [6 x float], [6 x float]* %2, i64 0, i64 3
%26 = getelementptr inbounds [6 x i8], [6 x i8]* %3, i64 0, i64 3
%27 = getelementptr inbounds [6 x double], [6 x double]* %4, i64 0, i64 3
%28 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0), i32 3, i32* %24, float* %25, i8* %26, double* %27)
%29 = getelementptr inbounds [6 x i32], [6 x i32]* %1, i64 0, i64 4
%30 = getelementptr inbounds [6 x float], [6 x float]* %2, i64 0, i64 4
%31 = getelementptr inbounds [6 x i8], [6 x i8]* %3, i64 0, i64 4
%32 = getelementptr inbounds [6 x double], [6 x double]* %4, i64 0, i64 4
%33 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0), i32 4, i32* %29, float* %30, i8* %31, double* %32)
%34 = getelementptr inbounds [6 x i32], [6 x i32]* %1, i64 0, i64 5
%35 = getelementptr inbounds [6 x float], [6 x float]* %2, i64 0, i64 5
%36 = getelementptr inbounds [6 x i8], [6 x i8]* %3, i64 0, i64 5
%37 = getelementptr inbounds [6 x double], [6 x double]* %4, i64 0, i64 5
%38 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0), i32 5, i32* %34, float* %35, i8* %36, double* %37)
%39 = call i32 @putchar(i32 10)
%40 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.3, i64 0, i64 0))
%41 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0), i32 0, i32* %10, float* %11, i8* %7, double* %12)
%42 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0), i32 1, i32* %14, float* %15, i8* %16, double* %17)
%43 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0), i32 2, i32* %19, float* %20, i8* %21, double* %22)
%44 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0), i32 3, i32* %24, float* %25, i8* %26, double* %27)
%45 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0), i32 4, i32* %29, float* %30, i8* %31, double* %32)
%46 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0), i32 5, i32* %34, float* %35, i8* %36, double* %37)
ret i32 0
}