#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
void main(void) {
  int a[5] = {0, 1, 2, 3, 4};
  long double b[5] = {.1, .2, .3, .4, .5};
  int i = 0;
  int *p_a = a;
  long double *p_b = b;
  printf("Address of Array(a):%p\nAddress of Array(b):%p\n", p_a, p_b);
  printf("Integer Array\n");
  for (i = 0; i < 5; i++) {
    printf("Address(%d):%p  Value(%d): %d\n", i, p_a + i, i, *(p_a + i));
  }
  printf("Long Double Array\n");
  for (i = 0; i < 5; i++) {
    printf("Address(%d):%p  Value(%d): %llf\n", i, p_b + i, i, *(p_b + i));
  }
  return;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
mov    0xf1f(%rip),%eax
mov    %eax,-0x10(%rbp)
movaps 0xf05(%rip),%xmm0
movaps %xmm0,-0x20(%rbp)
xorps  %xmm0,%xmm0
movaps %xmm0,-0x30(%rbp)
movaps %xmm0,-0x40(%rbp)
movaps %xmm0,-0x50(%rbp)
movaps %xmm0,-0x60(%rbp)
movaps %xmm0,-0x70(%rbp)
fldl   0xeb4(%rip)
fstpt  -0x70(%rbp)
fldl   0xeb3(%rip)
fstpt  -0x60(%rbp)
fldl   0xeb2(%rip)
fstpt  -0x50(%rbp)
fldl   0xeb1(%rip)
fstpt  -0x40(%rbp)
flds   0xeb0(%rip)
fstpt  -0x30(%rbp)
movl   $0x0,-0x74(%rbp)
lea    -0x20(%rbp),%rax
mov    %rax,-0x80(%rbp)
lea    -0x70(%rbp),%rax
mov    %rax,-0x88(%rbp)
mov    -0x80(%rbp),%rsi
mov    -0x88(%rbp),%rdx
lea    0xea5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xec6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x74(%rbp)
cmpl   $0x5,-0x74(%rbp)
jge    1202 <main+0xf2>
mov    -0x74(%rbp),%esi
mov    -0x80(%rbp),%rdx
movslq -0x74(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rdx
mov    -0x74(%rbp),%ecx
mov    -0x80(%rbp),%rax
movslq -0x74(%rbp),%rdi
mov    (%rax,%rdi,4),%r8d
lea    0xe95(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x74(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x74(%rbp)
jmp    11bb <main+0xab>
lea    0xe98(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x74(%rbp)
cmpl   $0x5,-0x74(%rbp)
jge    125e <main+0x14e>
movslq -0x74(%rbp),%rdi
mov    %edi,%esi
mov    -0x88(%rbp),%rax
shl    $0x4,%rdi
mov    %rax,%rdx
add    %rdi,%rdx
mov    %esi,%ecx
fldt   (%rax,%rdi,1)
mov    %rsp,%rax
fstpt  (%rax)
lea    0xe6b(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    -0x74(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x74(%rbp)
jmp    1217 <main+0x107>
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x88,%rsp
mov    0xf09(%rip),%eax
mov    %eax,0x20(%rsp)
movaps 0xeee(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
lea    0x20(%rsp),%rbx
xorps  %xmm0,%xmm0
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x50(%rsp)
movaps %xmm0,0x60(%rsp)
movaps %xmm0,0x70(%rsp)
lea    0x50(%rsp),%r12
lea    0x40(%rsp),%r13
fldl   0xe88(%rip)
fstpt  0x30(%rsp)
fldl   0xe86(%rip)
fstpt  0x40(%rsp)
fldl   0xe84(%rip)
fstpt  0x50(%rsp)
fldl   0xe82(%rip)
fstpt  0x60(%rsp)
flds   0xe80(%rip)
fstpt  0x70(%rsp)
lea    0xe99(%rip),%rdi
lea    0x10(%rsp),%r15
lea    0x30(%rsp),%rbp
mov    %r15,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeea(%rip),%rdi
call   1030 <puts@plt>
mov    0x10(%rsp),%r8d
lea    0xe99(%rip),%r14
mov    %r14,%rdi
xor    %esi,%esi
mov    %r15,%rdx
xor    %ecx,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x14(%rsp),%rdx
mov    0x14(%rsp),%r8d
mov    %r14,%rdi
mov    $0x1,%esi
mov    $0x1,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x18(%rsp),%rdx
mov    0x18(%rsp),%r8d
mov    %r14,%rdi
mov    $0x2,%esi
mov    $0x2,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x1c(%rsp),%rdx
mov    0x1c(%rsp),%r8d
mov    %r14,%rdi
mov    $0x3,%esi
mov    $0x3,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x20(%rsp),%r8d
mov    %r14,%rdi
mov    $0x4,%esi
mov    %rbx,%rdx
mov    $0x4,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe59(%rip),%rdi
call   1030 <puts@plt>
fldt   0x30(%rsp)
fstpt  (%rsp)
lea    0xe17(%rip),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
mov    %rbp,%rdx
xor    %ecx,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
fldt   0x40(%rsp)
fstpt  (%rsp)
mov    %rbx,%rdi
mov    $0x1,%esi
mov    %r13,%rdx
mov    $0x1,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
fldt   0x50(%rsp)
fstpt  (%rsp)
mov    %rbx,%rdi
mov    $0x2,%esi
mov    %r12,%rdx
mov    $0x2,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
fldt   0x60(%rsp)
fstpt  (%rsp)
mov    %rbx,%rdi
mov    $0x3,%esi
lea    0x60(%rsp),%rdx
mov    $0x3,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
fldt   0x70(%rsp)
fstpt  (%rsp)
mov    %rbx,%rdi
mov    $0x4,%esi
lea    0x70(%rsp),%rdx
mov    $0x4,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
add    $0x88,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@__const.main.a = [5 x i32] [i32 0, i32 1, i32 2, i32 3, i32 4]
@.str = [47 x i8] c"Address of Array(a):%p\0AAddress of Array(b):%p\0A\00"
@.str.1 = [15 x i8] c"Integer Array\0A\00"
@.str.2 = [31 x i8] c"Address(%d):%p Value(%d): %d\0A\00"
@.str.3 = [19 x i8] c"Long Double Array\0A\00"
@.str.4 = [33 x i8] c"Address(%d):%p Value(%d): %llf\0A\00"
define void @main() {
%1 = alloca [5 x i32]
%2 = alloca [5 x x86_fp80]
%3 = alloca i32
%4 = alloca i32*
%5 = alloca x86_fp80*
%6 = bitcast [5 x i32]* %1 to i8*
%7 = bitcast [5 x x86_fp80]* %2 to i8*
%8 = bitcast i8* %7 to [5 x x86_fp80]*
%9 = getelementptr inbounds [5 x x86_fp80], [5 x x86_fp80]* %8, i32 0, i32 0
store x86_fp80 0xK3FFBCCCCCCCCCCCCD000, x86_fp80* %9
%10 = getelementptr inbounds [5 x x86_fp80], [5 x x86_fp80]* %8, i32 0, i32 1
store x86_fp80 0xK3FFCCCCCCCCCCCCCD000, x86_fp80* %10
%11 = getelementptr inbounds [5 x x86_fp80], [5 x x86_fp80]* %8, i32 0, i32 2
store x86_fp80 0xK3FFD9999999999999800, x86_fp80* %11
%12 = getelementptr inbounds [5 x x86_fp80], [5 x x86_fp80]* %8, i32 0, i32 3
store x86_fp80 0xK3FFDCCCCCCCCCCCCD000, x86_fp80* %12
%13 = getelementptr inbounds [5 x x86_fp80], [5 x x86_fp80]* %8, i32 0, i32 4
store x86_fp80 0xK3FFE8000000000000000, x86_fp80* %13
store i32 0, i32* %3
%14 = getelementptr inbounds [5 x i32], [5 x i32]* %1, i64 0, i64 0
store i32* %14, i32** %4
%15 = getelementptr inbounds [5 x x86_fp80], [5 x x86_fp80]* %2, i64 0, i64 0
store x86_fp80* %15, x86_fp80** %5
%16 = load i32*, i32** %4
%17 = load x86_fp80*, x86_fp80** %5
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0), i32* %16, x86_fp80* %17)
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %3
br label %20
20: ; preds = %36, %0
%21 = load i32, i32* %3
%22 = icmp slt i32 %21, 5
br i1 %22, label %23, label %39
23: ; preds = %20
%24 = load i32, i32* %3
%25 = load i32*, i32** %4
%26 = load i32, i32* %3
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i32, i32* %25, i64 %27
%29 = load i32, i32* %3
%30 = load i32*, i32** %4
%31 = load i32, i32* %3
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i32, i32* %30, i64 %32
%34 = load i32, i32* %33
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0), i32 %24, i32* %28, i32 %29, i32 %34)
br label %36
36: ; preds = %23
%37 = load i32, i32* %3
%38 = add nsw i32 %37, 1
store i32 %38, i32* %3
br label %20
39: ; preds = %20
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %3
br label %41
41: ; preds = %57, %39
%42 = load i32, i32* %3
%43 = icmp slt i32 %42, 5
br i1 %43, label %44, label %60
44: ; preds = %41
%45 = load i32, i32* %3
%46 = load x86_fp80*, x86_fp80** %5
%47 = load i32, i32* %3
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds x86_fp80, x86_fp80* %46, i64 %48
%50 = load i32, i32* %3
%51 = load x86_fp80*, x86_fp80** %5
%52 = load i32, i32* %3
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds x86_fp80, x86_fp80* %51, i64 %53
%55 = load x86_fp80, x86_fp80* %54
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0), i32 %45, x86_fp80* %49, i32 %50, x86_fp80 %55)
br label %57
57: ; preds = %44
%58 = load i32, i32* %3
%59 = add nsw i32 %58, 1
store i32 %59, i32* %3
br label %41
60: ; preds = %41
ret void
}

LLVM IR (-O2):
@__const.main.a = [5 x i32] [i32 0, i32 1, i32 2, i32 3, i32 4]
@.str = [47 x i8] c"Address of Array(a):%p\0AAddress of Array(b):%p\0A\00"
@.str.2 = [31 x i8] c"Address(%d):%p Value(%d): %d\0A\00"
@.str.4 = [33 x i8] c"Address(%d):%p Value(%d): %llf\0A\00"
@str = [14 x i8] c"Integer Array\00"
@str.5 = [18 x i8] c"Long Double Array\00"
define void @main() {
%1 = alloca [5 x i32]
%2 = alloca [5 x x86_fp80]
%3 = bitcast [5 x i32]* %1 to i8*
%4 = bitcast [5 x x86_fp80]* %2 to i8*
%5 = getelementptr inbounds [5 x x86_fp80], [5 x x86_fp80]* %2, i64 0, i64 0
store x86_fp80 0xK3FFBCCCCCCCCCCCCD000, x86_fp80* %5
%6 = getelementptr inbounds [5 x x86_fp80], [5 x x86_fp80]* %2, i64 0, i64 1
store x86_fp80 0xK3FFCCCCCCCCCCCCCD000, x86_fp80* %6
%7 = getelementptr inbounds [5 x x86_fp80], [5 x x86_fp80]* %2, i64 0, i64 2
store x86_fp80 0xK3FFD9999999999999800, x86_fp80* %7
%8 = getelementptr inbounds [5 x x86_fp80], [5 x x86_fp80]* %2, i64 0, i64 3
store x86_fp80 0xK3FFDCCCCCCCCCCCCD000, x86_fp80* %8
%9 = getelementptr inbounds [5 x x86_fp80], [5 x x86_fp80]* %2, i64 0, i64 4
store x86_fp80 0xK3FFE8000000000000000, x86_fp80* %9
%10 = getelementptr inbounds [5 x i32], [5 x i32]* %1, i64 0, i64 0
%11 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0), i32* %10, x86_fp80* %5)
%12 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str, i64 0, i64 0))
%13 = load i32, i32* %10
%14 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0), i32 0, i32* %10, i32 0, i32 %13)
%15 = getelementptr inbounds [5 x i32], [5 x i32]* %1, i64 0, i64 1
%16 = load i32, i32* %15
%17 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0), i32 1, i32* %15, i32 1, i32 %16)
%18 = getelementptr inbounds [5 x i32], [5 x i32]* %1, i64 0, i64 2
%19 = load i32, i32* %18
%20 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0), i32 2, i32* %18, i32 2, i32 %19)
%21 = getelementptr inbounds [5 x i32], [5 x i32]* %1, i64 0, i64 3
%22 = load i32, i32* %21
%23 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0), i32 3, i32* %21, i32 3, i32 %22)
%24 = getelementptr inbounds [5 x i32], [5 x i32]* %1, i64 0, i64 4
%25 = load i32, i32* %24
%26 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0), i32 4, i32* %24, i32 4, i32 %25)
%27 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.5, i64 0, i64 0))
%28 = load x86_fp80, x86_fp80* %5
%29 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0), i32 0, x86_fp80* %5, i32 0, x86_fp80 %28)
%30 = load x86_fp80, x86_fp80* %6
%31 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0), i32 1, x86_fp80* %6, i32 1, x86_fp80 %30)
%32 = load x86_fp80, x86_fp80* %7
%33 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0), i32 2, x86_fp80* %7, i32 2, x86_fp80 %32)
%34 = load x86_fp80, x86_fp80* %8
%35 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0), i32 3, x86_fp80* %8, i32 3, x86_fp80 %34)
%36 = load x86_fp80, x86_fp80* %9
%37 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0), i32 4, x86_fp80* %9, i32 4, x86_fp80 %36)
ret void
}