#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*/ strcmp(char const *, char *);
int strlen(char const *);
const char *zcatExec(const char *path) {
  int strl = strlen(path);
  return (!strcmp(path + strl - 3, ".ar"))        ? "ar -p"
         : (!strcmp(path + strl - 4, ".tar"))     ? "tar -xOf"
         : (!strcmp(path + strl - 6, ".tar.Z"))   ? "tar -zxOf"
         : (!strcmp(path + strl - 7, ".tar.gz"))  ? "tar -zxOf"
         : (!strcmp(path + strl - 8, ".tar.bz2")) ? "tar -jxOf"
         : (!strcmp(path + strl - 7, ".tar.xz"))
             ? "tar --use-compress-program=xzdec -xOf"
         : (!strcmp(path + strl - 2, ".Z"))   ? "gunzip -c"
         : (!strcmp(path + strl - 3, ".gz"))  ? "gunzip -c"
         : (!strcmp(path + strl - 4, ".bz2")) ? "bunzip2 -c"
         : (!strcmp(path + strl - 3, ".xz"))  ? "xzdec -c"
         : (!strcmp(path + strl - 4, ".zip")) ? "unzip -p"
         : (!strcmp(path + strl - 4, ".bam")) ? "samtools view -h"
         : (!strcmp(path + strl - 3, ".jf"))  ? "jellyfish dump"
         : (!strcmp(path + strl - 4, ".jfq")) ? "jellyfish qdump"
         : (!strcmp(path + strl - 4, ".sra")) ? "fastq-dump -Z --split-spot"
         : (!strcmp(path + strl - 4, ".url")) ? "wget -O- -i"
                                              : NULL;
}


