#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*/ HitsControl(char **);
int /*<<< orphan*/ terror(char *);
int main(int ac, char **av) {
  if (ac != 10)
    terror("usage: FragsHits SeqX SeqY Hits.File Outfile Lmin SimThr WL "
           "fixedLen(1/0) strand(f/r)");
  if (av[9][0] != 'f' && av[9][0] != 'r')
    terror("strand argument must be 'f' or 'r'");
  HitsControl(av);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0xa,-0x8(%rbp)
je     114c <main+0x2c>
lea    0xeb9(%rip),%rdi
call   1040 <terror@plt>
mov    -0x10(%rbp),%rax
mov    0x48(%rax),%rax
movsbl (%rax),%eax
cmp    $0x66,%eax
je     1180 <main+0x60>
mov    -0x10(%rbp),%rax
mov    0x48(%rax),%rax
movsbl (%rax),%eax
cmp    $0x72,%eax
je     1180 <main+0x60>
lea    0xedb(%rip),%rdi
call   1040 <terror@plt>
mov    -0x10(%rbp),%rdi
call   1030 <HitsControl@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    %rsi,%rbx
cmp    $0xa,%edi
je     1135 <main+0x15>
lea    0xed0(%rip),%rdi
call   1040 <terror@plt>
mov    0x48(%rbx),%rax
mov    (%rax),%al
cmp    $0x66,%al
je     114f <main+0x2f>
cmp    $0x72,%al
je     114f <main+0x2f>
lea    0xf0c(%rip),%rdi
call   1040 <terror@plt>
mov    %rbx,%rdi
call   1030 <HitsControl@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [86 x i8] c"usage: FragsHits SeqX SeqY Hits.File Outfile Lmin SimThr WL fixedLen(1/0) strand(f/r)\00"
@.str.1 = [35 x i8] c"strand argument must be 'f' or 'r'\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = load i32, i32* %4
%7 = icmp ne i32 %6, 10
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = call i32 @terror(i8* getelementptr inbounds ([86 x i8], [86 x i8]* @.str, i64 0, i64 0))
br label %10
10: ; preds = %8, %2
%11 = load i8**, i8*** %5
%12 = getelementptr inbounds i8*, i8** %11, i64 9
%13 = load i8*, i8** %12
%14 = getelementptr inbounds i8, i8* %13, i64 0
%15 = load i8, i8* %14
%16 = sext i8 %15 to i32
%17 = icmp ne i32 %16, 102
br i1 %17, label %18, label %28
18: ; preds = %10
%19 = load i8**, i8*** %5
%20 = getelementptr inbounds i8*, i8** %19, i64 9
%21 = load i8*, i8** %20
%22 = getelementptr inbounds i8, i8* %21, i64 0
%23 = load i8, i8* %22
%24 = sext i8 %23 to i32
%25 = icmp ne i32 %24, 114
br i1 %25, label %26, label %28
26: ; preds = %18
%27 = call i32 @terror(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.1, i64 0, i64 0))
br label %28
28: ; preds = %26, %18, %10
%29 = load i8**, i8*** %5
%30 = call i32 @HitsControl(i8** %29)
ret i32 0
}

LLVM IR (-O2):
@.str = [86 x i8] c"usage: FragsHits SeqX SeqY Hits.File Outfile Lmin SimThr WL fixedLen(1/0) strand(f/r)\00"
@.str.1 = [35 x i8] c"strand argument must be 'f' or 'r'\00"
define i32 @main(i32 %0, i8** %1) {
%3 = icmp eq i32 %0, 10
br i1 %3, label %6, label %4
4: ; preds = %2
%5 = tail call i32 @terror(i8* getelementptr inbounds ([86 x i8], [86 x i8]* @.str, i64 0, i64 0))
br label %6
6: ; preds = %4, %2
%7 = getelementptr inbounds i8*, i8** %1, i64 9
%8 = load i8*, i8** %7
%9 = load i8, i8* %8
switch i8 %9, label %10 [
i8 102, label %12
i8 114, label %12
]
10: ; preds = %6
%11 = tail call i32 @terror(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.1, i64 0, i64 0))
br label %12
12: ; preds = %6, %6, %10
%13 = tail call i32 @HitsControl(i8** %1)
ret i32 0
}