#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 */
float *calloc(int, int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
scalar_t__ fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char const *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char const *);
int /*<<< orphan*/ free(float *);
int /*<<< orphan*/ rewind(int /*<<< orphan*/ *);
int /*<<< orphan*/ sscanf(char *, char *, ...);
int /*<<< orphan*/ stderr;
int obj_parse(const char *file_name, float **points_ptr, float **normals_ptr,
              int *face_count_ptr) {
  FILE *fp = fopen(file_name, "r");
  if (!fp) {
    fprintf(stderr, "ERROR: could not find file %s\n", file_name);
    return 0;
  }
  int vp_count = 0;
  int vn_count = 0;
  int face_count = 0;
  char line[1024];
  while (fgets(line, 1024, fp)) {
    if (line[0] == 'v') {
      if (line[1] == ' ') {
        vp_count++;
      } else if (line[1] == 'n') {
        vn_count++;
      }
    } else if (line[0] == 'f') {
      face_count++;
    }
  }
  rewind(fp);
  float *vp_array = calloc(vp_count * 3, sizeof(float));
  float *vn_array = calloc(vn_count * 3, sizeof(float));
  int vp_index = 0;
  int vn_index = 0;
  int pt_index = 0;
  float *points = calloc(3 * face_count * 3, sizeof(float));
  float *normals = calloc(3 * face_count * 3, sizeof(float));
  *points_ptr = points;
  *normals_ptr = normals;
  *face_count_ptr = face_count;
  while (fgets(line, 1024, fp)) {
    if (line[0] == 'v') {
      if (line[1] == ' ') {
        float x = 0.f, y = 0.f, z = 0.f;
        sscanf(line, "v %f %f %f", &x, &y, &z);
        vp_array[vp_index++] = x;
        vp_array[vp_index++] = y;
        vp_array[vp_index++] = z;
      } else if (line[1] == 'n') {
        float x = 0.f, y = 0.f, z = 0.f;
        sscanf(line, "vn %f %f %f", &x, &y, &z);
        vn_array[vn_index++] = x;
        vn_array[vn_index++] = y;
        vn_array[vn_index++] = z;
      }
    } else if (line[0] == 'f') {
      int vp[3], vn[3];
      sscanf(line, "f %i//%i %i//%i %i//%i", &vp[0], &vn[0], &vp[1], &vn[1],
             &vp[2], &vn[2]);
      for (int fi = 0; fi < 3; fi++) {
        int vpi = vp[fi] - 1;
        int vni = vn[fi] - 1;
        points[pt_index] = vp_array[vpi * 3];
        points[pt_index + 1] = vp_array[vpi * 3 + 1];
        points[pt_index + 2] = vp_array[vpi * 3 + 2];
        normals[pt_index] = vn_array[vni * 3];
        normals[pt_index + 1] = vn_array[vni * 3 + 1];
        normals[pt_index + 2] = vn_array[vni * 3 + 2];
        pt_index += 3;
      }
    }
  }
  fclose(fp);
  free(vp_array);
  free(vn_array);
  return 1;
}


