#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 atoi(char *);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ fscanf(int /*<<< orphan*/ *, char *, double *, double *);
int /*<<< orphan*/ printf(char *, ...);
double sqrt(double);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ strcat(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
main(int argc, char **argv) {
  int n;
  char *infile, *outfile, dfile[128];
  double max_diff, diff;
  FILE *fp1, *fp2, *fpd;
  double re1, im1, re2, im2;
  int i, j, k;
  int mi;
  double mre1, mre2, mim1, mim2;
  if (argc != 4) {
    fprintf(stderr, "format: dcompare file1 file2 n\n");
    exit(-1);
  }
  strcpy(dfile, argv[1]);
  strcat(dfile, ".diff");
  fpd = fopen(dfile, "w");
  fp1 = fopen(argv[1], "r");
  fp2 = fopen(argv[2], "r");
  n = atoi(argv[3]);
  printf("No. of points %d\n", n);
  max_diff = 0.0;
  for (i = 0; i < n; i += 1) {
    fscanf(fp1, "%lf %lf\n", &re1, &im1);
    fscanf(fp2, "%lf %lf\n", &re2, &im2);
    diff = sqrt((re1 - re2) * (re1 - re2) + (im1 - im2) * (im1 - im2));
    fprintf(fpd, "%d: %f\t%f\t%f\n", i, (re1 - re2), (im1 - im2), diff);
    if (diff > max_diff) {
      max_diff = diff;
      mi = i;
      mre1 = re1;
      mre2 = re2;
      mim1 = im1;
      mim2 = im2;
    }
  }
  fclose(fp1);
  fclose(fp2);
  fclose(fpd);
  printf("  max componentwise distance: %g\n", max_diff);
  printf("%d %g,%g == %g,%g\n", mi, mre1, mim1, mre2, mim2);
  printf("Output file %s written\n", dfile);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x130,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x4,-0x8(%rbp)
je     11e5 <main+0x45>
mov    0x2e16(%rip),%rax
movslq (%rax),%rdi
lea    0xe2c(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    $0xffffffff,%edi
call   10c0 <exit@plt>
lea    -0xb0(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
call   1030 <strcpy@plt>
lea    -0xb0(%rbp),%rdi
lea    0xe19(%rip),%rsi
call   10b0 <strcat@plt>
lea    -0xb0(%rbp),%rdi
lea    0xe0c(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0xd8(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xdf3(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0xc8(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xdd8(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0xd0(%rbp)
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
call   1090 <atoi@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%esi
lea    0xdb4(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movl   $0x0,-0xfc(%rbp)
mov    -0xfc(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    140a <main+0x26a>
mov    -0xc8(%rbp),%rdi
lea    0xd8d(%rip),%rsi
lea    -0xe0(%rbp),%rdx
lea    -0xe8(%rbp),%rcx
call   1060 <fscanf@plt>
mov    -0xd0(%rbp),%rdi
lea    0xd6c(%rip),%rsi
lea    -0xf0(%rbp),%rdx
lea    -0xf8(%rbp),%rcx
call   1060 <fscanf@plt>
movsd  -0xe0(%rbp),%xmm0
ff
subsd  -0xf0(%rbp),%xmm0
ff
movsd  -0xe0(%rbp),%xmm2
ff
subsd  -0xf0(%rbp),%xmm2
ff
movsd  -0xe8(%rbp),%xmm1
ff
subsd  -0xf8(%rbp),%xmm1
ff
movsd  -0xe8(%rbp),%xmm3
ff
subsd  -0xf8(%rbp),%xmm3
ff
mulsd  %xmm3,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   10a0 <sqrt@plt>
movsd  %xmm0,-0xc0(%rbp)
ff
mov    -0xd8(%rbp),%rdi
mov    -0xfc(%rbp),%edx
movsd  -0xe0(%rbp),%xmm0
ff
subsd  -0xf0(%rbp),%xmm0
ff
movsd  -0xe8(%rbp),%xmm1
ff
subsd  -0xf8(%rbp),%xmm1
ff
movsd  -0xc0(%rbp),%xmm2
ff
lea    0xccd(%rip),%rsi
mov    $0x3,%al
call   1070 <fprintf@plt>
movsd  -0xc0(%rbp),%xmm0
ff
ucomisd -0xb8(%rbp),%xmm0
ff
jbe    13f1 <main+0x251>
movsd  -0xc0(%rbp),%xmm0
ff
movsd  %xmm0,-0xb8(%rbp)
ff
mov    -0xfc(%rbp),%eax
mov    %eax,-0x108(%rbp)
movsd  -0xe0(%rbp),%xmm0
ff
movsd  %xmm0,-0x110(%rbp)
ff
movsd  -0xf0(%rbp),%xmm0
ff
movsd  %xmm0,-0x118(%rbp)
ff
movsd  -0xe8(%rbp),%xmm0
ff
movsd  %xmm0,-0x120(%rbp)
ff
movsd  -0xf8(%rbp),%xmm0
ff
movsd  %xmm0,-0x128(%rbp)
ff
jmp    13f6 <main+0x256>
mov    -0xfc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xfc(%rbp)
jmp    1292 <main+0xf2>
mov    -0xc8(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0xd0(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0xd8(%rbp),%rdi
call   1040 <fclose@plt>
movsd  -0xb8(%rbp),%xmm0
ff
lea    0xc16(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    -0x108(%rbp),%esi
movsd  -0x110(%rbp),%xmm0
ff
movsd  -0x120(%rbp),%xmm1
ff
movsd  -0x118(%rbp),%xmm2
ff
movsd  -0x128(%rbp),%xmm3
ff
lea    0xc04(%rip),%rdi
mov    $0x4,%al
call   1050 <printf@plt>
lea    -0xb0(%rbp),%rsi
lea    0xc02(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x130,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xe8,%rsp
cmp    $0x4,%edi
jne    13e3 <main+0x233>
mov    %rsi,%rbx
mov    0x8(%rsi),%rsi
lea    0x60(%rsp),%rbp
mov    %rbp,%rdi
call   1030 <strcpy@plt>
lea    0xe43(%rip),%rsi
mov    %rbp,%rdi
call   10b0 <strcat@plt>
lea    0xe3a(%rip),%rsi
mov    %rbp,%rdi
call   1080 <fopen@plt>
mov    %rax,%r14
mov    0x8(%rbx),%rdi
lea    0xe26(%rip),%rbp
mov    %rbp,%rsi
call   1080 <fopen@plt>
mov    %rax,%r15
mov    0x10(%rbx),%rdi
mov    %rbp,%rsi
call   1080 <fopen@plt>
mov    %rax,%r13
mov    0x18(%rbx),%rdi
call   1090 <atoi@plt>
mov    %eax,%ebp
lea    0xdfc(%rip),%rdi
xor    %ebx,%ebx
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
test   %ebp,%ebp
jle    135d <main+0x1ad>
lea    0xdf4(%rip),%r12
xorpd  %xmm0,%xmm0
movsd  %xmm0,0x8(%rsp)
jmp    126b <main+0xbb>
nopl   0x0(%rax)
add    $0x1,%ebx
cmp    %ebx,%ebp
je     1366 <main+0x1b6>
mov    %r15,%rdi
mov    %r12,%rsi
lea    0x28(%rsp),%rdx
lea    0x20(%rsp),%rcx
call   1060 <fscanf@plt>
mov    %r13,%rdi
mov    %r12,%rsi
lea    0x18(%rsp),%rdx
lea    0x10(%rsp),%rcx
call   1060 <fscanf@plt>
movsd  0x28(%rsp),%xmm0
subsd  0x18(%rsp),%xmm0
movsd  0x20(%rsp),%xmm1
subsd  0x10(%rsp),%xmm1
mulsd  %xmm1,%xmm1
mulsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
ucomisd 0xd3f(%rip),%xmm0
jb     12d0 <main+0x120>
sqrtsd %xmm0,%xmm0
jmp    12d5 <main+0x125>
nopl   0x0(%rax)
call   10a0 <sqrt@plt>
movsd  %xmm0,0x38(%rsp)
movsd  0x28(%rsp),%xmm0
subsd  0x18(%rsp),%xmm0
movsd  0x20(%rsp),%xmm1
subsd  0x10(%rsp),%xmm1
mov    %r14,%rdi
lea    0xd50(%rip),%rsi
mov    %ebx,%edx
movsd  0x38(%rsp),%xmm2
mov    $0x3,%al
call   1070 <fprintf@plt>
movsd  0x38(%rsp),%xmm1
ucomisd 0x8(%rsp),%xmm1
jbe    1260 <main+0xb0>
movsd  0x28(%rsp),%xmm0
movsd  %xmm0,0x50(%rsp)
movsd  0x18(%rsp),%xmm0
movsd  %xmm0,0x58(%rsp)
movsd  0x20(%rsp),%xmm0
movsd  %xmm0,0x40(%rsp)
movsd  0x10(%rsp),%xmm0
movsd  %xmm0,0x48(%rsp)
movsd  %xmm1,0x8(%rsp)
mov    %ebx,0x34(%rsp)
jmp    1260 <main+0xb0>
xorps  %xmm0,%xmm0
movsd  %xmm0,0x8(%rsp)
mov    %r15,%rdi
call   1040 <fclose@plt>
mov    %r13,%rdi
call   1040 <fclose@plt>
mov    %r14,%rdi
call   1040 <fclose@plt>
lea    0xcd6(%rip),%rdi
movsd  0x8(%rsp),%xmm0
mov    $0x1,%al
call   1050 <printf@plt>
lea    0xce4(%rip),%rdi
mov    0x34(%rsp),%esi
movsd  0x50(%rsp),%xmm0
movsd  0x40(%rsp),%xmm1
movsd  0x58(%rsp),%xmm2
movsd  0x48(%rsp),%xmm3
mov    $0x4,%al
call   1050 <printf@plt>
lea    0xccd(%rip),%rdi
lea    0x60(%rsp),%rsi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
add    $0xe8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2bf6(%rip),%rax
movslq (%rax),%rcx
lea    0xc14(%rip),%rdi
mov    $0x1f,%esi
mov    $0x1,%edx
call   10d0 <fwrite@plt>
mov    $0xffffffff,%edi
call   10c0 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [32 x i8] c"format: dcompare file1 file2 n\0A\00"
@.str.1 = [6 x i8] c".diff\00"
@.str.2 = [2 x i8] c"w\00"
@.str.3 = [2 x i8] c"r\00"
@.str.4 = [18 x i8] c"No. of points %d\0A\00"
@.str.5 = [9 x i8] c"%lf %lf\0A\00"
@.str.6 = [14 x i8] c"%d: %f\09%f\09%f\0A\00"
@.str.7 = [34 x i8] c" max componentwise distance: %g\0A\00"
@.str.8 = [19 x i8] c"%d %g,%g == %g,%g\0A\00"
@.str.9 = [24 x i8] c"Output file %s written\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca [128 x i8]
%10 = alloca double
%11 = alloca double
%12 = alloca i32*
%13 = alloca i32*
%14 = alloca i32*
%15 = alloca double
%16 = alloca double
%17 = alloca double
%18 = alloca double
%19 = alloca i32
%20 = alloca i32
%21 = alloca i32
%22 = alloca i32
%23 = alloca double
%24 = alloca double
%25 = alloca double
%26 = alloca double
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%27 = load i32, i32* %4
%28 = icmp ne i32 %27, 4
br i1 %28, label %29, label %35
29: ; preds = %2
%30 = load i32, i32* @stderr
%31 = sext i32 %30 to i64
%32 = inttoptr i64 %31 to i32*
%33 = call i32 (i32*, i8*, ...) @fprintf(i32* %32, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0))
%34 = call i32 @exit(i32 -1)
unreachable
35: ; preds = %2
%36 = getelementptr inbounds [128 x i8], [128 x i8]* %9, i64 0, i64 0
%37 = load i8**, i8*** %5
%38 = getelementptr inbounds i8*, i8** %37, i64 1
%39 = load i8*, i8** %38
%40 = call i32 @strcpy(i8* %36, i8* %39)
%41 = getelementptr inbounds [128 x i8], [128 x i8]* %9, i64 0, i64 0
%42 = call i32 @strcat(i8* %41, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%43 = getelementptr inbounds [128 x i8], [128 x i8]* %9, i64 0, i64 0
%44 = call i32* @fopen(i8* %43, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
store i32* %44, i32** %14
%45 = load i8**, i8*** %5
%46 = getelementptr inbounds i8*, i8** %45, i64 1
%47 = load i8*, i8** %46
%48 = call i32* @fopen(i8* %47, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i32* %48, i32** %12
%49 = load i8**, i8*** %5
%50 = getelementptr inbounds i8*, i8** %49, i64 2
%51 = load i8*, i8** %50
%52 = call i32* @fopen(i8* %51, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i32* %52, i32** %13
%53 = load i8**, i8*** %5
%54 = getelementptr inbounds i8*, i8** %53, i64 3
%55 = load i8*, i8** %54
%56 = call i32 @atoi(i8* %55)
store i32 %56, i32* %6
%57 = load i32, i32* %6
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0), i32 %57)
store double 0.000000e+00, double* %10
store i32 0, i32* %19
br label %59
59: ; preds = %104, %35
%60 = load i32, i32* %19
%61 = load i32, i32* %6
%62 = icmp slt i32 %60, %61
br i1 %62, label %63, label %107
63: ; preds = %59
%64 = load i32*, i32** %12
%65 = call i32 @fscanf(i32* %64, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), double* %15, double* %16)
%66 = load i32*, i32** %13
%67 = call i32 @fscanf(i32* %66, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), double* %17, double* %18)
%68 = load double, double* %15
%69 = load double, double* %17
%70 = fsub double %68, %69
%71 = load double, double* %15
%72 = load double, double* %17
%73 = fsub double %71, %72
%74 = load double, double* %16
%75 = load double, double* %18
%76 = fsub double %74, %75
%77 = load double, double* %16
%78 = load double, double* %18
%79 = fsub double %77, %78
%80 = fmul double %76, %79
%81 = call double @llvm.fmuladd.f64(double %70, double %73, double %80)
%82 = call double @sqrt(double %81)
store double %82, double* %11
%83 = load i32*, i32** %14
%84 = load i32, i32* %19
%85 = load double, double* %15
%86 = load double, double* %17
%87 = fsub double %85, %86
%88 = load double, double* %16
%89 = load double, double* %18
%90 = fsub double %88, %89
%91 = load double, double* %11
%92 = call i32 (i32*, i8*, ...) @fprintf(i32* %83, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0), i32 %84, double %87, double %90, double %91)
%93 = load double, double* %11
%94 = load double, double* %10
%95 = fcmp ogt double %93, %94
br i1 %95, label %96, label %103
96: ; preds = %63
%97 = load double, double* %11
store double %97, double* %10
%98 = load i32, i32* %19
store i32 %98, i32* %22
%99 = load double, double* %15
store double %99, double* %23
%100 = load double, double* %17
store double %100, double* %24
%101 = load double, double* %16
store double %101, double* %25
%102 = load double, double* %18
store double %102, double* %26
br label %103
103: ; preds = %96, %63
br label %104
104: ; preds = %103
%105 = load i32, i32* %19
%106 = add nsw i32 %105, 1
store i32 %106, i32* %19
br label %59
107: ; preds = %59
%108 = load i32*, i32** %12
%109 = call i32 @fclose(i32* %108)
%110 = load i32*, i32** %13
%111 = call i32 @fclose(i32* %110)
%112 = load i32*, i32** %14
%113 = call i32 @fclose(i32* %112)
%114 = load double, double* %10
%115 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.7, i64 0, i64 0), double %114)
%116 = load i32, i32* %22
%117 = load double, double* %23
%118 = load double, double* %25
%119 = load double, double* %24
%120 = load double, double* %26
%121 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0), i32 %116, double %117, double %118, double %119, double %120)
%122 = getelementptr inbounds [128 x i8], [128 x i8]* %9, i64 0, i64 0
%123 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.9, i64 0, i64 0), i8* %122)
%124 = load i32, i32* %3
ret i32 %124
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [32 x i8] c"format: dcompare file1 file2 n\0A\00"
@.str.1 = [6 x i8] c".diff\00"
@.str.2 = [2 x i8] c"w\00"
@.str.3 = [2 x i8] c"r\00"
@.str.4 = [18 x i8] c"No. of points %d\0A\00"
@.str.5 = [9 x i8] c"%lf %lf\0A\00"
@.str.6 = [14 x i8] c"%d: %f\09%f\09%f\0A\00"
@.str.7 = [34 x i8] c" max componentwise distance: %g\0A\00"
@.str.8 = [19 x i8] c"%d %g,%g == %g,%g\0A\00"
@.str.9 = [24 x i8] c"Output file %s written\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [128 x i8]
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = getelementptr inbounds [128 x i8], [128 x i8]* %3, i64 0, i64 0
%9 = bitcast double* %4 to i8*
%10 = bitcast double* %5 to i8*
%11 = bitcast double* %6 to i8*
%12 = bitcast double* %7 to i8*
%13 = icmp eq i32 %0, 4
br i1 %13, label %20, label %14
14: ; preds = %2
%15 = load i32, i32* @stderr
%16 = sext i32 %15 to i64
%17 = inttoptr i64 %16 to i32*
%18 = tail call i64 @fwrite(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0), i64 31, i64 1, i32* %17)
%19 = tail call i32 @exit(i32 -1)
unreachable
20: ; preds = %2
%21 = getelementptr inbounds i8*, i8** %1, i64 1
%22 = load i8*, i8** %21
%23 = call i32 @strcpy(i8* %8, i8* %22)
%24 = call i32 @strcat(i8* %8, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%25 = call i32* @fopen(i8* %8, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%26 = load i8*, i8** %21
%27 = call i32* @fopen(i8* %26, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%28 = getelementptr inbounds i8*, i8** %1, i64 2
%29 = load i8*, i8** %28
%30 = call i32* @fopen(i8* %29, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%31 = getelementptr inbounds i8*, i8** %1, i64 3
%32 = load i8*, i8** %31
%33 = call i32 @atoi(i8* %32)
%34 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0), i32 %33)
%35 = icmp sgt i32 %33, 0
br i1 %35, label %36, label %77
36: ; preds = %20, %68
%37 = phi double [ %74, %68 ], [ undef, %20 ]
%38 = phi double [ %73, %68 ], [ undef, %20 ]
%39 = phi double [ %72, %68 ], [ undef, %20 ]
%40 = phi double [ %71, %68 ], [ undef, %20 ]
%41 = phi i32 [ %70, %68 ], [ undef, %20 ]
%42 = phi double [ %69, %68 ], [ 0.000000e+00, %20 ]
%43 = phi i32 [ %75, %68 ], [ 0, %20 ]
%44 = call i32 @fscanf(i32* %27, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), double* %4, double* %5)
%45 = call i32 @fscanf(i32* %30, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), double* %6, double* %7)
%46 = load double, double* %4
%47 = load double, double* %6
%48 = fsub double %46, %47
%49 = load double, double* %5
%50 = load double, double* %7
%51 = fsub double %49, %50
%52 = fmul double %51, %51
%53 = call double @llvm.fmuladd.f64(double %48, double %48, double %52)
%54 = call double @sqrt(double %53)
%55 = load double, double* %4
%56 = load double, double* %6
%57 = fsub double %55, %56
%58 = load double, double* %5
%59 = load double, double* %7
%60 = fsub double %58, %59
%61 = call i32 (i32*, i8*, ...) @fprintf(i32* %25, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0), i32 %43, double %57, double %60, double %54)
%62 = fcmp ogt double %54, %42
br i1 %62, label %63, label %68
63: ; preds = %36
%64 = load double, double* %4
%65 = load double, double* %6
%66 = load double, double* %5
%67 = load double, double* %7
br label %68
68: ; preds = %36, %63
%69 = phi double [ %54, %63 ], [ %42, %36 ]
%70 = phi i32 [ %43, %63 ], [ %41, %36 ]
%71 = phi double [ %64, %63 ], [ %40, %36 ]
%72 = phi double [ %65, %63 ], [ %39, %36 ]
%73 = phi double [ %66, %63 ], [ %38, %36 ]
%74 = phi double [ %67, %63 ], [ %37, %36 ]
%75 = add nuw nsw i32 %43, 1
%76 = icmp eq i32 %75, %33
br i1 %76, label %77, label %36
77: ; preds = %68, %20
%78 = phi double [ 0.000000e+00, %20 ], [ %69, %68 ]
%79 = phi i32 [ undef, %20 ], [ %70, %68 ]
%80 = phi double [ undef, %20 ], [ %71, %68 ]
%81 = phi double [ undef, %20 ], [ %72, %68 ]
%82 = phi double [ undef, %20 ], [ %73, %68 ]
%83 = phi double [ undef, %20 ], [ %74, %68 ]
%84 = call i32 @fclose(i32* %27)
%85 = call i32 @fclose(i32* %30)
%86 = call i32 @fclose(i32* %25)
%87 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.7, i64 0, i64 0), double %78)
%88 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0), i32 %79, double %80, double %82, double %81, double %83)
%89 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.9, i64 0, i64 0), i8* %8)
ret i32 0
}