#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 */
typedef int uint64_t;

/* Variables and functions */
int main() {
  struct link {
    struct link *next;
    long long slot[8];
  } stack[2], *sp;
  for (uint64_t i = 0; i < 8388608; ++i) {
    stack[0] = stack[1];
    sp = stack + 1;
    stack[0] = stack[1];
    sp = stack + 1;
    stack[0] = stack[1];
    sp = stack + 1;
    stack[0] = stack[1];
    sp = stack + 1;
    stack[0] = stack[1];
    sp = stack + 1;
    stack[0] = stack[1];
    sp = stack + 1;
    stack[0] = stack[1];
    sp = stack + 1;
    stack[0] = stack[1];
    sp = stack + 1;
    stack[0] = stack[1];
    sp = stack + 1;
    stack[0] = stack[1];
    sp = stack + 1;
    stack[0] = stack[1];
    sp = stack + 1;
    stack[0] = stack[1];
    sp = stack + 1;
    stack[0] = stack[1];
    sp = stack + 1;
    stack[0] = stack[1];
    sp = stack + 1;
    stack[0] = stack[1];
    sp = stack + 1;
    stack[0] = stack[1];
    sp = stack + 1;
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0xac(%rbp)
cmpl   $0x800000,-0xac(%rbp)
jge    1430 <main+0x320>
lea    -0xa0(%rbp),%rdi
lea    -0xa0(%rbp),%rsi
add    $0x48,%rsi
mov    $0x48,%edx
call   1030 <memcpy@plt>
lea    -0xa0(%rbp),%rax
add    $0x48,%rax
mov    %rax,-0xa8(%rbp)
lea    -0xa0(%rbp),%rdi
lea    -0xa0(%rbp),%rsi
add    $0x48,%rsi
mov    $0x48,%edx
call   1030 <memcpy@plt>
lea    -0xa0(%rbp),%rax
add    $0x48,%rax
mov    %rax,-0xa8(%rbp)
lea    -0xa0(%rbp),%rdi
lea    -0xa0(%rbp),%rsi
add    $0x48,%rsi
mov    $0x48,%edx
call   1030 <memcpy@plt>
lea    -0xa0(%rbp),%rax
add    $0x48,%rax
mov    %rax,-0xa8(%rbp)
lea    -0xa0(%rbp),%rdi
lea    -0xa0(%rbp),%rsi
add    $0x48,%rsi
mov    $0x48,%edx
call   1030 <memcpy@plt>
lea    -0xa0(%rbp),%rax
add    $0x48,%rax
mov    %rax,-0xa8(%rbp)
lea    -0xa0(%rbp),%rdi
lea    -0xa0(%rbp),%rsi
add    $0x48,%rsi
mov    $0x48,%edx
call   1030 <memcpy@plt>
lea    -0xa0(%rbp),%rax
add    $0x48,%rax
mov    %rax,-0xa8(%rbp)
lea    -0xa0(%rbp),%rdi
lea    -0xa0(%rbp),%rsi
add    $0x48,%rsi
mov    $0x48,%edx
call   1030 <memcpy@plt>
lea    -0xa0(%rbp),%rax
add    $0x48,%rax
mov    %rax,-0xa8(%rbp)
lea    -0xa0(%rbp),%rdi
lea    -0xa0(%rbp),%rsi
add    $0x48,%rsi
mov    $0x48,%edx
call   1030 <memcpy@plt>
lea    -0xa0(%rbp),%rax
add    $0x48,%rax
mov    %rax,-0xa8(%rbp)
lea    -0xa0(%rbp),%rdi
lea    -0xa0(%rbp),%rsi
add    $0x48,%rsi
mov    $0x48,%edx
call   1030 <memcpy@plt>
lea    -0xa0(%rbp),%rax
add    $0x48,%rax
mov    %rax,-0xa8(%rbp)
lea    -0xa0(%rbp),%rdi
lea    -0xa0(%rbp),%rsi
add    $0x48,%rsi
mov    $0x48,%edx
call   1030 <memcpy@plt>
lea    -0xa0(%rbp),%rax
add    $0x48,%rax
mov    %rax,-0xa8(%rbp)
lea    -0xa0(%rbp),%rdi
lea    -0xa0(%rbp),%rsi
add    $0x48,%rsi
mov    $0x48,%edx
call   1030 <memcpy@plt>
lea    -0xa0(%rbp),%rax
add    $0x48,%rax
mov    %rax,-0xa8(%rbp)
lea    -0xa0(%rbp),%rdi
lea    -0xa0(%rbp),%rsi
add    $0x48,%rsi
mov    $0x48,%edx
call   1030 <memcpy@plt>
lea    -0xa0(%rbp),%rax
add    $0x48,%rax
mov    %rax,-0xa8(%rbp)
lea    -0xa0(%rbp),%rdi
lea    -0xa0(%rbp),%rsi
add    $0x48,%rsi
mov    $0x48,%edx
call   1030 <memcpy@plt>
lea    -0xa0(%rbp),%rax
add    $0x48,%rax
mov    %rax,-0xa8(%rbp)
lea    -0xa0(%rbp),%rdi
lea    -0xa0(%rbp),%rsi
add    $0x48,%rsi
mov    $0x48,%edx
call   1030 <memcpy@plt>
lea    -0xa0(%rbp),%rax
add    $0x48,%rax
mov    %rax,-0xa8(%rbp)
lea    -0xa0(%rbp),%rdi
lea    -0xa0(%rbp),%rsi
add    $0x48,%rsi
mov    $0x48,%edx
call   1030 <memcpy@plt>
lea    -0xa0(%rbp),%rax
add    $0x48,%rax
mov    %rax,-0xa8(%rbp)
lea    -0xa0(%rbp),%rdi
lea    -0xa0(%rbp),%rsi
add    $0x48,%rsi
mov    $0x48,%edx
call   1030 <memcpy@plt>
lea    -0xa0(%rbp),%rax
add    $0x48,%rax
mov    %rax,-0xa8(%rbp)
lea    -0xa0(%rbp),%rdi
lea    -0xa0(%rbp),%rsi
add    $0x48,%rsi
mov    $0x48,%edx
call   1030 <memcpy@plt>
lea    -0xa0(%rbp),%rax
add    $0x48,%rax
mov    %rax,-0xa8(%rbp)
mov    -0xac(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xac(%rbp)
jmp    112c <main+0x1c>
mov    -0x4(%rbp),%eax
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
xor    %eax,%eax
ret

LLVM IR (-O0):
%struct.link = type { %struct.link*, [8 x i64] }
define i32 @main() {
%1 = alloca i32
%2 = alloca [2 x %struct.link]
%3 = alloca %struct.link*
%4 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %4
br label %5
5: ; preds = %105, %0
%6 = load i32, i32* %4
%7 = icmp slt i32 %6, 8388608
br i1 %7, label %8, label %108
8: ; preds = %5
%9 = getelementptr inbounds [2 x %struct.link], [2 x %struct.link]* %2, i64 0, i64 0
%10 = getelementptr inbounds [2 x %struct.link], [2 x %struct.link]* %2, i64 0, i64 1
%11 = bitcast %struct.link* %9 to i8*
%12 = bitcast %struct.link* %10 to i8*
%13 = getelementptr inbounds [2 x %struct.link], [2 x %struct.link]* %2, i64 0, i64 0
%14 = getelementptr inbounds %struct.link, %struct.link* %13, i64 1
store %struct.link* %14, %struct.link** %3
%15 = getelementptr inbounds [2 x %struct.link], [2 x %struct.link]* %2, i64 0, i64 0
%16 = getelementptr inbounds [2 x %struct.link], [2 x %struct.link]* %2, i64 0, i64 1
%17 = bitcast %struct.link* %15 to i8*
%18 = bitcast %struct.link* %16 to i8*
%19 = getelementptr inbounds [2 x %struct.link], [2 x %struct.link]* %2, i64 0, i64 0
%20 = getelementptr inbounds %struct.link, %struct.link* %19, i64 1
store %struct.link* %20, %struct.link** %3
%21 = getelementptr inbounds [2 x %struct.link], [2 x %struct.link]* %2, i64 0, i64 0
%22 = getelementptr inbounds [2 x %struct.link], [2 x %struct.link]* %2, i64 0, i64 1
%23 = bitcast %struct.link* %21 to i8*
%24 = bitcast %struct.link* %22 to i8*
%25 = getelementptr inbounds [2 x %struct.link], [2 x %struct.link]* %2, i64 0, i64 0
%26 = getelementptr inbounds %struct.link, %struct.link* %25, i64 1
store %struct.link* %26, %struct.link** %3
%27 = getelementptr inbounds [2 x %struct.link], [2 x %struct.link]* %2, i64 0, i64 0
%28 = getelementptr inbounds [2 x %struct.link], [2 x %struct.link]* %2, i64 0, i64 1
%29 = bitcast %struct.link* %27 to i8*
%30 = bitcast %struct.link* %28 to i8*
%31 = getelementptr inbounds [2 x %struct.link], [2 x %struct.link]* %2, i64 0, i64 0
%32 = getelementptr inbounds %struct.link, %struct.link* %31, i64 1
store %struct.link* %32, %struct.link** %3
%33 = getelementptr inbounds [2 x %struct.link], [2 x %struct.link]* %2, i64 0, i64 0
%34 = getelementptr inbounds [2 x %struct.link], [2 x %struct.link]* %2, i64 0, i64 1
%35 = bitcast %struct.link* %33 to i8*
%36 = bitcast %struct.link* %34 to i8*
%37 = getelementptr inbounds [2 x %struct.link], [2 x %struct.link]* %2, i64 0, i64 0
%38 = getelementptr inbounds %struct.link, %struct.link* %37, i64 1
store %struct.link* %38, %struct.link** %3
%39 = getelementptr inbounds [2 x %struct.link], [2 x %struct.link]* %2, i64 0, i64 0
%40 = getelementptr inbounds [2 x %struct.link], [2 x %struct.link]* %2, i64 0, i64 1
%41 = bitcast %struct.link* %39 to i8*
%42 = bitcast %struct.link* %40 to i8*
%43 = getelementptr inbounds [2 x %struct.link], [2 x %struct.link]* %2, i64 0, i64 0
%44 = getelementptr inbounds %struct.link, %struct.link* %43, i64 1
store %struct.link* %44, %struct.link** %3
%45 = getelementptr inbounds [2 x %struct.link], [2 x %struct.link]* %2, i64 0, i64 0
%46 = getelementptr inbounds [2 x %struct.link], [2 x %struct.link]* %2, i64 0, i64 1
%47 = bitcast %struct.link* %45 to i8*
%48 = bitcast %struct.link* %46 to i8*
%49 = getelementptr inbounds [2 x %struct.link], [2 x %struct.link]* %2, i64 0, i64 0
%50 = getelementptr inbounds %struct.link, %struct.link* %49, i64 1
store %struct.link* %50, %struct.link** %3
%51 = getelementptr inbounds [2 x %struct.link], [2 x %struct.link]* %2, i64 0, i64 0
%52 = getelementptr inbounds [2 x %struct.link], [2 x %struct.link]* %2, i64 0, i64 1
%53 = bitcast %struct.link* %51 to i8*
%54 = bitcast %struct.link* %52 to i8*
%55 = getelementptr inbounds [2 x %struct.link], [2 x %struct.link]* %2, i64 0, i64 0
%56 = getelementptr inbounds %struct.link, %struct.link* %55, i64 1
store %struct.link* %56, %struct.link** %3
%57 = getelementptr inbounds [2 x %struct.link], [2 x %struct.link]* %2, i64 0, i64 0
%58 = getelementptr inbounds [2 x %struct.link], [2 x %struct.link]* %2, i64 0, i64 1
%59 = bitcast %struct.link* %57 to i8*
%60 = bitcast %struct.link* %58 to i8*
%61 = getelementptr inbounds [2 x %struct.link], [2 x %struct.link]* %2, i64 0, i64 0
%62 = getelementptr inbounds %struct.link, %struct.link* %61, i64 1
store %struct.link* %62, %struct.link** %3
%63 = getelementptr inbounds [2 x %struct.link], [2 x %struct.link]* %2, i64 0, i64 0
%64 = getelementptr inbounds [2 x %struct.link], [2 x %struct.link]* %2, i64 0, i64 1
%65 = bitcast %struct.link* %63 to i8*
%66 = bitcast %struct.link* %64 to i8*
%67 = getelementptr inbounds [2 x %struct.link], [2 x %struct.link]* %2, i64 0, i64 0
%68 = getelementptr inbounds %struct.link, %struct.link* %67, i64 1
store %struct.link* %68, %struct.link** %3
%69 = getelementptr inbounds [2 x %struct.link], [2 x %struct.link]* %2, i64 0, i64 0
%70 = getelementptr inbounds [2 x %struct.link], [2 x %struct.link]* %2, i64 0, i64 1
%71 = bitcast %struct.link* %69 to i8*
%72 = bitcast %struct.link* %70 to i8*
%73 = getelementptr inbounds [2 x %struct.link], [2 x %struct.link]* %2, i64 0, i64 0
%74 = getelementptr inbounds %struct.link, %struct.link* %73, i64 1
store %struct.link* %74, %struct.link** %3
%75 = getelementptr inbounds [2 x %struct.link], [2 x %struct.link]* %2, i64 0, i64 0
%76 = getelementptr inbounds [2 x %struct.link], [2 x %struct.link]* %2, i64 0, i64 1
%77 = bitcast %struct.link* %75 to i8*
%78 = bitcast %struct.link* %76 to i8*
%79 = getelementptr inbounds [2 x %struct.link], [2 x %struct.link]* %2, i64 0, i64 0
%80 = getelementptr inbounds %struct.link, %struct.link* %79, i64 1
store %struct.link* %80, %struct.link** %3
%81 = getelementptr inbounds [2 x %struct.link], [2 x %struct.link]* %2, i64 0, i64 0
%82 = getelementptr inbounds [2 x %struct.link], [2 x %struct.link]* %2, i64 0, i64 1
%83 = bitcast %struct.link* %81 to i8*
%84 = bitcast %struct.link* %82 to i8*
%85 = getelementptr inbounds [2 x %struct.link], [2 x %struct.link]* %2, i64 0, i64 0
%86 = getelementptr inbounds %struct.link, %struct.link* %85, i64 1
store %struct.link* %86, %struct.link** %3
%87 = getelementptr inbounds [2 x %struct.link], [2 x %struct.link]* %2, i64 0, i64 0
%88 = getelementptr inbounds [2 x %struct.link], [2 x %struct.link]* %2, i64 0, i64 1
%89 = bitcast %struct.link* %87 to i8*
%90 = bitcast %struct.link* %88 to i8*
%91 = getelementptr inbounds [2 x %struct.link], [2 x %struct.link]* %2, i64 0, i64 0
%92 = getelementptr inbounds %struct.link, %struct.link* %91, i64 1
store %struct.link* %92, %struct.link** %3
%93 = getelementptr inbounds [2 x %struct.link], [2 x %struct.link]* %2, i64 0, i64 0
%94 = getelementptr inbounds [2 x %struct.link], [2 x %struct.link]* %2, i64 0, i64 1
%95 = bitcast %struct.link* %93 to i8*
%96 = bitcast %struct.link* %94 to i8*
%97 = getelementptr inbounds [2 x %struct.link], [2 x %struct.link]* %2, i64 0, i64 0
%98 = getelementptr inbounds %struct.link, %struct.link* %97, i64 1
store %struct.link* %98, %struct.link** %3
%99 = getelementptr inbounds [2 x %struct.link], [2 x %struct.link]* %2, i64 0, i64 0
%100 = getelementptr inbounds [2 x %struct.link], [2 x %struct.link]* %2, i64 0, i64 1
%101 = bitcast %struct.link* %99 to i8*
%102 = bitcast %struct.link* %100 to i8*
%103 = getelementptr inbounds [2 x %struct.link], [2 x %struct.link]* %2, i64 0, i64 0
%104 = getelementptr inbounds %struct.link, %struct.link* %103, i64 1
store %struct.link* %104, %struct.link** %3
br label %105
105: ; preds = %8
%106 = load i32, i32* %4
%107 = add nsw i32 %106, 1
store i32 %107, i32* %4
br label %5
108: ; preds = %5
%109 = load i32, i32* %1
ret i32 %109
}

LLVM IR (-O2):
define i32 @main() {
ret i32 0
}