#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 */
struct dirent {
  char *d_name;
};
typedef int /*<<< orphan*/ FILE;
typedef int /*<<< orphan*/ DIR;

/* Variables and functions */
int /*<<< orphan*/ closedir(int /*<<< orphan*/ *);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ feof(int /*<<< orphan*/ *);
int /*<<< orphan*/ fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
scalar_t__ isdigit(char);
int /*<<< orphan*/ *opendir(char *);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, ...);
struct dirent *readdir(int /*<<< orphan*/ *);
int /*<<< orphan*/ strcat(char *, char *);
int /*<<< orphan*/ strcmp(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
char *strtok(char *, char *);
int main() {
  DIR *dir;
  DIR *dir1;
  FILE *fp;
  struct dirent *ptr;
  struct dirent *ptr1;
  char s[1024];
  char path[50];
  char path1[50];
  int i;
  char *maps1;
  char *maps2;
  char *maps3;
  char *maps4;
  char *maps5;
  char *maps6;
  char maps21[10];
  char maps61[10];
  char maps62[10];
  printf("Content-type:text/html\r\n\r\n");
  printf("<html><head></head><body><div align='left'>");
  printf("<meta http-equiv='Content-Type' content='text/html; "
         "charset=utf-8'/></head>");
  if ((dir = opendir("/proc")) == NULL) {
    perror(" opendir");
    return -1;
  }
  while ((ptr = readdir(dir)) != NULL) {
    if (isdigit(ptr->d_name[0])) {
      printf("<div><table style='border-width:2px; border-collapse:collapse;   "
             "                 border-color:red'; border='2'><tr><td>process "
             "number:%s</td></tr>                   </table></div>",
             ptr->d_name);
      strcpy(path, "/proc/");
      strcat(path, ptr->d_name);
      if ((dir1 = opendir(path)) == NULL) {
        perror("opendir");
        return -1;
      }
      while ((ptr1 = readdir(dir1)) != NULL) {
        if (!strcmp(ptr1->d_name, "maps")) {
          printf(
              "<div><table style ='border-width:5px; border-collapse:collapse; "
              "                           border-color:#222796'; "
              "border='2'><tr><td width='550px'>文件名</td>                    "
              "       <td width='50px'>类型</td><td width='140px'>内存映像 "
              "</td>                           <td width='80px'>虚存偏移量 "
              "</td><td width='50px'>inode</td></tr></div>");
          strcpy(path1, path);
          strcat(path1, "/maps");
          fp = fopen(path1, "r");
          while (!feof(fp)) {
            fgets(s, 1024, fp);
            maps1 = strtok(s, " ");
            maps2 = strtok(NULL, " ");
            maps3 = strtok(NULL, " ");
            maps4 = strtok(NULL, " ");
            maps5 = strtok(NULL, " ");
            maps6 = strtok(NULL, " ");
            maps4 = maps4;
            if ((maps2 != NULL) && (maps6 != NULL)) {
              strcpy(maps21, maps2);
              for (i = 0; i <= 5; i++) {
                maps61[i] = maps6[i];
              }
              maps61[i] = '\0';
              for (i = 0; i <= 6; i++) {
                maps62[i] = maps6[i];
              }
              maps62[i] = '\0';
              if (!strcmp(maps61, "[heap]")) {
                printf(
                    "<tr><td width='550px'>&nbsp</td><td width='50px'>堆</td>  "
                    "                                     <td width='140px'>%s "
                    "</td><td width='80px'>%s</td>                             "
                    "          <td width='50px'>%s</td></tr>",
                    maps1, maps3, maps5);
              } else if (!strcmp(maps62, "[stack]")) {
                printf(
                    "<tr><td width='550px'>&nbsp</td><td width='50px'>栈</td>  "
                    "                                     <td width='140px'>%s "
                    "</td><td width='80px'>%s</td><td width='50px'>%s          "
                    "                             </td></tr>",
                    maps1, maps3, maps5);
              } else if (maps21[1] == 'w') {
                printf(
                    "<tr><td width='550px'>%s</td><td width='50px'>            "
                    "                           数据段</td><td "
                    "width='140px'>%s </td><td width='80px'>%s                 "
                    "                      </td><td width='50px'>%s</td></tr>",
                    maps6, maps1, maps3, maps5);
              } else if (maps21[1] == '-') {
                printf(
                    "<tr><td width='550px'>%s</td><td width='50px'>            "
                    "                           程序段</td><td "
                    "width='140px'>%s </td><td width='80px'>%s                 "
                    "                      </td><td width='50px'>%s</td></tr>",
                    maps6, maps1, maps3, maps5);
              }
            }
          }
          fclose(fp);
          printf("</table>");
        }
      }
      closedir(dir1);
    }
  }
  closedir(dir);
  printf("</div></body></html>");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x510,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xe07(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xe14(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xe32(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xe70(%rip),%rdi
call   1060 <opendir@plt>
mov    %rax,-0x10(%rbp)
cmp    $0x0,%rax
jne    124e <main+0x6e>
lea    0xe5c(%rip),%rdi
call   10e0 <perror@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1684 <main+0x4a4>
jmp    1253 <main+0x73>
mov    -0x10(%rbp),%rdi
call   10c0 <readdir@plt>
mov    %rax,-0x28(%rbp)
cmp    $0x0,%rax
je     1666 <main+0x486>
mov    -0x28(%rbp),%rax
mov    (%rax),%rax
movsbl (%rax),%edi
call   1030 <isdigit@plt>
cmp    $0x0,%rax
je     1661 <main+0x481>
mov    -0x28(%rbp),%rax
mov    (%rax),%rsi
lea    0xe11(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    -0x470(%rbp),%rdi
lea    0xeb1(%rip),%rsi
call   1040 <strcpy@plt>
lea    -0x470(%rbp),%rdi
mov    -0x28(%rbp),%rax
mov    (%rax),%rsi
call   1100 <strcat@plt>
lea    -0x470(%rbp),%rdi
call   1060 <opendir@plt>
mov    %rax,-0x18(%rbp)
cmp    $0x0,%rax
jne    12f0 <main+0x110>
lea    0xdbb(%rip),%rdi
call   10e0 <perror@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1684 <main+0x4a4>
jmp    12f5 <main+0x115>
mov    -0x18(%rbp),%rdi
call   10c0 <readdir@plt>
mov    %rax,-0x30(%rbp)
cmp    $0x0,%rax
je     1658 <main+0x478>
mov    -0x30(%rbp),%rax
mov    (%rax),%rdi
lea    0xfa9(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%eax
jne    1653 <main+0x473>
lea    0xe2f(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    -0x4b0(%rbp),%rdi
lea    -0x470(%rbp),%rsi
call   1040 <strcpy@plt>
lea    -0x4b0(%rbp),%rdi
lea    0xf6b(%rip),%rsi
call   1100 <strcat@plt>
lea    -0x4b0(%rbp),%rdi
lea    0xd36(%rip),%rsi
call   10d0 <fopen@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rdi
call   10b0 <feof@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    1391 <main+0x1b1>
jmp    163c <main+0x45c>
lea    -0x430(%rbp),%rdi
mov    -0x20(%rbp),%rdx
mov    $0x400,%esi
call   1090 <fgets@plt>
lea    -0x430(%rbp),%rdi
lea    0xf14(%rip),%rsi
call   10f0 <strtok@plt>
mov    %rax,-0x4c0(%rbp)
xor    %eax,%eax
mov    %eax,%edi
lea    0xefd(%rip),%rsi
call   10f0 <strtok@plt>
mov    %rax,-0x4c8(%rbp)
xor    %eax,%eax
mov    %eax,%edi
lea    0xee6(%rip),%rsi
call   10f0 <strtok@plt>
mov    %rax,-0x4d0(%rbp)
xor    %eax,%eax
mov    %eax,%edi
lea    0xecf(%rip),%rsi
call   10f0 <strtok@plt>
mov    %rax,-0x4d8(%rbp)
xor    %eax,%eax
mov    %eax,%edi
lea    0xeb8(%rip),%rsi
call   10f0 <strtok@plt>
mov    %rax,-0x4e0(%rbp)
xor    %eax,%eax
mov    %eax,%edi
lea    0xea1(%rip),%rsi
call   10f0 <strtok@plt>
mov    %rax,-0x4e8(%rbp)
mov    -0x4d8(%rbp),%rax
mov    %rax,-0x4d8(%rbp)
cmpq   $0x0,-0x4c8(%rbp)
je     1637 <main+0x457>
cmpq   $0x0,-0x4e8(%rbp)
je     1637 <main+0x457>
lea    -0x4f2(%rbp),%rdi
mov    -0x4c8(%rbp),%rsi
call   1040 <strcpy@plt>
movl   $0x0,-0x4b4(%rbp)
cmpl   $0x5,-0x4b4(%rbp)
jg     14ba <main+0x2da>
mov    -0x4e8(%rbp),%rax
movslq -0x4b4(%rbp),%rcx
mov    (%rax,%rcx,1),%cl
movslq -0x4b4(%rbp),%rax
mov    %cl,-0x4fc(%rbp,%rax,1)
mov    -0x4b4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4b4(%rbp)
jmp    147a <main+0x29a>
movslq -0x4b4(%rbp),%rax
movb   $0x0,-0x4fc(%rbp,%rax,1)
movl   $0x0,-0x4b4(%rbp)
cmpl   $0x6,-0x4b4(%rbp)
jg     1513 <main+0x333>
mov    -0x4e8(%rbp),%rax
movslq -0x4b4(%rbp),%rcx
mov    (%rax,%rcx,1),%cl
movslq -0x4b4(%rbp),%rax
mov    %cl,-0x506(%rbp,%rax,1)
mov    -0x4b4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4b4(%rbp)
jmp    14d3 <main+0x2f3>
movslq -0x4b4(%rbp),%rax
movb   $0x0,-0x506(%rbp,%rax,1)
lea    -0x4fc(%rbp),%rdi
lea    0xd9a(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%eax
jne    1566 <main+0x386>
mov    -0x4c0(%rbp),%rsi
mov    -0x4d0(%rbp),%rdx
mov    -0x4e0(%rbp),%rcx
lea    0xd77(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
jmp    1632 <main+0x452>
lea    -0x506(%rbp),%rdi
lea    0xe34(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%eax
jne    15aa <main+0x3ca>
mov    -0x4c0(%rbp),%rsi
mov    -0x4d0(%rbp),%rdx
mov    -0x4e0(%rbp),%rcx
lea    0xe12(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
jmp    162d <main+0x44d>
movsbl -0x4f1(%rbp),%eax
cmp    $0x77,%eax
jne    15e9 <main+0x409>
mov    -0x4e8(%rbp),%rsi
mov    -0x4c0(%rbp),%rdx
mov    -0x4d0(%rbp),%rcx
mov    -0x4e0(%rbp),%r8
lea    0xeaa(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
jmp    1628 <main+0x448>
movsbl -0x4f1(%rbp),%eax
cmp    $0x2d,%eax
jne    1623 <main+0x443>
mov    -0x4e8(%rbp),%rsi
mov    -0x4c0(%rbp),%rdx
mov    -0x4d0(%rbp),%rcx
mov    -0x4e0(%rbp),%r8
lea    0xf45(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
jmp    1628 <main+0x448>
jmp    162d <main+0x44d>
jmp    1632 <main+0x452>
jmp    1637 <main+0x457>
jmp    1373 <main+0x193>
mov    -0x20(%rbp),%rdi
call   1050 <fclose@plt>
lea    0xfef(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
jmp    12f5 <main+0x115>
mov    -0x18(%rbp),%rdi
call   1080 <closedir@plt>
jmp    1253 <main+0x73>
mov    -0x10(%rbp),%rdi
call   1080 <closedir@plt>
lea    0xfce(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x510,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x4c8,%rsp
lea    0x1436(%rip),%rdi
call   1050 <puts@plt>
lea    0xdec(%rip),%rdi
xor    %eax,%eax
call   1080 <printf@plt>
lea    0xe0a(%rip),%rdi
xor    %eax,%eax
call   1080 <printf@plt>
lea    0xe48(%rip),%rdi
call   1070 <opendir@plt>
test   %rax,%rax
je     14fa <main+0x30a>
mov    %rax,0x20(%rsp)
mov    %rax,%rdi
call   10d0 <readdir@plt>
test   %rax,%rax
je     14cc <main+0x2dc>
mov    %rax,%r14
lea    0x104a(%rip),%rbx
jmp    127e <main+0x8e>
mov    %rbp,%rdi
call   1090 <closedir@plt>
mov    0x20(%rsp),%rdi
call   10d0 <readdir@plt>
mov    %rax,%r14
test   %rax,%rax
je     14cc <main+0x2dc>
mov    (%r14),%rax
movsbl (%rax),%edi
call   1030 <isdigit@plt>
test   %rax,%rax
je     1268 <main+0x78>
mov    (%r14),%rsi
lea    0xdef(%rip),%rdi
xor    %eax,%eax
call   1080 <printf@plt>
lea    0x40(%rsp),%rbp
mov    %rbp,%rdi
lea    0xe8e(%rip),%rsi
call   1040 <strcpy@plt>
mov    (%r14),%rsi
mov    %rbp,%rdi
call   1110 <strcat@plt>
mov    %rbp,%rdi
call   1070 <opendir@plt>
test   %rax,%rax
je     1503 <main+0x313>
mov    %rax,%rbp
mov    %rax,%rdi
call   10d0 <readdir@plt>
test   %rax,%rax
mov    %rbp,0x28(%rsp)
jne    1323 <main+0x133>
jmp    1260 <main+0x70>
nopl   0x0(%rax)
mov    %rbx,%rdi
call   1060 <fclose@plt>
lea    0x1321(%rip),%rdi
xor    %eax,%eax
call   1080 <printf@plt>
lea    0xf9b(%rip),%rbx
mov    0x28(%rsp),%rbp
mov    %rbp,%rdi
call   10d0 <readdir@plt>
test   %rax,%rax
je     1260 <main+0x70>
mov    (%rax),%rdi
mov    %rbx,%rsi
call   10b0 <strcmp@plt>
test   %eax,%eax
jne    1312 <main+0x122>
lea    0xe0a(%rip),%rdi
xor    %eax,%eax
call   1080 <printf@plt>
lea    0x80(%rsp),%rbx
mov    %rbx,%rdi
lea    0x40(%rsp),%rsi
call   1040 <strcpy@plt>
mov    %rbx,%rdi
lea    0xf48(%rip),%rsi
call   1110 <strcat@plt>
mov    %rbx,%rdi
lea    0xd17(%rip),%rsi
call   10e0 <fopen@plt>
mov    %rax,%rbx
mov    %rax,%rdi
jmp    13a3 <main+0x1b3>
lea    0x11c4(%rip),%rdi
mov    %rbp,%rsi
mov    %r14,%rdx
mov    %r12,%rcx
mov    %r13,%r8
xor    %eax,%eax
call   1080 <printf@plt>
cs nopw 0x0(%rax,%rax,1)
nop
mov    %rbx,%rdi
call   10c0 <feof@plt>
test   %eax,%eax
jne    12f0 <main+0x100>
lea    0xc0(%rsp),%rbp
mov    %rbp,%rdi
mov    $0x400,%esi
mov    %rbx,%rdx
call   10a0 <fgets@plt>
mov    %rbp,%rdi
lea    0xedb(%rip),%rbp
mov    %rbp,%rsi
call   1100 <strtok@plt>
mov    %rax,%r14
xor    %edi,%edi
mov    %rbp,%rsi
call   1100 <strtok@plt>
mov    %rax,%r15
xor    %edi,%edi
mov    %rbp,%rsi
call   1100 <strtok@plt>
mov    %rax,%r12
xor    %edi,%edi
mov    %rbp,%rsi
call   1100 <strtok@plt>
xor    %edi,%edi
mov    %rbp,%rsi
call   1100 <strtok@plt>
mov    %rax,%r13
xor    %edi,%edi
mov    %rbp,%rsi
call   1100 <strtok@plt>
test   %r15,%r15
je     13a0 <main+0x1b0>
mov    %rax,%rbp
test   %rax,%rax
je     13a0 <main+0x1b0>
lea    0x36(%rsp),%rdi
mov    %r15,%rsi
call   1040 <strcpy@plt>
movzwl 0x4(%rbp),%eax
mov    %ax,0x18(%rsp)
mov    0x0(%rbp),%eax
mov    %eax,0x14(%rsp)
movb   $0x0,0x1a(%rsp)
mov    0x0(%rbp),%ecx
mov    0x3(%rbp),%edx
mov    %ecx,0x8(%rsp)
mov    %edx,0xb(%rsp)
movb   $0x0,0xf(%rsp)
xor    $0x6165685b,%eax
mov    0x17(%rsp),%ecx
mov    $0x5d7061,%edx
xor    %edx,%ecx
or     %eax,%ecx
je     14a4 <main+0x2b4>
movabs $0x5d6b636174735b,%rax
cmp    %rax,0x8(%rsp)
je     14ad <main+0x2bd>
movzbl 0x37(%rsp),%eax
cmp    $0x2d,%al
je     137b <main+0x18b>
cmp    $0x77,%al
jne    13a0 <main+0x1b0>
lea    0xfcd(%rip),%rdi
jmp    1382 <main+0x192>
lea    0xe0b(%rip),%rdi
jmp    14b4 <main+0x2c4>
lea    0xee1(%rip),%rdi
mov    %r14,%rsi
mov    %r12,%rdx
mov    %r13,%rcx
xor    %eax,%eax
call   1080 <printf@plt>
mov    %rbx,%rdi
jmp    13a3 <main+0x1b3>
mov    0x20(%rsp),%rdi
call   1090 <closedir@plt>
lea    0x114c(%rip),%rdi
xor    %ebx,%ebx
xor    %eax,%eax
call   1080 <printf@plt>
mov    %ebx,%eax
add    $0x4c8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xb7d(%rip),%rdi
jmp    150a <main+0x31a>
lea    0xb75(%rip),%rdi
call   10f0 <perror@plt>
mov    $0xffffffff,%ebx
jmp    14e6 <main+0x2f6>

LLVM IR (-O0):
%struct.dirent = type { i8* }
@.str = [27 x i8] c"Content-type:text/html\0D\0A\0D\0A\00"
@.str.1 = [44 x i8] c"<html><head></head><body><div align='left'>\00"
@.str.2 = [76 x i8] c"<meta http-equiv='Content-Type' content='text/html; charset=utf-8'/></head>\00"
@.str.3 = [6 x i8] c"/proc\00"
@.str.4 = [9 x i8] c" opendir\00"
@.str.5 = [181 x i8] c"<div><table style='border-width:2px; border-collapse:collapse; border-color:red'; border='2'><tr><td>process number:%s</td></tr> </table></div>\00"
@.str.6 = [7 x i8] c"/proc/\00"
@.str.7 = [8 x i8] c"opendir\00"
@.str.8 = [5 x i8] c"maps\00"
@.str.9 = [356 x i8] c"<div><table style ='border-width:5px; border-collapse:collapse; border-color:'; border='2'><tr><td width='550px'>\E6\96\87\E4\BB\B6\E5\90\8D</td> <td width='50px'>\E7\B1\BB\E5\9E\8B</td><td width='140px'>\E5\86\85\E5\AD\98\E6\98\A0\E5\83\8F </td> <td width='80px'>\E8\99\9A\E5\AD\98\E5\81\8F\E7\A7\BB\E9\87\8F </td><td width='50px'>inode</td></tr></div>\00"
@.str.10 = [6 x i8] c"/maps\00"
@.str.11 = [2 x i8] c"r\00"
@.str.12 = [2 x i8] c" \00"
@.str.13 = [7 x i8] c"[heap]\00"
@.str.14 = [215 x i8] c"<tr><td width='550px'>&nbsp</td><td width='50px'>\E5\A0\86</td> <td width='140px'>%s </td><td width='80px'>%s</td> <td width='50px'>%s</td></tr>\00"
@.str.15 = [8 x i8] c"[stack]\00"
@.str.16 = [215 x i8] c"<tr><td width='550px'>&nbsp</td><td width='50px'>\E6\A0\88</td> <td width='140px'>%s </td><td width='80px'>%s</td><td width='50px'>%s </td></tr>\00"
@.str.17 = [218 x i8] c"<tr><td width='550px'>%s</td><td width='50px'> \E6\95\B0\E6\8D\AE\E6\AE\B5</td><td width='140px'>%s </td><td width='80px'>%s </td><td width='50px'>%s</td></tr>\00"
@.str.18 = [218 x i8] c"<tr><td width='550px'>%s</td><td width='50px'> \E7\A8\8B\E5\BA\8F\E6\AE\B5</td><td width='140px'>%s </td><td width='80px'>%s </td><td width='50px'>%s</td></tr>\00"
@.str.19 = [9 x i8] c"</table>\00"
@.str.20 = [21 x i8] c"</div></body></html>\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32*
%3 = alloca i32*
%4 = alloca i32*
%5 = alloca %struct.dirent*
%6 = alloca %struct.dirent*
%7 = alloca [1024 x i8]
%8 = alloca [50 x i8]
%9 = alloca [50 x i8]
%10 = alloca i32
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca i8*
%14 = alloca i8*
%15 = alloca i8*
%16 = alloca i8*
%17 = alloca [10 x i8]
%18 = alloca [10 x i8]
%19 = alloca [10 x i8]
store i32 0, i32* %1
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0))
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.1, i64 0, i64 0))
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.2, i64 0, i64 0))
%23 = call i32* @opendir(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
store i32* %23, i32** %2
%24 = icmp eq i32* %23, null
br i1 %24, label %25, label %27
25: ; preds = %0
%26 = call i32 @perror(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0))
store i32 -1, i32* %1
br label %198
27: ; preds = %0
br label %28
28: ; preds = %193, %27
%29 = load i32*, i32** %2
%30 = call %struct.dirent* @readdir(i32* %29)
store %struct.dirent* %30, %struct.dirent** %5
%31 = icmp ne %struct.dirent* %30, null
br i1 %31, label %32, label %194
32: ; preds = %28
%33 = load %struct.dirent*, %struct.dirent** %5
%34 = getelementptr inbounds %struct.dirent, %struct.dirent* %33, i32 0, i32 0
%35 = load i8*, i8** %34
%36 = getelementptr inbounds i8, i8* %35, i64 0
%37 = load i8, i8* %36
%38 = call i64 @isdigit(i8 signext %37)
%39 = icmp ne i64 %38, 0
br i1 %39, label %40, label %193
40: ; preds = %32
%41 = load %struct.dirent*, %struct.dirent** %5
%42 = getelementptr inbounds %struct.dirent, %struct.dirent* %41, i32 0, i32 0
%43 = load i8*, i8** %42
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([181 x i8], [181 x i8]* @.str.5, i64 0, i64 0), i8* %43)
%45 = getelementptr inbounds [50 x i8], [50 x i8]* %8, i64 0, i64 0
%46 = call i32 @strcpy(i8* %45, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
%47 = getelementptr inbounds [50 x i8], [50 x i8]* %8, i64 0, i64 0
%48 = load %struct.dirent*, %struct.dirent** %5
%49 = getelementptr inbounds %struct.dirent, %struct.dirent* %48, i32 0, i32 0
%50 = load i8*, i8** %49
%51 = call i32 @strcat(i8* %47, i8* %50)
%52 = getelementptr inbounds [50 x i8], [50 x i8]* %8, i64 0, i64 0
%53 = call i32* @opendir(i8* %52)
store i32* %53, i32** %3
%54 = icmp eq i32* %53, null
br i1 %54, label %55, label %57
55: ; preds = %40
%56 = call i32 @perror(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0))
store i32 -1, i32* %1
br label %198
57: ; preds = %40
br label %58
58: ; preds = %189, %57
%59 = load i32*, i32** %3
%60 = call %struct.dirent* @readdir(i32* %59)
store %struct.dirent* %60, %struct.dirent** %6
%61 = icmp ne %struct.dirent* %60, null
br i1 %61, label %62, label %190
62: ; preds = %58
%63 = load %struct.dirent*, %struct.dirent** %6
%64 = getelementptr inbounds %struct.dirent, %struct.dirent* %63, i32 0, i32 0
%65 = load i8*, i8** %64
%66 = call i32 @strcmp(i8* %65, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%67 = icmp ne i32 %66, 0
br i1 %67, label %189, label %68
68: ; preds = %62
%69 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([356 x i8], [356 x i8]* @.str.9, i64 0, i64 0))
%70 = getelementptr inbounds [50 x i8], [50 x i8]* %9, i64 0, i64 0
%71 = getelementptr inbounds [50 x i8], [50 x i8]* %8, i64 0, i64 0
%72 = call i32 @strcpy(i8* %70, i8* %71)
%73 = getelementptr inbounds [50 x i8], [50 x i8]* %9, i64 0, i64 0
%74 = call i32 @strcat(i8* %73, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
%75 = getelementptr inbounds [50 x i8], [50 x i8]* %9, i64 0, i64 0
%76 = call i32* @fopen(i8* %75, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0))
store i32* %76, i32** %4
br label %77
77: ; preds = %184, %68
%78 = load i32*, i32** %4
%79 = call i32 @feof(i32* %78)
%80 = icmp ne i32 %79, 0
%81 = xor i1 %80, true
br i1 %81, label %82, label %185
82: ; preds = %77
%83 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 0
%84 = load i32*, i32** %4
%85 = call i32 @fgets(i8* %83, i32 1024, i32* %84)
%86 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 0
%87 = call i8* @strtok(i8* %86, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0))
store i8* %87, i8** %11
%88 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0))
store i8* %88, i8** %12
%89 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0))
store i8* %89, i8** %13
%90 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0))
store i8* %90, i8** %14
%91 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0))
store i8* %91, i8** %15
%92 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0))
store i8* %92, i8** %16
%93 = load i8*, i8** %14
store i8* %93, i8** %14
%94 = load i8*, i8** %12
%95 = icmp ne i8* %94, null
br i1 %95, label %96, label %184
96: ; preds = %82
%97 = load i8*, i8** %16
%98 = icmp ne i8* %97, null
br i1 %98, label %99, label %184
99: ; preds = %96
%100 = getelementptr inbounds [10 x i8], [10 x i8]* %17, i64 0, i64 0
%101 = load i8*, i8** %12
%102 = call i32 @strcpy(i8* %100, i8* %101)
store i32 0, i32* %10
br label %103
103: ; preds = %115, %99
%104 = load i32, i32* %10
%105 = icmp sle i32 %104, 5
br i1 %105, label %106, label %118
106: ; preds = %103
%107 = load i8*, i8** %16
%108 = load i32, i32* %10
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds i8, i8* %107, i64 %109
%111 = load i8, i8* %110
%112 = load i32, i32* %10
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds [10 x i8], [10 x i8]* %18, i64 0, i64 %113
store i8 %111, i8* %114
br label %115
115: ; preds = %106
%116 = load i32, i32* %10
%117 = add nsw i32 %116, 1
store i32 %117, i32* %10
br label %103
118: ; preds = %103
%119 = load i32, i32* %10
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds [10 x i8], [10 x i8]* %18, i64 0, i64 %120
store i8 0, i8* %121
store i32 0, i32* %10
br label %122
122: ; preds = %134, %118
%123 = load i32, i32* %10
%124 = icmp sle i32 %123, 6
br i1 %124, label %125, label %137
125: ; preds = %122
%126 = load i8*, i8** %16
%127 = load i32, i32* %10
%128 = sext i32 %127 to i64
%129 = getelementptr inbounds i8, i8* %126, i64 %128
%130 = load i8, i8* %129
%131 = load i32, i32* %10
%132 = sext i32 %131 to i64
%133 = getelementptr inbounds [10 x i8], [10 x i8]* %19, i64 0, i64 %132
store i8 %130, i8* %133
br label %134
134: ; preds = %125
%135 = load i32, i32* %10
%136 = add nsw i32 %135, 1
store i32 %136, i32* %10
br label %122
137: ; preds = %122
%138 = load i32, i32* %10
%139 = sext i32 %138 to i64
%140 = getelementptr inbounds [10 x i8], [10 x i8]* %19, i64 0, i64 %139
store i8 0, i8* %140
%141 = getelementptr inbounds [10 x i8], [10 x i8]* %18, i64 0, i64 0
%142 = call i32 @strcmp(i8* %141, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.13, i64 0, i64 0))
%143 = icmp ne i32 %142, 0
br i1 %143, label %149, label %144
144: ; preds = %137
%145 = load i8*, i8** %11
%146 = load i8*, i8** %13
%147 = load i8*, i8** %15
%148 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([215 x i8], [215 x i8]* @.str.14, i64 0, i64 0), i8* %145, i8* %146, i8* %147)
br label %183
149: ; preds = %137
%150 = getelementptr inbounds [10 x i8], [10 x i8]* %19, i64 0, i64 0
%151 = call i32 @strcmp(i8* %150, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.15, i64 0, i64 0))
%152 = icmp ne i32 %151, 0
br i1 %152, label %158, label %153
153: ; preds = %149
%154 = load i8*, i8** %11
%155 = load i8*, i8** %13
%156 = load i8*, i8** %15
%157 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([215 x i8], [215 x i8]* @.str.16, i64 0, i64 0), i8* %154, i8* %155, i8* %156)
br label %182
158: ; preds = %149
%159 = getelementptr inbounds [10 x i8], [10 x i8]* %17, i64 0, i64 1
%160 = load i8, i8* %159
%161 = sext i8 %160 to i32
%162 = icmp eq i32 %161, 119
br i1 %162, label %163, label %169
163: ; preds = %158
%164 = load i8*, i8** %16
%165 = load i8*, i8** %11
%166 = load i8*, i8** %13
%167 = load i8*, i8** %15
%168 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([218 x i8], [218 x i8]* @.str.17, i64 0, i64 0), i8* %164, i8* %165, i8* %166, i8* %167)
br label %181
169: ; preds = %158
%170 = getelementptr inbounds [10 x i8], [10 x i8]* %17, i64 0, i64 1
%171 = load i8, i8* %170
%172 = sext i8 %171 to i32
%173 = icmp eq i32 %172, 45
br i1 %173, label %174, label %180
174: ; preds = %169
%175 = load i8*, i8** %16
%176 = load i8*, i8** %11
%177 = load i8*, i8** %13
%178 = load i8*, i8** %15
%179 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([218 x i8], [218 x i8]* @.str.18, i64 0, i64 0), i8* %175, i8* %176, i8* %177, i8* %178)
br label %180
180: ; preds = %174, %169
br label %181
181: ; preds = %180, %163
br label %182
182: ; preds = %181, %153
br label %183
183: ; preds = %182, %144
br label %184
184: ; preds = %183, %96, %82
br label %77
185: ; preds = %77
%186 = load i32*, i32** %4
%187 = call i32 @fclose(i32* %186)
%188 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.19, i64 0, i64 0))
br label %189
189: ; preds = %185, %62
br label %58
190: ; preds = %58
%191 = load i32*, i32** %3
%192 = call i32 @closedir(i32* %191)
br label %193
193: ; preds = %190, %32
br label %28
194: ; preds = %28
%195 = load i32*, i32** %2
%196 = call i32 @closedir(i32* %195)
%197 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.20, i64 0, i64 0))
store i32 0, i32* %1
br label %198
198: ; preds = %194, %55, %25
%199 = load i32, i32* %1
ret i32 %199
}

