#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*/ print(int *, int);
int /*<<< orphan*/ printf(char *, int *);
int main() {
  int a[5] = {11, 22, 33, 44, 55};
  printf("==%p\n", a);
  int b[7] = {6, 7, 8, 9, 10, 4};
  printf("=-=%p\n", b);
  print(a, 5);
  print(b, 7);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    0xeca(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xec7(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xec5(%rip),%eax
mov    %eax,-0x10(%rbp)
lea    -0x20(%rbp),%rsi
lea    0xebb(%rip),%rdi
call   1030 <printf@plt>
mov    0xecb(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    0xec8(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    0xec5(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xec3(%rip),%eax
mov    %eax,-0x28(%rbp)
lea    -0x40(%rbp),%rsi
lea    0xe87(%rip),%rdi
call   1030 <printf@plt>
lea    -0x20(%rbp),%rdi
mov    $0x5,%esi
call   1040 <print@plt>
lea    -0x40(%rbp),%rdi
mov    $0x7,%esi
call   1040 <print@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x48,%rsp
mov    0xee3(%rip),%eax
mov    %eax,0x10(%rsp)
movaps 0xec8(%rip),%xmm0
movaps %xmm0,(%rsp)
lea    0xed1(%rip),%rdi
mov    %rsp,%r14
mov    %r14,%rsi
call   1030 <printf@plt>
movups 0xee7(%rip),%xmm0
movups %xmm0,0x2c(%rsp)
movaps 0xecf(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
lea    0xead(%rip),%rdi
lea    0x20(%rsp),%rbx
mov    %rbx,%rsi
call   1030 <printf@plt>
mov    %r14,%rdi
mov    $0x5,%esi
call   1040 <print@plt>
mov    %rbx,%rdi
mov    $0x7,%esi
call   1040 <print@plt>
xor    %eax,%eax
add    $0x48,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@__const.main.a = [5 x i32] [i32 11, i32 22, i32 33, i32 44, i32 55]
@.str = [6 x i8] c"==%p\0A\00"
@__const.main.b = [7 x i32] [i32 6, i32 7, i32 8, i32 9, i32 10, i32 4, i32 0]
@.str.1 = [7 x i8] c"=-=%p\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [5 x i32]
%3 = alloca [7 x i32]
store i32 0, i32* %1
%4 = bitcast [5 x i32]* %2 to i8*
%5 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 0, i64 0
%6 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32* %5)
%7 = bitcast [7 x i32]* %3 to i8*
%8 = getelementptr inbounds [7 x i32], [7 x i32]* %3, i64 0, i64 0
%9 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32* %8)
%10 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 0, i64 0
%11 = call i32 @print(i32* %10, i32 5)
%12 = getelementptr inbounds [7 x i32], [7 x i32]* %3, i64 0, i64 0
%13 = call i32 @print(i32* %12, i32 7)
ret i32 0
}

LLVM IR (-O2):
@__const.main.a = [5 x i32] [i32 11, i32 22, i32 33, i32 44, i32 55]
@.str = [6 x i8] c"==%p\0A\00"
@__const.main.b = [7 x i32] [i32 6, i32 7, i32 8, i32 9, i32 10, i32 4, i32 0]
@.str.1 = [7 x i8] c"=-=%p\0A\00"
define i32 @main() {
%1 = alloca [5 x i32]
%2 = alloca [7 x i32]
%3 = bitcast [5 x i32]* %1 to i8*
%4 = getelementptr inbounds [5 x i32], [5 x i32]* %1, i64 0, i64 0
%5 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32* %4)
%6 = bitcast [7 x i32]* %2 to i8*
%7 = getelementptr inbounds [7 x i32], [7 x i32]* %2, i64 0, i64 0
%8 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32* %7)
%9 = call i32 @print(i32* %4, i32 5)
%10 = call i32 @print(i32* %7, i32 7)
ret i32 0
}