#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 func0(int /*<<< orphan*/);
int func1(int /*<<< orphan*/);
int func2(int /*<<< orphan*/);
int func3(int /*<<< orphan*/);
int func4(int /*<<< orphan*/);
int func5(int /*<<< orphan*/);
int func6(int /*<<< orphan*/);
int func7(int /*<<< orphan*/);
int /*<<< orphan*/ link_error0();
int /*<<< orphan*/ link_error1();
int /*<<< orphan*/ link_error2();
int /*<<< orphan*/ link_error3();
int /*<<< orphan*/ link_error4();
int /*<<< orphan*/ link_error5();
int /*<<< orphan*/ link_error6();
int /*<<< orphan*/ link_error7();
int main() {
  int i[10], r;
  i[0] = 0;
  r = func0(0);
  if (i[0])
    link_error0();
  i[1] = 0;
  r = func1(0);
  if (i[1])
    link_error1();
  i[2] = 0;
  r = func2(0);
  if (i[2])
    link_error2();
  i[3] = 0;
  r = func3(0);
  if (i[3])
    link_error3();
  i[4] = 0;
  r = func4(0);
  if (i[4])
    link_error4();
  i[5] = 0;
  r = func5(0);
  if (i[5])
    link_error5();
  i[6] = 0;
  r = func6(0);
  if (i[6])
    link_error6();
  i[7] = 0;
  r = func7(0);
  if (i[7])
    link_error7();
  return r;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x30(%rbp)
xor    %edi,%edi
call   10d0 <func0@plt>
mov    %eax,-0x34(%rbp)
cmpl   $0x0,-0x30(%rbp)
je     1231 <main+0x31>
mov    $0x0,%al
call   10a0 <link_error0@plt>
movl   $0x0,-0x2c(%rbp)
xor    %edi,%edi
call   1050 <func1@plt>
mov    %eax,-0x34(%rbp)
cmpl   $0x0,-0x2c(%rbp)
je     1253 <main+0x53>
mov    $0x0,%al
call   10f0 <link_error1@plt>
movl   $0x0,-0x28(%rbp)
xor    %edi,%edi
call   10c0 <func2@plt>
mov    %eax,-0x34(%rbp)
cmpl   $0x0,-0x28(%rbp)
je     1275 <main+0x75>
mov    $0x0,%al
call   1080 <link_error2@plt>
movl   $0x0,-0x24(%rbp)
xor    %edi,%edi
call   1030 <func3@plt>
mov    %eax,-0x34(%rbp)
cmpl   $0x0,-0x24(%rbp)
je     1297 <main+0x97>
mov    $0x0,%al
call   1120 <link_error3@plt>
movl   $0x0,-0x20(%rbp)
xor    %edi,%edi
call   10b0 <func4@plt>
mov    %eax,-0x34(%rbp)
cmpl   $0x0,-0x20(%rbp)
je     12b9 <main+0xb9>
mov    $0x0,%al
call   1090 <link_error4@plt>
movl   $0x0,-0x1c(%rbp)
xor    %edi,%edi
call   1040 <func5@plt>
mov    %eax,-0x34(%rbp)
cmpl   $0x0,-0x1c(%rbp)
je     12db <main+0xdb>
mov    $0x0,%al
call   1110 <link_error5@plt>
movl   $0x0,-0x18(%rbp)
xor    %edi,%edi
call   10e0 <func6@plt>
mov    %eax,-0x34(%rbp)
cmpl   $0x0,-0x18(%rbp)
je     12fd <main+0xfd>
mov    $0x0,%al
call   1070 <link_error6@plt>
movl   $0x0,-0x14(%rbp)
xor    %edi,%edi
call   1060 <func7@plt>
mov    %eax,-0x34(%rbp)
cmpl   $0x0,-0x14(%rbp)
je     131f <main+0x11f>
mov    $0x0,%al
call   1100 <link_error7@plt>
mov    -0x34(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %edi,%edi
call   1090 <func0@plt>
xor    %edi,%edi
call   1050 <func1@plt>
xor    %edi,%edi
call   1080 <func2@plt>
xor    %edi,%edi
call   1030 <func3@plt>
xor    %edi,%edi
call   1070 <func4@plt>
xor    %edi,%edi
call   1040 <func5@plt>
xor    %edi,%edi
call   10a0 <func6@plt>
xor    %edi,%edi
pop    %rax
jmp    1060 <func7@plt>

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca [10 x i32]
%3 = alloca i32
store i32 0, i32* %1
%4 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 0
store i32 0, i32* %4
%5 = call i32 @func0(i32 0)
store i32 %5, i32* %3
%6 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 0
%7 = load i32, i32* %6
%8 = icmp ne i32 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %0
%10 = call i32 (...) @link_error0()
br label %11
11: ; preds = %9, %0
%12 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 1
store i32 0, i32* %12
%13 = call i32 @func1(i32 0)
store i32 %13, i32* %3
%14 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 1
%15 = load i32, i32* %14
%16 = icmp ne i32 %15, 0
br i1 %16, label %17, label %19
17: ; preds = %11
%18 = call i32 (...) @link_error1()
br label %19
19: ; preds = %17, %11
%20 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 2
store i32 0, i32* %20
%21 = call i32 @func2(i32 0)
store i32 %21, i32* %3
%22 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 2
%23 = load i32, i32* %22
%24 = icmp ne i32 %23, 0
br i1 %24, label %25, label %27
25: ; preds = %19
%26 = call i32 (...) @link_error2()
br label %27
27: ; preds = %25, %19
%28 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 3
store i32 0, i32* %28
%29 = call i32 @func3(i32 0)
store i32 %29, i32* %3
%30 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 3
%31 = load i32, i32* %30
%32 = icmp ne i32 %31, 0
br i1 %32, label %33, label %35
33: ; preds = %27
%34 = call i32 (...) @link_error3()
br label %35
35: ; preds = %33, %27
%36 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 4
store i32 0, i32* %36
%37 = call i32 @func4(i32 0)
store i32 %37, i32* %3
%38 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 4
%39 = load i32, i32* %38
%40 = icmp ne i32 %39, 0
br i1 %40, label %41, label %43
41: ; preds = %35
%42 = call i32 (...) @link_error4()
br label %43
43: ; preds = %41, %35
%44 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 5
store i32 0, i32* %44
%45 = call i32 @func5(i32 0)
store i32 %45, i32* %3
%46 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 5
%47 = load i32, i32* %46
%48 = icmp ne i32 %47, 0
br i1 %48, label %49, label %51
49: ; preds = %43
%50 = call i32 (...) @link_error5()
br label %51
51: ; preds = %49, %43
%52 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 6
store i32 0, i32* %52
%53 = call i32 @func6(i32 0)
store i32 %53, i32* %3
%54 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 6
%55 = load i32, i32* %54
%56 = icmp ne i32 %55, 0
br i1 %56, label %57, label %59
57: ; preds = %51
%58 = call i32 (...) @link_error6()
br label %59
59: ; preds = %57, %51
%60 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 7
store i32 0, i32* %60
%61 = call i32 @func7(i32 0)
store i32 %61, i32* %3
%62 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 7
%63 = load i32, i32* %62
%64 = icmp ne i32 %63, 0
br i1 %64, label %65, label %67
65: ; preds = %59
%66 = call i32 (...) @link_error7()
br label %67
67: ; preds = %65, %59
%68 = load i32, i32* %3
ret i32 %68
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @func0(i32 0)
%2 = tail call i32 @func1(i32 0)
%3 = tail call i32 @func2(i32 0)
%4 = tail call i32 @func3(i32 0)
%5 = tail call i32 @func4(i32 0)
%6 = tail call i32 @func5(i32 0)
%7 = tail call i32 @func6(i32 0)
%8 = tail call i32 @func7(i32 0)
ret i32 %8
}