#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*/ EXIT_FAILURE;
int /*<<< orphan*/ EXIT_SUCCESS;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *, double, char *,
                           char *);
int /*<<< orphan*/ main_usage(int /*<<< orphan*/);
int paired_main(int, char **);
int single_main(int, char **);
int /*<<< orphan*/ stdout;
scalar_t__ strcmp(char *, char *);
int main(int argc, char *argv[]) {
  int retval = 0;
  if (argc < 2 ||
      (strcmp(argv[1], "pe") != 0 && strcmp(argv[1], "se") != 0 &&
       strcmp(argv[1], "--version") != 0 && strcmp(argv[1], "--help") != 0)) {
    main_usage(EXIT_FAILURE);
  }
  if (strcmp(argv[1], "--version") == 0) {
    fprintf(stdout,
            "%s version %0.3f\nCopyright (c) 2011 The Regents of University of "
            "California, Davis Campus.\n%s is free software and comes with "
            "ABSOLUTELY NO WARRANTY.\nDistributed under the MIT "
            "License.\n\nWritten by %s\n",
            "sabre", 0.0, "sabre",
            "Nikhil Joshi, UC Davis Bioinformatics Core\n");
    exit(EXIT_SUCCESS);
  } else if (strcmp(argv[1], "--help") == 0) {
    main_usage(EXIT_SUCCESS);
  } else if (strcmp(argv[1], "pe") == 0) {
    retval = paired_main(argc, argv);
    return (retval);
  } else if (strcmp(argv[1], "se") == 0) {
    retval = single_main(argc, argv);
    return (retval);
  }
  return 0;
}


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)
cmpl   $0x2,-0x8(%rbp)
jl     11ff <main+0x9f>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe6a(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     120d <main+0xad>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe4f(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     120d <main+0xad>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe34(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     120d <main+0xad>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe20(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     120d <main+0xad>
mov    0x2dda(%rip),%rax
mov    (%rax),%edi
call   1040 <main_usage@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xdea(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    1262 <main+0x102>
mov    0x2da6(%rip),%rax
mov    (%rax),%edi
lea    0xddc(%rip),%rsi
lea    0xe9e(%rip),%rcx
xorps  %xmm0,%xmm0
lea    0xe9a(%rip),%r8
mov    %rcx,%rdx
call   1070 <fprintf@plt>
mov    0x2d75(%rip),%rax
mov    (%rax),%edi
call   1080 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xd9f(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    1293 <main+0x133>
mov    0x2d49(%rip),%rax
mov    (%rax),%edi
call   1040 <main_usage@plt>
jmp    130d <main+0x1ad>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xd5e(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    12cb <main+0x16b>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1050 <paired_main@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1319 <main+0x1b9>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xd29(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    1303 <main+0x1a3>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1030 <single_main@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1319 <main+0x1b9>
jmp    1308 <main+0x1a8>
jmp    130d <main+0x1ad>
jmp    1312 <main+0x1b2>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %edi,%ebp
cmp    $0x2,%edi
jge    117d <main+0x1d>
mov    0x2e6c(%rip),%rax
mov    (%rax),%edi
call   1040 <main_usage@plt>
jmp    11d1 <main+0x71>
mov    0x8(%rbx),%rdi
lea    0xe78(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     11d1 <main+0x71>
mov    0x8(%rbx),%rdi
lea    0xe66(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     11d1 <main+0x71>
mov    0x8(%rbx),%rdi
lea    0xe54(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     11d1 <main+0x71>
mov    0x8(%rbx),%rdi
lea    0xe49(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
jne    116d <main+0xd>
mov    0x8(%rbx),%rdi
lea    0xe2a(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     125c <main+0xfc>
mov    0x8(%rbx),%rdi
lea    0xe1f(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     1235 <main+0xd5>
mov    0x8(%rbx),%rdi
lea    0xdfa(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     124c <main+0xec>
mov    0x8(%rbx),%rdi
lea    0xde8(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
jne    1243 <main+0xe3>
mov    %ebp,%edi
mov    %rbx,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1030 <single_main@plt>
mov    0x2d94(%rip),%rax
mov    (%rax),%edi
call   1040 <main_usage@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret
mov    %ebp,%edi
mov    %rbx,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1050 <paired_main@plt>
mov    0x2d75(%rip),%rax
mov    (%rax),%edi
lea    0xdab(%rip),%rsi
lea    0xe6d(%rip),%rcx
lea    0xe6c(%rip),%r8
xorps  %xmm0,%xmm0
mov    %rcx,%rdx
call   1070 <fprintf@plt>
mov    0x2d44(%rip),%rax
mov    (%rax),%edi
call   1080 <exit@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"pe\00"
@.str.1 = [3 x i8] c"se\00"
@.str.2 = [10 x i8] c"--version\00"
@.str.3 = [7 x i8] c"--help\00"
@EXIT_FAILURE = global i32 0
@stdout = global i32 0
@.str.4 = [201 x i8] c"%s version %0.3f\0ACopyright (c) 2011 The Regents of University of California, Davis Campus.\0A%s is free software and comes with ABSOLUTELY NO WARRANTY.\0ADistributed under the MIT License.\0A\0AWritten by %s\0A\00"
@.str.5 = [6 x i8] c"sabre\00"
@.str.6 = [44 x i8] c"Nikhil Joshi, UC Davis Bioinformatics Core\0A\00"
@EXIT_SUCCESS = global i32 0
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 = icmp slt i32 %7, 2
br i1 %8, label %33, label %9
9: ; preds = %2
%10 = load i8**, i8*** %5
%11 = getelementptr inbounds i8*, i8** %10, i64 1
%12 = load i8*, i8** %11
%13 = call i64 @strcmp(i8* %12, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%14 = icmp ne i64 %13, 0
br i1 %14, label %15, label %36
15: ; preds = %9
%16 = load i8**, i8*** %5
%17 = getelementptr inbounds i8*, i8** %16, i64 1
%18 = load i8*, i8** %17
%19 = call i64 @strcmp(i8* %18, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%20 = icmp ne i64 %19, 0
br i1 %20, label %21, label %36
21: ; preds = %15
%22 = load i8**, i8*** %5
%23 = getelementptr inbounds i8*, i8** %22, i64 1
%24 = load i8*, i8** %23
%25 = call i64 @strcmp(i8* %24, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%26 = icmp ne i64 %25, 0
br i1 %26, label %27, label %36
27: ; preds = %21
%28 = load i8**, i8*** %5
%29 = getelementptr inbounds i8*, i8** %28, i64 1
%30 = load i8*, i8** %29
%31 = call i64 @strcmp(i8* %30, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
%32 = icmp ne i64 %31, 0
br i1 %32, label %33, label %36
33: ; preds = %27, %2
%34 = load i32, i32* @EXIT_FAILURE
%35 = call i32 @main_usage(i32 %34)
br label %36
36: ; preds = %33, %27, %21, %15, %9
%37 = load i8**, i8*** %5
%38 = getelementptr inbounds i8*, i8** %37, i64 1
%39 = load i8*, i8** %38
%40 = call i64 @strcmp(i8* %39, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%41 = icmp eq i64 %40, 0
br i1 %41, label %42, label %47
42: ; preds = %36
%43 = load i32, i32* @stdout
%44 = call i32 @fprintf(i32 %43, i8* getelementptr inbounds ([201 x i8], [201 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), double 0.000000e+00, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.6, i64 0, i64 0))
%45 = load i32, i32* @EXIT_SUCCESS
%46 = call i32 @exit(i32 %45)
unreachable
47: ; preds = %36
%48 = load i8**, i8*** %5
%49 = getelementptr inbounds i8*, i8** %48, i64 1
%50 = load i8*, i8** %49
%51 = call i64 @strcmp(i8* %50, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
%52 = icmp eq i64 %51, 0
br i1 %52, label %53, label %56
53: ; preds = %47
%54 = load i32, i32* @EXIT_SUCCESS
%55 = call i32 @main_usage(i32 %54)
br label %80
56: ; preds = %47
%57 = load i8**, i8*** %5
%58 = getelementptr inbounds i8*, i8** %57, i64 1
%59 = load i8*, i8** %58
%60 = call i64 @strcmp(i8* %59, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%61 = icmp eq i64 %60, 0
br i1 %61, label %62, label %67
62: ; preds = %56
%63 = load i32, i32* %4
%64 = load i8**, i8*** %5
%65 = call i32 @paired_main(i32 %63, i8** %64)
store i32 %65, i32* %6
%66 = load i32, i32* %6
store i32 %66, i32* %3
br label %82
67: ; preds = %56
%68 = load i8**, i8*** %5
%69 = getelementptr inbounds i8*, i8** %68, i64 1
%70 = load i8*, i8** %69
%71 = call i64 @strcmp(i8* %70, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%72 = icmp eq i64 %71, 0
br i1 %72, label %73, label %78
73: ; preds = %67
%74 = load i32, i32* %4
%75 = load i8**, i8*** %5
%76 = call i32 @single_main(i32 %74, i8** %75)
store i32 %76, i32* %6
%77 = load i32, i32* %6
store i32 %77, i32* %3
br label %82
78: ; preds = %67
br label %79
79: ; preds = %78
br label %80
80: ; preds = %79, %53
br label %81
81: ; preds = %80
store i32 0, i32* %3
br label %82
82: ; preds = %81, %73, %62
%83 = load i32, i32* %3
ret i32 %83
}

LLVM IR (-O2):
@.str = [3 x i8] c"pe\00"
@.str.1 = [3 x i8] c"se\00"
@.str.2 = [10 x i8] c"--version\00"
@.str.3 = [7 x i8] c"--help\00"
@EXIT_FAILURE = global i32 0
@stdout = global i32 0
@.str.4 = [201 x i8] c"%s version %0.3f\0ACopyright (c) 2011 The Regents of University of California, Davis Campus.\0A%s is free software and comes with ABSOLUTELY NO WARRANTY.\0ADistributed under the MIT License.\0A\0AWritten by %s\0A\00"
@.str.5 = [6 x i8] c"sabre\00"
@.str.6 = [44 x i8] c"Nikhil Joshi, UC Davis Bioinformatics Core\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = icmp slt i32 %0, 2
br i1 %3, label %21, label %4
4: ; preds = %2
%5 = getelementptr inbounds i8*, i8** %1, i64 1
%6 = load i8*, i8** %5
%7 = tail call i64 @strcmp(i8* %6, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%8 = icmp eq i64 %7, 0
br i1 %8, label %24, label %9
9: ; preds = %4
%10 = load i8*, i8** %5
%11 = tail call i64 @strcmp(i8* %10, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%12 = icmp eq i64 %11, 0
br i1 %12, label %24, label %13
13: ; preds = %9
%14 = load i8*, i8** %5
%15 = tail call i64 @strcmp(i8* %14, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%16 = icmp eq i64 %15, 0
br i1 %16, label %24, label %17
17: ; preds = %13
%18 = load i8*, i8** %5
%19 = tail call i64 @strcmp(i8* %18, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
%20 = icmp eq i64 %19, 0
br i1 %20, label %24, label %21
21: ; preds = %17, %2
%22 = load i32, i32* @EXIT_FAILURE
%23 = tail call i32 @main_usage(i32 %22)
br label %24
24: ; preds = %21, %17, %13, %9, %4
%25 = getelementptr inbounds i8*, i8** %1, i64 1
%26 = load i8*, i8** %25
%27 = tail call i64 @strcmp(i8* %26, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%28 = icmp eq i64 %27, 0
br i1 %28, label %29, label %34
29: ; preds = %24
%30 = load i32, i32* @stdout
%31 = tail call i32 @fprintf(i32 %30, i8* getelementptr inbounds ([201 x i8], [201 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), double 0.000000e+00, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.6, i64 0, i64 0))
%32 = load i32, i32* @EXIT_SUCCESS
%33 = tail call i32 @exit(i32 %32)
unreachable
34: ; preds = %24
%35 = load i8*, i8** %25
%36 = tail call i64 @strcmp(i8* %35, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
%37 = icmp eq i64 %36, 0
br i1 %37, label %38, label %41
38: ; preds = %34
%39 = load i32, i32* @EXIT_SUCCESS
%40 = tail call i32 @main_usage(i32 %39)
br label %53
41: ; preds = %34
%42 = load i8*, i8** %25
%43 = tail call i64 @strcmp(i8* %42, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%44 = icmp eq i64 %43, 0
br i1 %44, label %45, label %47
45: ; preds = %41
%46 = tail call i32 @paired_main(i32 %0, i8** %1)
br label %53
47: ; preds = %41
%48 = load i8*, i8** %25
%49 = tail call i64 @strcmp(i8* %48, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%50 = icmp eq i64 %49, 0
br i1 %50, label %51, label %53
51: ; preds = %47
%52 = tail call i32 @single_main(i32 %0, i8** %1)
br label %53
53: ; preds = %47, %38, %51, %45
%54 = phi i32 [ %46, %45 ], [ %52, %51 ], [ 0, %38 ], [ 0, %47 ]
ret i32 %54
}