#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 *, ...);
int main() {
  int i = 0;
  int a[1000];
  int b[10 * 1000];
  int c[100 * 1000];
  int d[1000 * 1000];
  printf("bingo\n");
  printf("i:%p, a:%p, b:%p, c:%p, d:%p", &i, a, b, c, d);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x43cf70,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
lea    0xed0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0xfb0(%rbp),%rdx
lea    -0xabf0(%rbp),%rcx
lea    -0x6c670(%rbp),%r8
lea    -0x43cf70(%rbp),%r9
lea    0xead(%rip),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x43cf70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x43cf78,%rsp
movl   $0x0,0xc(%rsp)
lea    0xee7(%rip),%rdi
call   1030 <puts@plt>
lea    0xebe(%rip),%rdi
lea    0xc(%rsp),%rsi
lea    0x10(%rsp),%rdx
lea    0xfb0(%rsp),%rcx
lea    0xabf0(%rsp),%r8
lea    0x6c670(%rsp),%r9
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x43cf78,%rsp
ret

LLVM IR (-O0):
@.str = [7 x i8] c"bingo\0A\00"
@.str.1 = [29 x i8] c"i:%p, a:%p, b:%p, c:%p, d:%p\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [1000 x i32]
%4 = alloca [10000 x i32]
%5 = alloca [100000 x i32]
%6 = alloca [1000000 x i32]
store i32 0, i32* %1
store i32 0, i32* %2
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%8 = getelementptr inbounds [1000 x i32], [1000 x i32]* %3, i64 0, i64 0
%9 = getelementptr inbounds [10000 x i32], [10000 x i32]* %4, i64 0, i64 0
%10 = getelementptr inbounds [100000 x i32], [100000 x i32]* %5, i64 0, i64 0
%11 = getelementptr inbounds [1000000 x i32], [1000000 x i32]* %6, i64 0, i64 0
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0), i32* %2, i32* %8, i32* %9, i32* %10, i32* %11)
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [29 x i8] c"i:%p, a:%p, b:%p, c:%p, d:%p\00"
@str = [6 x i8] c"bingo\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [1000 x i32]
%3 = alloca [10000 x i32]
%4 = alloca [100000 x i32]
%5 = alloca [1000000 x i32]
%6 = bitcast i32* %1 to i8*
store i32 0, i32* %1
%7 = bitcast [1000 x i32]* %2 to i8*
%8 = bitcast [10000 x i32]* %3 to i8*
%9 = bitcast [100000 x i32]* %4 to i8*
%10 = bitcast [1000000 x i32]* %5 to i8*
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str, i64 0, i64 0))
%12 = getelementptr inbounds [1000 x i32], [1000 x i32]* %2, i64 0, i64 0
%13 = getelementptr inbounds [10000 x i32], [10000 x i32]* %3, i64 0, i64 0
%14 = getelementptr inbounds [100000 x i32], [100000 x i32]* %4, i64 0, i64 0
%15 = getelementptr inbounds [1000000 x i32], [1000000 x i32]* %5, i64 0, i64 0
%16 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0), i32* %1, i32* %12, i32* %13, i32* %14, i32* %15)
ret i32 0
}