#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*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ feof(int /*<<< orphan*/ *);
int /*<<< orphan*/ fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ printf(char *, ...);
scalar_t__ sscanf(char *, char *, float *, unsigned int *, char *, ...);
int /*<<< orphan*/ strcmp(char *, char *);
int main(int argc, char *argv[]) {
  char line_in[256];
  float rtime;
  char id_name[255];
  unsigned int ac_id;
  unsigned int byte_mask;
  int utm_east;
  int utm_north;
  int course;
  int alt;
  int speed;
  int climb;
  unsigned int itow;
  unsigned int utm_zone;
  unsigned int gps_nb_err;
  unsigned int phi;
  unsigned int psi;
  unsigned int theta;
  unsigned int nr_utm_east;
  unsigned int nr_utm_north;
  unsigned int nr_utm_zone;
  unsigned int humid;
  unsigned int temp;
  char got_navref = 0;
  FILE *fd;
  if (argc != 2) {
    printf("plot3dparse 'flight_file.data' > output.dat\n");
    exit(0);
  }
  fd = fopen(argv[1], "r");
  if (!fd)
    exit(0);
  while (!feof(fd)) {
    fgets(line_in, 256, fd);
    if (sscanf(line_in, "%e %i %s", &rtime, &ac_id, id_name)) {
      if (!strcmp("NAVIGATION_REF", id_name)) {
        sscanf(line_in, "%e %i %s %i %i %i\n", &rtime, &ac_id, id_name,
               &nr_utm_east, &nr_utm_north, &nr_utm_zone);
        got_navref = 1;
      }
      if (!strcmp("GPS", id_name)) {
        sscanf(line_in, "%e %i %s %i %i %i %i %i %i %i %i %i %i\n", &rtime,
               &ac_id, id_name, &byte_mask, &utm_east, &utm_north, &course,
               &alt, &speed, &climb, &itow, &utm_zone, &gps_nb_err);
      }
      if (!strcmp("ATTITUDE", id_name)) {
        sscanf(line_in, "%e %i %s %i %i %i\n", &rtime, &ac_id, id_name, &phi,
               &psi, &theta);
        if (got_navref)
          printf("%i %i %i %i\n\n", utm_east / 100 - nr_utm_east,
                 utm_north / 100 - nr_utm_north, alt / 100, phi);
      }
    }
  }
  fclose(fd);
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x2e8,%rsp
movl   $0x0,-0x2c(%rbp)
mov    %edi,-0x30(%rbp)
mov    %rsi,-0x38(%rbp)
movb   $0x0,-0x29d(%rbp)
cmpl   $0x2,-0x30(%rbp)
je     11c8 <main+0x48>
lea    0xe46(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %edi,%edi
call   10a0 <exit@plt>
mov    -0x38(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe56(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,-0x2a8(%rbp)
cmpq   $0x0,-0x2a8(%rbp)
jne    11f8 <main+0x78>
xor    %edi,%edi
call   10a0 <exit@plt>
jmp    11fd <main+0x7d>
mov    -0x2a8(%rbp),%rdi
call   1070 <feof@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    121e <main+0x9e>
jmp    1484 <main+0x304>
lea    -0x140(%rbp),%rdi
mov    -0x2a8(%rbp),%rdx
mov    $0x100,%esi
call   1050 <fgets@plt>
lea    -0x140(%rbp),%rdi
lea    -0x250(%rbp),%r8
lea    0xde4(%rip),%rsi
lea    -0x144(%rbp),%rdx
lea    -0x254(%rbp),%rcx
mov    $0x0,%al
call   1080 <sscanf@plt>
cmp    $0x0,%rax
je     147f <main+0x2ff>
lea    -0x250(%rbp),%rsi
lea    0xdc0(%rip),%rdi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
jne    12d5 <main+0x155>
lea    -0x140(%rbp),%rdi
lea    -0x250(%rbp),%r8
lea    0xdac(%rip),%rsi
lea    -0x144(%rbp),%rdx
lea    -0x254(%rbp),%rcx
lea    -0x28c(%rbp),%r9
lea    -0x290(%rbp),%r10
lea    -0x294(%rbp),%rax
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x0,%al
call   1080 <sscanf@plt>
movb   $0x1,-0x29d(%rbp)
lea    -0x250(%rbp),%rsi
lea    0xd77(%rip),%rdi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
jne    13a9 <main+0x229>
lea    -0x140(%rbp),%rdi
lea    -0x250(%rbp),%r8
lea    0xd58(%rip),%rsi
lea    -0x144(%rbp),%rdx
lea    -0x254(%rbp),%rcx
lea    -0x258(%rbp),%r9
lea    -0x25c(%rbp),%rax
mov    %rax,-0x2b8(%rbp)
lea    -0x260(%rbp),%r13
lea    -0x264(%rbp),%r12
lea    -0x268(%rbp),%r15
lea    -0x26c(%rbp),%r14
lea    -0x270(%rbp),%rbx
lea    -0x274(%rbp),%r11
lea    -0x278(%rbp),%r10
lea    -0x27c(%rbp),%rax
mov    %rax,-0x2b0(%rbp)
mov    -0x2b8(%rbp),%rax
mov    %rax,(%rsp)
mov    -0x2b0(%rbp),%rax
mov    %r13,0x8(%rsp)
mov    %r12,0x10(%rsp)
mov    %r15,0x18(%rsp)
mov    %r14,0x20(%rsp)
mov    %rbx,0x28(%rsp)
mov    %r11,0x30(%rsp)
mov    %r10,0x38(%rsp)
mov    %rax,0x40(%rsp)
mov    $0x0,%al
call   1080 <sscanf@plt>
lea    -0x250(%rbp),%rsi
lea    0xccf(%rip),%rdi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
jne    147a <main+0x2fa>
lea    -0x140(%rbp),%rdi
lea    -0x250(%rbp),%r8
lea    0xc6d(%rip),%rsi
lea    -0x144(%rbp),%rdx
lea    -0x254(%rbp),%rcx
lea    -0x280(%rbp),%r9
lea    -0x284(%rbp),%r10
lea    -0x288(%rbp),%rax
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x0,%al
call   1080 <sscanf@plt>
cmpb   $0x0,-0x29d(%rbp)
je     1475 <main+0x2f5>
mov    -0x25c(%rbp),%eax
mov    $0x64,%ecx
cltd
idiv   %ecx
mov    %eax,%esi
sub    -0x28c(%rbp),%esi
mov    -0x260(%rbp),%eax
mov    $0x64,%ecx
cltd
idiv   %ecx
sub    -0x290(%rbp),%eax
mov    %eax,-0x2bc(%rbp)
mov    -0x268(%rbp),%eax
mov    $0x64,%ecx
cltd
idiv   %ecx
mov    -0x2bc(%rbp),%edx
mov    %eax,%ecx
mov    -0x280(%rbp),%r8d
lea    0xc21(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    147a <main+0x2fa>
jmp    147f <main+0x2ff>
jmp    11fd <main+0x7d>
mov    -0x2a8(%rbp),%rdi
call   1030 <fclose@plt>
xor    %eax,%eax
add    $0x2e8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x258,%rsp
cmp    $0x2,%edi
jne    1415 <main+0x295>
mov    0x8(%rsi),%rdi
lea    0xe5b(%rip),%rsi
call   1090 <fopen@plt>
test   %rax,%rax
je     1421 <main+0x2a1>
mov    %rax,%r13
mov    %rax,%rdi
call   1070 <feof@plt>
test   %eax,%eax
je     11de <main+0x5e>
mov    %r13,%rdi
call   1040 <fclose@plt>
xor    %eax,%eax
add    $0x258,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0x150(%rsp),%rbx
lea    0x4c(%rsp),%r12
lea    0x48(%rsp),%r14
lea    0x50(%rsp),%r15
movl   $0x0,0x4(%rsp)
jmp    122c <main+0xac>
nop
mov    0x50(%rsp),%rax
movabs $0x4544555449545441,%rcx
55 44 45
xor    %rcx,%rax
movzbl 0x58(%rsp),%ecx
or     %rax,%rcx
je     12a0 <main+0x120>
mov    %r13,%rdi
call   1070 <feof@plt>
test   %eax,%eax
jne    11c2 <main+0x42>
mov    %rbx,%rdi
mov    $0x100,%esi
mov    %r13,%rdx
call   1060 <fgets@plt>
mov    %rbx,%rdi
lea    0xdbc(%rip),%rsi
mov    %r12,%rdx
mov    %r14,%rcx
mov    %r15,%r8
xor    %eax,%eax
call   1080 <sscanf@plt>
test   %rax,%rax
je     1220 <main+0xa0>
mov    0x50(%rsp),%rax
movabs $0x495441474956414e,%rcx
41 54 49
xor    %rcx,%rax
mov    0x57(%rsp),%rcx
movabs $0x4645525f4e4f49,%rdx
xor    %rdx,%rcx
or     %rax,%rcx
je     1360 <main+0x1e0>
cmpl   $0x535047,0x50(%rsp)
jne    1200 <main+0x80>
jmp    13ab <main+0x22b>
nopl   0x0(%rax,%rax,1)
mov    %rbx,%rdi
lea    0xd70(%rip),%rsi
mov    %r12,%rdx
mov    %r14,%rcx
mov    %r15,%r8
lea    0x10(%rsp),%r9
xor    %eax,%eax
lea    0x24(%rsp),%rbp
push   %rbp
lea    0x30(%rsp),%rbp
push   %rbp
call   1080 <sscanf@plt>
add    $0x10,%rsp
cmpb   $0x0,0x4(%rsp)
movl   $0x0,0x4(%rsp)
je     1220 <main+0xa0>
movslq 0x1c(%rsp),%rax
imul   $0x51eb851f,%rax,%rsi
mov    %rsi,%rax
shr    $0x3f,%rax
sar    $0x25,%rsi
add    %eax,%esi
sub    0xc(%rsp),%esi
movslq 0x18(%rsp),%rax
imul   $0x51eb851f,%rax,%rdx
mov    %rdx,%rax
shr    $0x3f,%rax
sar    $0x25,%rdx
add    %eax,%edx
sub    0x8(%rsp),%edx
movslq 0x14(%rsp),%rax
imul   $0x51eb851f,%rax,%rcx
mov    %rcx,%rax
shr    $0x3f,%rax
sar    $0x25,%rcx
add    %eax,%ecx
mov    0x10(%rsp),%r8d
lea    0xd1d(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x1,%al
mov    %eax,0x4(%rsp)
jmp    1220 <main+0xa0>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %rbx,%rdi
lea    0xcb0(%rip),%rsi
mov    %r12,%rdx
mov    %r14,%rcx
mov    %r15,%r8
lea    0xc(%rsp),%r9
xor    %eax,%eax
lea    0x20(%rsp),%rbp
push   %rbp
lea    0x158(%rsp),%rbx
lea    0x10(%rsp),%rbp
push   %rbp
call   1080 <sscanf@plt>
add    $0x10,%rsp
mov    $0x1,%al
mov    %eax,0x4(%rsp)
cmpl   $0x535047,0x50(%rsp)
jne    1200 <main+0x80>
sub    $0x8,%rsp
mov    %rbx,%rdi
lea    0xc74(%rip),%rsi
mov    %r12,%rdx
mov    %r14,%rcx
mov    %r15,%r8
lea    0x4c(%rsp),%r9
xor    %eax,%eax
lea    0x34(%rsp),%rbx
push   %rbx
lea    0x160(%rsp),%rbx
lea    0x40(%rsp),%rbp
push   %rbp
lea    0x4c(%rsp),%rbp
push   %rbp
lea    0x58(%rsp),%rbp
push   %rbp
lea    0x64(%rsp),%rbp
push   %rbp
lea    0x44(%rsp),%rbp
push   %rbp
lea    0x78(%rsp),%rbp
push   %rbp
lea    0x58(%rsp),%rbp
push   %rbp
lea    0x64(%rsp),%rbp
push   %rbp
call   1080 <sscanf@plt>
add    $0x50,%rsp
jmp    1200 <main+0x80>
lea    0xc50(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   10a0 <exit@plt>

LLVM IR (-O0):
@.str = [45 x i8] c"plot3dparse 'flight_file.data' > output.dat\0A\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [9 x i8] c"%e %i %s\00"
@.str.3 = [15 x i8] c"NAVIGATION_REF\00"
@.str.4 = [19 x i8] c"%e %i %s %i %i %i\0A\00"
@.str.5 = [4 x i8] c"GPS\00"
@.str.6 = [40 x i8] c"%e %i %s %i %i %i %i %i %i %i %i %i %i\0A\00"
@.str.7 = [9 x i8] c"ATTITUDE\00"
@.str.8 = [14 x i8] c"%i %i %i %i\0A\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [256 x i8]
%7 = alloca float
%8 = alloca [255 x i8]
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
%21 = alloca i32
%22 = alloca i32
%23 = alloca i32
%24 = alloca i32
%25 = alloca i32
%26 = alloca i32
%27 = alloca i32
%28 = alloca i8
%29 = alloca i32*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i8 0, i8* %28
%30 = load i32, i32* %4
%31 = icmp ne i32 %30, 2
br i1 %31, label %32, label %35
32: ; preds = %2
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str, i64 0, i64 0))
%34 = call i32 @exit(i32 0)
unreachable
35: ; preds = %2
%36 = load i8**, i8*** %5
%37 = getelementptr inbounds i8*, i8** %36, i64 1
%38 = load i8*, i8** %37
%39 = call i32* @fopen(i8* %38, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %39, i32** %29
%40 = load i32*, i32** %29
%41 = icmp ne i32* %40, null
br i1 %41, label %44, label %42
42: ; preds = %35
%43 = call i32 @exit(i32 0)
unreachable
44: ; preds = %35
br label %45
45: ; preds = %99, %44
%46 = load i32*, i32** %29
%47 = call i32 @feof(i32* %46)
%48 = icmp ne i32 %47, 0
%49 = xor i1 %48, true
br i1 %49, label %50, label %100
50: ; preds = %45
%51 = getelementptr inbounds [256 x i8], [256 x i8]* %6, i64 0, i64 0
%52 = load i32*, i32** %29
%53 = call i32 @fgets(i8* %51, i32 256, i32* %52)
%54 = getelementptr inbounds [256 x i8], [256 x i8]* %6, i64 0, i64 0
%55 = getelementptr inbounds [255 x i8], [255 x i8]* %8, i64 0, i64 0
%56 = call i64 (i8*, i8*, float*, i32*, i8*, ...) @sscanf(i8* %54, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), float* %7, i32* %9, i8* %55)
%57 = icmp ne i64 %56, 0
br i1 %57, label %58, label %99
58: ; preds = %50
%59 = getelementptr inbounds [255 x i8], [255 x i8]* %8, i64 0, i64 0
%60 = call i32 @strcmp(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0), i8* %59)
%61 = icmp ne i32 %60, 0
br i1 %61, label %66, label %62
62: ; preds = %58
%63 = getelementptr inbounds [256 x i8], [256 x i8]* %6, i64 0, i64 0
%64 = getelementptr inbounds [255 x i8], [255 x i8]* %8, i64 0, i64 0
%65 = call i64 (i8*, i8*, float*, i32*, i8*, ...) @sscanf(i8* %63, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), float* %7, i32* %9, i8* %64, i32* %23, i32* %24, i32* %25)
store i8 1, i8* %28
br label %66
66: ; preds = %62, %58
%67 = getelementptr inbounds [255 x i8], [255 x i8]* %8, i64 0, i64 0
%68 = call i32 @strcmp(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i8* %67)
%69 = icmp ne i32 %68, 0
br i1 %69, label %74, label %70
70: ; preds = %66
%71 = getelementptr inbounds [256 x i8], [256 x i8]* %6, i64 0, i64 0
%72 = getelementptr inbounds [255 x i8], [255 x i8]* %8, i64 0, i64 0
%73 = call i64 (i8*, i8*, float*, i32*, i8*, ...) @sscanf(i8* %71, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.6, i64 0, i64 0), float* %7, i32* %9, i8* %72, i32* %10, i32* %11, i32* %12, i32* %13, i32* %14, i32* %15, i32* %16, i32* %17, i32* %18, i32* %19)
br label %74
74: ; preds = %70, %66
%75 = getelementptr inbounds [255 x i8], [255 x i8]* %8, i64 0, i64 0
%76 = call i32 @strcmp(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0), i8* %75)
%77 = icmp ne i32 %76, 0
br i1 %77, label %98, label %78
78: ; preds = %74
%79 = getelementptr inbounds [256 x i8], [256 x i8]* %6, i64 0, i64 0
%80 = getelementptr inbounds [255 x i8], [255 x i8]* %8, i64 0, i64 0
%81 = call i64 (i8*, i8*, float*, i32*, i8*, ...) @sscanf(i8* %79, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), float* %7, i32* %9, i8* %80, i32* %20, i32* %21, i32* %22)
%82 = load i8, i8* %28
%83 = icmp ne i8 %82, 0
br i1 %83, label %84, label %97
84: ; preds = %78
%85 = load i32, i32* %11
%86 = sdiv i32 %85, 100
%87 = load i32, i32* %23
%88 = sub i32 %86, %87
%89 = load i32, i32* %12
%90 = sdiv i32 %89, 100
%91 = load i32, i32* %24
%92 = sub i32 %90, %91
%93 = load i32, i32* %14
%94 = sdiv i32 %93, 100
%95 = load i32, i32* %20
%96 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0), i32 %88, i32 %92, i32 %94, i32 %95)
br label %97
97: ; preds = %84, %78
br label %98
98: ; preds = %97, %74
br label %99
99: ; preds = %98, %50
br label %45
100: ; preds = %45
%101 = load i32*, i32** %29
%102 = call i32 @fclose(i32* %101)
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [9 x i8] c"%e %i %s\00"
@.str.3 = [15 x i8] c"NAVIGATION_REF\00"
@.str.4 = [19 x i8] c"%e %i %s %i %i %i\0A\00"
@.str.6 = [40 x i8] c"%e %i %s %i %i %i %i %i %i %i %i %i %i\0A\00"
@.str.7 = [9 x i8] c"ATTITUDE\00"
@.str.8 = [14 x i8] c"%i %i %i %i\0A\0A\00"
@str = [44 x i8] c"plot3dparse 'flight_file.data' > output.dat\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [256 x i8]
%4 = alloca float
%5 = alloca [255 x i8]
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
%21 = alloca i32
%22 = alloca i32
%23 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 0
%24 = bitcast float* %4 to i8*
%25 = getelementptr inbounds [255 x i8], [255 x i8]* %5, i64 0, i64 0
%26 = bitcast i32* %6 to i8*
%27 = bitcast i32* %7 to i8*
%28 = bitcast i32* %8 to i8*
%29 = bitcast i32* %9 to i8*
%30 = bitcast i32* %10 to i8*
%31 = bitcast i32* %11 to i8*
%32 = bitcast i32* %12 to i8*
%33 = bitcast i32* %13 to i8*
%34 = bitcast i32* %14 to i8*
%35 = bitcast i32* %15 to i8*
%36 = bitcast i32* %16 to i8*
%37 = bitcast i32* %17 to i8*
%38 = bitcast i32* %18 to i8*
%39 = bitcast i32* %19 to i8*
%40 = bitcast i32* %20 to i8*
%41 = bitcast i32* %21 to i8*
%42 = bitcast i32* %22 to i8*
%43 = icmp eq i32 %0, 2
br i1 %43, label %47, label %44
44: ; preds = %2
%45 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str, i64 0, i64 0))
%46 = tail call i32 @exit(i32 0)
unreachable
47: ; preds = %2
%48 = getelementptr inbounds i8*, i8** %1, i64 1
%49 = load i8*, i8** %48
%50 = tail call i32* @fopen(i8* %49, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%51 = icmp eq i32* %50, null
br i1 %51, label %57, label %52
52: ; preds = %47
%53 = call i32 @feof(i32* %50)
%54 = icmp eq i32 %53, 0
br i1 %54, label %55, label %98
55: ; preds = %52
%56 = bitcast [255 x i8]* %5 to i32*
br label %59
57: ; preds = %47
%58 = tail call i32 @exit(i32 0)
unreachable
59: ; preds = %55, %94
%60 = phi i8 [ 0, %55 ], [ %95, %94 ]
%61 = call i32 @fgets(i8* %23, i32 256, i32* %50)
%62 = call i64 (i8*, i8*, float*, i32*, i8*, ...) @sscanf(i8* %23, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), float* %4, i32* %6, i8* %25)
%63 = icmp eq i64 %62, 0
br i1 %63, label %94, label %64
64: ; preds = %59
%65 = call i32 @bcmp(i8* dereferenceable(15) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0), i8* dereferenceable(15) %25, i64 15)
%66 = icmp eq i32 %65, 0
br i1 %66, label %67, label %69
67: ; preds = %64
%68 = call i64 (i8*, i8*, float*, i32*, i8*, ...) @sscanf(i8* %23, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), float* %4, i32* %6, i8* %25, i32* %20, i32* %21, i32* %22)
br label %69
69: ; preds = %67, %64
%70 = phi i8 [ %60, %64 ], [ 1, %67 ]
%71 = load i32, i32* %56
%72 = icmp eq i32 %71, 5460039
br i1 %72, label %73, label %75
73: ; preds = %69
%74 = call i64 (i8*, i8*, float*, i32*, i8*, ...) @sscanf(i8* %23, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.6, i64 0, i64 0), float* %4, i32* %6, i8* %25, i32* %7, i32* %8, i32* %9, i32* %10, i32* %11, i32* %12, i32* %13, i32* %14, i32* %15, i32* %16)
br label %75
75: ; preds = %73, %69
%76 = call i32 @bcmp(i8* dereferenceable(9) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0), i8* dereferenceable(9) %25, i64 9)
%77 = icmp eq i32 %76, 0
br i1 %77, label %78, label %94
78: ; preds = %75
%79 = call i64 (i8*, i8*, float*, i32*, i8*, ...) @sscanf(i8* %23, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), float* %4, i32* %6, i8* %25, i32* %17, i32* %18, i32* %19)
%80 = icmp eq i8 %70, 0
br i1 %80, label %94, label %81
81: ; preds = %78
%82 = load i32, i32* %8
%83 = sdiv i32 %82, 100
%84 = load i32, i32* %20
%85 = sub i32 %83, %84
%86 = load i32, i32* %9
%87 = sdiv i32 %86, 100
%88 = load i32, i32* %21
%89 = sub i32 %87, %88
%90 = load i32, i32* %11
%91 = sdiv i32 %90, 100
%92 = load i32, i32* %17
%93 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0), i32 %85, i32 %89, i32 %91, i32 %92)
br label %94
94: ; preds = %75, %81, %78, %59
%95 = phi i8 [ %70, %75 ], [ 1, %81 ], [ 0, %78 ], [ %60, %59 ]
%96 = call i32 @feof(i32* %50)
%97 = icmp eq i32 %96, 0
br i1 %97, label %59, label %98
98: ; preds = %94, %52
%99 = call i32 @fclose(i32* %50)
ret i32 0
}