LLVM IR (-O2):
%struct.dirent = type { i8* }
@.str.1 = [44 x i8] c"<html><head></head><body><div align='left'>\00"
@.str.2 = [76 x i8] c"<meta http-equiv='Content-Type' content='text/html; charset=utf-8'/></head>\00"
@.str.3 = [6 x i8] c"/proc\00"
@.str.4 = [9 x i8] c" opendir\00"
@.str.5 = [181 x i8] c"<div><table style='border-width:2px; border-collapse:collapse; border-color:red'; border='2'><tr><td>process number:%s</td></tr> </table></div>\00"
@.str.6 = [7 x i8] c"/proc/\00"
@.str.7 = [8 x i8] c"opendir\00"
@.str.8 = [5 x i8] c"maps\00"
@.str.9 = [356 x i8] c"<div><table style ='border-width:5px; border-collapse:collapse; border-color:'; border='2'><tr><td width='550px'>\E6\96\87\E4\BB\B6\E5\90\8D</td> <td width='50px'>\E7\B1\BB\E5\9E\8B</td><td width='140px'>\E5\86\85\E5\AD\98\E6\98\A0\E5\83\8F </td> <td width='80px'>\E8\99\9A\E5\AD\98\E5\81\8F\E7\A7\BB\E9\87\8F </td><td width='50px'>inode</td></tr></div>\00"
@.str.10 = [6 x i8] c"/maps\00"
@.str.11 = [2 x i8] c"r\00"
@.str.12 = [2 x i8] c" \00"
@.str.13 = [7 x i8] c"[heap]\00"
@.str.14 = [215 x i8] c"<tr><td width='550px'>&nbsp</td><td width='50px'>\E5\A0\86</td> <td width='140px'>%s </td><td width='80px'>%s</td> <td width='50px'>%s</td></tr>\00"
@.str.15 = [8 x i8] c"[stack]\00"
@.str.16 = [215 x i8] c"<tr><td width='550px'>&nbsp</td><td width='50px'>\E6\A0\88</td> <td width='140px'>%s </td><td width='80px'>%s</td><td width='50px'>%s </td></tr>\00"
@.str.17 = [218 x i8] c"<tr><td width='550px'>%s</td><td width='50px'> \E6\95\B0\E6\8D\AE\E6\AE\B5</td><td width='140px'>%s </td><td width='80px'>%s </td><td width='50px'>%s</td></tr>\00"
@.str.18 = [218 x i8] c"<tr><td width='550px'>%s</td><td width='50px'> \E7\A8\8B\E5\BA\8F\E6\AE\B5</td><td width='140px'>%s </td><td width='80px'>%s </td><td width='50px'>%s</td></tr>\00"
@.str.19 = [9 x i8] c"</table>\00"
@.str.20 = [21 x i8] c"</div></body></html>\00"
@str = [26 x i8] c"Content-type:text/html\0D\0A\0D\00"
define i32 @main() {
%1 = alloca [1024 x i8]
%2 = alloca [50 x i8]
%3 = alloca [50 x i8]
%4 = alloca [10 x i8]
%5 = alloca [10 x i8]
%6 = getelementptr inbounds [10 x i8], [10 x i8]* %5, i64 0, i64 0
%7 = alloca [10 x i8]
%8 = getelementptr inbounds [10 x i8], [10 x i8]* %7, i64 0, i64 0
%9 = getelementptr inbounds [1024 x i8], [1024 x i8]* %1, i64 0, i64 0
%10 = getelementptr inbounds [50 x i8], [50 x i8]* %2, i64 0, i64 0
%11 = getelementptr inbounds [50 x i8], [50 x i8]* %3, i64 0, i64 0
%12 = getelementptr inbounds [10 x i8], [10 x i8]* %4, i64 0, i64 0
%13 = getelementptr inbounds [10 x i8], [10 x i8]* %5, i64 0, i64 0
%14 = getelementptr inbounds [10 x i8], [10 x i8]* %7, i64 0, i64 0
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str, i64 0, i64 0))
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @.str.1, i64 0, i64 0))
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @.str.2, i64 0, i64 0))
%18 = tail call i32* @opendir(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%19 = icmp eq i32* %18, null
br i1 %19, label %27, label %20
20: ; preds = %0
%21 = call %struct.dirent* @readdir(i32* %18)
%22 = icmp eq %struct.dirent* %21, null
br i1 %22, label %104, label %23
23: ; preds = %20
%24 = getelementptr inbounds [10 x i8], [10 x i8]* %4, i64 0, i64 1
%25 = getelementptr inbounds [10 x i8], [10 x i8]* %5, i64 0, i64 6
%26 = getelementptr inbounds [10 x i8], [10 x i8]* %7, i64 0, i64 7
br label %29
27: ; preds = %0
%28 = tail call i32 @perror(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0))
br label %107
29: ; preds = %23, %101
%30 = phi %struct.dirent* [ %21, %23 ], [ %102, %101 ]
%31 = getelementptr inbounds %struct.dirent, %struct.dirent* %30, i64 0, i32 0
%32 = load i8*, i8** %31
%33 = load i8, i8* %32
%34 = call i64 @isdigit(i8 signext %33)
%35 = icmp eq i64 %34, 0
br i1 %35, label %101, label %36
36: ; preds = %29
%37 = load i8*, i8** %31
%38 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([181 x i8], [181 x i8]* @.str.5, i64 0, i64 0), i8* %37)
%39 = call i32 @strcpy(i8* %10, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
%40 = load i8*, i8** %31
%41 = call i32 @strcat(i8* %10, i8* %40)
%42 = call i32* @opendir(i8* %10)
%43 = icmp eq i32* %42, null
br i1 %43, label %47, label %44
44: ; preds = %36
%45 = call %struct.dirent* @readdir(i32* %42)
%46 = icmp eq %struct.dirent* %45, null
br i1 %46, label %99, label %49
47: ; preds = %36
%48 = call i32 @perror(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0))
br label %107
49: ; preds = %44, %96
%50 = phi %struct.dirent* [ %97, %96 ], [ %45, %44 ]
%51 = getelementptr inbounds %struct.dirent, %struct.dirent* %50, i64 0, i32 0
%52 = load i8*, i8** %51
%53 = call i32 @strcmp(i8* dereferenceable(1) %52, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%54 = icmp eq i32 %53, 0
br i1 %54, label %55, label %96
55: ; preds = %49
%56 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([356 x i8], [356 x i8]* @.str.9, i64 0, i64 0))
%57 = call i32 @strcpy(i8* %11, i8* %10)
%58 = call i32 @strcat(i8* %11, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
%59 = call i32* @fopen(i8* %11, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0))
%60 = call i32 @feof(i32* %59)
%61 = icmp eq i32 %60, 0
br i1 %61, label %62, label %93
62: ; preds = %55, %90
%63 = call i32 @fgets(i8* %9, i32 1024, i32* %59)
%64 = call i8* @strtok(i8* %9, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0))
%65 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0))
%66 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0))
%67 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0))
%68 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0))
%69 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0))
%70 = icmp ne i8* %65, null
%71 = icmp ne i8* %69, null
%72 = select i1 %70, i1 %71, i1 false
br i1 %72, label %73, label %90
73: ; preds = %62
%74 = call i32 @strcpy(i8* %12, i8* %65)
store i8 0, i8* %25
store i8 0, i8* %26
%75 = call i32 @bcmp(i8* dereferenceable(7) %13, i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.13, i64 0, i64 0), i64 7)
%76 = icmp eq i32 %75, 0
br i1 %76, label %77, label %79
77: ; preds = %73
%78 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([215 x i8], [215 x i8]* @.str.14, i64 0, i64 0), i8* %64, i8* %66, i8* %68)
br label %90
79: ; preds = %73
%80 = call i32 @bcmp(i8* dereferenceable(8) %14, i8* dereferenceable(8) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.15, i64 0, i64 0), i64 8)
%81 = icmp eq i32 %80, 0
br i1 %81, label %82, label %84
82: ; preds = %79
%83 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([215 x i8], [215 x i8]* @.str.16, i64 0, i64 0), i8* %64, i8* %66, i8* %68)
br label %90
84: ; preds = %79
%85 = load i8, i8* %24
switch i8 %85, label %90 [
i8 119, label %86
i8 45, label %88
]
86: ; preds = %84
%87 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([218 x i8], [218 x i8]* @.str.17, i64 0, i64 0), i8* %69, i8* %64, i8* %66, i8* %68)
br label %90
88: ; preds = %84
%89 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([218 x i8], [218 x i8]* @.str.18, i64 0, i64 0), i8* %69, i8* %64, i8* %66, i8* %68)
br label %90
90: ; preds = %84, %77, %86, %88, %82, %62
%91 = call i32 @feof(i32* %59)
%92 = icmp eq i32 %91, 0
br i1 %92, label %62, label %93
93: ; preds = %90, %55
%94 = call i32 @fclose(i32* %59)
%95 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.19, i64 0, i64 0))
br label %96
96: ; preds = %93, %49
%97 = call %struct.dirent* @readdir(i32* %42)
%98 = icmp eq %struct.dirent* %97, null
br i1 %98, label %99, label %49
99: ; preds = %96, %44
%100 = call i32 @closedir(i32* %42)
br label %101
101: ; preds = %99, %29
%102 = call %struct.dirent* @readdir(i32* %18)
%103 = icmp eq %struct.dirent* %102, null
br i1 %103, label %104, label %29
104: ; preds = %101, %20
%105 = call i32 @closedir(i32* %18)
%106 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.20, i64 0, i64 0))
br label %107
107: ; preds = %104, %47, %27
%108 = phi i32 [ -1, %27 ], [ -1, %47 ], [ 0, %104 ]
ret i32 %108
}