#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 /*<<< orphan*/ test_all_options_long();
int /*<<< orphan*/ test_all_options_short();
int /*<<< orphan*/ test_help_long();
int /*<<< orphan*/ test_help_short();
int /*<<< orphan*/ test_invalid_color();
int /*<<< orphan*/ test_invalid_option();
int /*<<< orphan*/ test_invalid_pattern();
int /*<<< orphan*/ test_no_args();
int /*<<< orphan*/ test_one_option_one_pattern();
int /*<<< orphan*/ test_two_patterns();
int /*<<< orphan*/ test_two_patterns_filename();
int main(int argc, char **argv) {
  printf("Started testing arg_parser...\n");
  test_no_args();
  test_help_short();
  test_help_long();
  test_all_options_short();
  test_all_options_long();
  test_two_patterns();
  test_one_option_one_pattern();
  test_two_patterns_filename();
  test_invalid_color();
  test_invalid_pattern();
  test_invalid_option();
  printf("Finished testing arg_parser SUCCESSFULY!\n\n");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xe2a(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1030 <test_no_args@plt>
mov    $0x0,%al
call   1040 <test_help_short@plt>
mov    $0x0,%al
call   10d0 <test_help_long@plt>
mov    $0x0,%al
call   1070 <test_all_options_short@plt>
mov    $0x0,%al
call   1090 <test_all_options_long@plt>
mov    $0x0,%al
call   10c0 <test_two_patterns@plt>
mov    $0x0,%al
call   10e0 <test_one_option_one_pattern@plt>
mov    $0x0,%al
call   1060 <test_two_patterns_filename@plt>
mov    $0x0,%al
call   10a0 <test_invalid_color@plt>
mov    $0x0,%al
call   1080 <test_invalid_pattern@plt>
mov    $0x0,%al
call   10b0 <test_invalid_option@plt>
lea    0xdf0(%rip),%rdi
call   1050 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xe38(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1040 <test_no_args@plt>
xor    %eax,%eax
call   1050 <test_help_short@plt>
xor    %eax,%eax
call   10d0 <test_help_long@plt>
xor    %eax,%eax
call   1070 <test_all_options_short@plt>
xor    %eax,%eax
call   1090 <test_all_options_long@plt>
xor    %eax,%eax
call   10c0 <test_two_patterns@plt>
xor    %eax,%eax
call   10e0 <test_one_option_one_pattern@plt>
xor    %eax,%eax
call   1060 <test_two_patterns_filename@plt>
xor    %eax,%eax
call   10a0 <test_invalid_color@plt>
xor    %eax,%eax
call   1080 <test_invalid_pattern@plt>
xor    %eax,%eax
call   10b0 <test_invalid_option@plt>
lea    0xdfd(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [31 x i8] c"Started testing arg_parser...\0A\00"
@.str.1 = [43 x i8] c"Finished testing arg_parser SUCCESSFULY!\0A\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
store i32 %0, i32* %3
store i8** %1, i8*** %4
%5 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0))
%6 = call i32 (...) @test_no_args()
%7 = call i32 (...) @test_help_short()
%8 = call i32 (...) @test_help_long()
%9 = call i32 (...) @test_all_options_short()
%10 = call i32 (...) @test_all_options_long()
%11 = call i32 (...) @test_two_patterns()
%12 = call i32 (...) @test_one_option_one_pattern()
%13 = call i32 (...) @test_two_patterns_filename()
%14 = call i32 (...) @test_invalid_color()
%15 = call i32 (...) @test_invalid_pattern()
%16 = call i32 (...) @test_invalid_option()
%17 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.1, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@str = [30 x i8] c"Started testing arg_parser...\00"
@str.2 = [42 x i8] c"Finished testing arg_parser SUCCESSFULY!\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 (...) @test_no_args()
%5 = tail call i32 (...) @test_help_short()
%6 = tail call i32 (...) @test_help_long()
%7 = tail call i32 (...) @test_all_options_short()
%8 = tail call i32 (...) @test_all_options_long()
%9 = tail call i32 (...) @test_two_patterns()
%10 = tail call i32 (...) @test_one_option_one_pattern()
%11 = tail call i32 (...) @test_two_patterns_filename()
%12 = tail call i32 (...) @test_invalid_color()
%13 = tail call i32 (...) @test_invalid_pattern()
%14 = tail call i32 (...) @test_invalid_option()
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.2, i64 0, i64 0))
ret i32 0
}