#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*/ fscanf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ printf(char *, ...);
scalar_t__ strcmp(char *, char *);
unsigned char PLY_ScanPlyHeader(FILE *ptf, int *fileFMT, int *plyFMT,
                                int *npoints, int *nfaces, int *nfields,
                                char *field, int *pfield) {
  int i;
  char line[512], fmt;
  fscanf(ptf, "%s", line);
  if (strcmp(line, "ply")) {
    printf("ScanPlyHeader ERROR : Invalid input file\n");
    ;
    return 0;
  }
  fscanf(ptf, "%s", line);
  if (strcmp(line, "format")) {
    printf("ScanPlyHeader ERROR : Invalid input file (line 2 must contains "
           "format)\n");
    ;
    return 0;
  }
  fscanf(ptf, "%s", line);
  if (strcmp(line, "binary_big_endian") == 0) {
    *fileFMT = 0;
    *plyFMT = 0;
    printf("File format    : binary & big-endian\n");
    ;
  } else {
    if (strcmp(line, "binary_little_endian") == 0) {
      *fileFMT = 1;
      *plyFMT = 0;
      printf("File format    : binary & little-endian\n");
      ;
    } else {
      if (strcmp(line, "ascii") == 0) {
        *fileFMT = 2;
        *plyFMT = 1;
        printf("File format    : ASCII\n");
        ;
      } else {
        printf("ScanPlyHeader ERROR : Unknown file format\n");
        ;
        return 0;
      }
    }
  }
  do
    fscanf(ptf, "%s", line);
  while (strcmp(line, "vertex"));
  fscanf(ptf, "%d", npoints);
  printf("Vertex count   : %d\n", *npoints);
  ;
  do
    fscanf(ptf, "%s", line);
  while (strcmp(line, "property"));
  printf("Reading fields :\n");
  ;
  (*nfields) = 0;
  do {
    fscanf(ptf, "%s", line);
    if (!strcmp(line, "uchar"))
      fmt = 1;
    else if (!strcmp(line, "uint8"))
      fmt = 1;
    else if (!strcmp(line, "uint16"))
      fmt = 2;
    else if (!strcmp(line, "int"))
      fmt = 3;
    else if (!strcmp(line, "int32"))
      fmt = 3;
    else if (!strcmp(line, "float"))
      fmt = 4;
    else if (!strcmp(line, "float64"))
      fmt = 5;
    else
      fmt = 0;
    fscanf(ptf, "%s", line);
    if (!strcmp(line, "x")) {
      field[0] = fmt;
      pfield[0] = (*nfields)++;
      for (i = 0; i < 7; i++)
        fscanf(ptf, "%s", line);
      printf("\t(x,y,z) coordinates\n");
      ;
    } else if (!strcmp(line, "confidence")) {
      field[1] = fmt;
      pfield[1] = (*nfields)++;
      fscanf(ptf, "%s", line);
      printf("\tconfidence\n");
      ;
    } else if (!strcmp(line, "red") || !strcmp(line, "r")) {
      field[2] = fmt;
      pfield[2] = (*nfields)++;
      for (i = 0; i < 7; i++)
        fscanf(ptf, "%s", line);
      printf("\tcolor\n");
      ;
    } else if (!strcmp(line, "u")) {
      field[3] = fmt;
      pfield[3] = (*nfields)++;
      for (i = 0; i < 4; i++)
        fscanf(ptf, "%s", line);
      printf("\t(u,v)\n");
      ;
    } else if (!strcmp(line, "nx")) {
      field[4] = fmt;
      pfield[4] = (*nfields)++;
      for (i = 0; i < 7; i++)
        fscanf(ptf, "%s", line);
      printf("\t(nx,ny,nz) normals\n");
      ;
    } else {
      printf("ScanPlyHeader ERROR : Unknown field (%s)\n", line);
      ;
      return 0;
    }
  } while (!strcmp(line, "property"));
  while (strcmp(line, "element"))
    fscanf(ptf, "%s", line);
  fscanf(ptf, "%s", line);
  fscanf(ptf, "%d", nfaces);
  printf("Faces count    : %d\n", *nfaces);
  ;
  do
    fscanf(ptf, "%s", line);
  while (strcmp(line, "end_header"));
  return (!0);
}


