#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int EOF;
int /*<<< orphan*/ LOG_NOTICE;
char *basename(char *);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int fgetc(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
scalar_t__ match(char *, char *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ putchar(int);
int /*<<< orphan*/ syslog(int /*<<< orphan*/, char *, char *);
int http_send_file(char *filename) {
  syslog(LOG_NOTICE, "Requesting file: %s\n", filename);
  FILE *fp;
  int i;
  if ((fp = fopen(filename, "rb"))) {
    if (match(filename, "jpeg$") || match(filename, "JPEG$")) {
      printf("Content-Type: image/jpeg\n");
    } else if (match(filename, "jpg$") || match(filename, "JPG$")) {
      printf("Content-Type: image/jpeg\n");
    } else if (match(filename, "gif$") || match(filename, "GIF$")) {
      printf("Content-Type: image/gif\n");
    } else if (match(filename, "png$") || match(filename, "PNG$")) {
      printf("Content-Type: image/png\n");
    } else if (match(filename, "mpg$") || match(filename, "MPG$") ||
               match(filename, "mpeg$")) {
      printf("Content-Type: video/mpeg\n");
    } else if (match(filename, "mp4$") || match(filename, "MP4$")) {
      printf("Content-Type: video/mp4\n");
    } else if (match(filename, "ogg$") || match(filename, "OGG$")) {
      printf("Content-Type: video/ogg\n");
    } else if (match(filename, "wmv$") || match(filename, "WMV$")) {
      printf("Content-Type: video/x-ms-wmv\n");
    } else if (match(filename, "webm$") || match(filename, "WEBM$")) {
      printf("Content-Type: video/webm\n");
    } else if (match(filename, "html$") || match(filename, "HTML$")) {
      printf("Content-Type: text/html\n");
    } else if (match(filename, "htm$") || match(filename, "HTM$")) {
      printf("Content-Type: text/html\n");
    } else if (match(filename, "xml$") || match(filename, "XML$")) {
      printf("Content-Type: text/xml\n");
    } else {
      printf("Content-Type: text/plain\n");
    }
    printf("Content-Disposition: filename=%s\n", basename(filename));
    printf("\n");
    do {
      i = fgetc(fp);
      if (i != EOF)
        putchar(i);
    } while (i != EOF);
    fclose(fp);
    return 1;
  } else {
    syslog(LOG_NOTICE, "Error opening file: %s\n", filename);
    printf("Content-Type: text/plain\n\n");
    printf("FILE NOT FOUND\n");
    return -1;
  }
}


x86 assembly (clang, -O0):
<http_send_file>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    0x2e45(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rdx
lea    0xe60(%rip),%rsi
call   1080 <syslog@plt>
mov    -0x10(%rbp),%rdi
lea    0xe65(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmp    $0x0,%rax
je     15f0 <http_send_file+0x470>
mov    -0x10(%rbp),%rdi
lea    0xe4a(%rip),%rsi
call   1090 <match@plt>
cmp    $0x0,%rax
jne    11f7 <http_send_file+0x77>
mov    -0x10(%rbp),%rdi
lea    0xe36(%rip),%rsi
call   1090 <match@plt>
cmp    $0x0,%rax
je     120a <http_send_file+0x8a>
lea    0xe26(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1576 <http_send_file+0x3f6>
mov    -0x10(%rbp),%rdi
lea    0xe29(%rip),%rsi
call   1090 <match@plt>
cmp    $0x0,%rax
jne    123e <http_send_file+0xbe>
mov    -0x10(%rbp),%rdi
lea    0xe14(%rip),%rsi
call   1090 <match@plt>
cmp    $0x0,%rax
je     1251 <http_send_file+0xd1>
lea    0xddf(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1571 <http_send_file+0x3f1>
mov    -0x10(%rbp),%rdi
lea    0xdec(%rip),%rsi
call   1090 <match@plt>
cmp    $0x0,%rax
jne    1285 <http_send_file+0x105>
mov    -0x10(%rbp),%rdi
lea    0xdd7(%rip),%rsi
call   1090 <match@plt>
cmp    $0x0,%rax
je     1298 <http_send_file+0x118>
lea    0xdc6(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    156c <http_send_file+0x3ec>
mov    -0x10(%rbp),%rdi
lea    0xdc8(%rip),%rsi
call   1090 <match@plt>
cmp    $0x0,%rax
jne    12cc <http_send_file+0x14c>
mov    -0x10(%rbp),%rdi
lea    0xdb3(%rip),%rsi
call   1090 <match@plt>
cmp    $0x0,%rax
je     12df <http_send_file+0x15f>
lea    0xda2(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1567 <http_send_file+0x3e7>
mov    -0x10(%rbp),%rdi
lea    0xda4(%rip),%rsi
call   1090 <match@plt>
cmp    $0x0,%rax
jne    132d <http_send_file+0x1ad>
mov    -0x10(%rbp),%rdi
lea    0xd8f(%rip),%rsi
call   1090 <match@plt>
cmp    $0x0,%rax
jne    132d <http_send_file+0x1ad>
mov    -0x10(%rbp),%rdi
lea    0xd7a(%rip),%rsi
call   1090 <match@plt>
cmp    $0x0,%rax
je     1340 <http_send_file+0x1c0>
lea    0xd6a(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1562 <http_send_file+0x3e2>
mov    -0x10(%rbp),%rdi
lea    0xd6d(%rip),%rsi
call   1090 <match@plt>
cmp    $0x0,%rax
jne    1374 <http_send_file+0x1f4>
mov    -0x10(%rbp),%rdi
lea    0xd58(%rip),%rsi
call   1090 <match@plt>
cmp    $0x0,%rax
je     1387 <http_send_file+0x207>
lea    0xd47(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    155d <http_send_file+0x3dd>
mov    -0x10(%rbp),%rdi
lea    0xd49(%rip),%rsi
call   1090 <match@plt>
cmp    $0x0,%rax
jne    13bb <http_send_file+0x23b>
mov    -0x10(%rbp),%rdi
lea    0xd34(%rip),%rsi
call   1090 <match@plt>
cmp    $0x0,%rax
je     13ce <http_send_file+0x24e>
lea    0xd23(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1558 <http_send_file+0x3d8>
mov    -0x10(%rbp),%rdi
lea    0xd25(%rip),%rsi
call   1090 <match@plt>
cmp    $0x0,%rax
jne    1402 <http_send_file+0x282>
mov    -0x10(%rbp),%rdi
lea    0xd10(%rip),%rsi
call   1090 <match@plt>
cmp    $0x0,%rax
je     1415 <http_send_file+0x295>
lea    0xcff(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1553 <http_send_file+0x3d3>
mov    -0x10(%rbp),%rdi
lea    0xd06(%rip),%rsi
call   1090 <match@plt>
cmp    $0x0,%rax
jne    1449 <http_send_file+0x2c9>
mov    -0x10(%rbp),%rdi
lea    0xcf2(%rip),%rsi
call   1090 <match@plt>
cmp    $0x0,%rax
je     145c <http_send_file+0x2dc>
lea    0xce2(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    154e <http_send_file+0x3ce>
mov    -0x10(%rbp),%rdi
lea    0xce5(%rip),%rsi
call   1090 <match@plt>
cmp    $0x0,%rax
jne    1490 <http_send_file+0x310>
mov    -0x10(%rbp),%rdi
lea    0xcd1(%rip),%rsi
call   1090 <match@plt>
cmp    $0x0,%rax
je     14a3 <http_send_file+0x323>
lea    0xcc1(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1549 <http_send_file+0x3c9>
mov    -0x10(%rbp),%rdi
lea    0xcc3(%rip),%rsi
call   1090 <match@plt>
cmp    $0x0,%rax
jne    14d7 <http_send_file+0x357>
mov    -0x10(%rbp),%rdi
lea    0xcae(%rip),%rsi
call   1090 <match@plt>
cmp    $0x0,%rax
je     14ea <http_send_file+0x36a>
lea    0xc7a(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1544 <http_send_file+0x3c4>
mov    -0x10(%rbp),%rdi
lea    0xc86(%rip),%rsi
call   1090 <match@plt>
cmp    $0x0,%rax
jne    151e <http_send_file+0x39e>
mov    -0x10(%rbp),%rdi
lea    0xc71(%rip),%rsi
call   1090 <match@plt>
cmp    $0x0,%rax
je     1531 <http_send_file+0x3b1>
lea    0xc60(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    153f <http_send_file+0x3bf>
lea    0xc65(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1544 <http_send_file+0x3c4>
jmp    1549 <http_send_file+0x3c9>
jmp    154e <http_send_file+0x3ce>
jmp    1553 <http_send_file+0x3d3>
jmp    1558 <http_send_file+0x3d8>
jmp    155d <http_send_file+0x3dd>
jmp    1562 <http_send_file+0x3e2>
jmp    1567 <http_send_file+0x3e7>
jmp    156c <http_send_file+0x3ec>
jmp    1571 <http_send_file+0x3f1>
jmp    1576 <http_send_file+0x3f6>
mov    -0x10(%rbp),%rdi
call   1070 <basename@plt>
mov    %rax,%rsi
lea    0xc2e(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xc73(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x18(%rbp),%rdi
call   1060 <fgetc@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
mov    0x2a34(%rip),%rcx
cmp    (%rcx),%eax
je     15c4 <http_send_file+0x444>
mov    -0x1c(%rbp),%edi
call   1030 <putchar@plt>
jmp    15c9 <http_send_file+0x449>
mov    -0x1c(%rbp),%eax
mov    0x2a15(%rip),%rcx
cmp    (%rcx),%eax
jne    159e <http_send_file+0x41e>
mov    -0x18(%rbp),%rdi
call   1040 <fclose@plt>
movl   $0x1,-0x4(%rbp)
jmp    162c <http_send_file+0x4ac>
mov    0x29e1(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rdx
lea    0xbd5(%rip),%rsi
call   1080 <syslog@plt>
lea    0xbe1(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xbee(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<http_send_file>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
mov    %rdi,%r14
mov    0x2e36(%rip),%rbp
mov    0x0(%rbp),%edi
lea    0xe54(%rip),%rsi
mov    %r14,%rdx
call   1090 <syslog@plt>
lea    0xe5a(%rip),%rsi
mov    %r14,%rdi
call   10b0 <fopen@plt>
test   %rax,%rax
je     144f <http_send_file+0x2bf>
mov    %rax,%r12
lea    0xe42(%rip),%rsi
mov    %r14,%rdi
call   10a0 <match@plt>
lea    0x1011(%rip),%r15
test   %rax,%rax
jne    14a7 <http_send_file+0x317>
lea    0xe29(%rip),%rsi
mov    %r14,%rdi
call   10a0 <match@plt>
test   %rax,%rax
jne    14a7 <http_send_file+0x317>
lea    0xe17(%rip),%rsi
mov    %r14,%rdi
call   10a0 <match@plt>
test   %rax,%rax
jne    14a7 <http_send_file+0x317>
lea    0xe04(%rip),%rsi
mov    %r14,%rdi
call   10a0 <match@plt>
test   %rax,%rax
jne    14a7 <http_send_file+0x317>
lea    0xdf1(%rip),%rsi
mov    %r14,%rdi
call   10a0 <match@plt>
lea    0xf92(%rip),%r15
test   %rax,%rax
jne    14a7 <http_send_file+0x317>
lea    0xdd7(%rip),%rsi
mov    %r14,%rdi
call   10a0 <match@plt>
test   %rax,%rax
jne    14a7 <http_send_file+0x317>
lea    0xdc4(%rip),%rsi
mov    %r14,%rdi
call   10a0 <match@plt>
lea    0xf43(%rip),%r15
test   %rax,%rax
jne    14a7 <http_send_file+0x317>
lea    0xdaa(%rip),%rsi
mov    %r14,%rdi
call   10a0 <match@plt>
test   %rax,%rax
jne    14a7 <http_send_file+0x317>
lea    0xd97(%rip),%rsi
mov    %r14,%rdi
call   10a0 <match@plt>
lea    0xef3(%rip),%r15
test   %rax,%rax
jne    14a7 <http_send_file+0x317>
lea    0xd7d(%rip),%rsi
mov    %r14,%rdi
call   10a0 <match@plt>
test   %rax,%rax
jne    14a7 <http_send_file+0x317>
lea    0xd6a(%rip),%rsi
mov    %r14,%rdi
call   10a0 <match@plt>
test   %rax,%rax
jne    14a7 <http_send_file+0x317>
lea    0xd58(%rip),%rsi
mov    %r14,%rdi
call   10a0 <match@plt>
lea    0xe8c(%rip),%r15
test   %rax,%rax
jne    14a7 <http_send_file+0x317>
lea    0xd3e(%rip),%rsi
mov    %r14,%rdi
call   10a0 <match@plt>
test   %rax,%rax
jne    14a7 <http_send_file+0x317>
lea    0xd2b(%rip),%rsi
mov    %r14,%rdi
call   10a0 <match@plt>
lea    0xe3d(%rip),%r15
test   %rax,%rax
jne    14a7 <http_send_file+0x317>
lea    0xd11(%rip),%rsi
mov    %r14,%rdi
call   10a0 <match@plt>
test   %rax,%rax
jne    14a7 <http_send_file+0x317>
lea    0xcfe(%rip),%rsi
mov    %r14,%rdi
call   10a0 <match@plt>
lea    0xde9(%rip),%r15
test   %rax,%rax
jne    14a7 <http_send_file+0x317>
lea    0xce4(%rip),%rsi
mov    %r14,%rdi
call   10a0 <match@plt>
test   %rax,%rax
jne    14a7 <http_send_file+0x317>
lea    0xcd1(%rip),%rsi
mov    %r14,%rdi
call   10a0 <match@plt>
lea    0xd99(%rip),%r15
test   %rax,%rax
jne    14a7 <http_send_file+0x317>
lea    0xcb8(%rip),%rsi
mov    %r14,%rdi
call   10a0 <match@plt>
test   %rax,%rax
jne    14a7 <http_send_file+0x317>
lea    0xca6(%rip),%rsi
mov    %r14,%rdi
call   10a0 <match@plt>
lea    0xd4a(%rip),%r15
test   %rax,%rax
jne    14a7 <http_send_file+0x317>
lea    0xc8d(%rip),%rsi
mov    %r14,%rdi
call   10a0 <match@plt>
test   %rax,%rax
jne    14a7 <http_send_file+0x317>
lea    0xc7b(%rip),%rsi
mov    %r14,%rdi
call   10a0 <match@plt>
test   %rax,%rax
jne    14a7 <http_send_file+0x317>
lea    0xc68(%rip),%rsi
mov    %r14,%rdi
call   10a0 <match@plt>
test   %rax,%rax
jne    14a7 <http_send_file+0x317>
lea    0xc59(%rip),%rsi
mov    %r14,%rdi
call   10a0 <match@plt>
test   %rax,%rax
je     1483 <http_send_file+0x2f3>
lea    0xccb(%rip),%r15
jmp    14a7 <http_send_file+0x317>
mov    0x0(%rbp),%edi
lea    0xc65(%rip),%rsi
mov    %r14,%rdx
call   1090 <syslog@plt>
lea    0xc6e(%rip),%rdi
call   1040 <puts@plt>
lea    0xc7c(%rip),%rdi
call   1040 <puts@plt>
mov    $0xffffffff,%eax
jmp    1506 <http_send_file+0x376>
lea    0xc0d(%rip),%rsi
mov    %r14,%rdi
call   10a0 <match@plt>
test   %rax,%rax
lea    0xc63(%rip),%rax
lea    0xc75(%rip),%r15
cmove  %rax,%r15
mov    %r15,%rdi
call   1040 <puts@plt>
mov    %r14,%rdi
call   1080 <basename@plt>
lea    0xbde(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x2b0f(%rip),%rbx
nopl   0x0(%rax)
mov    %r12,%rdi
call   1070 <fgetc@plt>
cmp    (%rbx),%eax
je     14f9 <http_send_file+0x369>
mov    %eax,%ebp
mov    %eax,%edi
call   1030 <putchar@plt>
cmp    (%rbx),%ebp
jne    14e0 <http_send_file+0x350>
mov    %r12,%rdi
call   1050 <fclose@plt>
mov    $0x1,%eax
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@LOG_NOTICE = global i32 0
@.str = [21 x i8] c"Requesting file: %s\0A\00"
@.str.1 = [3 x i8] c"rb\00"
@.str.2 = [6 x i8] c"jpeg$\00"
@.str.3 = [6 x i8] c"JPEG$\00"
@.str.4 = [26 x i8] c"Content-Type: image/jpeg\0A\00"
@.str.5 = [5 x i8] c"jpg$\00"
@.str.6 = [5 x i8] c"JPG$\00"
@.str.7 = [5 x i8] c"gif$\00"
@.str.8 = [5 x i8] c"GIF$\00"
@.str.9 = [25 x i8] c"Content-Type: image/gif\0A\00"
@.str.10 = [5 x i8] c"png$\00"
@.str.11 = [5 x i8] c"PNG$\00"
@.str.12 = [25 x i8] c"Content-Type: image/png\0A\00"
@.str.13 = [5 x i8] c"mpg$\00"
@.str.14 = [5 x i8] c"MPG$\00"
@.str.15 = [6 x i8] c"mpeg$\00"
@.str.16 = [26 x i8] c"Content-Type: video/mpeg\0A\00"
@.str.17 = [5 x i8] c"mp4$\00"
@.str.18 = [5 x i8] c"MP4$\00"
@.str.19 = [25 x i8] c"Content-Type: video/mp4\0A\00"
@.str.20 = [5 x i8] c"ogg$\00"
@.str.21 = [5 x i8] c"OGG$\00"
@.str.22 = [25 x i8] c"Content-Type: video/ogg\0A\00"
@.str.23 = [5 x i8] c"wmv$\00"
@.str.24 = [5 x i8] c"WMV$\00"
@.str.25 = [30 x i8] c"Content-Type: video/x-ms-wmv\0A\00"
@.str.26 = [6 x i8] c"webm$\00"
@.str.27 = [6 x i8] c"WEBM$\00"
@.str.28 = [26 x i8] c"Content-Type: video/webm\0A\00"
@.str.29 = [6 x i8] c"html$\00"
@.str.30 = [6 x i8] c"HTML$\00"
@.str.31 = [25 x i8] c"Content-Type: text/html\0A\00"
@.str.32 = [5 x i8] c"htm$\00"
@.str.33 = [5 x i8] c"HTM$\00"
@.str.34 = [5 x i8] c"xml$\00"
@.str.35 = [5 x i8] c"XML$\00"
@.str.36 = [24 x i8] c"Content-Type: text/xml\0A\00"
@.str.37 = [26 x i8] c"Content-Type: text/plain\0A\00"
@.str.38 = [34 x i8] c"Content-Disposition: filename=%s\0A\00"
@.str.39 = [2 x i8] c"\0A\00"
@EOF = global i32 0
@.str.40 = [24 x i8] c"Error opening file: %s\0A\00"
@.str.41 = [27 x i8] c"Content-Type: text/plain\0A\0A\00"
@.str.42 = [16 x i8] c"FILE NOT FOUND\0A\00"
define i32 @http_send_file(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca i32*
%5 = alloca i32
store i8* %0, i8** %3
%6 = load i32, i32* @LOG_NOTICE
%7 = load i8*, i8** %3
%8 = call i32 @syslog(i32 %6, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i8* %7)
%9 = load i8*, i8** %3
%10 = call i32* @fopen(i8* %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i32* %10, i32** %4
%11 = icmp ne i32* %10, null
br i1 %11, label %12, label %171
12: ; preds = %1
%13 = load i8*, i8** %3
%14 = call i64 @match(i8* %13, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%15 = icmp ne i64 %14, 0
br i1 %15, label %20, label %16
16: ; preds = %12
%17 = load i8*, i8** %3
%18 = call i64 @match(i8* %17, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%19 = icmp ne i64 %18, 0
br i1 %19, label %20, label %22
20: ; preds = %16, %12
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0))
br label %149
22: ; preds = %16
%23 = load i8*, i8** %3
%24 = call i64 @match(i8* %23, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%25 = icmp ne i64 %24, 0
br i1 %25, label %30, label %26
26: ; preds = %22
%27 = load i8*, i8** %3
%28 = call i64 @match(i8* %27, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%29 = icmp ne i64 %28, 0
br i1 %29, label %30, label %32
30: ; preds = %26, %22
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0))
br label %148
32: ; preds = %26
%33 = load i8*, i8** %3
%34 = call i64 @match(i8* %33, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%35 = icmp ne i64 %34, 0
br i1 %35, label %40, label %36
36: ; preds = %32
%37 = load i8*, i8** %3
%38 = call i64 @match(i8* %37, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%39 = icmp ne i64 %38, 0
br i1 %39, label %40, label %42
40: ; preds = %36, %32
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.9, i64 0, i64 0))
br label %147
42: ; preds = %36
%43 = load i8*, i8** %3
%44 = call i64 @match(i8* %43, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
%45 = icmp ne i64 %44, 0
br i1 %45, label %50, label %46
46: ; preds = %42
%47 = load i8*, i8** %3
%48 = call i64 @match(i8* %47, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0))
%49 = icmp ne i64 %48, 0
br i1 %49, label %50, label %52
50: ; preds = %46, %42
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.12, i64 0, i64 0))
br label %146
52: ; preds = %46
%53 = load i8*, i8** %3
%54 = call i64 @match(i8* %53, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0))
%55 = icmp ne i64 %54, 0
br i1 %55, label %64, label %56
56: ; preds = %52
%57 = load i8*, i8** %3
%58 = call i64 @match(i8* %57, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0))
%59 = icmp ne i64 %58, 0
br i1 %59, label %64, label %60
60: ; preds = %56
%61 = load i8*, i8** %3
%62 = call i64 @match(i8* %61, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i64 0, i64 0))
%63 = icmp ne i64 %62, 0
br i1 %63, label %64, label %66
64: ; preds = %60, %56, %52
%65 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.16, i64 0, i64 0))
br label %145
66: ; preds = %60
%67 = load i8*, i8** %3
%68 = call i64 @match(i8* %67, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.17, i64 0, i64 0))
%69 = icmp ne i64 %68, 0
br i1 %69, label %74, label %70
70: ; preds = %66
%71 = load i8*, i8** %3
%72 = call i64 @match(i8* %71, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.18, i64 0, i64 0))
%73 = icmp ne i64 %72, 0
br i1 %73, label %74, label %76
74: ; preds = %70, %66
%75 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.19, i64 0, i64 0))
br label %144
76: ; preds = %70
%77 = load i8*, i8** %3
%78 = call i64 @match(i8* %77, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.20, i64 0, i64 0))
%79 = icmp ne i64 %78, 0
br i1 %79, label %84, label %80
80: ; preds = %76
%81 = load i8*, i8** %3
%82 = call i64 @match(i8* %81, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.21, i64 0, i64 0))
%83 = icmp ne i64 %82, 0
br i1 %83, label %84, label %86
84: ; preds = %80, %76
%85 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.22, i64 0, i64 0))
br label %143
86: ; preds = %80
%87 = load i8*, i8** %3
%88 = call i64 @match(i8* %87, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.23, i64 0, i64 0))
%89 = icmp ne i64 %88, 0
br i1 %89, label %94, label %90
90: ; preds = %86
%91 = load i8*, i8** %3
%92 = call i64 @match(i8* %91, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.24, i64 0, i64 0))
%93 = icmp ne i64 %92, 0
br i1 %93, label %94, label %96
94: ; preds = %90, %86
%95 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.25, i64 0, i64 0))
br label %142
96: ; preds = %90
%97 = load i8*, i8** %3
%98 = call i64 @match(i8* %97, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.26, i64 0, i64 0))
%99 = icmp ne i64 %98, 0
br i1 %99, label %104, label %100
100: ; preds = %96
%101 = load i8*, i8** %3
%102 = call i64 @match(i8* %101, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.27, i64 0, i64 0))
%103 = icmp ne i64 %102, 0
br i1 %103, label %104, label %106
104: ; preds = %100, %96
%105 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.28, i64 0, i64 0))
br label %141
106: ; preds = %100
%107 = load i8*, i8** %3
%108 = call i64 @match(i8* %107, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.29, i64 0, i64 0))
%109 = icmp ne i64 %108, 0
br i1 %109, label %114, label %110
110: ; preds = %106
%111 = load i8*, i8** %3
%112 = call i64 @match(i8* %111, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.30, i64 0, i64 0))
%113 = icmp ne i64 %112, 0
br i1 %113, label %114, label %116
114: ; preds = %110, %106
%115 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.31, i64 0, i64 0))
br label %140
116: ; preds = %110
%117 = load i8*, i8** %3
%118 = call i64 @match(i8* %117, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.32, i64 0, i64 0))
%119 = icmp ne i64 %118, 0
br i1 %119, label %124, label %120
120: ; preds = %116
%121 = load i8*, i8** %3
%122 = call i64 @match(i8* %121, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.33, i64 0, i64 0))
%123 = icmp ne i64 %122, 0
br i1 %123, label %124, label %126
124: ; preds = %120, %116
%125 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.31, i64 0, i64 0))
br label %139
126: ; preds = %120
%127 = load i8*, i8** %3
%128 = call i64 @match(i8* %127, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.34, i64 0, i64 0))
%129 = icmp ne i64 %128, 0
br i1 %129, label %134, label %130
130: ; preds = %126
%131 = load i8*, i8** %3
%132 = call i64 @match(i8* %131, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.35, i64 0, i64 0))
%133 = icmp ne i64 %132, 0
br i1 %133, label %134, label %136
134: ; preds = %130, %126
%135 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.36, i64 0, i64 0))
br label %138
136: ; preds = %130
%137 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.37, i64 0, i64 0))
br label %138
138: ; preds = %136, %134
br label %139
139: ; preds = %138, %124
br label %140
140: ; preds = %139, %114
br label %141
141: ; preds = %140, %104
br label %142
142: ; preds = %141, %94
br label %143
143: ; preds = %142, %84
br label %144
144: ; preds = %143, %74
br label %145
145: ; preds = %144, %64
br label %146
146: ; preds = %145, %50
br label %147
147: ; preds = %146, %40
br label %148
148: ; preds = %147, %30
br label %149
149: ; preds = %148, %20
%150 = load i8*, i8** %3
%151 = call i8* @basename(i8* %150)
%152 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.38, i64 0, i64 0), i8* %151)
%153 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.39, i64 0, i64 0))
br label %154
154: ; preds = %164, %149
%155 = load i32*, i32** %4
%156 = call i32 @fgetc(i32* %155)
store i32 %156, i32* %5
%157 = load i32, i32* %5
%158 = load i32, i32* @EOF
%159 = icmp ne i32 %157, %158
br i1 %159, label %160, label %163
160: ; preds = %154
%161 = load i32, i32* %5
%162 = call i32 @putchar(i32 %161)
br label %163
163: ; preds = %160, %154
br label %164
164: ; preds = %163
%165 = load i32, i32* %5
%166 = load i32, i32* @EOF
%167 = icmp ne i32 %165, %166
br i1 %167, label %154, label %168
168: ; preds = %164
%169 = load i32*, i32** %4
%170 = call i32 @fclose(i32* %169)
store i32 1, i32* %2
br label %177
171: ; preds = %1
%172 = load i32, i32* @LOG_NOTICE
%173 = load i8*, i8** %3
%174 = call i32 @syslog(i32 %172, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.40, i64 0, i64 0), i8* %173)
%175 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.41, i64 0, i64 0))
%176 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.42, i64 0, i64 0))
store i32 -1, i32* %2
br label %177
177: ; preds = %171, %168
%178 = load i32, i32* %2
ret i32 %178
}

