#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*/ fclose(int /*<<< orphan*/ *);
scalar_t__ fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ *stderr;
int /*<<< orphan*/ strcat(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
int main(int __attribute__((unused)) argc, char **argv) {
  int cnt = 0, total_item = 0, total_data = 0;
  FILE *psource = NULL;
  FILE *phiaddr = NULL;
  FILE *ploaddr = NULL;
  FILE *pdata = NULL;
  FILE *pnum = NULL;
  char buffer[220], filename[220];
  strcpy(filename, argv[1]);
  strcat(filename, ".hi");
  phiaddr = fopen(filename, "w");
  if (phiaddr == NULL) {
    fprintf(stderr, "open phiaddr file fail!\n");
    return -1;
  } else
    fprintf(stderr, "open phiaddr file :%s\n", filename);
  strcpy(filename, argv[1]);
  strcat(filename, ".lo");
  ploaddr = fopen(filename, "w");
  if (ploaddr == NULL) {
    fprintf(stderr, "open ploaddr file fail!\n");
    return -1;
  } else
    fprintf(stderr, "open ploaddr file :%s\n", filename);
  strcpy(filename, argv[1]);
  strcat(filename, ".data");
  pdata = fopen(filename, "w");
  if (pdata == NULL) {
    fprintf(stderr, "open pdata file fail!\n");
    return -1;
  } else
    fprintf(stderr, "open pdata file :%s\n", filename);
  strcpy(filename, argv[1]);
  strcat(filename, ".num");
  pnum = fopen(filename, "w");
  if (pdata == NULL) {
    fprintf(stderr, "open pnum file fail!\n");
    return -1;
  } else
    fprintf(stderr, "open pnua file :%s\n", filename);
  strcpy(filename, argv[1]);
  strcat(filename, ".txt");
  psource = fopen(filename, "r");
  if (psource == NULL) {
    fprintf(stderr, "open psource file fail!\n");
    return -1;
  } else
    fprintf(stderr, "open psource file :%s\n", filename);
  while (fgets(buffer, 200, psource)) {
    printf("---%s", buffer);
    total_item++;
    printf("phiaddr=0x%c%c  ", buffer[7], buffer[8]);
    fprintf(phiaddr, "0x%c%c, ", buffer[7], buffer[8]);
    printf("ploaddr=0x%c%c  ", buffer[9], buffer[10]);
    fprintf(ploaddr, "0x%c%c, ", buffer[9], buffer[10]);
    if (buffer[17] == 0x20) {
      total_data += 1;
      printf("pdata=0x%c%c  ", buffer[15], buffer[16]);
      fprintf(pdata, "0x%c%c, ", buffer[15], buffer[16]);
      printf("pnum=0x%c%c  ", '0', '1');
      fprintf(pnum, "0x%c%c, ", '0', '1');
    } else {
      total_data += 2;
      printf("pdata=0x%c%c  ", buffer[15], buffer[16]);
      fprintf(pdata, "0x%c%c, ", buffer[15], buffer[16]);
      printf("pdata=0x%c%c  ", buffer[17], buffer[18]);
      fprintf(pdata, "0x%c%c, ", buffer[17], buffer[18]);
      printf("pnum=0x%c%c  ", '0', '2');
      fprintf(pnum, "0x%c%c, ", '0', '2');
    }
    printf("\n");
    if ((total_data % 10) == 0)
      fprintf(pdata, "\n");
    cnt++;
    if (cnt == 10) {
      fprintf(phiaddr, "\n");
      fprintf(ploaddr, "\n");
      fprintf(pnum, "\n");
      cnt = 0;
    }
  }
  printf("total item : %d\n", total_item);
  printf("total data : %d\n", total_data);
  fclose(phiaddr);
  fclose(ploaddr);
  fclose(pdata);
  fclose(pnum);
  fclose(psource);
  return 1;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x210,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
movq   $0x0,-0x28(%rbp)
movq   $0x0,-0x30(%rbp)
movq   $0x0,-0x38(%rbp)
movq   $0x0,-0x40(%rbp)
movq   $0x0,-0x48(%rbp)
lea    -0x210(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
call   1030 <strcpy@plt>
lea    -0x210(%rbp),%rdi
lea    0xe18(%rip),%rsi
call   1090 <strcat@plt>
lea    -0x210(%rbp),%rdi
lea    0xe09(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x30(%rbp)
cmpq   $0x0,-0x30(%rbp)
jne    1233 <main+0xc3>
mov    0x2dca(%rip),%rax
mov    (%rax),%rdi
lea    0xde6(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    175e <main+0x5ee>
mov    0x2da6(%rip),%rax
mov    (%rax),%rdi
lea    -0x210(%rbp),%rdx
lea    0xdd4(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
lea    -0x210(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
call   1030 <strcpy@plt>
lea    -0x210(%rbp),%rdi
lea    0xdc2(%rip),%rsi
call   1090 <strcat@plt>
lea    -0x210(%rbp),%rdi
lea    0xd7d(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x38(%rbp)
cmpq   $0x0,-0x38(%rbp)
jne    12bf <main+0x14f>
mov    0x2d3e(%rip),%rax
mov    (%rax),%rdi
lea    0xd8e(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    175e <main+0x5ee>
mov    0x2d1a(%rip),%rax
mov    (%rax),%rdi
lea    -0x210(%rbp),%rdx
lea    0xd7c(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
lea    -0x210(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
call   1030 <strcpy@plt>
lea    -0x210(%rbp),%rdi
lea    0xd6a(%rip),%rsi
call   1090 <strcat@plt>
lea    -0x210(%rbp),%rdi
lea    0xcf1(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x40(%rbp)
cmpq   $0x0,-0x40(%rbp)
jne    134b <main+0x1db>
mov    0x2cb2(%rip),%rax
mov    (%rax),%rdi
lea    0xd38(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    175e <main+0x5ee>
mov    0x2c8e(%rip),%rax
mov    (%rax),%rdi
lea    -0x210(%rbp),%rdx
lea    0xd24(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
lea    -0x210(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
call   1030 <strcpy@plt>
lea    -0x210(%rbp),%rdi
lea    0xd10(%rip),%rsi
call   1090 <strcat@plt>
lea    -0x210(%rbp),%rdi
lea    0xc65(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x48(%rbp)
cmpq   $0x0,-0x40(%rbp)
jne    13d7 <main+0x267>
mov    0x2c26(%rip),%rax
mov    (%rax),%rdi
lea    0xcdd(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    175e <main+0x5ee>
mov    0x2c02(%rip),%rax
mov    (%rax),%rdi
lea    -0x210(%rbp),%rdx
lea    0xcc8(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
lea    -0x210(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
call   1030 <strcpy@plt>
lea    -0x210(%rbp),%rdi
lea    0xcb3(%rip),%rsi
call   1090 <strcat@plt>
lea    -0x210(%rbp),%rdi
lea    0xca5(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x28(%rbp)
jne    1463 <main+0x2f3>
mov    0x2b9a(%rip),%rax
mov    (%rax),%rdi
lea    0xc82(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    175e <main+0x5ee>
mov    0x2b76(%rip),%rax
mov    (%rax),%rdi
lea    -0x210(%rbp),%rdx
lea    0xc70(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
jmp    1487 <main+0x317>
lea    -0x130(%rbp),%rdi
mov    -0x28(%rbp),%rdx
mov    $0xc8,%esi
call   1060 <fgets@plt>
cmp    $0x0,%rax
je     1708 <main+0x598>
lea    -0x130(%rbp),%rsi
lea    0xc4e(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
movsbl -0x129(%rbp),%esi
movsbl -0x128(%rbp),%edx
lea    0xc2f(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x30(%rbp),%rdi
movsbl -0x129(%rbp),%edx
movsbl -0x128(%rbp),%ecx
lea    0xc20(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
movsbl -0x127(%rbp),%esi
movsbl -0x126(%rbp),%edx
lea    0xc0d(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x38(%rbp),%rdi
movsbl -0x127(%rbp),%edx
movsbl -0x126(%rbp),%ecx
lea    0xbe4(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
movsbl -0x11f(%rbp),%eax
cmp    $0x20,%eax
jne    15ca <main+0x45a>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
movsbl -0x121(%rbp),%esi
movsbl -0x120(%rbp),%edx
lea    0xbc9(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x40(%rbp),%rdi
movsbl -0x121(%rbp),%edx
movsbl -0x120(%rbp),%ecx
lea    0xb8f(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
lea    0xbaa(%rip),%rdi
mov    $0x30,%esi
mov    $0x31,%edx
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x48(%rbp),%rdi
lea    0xb65(%rip),%rsi
mov    $0x30,%edx
mov    $0x31,%ecx
mov    $0x0,%al
call   1070 <fprintf@plt>
jmp    167f <main+0x50f>
mov    -0x1c(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x1c(%rbp)
movsbl -0x121(%rbp),%esi
movsbl -0x120(%rbp),%edx
lea    0xb4b(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x40(%rbp),%rdi
movsbl -0x121(%rbp),%edx
movsbl -0x120(%rbp),%ecx
lea    0xb11(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
movsbl -0x11f(%rbp),%esi
movsbl -0x11e(%rbp),%edx
lea    0xb0f(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x40(%rbp),%rdi
movsbl -0x11f(%rbp),%edx
movsbl -0x11e(%rbp),%ecx
lea    0xad5(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
lea    0xaf0(%rip),%rdi
mov    $0x30,%esi
mov    $0x32,%edx
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x48(%rbp),%rdi
lea    0xaab(%rip),%rsi
mov    $0x30,%edx
mov    $0x32,%ecx
mov    $0x0,%al
call   1070 <fprintf@plt>
lea    0x9ff(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x1c(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    16b3 <main+0x543>
mov    -0x40(%rbp),%rdi
lea    0x9d9(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
cmpl   $0xa,-0x14(%rbp)
jne    1703 <main+0x593>
mov    -0x30(%rbp),%rdi
lea    0x9b4(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x38(%rbp),%rdi
lea    0x9a2(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x48(%rbp),%rdi
lea    0x990(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
movl   $0x0,-0x14(%rbp)
jmp    1487 <main+0x317>
mov    -0x18(%rbp),%esi
lea    0xa3e(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x1c(%rbp),%esi
lea    0xa3e(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x30(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x38(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x40(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x48(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x28(%rbp),%rdi
call   1040 <fclose@plt>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x210,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x1f8,%rsp
mov    %rsi,%rbx
mov    0x8(%rsi),%rsi
lea    0x110(%rsp),%rbp
mov    %rbp,%rdi
call   1040 <strcpy@plt>
lea    0xe31(%rip),%rsi
mov    %rbp,%rdi
call   10b0 <strcat@plt>
lea    0xe26(%rip),%rsi
mov    %rbp,%rdi
call   10a0 <fopen@plt>
mov    0x2df3(%rip),%r15
mov    (%r15),%rcx
mov    %rax,0x20(%rsp)
test   %rax,%rax
je     15a5 <main+0x405>
lea    0xe1a(%rip),%rsi
lea    0x110(%rsp),%rbp
mov    %rcx,%rdi
mov    %rbp,%rdx
xor    %eax,%eax
call   1090 <fprintf@plt>
mov    0x8(%rbx),%rsi
mov    %rbp,%rdi
call   1040 <strcpy@plt>
lea    0xe09(%rip),%rsi
mov    %rbp,%rdi
call   10b0 <strcat@plt>
lea    0xdc8(%rip),%rsi
mov    %rbp,%rdi
call   10a0 <fopen@plt>
mov    (%r15),%rcx
mov    %rax,0x18(%rsp)
test   %rax,%rax
je     15ae <main+0x40e>
lea    0xdf7(%rip),%rsi
lea    0x110(%rsp),%rbp
mov    %rcx,%rdi
mov    %rbp,%rdx
xor    %eax,%eax
call   1090 <fprintf@plt>
mov    0x8(%rbx),%rsi
mov    %rbp,%rdi
call   1040 <strcpy@plt>
lea    0xde6(%rip),%rsi
mov    %rbp,%rdi
call   10b0 <strcat@plt>
lea    0xd71(%rip),%rsi
mov    %rbp,%rdi
call   10a0 <fopen@plt>
mov    (%r15),%rcx
test   %rax,%rax
je     1610 <main+0x470>
mov    %rax,%rbp
lea    0xdd6(%rip),%rsi
xor    %r14d,%r14d
lea    0x110(%rsp),%r12
mov    %rcx,%rdi
mov    %r12,%rdx
xor    %eax,%eax
call   1090 <fprintf@plt>
mov    0x8(%rbx),%rsi
mov    %r12,%rdi
call   1040 <strcpy@plt>
lea    0xdc0(%rip),%rsi
mov    %r12,%rdi
call   10b0 <strcat@plt>
lea    0xd19(%rip),%rsi
mov    %r12,%rdi
call   10a0 <fopen@plt>
mov    %rax,0x10(%rsp)
mov    (%r15),%rdi
lea    0xd9f(%rip),%rsi
mov    %r12,%rdx
xor    %eax,%eax
call   1090 <fprintf@plt>
mov    0x8(%rbx),%rsi
mov    %r12,%rdi
call   1040 <strcpy@plt>
lea    0xd96(%rip),%rsi
mov    %r12,%rdi
call   10b0 <strcat@plt>
lea    0xd8c(%rip),%rsi
mov    %r12,%rdi
call   10a0 <fopen@plt>
mov    (%r15),%rcx
test   %rax,%rax
je     161e <main+0x47e>
mov    %rax,%rbx
mov    %rbp,0x8(%rsp)
lea    0xd84(%rip),%rsi
lea    0x110(%rsp),%rdx
mov    %rcx,%rdi
xor    %eax,%eax
call   1090 <fprintf@plt>
lea    0x30(%rsp),%rdi
mov    $0xc8,%esi
mov    %rbx,%rdx
call   1080 <fgets@plt>
mov    $0x0,%r13d
test   %rax,%rax
je     15b7 <main+0x417>
lea    0x30(%rsp),%rbp
xor    %r13d,%r13d
xor    %r14d,%r14d
xor    %r15d,%r15d
mov    %rbx,0x28(%rsp)
jmp    13d5 <main+0x235>
nopl   0x0(%rax)
add    $0x1,%r15d
cmp    $0xa,%r15d
mov    0x28(%rsp),%rbx
lea    0x30(%rsp),%rbp
je     1570 <main+0x3d0>
mov    %rbp,%rdi
mov    $0xc8,%esi
mov    %rbx,%rdx
call   1080 <fgets@plt>
add    $0x1,%r14d
test   %rax,%rax
je     15b7 <main+0x417>
lea    0xd10(%rip),%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
movsbl 0x37(%rsp),%esi
movsbl 0x38(%rsp),%edx
lea    0xcfb(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movsbl 0x37(%rsp),%edx
movsbl 0x38(%rsp),%ecx
mov    0x20(%rsp),%rdi
lea    0xcef(%rip),%rbp
mov    %rbp,%rsi
xor    %eax,%eax
call   1090 <fprintf@plt>
movsbl 0x39(%rsp),%esi
movsbl 0x3a(%rsp),%edx
lea    0xcdd(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movsbl 0x39(%rsp),%edx
movsbl 0x3a(%rsp),%ecx
mov    0x18(%rsp),%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1090 <fprintf@plt>
cmpb   $0x20,0x41(%rsp)
jne    1490 <main+0x2f0>
add    $0x1,%r13d
movsbl 0x3f(%rsp),%esi
movsbl 0x40(%rsp),%edx
lea    0xcb2(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x3f(%rsp),%eax
movzbl 0x40(%rsp),%ecx
mov    $0x31,%ebx
mov    0x8(%rsp),%r12
jmp    14ee <main+0x34e>
nopl   0x0(%rax,%rax,1)
add    $0x2,%r13d
movsbl 0x3f(%rsp),%esi
movsbl 0x40(%rsp),%edx
lea    0xc78(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movsbl 0x3f(%rsp),%edx
movsbl 0x40(%rsp),%ecx
mov    0x8(%rsp),%r12
mov    %r12,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1090 <fprintf@plt>
movsbl 0x41(%rsp),%esi
movsbl 0x42(%rsp),%edx
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl 0x41(%rsp),%eax
movzbl 0x42(%rsp),%ecx
mov    $0x32,%ebx
movsbl %al,%edx
movsbl %cl,%ecx
mov    %r12,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1090 <fprintf@plt>
lea    0xc24(%rip),%rdi
mov    $0x30,%esi
mov    %ebx,%edx
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x10(%rsp),%rdi
mov    %rbp,%rsi
mov    $0x30,%edx
mov    %ebx,%ecx
xor    %eax,%eax
call   1090 <fprintf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
imul   $0xcccccccd,%r13d,%eax
add    $0x19999998,%eax
ror    %eax
cmp    $0x19999998,%eax
ja     13a0 <main+0x200>
mov    $0xa,%edi
mov    0x8(%rsp),%rsi
call   1070 <fputc@plt>
jmp    13a0 <main+0x200>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    $0xa,%edi
mov    0x20(%rsp),%rsi
call   1070 <fputc@plt>
mov    $0xa,%edi
mov    0x18(%rsp),%rsi
call   1070 <fputc@plt>
mov    $0xa,%edi
mov    0x10(%rsp),%rsi
call   1070 <fputc@plt>
xor    %r15d,%r15d
jmp    13b8 <main+0x218>
lea    0xa5a(%rip),%rdi
jmp    1625 <main+0x485>
lea    0xa85(%rip),%rdi
jmp    1625 <main+0x485>
lea    0xb7c(%rip),%rdi
mov    %r14d,%esi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xb7c(%rip),%rdi
mov    %r13d,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x20(%rsp),%rdi
call   1050 <fclose@plt>
mov    0x18(%rsp),%rdi
call   1050 <fclose@plt>
mov    0x8(%rsp),%rdi
call   1050 <fclose@plt>
mov    0x10(%rsp),%rdi
call   1050 <fclose@plt>
mov    %rbx,%rdi
call   1050 <fclose@plt>
mov    $0x1,%eax
jmp    1639 <main+0x499>
lea    0xa59(%rip),%rdi
mov    $0x16,%esi
jmp    162a <main+0x48a>
lea    0xa97(%rip),%rdi
mov    $0x18,%esi
mov    $0x1,%edx
call   10c0 <fwrite@plt>
mov    $0xffffffff,%eax
add    $0x1f8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [4 x i8] c".hi\00"
@.str.1 = [2 x i8] c"w\00"
@stderr = global i32* null
@.str.2 = [25 x i8] c"open phiaddr file fail!\0A\00"
@.str.3 = [23 x i8] c"open phiaddr file :%s\0A\00"
@.str.4 = [4 x i8] c".lo\00"
@.str.5 = [25 x i8] c"open ploaddr file fail!\0A\00"
@.str.6 = [23 x i8] c"open ploaddr file :%s\0A\00"
@.str.7 = [6 x i8] c".data\00"
@.str.8 = [23 x i8] c"open pdata file fail!\0A\00"
@.str.9 = [21 x i8] c"open pdata file :%s\0A\00"
@.str.10 = [5 x i8] c".num\00"
@.str.11 = [22 x i8] c"open pnum file fail!\0A\00"
@.str.12 = [20 x i8] c"open pnua file :%s\0A\00"
@.str.13 = [5 x i8] c".txt\00"
@.str.14 = [2 x i8] c"r\00"
@.str.15 = [25 x i8] c"open psource file fail!\0A\00"
@.str.16 = [23 x i8] c"open psource file :%s\0A\00"
@.str.17 = [6 x i8] c"---%s\00"
@.str.18 = [17 x i8] c"phiaddr=0x%c%c \00"
@.str.19 = [9 x i8] c"0x%c%c, \00"
@.str.20 = [17 x i8] c"ploaddr=0x%c%c \00"
@.str.21 = [15 x i8] c"pdata=0x%c%c \00"
@.str.22 = [14 x i8] c"pnum=0x%c%c \00"
@.str.23 = [2 x i8] c"\0A\00"
@.str.24 = [17 x i8] c"total item : %d\0A\00"
@.str.25 = [17 x i8] c"total data : %d\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32*
%10 = alloca i32*
%11 = alloca i32*
%12 = alloca i32*
%13 = alloca i32*
%14 = alloca [220 x i8]
%15 = alloca [220 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
store i32 0, i32* %7
store i32 0, i32* %8
store i32* null, i32** %9
store i32* null, i32** %10
store i32* null, i32** %11
store i32* null, i32** %12
store i32* null, i32** %13
%16 = getelementptr inbounds [220 x i8], [220 x i8]* %15, i64 0, i64 0
%17 = load i8**, i8*** %5
%18 = getelementptr inbounds i8*, i8** %17, i64 1
%19 = load i8*, i8** %18
%20 = call i32 @strcpy(i8* %16, i8* %19)
%21 = getelementptr inbounds [220 x i8], [220 x i8]* %15, i64 0, i64 0
%22 = call i32 @strcat(i8* %21, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%23 = getelementptr inbounds [220 x i8], [220 x i8]* %15, i64 0, i64 0
%24 = call i32* @fopen(i8* %23, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %24, i32** %10
%25 = load i32*, i32** %10
%26 = icmp eq i32* %25, null
br i1 %26, label %27, label %30
27: ; preds = %2
%28 = load i32*, i32** @stderr
%29 = call i32 (i32*, i8*, ...) @fprintf(i32* %28, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0))
store i32 -1, i32* %3
br label %248
30: ; preds = %2
%31 = load i32*, i32** @stderr
%32 = getelementptr inbounds [220 x i8], [220 x i8]* %15, i64 0, i64 0
%33 = call i32 (i32*, i8*, ...) @fprintf(i32* %31, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0), i8* %32)
br label %34
34: ; preds = %30
%35 = getelementptr inbounds [220 x i8], [220 x i8]* %15, i64 0, i64 0
%36 = load i8**, i8*** %5
%37 = getelementptr inbounds i8*, i8** %36, i64 1
%38 = load i8*, i8** %37
%39 = call i32 @strcpy(i8* %35, i8* %38)
%40 = getelementptr inbounds [220 x i8], [220 x i8]* %15, i64 0, i64 0
%41 = call i32 @strcat(i8* %40, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%42 = getelementptr inbounds [220 x i8], [220 x i8]* %15, i64 0, i64 0
%43 = call i32* @fopen(i8* %42, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %43, i32** %11
%44 = load i32*, i32** %11
%45 = icmp eq i32* %44, null
br i1 %45, label %46, label %49
46: ; preds = %34
%47 = load i32*, i32** @stderr
%48 = call i32 (i32*, i8*, ...) @fprintf(i32* %47, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0))
store i32 -1, i32* %3
br label %248
49: ; preds = %34
%50 = load i32*, i32** @stderr
%51 = getelementptr inbounds [220 x i8], [220 x i8]* %15, i64 0, i64 0
%52 = call i32 (i32*, i8*, ...) @fprintf(i32* %50, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0), i8* %51)
br label %53
53: ; preds = %49
%54 = getelementptr inbounds [220 x i8], [220 x i8]* %15, i64 0, i64 0
%55 = load i8**, i8*** %5
%56 = getelementptr inbounds i8*, i8** %55, i64 1
%57 = load i8*, i8** %56
%58 = call i32 @strcpy(i8* %54, i8* %57)
%59 = getelementptr inbounds [220 x i8], [220 x i8]* %15, i64 0, i64 0
%60 = call i32 @strcat(i8* %59, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
%61 = getelementptr inbounds [220 x i8], [220 x i8]* %15, i64 0, i64 0
%62 = call i32* @fopen(i8* %61, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %62, i32** %12
%63 = load i32*, i32** %12
%64 = icmp eq i32* %63, null
br i1 %64, label %65, label %68
65: ; preds = %53
%66 = load i32*, i32** @stderr
%67 = call i32 (i32*, i8*, ...) @fprintf(i32* %66, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.8, i64 0, i64 0))
store i32 -1, i32* %3
br label %248
68: ; preds = %53
%69 = load i32*, i32** @stderr
%70 = getelementptr inbounds [220 x i8], [220 x i8]* %15, i64 0, i64 0
%71 = call i32 (i32*, i8*, ...) @fprintf(i32* %69, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.9, i64 0, i64 0), i8* %70)
br label %72
72: ; preds = %68
%73 = getelementptr inbounds [220 x i8], [220 x i8]* %15, i64 0, i64 0
%74 = load i8**, i8*** %5
%75 = getelementptr inbounds i8*, i8** %74, i64 1
%76 = load i8*, i8** %75
%77 = call i32 @strcpy(i8* %73, i8* %76)
%78 = getelementptr inbounds [220 x i8], [220 x i8]* %15, i64 0, i64 0
%79 = call i32 @strcat(i8* %78, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
%80 = getelementptr inbounds [220 x i8], [220 x i8]* %15, i64 0, i64 0
%81 = call i32* @fopen(i8* %80, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %81, i32** %13
%82 = load i32*, i32** %12
%83 = icmp eq i32* %82, null
br i1 %83, label %84, label %87
84: ; preds = %72
%85 = load i32*, i32** @stderr
%86 = call i32 (i32*, i8*, ...) @fprintf(i32* %85, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.11, i64 0, i64 0))
store i32 -1, i32* %3
br label %248
87: ; preds = %72
%88 = load i32*, i32** @stderr
%89 = getelementptr inbounds [220 x i8], [220 x i8]* %15, i64 0, i64 0
%90 = call i32 (i32*, i8*, ...) @fprintf(i32* %88, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.12, i64 0, i64 0), i8* %89)
br label %91
91: ; preds = %87
%92 = getelementptr inbounds [220 x i8], [220 x i8]* %15, i64 0, i64 0
%93 = load i8**, i8*** %5
%94 = getelementptr inbounds i8*, i8** %93, i64 1
%95 = load i8*, i8** %94
%96 = call i32 @strcpy(i8* %92, i8* %95)
%97 = getelementptr inbounds [220 x i8], [220 x i8]* %15, i64 0, i64 0
%98 = call i32 @strcat(i8* %97, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0))
%99 = getelementptr inbounds [220 x i8], [220 x i8]* %15, i64 0, i64 0
%100 = call i32* @fopen(i8* %99, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i64 0, i64 0))
store i32* %100, i32** %9
%101 = load i32*, i32** %9
%102 = icmp eq i32* %101, null
br i1 %102, label %103, label %106
103: ; preds = %91
%104 = load i32*, i32** @stderr
%105 = call i32 (i32*, i8*, ...) @fprintf(i32* %104, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.15, i64 0, i64 0))
store i32 -1, i32* %3
br label %248
106: ; preds = %91
%107 = load i32*, i32** @stderr
%108 = getelementptr inbounds [220 x i8], [220 x i8]* %15, i64 0, i64 0
%109 = call i32 (i32*, i8*, ...) @fprintf(i32* %107, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.16, i64 0, i64 0), i8* %108)
br label %110
110: ; preds = %106
br label %111
111: ; preds = %232, %110
%112 = getelementptr inbounds [220 x i8], [220 x i8]* %14, i64 0, i64 0
%113 = load i32*, i32** %9
%114 = call i64 @fgets(i8* %112, i32 200, i32* %113)
%115 = icmp ne i64 %114, 0
br i1 %115, label %116, label %233
116: ; preds = %111
%117 = getelementptr inbounds [220 x i8], [220 x i8]* %14, i64 0, i64 0
%118 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.17, i64 0, i64 0), i8* %117)
%119 = load i32, i32* %7
%120 = add nsw i32 %119, 1
store i32 %120, i32* %7
%121 = getelementptr inbounds [220 x i8], [220 x i8]* %14, i64 0, i64 7
%122 = load i8, i8* %121
%123 = sext i8 %122 to i32
%124 = getelementptr inbounds [220 x i8], [220 x i8]* %14, i64 0, i64 8
%125 = load i8, i8* %124
%126 = sext i8 %125 to i32
%127 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.18, i64 0, i64 0), i32 %123, i32 %126)
%128 = load i32*, i32** %10
%129 = getelementptr inbounds [220 x i8], [220 x i8]* %14, i64 0, i64 7
%130 = load i8, i8* %129
%131 = sext i8 %130 to i32
%132 = getelementptr inbounds [220 x i8], [220 x i8]* %14, i64 0, i64 8
%133 = load i8, i8* %132
%134 = sext i8 %133 to i32
%135 = call i32 (i32*, i8*, ...) @fprintf(i32* %128, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.19, i64 0, i64 0), i32 %131, i32 %134)
%136 = getelementptr inbounds [220 x i8], [220 x i8]* %14, i64 0, i64 9
%137 = load i8, i8* %136
%138 = sext i8 %137 to i32
%139 = getelementptr inbounds [220 x i8], [220 x i8]* %14, i64 0, i64 10
%140 = load i8, i8* %139
%141 = sext i8 %140 to i32
%142 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.20, i64 0, i64 0), i32 %138, i32 %141)
%143 = load i32*, i32** %11
%144 = getelementptr inbounds [220 x i8], [220 x i8]* %14, i64 0, i64 9
%145 = load i8, i8* %144
%146 = sext i8 %145 to i32
%147 = getelementptr inbounds [220 x i8], [220 x i8]* %14, i64 0, i64 10
%148 = load i8, i8* %147
%149 = sext i8 %148 to i32
%150 = call i32 (i32*, i8*, ...) @fprintf(i32* %143, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.19, i64 0, i64 0), i32 %146, i32 %149)
%151 = getelementptr inbounds [220 x i8], [220 x i8]* %14, i64 0, i64 17
%152 = load i8, i8* %151
%153 = sext i8 %152 to i32
%154 = icmp eq i32 %153, 32
br i1 %154, label %155, label %176
155: ; preds = %116
%156 = load i32, i32* %8
%157 = add nsw i32 %156, 1
store i32 %157, i32* %8
%158 = getelementptr inbounds [220 x i8], [220 x i8]* %14, i64 0, i64 15
%159 = load i8, i8* %158
%160 = sext i8 %159 to i32
%161 = getelementptr inbounds [220 x i8], [220 x i8]* %14, i64 0, i64 16
%162 = load i8, i8* %161
%163 = sext i8 %162 to i32
%164 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.21, i64 0, i64 0), i32 %160, i32 %163)
%165 = load i32*, i32** %12
%166 = getelementptr inbounds [220 x i8], [220 x i8]* %14, i64 0, i64 15
%167 = load i8, i8* %166
%168 = sext i8 %167 to i32
%169 = getelementptr inbounds [220 x i8], [220 x i8]* %14, i64 0, i64 16
%170 = load i8, i8* %169
%171 = sext i8 %170 to i32
%172 = call i32 (i32*, i8*, ...) @fprintf(i32* %165, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.19, i64 0, i64 0), i32 %168, i32 %171)
%173 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.22, i64 0, i64 0), i32 48, i32 49)
%174 = load i32*, i32** %13
%175 = call i32 (i32*, i8*, ...) @fprintf(i32* %174, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.19, i64 0, i64 0), i32 48, i32 49)
br label %212
176: ; preds = %116
%177 = load i32, i32* %8
%178 = add nsw i32 %177, 2
store i32 %178, i32* %8
%179 = getelementptr inbounds [220 x i8], [220 x i8]* %14, i64 0, i64 15
%180 = load i8, i8* %179
%181 = sext i8 %180 to i32
%182 = getelementptr inbounds [220 x i8], [220 x i8]* %14, i64 0, i64 16
%183 = load i8, i8* %182
%184 = sext i8 %183 to i32
%185 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.21, i64 0, i64 0), i32 %181, i32 %184)
%186 = load i32*, i32** %12
%187 = getelementptr inbounds [220 x i8], [220 x i8]* %14, i64 0, i64 15
%188 = load i8, i8* %187
%189 = sext i8 %188 to i32
%190 = getelementptr inbounds [220 x i8], [220 x i8]* %14, i64 0, i64 16
%191 = load i8, i8* %190
%192 = sext i8 %191 to i32
%193 = call i32 (i32*, i8*, ...) @fprintf(i32* %186, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.19, i64 0, i64 0), i32 %189, i32 %192)
%194 = getelementptr inbounds [220 x i8], [220 x i8]* %14, i64 0, i64 17
%195 = load i8, i8* %194
%196 = sext i8 %195 to i32
%197 = getelementptr inbounds [220 x i8], [220 x i8]* %14, i64 0, i64 18
%198 = load i8, i8* %197
%199 = sext i8 %198 to i32
%200 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.21, i64 0, i64 0), i32 %196, i32 %199)
%201 = load i32*, i32** %12
%202 = getelementptr inbounds [220 x i8], [220 x i8]* %14, i64 0, i64 17
%203 = load i8, i8* %202
%204 = sext i8 %203 to i32
%205 = getelementptr inbounds [220 x i8], [220 x i8]* %14, i64 0, i64 18
%206 = load i8, i8* %205
%207 = sext i8 %206 to i32
%208 = call i32 (i32*, i8*, ...) @fprintf(i32* %201, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.19, i64 0, i64 0), i32 %204, i32 %207)
%209 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.22, i64 0, i64 0), i32 48, i32 50)
%210 = load i32*, i32** %13
%211 = call i32 (i32*, i8*, ...) @fprintf(i32* %210, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.19, i64 0, i64 0), i32 48, i32 50)
br label %212
212: ; preds = %176, %155
%213 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.23, i64 0, i64 0))
%214 = load i32, i32* %8
%215 = srem i32 %214, 10
%216 = icmp eq i32 %215, 0
br i1 %216, label %217, label %220
217: ; preds = %212
%218 = load i32*, i32** %12
%219 = call i32 (i32*, i8*, ...) @fprintf(i32* %218, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.23, i64 0, i64 0))
br label %220
220: ; preds = %217, %212
%221 = load i32, i32* %6
%222 = add nsw i32 %221, 1
store i32 %222, i32* %6
%223 = load i32, i32* %6
%224 = icmp eq i32 %223, 10
br i1 %224, label %225, label %232
225: ; preds = %220
%226 = load i32*, i32** %10
%227 = call i32 (i32*, i8*, ...) @fprintf(i32* %226, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.23, i64 0, i64 0))
%228 = load i32*, i32** %11
%229 = call i32 (i32*, i8*, ...) @fprintf(i32* %228, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.23, i64 0, i64 0))
%230 = load i32*, i32** %13
%231 = call i32 (i32*, i8*, ...) @fprintf(i32* %230, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.23, i64 0, i64 0))
store i32 0, i32* %6
br label %232
232: ; preds = %225, %220
br label %111
233: ; preds = %111
%234 = load i32, i32* %7
%235 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.24, i64 0, i64 0), i32 %234)
%236 = load i32, i32* %8
%237 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.25, i64 0, i64 0), i32 %236)
%238 = load i32*, i32** %10
%239 = call i32 @fclose(i32* %238)
%240 = load i32*, i32** %11
%241 = call i32 @fclose(i32* %240)
%242 = load i32*, i32** %12
%243 = call i32 @fclose(i32* %242)
%244 = load i32*, i32** %13
%245 = call i32 @fclose(i32* %244)
%246 = load i32*, i32** %9
%247 = call i32 @fclose(i32* %246)
store i32 1, i32* %3
br label %248
248: ; preds = %233, %103, %84, %65, %46, %27
%249 = load i32, i32* %3
ret i32 %249
}

LLVM IR (-O2):
@.str = [4 x i8] c".hi\00"
@.str.1 = [2 x i8] c"w\00"
@stderr = global i32* null
@.str.2 = [25 x i8] c"open phiaddr file fail!\0A\00"
@.str.3 = [23 x i8] c"open phiaddr file :%s\0A\00"
@.str.4 = [4 x i8] c".lo\00"
@.str.5 = [25 x i8] c"open ploaddr file fail!\0A\00"
@.str.6 = [23 x i8] c"open ploaddr file :%s\0A\00"
@.str.7 = [6 x i8] c".data\00"
@.str.8 = [23 x i8] c"open pdata file fail!\0A\00"
@.str.9 = [21 x i8] c"open pdata file :%s\0A\00"
@.str.10 = [5 x i8] c".num\00"
@.str.12 = [20 x i8] c"open pnua file :%s\0A\00"
@.str.13 = [5 x i8] c".txt\00"
@.str.14 = [2 x i8] c"r\00"
@.str.15 = [25 x i8] c"open psource file fail!\0A\00"
@.str.16 = [23 x i8] c"open psource file :%s\0A\00"
@.str.17 = [6 x i8] c"---%s\00"
@.str.18 = [17 x i8] c"phiaddr=0x%c%c \00"
@.str.19 = [9 x i8] c"0x%c%c, \00"
@.str.20 = [17 x i8] c"ploaddr=0x%c%c \00"
@.str.21 = [15 x i8] c"pdata=0x%c%c \00"
@.str.22 = [14 x i8] c"pnum=0x%c%c \00"
@.str.24 = [17 x i8] c"total item : %d\0A\00"
@.str.25 = [17 x i8] c"total data : %d\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [220 x i8]
%4 = alloca [220 x i8]
%5 = getelementptr inbounds [220 x i8], [220 x i8]* %3, i64 0, i64 0
%6 = getelementptr inbounds [220 x i8], [220 x i8]* %4, i64 0, i64 0
%7 = getelementptr inbounds i8*, i8** %1, i64 1
%8 = load i8*, i8** %7
%9 = call i32 @strcpy(i8* %6, i8* %8)
%10 = call i32 @strcat(i8* %6, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%11 = call i32* @fopen(i8* %6, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%12 = icmp eq i32* %11, null
%13 = load i32*, i32** @stderr
br i1 %12, label %14, label %16
14: ; preds = %2
%15 = call i64 @fwrite(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0), i64 24, i64 1, i32* %13)
br label %157
16: ; preds = %2
%17 = call i32 (i32*, i8*, ...) @fprintf(i32* %13, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0), i8* %6)
%18 = load i8*, i8** %7
%19 = call i32 @strcpy(i8* %6, i8* %18)
%20 = call i32 @strcat(i8* %6, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%21 = call i32* @fopen(i8* %6, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%22 = icmp eq i32* %21, null
%23 = load i32*, i32** @stderr
br i1 %22, label %24, label %26
24: ; preds = %16
%25 = call i64 @fwrite(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0), i64 24, i64 1, i32* %23)
br label %157
26: ; preds = %16
%27 = call i32 (i32*, i8*, ...) @fprintf(i32* %23, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0), i8* %6)
%28 = load i8*, i8** %7
%29 = call i32 @strcpy(i8* %6, i8* %28)
%30 = call i32 @strcat(i8* %6, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
%31 = call i32* @fopen(i8* %6, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%32 = icmp eq i32* %31, null
%33 = load i32*, i32** @stderr
br i1 %32, label %34, label %36
34: ; preds = %26
%35 = call i64 @fwrite(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.8, i64 0, i64 0), i64 22, i64 1, i32* %33)
br label %157
36: ; preds = %26
%37 = call i32 (i32*, i8*, ...) @fprintf(i32* %33, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.9, i64 0, i64 0), i8* %6)
%38 = load i8*, i8** %7
%39 = call i32 @strcpy(i8* %6, i8* %38)
%40 = call i32 @strcat(i8* %6, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
%41 = call i32* @fopen(i8* %6, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%42 = load i32*, i32** @stderr
%43 = call i32 (i32*, i8*, ...) @fprintf(i32* %42, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.12, i64 0, i64 0), i8* %6)
%44 = load i8*, i8** %7
%45 = call i32 @strcpy(i8* %6, i8* %44)
%46 = call i32 @strcat(i8* %6, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0))
%47 = call i32* @fopen(i8* %6, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i64 0, i64 0))
%48 = icmp eq i32* %47, null
%49 = load i32*, i32** @stderr
br i1 %48, label %50, label %52
50: ; preds = %36
%51 = call i64 @fwrite(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.15, i64 0, i64 0), i64 24, i64 1, i32* %49)
br label %157
52: ; preds = %36
%53 = call i32 (i32*, i8*, ...) @fprintf(i32* %49, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.16, i64 0, i64 0), i8* %6)
%54 = call i64 @fgets(i8* %5, i32 200, i32* %47)
%55 = icmp eq i64 %54, 0
br i1 %55, label %147, label %56
56: ; preds = %52
%57 = getelementptr inbounds [220 x i8], [220 x i8]* %3, i64 0, i64 7
%58 = getelementptr inbounds [220 x i8], [220 x i8]* %3, i64 0, i64 8
%59 = getelementptr inbounds [220 x i8], [220 x i8]* %3, i64 0, i64 9
%60 = getelementptr inbounds [220 x i8], [220 x i8]* %3, i64 0, i64 10
%61 = getelementptr inbounds [220 x i8], [220 x i8]* %3, i64 0, i64 17
%62 = getelementptr inbounds [220 x i8], [220 x i8]* %3, i64 0, i64 15
%63 = getelementptr inbounds [220 x i8], [220 x i8]* %3, i64 0, i64 16
%64 = getelementptr inbounds [220 x i8], [220 x i8]* %3, i64 0, i64 18
br label %65
65: ; preds = %56, %143
%66 = phi i32 [ 0, %56 ], [ %125, %143 ]
%67 = phi i32 [ 0, %56 ], [ %70, %143 ]
%68 = phi i32 [ 0, %56 ], [ %144, %143 ]
%69 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.17, i64 0, i64 0), i8* %5)
%70 = add nuw nsw i32 %67, 1
%71 = load i8, i8* %57
%72 = sext i8 %71 to i32
%73 = load i8, i8* %58
%74 = sext i8 %73 to i32
%75 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.18, i64 0, i64 0), i32 %72, i32 %74)
%76 = load i8, i8* %57
%77 = sext i8 %76 to i32
%78 = load i8, i8* %58
%79 = sext i8 %78 to i32
%80 = call i32 (i32*, i8*, ...) @fprintf(i32* %11, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.19, i64 0, i64 0), i32 %77, i32 %79)
%81 = load i8, i8* %59
%82 = sext i8 %81 to i32
%83 = load i8, i8* %60
%84 = sext i8 %83 to i32
%85 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.20, i64 0, i64 0), i32 %82, i32 %84)
%86 = load i8, i8* %59
%87 = sext i8 %86 to i32
%88 = load i8, i8* %60
%89 = sext i8 %88 to i32
%90 = call i32 (i32*, i8*, ...) @fprintf(i32* %21, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.19, i64 0, i64 0), i32 %87, i32 %89)
%91 = load i8, i8* %61
%92 = icmp eq i8 %91, 32
br i1 %92, label %93, label %102
93: ; preds = %65
%94 = add nsw i32 %66, 1
%95 = load i8, i8* %62
%96 = sext i8 %95 to i32
%97 = load i8, i8* %63
%98 = sext i8 %97 to i32
%99 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.21, i64 0, i64 0), i32 %96, i32 %98)
%100 = load i8, i8* %62
%101 = load i8, i8* %63
br label %121
102: ; preds = %65
%103 = add nsw i32 %66, 2
%104 = load i8, i8* %62
%105 = sext i8 %104 to i32
%106 = load i8, i8* %63
%107 = sext i8 %106 to i32
%108 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.21, i64 0, i64 0), i32 %105, i32 %107)
%109 = load i8, i8* %62
%110 = sext i8 %109 to i32
%111 = load i8, i8* %63
%112 = sext i8 %111 to i32
%113 = call i32 (i32*, i8*, ...) @fprintf(i32* %31, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.19, i64 0, i64 0), i32 %110, i32 %112)
%114 = load i8, i8* %61
%115 = sext i8 %114 to i32
%116 = load i8, i8* %64
%117 = sext i8 %116 to i32
%118 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.21, i64 0, i64 0), i32 %115, i32 %117)
%119 = load i8, i8* %61
%120 = load i8, i8* %64
br label %121
121: ; preds = %102, %93
%122 = phi i8 [ %120, %102 ], [ %101, %93 ]
%123 = phi i8 [ %119, %102 ], [ %100, %93 ]
%124 = phi i32 [ 50, %102 ], [ 49, %93 ]
%125 = phi i32 [ %103, %102 ], [ %94, %93 ]
%126 = sext i8 %123 to i32
%127 = sext i8 %122 to i32
%128 = call i32 (i32*, i8*, ...) @fprintf(i32* %31, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.19, i64 0, i64 0), i32 %126, i32 %127)
%129 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.22, i64 0, i64 0), i32 48, i32 %124)
%130 = call i32 (i32*, i8*, ...) @fprintf(i32* %41, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.19, i64 0, i64 0), i32 48, i32 %124)
%131 = call i32 @putchar(i32 10)
%132 = srem i32 %125, 10
%133 = icmp eq i32 %132, 0
br i1 %133, label %134, label %136
134: ; preds = %121
%135 = call i32 @fputc(i32 10, i32* %31)
br label %136
136: ; preds = %134, %121
%137 = add nsw i32 %68, 1
%138 = icmp eq i32 %137, 10
br i1 %138, label %139, label %143
139: ; preds = %136
%140 = call i32 @fputc(i32 10, i32* %11)
%141 = call i32 @fputc(i32 10, i32* %21)
%142 = call i32 @fputc(i32 10, i32* %41)
br label %143
143: ; preds = %139, %136
%144 = phi i32 [ 0, %139 ], [ %137, %136 ]
%145 = call i64 @fgets(i8* %5, i32 200, i32* %47)
%146 = icmp eq i64 %145, 0
br i1 %146, label %147, label %65
147: ; preds = %143, %52
%148 = phi i32 [ 0, %52 ], [ %70, %143 ]
%149 = phi i32 [ 0, %52 ], [ %125, %143 ]
%150 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.24, i64 0, i64 0), i32 %148)
%151 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.25, i64 0, i64 0), i32 %149)
%152 = call i32 @fclose(i32* %11)
%153 = call i32 @fclose(i32* %21)
%154 = call i32 @fclose(i32* %31)
%155 = call i32 @fclose(i32* %41)
%156 = call i32 @fclose(i32* %47)
br label %157
157: ; preds = %147, %50, %34, %24, %14
%158 = phi i32 [ -1, %14 ], [ -1, %24 ], [ -1, %34 ], [ -1, %50 ], [ 1, %147 ]
ret i32 %158
}