#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 */
scalar_t__ test_1xx();
scalar_t__ test_2xx();
scalar_t__ test_3xx();
scalar_t__ test_4xx();
scalar_t__ test_5xx();
scalar_t__ test_absent_codes();
int main(int argc, char *argv[]) {
  int errcount = 0;
  (void)argc;
  (void)argv;
  errcount += test_absent_codes();
  errcount += test_1xx();
  errcount += test_2xx();
  errcount += test_3xx();
  errcount += test_4xx();
  errcount += test_5xx();
  return errcount == 0 ? 0 : 1;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    $0x0,%al
call   1070 <test_absent_codes@plt>
mov    %rax,%rcx
movslq -0x14(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x14(%rbp)
mov    $0x0,%al
call   1080 <test_1xx@plt>
mov    %rax,%rcx
movslq -0x14(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x14(%rbp)
mov    $0x0,%al
call   1060 <test_2xx@plt>
mov    %rax,%rcx
movslq -0x14(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x14(%rbp)
mov    $0x0,%al
call   1050 <test_3xx@plt>
mov    %rax,%rcx
movslq -0x14(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x14(%rbp)
mov    $0x0,%al
call   1040 <test_4xx@plt>
mov    %rax,%rcx
movslq -0x14(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x14(%rbp)
mov    $0x0,%al
call   1030 <test_5xx@plt>
mov    %rax,%rcx
movslq -0x14(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%edx
mov    $0x1,%eax
xor    %ecx,%ecx
cmp    $0x0,%edx
cmove  %ecx,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
xor    %eax,%eax
call   1070 <test_absent_codes@plt>
mov    %rax,%r14
xor    %eax,%eax
call   1080 <test_1xx@plt>
mov    %rax,%r15
add    %r14d,%r15d
xor    %eax,%eax
call   1060 <test_2xx@plt>
mov    %rax,%rbx
add    %r15d,%ebx
xor    %eax,%eax
call   1050 <test_3xx@plt>
mov    %rax,%r14
add    %ebx,%r14d
xor    %eax,%eax
call   1040 <test_4xx@plt>
mov    %rax,%rbx
add    %r14d,%ebx
xor    %eax,%eax
call   1030 <test_5xx@plt>
xor    %ecx,%ecx
add    %ebx,%eax
setne  %cl
mov    %ecx,%eax
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
%7 = load i32, i32* %4
%8 = load i8**, i8*** %5
%9 = call i64 (...) @test_absent_codes()
%10 = load i32, i32* %6
%11 = sext i32 %10 to i64
%12 = add nsw i64 %11, %9
%13 = trunc i64 %12 to i32
store i32 %13, i32* %6
%14 = call i64 (...) @test_1xx()
%15 = load i32, i32* %6
%16 = sext i32 %15 to i64
%17 = add nsw i64 %16, %14
%18 = trunc i64 %17 to i32
store i32 %18, i32* %6
%19 = call i64 (...) @test_2xx()
%20 = load i32, i32* %6
%21 = sext i32 %20 to i64
%22 = add nsw i64 %21, %19
%23 = trunc i64 %22 to i32
store i32 %23, i32* %6
%24 = call i64 (...) @test_3xx()
%25 = load i32, i32* %6
%26 = sext i32 %25 to i64
%27 = add nsw i64 %26, %24
%28 = trunc i64 %27 to i32
store i32 %28, i32* %6
%29 = call i64 (...) @test_4xx()
%30 = load i32, i32* %6
%31 = sext i32 %30 to i64
%32 = add nsw i64 %31, %29
%33 = trunc i64 %32 to i32
store i32 %33, i32* %6
%34 = call i64 (...) @test_5xx()
%35 = load i32, i32* %6
%36 = sext i32 %35 to i64
%37 = add nsw i64 %36, %34
%38 = trunc i64 %37 to i32
store i32 %38, i32* %6
%39 = load i32, i32* %6
%40 = icmp eq i32 %39, 0
%41 = zext i1 %40 to i64
%42 = select i1 %40, i32 0, i32 1
ret i32 %42
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i64 (...) @test_absent_codes()
%4 = tail call i64 (...) @test_1xx()
%5 = add i64 %4, %3
%6 = tail call i64 (...) @test_2xx()
%7 = add i64 %5, %6
%8 = tail call i64 (...) @test_3xx()
%9 = add i64 %7, %8
%10 = tail call i64 (...) @test_4xx()
%11 = add i64 %9, %10
%12 = tail call i64 (...) @test_5xx()
%13 = add i64 %11, %12
%14 = trunc i64 %13 to i32
%15 = icmp ne i32 %14, 0
%16 = zext i1 %15 to i32
ret i32 %16
}