LLVM IR (-O2):
@LOG_NOTICE = global i32 0
@.str = [21 x i8] c"Requesting file: %s\0A\00"
@.str.1 = [3 x i8] c"rb\00"
@.str.2 = [6 x i8] c"jpeg$\00"
@.str.3 = [6 x i8] c"JPEG$\00"
@.str.5 = [5 x i8] c"jpg$\00"
@.str.6 = [5 x i8] c"JPG$\00"
@.str.7 = [5 x i8] c"gif$\00"
@.str.8 = [5 x i8] c"GIF$\00"
@.str.10 = [5 x i8] c"png$\00"
@.str.11 = [5 x i8] c"PNG$\00"
@.str.13 = [5 x i8] c"mpg$\00"
@.str.14 = [5 x i8] c"MPG$\00"
@.str.15 = [6 x i8] c"mpeg$\00"
@.str.17 = [5 x i8] c"mp4$\00"
@.str.18 = [5 x i8] c"MP4$\00"
@.str.20 = [5 x i8] c"ogg$\00"
@.str.21 = [5 x i8] c"OGG$\00"
@.str.23 = [5 x i8] c"wmv$\00"
@.str.24 = [5 x i8] c"WMV$\00"
@.str.26 = [6 x i8] c"webm$\00"
@.str.27 = [6 x i8] c"WEBM$\00"
@.str.29 = [6 x i8] c"html$\00"
@.str.30 = [6 x i8] c"HTML$\00"
@.str.32 = [5 x i8] c"htm$\00"
@.str.33 = [5 x i8] c"HTM$\00"
@.str.34 = [5 x i8] c"xml$\00"
@.str.35 = [5 x i8] c"XML$\00"
@.str.38 = [34 x i8] c"Content-Disposition: filename=%s\0A\00"
@EOF = global i32 0
@.str.40 = [24 x i8] c"Error opening file: %s\0A\00"
@str = [26 x i8] c"Content-Type: text/plain\0A\00"
@str.43 = [15 x i8] c"FILE NOT FOUND\00"
@str.44 = [25 x i8] c"Content-Type: text/plain\00"
@str.45 = [23 x i8] c"Content-Type: text/xml\00"
@str.47 = [24 x i8] c"Content-Type: text/html\00"
@str.48 = [25 x i8] c"Content-Type: video/webm\00"
@str.49 = [29 x i8] c"Content-Type: video/x-ms-wmv\00"
@str.50 = [24 x i8] c"Content-Type: video/ogg\00"
@str.51 = [24 x i8] c"Content-Type: video/mp4\00"
@str.52 = [25 x i8] c"Content-Type: video/mpeg\00"
@str.53 = [24 x i8] c"Content-Type: image/png\00"
@str.54 = [24 x i8] c"Content-Type: image/gif\00"
@str.56 = [25 x i8] c"Content-Type: image/jpeg\00"
define i32 @http_send_file(i8* %0) {
%2 = load i32, i32* @LOG_NOTICE
%3 = tail call i32 @syslog(i32 %2, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i8* %0)
%4 = tail call i32* @fopen(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%5 = icmp eq i32* %4, null
br i1 %5, label %98, label %6
6: ; preds = %1
%7 = tail call i64 @match(i8* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%8 = icmp eq i64 %7, 0
br i1 %8, label %9, label %82
9: ; preds = %6
%10 = tail call i64 @match(i8* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %82
12: ; preds = %9
%13 = tail call i64 @match(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%14 = icmp eq i64 %13, 0
br i1 %14, label %15, label %82
15: ; preds = %12
%16 = tail call i64 @match(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%17 = icmp eq i64 %16, 0
br i1 %17, label %18, label %82
18: ; preds = %15
%19 = tail call i64 @match(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%20 = icmp eq i64 %19, 0
br i1 %20, label %21, label %82
21: ; preds = %18
%22 = tail call i64 @match(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%23 = icmp eq i64 %22, 0
br i1 %23, label %24, label %82
24: ; preds = %21
%25 = tail call i64 @match(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
%26 = icmp eq i64 %25, 0
br i1 %26, label %27, label %82
27: ; preds = %24
%28 = tail call i64 @match(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0))
%29 = icmp eq i64 %28, 0
br i1 %29, label %30, label %82
30: ; preds = %27
%31 = tail call i64 @match(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0))
%32 = icmp eq i64 %31, 0
br i1 %32, label %33, label %82
33: ; preds = %30
%34 = tail call i64 @match(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0))
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %82
36: ; preds = %33
%37 = tail call i64 @match(i8* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i64 0, i64 0))
%38 = icmp eq i64 %37, 0
br i1 %38, label %39, label %82
39: ; preds = %36
%40 = tail call i64 @match(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.17, i64 0, i64 0))
%41 = icmp eq i64 %40, 0
br i1 %41, label %42, label %82
42: ; preds = %39
%43 = tail call i64 @match(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.18, i64 0, i64 0))
%44 = icmp eq i64 %43, 0
br i1 %44, label %45, label %82
45: ; preds = %42
%46 = tail call i64 @match(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.20, i64 0, i64 0))
%47 = icmp eq i64 %46, 0
br i1 %47, label %48, label %82
48: ; preds = %45
%49 = tail call i64 @match(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.21, i64 0, i64 0))
%50 = icmp eq i64 %49, 0
br i1 %50, label %51, label %82
51: ; preds = %48
%52 = tail call i64 @match(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.23, i64 0, i64 0))
%53 = icmp eq i64 %52, 0
br i1 %53, label %54, label %82
54: ; preds = %51
%55 = tail call i64 @match(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.24, i64 0, i64 0))
%56 = icmp eq i64 %55, 0
br i1 %56, label %57, label %82
57: ; preds = %54
%58 = tail call i64 @match(i8* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.26, i64 0, i64 0))
%59 = icmp eq i64 %58, 0
br i1 %59, label %60, label %82
60: ; preds = %57
%61 = tail call i64 @match(i8* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.27, i64 0, i64 0))
%62 = icmp eq i64 %61, 0
br i1 %62, label %63, label %82
63: ; preds = %60
%64 = tail call i64 @match(i8* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.29, i64 0, i64 0))
%65 = icmp eq i64 %64, 0
br i1 %65, label %66, label %82
66: ; preds = %63
%67 = tail call i64 @match(i8* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.30, i64 0, i64 0))
%68 = icmp eq i64 %67, 0
br i1 %68, label %69, label %82
69: ; preds = %66
%70 = tail call i64 @match(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.32, i64 0, i64 0))
%71 = icmp eq i64 %70, 0
br i1 %71, label %72, label %82
72: ; preds = %69
%73 = tail call i64 @match(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.33, i64 0, i64 0))
%74 = icmp eq i64 %73, 0
br i1 %74, label %75, label %82
75: ; preds = %72
%76 = tail call i64 @match(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.34, i64 0, i64 0))
%77 = icmp eq i64 %76, 0
br i1 %77, label %78, label %82
78: ; preds = %75
%79 = tail call i64 @match(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.35, i64 0, i64 0))
%80 = icmp eq i64 %79, 0
%81 = select i1 %80, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @str.44, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @str.45, i64 0, i64 0)
br label %82
82: ; preds = %78, %75, %69, %72, %63, %66, %57, %60, %51, %54, %45, %48, %39, %42, %30, %33, %36, %24, %27, %18, %21, %12, %15, %6, %9
%83 = phi i8* [ getelementptr inbounds ([25 x i8], [25 x i8]* @str.56, i64 0, i64 0), %9 ], [ getelementptr inbounds ([25 x i8], [25 x i8]* @str.56, i64 0, i64 0), %6 ], [ getelementptr inbounds ([25 x i8], [25 x i8]* @str.56, i64 0, i64 0), %15 ], [ getelementptr inbounds ([25 x i8], [25 x i8]* @str.56, i64 0, i64 0), %12 ], [ getelementptr inbounds ([24 x i8], [24 x i8]* @str.54, i64 0, i64 0), %21 ], [ getelementptr inbounds ([24 x i8], [24 x i8]* @str.54, i64 0, i64 0), %18 ], [ getelementptr inbounds ([24 x i8], [24 x i8]* @str.53, i64 0, i64 0), %27 ], [ getelementptr inbounds ([24 x i8], [24 x i8]* @str.53, i64 0, i64 0), %24 ], [ getelementptr inbounds ([25 x i8], [25 x i8]* @str.52, i64 0, i64 0), %36 ], [ getelementptr inbounds ([25 x i8], [25 x i8]* @str.52, i64 0, i64 0), %33 ], [ getelementptr inbounds ([25 x i8], [25 x i8]* @str.52, i64 0, i64 0), %30 ], [ getelementptr inbounds ([24 x i8], [24 x i8]* @str.51, i64 0, i64 0), %42 ], [ getelementptr inbounds ([24 x i8], [24 x i8]* @str.51, i64 0, i64 0), %39 ], [ getelementptr inbounds ([24 x i8], [24 x i8]* @str.50, i64 0, i64 0), %48 ], [ getelementptr inbounds ([24 x i8], [24 x i8]* @str.50, i64 0, i64 0), %45 ], [ getelementptr inbounds ([29 x i8], [29 x i8]* @str.49, i64 0, i64 0), %54 ], [ getelementptr inbounds ([29 x i8], [29 x i8]* @str.49, i64 0, i64 0), %51 ], [ getelementptr inbounds ([25 x i8], [25 x i8]* @str.48, i64 0, i64 0), %60 ], [ getelementptr inbounds ([25 x i8], [25 x i8]* @str.48, i64 0, i64 0), %57 ], [ getelementptr inbounds ([24 x i8], [24 x i8]* @str.47, i64 0, i64 0), %66 ], [ getelementptr inbounds ([24 x i8], [24 x i8]* @str.47, i64 0, i64 0), %63 ], [ getelementptr inbounds ([24 x i8], [24 x i8]* @str.47, i64 0, i64 0), %72 ], [ getelementptr inbounds ([24 x i8], [24 x i8]* @str.47, i64 0, i64 0), %69 ], [ getelementptr inbounds ([23 x i8], [23 x i8]* @str.45, i64 0, i64 0), %75 ], [ %81, %78 ]
%84 = tail call i32 @puts(i8* dereferenceable(1) %83)
%85 = tail call i8* @basename(i8* %0)
%86 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.38, i64 0, i64 0), i8* %85)
%87 = tail call i32 @putchar(i32 10)
br label %88
88: ; preds = %92, %82
%89 = tail call i32 @fgetc(i32* %4)
%90 = load i32, i32* @EOF
%91 = icmp eq i32 %89, %90
br i1 %91, label %96, label %92
92: ; preds = %88
%93 = tail call i32 @putchar(i32 %89)
%94 = load i32, i32* @EOF
%95 = icmp eq i32 %89, %94
br i1 %95, label %96, label %88
96: ; preds = %88, %92
%97 = tail call i32 @fclose(i32* %4)
br label %103
98: ; preds = %1
%99 = load i32, i32* @LOG_NOTICE
%100 = tail call i32 @syslog(i32 %99, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.40, i64 0, i64 0), i8* %0)
%101 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str, i64 0, i64 0))
%102 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.43, i64 0, i64 0))
br label %103
103: ; preds = %98, %96
%104 = phi i32 [ 1, %96 ], [ -1, %98 ]
ret i32 %104
}