#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 /*<<< orphan*/ bzero(char *, int);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
scalar_t__ feof(int /*<<< orphan*/ *);
int /*<<< orphan*/ fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *, ...);
int /*<<< orphan*/ fscanf(int /*<<< orphan*/ *, char *, char *, ...);
int /*<<< orphan*/ getpid();
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ sprintf(char *, char *, ...);
int /*<<< orphan*/ sscanf(char *, char *, char *, char *, ...);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ strcat(char *, char *);
scalar_t__ strcmp(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
int /*<<< orphan*/ system(char *);
main(int argc, char **argv) {
  char *mapfile, bigcmdline[16384];
  FILE *fp;
  char line[80], name[40], status[40], coord[20], xc[10], yc[10], syscl[256],
      tempfile[50], infile[50], plotfile[256], outputfile[256], sourceimage[40],
      imagelist[3][40], word[3][40],
      *absdir = "/www/htdocs", *imagedir = "/status/", *bigprefix = "big-",
      *pnmpaste = "pnmpaste", *ppmtogif = "ppmtogif", *image;
  int iter = 0, x;
  bzero(bigcmdline, 16383);
  if (argc < 2) {
    fprintf(stderr, "%s: no mapping file to use.\n", argv[0]);
    exit(1);
  } else
    mapfile = argv[1];
  printf("Using map file %s\n", mapfile);
  fp = fopen(mapfile, "r");
  if (fp) {
    sprintf(tempfile, "/tmp/status-temp%d%d.ppm", iter, getpid());
    sprintf(outputfile, "%sstatus-map.gif", imagedir);
    fscanf(fp, "%s", sourceimage);
    sprintf(plotfile, "%s%s", absdir, sourceimage);
    strcpy(infile, plotfile);
    printf("Source image file is '%s'\n", sourceimage);
    for (x = 0; x < 3; x++)
      fscanf(fp, "%s %s", imagelist[x], word[x]);
    while (!feof(fp)) {
      fgets(line, 80, fp);
      if (feof(fp))
        break;
      if (line[0] == '#')
        continue;
      if (line[0] == '\n')
        continue;
      sscanf(line, "%s %s %s", name, status, coord);
      sscanf(coord, "(%[^(),], %[^(),]", xc, yc);
      for (x = 0; x < 3; x++)
        if (strcmp(status, word[x]) == 0) {
          image = imagelist[x];
          break;
        }
      sprintf(syscl, "%s%s %s%s%s %s %s %s ", iter ? "| " : "", pnmpaste,
              absdir, imagedir, image, xc, yc, iter ? "" : infile);
      strcat(bigcmdline, syscl);
      printf("%s\n\n", bigcmdline);
      system(syscl);
      strcpy(infile, tempfile);
      sprintf(tempfile, "/tmp/status-temp%d%d.ppm", ++iter, getpid());
    }
    fclose(fp);
    sprintf(syscl, " | %s %s > %s%s", ppmtogif, infile, absdir, outputfile);
    strcat(bigcmdline, syscl);
    system(syscl);
    printf("\n%s\n", bigcmdline);
  } else {
    fprintf(stderr, "%s: Unable to read mapping file %s\n", argv[0], mapfile);
    exit(1);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %rbx
sub    $0x4688,%rsp
movl   $0x0,-0xc(%rbp)
mov    %edi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
lea    0xddf(%rip),%rax
mov    %rax,-0x45d8(%rbp)
lea    0xddd(%rip),%rax
mov    %rax,-0x45e0(%rbp)
lea    0xdd8(%rip),%rax
mov    %rax,-0x45e8(%rbp)
lea    0xdcf(%rip),%rax
mov    %rax,-0x45f0(%rbp)
lea    0xdca(%rip),%rax
mov    %rax,-0x45f8(%rbp)
movl   $0x0,-0x4604(%rbp)
lea    -0x4020(%rbp),%rdi
mov    $0x3fff,%esi
call   10f0 <bzero@plt>
cmpl   $0x2,-0x10(%rbp)
jge    12ad <main+0xad>
mov    0x2d54(%rip),%rax
mov    (%rax),%edi
mov    -0x18(%rbp),%rax
mov    (%rax),%rdx
lea    0xd90(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
mov    $0x1,%edi
call   1120 <exit@plt>
mov    -0x18(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rsi
lea    0xd85(%rip),%rdi
call   1070 <printf@plt>
mov    -0x20(%rbp),%rdi
lea    0xd88(%rip),%rsi
call   10e0 <fopen@plt>
mov    %rax,-0x4028(%rbp)
cmpq   $0x0,-0x4028(%rbp)
je     177b <main+0x57b>
lea    -0x4260(%rbp),%rax
mov    %rax,-0x4618(%rbp)
mov    -0x4604(%rbp),%eax
mov    %eax,-0x460c(%rbp)
mov    $0x0,%al
call   1040 <getpid@plt>
mov    -0x4618(%rbp),%rdi
mov    -0x460c(%rbp),%edx
mov    %eax,%ecx
lea    0xd39(%rip),%rsi
mov    $0x0,%al
call   1110 <sprintf@plt>
lea    -0x44a0(%rbp),%rdi
mov    -0x45e0(%rbp),%rdx
lea    0xd36(%rip),%rsi
mov    $0x0,%al
call   1110 <sprintf@plt>
mov    -0x4028(%rbp),%rdi
lea    -0x44d0(%rbp),%rdx
lea    0xd4c(%rip),%rsi
mov    $0x0,%al
call   1080 <fscanf@plt>
lea    -0x43a0(%rbp),%rdi
mov    -0x45d8(%rbp),%rdx
lea    -0x44d0(%rbp),%rcx
lea    0xd67(%rip),%rsi
mov    $0x0,%al
call   1110 <sprintf@plt>
lea    -0x42a0(%rbp),%rdi
lea    -0x43a0(%rbp),%rsi
call   1030 <strcpy@plt>
lea    -0x44d0(%rbp),%rsi
lea    0xce0(%rip),%rdi
call   1070 <printf@plt>
movl   $0x0,-0x4608(%rbp)
cmpl   $0x3,-0x4608(%rbp)
jge    1417 <main+0x217>
mov    -0x4028(%rbp),%rdi
movslq -0x4608(%rbp),%rax
lea    -0x4550(%rbp),%rdx
imul   $0x28,%rax,%rax
add    %rax,%rdx
movslq -0x4608(%rbp),%rax
lea    -0x45d0(%rbp),%rcx
imul   $0x28,%rax,%rax
add    %rax,%rcx
lea    0xcaa(%rip),%rsi
mov    $0x0,%al
call   1080 <fscanf@plt>
mov    -0x4608(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4608(%rbp)
jmp    13b7 <main+0x1b7>
jmp    141c <main+0x21c>
mov    -0x4028(%rbp),%rdi
call   10c0 <feof@plt>
cmp    $0x0,%rax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    143e <main+0x23e>
jmp    1707 <main+0x507>
lea    -0x4080(%rbp),%rdi
mov    -0x4028(%rbp),%rdx
mov    $0x50,%esi
call   1090 <fgets@plt>
mov    -0x4028(%rbp),%rdi
call   10c0 <feof@plt>
cmp    $0x0,%rax
je     1471 <main+0x271>
jmp    1707 <main+0x507>
movsbl -0x4080(%rbp),%eax
cmp    $0x23,%eax
jne    1486 <main+0x286>
jmp    141c <main+0x21c>
movsbl -0x4080(%rbp),%eax
cmp    $0xa,%eax
jne    149b <main+0x29b>
jmp    141c <main+0x21c>
lea    -0x4080(%rbp),%rdi
lea    -0x40b0(%rbp),%rdx
lea    -0x40e0(%rbp),%rcx
lea    -0x4100(%rbp),%r8
lea    0xbe5(%rip),%rsi
mov    $0x0,%al
call   10d0 <sscanf@plt>
lea    -0x4100(%rbp),%rdi
lea    -0x410a(%rbp),%rdx
lea    -0x4114(%rbp),%rcx
lea    0xbcb(%rip),%rsi
mov    $0x0,%al
call   10d0 <sscanf@plt>
movl   $0x0,-0x4608(%rbp)
cmpl   $0x3,-0x4608(%rbp)
jge    1564 <main+0x364>
lea    -0x40e0(%rbp),%rdi
movslq -0x4608(%rbp),%rax
lea    -0x45d0(%rbp),%rsi
imul   $0x28,%rax,%rax
add    %rax,%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    154b <main+0x34b>
movslq -0x4608(%rbp),%rcx
lea    -0x4550(%rbp),%rax
imul   $0x28,%rcx,%rcx
add    %rcx,%rax
mov    %rax,-0x4600(%rbp)
jmp    1564 <main+0x364>
jmp    1550 <main+0x350>
mov    -0x4608(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4608(%rbp)
jmp    14f2 <main+0x2f2>
lea    -0x4220(%rbp),%rax
mov    %rax,-0x4658(%rbp)
mov    -0x4604(%rbp),%edx
lea    0xb5c(%rip),%rax
lea    0xb4e(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0x4650(%rbp)
mov    -0x45f0(%rbp),%rax
mov    %rax,-0x4648(%rbp)
mov    -0x45d8(%rbp),%rax
mov    %rax,-0x4640(%rbp)
mov    -0x45e0(%rbp),%rax
mov    %rax,-0x4638(%rbp)
mov    -0x4600(%rbp),%rax
mov    %rax,-0x4630(%rbp)
lea    -0x410a(%rbp),%rax
mov    %rax,-0x4628(%rbp)
lea    -0x4114(%rbp),%rax
mov    %rax,-0x4620(%rbp)
cmpl   $0x0,-0x4604(%rbp)
je     1608 <main+0x408>
lea    0xadf(%rip),%rax
mov    %rax,-0x4660(%rbp)
jmp    1616 <main+0x416>
lea    -0x42a0(%rbp),%rax
mov    %rax,-0x4660(%rbp)
mov    -0x4620(%rbp),%r10
mov    -0x4628(%rbp),%r11
mov    -0x4630(%rbp),%rbx
mov    -0x4638(%rbp),%r9
mov    -0x4640(%rbp),%r8
mov    -0x4648(%rbp),%rcx
mov    -0x4650(%rbp),%rdx
mov    -0x4658(%rbp),%rdi
mov    -0x4660(%rbp),%rax
lea    0xa62(%rip),%rsi
mov    %rbx,(%rsp)
mov    %r11,0x8(%rsp)
mov    %r10,0x10(%rsp)
mov    %rax,0x18(%rsp)
mov    $0x0,%al
call   1110 <sprintf@plt>
lea    -0x4020(%rbp),%rdi
lea    -0x4220(%rbp),%rsi
call   1100 <strcat@plt>
lea    -0x4020(%rbp),%rsi
lea    0xa40(%rip),%rdi
call   1070 <printf@plt>
lea    -0x4220(%rbp),%rdi
call   1060 <system@plt>
lea    -0x42a0(%rbp),%rdi
lea    -0x4260(%rbp),%rsi
call   1030 <strcpy@plt>
lea    -0x4260(%rbp),%rax
mov    %rax,-0x4670(%rbp)
mov    -0x4604(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4664(%rbp)
mov    %eax,-0x4604(%rbp)
mov    $0x0,%al
call   1040 <getpid@plt>
mov    -0x4670(%rbp),%rdi
mov    -0x4664(%rbp),%edx
mov    %eax,%ecx
lea    0x963(%rip),%rsi
mov    $0x0,%al
call   1110 <sprintf@plt>
jmp    141c <main+0x21c>
mov    -0x4028(%rbp),%rdi
call   1050 <fclose@plt>
lea    -0x4220(%rbp),%rdi
mov    -0x45f8(%rbp),%rdx
lea    -0x42a0(%rbp),%rcx
mov    -0x45d8(%rbp),%r8
lea    -0x44a0(%rbp),%r9
lea    0x99f(%rip),%rsi
mov    $0x0,%al
call   1110 <sprintf@plt>
lea    -0x4020(%rbp),%rdi
lea    -0x4220(%rbp),%rsi
call   1100 <strcat@plt>
lea    -0x4220(%rbp),%rdi
call   1060 <system@plt>
lea    -0x4020(%rbp),%rsi
lea    0x97b(%rip),%rdi
call   1070 <printf@plt>
jmp    17a7 <main+0x5a7>
mov    0x285e(%rip),%rax
mov    (%rax),%edi
mov    -0x18(%rbp),%rax
mov    (%rax),%rdx
mov    -0x20(%rbp),%rcx
lea    0x95b(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
mov    $0x1,%edi
call   1120 <exit@plt>
mov    -0xc(%rbp),%eax
add    $0x4688,%rsp
pop    %rbx
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x45a8,%rsp
mov    %rsi,%r14
mov    %edi,%ebx
lea    0x5a0(%rsp),%rdi
mov    $0x3fff,%esi
call   10f0 <bzero@plt>
cmp    $0x1,%ebx
jle    15ce <main+0x3ce>
mov    0x8(%r14),%rbp
lea    0xe08(%rip),%rdi
mov    %rbp,%rsi
call   1070 <printf@plt>
lea    0xe0c(%rip),%rsi
mov    %rbp,%rdi
call   10e0 <fopen@plt>
test   %rax,%rax
je     15f2 <main+0x3f2>
mov    %rax,%r12
xor    %eax,%eax
call   1040 <getpid@plt>
lea    0xdec(%rip),%rsi
lea    0x130(%rsp),%rdi
xor    %edx,%edx
mov    %eax,%ecx
xor    %eax,%eax
call   1110 <sprintf@plt>
lea    0xdeb(%rip),%rsi
lea    0xd7e(%rip),%rdx
lea    0x2a0(%rsp),%rdi
xor    %eax,%eax
call   1110 <sprintf@plt>
lea    0xe00(%rip),%rsi
lea    0x1f0(%rsp),%r15
mov    %r12,%rdi
mov    %r15,%rdx
xor    %eax,%eax
call   1080 <fscanf@plt>
lea    0xe22(%rip),%rsi
lea    0xd39(%rip),%rdx
lea    0x4a0(%rsp),%rbp
mov    %rbp,%rdi
mov    %r15,%rcx
xor    %eax,%eax
call   1110 <sprintf@plt>
lea    0x20(%rsp),%rdi
mov    %rbp,%rsi
call   1030 <strcpy@plt>
lea    0xd93(%rip),%rdi
mov    %r15,%rsi
call   1070 <printf@plt>
lea    0xda2(%rip),%rbp
lea    0x170(%rsp),%rdx
lea    0xb0(%rsp),%rcx
mov    %r12,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1080 <fscanf@plt>
lea    0x198(%rsp),%rdx
lea    0xd8(%rsp),%rbx
mov    %r12,%rdi
mov    %rbp,%rsi
mov    %rbx,%rcx
xor    %eax,%eax
call   1080 <fscanf@plt>
lea    0x1c0(%rsp),%rdx
lea    0x100(%rsp),%rcx
mov    %r12,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1080 <fscanf@plt>
mov    %r12,%rdi
call   10c0 <feof@plt>
test   %rax,%rax
je     13e0 <main+0x1e0>
mov    %r12,%rdi
call   1050 <fclose@plt>
lea    0xd62(%rip),%rsi
lea    0xca2(%rip),%rdx
lea    0xc7d(%rip),%r8
lea    0x3a0(%rsp),%rbx
lea    0x20(%rsp),%rcx
lea    0x2a0(%rsp),%r9
mov    %rbx,%rdi
xor    %eax,%eax
call   1110 <sprintf@plt>
lea    0x5a0(%rsp),%rbp
mov    %rbp,%rdi
mov    %rbx,%rsi
call   1100 <strcat@plt>
mov    %rbx,%rdi
call   1060 <system@plt>
lea    0xd23(%rip),%rdi
mov    %rbp,%rsi
call   1070 <printf@plt>
xor    %eax,%eax
add    $0x45a8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0x250(%rsp),%r13
xor    %r14d,%r14d
jmp    14f1 <main+0x2f1>
xor    %eax,%eax
lea    0xcdd(%rip),%rbp
lea    (%rax,%rax,4),%rax
lea    (%rsp,%rax,8),%r11
add    $0x170,%r11
test   %r14d,%r14d
lea    0xcbd(%rip),%rdx
cmove  %rbp,%rdx
lea    0xcb9(%rip),%rbp
lea    0x20(%rsp),%rax
cmove  %rax,%rbp
lea    0x3a0(%rsp),%rdi
lea    0xc84(%rip),%rsi
lea    0xbd9(%rip),%rcx
lea    0xbbd(%rip),%r8
lea    0xbc2(%rip),%r9
xor    %eax,%eax
push   %rbp
lea    0x1e(%rsp),%rbp
mov    %rbx,%r10
lea    0x14(%rsp),%rbx
push   %rbx
mov    %r10,%rbx
push   %rbp
mov    %rdi,%r15
mov    %r11,0x18(%rsp)
push   %r11
call   1110 <sprintf@plt>
add    $0x20,%rsp
lea    0x5a0(%rsp),%rbp
mov    %rbp,%rdi
mov    %r15,%rsi
call   1100 <strcat@plt>
lea    0xc46(%rip),%rdi
mov    %rbp,%rsi
call   1070 <printf@plt>
mov    %r15,%rdi
call   1060 <system@plt>
lea    0x20(%rsp),%rdi
lea    0x130(%rsp),%rbp
mov    %rbp,%rsi
call   1030 <strcpy@plt>
add    $0x1,%r14d
xor    %eax,%eax
call   1040 <getpid@plt>
mov    %rbp,%rdi
lea    0xb93(%rip),%rsi
mov    %r14d,%edx
mov    %eax,%ecx
xor    %eax,%eax
call   1110 <sprintf@plt>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %r12,%rdi
call   10c0 <feof@plt>
test   %rax,%rax
jne    1366 <main+0x166>
mov    %r13,%rdi
mov    $0x50,%esi
mov    %r12,%rdx
call   1090 <fgets@plt>
mov    %r12,%rdi
call   10c0 <feof@plt>
test   %rax,%rax
jne    1366 <main+0x166>
movzbl 0x250(%rsp),%eax
cmp    $0x23,%al
je     14e0 <main+0x2e0>
cmp    $0xa,%al
je     14e0 <main+0x2e0>
mov    %r13,%rdi
lea    0xb72(%rip),%rsi
lea    0x220(%rsp),%rdx
lea    0x60(%rsp),%r15
mov    %r15,%rcx
lea    0x90(%rsp),%rbp
mov    %rbp,%r8
xor    %eax,%eax
call   10d0 <sscanf@plt>
mov    %rbp,%rdi
lea    0xb4f(%rip),%rsi
lea    0x16(%rsp),%rdx
lea    0xc(%rsp),%rcx
xor    %eax,%eax
call   10d0 <sscanf@plt>
mov    %r15,%rdi
lea    0xb0(%rsp),%rsi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     13f0 <main+0x1f0>
lea    0x60(%rsp),%rdi
mov    %rbx,%rsi
call   10a0 <strcmp@plt>
test   %rax,%rax
lea    0xb3d(%rip),%rbp
lea    0x100(%rsp),%rsi
je     15c4 <main+0x3c4>
lea    0x60(%rsp),%rdi
call   10a0 <strcmp@plt>
test   %rax,%rax
mov    (%rsp),%r11
jne    1408 <main+0x208>
mov    $0x2,%eax
jmp    13f9 <main+0x1f9>
mov    $0x1,%eax
jmp    13f9 <main+0x1f9>
mov    0x2a0b(%rip),%rax
mov    (%rax),%edi
mov    (%r14),%rdx
lea    0xa46(%rip),%rsi
xor    %eax,%eax
call   10b0 <fprintf@plt>
mov    $0x1,%edi
call   1120 <exit@plt>
mov    0x29e7(%rip),%rax
mov    (%rax),%edi
mov    (%r14),%rdx
lea    0xae7(%rip),%rsi
mov    %rbp,%rcx
xor    %eax,%eax
call   10b0 <fprintf@plt>
mov    $0x1,%edi
call   1120 <exit@plt>

LLVM IR (-O0):
@.str = [12 x i8] c"/www/htdocs\00"
@.str.1 = [9 x i8] c"/status/\00"
@.str.2 = [5 x i8] c"big-\00"
@.str.3 = [9 x i8] c"pnmpaste\00"
@.str.4 = [9 x i8] c"ppmtogif\00"
@stderr = global i32 0
@.str.5 = [29 x i8] c"%s: no mapping file to use.\0A\00"
@.str.6 = [19 x i8] c"Using map file %s\0A\00"
@.str.7 = [2 x i8] c"r\00"
@.str.8 = [25 x i8] c"/tmp/status-temp%d%d.ppm\00"
@.str.9 = [17 x i8] c"%sstatus-map.gif\00"
@.str.10 = [3 x i8] c"%s\00"
@.str.11 = [5 x i8] c"%s%s\00"
@.str.12 = [27 x i8] c"Source image file is '%s'\0A\00"
@.str.13 = [6 x i8] c"%s %s\00"
@.str.14 = [9 x i8] c"%s %s %s\00"
@.str.15 = [18 x i8] c"(%[^(),], %[^(),]\00"
@.str.16 = [22 x i8] c"%s%s %s%s%s %s %s %s \00"
@.str.17 = [3 x i8] c"| \00"
@.str.18 = [1 x i8] zeroinitializer
@.str.19 = [5 x i8] c"%s\0A\0A\00"
@.str.20 = [16 x i8] c" | %s %s > %s%s\00"
@.str.21 = [5 x i8] c"\0A%s\0A\00"
@.str.22 = [36 x i8] c"%s: Unable to read mapping file %s\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
%7 = alloca [16384 x i8]
%8 = alloca i32*
%9 = alloca [80 x i8]
%10 = alloca [40 x i8]
%11 = alloca [40 x i8]
%12 = alloca [20 x i8]
%13 = alloca [10 x i8]
%14 = alloca [10 x i8]
%15 = alloca [256 x i8]
%16 = alloca [50 x i8]
%17 = alloca [50 x i8]
%18 = alloca [256 x i8]
%19 = alloca [256 x i8]
%20 = alloca [40 x i8]
%21 = alloca [3 x [40 x i8]]
%22 = alloca [3 x [40 x i8]]
%23 = alloca i8*
%24 = alloca i8*
%25 = alloca i8*
%26 = alloca i8*
%27 = alloca i8*
%28 = alloca i8*
%29 = alloca i32
%30 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8** %23
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8** %24
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8** %25
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8** %26
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i8** %27
store i32 0, i32* %29
%31 = getelementptr inbounds [16384 x i8], [16384 x i8]* %7, i64 0, i64 0
%32 = call i32 @bzero(i8* %31, i32 16383)
%33 = load i32, i32* %4
%34 = icmp slt i32 %33, 2
br i1 %34, label %35, label %42
35: ; preds = %2
%36 = load i32, i32* @stderr
%37 = load i8**, i8*** %5
%38 = getelementptr inbounds i8*, i8** %37, i64 0
%39 = load i8*, i8** %38
%40 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %36, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.5, i64 0, i64 0), i8* %39)
%41 = call i32 @exit(i32 1)
unreachable
42: ; preds = %2
%43 = load i8**, i8*** %5
%44 = getelementptr inbounds i8*, i8** %43, i64 1
%45 = load i8*, i8** %44
store i8* %45, i8** %6
br label %46
46: ; preds = %42
%47 = load i8*, i8** %6
%48 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0), i8* %47)
%49 = load i8*, i8** %6
%50 = call i32* @fopen(i8* %49, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
store i32* %50, i32** %8
%51 = load i32*, i32** %8
%52 = icmp ne i32* %51, null
br i1 %52, label %53, label %197
53: ; preds = %46
%54 = getelementptr inbounds [50 x i8], [50 x i8]* %16, i64 0, i64 0
%55 = load i32, i32* %29
%56 = call i32 (...) @getpid()
%57 = call i32 (i8*, i8*, ...) @sprintf(i8* %54, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.8, i64 0, i64 0), i32 %55, i32 %56)
%58 = getelementptr inbounds [256 x i8], [256 x i8]* %19, i64 0, i64 0
%59 = load i8*, i8** %24
%60 = call i32 (i8*, i8*, ...) @sprintf(i8* %58, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.9, i64 0, i64 0), i8* %59)
%61 = load i32*, i32** %8
%62 = getelementptr inbounds [40 x i8], [40 x i8]* %20, i64 0, i64 0
%63 = call i32 (i32*, i8*, i8*, ...) @fscanf(i32* %61, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), i8* %62)
%64 = getelementptr inbounds [256 x i8], [256 x i8]* %18, i64 0, i64 0
%65 = load i8*, i8** %23
%66 = getelementptr inbounds [40 x i8], [40 x i8]* %20, i64 0, i64 0
%67 = call i32 (i8*, i8*, ...) @sprintf(i8* %64, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), i8* %65, i8* %66)
%68 = getelementptr inbounds [50 x i8], [50 x i8]* %17, i64 0, i64 0
%69 = getelementptr inbounds [256 x i8], [256 x i8]* %18, i64 0, i64 0
%70 = call i32 @strcpy(i8* %68, i8* %69)
%71 = getelementptr inbounds [40 x i8], [40 x i8]* %20, i64 0, i64 0
%72 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.12, i64 0, i64 0), i8* %71)
store i32 0, i32* %30
br label %73
73: ; preds = %87, %53
%74 = load i32, i32* %30
%75 = icmp slt i32 %74, 3
br i1 %75, label %76, label %90
76: ; preds = %73
%77 = load i32*, i32** %8
%78 = load i32, i32* %30
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds [3 x [40 x i8]], [3 x [40 x i8]]* %21, i64 0, i64 %79
%81 = getelementptr inbounds [40 x i8], [40 x i8]* %80, i64 0, i64 0
%82 = load i32, i32* %30
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds [3 x [40 x i8]], [3 x [40 x i8]]* %22, i64 0, i64 %83
%85 = getelementptr inbounds [40 x i8], [40 x i8]* %84, i64 0, i64 0
%86 = call i32 (i32*, i8*, i8*, ...) @fscanf(i32* %77, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0), i8* %81, i8* %85)
br label %87
87: ; preds = %76
%88 = load i32, i32* %30
%89 = add nsw i32 %88, 1
store i32 %89, i32* %30
br label %73
90: ; preds = %73
br label %91
91: ; preds = %163, %115, %109, %90
%92 = load i32*, i32** %8
%93 = call i64 @feof(i32* %92)
%94 = icmp ne i64 %93, 0
%95 = xor i1 %94, true
br i1 %95, label %96, label %181
96: ; preds = %91
%97 = getelementptr inbounds [80 x i8], [80 x i8]* %9, i64 0, i64 0
%98 = load i32*, i32** %8
%99 = call i32 @fgets(i8* %97, i32 80, i32* %98)
%100 = load i32*, i32** %8
%101 = call i64 @feof(i32* %100)
%102 = icmp ne i64 %101, 0
br i1 %102, label %103, label %104
103: ; preds = %96
br label %181
104: ; preds = %96
%105 = getelementptr inbounds [80 x i8], [80 x i8]* %9, i64 0, i64 0
%106 = load i8, i8* %105
%107 = sext i8 %106 to i32
%108 = icmp eq i32 %107, 35
br i1 %108, label %109, label %110
109: ; preds = %104
br label %91
110: ; preds = %104
%111 = getelementptr inbounds [80 x i8], [80 x i8]* %9, i64 0, i64 0
%112 = load i8, i8* %111
%113 = sext i8 %112 to i32
%114 = icmp eq i32 %113, 10
br i1 %114, label %115, label %116
115: ; preds = %110
br label %91
116: ; preds = %110
%117 = getelementptr inbounds [80 x i8], [80 x i8]* %9, i64 0, i64 0
%118 = getelementptr inbounds [40 x i8], [40 x i8]* %10, i64 0, i64 0
%119 = getelementptr inbounds [40 x i8], [40 x i8]* %11, i64 0, i64 0
%120 = getelementptr inbounds [20 x i8], [20 x i8]* %12, i64 0, i64 0
%121 = call i32 (i8*, i8*, i8*, i8*, ...) @sscanf(i8* %117, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.14, i64 0, i64 0), i8* %118, i8* %119, i8* %120)
%122 = getelementptr inbounds [20 x i8], [20 x i8]* %12, i64 0, i64 0
%123 = getelementptr inbounds [10 x i8], [10 x i8]* %13, i64 0, i64 0
%124 = getelementptr inbounds [10 x i8], [10 x i8]* %14, i64 0, i64 0
%125 = call i32 (i8*, i8*, i8*, i8*, ...) @sscanf(i8* %122, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.15, i64 0, i64 0), i8* %123, i8* %124)
store i32 0, i32* %30
br label %126
126: ; preds = %143, %116
%127 = load i32, i32* %30
%128 = icmp slt i32 %127, 3
br i1 %128, label %129, label %146
129: ; preds = %126
%130 = getelementptr inbounds [40 x i8], [40 x i8]* %11, i64 0, i64 0
%131 = load i32, i32* %30
%132 = sext i32 %131 to i64
%133 = getelementptr inbounds [3 x [40 x i8]], [3 x [40 x i8]]* %22, i64 0, i64 %132
%134 = getelementptr inbounds [40 x i8], [40 x i8]* %133, i64 0, i64 0
%135 = call i64 @strcmp(i8* %130, i8* %134)
%136 = icmp eq i64 %135, 0
br i1 %136, label %137, label %142
137: ; preds = %129
%138 = load i32, i32* %30
%139 = sext i32 %138 to i64
%140 = getelementptr inbounds [3 x [40 x i8]], [3 x [40 x i8]]* %21, i64 0, i64 %139
%141 = getelementptr inbounds [40 x i8], [40 x i8]* %140, i64 0, i64 0
store i8* %141, i8** %28
br label %146
142: ; preds = %129
br label %143
143: ; preds = %142
%144 = load i32, i32* %30
%145 = add nsw i32 %144, 1
store i32 %145, i32* %30
br label %126
146: ; preds = %137, %126
%147 = getelementptr inbounds [256 x i8], [256 x i8]* %15, i64 0, i64 0
%148 = load i32, i32* %29
%149 = icmp ne i32 %148, 0
%150 = zext i1 %149 to i64
%151 = select i1 %149, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.18, i64 0, i64 0)
%152 = load i8*, i8** %26
%153 = load i8*, i8** %23
%154 = load i8*, i8** %24
%155 = load i8*, i8** %28
%156 = getelementptr inbounds [10 x i8], [10 x i8]* %13, i64 0, i64 0
%157 = getelementptr inbounds [10 x i8], [10 x i8]* %14, i64 0, i64 0
%158 = load i32, i32* %29
%159 = icmp ne i32 %158, 0
br i1 %159, label %160, label %161
160: ; preds = %146
br label %163
161: ; preds = %146
%162 = getelementptr inbounds [50 x i8], [50 x i8]* %17, i64 0, i64 0
br label %163
163: ; preds = %161, %160
%164 = phi i8* [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str.18, i64 0, i64 0), %160 ], [ %162, %161 ]
%165 = call i32 (i8*, i8*, ...) @sprintf(i8* %147, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.16, i64 0, i64 0), i8* %151, i8* %152, i8* %153, i8* %154, i8* %155, i8* %156, i8* %157, i8* %164)
%166 = getelementptr inbounds [16384 x i8], [16384 x i8]* %7, i64 0, i64 0
%167 = getelementptr inbounds [256 x i8], [256 x i8]* %15, i64 0, i64 0
%168 = call i32 @strcat(i8* %166, i8* %167)
%169 = getelementptr inbounds [16384 x i8], [16384 x i8]* %7, i64 0, i64 0
%170 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.19, i64 0, i64 0), i8* %169)
%171 = getelementptr inbounds [256 x i8], [256 x i8]* %15, i64 0, i64 0
%172 = call i32 @system(i8* %171)
%173 = getelementptr inbounds [50 x i8], [50 x i8]* %17, i64 0, i64 0
%174 = getelementptr inbounds [50 x i8], [50 x i8]* %16, i64 0, i64 0
%175 = call i32 @strcpy(i8* %173, i8* %174)
%176 = getelementptr inbounds [50 x i8], [50 x i8]* %16, i64 0, i64 0
%177 = load i32, i32* %29
%178 = add nsw i32 %177, 1
store i32 %178, i32* %29
%179 = call i32 (...) @getpid()
%180 = call i32 (i8*, i8*, ...) @sprintf(i8* %176, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.8, i64 0, i64 0), i32 %178, i32 %179)
br label %91
181: ; preds = %103, %91
%182 = load i32*, i32** %8
%183 = call i32 @fclose(i32* %182)
%184 = getelementptr inbounds [256 x i8], [256 x i8]* %15, i64 0, i64 0
%185 = load i8*, i8** %27
%186 = getelementptr inbounds [50 x i8], [50 x i8]* %17, i64 0, i64 0
%187 = load i8*, i8** %23
%188 = getelementptr inbounds [256 x i8], [256 x i8]* %19, i64 0, i64 0
%189 = call i32 (i8*, i8*, ...) @sprintf(i8* %184, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.20, i64 0, i64 0), i8* %185, i8* %186, i8* %187, i8* %188)
%190 = getelementptr inbounds [16384 x i8], [16384 x i8]* %7, i64 0, i64 0
%191 = getelementptr inbounds [256 x i8], [256 x i8]* %15, i64 0, i64 0
%192 = call i32 @strcat(i8* %190, i8* %191)
%193 = getelementptr inbounds [256 x i8], [256 x i8]* %15, i64 0, i64 0
%194 = call i32 @system(i8* %193)
%195 = getelementptr inbounds [16384 x i8], [16384 x i8]* %7, i64 0, i64 0
%196 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.21, i64 0, i64 0), i8* %195)
br label %205
197: ; preds = %46
%198 = load i32, i32* @stderr
%199 = load i8**, i8*** %5
%200 = getelementptr inbounds i8*, i8** %199, i64 0
%201 = load i8*, i8** %200
%202 = load i8*, i8** %6
%203 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %198, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.22, i64 0, i64 0), i8* %201, i8* %202)
%204 = call i32 @exit(i32 1)
unreachable
205: ; preds = %181
%206 = load i32, i32* %3
ret i32 %206
}