x86 assembly (clang, -O0):
<obj_parse>:
push   %rbp
mov    %rsp,%rbp
sub    $0x4c0,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xe5a(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x30(%rbp)
cmpq   $0x0,-0x30(%rbp)
jne    11df <obj_parse+0x5f>
mov    0x2e1f(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rdx
lea    0xe34(%rip),%rsi
call   1080 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    172e <obj_parse+0x5ae>
movl   $0x0,-0x34(%rbp)
movl   $0x0,-0x38(%rbp)
movl   $0x0,-0x3c(%rbp)
lea    -0x440(%rbp),%rdi
mov    -0x30(%rbp),%rdx
mov    $0x400,%esi
call   1060 <fgets@plt>
cmp    $0x0,%rax
je     1287 <obj_parse+0x107>
movsbl -0x440(%rbp),%eax
cmp    $0x76,%eax
jne    1264 <obj_parse+0xe4>
movsbl -0x43f(%rbp),%eax
cmp    $0x20,%eax
jne    1241 <obj_parse+0xc1>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    125f <obj_parse+0xdf>
movsbl -0x43f(%rbp),%eax
cmp    $0x6e,%eax
jne    125a <obj_parse+0xda>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    125f <obj_parse+0xdf>
jmp    1282 <obj_parse+0x102>
movsbl -0x440(%rbp),%eax
cmp    $0x66,%eax
jne    127d <obj_parse+0xfd>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1282 <obj_parse+0x102>
jmp    11f4 <obj_parse+0x74>
mov    -0x30(%rbp),%rdi
call   1050 <rewind@plt>
imul   $0x3,-0x34(%rbp),%edi
mov    $0x4,%esi
call   1070 <calloc@plt>
mov    %rax,-0x448(%rbp)
imul   $0x3,-0x38(%rbp),%edi
mov    $0x4,%esi
call   1070 <calloc@plt>
mov    %rax,-0x450(%rbp)
movl   $0x0,-0x454(%rbp)
movl   $0x0,-0x458(%rbp)
movl   $0x0,-0x45c(%rbp)
imul   $0x3,-0x3c(%rbp),%eax
imul   $0x3,%eax,%edi
mov    $0x4,%esi
call   1070 <calloc@plt>
mov    %rax,-0x468(%rbp)
imul   $0x3,-0x3c(%rbp),%eax
imul   $0x3,%eax,%edi
mov    $0x4,%esi
call   1070 <calloc@plt>
mov    %rax,-0x470(%rbp)
mov    -0x468(%rbp),%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x470(%rbp),%rcx
mov    -0x20(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x3c(%rbp),%ecx
mov    -0x28(%rbp),%rax
mov    %ecx,(%rax)
lea    -0x440(%rbp),%rdi
mov    -0x30(%rbp),%rdx
mov    $0x400,%esi
call   1060 <fgets@plt>
cmp    $0x0,%rax
je     1706 <obj_parse+0x586>
movsbl -0x440(%rbp),%eax
cmp    $0x76,%eax
jne    1511 <obj_parse+0x391>
movsbl -0x43f(%rbp),%eax
cmp    $0x20,%eax
jne    1434 <obj_parse+0x2b4>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x474(%rbp)
ff
xorps  %xmm0,%xmm0
movss  %xmm0,-0x478(%rbp)
ff
xorps  %xmm0,%xmm0
movss  %xmm0,-0x47c(%rbp)
ff
lea    -0x440(%rbp),%rdi
lea    0xc86(%rip),%rsi
lea    -0x474(%rbp),%rdx
lea    -0x478(%rbp),%rcx
lea    -0x47c(%rbp),%r8
mov    $0x0,%al
call   1090 <sscanf@plt>
movss  -0x474(%rbp),%xmm0
ff
mov    -0x448(%rbp),%rax
mov    -0x454(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x454(%rbp)
movslq %ecx,%rcx
movss  %xmm0,(%rax,%rcx,4)
movss  -0x478(%rbp),%xmm0
ff
mov    -0x448(%rbp),%rax
mov    -0x454(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x454(%rbp)
movslq %ecx,%rcx
movss  %xmm0,(%rax,%rcx,4)
movss  -0x47c(%rbp),%xmm0
ff
mov    -0x448(%rbp),%rax
mov    -0x454(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x454(%rbp)
movslq %ecx,%rcx
movss  %xmm0,(%rax,%rcx,4)
jmp    150c <obj_parse+0x38c>
movsbl -0x43f(%rbp),%eax
cmp    $0x6e,%eax
jne    1507 <obj_parse+0x387>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x480(%rbp)
ff
xorps  %xmm0,%xmm0
movss  %xmm0,-0x484(%rbp)
ff
xorps  %xmm0,%xmm0
movss  %xmm0,-0x488(%rbp)
ff
lea    -0x440(%rbp),%rdi
lea    0xbb9(%rip),%rsi
lea    -0x480(%rbp),%rdx
lea    -0x484(%rbp),%rcx
lea    -0x488(%rbp),%r8
mov    $0x0,%al
call   1090 <sscanf@plt>
movss  -0x480(%rbp),%xmm0
ff
mov    -0x450(%rbp),%rax
mov    -0x458(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x458(%rbp)
movslq %ecx,%rcx
movss  %xmm0,(%rax,%rcx,4)
movss  -0x484(%rbp),%xmm0
ff
mov    -0x450(%rbp),%rax
mov    -0x458(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x458(%rbp)
movslq %ecx,%rcx
movss  %xmm0,(%rax,%rcx,4)
movss  -0x488(%rbp),%xmm0
ff
mov    -0x450(%rbp),%rax
mov    -0x458(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x458(%rbp)
movslq %ecx,%rcx
movss  %xmm0,(%rax,%rcx,4)
jmp    150c <obj_parse+0x38c>
jmp    1701 <obj_parse+0x581>
movsbl -0x440(%rbp),%eax
cmp    $0x66,%eax
jne    16fc <obj_parse+0x57c>
lea    -0x440(%rbp),%rdi
lea    -0x494(%rbp),%rdx
lea    -0x4a0(%rbp),%rcx
lea    -0x494(%rbp),%r8
add    $0x4,%r8
lea    -0x4a0(%rbp),%r9
add    $0x4,%r9
lea    -0x494(%rbp),%r10
add    $0x8,%r10
lea    -0x4a0(%rbp),%rax
add    $0x8,%rax
lea    0xacf(%rip),%rsi
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x0,%al
call   1090 <sscanf@plt>
movl   $0x0,-0x4a4(%rbp)
cmpl   $0x3,-0x4a4(%rbp)
jge    16f7 <obj_parse+0x577>
movslq -0x4a4(%rbp),%rax
mov    -0x494(%rbp,%rax,4),%eax
sub    $0x1,%eax
mov    %eax,-0x4a8(%rbp)
movslq -0x4a4(%rbp),%rax
mov    -0x4a0(%rbp,%rax,4),%eax
sub    $0x1,%eax
mov    %eax,-0x4ac(%rbp)
mov    -0x448(%rbp),%rax
imul   $0x3,-0x4a8(%rbp),%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x468(%rbp),%rax
movslq -0x45c(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x448(%rbp),%rax
imul   $0x3,-0x4a8(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x468(%rbp),%rax
mov    -0x45c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x448(%rbp),%rax
imul   $0x3,-0x4a8(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x468(%rbp),%rax
mov    -0x45c(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x450(%rbp),%rax
imul   $0x3,-0x4ac(%rbp),%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x470(%rbp),%rax
movslq -0x45c(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x450(%rbp),%rax
imul   $0x3,-0x4ac(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x470(%rbp),%rax
mov    -0x45c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x450(%rbp),%rax
imul   $0x3,-0x4ac(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x470(%rbp),%rax
mov    -0x45c(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x45c(%rbp),%eax
add    $0x3,%eax
mov    %eax,-0x45c(%rbp)
mov    -0x4a4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4a4(%rbp)
jmp    1583 <obj_parse+0x403>
jmp    16fc <obj_parse+0x57c>
jmp    1701 <obj_parse+0x581>
jmp    132d <obj_parse+0x1ad>
mov    -0x30(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x448(%rbp),%rdi
call   1030 <free@plt>
mov    -0x450(%rbp),%rdi
call   1030 <free@plt>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x4c0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<obj_parse>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x448,%rsp
mov    %rcx,%r14
mov    %rdx,%r15
mov    %rsi,%r12
mov    %rdi,%rbp
lea    0xe5c(%rip),%rsi
call   10a0 <fopen@plt>
test   %rax,%rax
je     122e <obj_parse+0xae>
mov    %rax,%rbx
mov    %r12,0x28(%rsp)
mov    %r15,0x30(%rsp)
mov    %r14,0x38(%rsp)
lea    0x40(%rsp),%rdi
mov    $0x400,%esi
mov    %rax,%rdx
call   1060 <fgets@plt>
test   %rax,%rax
je     124d <obj_parse+0xcd>
xor    %r15d,%r15d
lea    0x40(%rsp),%r14
xor    %r12d,%r12d
xor    %ebp,%ebp
jmp    1208 <obj_parse+0x88>
nopw   0x0(%rax,%rax,1)
add    $0x1,%ebp
mov    %r14,%rdi
mov    $0x400,%esi
mov    %rbx,%rdx
call   1060 <fgets@plt>
test   %rax,%rax
je     1255 <obj_parse+0xd5>
movzbl 0x40(%rsp),%eax
cmp    $0x66,%al
je     11f0 <obj_parse+0x70>
cmp    $0x76,%al
jne    11f3 <obj_parse+0x73>
movzbl 0x41(%rsp),%eax
cmp    $0x6e,%al
je     1228 <obj_parse+0xa8>
cmp    $0x20,%al
jne    11f3 <obj_parse+0x73>
add    $0x1,%r15d
jmp    11f3 <obj_parse+0x73>
add    $0x1,%r12d
jmp    11f3 <obj_parse+0x73>
mov    0x2dab(%rip),%rax
mov    (%rax),%edi
lea    0xdc4(%rip),%rsi
mov    %rbp,%rdx
call   1080 <fprintf@plt>
xor    %eax,%eax
jmp    15ea <obj_parse+0x46a>
xor    %ebp,%ebp
xor    %r12d,%r12d
xor    %r15d,%r15d
mov    %rbx,%rdi
call   1050 <rewind@plt>
lea    (%r15,%r15,2),%edi
mov    $0x4,%esi
call   1070 <calloc@plt>
mov    %rax,%r15
lea    (%r12,%r12,2),%edi
mov    $0x4,%esi
call   1070 <calloc@plt>
mov    %rax,%r14
lea    0x0(%rbp,%rbp,8),%r13d
mov    %r13d,%edi
mov    $0x4,%esi
call   1070 <calloc@plt>
mov    %rax,%r12
mov    %r13d,%edi
mov    $0x4,%esi
call   1070 <calloc@plt>
mov    %rax,%r13
mov    0x28(%rsp),%rax
mov    %r12,(%rax)
mov    0x30(%rsp),%rax
mov    %r13,(%rax)
mov    0x38(%rsp),%rax
mov    %ebp,(%rax)
lea    0x40(%rsp),%rdi
mov    $0x400,%esi
mov    %rbx,0x38(%rsp)
mov    %rbx,%rdx
call   1060 <fgets@plt>
test   %rax,%rax
je     15cb <obj_parse+0x44b>
lea    0x40(%rsp),%rbx
xor    %ebp,%ebp
movl   $0x0,0x30(%rsp)
movl   $0x0,0x28(%rsp)
jmp    14cf <obj_parse+0x34f>
nopw   0x0(%rax,%rax,1)
mov    %rbx,%rdi
lea    0xd2e(%rip),%rsi
lea    0x1c(%rsp),%rdx
lea    0x10(%rsp),%rcx
lea    0x20(%rsp),%r8
lea    0x14(%rsp),%r9
xor    %eax,%eax
mov    %rbx,%r10
lea    0x18(%rsp),%rbx
push   %rbx
lea    0x2c(%rsp),%rbx
push   %rbx
mov    %r10,%rbx
call   1090 <sscanf@plt>
add    $0x10,%rsp
movslq %ebp,%rbp
mov    0x1c(%rsp),%eax
mov    0x10(%rsp),%ecx
lea    -0x3(%rax,%rax,2),%edx
movslq %edx,%rdx
movss  (%r15,%rdx,4),%xmm0
movss  %xmm0,(%r12,%rbp,4)
lea    -0x2(%rax,%rax,2),%edx
movslq %edx,%rdx
movss  (%r15,%rdx,4),%xmm0
movss  %xmm0,0x4(%r12,%rbp,4)
lea    -0x1(%rax,%rax,2),%eax
cltq
movss  (%r15,%rax,4),%xmm0
movss  %xmm0,0x8(%r12,%rbp,4)
lea    -0x3(%rcx,%rcx,2),%eax
cltq
movss  (%r14,%rax,4),%xmm0
movss  %xmm0,0x0(%r13,%rbp,4)
lea    -0x2(%rcx,%rcx,2),%eax
cltq
movss  (%r14,%rax,4),%xmm0
movss  %xmm0,0x4(%r13,%rbp,4)
lea    -0x1(%rcx,%rcx,2),%eax
cltq
movss  (%r14,%rax,4),%xmm0
movss  %xmm0,0x8(%r13,%rbp,4)
mov    0x20(%rsp),%eax
mov    0x14(%rsp),%ecx
lea    -0x3(%rax,%rax,2),%edx
movslq %edx,%rdx
movss  (%r15,%rdx,4),%xmm0
movss  %xmm0,0xc(%r12,%rbp,4)
lea    -0x2(%rax,%rax,2),%edx
movslq %edx,%rdx
movss  (%r15,%rdx,4),%xmm0
movss  %xmm0,0x10(%r12,%rbp,4)
lea    -0x1(%rax,%rax,2),%eax
cltq
movss  (%r15,%rax,4),%xmm0
movss  %xmm0,0x14(%r12,%rbp,4)
lea    -0x3(%rcx,%rcx,2),%eax
cltq
movss  (%r14,%rax,4),%xmm0
movss  %xmm0,0xc(%r13,%rbp,4)
lea    -0x2(%rcx,%rcx,2),%eax
cltq
movss  (%r14,%rax,4),%xmm0
movss  %xmm0,0x10(%r13,%rbp,4)
lea    -0x1(%rcx,%rcx,2),%eax
cltq
movss  (%r14,%rax,4),%xmm0
movss  %xmm0,0x14(%r13,%rbp,4)
mov    0x24(%rsp),%eax
mov    0x18(%rsp),%ecx
lea    -0x3(%rax,%rax,2),%edx
movslq %edx,%rdx
movss  (%r15,%rdx,4),%xmm0
movss  %xmm0,0x18(%r12,%rbp,4)
lea    -0x2(%rax,%rax,2),%edx
movslq %edx,%rdx
movss  (%r15,%rdx,4),%xmm0
movss  %xmm0,0x1c(%r12,%rbp,4)
lea    -0x1(%rax,%rax,2),%eax
cltq
movss  (%r15,%rax,4),%xmm0
movss  %xmm0,0x20(%r12,%rbp,4)
lea    -0x3(%rcx,%rcx,2),%eax
cltq
movss  (%r14,%rax,4),%xmm0
movss  %xmm0,0x18(%r13,%rbp,4)
lea    -0x2(%rcx,%rcx,2),%eax
cltq
movss  (%r14,%rax,4),%xmm0
movss  %xmm0,0x1c(%r13,%rbp,4)
lea    -0x1(%rcx,%rcx,2),%eax
cltq
movss  (%r14,%rax,4),%xmm0
movss  %xmm0,0x20(%r13,%rbp,4)
add    $0x9,%ebp
mov    %rbx,%rdi
mov    $0x400,%esi
mov    0x38(%rsp),%rdx
call   1060 <fgets@plt>
test   %rax,%rax
je     15cb <obj_parse+0x44b>
movzbl 0x40(%rsp),%eax
cmp    $0x66,%al
je     1300 <obj_parse+0x180>
cmp    $0x76,%al
jne    14b4 <obj_parse+0x334>
movzbl 0x41(%rsp),%eax
cmp    $0x6e,%al
je     155c <obj_parse+0x3dc>
cmp    $0x20,%al
jne    14b4 <obj_parse+0x334>
movl   $0x0,0x1c(%rsp)
movl   $0x0,0x10(%rsp)
movl   $0x0,0xc(%rsp)
mov    %rbx,%rdi
lea    0xb12(%rip),%rsi
lea    0x1c(%rsp),%rdx
lea    0x10(%rsp),%rcx
lea    0xc(%rsp),%r8
xor    %eax,%eax
call   1090 <sscanf@plt>
movss  0x1c(%rsp),%xmm0
movslq 0x28(%rsp),%rax
movss  %xmm0,(%r15,%rax,4)
movss  0x10(%rsp),%xmm0
movss  %xmm0,0x4(%r15,%rax,4)
movss  0xc(%rsp),%xmm0
lea    0x3(%rax),%ecx
mov    %ecx,0x28(%rsp)
movss  %xmm0,0x8(%r15,%rax,4)
jmp    14b4 <obj_parse+0x334>
movl   $0x0,0x1c(%rsp)
movl   $0x0,0x10(%rsp)
movl   $0x0,0xc(%rsp)
mov    %rbx,%rdi
lea    0xaae(%rip),%rsi
lea    0x1c(%rsp),%rdx
lea    0x10(%rsp),%rcx
lea    0xc(%rsp),%r8
xor    %eax,%eax
call   1090 <sscanf@plt>
movss  0x1c(%rsp),%xmm0
movslq 0x30(%rsp),%rax
movss  %xmm0,(%r14,%rax,4)
movss  0x10(%rsp),%xmm0
movss  %xmm0,0x4(%r14,%rax,4)
movss  0xc(%rsp),%xmm0
lea    0x3(%rax),%ecx
mov    %ecx,0x30(%rsp)
movss  %xmm0,0x8(%r14,%rax,4)
jmp    14b4 <obj_parse+0x334>
mov    0x38(%rsp),%rdi
call   1040 <fclose@plt>
mov    %r15,%rdi
call   1030 <free@plt>
mov    %r14,%rdi
call   1030 <free@plt>
mov    $0x1,%eax
add    $0x448,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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