x86 assembly (clang, -O0):
<zcatExec>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%rdi
movslq -0xc(%rbp),%rax
add    %rax,%rdi
add    $0xfffffffffffffffd,%rdi
lea    0xeaf(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    116f <zcatExec+0x4f>
lea    0xe9e(%rip),%rax
mov    %rax,-0x18(%rbp)
jmp    14f8 <zcatExec+0x3d8>
mov    -0x8(%rbp),%rdi
movslq -0xc(%rbp),%rax
add    %rax,%rdi
add    $0xfffffffffffffffc,%rdi
lea    0xe85(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    11a3 <zcatExec+0x83>
lea    0xe75(%rip),%rax
mov    %rax,-0x20(%rbp)
jmp    14f0 <zcatExec+0x3d0>
mov    -0x8(%rbp),%rdi
movslq -0xc(%rbp),%rax
add    %rax,%rdi
add    $0xfffffffffffffffa,%rdi
lea    0xe5f(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    11d7 <zcatExec+0xb7>
lea    0xe51(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    14e8 <zcatExec+0x3c8>
mov    -0x8(%rbp),%rdi
movslq -0xc(%rbp),%rax
add    %rax,%rdi
add    $0xfffffffffffffff9,%rdi
lea    0xe3c(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    120b <zcatExec+0xeb>
lea    0xe1d(%rip),%rax
mov    %rax,-0x30(%rbp)
jmp    14e0 <zcatExec+0x3c0>
mov    -0x8(%rbp),%rdi
movslq -0xc(%rbp),%rax
add    %rax,%rdi
add    $0xfffffffffffffff8,%rdi
lea    0xe10(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    123f <zcatExec+0x11f>
lea    0xe04(%rip),%rax
mov    %rax,-0x38(%rbp)
jmp    14d8 <zcatExec+0x3b8>
mov    -0x8(%rbp),%rdi
movslq -0xc(%rbp),%rax
add    %rax,%rdi
add    $0xfffffffffffffff9,%rdi
lea    0xdef(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    1273 <zcatExec+0x153>
lea    0xde2(%rip),%rax
mov    %rax,-0x40(%rbp)
jmp    14d0 <zcatExec+0x3b0>
mov    -0x8(%rbp),%rdi
movslq -0xc(%rbp),%rax
add    %rax,%rdi
add    $0xfffffffffffffffe,%rdi
lea    0xd93(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    12a7 <zcatExec+0x187>
lea    0xdd4(%rip),%rax
mov    %rax,-0x48(%rbp)
jmp    14c8 <zcatExec+0x3a8>
mov    -0x8(%rbp),%rdi
movslq -0xc(%rbp),%rax
add    %rax,%rdi
add    $0xfffffffffffffffd,%rdi
lea    0xd70(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    12db <zcatExec+0x1bb>
lea    0xda0(%rip),%rax
mov    %rax,-0x50(%rbp)
jmp    14c0 <zcatExec+0x3a0>
mov    -0x8(%rbp),%rdi
movslq -0xc(%rbp),%rax
add    %rax,%rdi
add    $0xfffffffffffffffc,%rdi
lea    0xd44(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    130f <zcatExec+0x1ef>
lea    0xd76(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    14b8 <zcatExec+0x398>
mov    -0x8(%rbp),%rdi
movslq -0xc(%rbp),%rax
add    %rax,%rdi
add    $0xfffffffffffffffd,%rdi
lea    0xd23(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    1343 <zcatExec+0x223>
lea    0xd4d(%rip),%rax
mov    %rax,-0x60(%rbp)
jmp    14b0 <zcatExec+0x390>
mov    -0x8(%rbp),%rdi
movslq -0xc(%rbp),%rax
add    %rax,%rdi
add    $0xfffffffffffffffc,%rdi
lea    0xd37(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    1377 <zcatExec+0x257>
lea    0xd27(%rip),%rax
mov    %rax,-0x68(%rbp)
jmp    14a8 <zcatExec+0x388>
mov    -0x8(%rbp),%rdi
movslq -0xc(%rbp),%rax
add    %rax,%rdi
add    $0xfffffffffffffffc,%rdi
lea    0xd11(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    13ab <zcatExec+0x28b>
lea    0xd01(%rip),%rax
mov    %rax,-0x70(%rbp)
jmp    14a0 <zcatExec+0x380>
mov    -0x8(%rbp),%rdi
movslq -0xc(%rbp),%rax
add    %rax,%rdi
add    $0xfffffffffffffffd,%rdi
lea    0xcf3(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    13df <zcatExec+0x2bf>
lea    0xce2(%rip),%rax
mov    %rax,-0x78(%rbp)
jmp    1498 <zcatExec+0x378>
mov    -0x8(%rbp),%rdi
movslq -0xc(%rbp),%rax
add    %rax,%rdi
add    $0xfffffffffffffffc,%rdi
lea    0xcd2(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    1413 <zcatExec+0x2f3>
lea    0xcc2(%rip),%rax
mov    %rax,-0x80(%rbp)
jmp    1490 <zcatExec+0x370>
mov    -0x8(%rbp),%rdi
movslq -0xc(%rbp),%rax
add    %rax,%rdi
add    $0xfffffffffffffffc,%rdi
lea    0xcb3(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    144a <zcatExec+0x32a>
lea    0xca3(%rip),%rax
mov    %rax,-0x88(%rbp)
jmp    1485 <zcatExec+0x365>
mov    -0x8(%rbp),%rdi
movslq -0xc(%rbp),%rax
add    %rax,%rdi
add    $0xfffffffffffffffc,%rdi
lea    0xc9c(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
setne  %dl
xor    $0xff,%dl
xor    %eax,%eax
lea    0xc8a(%rip),%rcx
test   $0x1,%dl
cmovne %rcx,%rax
mov    %rax,-0x88(%rbp)
mov    -0x88(%rbp),%rax
mov    %rax,-0x80(%rbp)
mov    -0x80(%rbp),%rax
mov    %rax,-0x78(%rbp)
mov    -0x78(%rbp),%rax
mov    %rax,-0x70(%rbp)
mov    -0x70(%rbp),%rax
mov    %rax,-0x68(%rbp)
mov    -0x68(%rbp),%rax
mov    %rax,-0x60(%rbp)
mov    -0x60(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x58(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x50(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<zcatExec>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rdi,%rbp
call   1030 <strlen@plt>
movslq %eax,%rbx
lea    (%rbx,%rbp,1),%r15
add    $0xfffffffffffffffd,%r15
lea    0xebb(%rip),%rsi
mov    %r15,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     12d7 <zcatExec+0x1b7>
add    %rbx,%rbp
lea    -0x4(%rbp),%r14
lea    0xea7(%rip),%rsi
mov    %r14,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     12e0 <zcatExec+0x1c0>
lea    -0x6(%rbp),%rdi
lea    0xe9a(%rip),%rsi
call   1040 <strcmp@plt>
lea    0xe95(%rip),%r12
test   %eax,%eax
je     12e7 <zcatExec+0x1c7>
lea    -0x7(%rbp),%r13
lea    0xe8c(%rip),%rsi
mov    %r13,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     12e7 <zcatExec+0x1c7>
lea    -0x8(%rbp),%rdi
lea    0xe79(%rip),%rsi
call   1040 <strcmp@plt>
test   %eax,%eax
je     12f9 <zcatExec+0x1d9>
lea    0xe78(%rip),%rsi
mov    %r13,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     1302 <zcatExec+0x1e2>
add    $0xfffffffffffffffe,%rbp
lea    0xe35(%rip),%rsi
mov    %rbp,%rdi
call   1040 <strcmp@plt>
lea    0xe7c(%rip),%r12
test   %eax,%eax
je     12e7 <zcatExec+0x1c7>
lea    0xe28(%rip),%rsi
mov    %r15,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     12e7 <zcatExec+0x1c7>
lea    0xe19(%rip),%rsi
mov    %r14,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     130b <zcatExec+0x1eb>
lea    0xe15(%rip),%rsi
mov    %r15,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     1314 <zcatExec+0x1f4>
lea    0xe46(%rip),%rsi
mov    %r14,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     131d <zcatExec+0x1fd>
lea    0xe3d(%rip),%rsi
mov    %r14,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     1326 <zcatExec+0x206>
lea    0xe3c(%rip),%rsi
mov    %r15,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     132f <zcatExec+0x20f>
lea    0xe38(%rip),%rsi
mov    %r14,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     1338 <zcatExec+0x218>
lea    0xe36(%rip),%rsi
mov    %r14,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     1341 <zcatExec+0x221>
lea    0xe3f(%rip),%rsi
mov    %r14,%rdi
call   1040 <strcmp@plt>
xor    %r12d,%r12d
test   %eax,%eax
lea    0xe30(%rip),%rax
cmove  %rax,%r12
jmp    12e7 <zcatExec+0x1c7>
lea    0xd26(%rip),%r12
jmp    12e7 <zcatExec+0x1c7>
lea    0xd28(%rip),%r12
mov    %r12,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xd3a(%rip),%r12
jmp    12e7 <zcatExec+0x1c7>
lea    0xd43(%rip),%r12
jmp    12e7 <zcatExec+0x1c7>
lea    0xd6a(%rip),%r12
jmp    12e7 <zcatExec+0x1c7>
lea    0xd6c(%rip),%r12
jmp    12e7 <zcatExec+0x1c7>
lea    0xd71(%rip),%r12
jmp    12e7 <zcatExec+0x1c7>
lea    0xd76(%rip),%r12
jmp    12e7 <zcatExec+0x1c7>
lea    0xd82(%rip),%r12
jmp    12e7 <zcatExec+0x1c7>
lea    0xd8d(%rip),%r12
jmp    12e7 <zcatExec+0x1c7>
lea    0xd99(%rip),%r12
jmp    12e7 <zcatExec+0x1c7>

LLVM IR (-O0):
@.str = [4 x i8] c".ar\00"
@.str.1 = [6 x i8] c"ar -p\00"
@.str.2 = [5 x i8] c".tar\00"
@.str.3 = [9 x i8] c"tar -xOf\00"
@.str.4 = [7 x i8] c".tar.Z\00"
@.str.5 = [10 x i8] c"tar -zxOf\00"
@.str.6 = [8 x i8] c".tar.gz\00"
@.str.7 = [9 x i8] c".tar.bz2\00"
@.str.8 = [10 x i8] c"tar -jxOf\00"
@.str.9 = [8 x i8] c".tar.xz\00"
@.str.10 = [38 x i8] c"tar --use-compress-program=xzdec -xOf\00"
@.str.11 = [3 x i8] c".Z\00"
@.str.12 = [10 x i8] c"gunzip -c\00"
@.str.13 = [4 x i8] c".gz\00"
@.str.14 = [5 x i8] c".bz2\00"
@.str.15 = [11 x i8] c"bunzip2 -c\00"
@.str.16 = [4 x i8] c".xz\00"
@.str.17 = [9 x i8] c"xzdec -c\00"
@.str.18 = [5 x i8] c".zip\00"
@.str.19 = [9 x i8] c"unzip -p\00"
@.str.20 = [5 x i8] c".bam\00"
@.str.21 = [17 x i8] c"samtools view -h\00"
@.str.22 = [4 x i8] c".jf\00"
@.str.23 = [15 x i8] c"jellyfish dump\00"
@.str.24 = [5 x i8] c".jfq\00"
@.str.25 = [16 x i8] c"jellyfish qdump\00"
@.str.26 = [5 x i8] c".sra\00"
@.str.27 = [27 x i8] c"fastq-dump -Z --split-spot\00"
@.str.28 = [5 x i8] c".url\00"
@.str.29 = [12 x i8] c"wget -O- -i\00"
define i8* @zcatExec(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
store i8* %0, i8** %2
%4 = load i8*, i8** %2
%5 = call i32 @strlen(i8* %4)
store i32 %5, i32* %3
%6 = load i8*, i8** %2
%7 = load i32, i32* %3
%8 = sext i32 %7 to i64
%9 = getelementptr inbounds i8, i8* %6, i64 %8
%10 = getelementptr inbounds i8, i8* %9, i64 -3
%11 = call i32 @strcmp(i8* %10, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%12 = icmp ne i32 %11, 0
br i1 %12, label %14, label %13
13: ; preds = %1
br label %179
14: ; preds = %1
%15 = load i8*, i8** %2
%16 = load i32, i32* %3
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i8, i8* %15, i64 %17
%19 = getelementptr inbounds i8, i8* %18, i64 -4
%20 = call i32 @strcmp(i8* %19, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%21 = icmp ne i32 %20, 0
br i1 %21, label %23, label %22
22: ; preds = %14
br label %177
23: ; preds = %14
%24 = load i8*, i8** %2
%25 = load i32, i32* %3
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i8, i8* %24, i64 %26
%28 = getelementptr inbounds i8, i8* %27, i64 -6
%29 = call i32 @strcmp(i8* %28, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%30 = icmp ne i32 %29, 0
br i1 %30, label %32, label %31
31: ; preds = %23
br label %175
32: ; preds = %23
%33 = load i8*, i8** %2
%34 = load i32, i32* %3
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i8, i8* %33, i64 %35
%37 = getelementptr inbounds i8, i8* %36, i64 -7
%38 = call i32 @strcmp(i8* %37, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0))
%39 = icmp ne i32 %38, 0
br i1 %39, label %41, label %40
40: ; preds = %32
br label %173
41: ; preds = %32
%42 = load i8*, i8** %2
%43 = load i32, i32* %3
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i8, i8* %42, i64 %44
%46 = getelementptr inbounds i8, i8* %45, i64 -8
%47 = call i32 @strcmp(i8* %46, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0))
%48 = icmp ne i32 %47, 0
br i1 %48, label %50, label %49
49: ; preds = %41
br label %171
50: ; preds = %41
%51 = load i8*, i8** %2
%52 = load i32, i32* %3
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i8, i8* %51, i64 %53
%55 = getelementptr inbounds i8, i8* %54, i64 -7
%56 = call i32 @strcmp(i8* %55, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0))
%57 = icmp ne i32 %56, 0
br i1 %57, label %59, label %58
58: ; preds = %50
br label %169
59: ; preds = %50
%60 = load i8*, i8** %2
%61 = load i32, i32* %3
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds i8, i8* %60, i64 %62
%64 = getelementptr inbounds i8, i8* %63, i64 -2
%65 = call i32 @strcmp(i8* %64, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0))
%66 = icmp ne i32 %65, 0
br i1 %66, label %68, label %67
67: ; preds = %59
br label %167
68: ; preds = %59
%69 = load i8*, i8** %2
%70 = load i32, i32* %3
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds i8, i8* %69, i64 %71
%73 = getelementptr inbounds i8, i8* %72, i64 -3
%74 = call i32 @strcmp(i8* %73, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0))
%75 = icmp ne i32 %74, 0
br i1 %75, label %77, label %76
76: ; preds = %68
br label %165
77: ; preds = %68
%78 = load i8*, i8** %2
%79 = load i32, i32* %3
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds i8, i8* %78, i64 %80
%82 = getelementptr inbounds i8, i8* %81, i64 -4
%83 = call i32 @strcmp(i8* %82, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0))
%84 = icmp ne i32 %83, 0
br i1 %84, label %86, label %85
85: ; preds = %77
br label %163
86: ; preds = %77
%87 = load i8*, i8** %2
%88 = load i32, i32* %3
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds i8, i8* %87, i64 %89
%91 = getelementptr inbounds i8, i8* %90, i64 -3
%92 = call i32 @strcmp(i8* %91, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.16, i64 0, i64 0))
%93 = icmp ne i32 %92, 0
br i1 %93, label %95, label %94
94: ; preds = %86
br label %161
95: ; preds = %86
%96 = load i8*, i8** %2
%97 = load i32, i32* %3
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds i8, i8* %96, i64 %98
%100 = getelementptr inbounds i8, i8* %99, i64 -4
%101 = call i32 @strcmp(i8* %100, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.18, i64 0, i64 0))
%102 = icmp ne i32 %101, 0
br i1 %102, label %104, label %103
103: ; preds = %95
br label %159
104: ; preds = %95
%105 = load i8*, i8** %2
%106 = load i32, i32* %3
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds i8, i8* %105, i64 %107
%109 = getelementptr inbounds i8, i8* %108, i64 -4
%110 = call i32 @strcmp(i8* %109, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.20, i64 0, i64 0))
%111 = icmp ne i32 %110, 0
br i1 %111, label %113, label %112
112: ; preds = %104
br label %157
113: ; preds = %104
%114 = load i8*, i8** %2
%115 = load i32, i32* %3
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds i8, i8* %114, i64 %116
%118 = getelementptr inbounds i8, i8* %117, i64 -3
%119 = call i32 @strcmp(i8* %118, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.22, i64 0, i64 0))
%120 = icmp ne i32 %119, 0
br i1 %120, label %122, label %121
121: ; preds = %113
br label %155
122: ; preds = %113
%123 = load i8*, i8** %2
%124 = load i32, i32* %3
%125 = sext i32 %124 to i64
%126 = getelementptr inbounds i8, i8* %123, i64 %125
%127 = getelementptr inbounds i8, i8* %126, i64 -4
%128 = call i32 @strcmp(i8* %127, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.24, i64 0, i64 0))
%129 = icmp ne i32 %128, 0
br i1 %129, label %131, label %130
130: ; preds = %122
br label %153
131: ; preds = %122
%132 = load i8*, i8** %2
%133 = load i32, i32* %3
%134 = sext i32 %133 to i64
%135 = getelementptr inbounds i8, i8* %132, i64 %134
%136 = getelementptr inbounds i8, i8* %135, i64 -4
%137 = call i32 @strcmp(i8* %136, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.26, i64 0, i64 0))
%138 = icmp ne i32 %137, 0
br i1 %138, label %140, label %139
139: ; preds = %131
br label %151
140: ; preds = %131
%141 = load i8*, i8** %2
%142 = load i32, i32* %3
%143 = sext i32 %142 to i64
%144 = getelementptr inbounds i8, i8* %141, i64 %143
%145 = getelementptr inbounds i8, i8* %144, i64 -4
%146 = call i32 @strcmp(i8* %145, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.28, i64 0, i64 0))
%147 = icmp ne i32 %146, 0
%148 = xor i1 %147, true
%149 = zext i1 %148 to i64
%150 = select i1 %148, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.29, i64 0, i64 0), i8* null
br label %151
151: ; preds = %140, %139
%152 = phi i8* [ getelementptr inbounds ([27 x i8], [27 x i8]* @.str.27, i64 0, i64 0), %139 ], [ %150, %140 ]
br label %153
153: ; preds = %151, %130
%154 = phi i8* [ getelementptr inbounds ([16 x i8], [16 x i8]* @.str.25, i64 0, i64 0), %130 ], [ %152, %151 ]
br label %155
155: ; preds = %153, %121
%156 = phi i8* [ getelementptr inbounds ([15 x i8], [15 x i8]* @.str.23, i64 0, i64 0), %121 ], [ %154, %153 ]
br label %157
157: ; preds = %155, %112
%158 = phi i8* [ getelementptr inbounds ([17 x i8], [17 x i8]* @.str.21, i64 0, i64 0), %112 ], [ %156, %155 ]
br label %159
159: ; preds = %157, %103
%160 = phi i8* [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.19, i64 0, i64 0), %103 ], [ %158, %157 ]
br label %161
161: ; preds = %159, %94
%162 = phi i8* [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.17, i64 0, i64 0), %94 ], [ %160, %159 ]
br label %163
163: ; preds = %161, %85
%164 = phi i8* [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.15, i64 0, i64 0), %85 ], [ %162, %161 ]
br label %165
165: ; preds = %163, %76
%166 = phi i8* [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0), %76 ], [ %164, %163 ]
br label %167
167: ; preds = %165, %67
%168 = phi i8* [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0), %67 ], [ %166, %165 ]
br label %169
169: ; preds = %167, %58
%170 = phi i8* [ getelementptr inbounds ([38 x i8], [38 x i8]* @.str.10, i64 0, i64 0), %58 ], [ %168, %167 ]
br label %171
171: ; preds = %169, %49
%172 = phi i8* [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0), %49 ], [ %170, %169 ]
br label %173
173: ; preds = %171, %40
%174 = phi i8* [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0), %40 ], [ %172, %171 ]
br label %175
175: ; preds = %173, %31
%176 = phi i8* [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0), %31 ], [ %174, %173 ]
br label %177
177: ; preds = %175, %22
%178 = phi i8* [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), %22 ], [ %176, %175 ]
br label %179
179: ; preds = %177, %13
%180 = phi i8* [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), %13 ], [ %178, %177 ]
ret i8* %180
}