LLVM IR (-O2):
@.str = [12 x i8] c"/www/htdocs\00"
@.str.1 = [9 x i8] c"/status/\00"
@.str.3 = [9 x i8] c"pnmpaste\00"
@.str.4 = [9 x i8] c"ppmtogif\00"
@stderr = global i32 0
@.str.5 = [29 x i8] c"%s: no mapping file to use.\0A\00"
@.str.6 = [19 x i8] c"Using map file %s\0A\00"
@.str.7 = [2 x i8] c"r\00"
@.str.8 = [25 x i8] c"/tmp/status-temp%d%d.ppm\00"
@.str.9 = [17 x i8] c"%sstatus-map.gif\00"
@.str.10 = [3 x i8] c"%s\00"
@.str.11 = [5 x i8] c"%s%s\00"
@.str.12 = [27 x i8] c"Source image file is '%s'\0A\00"
@.str.13 = [6 x i8] c"%s %s\00"
@.str.14 = [9 x i8] c"%s %s %s\00"
@.str.15 = [18 x i8] c"(%[^(),], %[^(),]\00"
@.str.16 = [22 x i8] c"%s%s %s%s%s %s %s %s \00"
@.str.17 = [3 x i8] c"| \00"
@.str.18 = [1 x i8] zeroinitializer
@.str.19 = [5 x i8] c"%s\0A\0A\00"
@.str.20 = [16 x i8] c" | %s %s > %s%s\00"
@.str.21 = [5 x i8] c"\0A%s\0A\00"
@.str.22 = [36 x i8] c"%s: Unable to read mapping file %s\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [16384 x i8]
%4 = alloca [80 x i8]
%5 = alloca [40 x i8]
%6 = alloca [40 x i8]
%7 = alloca [20 x i8]
%8 = alloca [10 x i8]
%9 = alloca [10 x i8]
%10 = alloca [256 x i8]
%11 = alloca [50 x i8]
%12 = alloca [50 x i8]
%13 = alloca [256 x i8]
%14 = alloca [256 x i8]
%15 = alloca [40 x i8]
%16 = alloca [3 x [40 x i8]]
%17 = alloca [3 x [40 x i8]]
%18 = getelementptr inbounds [16384 x i8], [16384 x i8]* %3, i64 0, i64 0
%19 = getelementptr inbounds [80 x i8], [80 x i8]* %4, i64 0, i64 0
%20 = getelementptr inbounds [40 x i8], [40 x i8]* %5, i64 0, i64 0
%21 = getelementptr inbounds [40 x i8], [40 x i8]* %6, i64 0, i64 0
%22 = getelementptr inbounds [20 x i8], [20 x i8]* %7, i64 0, i64 0
%23 = getelementptr inbounds [10 x i8], [10 x i8]* %8, i64 0, i64 0
%24 = getelementptr inbounds [10 x i8], [10 x i8]* %9, i64 0, i64 0
%25 = getelementptr inbounds [256 x i8], [256 x i8]* %10, i64 0, i64 0
%26 = getelementptr inbounds [50 x i8], [50 x i8]* %11, i64 0, i64 0
%27 = getelementptr inbounds [50 x i8], [50 x i8]* %12, i64 0, i64 0
%28 = getelementptr inbounds [256 x i8], [256 x i8]* %13, i64 0, i64 0
%29 = getelementptr inbounds [256 x i8], [256 x i8]* %14, i64 0, i64 0
%30 = getelementptr inbounds [40 x i8], [40 x i8]* %15, i64 0, i64 0
%31 = getelementptr inbounds [3 x [40 x i8]], [3 x [40 x i8]]* %16, i64 0, i64 0, i64 0
%32 = getelementptr inbounds [3 x [40 x i8]], [3 x [40 x i8]]* %17, i64 0, i64 0, i64 0
%33 = call i32 @bzero(i8* %18, i32 16383)
%34 = icmp slt i32 %0, 2
br i1 %34, label %35, label %40
35: ; preds = %2
%36 = load i32, i32* @stderr
%37 = load i8*, i8** %1
%38 = tail call i32 (i32, i8*, i8*, ...) @fprintf(i32 %36, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.5, i64 0, i64 0), i8* %37)
%39 = tail call i32 @exit(i32 1)
unreachable
40: ; preds = %2
%41 = getelementptr inbounds i8*, i8** %1, i64 1
%42 = load i8*, i8** %41
%43 = tail call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0), i8* %42)
%44 = tail call i32* @fopen(i8* %42, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%45 = icmp eq i32* %44, null
br i1 %45, label %110, label %46
46: ; preds = %40
%47 = tail call i32 (...) @getpid()
%48 = call i32 (i8*, i8*, ...) @sprintf(i8* %26, i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.8, i64 0, i64 0), i32 0, i32 %47)
%49 = call i32 (i8*, i8*, ...) @sprintf(i8* %29, i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%50 = call i32 (i32*, i8*, i8*, ...) @fscanf(i32* %44, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), i8* %30)
%51 = call i32 (i8*, i8*, ...) @sprintf(i8* %28, i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* %30)
%52 = call i32 @strcpy(i8* %27, i8* %28)
%53 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.12, i64 0, i64 0), i8* %30)
%54 = call i32 (i32*, i8*, i8*, ...) @fscanf(i32* %44, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0), i8* %31, i8* %32)
%55 = getelementptr inbounds [3 x [40 x i8]], [3 x [40 x i8]]* %16, i64 0, i64 1, i64 0
%56 = getelementptr inbounds [3 x [40 x i8]], [3 x [40 x i8]]* %17, i64 0, i64 1, i64 0
%57 = call i32 (i32*, i8*, i8*, ...) @fscanf(i32* %44, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0), i8* %55, i8* %56)
%58 = getelementptr inbounds [3 x [40 x i8]], [3 x [40 x i8]]* %16, i64 0, i64 2, i64 0
%59 = getelementptr inbounds [3 x [40 x i8]], [3 x [40 x i8]]* %17, i64 0, i64 2, i64 0
%60 = call i32 (i32*, i8*, i8*, ...) @fscanf(i32* %44, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0), i8* %58, i8* %59)
%61 = call i64 @feof(i32* %44)
%62 = icmp eq i64 %61, 0
br i1 %62, label %101, label %104
63: ; preds = %101, %69
%64 = call i32 @fgets(i8* %19, i32 80, i32* %44)
%65 = call i64 @feof(i32* %44)
%66 = icmp eq i64 %65, 0
br i1 %66, label %67, label %104
67: ; preds = %63
%68 = load i8, i8* %19
switch i8 %68, label %72 [
i8 35, label %69
i8 10, label %69
]
69: ; preds = %67, %67
%70 = call i64 @feof(i32* %44)
%71 = icmp eq i64 %70, 0
br i1 %71, label %63, label %104
72: ; preds = %67
%73 = call i32 (i8*, i8*, i8*, i8*, ...) @sscanf(i8* %19, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.14, i64 0, i64 0), i8* %20, i8* %21, i8* %22)
%74 = call i32 (i8*, i8*, i8*, i8*, ...) @sscanf(i8* %22, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.15, i64 0, i64 0), i8* %23, i8* %24)
%75 = call i64 @strcmp(i8* %21, i8* %32)
%76 = icmp eq i64 %75, 0
br i1 %76, label %77, label %80
77: ; preds = %83, %80, %72
%78 = phi i64 [ 0, %72 ], [ 1, %80 ], [ 2, %83 ]
%79 = getelementptr inbounds [3 x [40 x i8]], [3 x [40 x i8]]* %16, i64 0, i64 %78, i64 0
br label %86
80: ; preds = %72
%81 = call i64 @strcmp(i8* %21, i8* %56)
%82 = icmp eq i64 %81, 0
br i1 %82, label %77, label %83
83: ; preds = %80
%84 = call i64 @strcmp(i8* %21, i8* %59)
%85 = icmp eq i64 %84, 0
br i1 %85, label %77, label %86
86: ; preds = %83, %77
%87 = phi i8* [ %79, %77 ], [ %103, %83 ]
%88 = icmp eq i32 %102, 0
%89 = select i1 %88, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.17, i64 0, i64 0)
%90 = select i1 %88, i8* %27, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.18, i64 0, i64 0)
%91 = call i32 (i8*, i8*, ...) @sprintf(i8* %25, i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.16, i64 0, i64 0), i8* %89, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8* %87, i8* %23, i8* %24, i8* %90)
%92 = call i32 @strcat(i8* %18, i8* %25)
%93 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.19, i64 0, i64 0), i8* %18)
%94 = call i32 @system(i8* %25)
%95 = call i32 @strcpy(i8* %27, i8* %26)
%96 = add nuw nsw i32 %102, 1
%97 = call i32 (...) @getpid()
%98 = call i32 (i8*, i8*, ...) @sprintf(i8* %26, i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.8, i64 0, i64 0), i32 %96, i32 %97)
%99 = call i64 @feof(i32* %44)
%100 = icmp eq i64 %99, 0
br i1 %100, label %101, label %104
101: ; preds = %46, %86
%102 = phi i32 [ %96, %86 ], [ 0, %46 ]
%103 = phi i8* [ %87, %86 ], [ undef, %46 ]
br label %63
104: ; preds = %86, %69, %63, %46
%105 = call i32 @fclose(i32* %44)
%106 = call i32 (i8*, i8*, ...) @sprintf(i8* %25, i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.20, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i8* %27, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* %29)
%107 = call i32 @strcat(i8* %18, i8* %25)
%108 = call i32 @system(i8* %25)
%109 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.21, i64 0, i64 0), i8* %18)
ret i32 0
110: ; preds = %40
%111 = load i32, i32* @stderr
%112 = load i8*, i8** %1
%113 = tail call i32 (i32, i8*, i8*, ...) @fprintf(i32 %111, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.22, i64 0, i64 0), i8* %112, i8* %42)
%114 = tail call i32 @exit(i32 1)
unreachable
}