x86 assembly (clang, -O0):
<PLY_ScanPlyHeader>:
push   %rbp
mov    %rsp,%rbp
sub    $0x250,%rsp
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8,-0x30(%rbp)
mov    %r9,-0x38(%rbp)
mov    -0x10(%rbp),%rdi
lea    -0x240(%rbp),%rdx
lea    0xe93(%rip),%rsi
mov    $0x0,%al
call   1040 <fscanf@plt>
lea    -0x240(%rbp),%rdi
lea    0xe81(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
je     11a8 <PLY_ScanPlyHeader+0x78>
lea    0xe6f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movb   $0x0,-0x1(%rbp)
jmp    18e5 <PLY_ScanPlyHeader+0x7b5>
mov    -0x10(%rbp),%rdi
lea    -0x240(%rbp),%rdx
lea    0xe46(%rip),%rsi
mov    $0x0,%al
call   1040 <fscanf@plt>
lea    -0x240(%rbp),%rdi
lea    0xe62(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
je     11f5 <PLY_ScanPlyHeader+0xc5>
lea    0xe53(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movb   $0x0,-0x1(%rbp)
jmp    18e5 <PLY_ScanPlyHeader+0x7b5>
mov    -0x10(%rbp),%rdi
lea    -0x240(%rbp),%rdx
lea    0xdf9(%rip),%rsi
mov    $0x0,%al
call   1040 <fscanf@plt>
lea    -0x240(%rbp),%rdi
lea    0xe64(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1252 <PLY_ScanPlyHeader+0x122>
mov    -0x18(%rbp),%rax
movl   $0x0,(%rax)
mov    -0x20(%rbp),%rax
movl   $0x0,(%rax)
lea    0xe4c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    12fb <PLY_ScanPlyHeader+0x1cb>
lea    -0x240(%rbp),%rdi
lea    0xe58(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1296 <PLY_ScanPlyHeader+0x166>
mov    -0x18(%rbp),%rax
movl   $0x1,(%rax)
mov    -0x20(%rbp),%rax
movl   $0x0,(%rax)
lea    0xe43(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    12f6 <PLY_ScanPlyHeader+0x1c6>
lea    -0x240(%rbp),%rdi
lea    0xe52(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    12da <PLY_ScanPlyHeader+0x1aa>
mov    -0x18(%rbp),%rax
movl   $0x2,(%rax)
mov    -0x20(%rbp),%rax
movl   $0x1,(%rax)
lea    0xe2e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    12f1 <PLY_ScanPlyHeader+0x1c1>
lea    0xe33(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movb   $0x0,-0x1(%rbp)
jmp    18e5 <PLY_ScanPlyHeader+0x7b5>
jmp    12f6 <PLY_ScanPlyHeader+0x1c6>
jmp    12fb <PLY_ScanPlyHeader+0x1cb>
jmp    1300 <PLY_ScanPlyHeader+0x1d0>
mov    -0x10(%rbp),%rdi
lea    -0x240(%rbp),%rdx
lea    0xcee(%rip),%rsi
mov    $0x0,%al
call   1040 <fscanf@plt>
lea    -0x240(%rbp),%rdi
lea    0xe18(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1300 <PLY_ScanPlyHeader+0x1d0>
mov    -0x10(%rbp),%rdi
mov    -0x28(%rbp),%rdx
lea    0xe01(%rip),%rsi
mov    $0x0,%al
call   1040 <fscanf@plt>
mov    -0x28(%rbp),%rax
mov    (%rax),%esi
lea    0xdf0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rdi
lea    -0x240(%rbp),%rdx
lea    0xc8e(%rip),%rsi
mov    $0x0,%al
call   1040 <fscanf@plt>
lea    -0x240(%rbp),%rdi
lea    0xdd7(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1360 <PLY_ScanPlyHeader+0x230>
lea    0xdca(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x38(%rbp),%rax
movl   $0x0,(%rax)
mov    -0x10(%rbp),%rdi
lea    -0x240(%rbp),%rdx
lea    0xc40(%rip),%rsi
mov    $0x0,%al
call   1040 <fscanf@plt>
lea    -0x240(%rbp),%rdi
lea    0xda4(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    13f0 <PLY_ScanPlyHeader+0x2c0>
movb   $0x1,-0x241(%rbp)
jmp    150b <PLY_ScanPlyHeader+0x3db>
lea    -0x240(%rbp),%rdi
lea    0xd81(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1419 <PLY_ScanPlyHeader+0x2e9>
movb   $0x1,-0x241(%rbp)
jmp    1506 <PLY_ScanPlyHeader+0x3d6>
lea    -0x240(%rbp),%rdi
lea    0xd5e(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1442 <PLY_ScanPlyHeader+0x312>
movb   $0x2,-0x241(%rbp)
jmp    1501 <PLY_ScanPlyHeader+0x3d1>
lea    -0x240(%rbp),%rdi
lea    0xd3c(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    146b <PLY_ScanPlyHeader+0x33b>
movb   $0x3,-0x241(%rbp)
jmp    14fc <PLY_ScanPlyHeader+0x3cc>
lea    -0x240(%rbp),%rdi
lea    0xd17(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1494 <PLY_ScanPlyHeader+0x364>
movb   $0x3,-0x241(%rbp)
jmp    14f7 <PLY_ScanPlyHeader+0x3c7>
lea    -0x240(%rbp),%rdi
lea    0xcf4(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    14bd <PLY_ScanPlyHeader+0x38d>
movb   $0x4,-0x241(%rbp)
jmp    14f2 <PLY_ScanPlyHeader+0x3c2>
lea    -0x240(%rbp),%rdi
lea    0xcd1(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    14e6 <PLY_ScanPlyHeader+0x3b6>
movb   $0x5,-0x241(%rbp)
jmp    14ed <PLY_ScanPlyHeader+0x3bd>
movb   $0x0,-0x241(%rbp)
jmp    14f2 <PLY_ScanPlyHeader+0x3c2>
jmp    14f7 <PLY_ScanPlyHeader+0x3c7>
jmp    14fc <PLY_ScanPlyHeader+0x3cc>
jmp    1501 <PLY_ScanPlyHeader+0x3d1>
jmp    1506 <PLY_ScanPlyHeader+0x3d6>
jmp    150b <PLY_ScanPlyHeader+0x3db>
mov    -0x10(%rbp),%rdi
lea    -0x240(%rbp),%rdx
lea    0xae3(%rip),%rsi
mov    $0x0,%al
call   1040 <fscanf@plt>
lea    -0x240(%rbp),%rdi
lea    0xc12(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    15ab <PLY_ScanPlyHeader+0x47b>
mov    -0x241(%rbp),%cl
mov    0x10(%rbp),%rax
mov    %cl,(%rax)
mov    -0x38(%rbp),%rax
mov    (%rax),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,(%rax)
mov    0x18(%rbp),%rax
mov    %ecx,(%rax)
movl   $0x0,-0x3c(%rbp)
cmpl   $0x7,-0x3c(%rbp)
jge    1598 <PLY_ScanPlyHeader+0x468>
mov    -0x10(%rbp),%rdi
lea    -0x240(%rbp),%rdx
lea    0xa7d(%rip),%rsi
mov    $0x0,%al
call   1040 <fscanf@plt>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1567 <PLY_ScanPlyHeader+0x437>
lea    0xc05(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    17ff <PLY_ScanPlyHeader+0x6cf>
lea    -0x240(%rbp),%rdi
lea    0xc01(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1615 <PLY_ScanPlyHeader+0x4e5>
mov    -0x241(%rbp),%cl
mov    0x10(%rbp),%rax
mov    %cl,0x1(%rax)
mov    -0x38(%rbp),%rax
mov    (%rax),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,(%rax)
mov    0x18(%rbp),%rax
mov    %ecx,0x4(%rax)
mov    -0x10(%rbp),%rdi
lea    -0x240(%rbp),%rdx
lea    0xa05(%rip),%rsi
mov    $0x0,%al
call   1040 <fscanf@plt>
lea    0xbbc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    17fa <PLY_ScanPlyHeader+0x6ca>
lea    -0x240(%rbp),%rdi
lea    0xbaf(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
je     164f <PLY_ScanPlyHeader+0x51f>
lea    -0x240(%rbp),%rdi
lea    0xb3d(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    16bb <PLY_ScanPlyHeader+0x58b>
mov    -0x241(%rbp),%cl
mov    0x10(%rbp),%rax
mov    %cl,0x2(%rax)
mov    -0x38(%rbp),%rax
mov    (%rax),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,(%rax)
mov    0x18(%rbp),%rax
mov    %ecx,0x8(%rax)
movl   $0x0,-0x3c(%rbp)
cmpl   $0x7,-0x3c(%rbp)
jge    16a8 <PLY_ScanPlyHeader+0x578>
mov    -0x10(%rbp),%rdi
lea    -0x240(%rbp),%rdx
lea    0x96d(%rip),%rsi
mov    $0x0,%al
call   1040 <fscanf@plt>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1677 <PLY_ScanPlyHeader+0x547>
lea    0xb27(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    17f5 <PLY_ScanPlyHeader+0x6c5>
lea    -0x240(%rbp),%rdi
lea    0xb15(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1744 <PLY_ScanPlyHeader+0x614>
mov    -0x241(%rbp),%cl
mov    0x10(%rbp),%rax
mov    %cl,0x3(%rax)
mov    -0x38(%rbp),%rax
mov    (%rax),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,(%rax)
mov    0x18(%rbp),%rax
mov    %ecx,0xc(%rax)
movl   $0x0,-0x3c(%rbp)
cmpl   $0x4,-0x3c(%rbp)
jge    1731 <PLY_ScanPlyHeader+0x601>
mov    -0x10(%rbp),%rdi
lea    -0x240(%rbp),%rdx
lea    0x8e4(%rip),%rsi
mov    $0x0,%al
call   1040 <fscanf@plt>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1700 <PLY_ScanPlyHeader+0x5d0>
lea    0xaa8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    17f0 <PLY_ScanPlyHeader+0x6c0>
lea    -0x240(%rbp),%rdi
lea    0xa96(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    17cd <PLY_ScanPlyHeader+0x69d>
mov    -0x241(%rbp),%cl
mov    0x10(%rbp),%rax
mov    %cl,0x4(%rax)
mov    -0x38(%rbp),%rax
mov    (%rax),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,(%rax)
mov    0x18(%rbp),%rax
mov    %ecx,0x10(%rax)
movl   $0x0,-0x3c(%rbp)
cmpl   $0x7,-0x3c(%rbp)
jge    17ba <PLY_ScanPlyHeader+0x68a>
mov    -0x10(%rbp),%rdi
lea    -0x240(%rbp),%rdx
lea    0x85b(%rip),%rsi
mov    $0x0,%al
call   1040 <fscanf@plt>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1789 <PLY_ScanPlyHeader+0x659>
lea    0xa2a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    17eb <PLY_ScanPlyHeader+0x6bb>
lea    -0x240(%rbp),%rsi
lea    0xa25(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movb   $0x0,-0x1(%rbp)
jmp    18e5 <PLY_ScanPlyHeader+0x7b5>
jmp    17f0 <PLY_ScanPlyHeader+0x6c0>
jmp    17f5 <PLY_ScanPlyHeader+0x6c5>
jmp    17fa <PLY_ScanPlyHeader+0x6ca>
jmp    17ff <PLY_ScanPlyHeader+0x6cf>
jmp    1804 <PLY_ScanPlyHeader+0x6d4>
lea    -0x240(%rbp),%rdi
lea    0x94c(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    13ae <PLY_ScanPlyHeader+0x27e>
jmp    182d <PLY_ScanPlyHeader+0x6fd>
lea    -0x240(%rbp),%rdi
lea    0x9ef(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
je     1868 <PLY_ScanPlyHeader+0x738>
mov    -0x10(%rbp),%rdi
lea    -0x240(%rbp),%rdx
lea    0x7a4(%rip),%rsi
mov    $0x0,%al
call   1040 <fscanf@plt>
jmp    182d <PLY_ScanPlyHeader+0x6fd>
mov    -0x10(%rbp),%rdi
lea    -0x240(%rbp),%rdx
lea    0x786(%rip),%rsi
mov    $0x0,%al
call   1040 <fscanf@plt>
mov    -0x10(%rbp),%rdi
mov    -0x30(%rbp),%rdx
lea    0x8b6(%rip),%rsi
mov    $0x0,%al
call   1040 <fscanf@plt>
mov    -0x30(%rbp),%rax
mov    (%rax),%esi
lea    0x98e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rdi
lea    -0x240(%rbp),%rdx
lea    0x743(%rip),%rsi
mov    $0x0,%al
call   1040 <fscanf@plt>
lea    -0x240(%rbp),%rdi
lea    0x975(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    18ab <PLY_ScanPlyHeader+0x77b>
movb   $0x1,-0x1(%rbp)
movzbl -0x1(%rbp),%eax
add    $0x250,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<PLY_ScanPlyHeader>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x218,%rsp
mov    %r9,0x8(%rsp)
mov    %r8,%r14
mov    %rcx,%r12
mov    %rdx,%r13
mov    %rsi,%r15
mov    %rdi,%rbx
lea    0xe94(%rip),%rsi
lea    0x10(%rsp),%rbp
mov    %rbp,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
lea    0xe81(%rip),%rsi
mov    %rbp,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     1198 <PLY_ScanPlyHeader+0x58>
lea    0x1075(%rip),%rdi
jmp    11d0 <PLY_ScanPlyHeader+0x90>
mov    %r14,(%rsp)
lea    0xe5d(%rip),%rsi
lea    0x10(%rsp),%rbp
mov    %rbx,%rdi
mov    %rbp,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
lea    0xf49(%rip),%rsi
mov    %rbp,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     11eb <PLY_ScanPlyHeader+0xab>
lea    0xff4(%rip),%rdi
call   1030 <puts@plt>
xor    %ebx,%ebx
mov    %ebx,%eax
add    $0x218,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xe0e(%rip),%rsi
lea    0x10(%rsp),%rbp
mov    %rbx,%rdi
mov    %rbp,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
lea    0xdfc(%rip),%rsi
mov    %rbp,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     124d <PLY_ScanPlyHeader+0x10d>
lea    0xdfa(%rip),%rsi
lea    0x10(%rsp),%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     125d <PLY_ScanPlyHeader+0x11d>
lea    0xdf9(%rip),%rsi
lea    0x10(%rsp),%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     1270 <PLY_ScanPlyHeader+0x130>
lea    0xe97(%rip),%rdi
jmp    11d0 <PLY_ScanPlyHeader+0x90>
xor    %ecx,%ecx
lea    0xf49(%rip),%rdi
xor    %eax,%eax
mov    %r12,%r14
jmp    1284 <PLY_ScanPlyHeader+0x144>
xor    %ecx,%ecx
lea    0xf11(%rip),%rdi
mov    $0x1,%eax
mov    %r12,%r14
jmp    1284 <PLY_ScanPlyHeader+0x144>
mov    %r12,%r14
lea    0xe92(%rip),%rdi
mov    $0x1,%ecx
mov    $0x2,%eax
mov    %eax,(%r15)
mov    %ecx,0x0(%r13)
call   1030 <puts@plt>
lea    0xd69(%rip),%r12
lea    0x10(%rsp),%rbp
lea    0xd91(%rip),%r13
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %rbx,%rdi
mov    %r12,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbp,%rdi
mov    %r13,%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
jne    12b0 <PLY_ScanPlyHeader+0x170>
lea    0xd64(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    (%r14),%esi
lea    0xd50(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xd04(%rip),%r14
lea    0x10(%rsp),%rbp
lea    0xd4b(%rip),%r12
mov    0x8(%rsp),%r15
nopl   (%rax)
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbp,%rdi
mov    %r12,%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
jne    1310 <PLY_ScanPlyHeader+0x1d0>
lea    0xdec(%rip),%rdi
call   1030 <puts@plt>
movl   $0x0,(%r15)
lea    0xcb6(%rip),%r12
lea    0x10(%rsp),%r13
jmp    1415 <PLY_ScanPlyHeader+0x2d5>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    0x250(%rsp),%rax
mov    %bpl,(%rax)
mov    (%r15),%eax
lea    0x1(%rax),%ecx
mov    %ecx,(%r15)
mov    0x258(%rsp),%rcx
mov    %eax,(%rcx)
mov    %rbx,%rdi
mov    %r12,%rsi
mov    %r13,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    %r13,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    %r13,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    %r13,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    %r13,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    %r13,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
lea    0xd4f(%rip),%r14
mov    %rbx,%rdi
mov    %r12,%rsi
mov    %r13,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %r14,%rdi
call   1030 <puts@plt>
mov    %r13,%rdi
lea    0xc4c(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
jne    1720 <PLY_ScanPlyHeader+0x5e0>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    %r13,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %r13,%rdi
lea    0xc2d(%rip),%rsi
call   1060 <strcmp@plt>
mov    $0x1,%bpl
test   %rax,%rax
je     14d0 <PLY_ScanPlyHeader+0x390>
mov    %r13,%rdi
lea    0xc18(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     14d0 <PLY_ScanPlyHeader+0x390>
mov    %r13,%rdi
lea    0xc0a(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     14c7 <PLY_ScanPlyHeader+0x387>
mov    %r13,%rdi
lea    0xbfd(%rip),%rsi
call   1060 <strcmp@plt>
mov    $0x3,%bpl
test   %rax,%rax
je     14d0 <PLY_ScanPlyHeader+0x390>
mov    %r13,%rdi
lea    0xbea(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     14d0 <PLY_ScanPlyHeader+0x390>
mov    %r13,%rdi
lea    0xbdc(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     1718 <PLY_ScanPlyHeader+0x5d8>
mov    %r13,%rdi
lea    0xbca(%rip),%rsi
call   1060 <strcmp@plt>
xor    %ecx,%ecx
test   %rax,%rax
sete   %cl
lea    (%rcx,%rcx,4),%ebp
jmp    14d0 <PLY_ScanPlyHeader+0x390>
mov    $0x2,%bpl
nopw   0x0(%rax,%rax,1)
mov    %rbx,%rdi
mov    %r12,%rsi
mov    %r13,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %r13,%rdi
lea    0xb4f(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     1360 <PLY_ScanPlyHeader+0x220>
mov    %r13,%rdi
lea    0xc48(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     1690 <PLY_ScanPlyHeader+0x550>
mov    %r13,%rdi
lea    0xb6d(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     1600 <PLY_ScanPlyHeader+0x4c0>
mov    %r13,%rdi
lea    0xb2e(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     1600 <PLY_ScanPlyHeader+0x4c0>
mov    %r13,%rdi
lea    0xb41(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     16bc <PLY_ScanPlyHeader+0x57c>
mov    %r13,%rdi
lea    0xb2b(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
jne    17e7 <PLY_ScanPlyHeader+0x6a7>
mov    0x250(%rsp),%rax
mov    %bpl,0x4(%rax)
mov    (%r15),%eax
lea    0x1(%rax),%ecx
mov    %ecx,(%r15)
mov    0x258(%rsp),%rcx
mov    %eax,0x10(%rcx)
mov    %rbx,%rdi
mov    %r12,%rsi
mov    %r13,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    %r13,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    %r13,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    %r13,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    %r13,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    %r13,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
lea    0xb6c(%rip),%r14
jmp    13e5 <PLY_ScanPlyHeader+0x2a5>
nopl   0x0(%rax)
mov    0x250(%rsp),%rax
mov    %bpl,0x2(%rax)
mov    (%r15),%eax
lea    0x1(%rax),%ecx
mov    %ecx,(%r15)
mov    0x258(%rsp),%rcx
mov    %eax,0x8(%rcx)
mov    %rbx,%rdi
mov    %r12,%rsi
mov    %r13,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    %r13,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    %r13,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    %r13,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    %r13,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    %r13,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
lea    0xace(%rip),%r14
jmp    13e5 <PLY_ScanPlyHeader+0x2a5>
nopl   0x0(%rax)
mov    0x250(%rsp),%rax
mov    %bpl,0x1(%rax)
mov    (%r15),%eax
lea    0x1(%rax),%ecx
mov    %ecx,(%r15)
mov    0x258(%rsp),%rcx
mov    %eax,0x4(%rcx)
lea    0xa92(%rip),%r14
jmp    13e5 <PLY_ScanPlyHeader+0x2a5>
mov    0x250(%rsp),%rax
mov    %bpl,0x3(%rax)
mov    (%r15),%eax
lea    0x1(%rax),%ecx
mov    %ecx,(%r15)
mov    0x258(%rsp),%rcx
mov    %eax,0xc(%rcx)
mov    %rbx,%rdi
mov    %r12,%rsi
mov    %r13,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    %r13,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    %r13,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
lea    0xa49(%rip),%r14
jmp    13e5 <PLY_ScanPlyHeader+0x2a5>
mov    $0x4,%bpl
jmp    14d0 <PLY_ScanPlyHeader+0x390>
lea    0x993(%rip),%rsi
lea    0x10(%rsp),%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     1770 <PLY_ScanPlyHeader+0x630>
lea    0x8c3(%rip),%r14
lea    0x10(%rsp),%rbp
lea    0x971(%rip),%r15
nopl   0x0(%rax)
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbp,%rdi
mov    %r15,%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
jne    1750 <PLY_ScanPlyHeader+0x610>
lea    0x889(%rip),%r14
lea    0x10(%rsp),%rbp
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
lea    0x8a8(%rip),%rsi
mov    %rbx,%rdi
mov    (%rsp),%r15
mov    %r15,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    (%r15),%esi
lea    0x914(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x91b(%rip),%r15
nopl   0x0(%rax)
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbp,%rdi
mov    %r15,%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
jne    17c0 <PLY_ScanPlyHeader+0x680>
mov    $0x1,%bl
jmp    11d7 <PLY_ScanPlyHeader+0x97>
lea    0x8a2(%rip),%rdi
xor    %ebx,%ebx
lea    0x10(%rsp),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    11d7 <PLY_ScanPlyHeader+0x97>

LLVM IR (-O0):
@.str = [3 x i8] c"%s\00"
@.str.1 = [4 x i8] c"ply\00"
@.str.2 = [42 x i8] c"ScanPlyHeader ERROR : Invalid input file\0A\00"
@.str.3 = [7 x i8] c"format\00"
@.str.4 = [72 x i8] c"ScanPlyHeader ERROR : Invalid input file (line 2 must contains format)\0A\00"
@.str.5 = [18 x i8] c"binary_big_endian\00"
@.str.6 = [38 x i8] c"File format : binary & big-endian\0A\00"
@.str.7 = [21 x i8] c"binary_little_endian\00"
@.str.8 = [41 x i8] c"File format : binary & little-endian\0A\00"
@.str.9 = [6 x i8] c"ascii\00"
@.str.10 = [24 x i8] c"File format : ASCII\0A\00"
@.str.11 = [43 x i8] c"ScanPlyHeader ERROR : Unknown file format\0A\00"
@.str.12 = [7 x i8] c"vertex\00"
@.str.13 = [3 x i8] c"%d\00"
@.str.14 = [21 x i8] c"Vertex count : %d\0A\00"
@.str.15 = [9 x i8] c"property\00"
@.str.16 = [18 x i8] c"Reading fields :\0A\00"
@.str.17 = [6 x i8] c"uchar\00"
@.str.18 = [6 x i8] c"uint8\00"
@.str.19 = [7 x i8] c"uint16\00"
@.str.20 = [4 x i8] c"int\00"
@.str.21 = [6 x i8] c"int32\00"
@.str.22 = [6 x i8] c"float\00"
@.str.23 = [8 x i8] c"float64\00"
@.str.24 = [2 x i8] c"x\00"
@.str.25 = [22 x i8] c"\09(x,y,z) coordinates\0A\00"
@.str.26 = [11 x i8] c"confidence\00"
@.str.27 = [13 x i8] c"\09confidence\0A\00"
@.str.28 = [4 x i8] c"red\00"
@.str.29 = [2 x i8] c"r\00"
@.str.30 = [8 x i8] c"\09color\0A\00"
@.str.31 = [2 x i8] c"u\00"
@.str.32 = [8 x i8] c"\09(u,v)\0A\00"
@.str.33 = [3 x i8] c"nx\00"
@.str.34 = [21 x i8] c"\09(nx,ny,nz) normals\0A\00"
@.str.35 = [42 x i8] c"ScanPlyHeader ERROR : Unknown field (%s)\0A\00"
@.str.36 = [8 x i8] c"element\00"
@.str.37 = [21 x i8] c"Faces count : %d\0A\00"
@.str.38 = [11 x i8] c"end_header\00"
define zeroext i8 @PLY_ScanPlyHeader(i32* %0, i32* %1, i32* %2, i32* %3, i32* %4, i32* %5, i8* %6, i32* %7) {
%9 = alloca i8
%10 = alloca i32*
%11 = alloca i32*
%12 = alloca i32*
%13 = alloca i32*
%14 = alloca i32*
%15 = alloca i32*
%16 = alloca i8*
%17 = alloca i32*
%18 = alloca i32
%19 = alloca [512 x i8]
%20 = alloca i8
store i32* %0, i32** %10
store i32* %1, i32** %11
store i32* %2, i32** %12
store i32* %3, i32** %13
store i32* %4, i32** %14
store i32* %5, i32** %15
store i8* %6, i8** %16
store i32* %7, i32** %17
%21 = load i32*, i32** %10
%22 = getelementptr inbounds [512 x i8], [512 x i8]* %19, i64 0, i64 0
%23 = call i32 (i32*, i8*, ...) @fscanf(i32* %21, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %22)
%24 = getelementptr inbounds [512 x i8], [512 x i8]* %19, i64 0, i64 0
%25 = call i64 @strcmp(i8* %24, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%26 = icmp ne i64 %25, 0
br i1 %26, label %27, label %29
27: ; preds = %8
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0))
store i8 0, i8* %9
br label %306
29: ; preds = %8
%30 = load i32*, i32** %10
%31 = getelementptr inbounds [512 x i8], [512 x i8]* %19, i64 0, i64 0
%32 = call i32 (i32*, i8*, ...) @fscanf(i32* %30, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %31)
%33 = getelementptr inbounds [512 x i8], [512 x i8]* %19, i64 0, i64 0
%34 = call i64 @strcmp(i8* %33, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
%35 = icmp ne i64 %34, 0
br i1 %35, label %36, label %38
36: ; preds = %29
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.4, i64 0, i64 0))
store i8 0, i8* %9
br label %306
38: ; preds = %29
%39 = load i32*, i32** %10
%40 = getelementptr inbounds [512 x i8], [512 x i8]* %19, i64 0, i64 0
%41 = call i32 (i32*, i8*, ...) @fscanf(i32* %39, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %40)
%42 = getelementptr inbounds [512 x i8], [512 x i8]* %19, i64 0, i64 0
%43 = call i64 @strcmp(i8* %42, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0))
%44 = icmp eq i64 %43, 0
br i1 %44, label %45, label %49
45: ; preds = %38
%46 = load i32*, i32** %11
store i32 0, i32* %46
%47 = load i32*, i32** %12
store i32 0, i32* %47
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.6, i64 0, i64 0))
br label %69
49: ; preds = %38
%50 = getelementptr inbounds [512 x i8], [512 x i8]* %19, i64 0, i64 0
%51 = call i64 @strcmp(i8* %50, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0))
%52 = icmp eq i64 %51, 0
br i1 %52, label %53, label %57
53: ; preds = %49
%54 = load i32*, i32** %11
store i32 1, i32* %54
%55 = load i32*, i32** %12
store i32 0, i32* %55
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.8, i64 0, i64 0))
br label %68
57: ; preds = %49
%58 = getelementptr inbounds [512 x i8], [512 x i8]* %19, i64 0, i64 0
%59 = call i64 @strcmp(i8* %58, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0))
%60 = icmp eq i64 %59, 0
br i1 %60, label %61, label %65
61: ; preds = %57
%62 = load i32*, i32** %11
store i32 2, i32* %62
%63 = load i32*, i32** %12
store i32 1, i32* %63
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.10, i64 0, i64 0))
br label %67
65: ; preds = %57
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.11, i64 0, i64 0))
store i8 0, i8* %9
br label %306
67: ; preds = %61
br label %68
68: ; preds = %67, %53
br label %69
69: ; preds = %68, %45
br label %70
70: ; preds = %74, %69
%71 = load i32*, i32** %10
%72 = getelementptr inbounds [512 x i8], [512 x i8]* %19, i64 0, i64 0
%73 = call i32 (i32*, i8*, ...) @fscanf(i32* %71, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %72)
br label %74
74: ; preds = %70
%75 = getelementptr inbounds [512 x i8], [512 x i8]* %19, i64 0, i64 0
%76 = call i64 @strcmp(i8* %75, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i64 0, i64 0))
%77 = icmp ne i64 %76, 0
br i1 %77, label %70, label %78
78: ; preds = %74
%79 = load i32*, i32** %10
%80 = load i32*, i32** %13
%81 = call i32 (i32*, i8*, ...) @fscanf(i32* %79, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0), i32* %80)
%82 = load i32*, i32** %13
%83 = load i32, i32* %82
%84 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.14, i64 0, i64 0), i32 %83)
br label %85
85: ; preds = %89, %78
%86 = load i32*, i32** %10
%87 = getelementptr inbounds [512 x i8], [512 x i8]* %19, i64 0, i64 0
%88 = call i32 (i32*, i8*, ...) @fscanf(i32* %86, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %87)
br label %89
89: ; preds = %85
%90 = getelementptr inbounds [512 x i8], [512 x i8]* %19, i64 0, i64 0
%91 = call i64 @strcmp(i8* %90, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.15, i64 0, i64 0))
%92 = icmp ne i64 %91, 0
br i1 %92, label %85, label %93
93: ; preds = %89
%94 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.16, i64 0, i64 0))
%95 = load i32*, i32** %15
store i32 0, i32* %95
br label %96
96: ; preds = %273, %93
%97 = load i32*, i32** %10
%98 = getelementptr inbounds [512 x i8], [512 x i8]* %19, i64 0, i64 0
%99 = call i32 (i32*, i8*, ...) @fscanf(i32* %97, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %98)
%100 = getelementptr inbounds [512 x i8], [512 x i8]* %19, i64 0, i64 0
%101 = call i64 @strcmp(i8* %100, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.17, i64 0, i64 0))
%102 = icmp ne i64 %101, 0
br i1 %102, label %104, label %103
103: ; preds = %96
store i8 1, i8* %20
br label %141
104: ; preds = %96
%105 = getelementptr inbounds [512 x i8], [512 x i8]* %19, i64 0, i64 0
%106 = call i64 @strcmp(i8* %105, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.18, i64 0, i64 0))
%107 = icmp ne i64 %106, 0
br i1 %107, label %109, label %108
108: ; preds = %104
store i8 1, i8* %20
br label %140
109: ; preds = %104
%110 = getelementptr inbounds [512 x i8], [512 x i8]* %19, i64 0, i64 0
%111 = call i64 @strcmp(i8* %110, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.19, i64 0, i64 0))
%112 = icmp ne i64 %111, 0
br i1 %112, label %114, label %113
113: ; preds = %109
store i8 2, i8* %20
br label %139
114: ; preds = %109
%115 = getelementptr inbounds [512 x i8], [512 x i8]* %19, i64 0, i64 0
%116 = call i64 @strcmp(i8* %115, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.20, i64 0, i64 0))
%117 = icmp ne i64 %116, 0
br i1 %117, label %119, label %118
118: ; preds = %114
store i8 3, i8* %20
br label %138
119: ; preds = %114
%120 = getelementptr inbounds [512 x i8], [512 x i8]* %19, i64 0, i64 0
%121 = call i64 @strcmp(i8* %120, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.21, i64 0, i64 0))
%122 = icmp ne i64 %121, 0
br i1 %122, label %124, label %123
123: ; preds = %119
store i8 3, i8* %20
br label %137
124: ; preds = %119
%125 = getelementptr inbounds [512 x i8], [512 x i8]* %19, i64 0, i64 0
%126 = call i64 @strcmp(i8* %125, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.22, i64 0, i64 0))
%127 = icmp ne i64 %126, 0
br i1 %127, label %129, label %128
128: ; preds = %124
store i8 4, i8* %20
br label %136
129: ; preds = %124
%130 = getelementptr inbounds [512 x i8], [512 x i8]* %19, i64 0, i64 0
%131 = call i64 @strcmp(i8* %130, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.23, i64 0, i64 0))
%132 = icmp ne i64 %131, 0
br i1 %132, label %134, label %133
133: ; preds = %129
store i8 5, i8* %20
br label %135
134: ; preds = %129
store i8 0, i8* %20
br label %135
135: ; preds = %134, %133
br label %136
136: ; preds = %135, %128
br label %137
137: ; preds = %136, %123
br label %138
138: ; preds = %137, %118
br label %139
139: ; preds = %138, %113
br label %140
140: ; preds = %139, %108
br label %141
141: ; preds = %140, %103
%142 = load i32*, i32** %10
%143 = getelementptr inbounds [512 x i8], [512 x i8]* %19, i64 0, i64 0
%144 = call i32 (i32*, i8*, ...) @fscanf(i32* %142, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %143)
%145 = getelementptr inbounds [512 x i8], [512 x i8]* %19, i64 0, i64 0
%146 = call i64 @strcmp(i8* %145, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.24, i64 0, i64 0))
%147 = icmp ne i64 %146, 0
br i1 %147, label %169, label %148
148: ; preds = %141
%149 = load i8, i8* %20
%150 = load i8*, i8** %16
%151 = getelementptr inbounds i8, i8* %150, i64 0
store i8 %149, i8* %151
%152 = load i32*, i32** %15
%153 = load i32, i32* %152
%154 = add nsw i32 %153, 1
store i32 %154, i32* %152
%155 = load i32*, i32** %17
%156 = getelementptr inbounds i32, i32* %155, i64 0
store i32 %153, i32* %156
store i32 0, i32* %18
br label %157
157: ; preds = %164, %148
%158 = load i32, i32* %18
%159 = icmp slt i32 %158, 7
br i1 %159, label %160, label %167
160: ; preds = %157
%161 = load i32*, i32** %10
%162 = getelementptr inbounds [512 x i8], [512 x i8]* %19, i64 0, i64 0
%163 = call i32 (i32*, i8*, ...) @fscanf(i32* %161, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %162)
br label %164
164: ; preds = %160
%165 = load i32, i32* %18
%166 = add nsw i32 %165, 1
store i32 %166, i32* %18
br label %157
167: ; preds = %157
%168 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.25, i64 0, i64 0))
br label %272
169: ; preds = %141
%170 = getelementptr inbounds [512 x i8], [512 x i8]* %19, i64 0, i64 0
%171 = call i64 @strcmp(i8* %170, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.26, i64 0, i64 0))
%172 = icmp ne i64 %171, 0
br i1 %172, label %186, label %173
173: ; preds = %169
%174 = load i8, i8* %20
%175 = load i8*, i8** %16
%176 = getelementptr inbounds i8, i8* %175, i64 1
store i8 %174, i8* %176
%177 = load i32*, i32** %15
%178 = load i32, i32* %177
%179 = add nsw i32 %178, 1
store i32 %179, i32* %177
%180 = load i32*, i32** %17
%181 = getelementptr inbounds i32, i32* %180, i64 1
store i32 %178, i32* %181
%182 = load i32*, i32** %10
%183 = getelementptr inbounds [512 x i8], [512 x i8]* %19, i64 0, i64 0
%184 = call i32 (i32*, i8*, ...) @fscanf(i32* %182, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %183)
%185 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.27, i64 0, i64 0))
br label %271
186: ; preds = %169
%187 = getelementptr inbounds [512 x i8], [512 x i8]* %19, i64 0, i64 0
%188 = call i64 @strcmp(i8* %187, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.28, i64 0, i64 0))
%189 = icmp ne i64 %188, 0
br i1 %189, label %190, label %194
190: ; preds = %186
%191 = getelementptr inbounds [512 x i8], [512 x i8]* %19, i64 0, i64 0
%192 = call i64 @strcmp(i8* %191, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.29, i64 0, i64 0))
%193 = icmp ne i64 %192, 0
br i1 %193, label %215, label %194
194: ; preds = %190, %186
%195 = load i8, i8* %20
%196 = load i8*, i8** %16
%197 = getelementptr inbounds i8, i8* %196, i64 2
store i8 %195, i8* %197
%198 = load i32*, i32** %15
%199 = load i32, i32* %198
%200 = add nsw i32 %199, 1
store i32 %200, i32* %198
%201 = load i32*, i32** %17
%202 = getelementptr inbounds i32, i32* %201, i64 2
store i32 %199, i32* %202
store i32 0, i32* %18
br label %203
203: ; preds = %210, %194
%204 = load i32, i32* %18
%205 = icmp slt i32 %204, 7
br i1 %205, label %206, label %213
206: ; preds = %203
%207 = load i32*, i32** %10
%208 = getelementptr inbounds [512 x i8], [512 x i8]* %19, i64 0, i64 0
%209 = call i32 (i32*, i8*, ...) @fscanf(i32* %207, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %208)
br label %210
210: ; preds = %206
%211 = load i32, i32* %18
%212 = add nsw i32 %211, 1
store i32 %212, i32* %18
br label %203
213: ; preds = %203
%214 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.30, i64 0, i64 0))
br label %270
215: ; preds = %190
%216 = getelementptr inbounds [512 x i8], [512 x i8]* %19, i64 0, i64 0
%217 = call i64 @strcmp(i8* %216, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.31, i64 0, i64 0))
%218 = icmp ne i64 %217, 0
br i1 %218, label %240, label %219
219: ; preds = %215
%220 = load i8, i8* %20
%221 = load i8*, i8** %16
%222 = getelementptr inbounds i8, i8* %221, i64 3
store i8 %220, i8* %222
%223 = load i32*, i32** %15
%224 = load i32, i32* %223
%225 = add nsw i32 %224, 1
store i32 %225, i32* %223
%226 = load i32*, i32** %17
%227 = getelementptr inbounds i32, i32* %226, i64 3
store i32 %224, i32* %227
store i32 0, i32* %18
br label %228
228: ; preds = %235, %219
%229 = load i32, i32* %18
%230 = icmp slt i32 %229, 4
br i1 %230, label %231, label %238
231: ; preds = %228
%232 = load i32*, i32** %10
%233 = getelementptr inbounds [512 x i8], [512 x i8]* %19, i64 0, i64 0
%234 = call i32 (i32*, i8*, ...) @fscanf(i32* %232, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %233)
br label %235
235: ; preds = %231
%236 = load i32, i32* %18
%237 = add nsw i32 %236, 1
store i32 %237, i32* %18
br label %228
238: ; preds = %228
%239 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.32, i64 0, i64 0))
br label %269
240: ; preds = %215
%241 = getelementptr inbounds [512 x i8], [512 x i8]* %19, i64 0, i64 0
%242 = call i64 @strcmp(i8* %241, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.33, i64 0, i64 0))
%243 = icmp ne i64 %242, 0
br i1 %243, label %265, label %244
244: ; preds = %240
%245 = load i8, i8* %20
%246 = load i8*, i8** %16
%247 = getelementptr inbounds i8, i8* %246, i64 4
store i8 %245, i8* %247
%248 = load i32*, i32** %15
%249 = load i32, i32* %248
%250 = add nsw i32 %249, 1
store i32 %250, i32* %248
%251 = load i32*, i32** %17
%252 = getelementptr inbounds i32, i32* %251, i64 4
store i32 %249, i32* %252
store i32 0, i32* %18
br label %253
253: ; preds = %260, %244
%254 = load i32, i32* %18
%255 = icmp slt i32 %254, 7
br i1 %255, label %256, label %263
256: ; preds = %253
%257 = load i32*, i32** %10
%258 = getelementptr inbounds [512 x i8], [512 x i8]* %19, i64 0, i64 0
%259 = call i32 (i32*, i8*, ...) @fscanf(i32* %257, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %258)
br label %260
260: ; preds = %256
%261 = load i32, i32* %18
%262 = add nsw i32 %261, 1
store i32 %262, i32* %18
br label %253
263: ; preds = %253
%264 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.34, i64 0, i64 0))
br label %268
265: ; preds = %240
%266 = getelementptr inbounds [512 x i8], [512 x i8]* %19, i64 0, i64 0
%267 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.35, i64 0, i64 0), i8* %266)
store i8 0, i8* %9
br label %306
268: ; preds = %263
br label %269
269: ; preds = %268, %238
br label %270
270: ; preds = %269, %213
br label %271
271: ; preds = %270, %173
br label %272
272: ; preds = %271, %167
br label %273
273: ; preds = %272
%274 = getelementptr inbounds [512 x i8], [512 x i8]* %19, i64 0, i64 0
%275 = call i64 @strcmp(i8* %274, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.15, i64 0, i64 0))
%276 = icmp ne i64 %275, 0
%277 = xor i1 %276, true
br i1 %277, label %96, label %278
278: ; preds = %273
br label %279
279: ; preds = %283, %278
%280 = getelementptr inbounds [512 x i8], [512 x i8]* %19, i64 0, i64 0
%281 = call i64 @strcmp(i8* %280, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.36, i64 0, i64 0))
%282 = icmp ne i64 %281, 0
br i1 %282, label %283, label %287
283: ; preds = %279
%284 = load i32*, i32** %10
%285 = getelementptr inbounds [512 x i8], [512 x i8]* %19, i64 0, i64 0
%286 = call i32 (i32*, i8*, ...) @fscanf(i32* %284, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %285)
br label %279
287: ; preds = %279
%288 = load i32*, i32** %10
%289 = getelementptr inbounds [512 x i8], [512 x i8]* %19, i64 0, i64 0
%290 = call i32 (i32*, i8*, ...) @fscanf(i32* %288, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %289)
%291 = load i32*, i32** %10
%292 = load i32*, i32** %14
%293 = call i32 (i32*, i8*, ...) @fscanf(i32* %291, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0), i32* %292)
%294 = load i32*, i32** %14
%295 = load i32, i32* %294
%296 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.37, i64 0, i64 0), i32 %295)
br label %297
297: ; preds = %301, %287
%298 = load i32*, i32** %10
%299 = getelementptr inbounds [512 x i8], [512 x i8]* %19, i64 0, i64 0
%300 = call i32 (i32*, i8*, ...) @fscanf(i32* %298, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %299)
br label %301
301: ; preds = %297
%302 = getelementptr inbounds [512 x i8], [512 x i8]* %19, i64 0, i64 0
%303 = call i64 @strcmp(i8* %302, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.38, i64 0, i64 0))
%304 = icmp ne i64 %303, 0
br i1 %304, label %297, label %305
305: ; preds = %301
store i8 1, i8* %9
br label %306
306: ; preds = %305, %265, %65, %36, %27
%307 = load i8, i8* %9
ret i8 %307
}

