#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*/);
double fabs(double);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, int, double, double,
                           double, double, double, double, double, double,
                           double, double);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ sscanf(char *, char *, int *, double *, double *, double *,
                          double *);
int main(int argc, char *argv[]) {
  FILE *fpin, *fpout;
  int n, i, gps2, gps1;
  double sca0[4] = {0}, sca2[4] = {0}, sca1[4] = {0}, diff, diffnew;
  char line[400];
  if ((fpin = fopen(argv[1], "r")) == NULL) {
    printf("Cannot open acc file!\n");
    exit(0);
  }
  if ((fpout = fopen(argv[2], "w")) == NULL) {
    printf("Cannot open acc file!\n");
    exit(0);
  }
  gps1 = 0;
  gps2 = 0;
  i = 0;
  while (1) {
    if (fgets(line, 400, fpin) == NULL)
      break;
    sscanf(line, "%d%*s%*d%lf%lf%lf%lf", &gps2, &sca0[0], &sca0[1], &sca0[2],
           &sca0[3]);
    diff = fabs((sca0[0] - sca1[0]) / (double)(gps2 - gps1));
    if (diff > 0.001) {
      for (n = 0; n < 4; n++)
        sca2[n] = -sca0[n];
    } else {
      for (n = 0; n < 4; n++)
        sca2[n] = sca0[n];
    }
    diffnew = fabs((sca2[0] - sca1[0]) / (double)(gps2 - gps1));
    fprintf(fpout,
            "%10d %20.15lf %20.15lf %20.15lf %20.15lf %f %20.15lf %20.15lf "
            "%20.15lf %20.15lf %f\n",
            gps2, sca2[0], sca2[1], sca2[2], sca2[3], diffnew, sca0[0], sca0[1],
            sca0[2], sca0[3], diff);
    gps1 = gps2;
    for (n = 0; n < 4; n++)
      sca1[n] = sca2[n];
    i++;
  }
  fclose(fpin);
  fclose(fpout);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x240,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x50(%rbp),%rdi
xor    %esi,%esi
mov    $0x20,%edx
call   1050 <memset@plt>
lea    -0x70(%rbp),%rdi
xor    %esi,%esi
mov    $0x20,%edx
call   1050 <memset@plt>
lea    -0x90(%rbp),%rdi
xor    %esi,%esi
mov    $0x20,%edx
call   1050 <memset@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe45(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmp    $0x0,%rax
jne    1201 <main+0x81>
lea    0xe2d(%rip),%rdi
call   1040 <printf@plt>
xor    %edi,%edi
call   10a0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xe29(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,-0x20(%rbp)
cmp    $0x0,%rax
jne    1236 <main+0xb6>
lea    0xdf8(%rip),%rdi
call   1040 <printf@plt>
xor    %edi,%edi
call   10a0 <exit@plt>
movl   $0x0,-0x30(%rbp)
movl   $0x0,-0x2c(%rbp)
movl   $0x0,-0x28(%rbp)
lea    -0x230(%rbp),%rdi
mov    -0x18(%rbp),%rdx
mov    $0x190,%esi
call   1060 <fgets@plt>
cmp    $0x0,%rax
jne    126f <main+0xef>
jmp    1447 <main+0x2c7>
lea    -0x230(%rbp),%rdi
lea    -0x50(%rbp),%rcx
lea    -0x50(%rbp),%r8
add    $0x8,%r8
lea    -0x50(%rbp),%r9
add    $0x10,%r9
lea    -0x50(%rbp),%rax
add    $0x18,%rax
lea    0xda2(%rip),%rsi
lea    -0x2c(%rbp),%rdx
mov    %rax,(%rsp)
call   1080 <sscanf@plt>
movsd  -0x50(%rbp),%xmm0
subsd  -0x90(%rbp),%xmm0
ff
mov    -0x2c(%rbp),%eax
sub    -0x30(%rbp),%eax
cvtsi2sd %eax,%xmm1
divsd  %xmm1,%xmm0
movaps 0xd48(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x98(%rbp),%xmm0
ff
movsd  0xd1c(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    133d <main+0x1bd>
movl   $0x0,-0x24(%rbp)
cmpl   $0x4,-0x24(%rbp)
jge    1338 <main+0x1b8>
movslq -0x24(%rbp),%rax
movsd  -0x50(%rbp,%rax,8),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movslq -0x24(%rbp),%rax
movsd  %xmm0,-0x70(%rbp,%rax,8)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    12f5 <main+0x175>
jmp    1375 <main+0x1f5>
movl   $0x0,-0x24(%rbp)
cmpl   $0x4,-0x24(%rbp)
jge    1370 <main+0x1f0>
movslq -0x24(%rbp),%rax
movsd  -0x50(%rbp,%rax,8),%xmm0
movslq -0x24(%rbp),%rax
movsd  %xmm0,-0x70(%rbp,%rax,8)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1344 <main+0x1c4>
jmp    1375 <main+0x1f5>
movsd  -0x70(%rbp),%xmm0
subsd  -0x90(%rbp),%xmm0
ff
mov    -0x2c(%rbp),%eax
sub    -0x30(%rbp),%eax
cvtsi2sd %eax,%xmm1
divsd  %xmm1,%xmm0
movaps 0xc79(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
mov    -0x20(%rbp),%rdi
mov    -0x2c(%rbp),%edx
movsd  -0x70(%rbp),%xmm0
movsd  -0x68(%rbp),%xmm1
movsd  -0x60(%rbp),%xmm2
movsd  -0x58(%rbp),%xmm3
movsd  -0xa0(%rbp),%xmm4
ff
movsd  -0x50(%rbp),%xmm5
movsd  -0x48(%rbp),%xmm6
movsd  -0x40(%rbp),%xmm7
movsd  -0x38(%rbp),%xmm9
movsd  -0x98(%rbp),%xmm8
ff ff
lea    0xc65(%rip),%rsi
movsd  %xmm9,(%rsp)
movsd  %xmm8,0x8(%rsp)
call   1070 <fprintf@plt>
mov    -0x2c(%rbp),%eax
mov    %eax,-0x30(%rbp)
movl   $0x0,-0x24(%rbp)
cmpl   $0x4,-0x24(%rbp)
jge    1439 <main+0x2b9>
movslq -0x24(%rbp),%rax
movsd  -0x70(%rbp,%rax,8),%xmm0
movslq -0x24(%rbp),%rax
movsd  %xmm0,-0x90(%rbp,%rax,8)
ff ff
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    140a <main+0x28a>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    124b <main+0xcb>
mov    -0x18(%rbp),%rdi
call   1030 <fclose@plt>
mov    -0x20(%rbp),%rdi
call   1030 <fclose@plt>
xor    %eax,%eax
add    $0x240,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x1e8,%rsp
mov    %rsi,%rbp
xorpd  %xmm0,%xmm0
movapd %xmm0,0x30(%rsp)
movapd %xmm0,0x20(%rsp)
mov    0x8(%rsi),%rdi
lea    0xe89(%rip),%rsi
call   1080 <fopen@plt>
test   %rax,%rax
je     1378 <main+0x208>
mov    %rax,%rbx
mov    0x10(%rbp),%rdi
lea    0xe6f(%rip),%rsi
call   1080 <fopen@plt>
test   %rax,%rax
je     1378 <main+0x208>
mov    %rax,%r14
movl   $0x0,0x1c(%rsp)
lea    0x50(%rsp),%rdi
mov    $0x190,%esi
mov    %rbx,%rdx
call   1050 <fgets@plt>
test   %rax,%rax
je     1354 <main+0x1e4>
xor    %r15d,%r15d
xorpd  %xmm0,%xmm0
movsd  %xmm0,0x48(%rsp)
lea    0x50(%rsp),%rbp
lea    0x20(%rsp),%r12
lea    0xe34(%rip),%r13
jmp    12b3 <main+0x143>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movapd %xmm5,%xmm10
movapd 0xde3(%rip),%xmm4
xorpd  %xmm4,%xmm10
movsd  0x28(%rsp),%xmm6
movsd  0x30(%rsp),%xmm7
movapd %xmm6,%xmm1
xorpd  %xmm4,%xmm1
movapd %xmm7,%xmm2
xorpd  %xmm4,%xmm2
movsd  0x38(%rsp),%xmm8
movapd %xmm8,%xmm3
xorpd  %xmm4,%xmm3
movapd %xmm10,%xmm4
subsd  %xmm12,%xmm4
divsd  %xmm9,%xmm4
andpd  %xmm11,%xmm4
movsd  %xmm0,0x8(%rsp)
movsd  %xmm8,(%rsp)
mov    %r14,%rdi
mov    %r13,%rsi
movsd  %xmm10,0x48(%rsp)
movapd %xmm10,%xmm0
call   1060 <fprintf@plt>
mov    0x1c(%rsp),%r15d
mov    %rbp,%rdi
mov    $0x190,%esi
mov    %rbx,%rdx
call   1050 <fgets@plt>
test   %rax,%rax
je     1354 <main+0x1e4>
lea    0x38(%rsp),%rax
mov    %rax,(%rsp)
mov    %rbp,%rdi
lea    0xd66(%rip),%rsi
lea    0x1c(%rsp),%rdx
mov    %r12,%rcx
lea    0x28(%rsp),%r8
lea    0x30(%rsp),%r9
call   1070 <sscanf@plt>
movsd  0x20(%rsp),%xmm5
movapd %xmm5,%xmm0
movsd  0x48(%rsp),%xmm12
subsd  %xmm12,%xmm0
mov    0x1c(%rsp),%edx
mov    %edx,%eax
sub    %r15d,%eax
xorps  %xmm9,%xmm9
cvtsi2sd %eax,%xmm9
divsd  %xmm9,%xmm0
movapd 0xced(%rip),%xmm11
andpd  %xmm11,%xmm0
ucomisd 0xd00(%rip),%xmm0
ja     1220 <main+0xb0>
movsd  0x28(%rsp),%xmm6
movsd  0x30(%rsp),%xmm7
movsd  0x38(%rsp),%xmm8
movapd %xmm0,%xmm4
movapd %xmm5,%xmm10
movapd %xmm6,%xmm1
movapd %xmm7,%xmm2
movapd %xmm8,%xmm3
jmp    1272 <main+0x102>
mov    %rbx,%rdi
call   1040 <fclose@plt>
mov    %r14,%rdi
call   1040 <fclose@plt>
xor    %eax,%eax
add    $0x1e8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xd16(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   1090 <exit@plt>

LLVM IR (-O0):
@.str = [2 x i8] c"r\00"
@.str.1 = [23 x i8] c"Cannot open acc file!\0A\00"
@.str.2 = [2 x i8] c"w\00"
@.str.3 = [21 x i8] c"%d%*s%*d%lf%lf%lf%lf\00"
@.str.4 = [84 x i8] c"%10d %20.15lf %20.15lf %20.15lf %20.15lf %f %20.15lf %20.15lf %20.15lf %20.15lf %f\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32*
%7 = alloca i32*
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca [4 x double]
%13 = alloca [4 x double]
%14 = alloca [4 x double]
%15 = alloca double
%16 = alloca double
%17 = alloca [400 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%18 = bitcast [4 x double]* %12 to i8*
%19 = bitcast [4 x double]* %13 to i8*
%20 = bitcast [4 x double]* %14 to i8*
%21 = load i8**, i8*** %5
%22 = getelementptr inbounds i8*, i8** %21, i64 1
%23 = load i8*, i8** %22
%24 = call i32* @fopen(i8* %23, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i32* %24, i32** %6
%25 = icmp eq i32* %24, null
br i1 %25, label %26, label %29
26: ; preds = %2
%27 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0))
%28 = call i32 @exit(i32 0)
unreachable
29: ; preds = %2
%30 = load i8**, i8*** %5
%31 = getelementptr inbounds i8*, i8** %30, i64 2
%32 = load i8*, i8** %31
%33 = call i32* @fopen(i8* %32, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
store i32* %33, i32** %7
%34 = icmp eq i32* %33, null
br i1 %34, label %35, label %38
35: ; preds = %29
%36 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0))
%37 = call i32 @exit(i32 0)
unreachable
38: ; preds = %29
store i32 0, i32* %11
store i32 0, i32* %10
store i32 0, i32* %9
br label %39
39: ; preds = %38, %146
%40 = getelementptr inbounds [400 x i8], [400 x i8]* %17, i64 0, i64 0
%41 = load i32*, i32** %6
%42 = call i32* @fgets(i8* %40, i32 400, i32* %41)
%43 = icmp eq i32* %42, null
br i1 %43, label %44, label %45
44: ; preds = %39
br label %149
45: ; preds = %39
%46 = getelementptr inbounds [400 x i8], [400 x i8]* %17, i64 0, i64 0
%47 = getelementptr inbounds [4 x double], [4 x double]* %12, i64 0, i64 0
%48 = getelementptr inbounds [4 x double], [4 x double]* %12, i64 0, i64 1
%49 = getelementptr inbounds [4 x double], [4 x double]* %12, i64 0, i64 2
%50 = getelementptr inbounds [4 x double], [4 x double]* %12, i64 0, i64 3
%51 = call i32 @sscanf(i8* %46, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0), i32* %10, double* %47, double* %48, double* %49, double* %50)
%52 = getelementptr inbounds [4 x double], [4 x double]* %12, i64 0, i64 0
%53 = load double, double* %52
%54 = getelementptr inbounds [4 x double], [4 x double]* %14, i64 0, i64 0
%55 = load double, double* %54
%56 = fsub double %53, %55
%57 = load i32, i32* %10
%58 = load i32, i32* %11
%59 = sub nsw i32 %57, %58
%60 = sitofp i32 %59 to double
%61 = fdiv double %56, %60
%62 = call double @llvm.fabs.f64(double %61)
store double %62, double* %15
%63 = load double, double* %15
%64 = fcmp ogt double %63, 1.000000e-03
br i1 %64, label %65, label %82
65: ; preds = %45
store i32 0, i32* %8
br label %66
66: ; preds = %78, %65
%67 = load i32, i32* %8
%68 = icmp slt i32 %67, 4
br i1 %68, label %69, label %81
69: ; preds = %66
%70 = load i32, i32* %8
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds [4 x double], [4 x double]* %12, i64 0, i64 %71
%73 = load double, double* %72
%74 = fneg double %73
%75 = load i32, i32* %8
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds [4 x double], [4 x double]* %13, i64 0, i64 %76
store double %74, double* %77
br label %78
78: ; preds = %69
%79 = load i32, i32* %8
%80 = add nsw i32 %79, 1
store i32 %80, i32* %8
br label %66
81: ; preds = %66
br label %98
82: ; preds = %45
store i32 0, i32* %8
br label %83
83: ; preds = %94, %82
%84 = load i32, i32* %8
%85 = icmp slt i32 %84, 4
br i1 %85, label %86, label %97
86: ; preds = %83
%87 = load i32, i32* %8
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds [4 x double], [4 x double]* %12, i64 0, i64 %88
%90 = load double, double* %89
%91 = load i32, i32* %8
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds [4 x double], [4 x double]* %13, i64 0, i64 %92
store double %90, double* %93
br label %94
94: ; preds = %86
%95 = load i32, i32* %8
%96 = add nsw i32 %95, 1
store i32 %96, i32* %8
br label %83
97: ; preds = %83
br label %98
98: ; preds = %97, %81
%99 = getelementptr inbounds [4 x double], [4 x double]* %13, i64 0, i64 0
%100 = load double, double* %99
%101 = getelementptr inbounds [4 x double], [4 x double]* %14, i64 0, i64 0
%102 = load double, double* %101
%103 = fsub double %100, %102
%104 = load i32, i32* %10
%105 = load i32, i32* %11
%106 = sub nsw i32 %104, %105
%107 = sitofp i32 %106 to double
%108 = fdiv double %103, %107
%109 = call double @llvm.fabs.f64(double %108)
store double %109, double* %16
%110 = load i32*, i32** %7
%111 = load i32, i32* %10
%112 = getelementptr inbounds [4 x double], [4 x double]* %13, i64 0, i64 0
%113 = load double, double* %112
%114 = getelementptr inbounds [4 x double], [4 x double]* %13, i64 0, i64 1
%115 = load double, double* %114
%116 = getelementptr inbounds [4 x double], [4 x double]* %13, i64 0, i64 2
%117 = load double, double* %116
%118 = getelementptr inbounds [4 x double], [4 x double]* %13, i64 0, i64 3
%119 = load double, double* %118
%120 = load double, double* %16
%121 = getelementptr inbounds [4 x double], [4 x double]* %12, i64 0, i64 0
%122 = load double, double* %121
%123 = getelementptr inbounds [4 x double], [4 x double]* %12, i64 0, i64 1
%124 = load double, double* %123
%125 = getelementptr inbounds [4 x double], [4 x double]* %12, i64 0, i64 2
%126 = load double, double* %125
%127 = getelementptr inbounds [4 x double], [4 x double]* %12, i64 0, i64 3
%128 = load double, double* %127
%129 = load double, double* %15
%130 = call i32 @fprintf(i32* %110, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @.str.4, i64 0, i64 0), i32 %111, double %113, double %115, double %117, double %119, double %120, double %122, double %124, double %126, double %128, double %129)
%131 = load i32, i32* %10
store i32 %131, i32* %11
store i32 0, i32* %8
br label %132
132: ; preds = %143, %98
%133 = load i32, i32* %8
%134 = icmp slt i32 %133, 4
br i1 %134, label %135, label %146
135: ; preds = %132
%136 = load i32, i32* %8
%137 = sext i32 %136 to i64
%138 = getelementptr inbounds [4 x double], [4 x double]* %13, i64 0, i64 %137
%139 = load double, double* %138
%140 = load i32, i32* %8
%141 = sext i32 %140 to i64
%142 = getelementptr inbounds [4 x double], [4 x double]* %14, i64 0, i64 %141
store double %139, double* %142
br label %143
143: ; preds = %135
%144 = load i32, i32* %8
%145 = add nsw i32 %144, 1
store i32 %145, i32* %8
br label %132
146: ; preds = %132
%147 = load i32, i32* %9
%148 = add nsw i32 %147, 1
store i32 %148, i32* %9
br label %39
149: ; preds = %44
%150 = load i32*, i32** %6
%151 = call i32 @fclose(i32* %150)
%152 = load i32*, i32** %7
%153 = call i32 @fclose(i32* %152)
ret i32 0
}

LLVM IR (-O2):
@.str = [2 x i8] c"r\00"
@.str.2 = [2 x i8] c"w\00"
@.str.3 = [21 x i8] c"%d%*s%*d%lf%lf%lf%lf\00"
@.str.4 = [84 x i8] c"%10d %20.15lf %20.15lf %20.15lf %20.15lf %f %20.15lf %20.15lf %20.15lf %20.15lf %f\0A\00"
@str.5 = [22 x i8] c"Cannot open acc file!\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca i32
%4 = alloca [4 x double]
%5 = alloca [400 x i8]
%6 = bitcast i32* %3 to i8*
%7 = bitcast [4 x double]* %4 to i8*
%8 = getelementptr inbounds [400 x i8], [400 x i8]* %5, i64 0, i64 0
%9 = getelementptr inbounds i8*, i8** %1, i64 1
%10 = load i8*, i8** %9
%11 = tail call i32* @fopen(i8* %10, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%12 = icmp eq i32* %11, null
br i1 %12, label %13, label %16
13: ; preds = %2
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.5, i64 0, i64 0))
%15 = tail call i32 @exit(i32 0)
unreachable
16: ; preds = %2
%17 = getelementptr inbounds i8*, i8** %1, i64 2
%18 = load i8*, i8** %17
%19 = tail call i32* @fopen(i8* %18, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%20 = icmp eq i32* %19, null
br i1 %20, label %21, label %24
21: ; preds = %16
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.5, i64 0, i64 0))
%23 = tail call i32 @exit(i32 0)
unreachable
24: ; preds = %16
store i32 0, i32* %3
%25 = call i32* @fgets(i8* %8, i32 400, i32* %11)
%26 = icmp eq i32* %25, null
br i1 %26, label %72, label %27
27: ; preds = %24
%28 = getelementptr inbounds [4 x double], [4 x double]* %4, i64 0, i64 0
%29 = getelementptr inbounds [4 x double], [4 x double]* %4, i64 0, i64 1
%30 = getelementptr inbounds [4 x double], [4 x double]* %4, i64 0, i64 2
%31 = getelementptr inbounds [4 x double], [4 x double]* %4, i64 0, i64 3
br label %32
32: ; preds = %27, %59
%33 = phi double [ 0.000000e+00, %27 ], [ %64, %59 ]
%34 = phi i32 [ 0, %27 ], [ %69, %59 ]
%35 = call i32 @sscanf(i8* %8, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0), i32* %3, double* %28, double* %29, double* %30, double* %31)
%36 = load double, double* %28
%37 = fsub double %36, %33
%38 = load i32, i32* %3
%39 = sub nsw i32 %38, %34
%40 = sitofp i32 %39 to double
%41 = fdiv double %37, %40
%42 = call double @llvm.fabs.f64(double %41)
%43 = fcmp ogt double %42, 1.000000e-03
br i1 %43, label %48, label %44
44: ; preds = %32
%45 = load double, double* %29
%46 = load double, double* %30
%47 = load double, double* %31
br label %59
48: ; preds = %32
%49 = fneg double %36
%50 = load double, double* %29
%51 = fneg double %50
%52 = load double, double* %30
%53 = fneg double %52
%54 = load double, double* %31
%55 = fneg double %54
%56 = fsub double %49, %33
%57 = fdiv double %56, %40
%58 = call double @llvm.fabs.f64(double %57)
br label %59
59: ; preds = %44, %48
%60 = phi double [ %42, %44 ], [ %58, %48 ]
%61 = phi double [ %47, %44 ], [ %54, %48 ]
%62 = phi double [ %46, %44 ], [ %52, %48 ]
%63 = phi double [ %45, %44 ], [ %50, %48 ]
%64 = phi double [ %36, %44 ], [ %49, %48 ]
%65 = phi double [ %45, %44 ], [ %51, %48 ]
%66 = phi double [ %46, %44 ], [ %53, %48 ]
%67 = phi double [ %47, %44 ], [ %55, %48 ]
%68 = call i32 @fprintf(i32* %19, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @.str.4, i64 0, i64 0), i32 %38, double %64, double %65, double %66, double %67, double %60, double %36, double %63, double %62, double %61, double %42)
%69 = load i32, i32* %3
%70 = call i32* @fgets(i8* %8, i32 400, i32* %11)
%71 = icmp eq i32* %70, null
br i1 %71, label %72, label %32
72: ; preds = %59, %24
%73 = call i32 @fclose(i32* %11)
%74 = call i32 @fclose(i32* %19)
ret i32 0
}