#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 *, char *, ...);
int /*<<< orphan*/ test_empty_file();
int /*<<< orphan*/ test_five_ints();
int /*<<< orphan*/ test_funky_line_breaks();
int /*<<< orphan*/ test_large_ints();
int /*<<< orphan*/ test_multi_line_add_from_stdin();
int /*<<< orphan*/ test_negative_ints();
int /*<<< orphan*/ test_nothing_w_no_args();
int /*<<< orphan*/ test_one_int();
int /*<<< orphan*/ test_one_line_from_stdin();
int /*<<< orphan*/ test_product_option();
int /*<<< orphan*/ test_two_files();
int /*<<< orphan*/ test_two_ints();
int main() {
  printf(" --> %s\n", "test_nothing_w_no_args");
  test_nothing_w_no_args();
  ;
  printf(" --> %s\n", "test_one_int");
  test_one_int();
  ;
  printf(" --> %s\n", "test_two_ints");
  test_two_ints();
  ;
  printf(" --> %s\n", "test_five_ints");
  test_five_ints();
  ;
  printf(" --> %s\n", "test_funky_line_breaks");
  test_funky_line_breaks();
  ;
  printf(" --> %s\n", "test_empty_file");
  test_empty_file();
  ;
  printf(" --> %s\n", "test_large_ints");
  test_large_ints();
  ;
  printf(" --> %s\n", "test_negative_ints");
  test_negative_ints();
  ;
  printf(" --> %s\n", "test_two_files");
  test_two_files();
  ;
  printf(" --> %s\n", "test_product_option");
  test_product_option();
  ;
  printf(" --> %s\n", "test_one_line_from_stdin");
  test_one_line_from_stdin();
  ;
  printf(" --> %s\n", "test_multi_line_add_from_stdin");
  test_multi_line_add_from_stdin();
  ;
  printf("%sPassing.%s\n", "\x1B[32m", "\x1B[0m");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xe1a(%rip),%rdi
lea    0xe1c(%rip),%rsi
mov    $0x0,%al
call   1080 <printf@plt>
mov    $0x0,%al
call   1070 <test_nothing_w_no_args@plt>
lea    0xdfe(%rip),%rdi
lea    0xe17(%rip),%rsi
mov    $0x0,%al
call   1080 <printf@plt>
mov    $0x0,%al
call   10c0 <test_one_int@plt>
lea    0xde2(%rip),%rdi
lea    0xe08(%rip),%rsi
mov    $0x0,%al
call   1080 <printf@plt>
mov    $0x0,%al
call   1030 <test_two_ints@plt>
lea    0xdc6(%rip),%rdi
lea    0xdfa(%rip),%rsi
mov    $0x0,%al
call   1080 <printf@plt>
mov    $0x0,%al
call   10e0 <test_five_ints@plt>
lea    0xdaa(%rip),%rdi
lea    0xded(%rip),%rsi
mov    $0x0,%al
call   1080 <printf@plt>
mov    $0x0,%al
call   1090 <test_funky_line_breaks@plt>
lea    0xd8e(%rip),%rdi
lea    0xde8(%rip),%rsi
mov    $0x0,%al
call   1080 <printf@plt>
mov    $0x0,%al
call   1060 <test_empty_file@plt>
lea    0xd72(%rip),%rdi
lea    0xddc(%rip),%rsi
mov    $0x0,%al
call   1080 <printf@plt>
mov    $0x0,%al
call   10b0 <test_large_ints@plt>
lea    0xd56(%rip),%rdi
lea    0xdd0(%rip),%rsi
mov    $0x0,%al
call   1080 <printf@plt>
mov    $0x0,%al
call   10f0 <test_negative_ints@plt>
lea    0xd3a(%rip),%rdi
lea    0xdc7(%rip),%rsi
mov    $0x0,%al
call   1080 <printf@plt>
mov    $0x0,%al
call   10a0 <test_two_files@plt>
lea    0xd1e(%rip),%rdi
lea    0xdba(%rip),%rsi
mov    $0x0,%al
call   1080 <printf@plt>
mov    $0x0,%al
call   10d0 <test_product_option@plt>
lea    0xd02(%rip),%rdi
lea    0xdb2(%rip),%rsi
mov    $0x0,%al
call   1080 <printf@plt>
mov    $0x0,%al
call   1040 <test_one_line_from_stdin@plt>
lea    0xce6(%rip),%rdi
lea    0xdaf(%rip),%rsi
mov    $0x0,%al
call   1080 <printf@plt>
mov    $0x0,%al
call   1050 <test_multi_line_add_from_stdin@plt>
lea    0xdb9(%rip),%rdi
lea    0xdc0(%rip),%rsi
lea    0xdbf(%rip),%rdx
mov    $0x0,%al
call   1080 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xe28(%rip),%rbx
lea    0xe2a(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1080 <printf@plt>
xor    %eax,%eax
call   1070 <test_nothing_w_no_args@plt>
lea    0xe29(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1080 <printf@plt>
xor    %eax,%eax
call   10c0 <test_one_int@plt>
lea    0xe1e(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1080 <printf@plt>
xor    %eax,%eax
call   1030 <test_two_ints@plt>
lea    0xe14(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1080 <printf@plt>
xor    %eax,%eax
call   10e0 <test_five_ints@plt>
lea    0xe0b(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1080 <printf@plt>
xor    %eax,%eax
call   1090 <test_funky_line_breaks@plt>
lea    0xe0a(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1080 <printf@plt>
xor    %eax,%eax
call   1060 <test_empty_file@plt>
lea    0xe02(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1080 <printf@plt>
xor    %eax,%eax
call   10b0 <test_large_ints@plt>
lea    0xdfa(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1080 <printf@plt>
xor    %eax,%eax
call   10f0 <test_negative_ints@plt>
lea    0xdf5(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1080 <printf@plt>
xor    %eax,%eax
call   10a0 <test_two_files@plt>
lea    0xdec(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1080 <printf@plt>
xor    %eax,%eax
call   10d0 <test_product_option@plt>
lea    0xde8(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1080 <printf@plt>
xor    %eax,%eax
call   1040 <test_one_line_from_stdin@plt>
lea    0xde9(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1080 <printf@plt>
xor    %eax,%eax
call   1050 <test_multi_line_add_from_stdin@plt>
lea    0xdf0(%rip),%rdi
lea    0xdf7(%rip),%rsi
lea    0xdf6(%rip),%rdx
xor    %eax,%eax
call   1080 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [9 x i8] c" --> %s\0A\00"
@.str.1 = [23 x i8] c"test_nothing_w_no_args\00"
@.str.2 = [13 x i8] c"test_one_int\00"
@.str.3 = [14 x i8] c"test_two_ints\00"
@.str.4 = [15 x i8] c"test_five_ints\00"
@.str.5 = [23 x i8] c"test_funky_line_breaks\00"
@.str.6 = [16 x i8] c"test_empty_file\00"
@.str.7 = [16 x i8] c"test_large_ints\00"
@.str.8 = [19 x i8] c"test_negative_ints\00"
@.str.9 = [15 x i8] c"test_two_files\00"
@.str.10 = [20 x i8] c"test_product_option\00"
@.str.11 = [25 x i8] c"test_one_line_from_stdin\00"
@.str.12 = [31 x i8] c"test_multi_line_add_from_stdin\00"
@.str.13 = [14 x i8] c"%sPassing.%s\0A\00"
@.str.14 = [6 x i8] c"\1B[32m\00"
@.str.15 = [5 x i8] c"\1B[0m\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 (...) @test_nothing_w_no_args()
%4 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
%5 = call i32 (...) @test_one_int()
%6 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0))
%7 = call i32 (...) @test_two_ints()
%8 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
%9 = call i32 (...) @test_five_ints()
%10 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0))
%11 = call i32 (...) @test_funky_line_breaks()
%12 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.6, i64 0, i64 0))
%13 = call i32 (...) @test_empty_file()
%14 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0))
%15 = call i32 (...) @test_large_ints()
%16 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0))
%17 = call i32 (...) @test_negative_ints()
%18 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0))
%19 = call i32 (...) @test_two_files()
%20 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.10, i64 0, i64 0))
%21 = call i32 (...) @test_product_option()
%22 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.11, i64 0, i64 0))
%23 = call i32 (...) @test_one_line_from_stdin()
%24 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.12, i64 0, i64 0))
%25 = call i32 (...) @test_multi_line_add_from_stdin()
%26 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [9 x i8] c" --> %s\0A\00"
@.str.1 = [23 x i8] c"test_nothing_w_no_args\00"
@.str.2 = [13 x i8] c"test_one_int\00"
@.str.3 = [14 x i8] c"test_two_ints\00"
@.str.4 = [15 x i8] c"test_five_ints\00"
@.str.5 = [23 x i8] c"test_funky_line_breaks\00"
@.str.6 = [16 x i8] c"test_empty_file\00"
@.str.7 = [16 x i8] c"test_large_ints\00"
@.str.8 = [19 x i8] c"test_negative_ints\00"
@.str.9 = [15 x i8] c"test_two_files\00"
@.str.10 = [20 x i8] c"test_product_option\00"
@.str.11 = [25 x i8] c"test_one_line_from_stdin\00"
@.str.12 = [31 x i8] c"test_multi_line_add_from_stdin\00"
@.str.13 = [14 x i8] c"%sPassing.%s\0A\00"
@.str.14 = [6 x i8] c"\1B[32m\00"
@.str.15 = [5 x i8] c"\1B[0m\00"
define i32 @main() {
%1 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 (...) @test_nothing_w_no_args()
%3 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 (...) @test_one_int()
%5 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0))
%6 = tail call i32 (...) @test_two_ints()
%7 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
%8 = tail call i32 (...) @test_five_ints()
%9 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0))
%10 = tail call i32 (...) @test_funky_line_breaks()
%11 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.6, i64 0, i64 0))
%12 = tail call i32 (...) @test_empty_file()
%13 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0))
%14 = tail call i32 (...) @test_large_ints()
%15 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0))
%16 = tail call i32 (...) @test_negative_ints()
%17 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0))
%18 = tail call i32 (...) @test_two_files()
%19 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.10, i64 0, i64 0))
%20 = tail call i32 (...) @test_product_option()
%21 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.11, i64 0, i64 0))
%22 = tail call i32 (...) @test_one_line_from_stdin()
%23 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.12, i64 0, i64 0))
%24 = tail call i32 (...) @test_multi_line_add_from_stdin()
%25 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0))
ret i32 0
}