LLVM IR (-O2):
@.str = [3 x i8] c"%s\00"
@.str.1 = [4 x i8] c"ply\00"
@.str.3 = [7 x i8] c"format\00"
@.str.5 = [18 x i8] c"binary_big_endian\00"
@.str.7 = [21 x i8] c"binary_little_endian\00"
@.str.9 = [6 x i8] c"ascii\00"
@.str.12 = [7 x i8] c"vertex\00"
@.str.13 = [3 x i8] c"%d\00"
@.str.14 = [21 x i8] c"Vertex count : %d\0A\00"
@.str.15 = [9 x i8] c"property\00"
@.str.17 = [6 x i8] c"uchar\00"
@.str.18 = [6 x i8] c"uint8\00"
@.str.19 = [7 x i8] c"uint16\00"
@.str.20 = [4 x i8] c"int\00"
@.str.21 = [6 x i8] c"int32\00"
@.str.22 = [6 x i8] c"float\00"
@.str.23 = [8 x i8] c"float64\00"
@.str.24 = [2 x i8] c"x\00"
@.str.26 = [11 x i8] c"confidence\00"
@.str.28 = [4 x i8] c"red\00"
@.str.29 = [2 x i8] c"r\00"
@.str.31 = [2 x i8] c"u\00"
@.str.33 = [3 x i8] c"nx\00"
@.str.35 = [42 x i8] c"ScanPlyHeader ERROR : Unknown field (%s)\0A\00"
@.str.36 = [8 x i8] c"element\00"
@.str.37 = [21 x i8] c"Faces count : %d\0A\00"
@.str.38 = [11 x i8] c"end_header\00"
@str = [42 x i8] c"ScanPlyHeader ERROR : Unknown file format\00"
@str.39 = [23 x i8] c"File format : ASCII\00"
@str.40 = [17 x i8] c"Reading fields :\00"
@str.41 = [21 x i8] c"\09(x,y,z) coordinates\00"
@str.42 = [12 x i8] c"\09confidence\00"
@str.43 = [7 x i8] c"\09color\00"
@str.44 = [7 x i8] c"\09(u,v)\00"
@str.45 = [20 x i8] c"\09(nx,ny,nz) normals\00"
@str.46 = [40 x i8] c"File format : binary & little-endian\00"
@str.47 = [37 x i8] c"File format : binary & big-endian\00"
@str.48 = [71 x i8] c"ScanPlyHeader ERROR : Invalid input file (line 2 must contains format)\00"
@str.49 = [41 x i8] c"ScanPlyHeader ERROR : Invalid input file\00"
define zeroext i8 @PLY_ScanPlyHeader(i32* nocapture %0, i32* nocapture writeonly %1, i32* nocapture writeonly %2, i32* %3, i32* %4, i32* nocapture %5, i8* nocapture writeonly %6, i32* nocapture writeonly %7) {
%9 = alloca [512 x i8]
%10 = getelementptr inbounds [512 x i8], [512 x i8]* %9, i64 0, i64 0
%11 = call i32 (i32*, i8*, ...) @fscanf(i32* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %10)
%12 = call i64 @strcmp(i8* %10, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%13 = icmp eq i64 %12, 0
br i1 %13, label %16, label %14
14: ; preds = %8
%15 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.49, i64 0, i64 0))
br label %164
16: ; preds = %8
%17 = call i32 (i32*, i8*, ...) @fscanf(i32* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %10)
%18 = call i64 @strcmp(i8* %10, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
%19 = icmp eq i64 %18, 0
br i1 %19, label %22, label %20
20: ; preds = %16
%21 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str.48, i64 0, i64 0))
br label %164
22: ; preds = %16
%23 = call i32 (i32*, i8*, ...) @fscanf(i32* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %10)
%24 = call i64 @strcmp(i8* %10, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0))
%25 = icmp eq i64 %24, 0
br i1 %25, label %34, label %26
26: ; preds = %22
%27 = call i64 @strcmp(i8* %10, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0))
%28 = icmp eq i64 %27, 0
br i1 %28, label %34, label %29
29: ; preds = %26
%30 = call i64 @strcmp(i8* %10, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0))
%31 = icmp eq i64 %30, 0
br i1 %31, label %34, label %32
32: ; preds = %29
%33 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str, i64 0, i64 0))
br label %164
34: ; preds = %29, %26, %22
%35 = phi i32 [ 0, %22 ], [ 1, %26 ], [ 2, %29 ]
%36 = phi i32 [ 0, %22 ], [ 0, %26 ], [ 1, %29 ]
%37 = phi i8* [ getelementptr inbounds ([37 x i8], [37 x i8]* @str.47, i64 0, i64 0), %22 ], [ getelementptr inbounds ([40 x i8], [40 x i8]* @str.46, i64 0, i64 0), %26 ], [ getelementptr inbounds ([23 x i8], [23 x i8]* @str.39, i64 0, i64 0), %29 ]
store i32 %35, i32* %1
store i32 %36, i32* %2
%38 = call i32 @puts(i8* dereferenceable(1) %37)
br label %39
39: ; preds = %39, %34
%40 = call i32 (i32*, i8*, ...) @fscanf(i32* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %10)
%41 = call i64 @strcmp(i8* %10, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i64 0, i64 0))
%42 = icmp eq i64 %41, 0
br i1 %42, label %43, label %39
43: ; preds = %39
%44 = call i32 (i32*, i8*, ...) @fscanf(i32* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0), i32* %3)
%45 = load i32, i32* %3
%46 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.14, i64 0, i64 0), i32 %45)
br label %47
47: ; preds = %47, %43
%48 = call i32 (i32*, i8*, ...) @fscanf(i32* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %10)
%49 = call i64 @strcmp(i8* %10, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.15, i64 0, i64 0))
%50 = icmp eq i64 %49, 0
br i1 %50, label %51, label %47
51: ; preds = %47
%52 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.40, i64 0, i64 0))
store i32 0, i32* %5
%53 = getelementptr inbounds i8, i8* %6, i64 4
%54 = getelementptr inbounds i32, i32* %7, i64 4
%55 = getelementptr inbounds i8, i8* %6, i64 3
%56 = getelementptr inbounds i32, i32* %7, i64 3
%57 = getelementptr inbounds i8, i8* %6, i64 2
%58 = getelementptr inbounds i32, i32* %7, i64 2
%59 = getelementptr inbounds i8, i8* %6, i64 1
%60 = getelementptr inbounds i32, i32* %7, i64 1
br label %61
61: ; preds = %142, %51
%62 = call i32 (i32*, i8*, ...) @fscanf(i32* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %10)
%63 = call i64 @strcmp(i8* %10, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.17, i64 0, i64 0))
%64 = icmp eq i64 %63, 0
br i1 %64, label %84, label %65
65: ; preds = %61
%66 = call i64 @strcmp(i8* %10, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.18, i64 0, i64 0))
%67 = icmp eq i64 %66, 0
br i1 %67, label %84, label %68
68: ; preds = %65
%69 = call i64 @strcmp(i8* %10, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.19, i64 0, i64 0))
%70 = icmp eq i64 %69, 0
br i1 %70, label %84, label %71
71: ; preds = %68
%72 = call i64 @strcmp(i8* %10, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.20, i64 0, i64 0))
%73 = icmp eq i64 %72, 0
br i1 %73, label %84, label %74
74: ; preds = %71
%75 = call i64 @strcmp(i8* %10, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.21, i64 0, i64 0))
%76 = icmp eq i64 %75, 0
br i1 %76, label %84, label %77
77: ; preds = %74
%78 = call i64 @strcmp(i8* %10, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.22, i64 0, i64 0))
%79 = icmp eq i64 %78, 0
br i1 %79, label %84, label %80
80: ; preds = %77
%81 = call i64 @strcmp(i8* %10, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.23, i64 0, i64 0))
%82 = icmp eq i64 %81, 0
%83 = select i1 %82, i8 5, i8 0
br label %84
84: ; preds = %80, %77, %74, %71, %68, %65, %61
%85 = phi i8 [ 1, %61 ], [ 1, %65 ], [ 2, %68 ], [ 3, %71 ], [ 3, %74 ], [ 4, %77 ], [ %83, %80 ]
%86 = call i32 (i32*, i8*, ...) @fscanf(i32* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %10)
%87 = call i64 @strcmp(i8* %10, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.24, i64 0, i64 0))
%88 = icmp eq i64 %87, 0
br i1 %88, label %89, label %98
89: ; preds = %84
store i8 %85, i8* %6
%90 = load i32, i32* %5
%91 = add nsw i32 %90, 1
store i32 %91, i32* %5
store i32 %90, i32* %7
%92 = call i32 (i32*, i8*, ...) @fscanf(i32* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %10)
%93 = call i32 (i32*, i8*, ...) @fscanf(i32* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %10)
%94 = call i32 (i32*, i8*, ...) @fscanf(i32* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %10)
%95 = call i32 (i32*, i8*, ...) @fscanf(i32* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %10)
%96 = call i32 (i32*, i8*, ...) @fscanf(i32* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %10)
%97 = call i32 (i32*, i8*, ...) @fscanf(i32* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %10)
br label %142
98: ; preds = %84
%99 = call i64 @strcmp(i8* %10, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.26, i64 0, i64 0))
%100 = icmp eq i64 %99, 0
br i1 %100, label %101, label %104
101: ; preds = %98
store i8 %85, i8* %59
%102 = load i32, i32* %5
%103 = add nsw i32 %102, 1
store i32 %103, i32* %5
store i32 %102, i32* %60
br label %142
104: ; preds = %98
%105 = call i64 @strcmp(i8* %10, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.28, i64 0, i64 0))
%106 = icmp eq i64 %105, 0
br i1 %106, label %110, label %107
107: ; preds = %104
%108 = call i64 @strcmp(i8* %10, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.29, i64 0, i64 0))
%109 = icmp eq i64 %108, 0
br i1 %109, label %110, label %119
110: ; preds = %107, %104
store i8 %85, i8* %57
%111 = load i32, i32* %5
%112 = add nsw i32 %111, 1
store i32 %112, i32* %5
store i32 %111, i32* %58
%113 = call i32 (i32*, i8*, ...) @fscanf(i32* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %10)
%114 = call i32 (i32*, i8*, ...) @fscanf(i32* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %10)
%115 = call i32 (i32*, i8*, ...) @fscanf(i32* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %10)
%116 = call i32 (i32*, i8*, ...) @fscanf(i32* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %10)
%117 = call i32 (i32*, i8*, ...) @fscanf(i32* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %10)
%118 = call i32 (i32*, i8*, ...) @fscanf(i32* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %10)
br label %142
119: ; preds = %107
%120 = call i64 @strcmp(i8* %10, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.31, i64 0, i64 0))
%121 = icmp eq i64 %120, 0
br i1 %121, label %122, label %128
122: ; preds = %119
store i8 %85, i8* %55
%123 = load i32, i32* %5
%124 = add nsw i32 %123, 1
store i32 %124, i32* %5
store i32 %123, i32* %56
%125 = call i32 (i32*, i8*, ...) @fscanf(i32* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %10)
%126 = call i32 (i32*, i8*, ...) @fscanf(i32* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %10)
%127 = call i32 (i32*, i8*, ...) @fscanf(i32* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %10)
br label %142
128: ; preds = %119
%129 = call i64 @strcmp(i8* %10, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.33, i64 0, i64 0))
%130 = icmp eq i64 %129, 0
br i1 %130, label %131, label %140
131: ; preds = %128
store i8 %85, i8* %53
%132 = load i32, i32* %5
%133 = add nsw i32 %132, 1
store i32 %133, i32* %5
store i32 %132, i32* %54
%134 = call i32 (i32*, i8*, ...) @fscanf(i32* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %10)
%135 = call i32 (i32*, i8*, ...) @fscanf(i32* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %10)
%136 = call i32 (i32*, i8*, ...) @fscanf(i32* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %10)
%137 = call i32 (i32*, i8*, ...) @fscanf(i32* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %10)
%138 = call i32 (i32*, i8*, ...) @fscanf(i32* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %10)
%139 = call i32 (i32*, i8*, ...) @fscanf(i32* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %10)
br label %142
140: ; preds = %128
%141 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str.35, i64 0, i64 0), i8* %10)
br label %164
142: ; preds = %89, %110, %131, %122, %101
%143 = phi i8* [ getelementptr inbounds ([21 x i8], [21 x i8]* @str.41, i64 0, i64 0), %89 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @str.43, i64 0, i64 0), %110 ], [ getelementptr inbounds ([20 x i8], [20 x i8]* @str.45, i64 0, i64 0), %131 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @str.44, i64 0, i64 0), %122 ], [ getelementptr inbounds ([12 x i8], [12 x i8]* @str.42, i64 0, i64 0), %101 ]
%144 = call i32 (i32*, i8*, ...) @fscanf(i32* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %10)
%145 = call i32 @puts(i8* dereferenceable(1) %143)
%146 = call i64 @strcmp(i8* %10, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.15, i64 0, i64 0))
%147 = icmp eq i64 %146, 0
br i1 %147, label %61, label %148
148: ; preds = %142
%149 = call i64 @strcmp(i8* %10, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.36, i64 0, i64 0))
%150 = icmp eq i64 %149, 0
br i1 %150, label %155, label %151
151: ; preds = %148, %151
%152 = call i32 (i32*, i8*, ...) @fscanf(i32* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %10)
%153 = call i64 @strcmp(i8* %10, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.36, i64 0, i64 0))
%154 = icmp eq i64 %153, 0
br i1 %154, label %155, label %151
155: ; preds = %151, %148
%156 = call i32 (i32*, i8*, ...) @fscanf(i32* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %10)
%157 = call i32 (i32*, i8*, ...) @fscanf(i32* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0), i32* %4)
%158 = load i32, i32* %4
%159 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.37, i64 0, i64 0), i32 %158)
br label %160
160: ; preds = %160, %155
%161 = call i32 (i32*, i8*, ...) @fscanf(i32* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %10)
%162 = call i64 @strcmp(i8* %10, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.38, i64 0, i64 0))
%163 = icmp eq i64 %162, 0
br i1 %163, label %164, label %160
164: ; preds = %160, %140, %32, %20, %14
%165 = phi i8 [ 0, %14 ], [ 0, %20 ], [ 0, %140 ], [ 0, %32 ], [ 1, %160 ]
ret i8 %165
}