LLVM IR (-O2):
@.str = [4 x i8] c".ar\00"
@.str.1 = [6 x i8] c"ar -p\00"
@.str.2 = [5 x i8] c".tar\00"
@.str.3 = [9 x i8] c"tar -xOf\00"
@.str.4 = [7 x i8] c".tar.Z\00"
@.str.5 = [10 x i8] c"tar -zxOf\00"
@.str.6 = [8 x i8] c".tar.gz\00"
@.str.7 = [9 x i8] c".tar.bz2\00"
@.str.8 = [10 x i8] c"tar -jxOf\00"
@.str.9 = [8 x i8] c".tar.xz\00"
@.str.10 = [38 x i8] c"tar --use-compress-program=xzdec -xOf\00"
@.str.11 = [3 x i8] c".Z\00"
@.str.12 = [10 x i8] c"gunzip -c\00"
@.str.13 = [4 x i8] c".gz\00"
@.str.14 = [5 x i8] c".bz2\00"
@.str.15 = [11 x i8] c"bunzip2 -c\00"
@.str.16 = [4 x i8] c".xz\00"
@.str.17 = [9 x i8] c"xzdec -c\00"
@.str.18 = [5 x i8] c".zip\00"
@.str.19 = [9 x i8] c"unzip -p\00"
@.str.20 = [5 x i8] c".bam\00"
@.str.21 = [17 x i8] c"samtools view -h\00"
@.str.22 = [4 x i8] c".jf\00"
@.str.23 = [15 x i8] c"jellyfish dump\00"
@.str.24 = [5 x i8] c".jfq\00"
@.str.25 = [16 x i8] c"jellyfish qdump\00"
@.str.26 = [5 x i8] c".sra\00"
@.str.27 = [27 x i8] c"fastq-dump -Z --split-spot\00"
@.str.28 = [5 x i8] c".url\00"
@.str.29 = [12 x i8] c"wget -O- -i\00"
define i8* @zcatExec(i8* %0) {
%2 = tail call i32 @strlen(i8* %0)
%3 = sext i32 %2 to i64
%4 = getelementptr inbounds i8, i8* %0, i64 %3
%5 = getelementptr inbounds i8, i8* %4, i64 -3
%6 = tail call i32 @strcmp(i8* %5, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%7 = icmp eq i32 %6, 0
br i1 %7, label %59, label %8
8: ; preds = %1
%9 = getelementptr inbounds i8, i8* %4, i64 -4
%10 = tail call i32 @strcmp(i8* %9, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%11 = icmp eq i32 %10, 0
br i1 %11, label %59, label %12
12: ; preds = %8
%13 = getelementptr inbounds i8, i8* %4, i64 -6
%14 = tail call i32 @strcmp(i8* %13, i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%15 = icmp eq i32 %14, 0
br i1 %15, label %59, label %16
16: ; preds = %12
%17 = getelementptr inbounds i8, i8* %4, i64 -7
%18 = tail call i32 @strcmp(i8* %17, i8* dereferenceable(8) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0))
%19 = icmp eq i32 %18, 0
br i1 %19, label %59, label %20
20: ; preds = %16
%21 = getelementptr inbounds i8, i8* %4, i64 -8
%22 = tail call i32 @strcmp(i8* %21, i8* dereferenceable(9) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0))
%23 = icmp eq i32 %22, 0
br i1 %23, label %59, label %24
24: ; preds = %20
%25 = tail call i32 @strcmp(i8* %17, i8* dereferenceable(8) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0))
%26 = icmp eq i32 %25, 0
br i1 %26, label %59, label %27
27: ; preds = %24
%28 = getelementptr inbounds i8, i8* %4, i64 -2
%29 = tail call i32 @strcmp(i8* %28, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0))
%30 = icmp eq i32 %29, 0
br i1 %30, label %59, label %31
31: ; preds = %27
%32 = tail call i32 @strcmp(i8* %5, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0))
%33 = icmp eq i32 %32, 0
br i1 %33, label %59, label %34
34: ; preds = %31
%35 = tail call i32 @strcmp(i8* %9, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0))
%36 = icmp eq i32 %35, 0
br i1 %36, label %59, label %37
37: ; preds = %34
%38 = tail call i32 @strcmp(i8* %5, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.16, i64 0, i64 0))
%39 = icmp eq i32 %38, 0
br i1 %39, label %59, label %40
40: ; preds = %37
%41 = tail call i32 @strcmp(i8* %9, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.18, i64 0, i64 0))
%42 = icmp eq i32 %41, 0
br i1 %42, label %59, label %43
43: ; preds = %40
%44 = tail call i32 @strcmp(i8* %9, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.20, i64 0, i64 0))
%45 = icmp eq i32 %44, 0
br i1 %45, label %59, label %46
46: ; preds = %43
%47 = tail call i32 @strcmp(i8* %5, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.22, i64 0, i64 0))
%48 = icmp eq i32 %47, 0
br i1 %48, label %59, label %49
49: ; preds = %46
%50 = tail call i32 @strcmp(i8* %9, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.24, i64 0, i64 0))
%51 = icmp eq i32 %50, 0
br i1 %51, label %59, label %52
52: ; preds = %49
%53 = tail call i32 @strcmp(i8* %9, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.26, i64 0, i64 0))
%54 = icmp eq i32 %53, 0
br i1 %54, label %59, label %55
55: ; preds = %52
%56 = tail call i32 @strcmp(i8* %9, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.28, i64 0, i64 0))
%57 = icmp eq i32 %56, 0
%58 = select i1 %57, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.29, i64 0, i64 0), i8* null
br label %59
59: ; preds = %8, %16, %24, %31, %37, %43, %49, %52, %55, %46, %40, %34, %27, %20, %12, %1
%60 = phi i8* [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), %1 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), %8 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0), %12 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0), %16 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0), %20 ], [ getelementptr inbounds ([38 x i8], [38 x i8]* @.str.10, i64 0, i64 0), %24 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0), %27 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0), %31 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.15, i64 0, i64 0), %34 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.17, i64 0, i64 0), %37 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.19, i64 0, i64 0), %40 ], [ getelementptr inbounds ([17 x i8], [17 x i8]* @.str.21, i64 0, i64 0), %43 ], [ getelementptr inbounds ([15 x i8], [15 x i8]* @.str.23, i64 0, i64 0), %46 ], [ getelementptr inbounds ([16 x i8], [16 x i8]* @.str.25, i64 0, i64 0), %49 ], [ %58, %55 ], [ getelementptr inbounds ([27 x i8], [27 x i8]* @.str.27, i64 0, i64 0), %52 ]
ret i8* %60
}