#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 */
scalar_t__ EOF;
int /*<<< orphan*/ *fopen(char *, char *);
scalar_t__ fscanf(int /*<<< orphan*/ *, char *, int *, double *);
char getc(int /*<<< orphan*/ *);
int /*<<< orphan*/ printf(char *, ...);
double sqrt(double);
int /*<<< orphan*/ tofile(int, double, int /*<<< orphan*/ *,
                          int /*<<< orphan*/ *);
int main() {
  int id_curr = 0, id_prev = 0, routes = 1;
  double part = 0, length = 0, total = 0, square = 0;
  FILE *fp = fopen("shapes.txt", "r");
  FILE *l4 = fopen("lessthanorequalto4000.txt", "w");
  FILE *g4 = fopen("greaterthan4000.txt", "w");
  if (fp == NULL || l4 == NULL || g4 == NULL)
    return -1;
  while (getc(fp) != '\n')
    continue;
  if (fscanf(fp, "%d,%*f,%*f,%*f,%lf", &id_curr, &part) == EOF)
    return -2;
  id_prev = id_curr;
  do {
    if (id_prev != id_curr) {
      total += length;
      square += length * length;
      tofile(id_prev, length, l4, g4);
      id_prev = id_curr;
      routes++;
      length = 0;
    }
    length += part;
  } while (fscanf(fp, "%d,%*f,%*f,%*f,%lf", &id_curr, &part) != EOF);
  total += length;
  tofile(id_prev, length, l4, g4);
  printf("\"shapes.txt\" has been parsed.\n");
  printf("\"lessthanorequalto4000.txt\" and \"greaterthan4000.txt\" have been "
         "updtaed.\n");
  printf("Average distance: %.4lfm\n", total / routes);
  printf("Standard deviation: %.4lfm\n",
         sqrt((square / routes) - total * total / (routes * routes)));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x1,-0x10(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x18(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x20(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x28(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x30(%rbp)
lea    0xe55(%rip),%rdi
lea    0xe59(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,-0x38(%rbp)
lea    0xe4b(%rip),%rdi
lea    0xe5e(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,-0x40(%rbp)
lea    0xe50(%rip),%rdi
lea    0xe47(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,-0x48(%rbp)
cmpq   $0x0,-0x38(%rbp)
je     120a <main+0xaa>
cmpq   $0x0,-0x40(%rbp)
je     120a <main+0xaa>
cmpq   $0x0,-0x48(%rbp)
jne    1216 <main+0xb6>
movl   $0xffffffff,-0x4(%rbp)
jmp    13aa <main+0x24a>
jmp    121b <main+0xbb>
mov    -0x38(%rbp),%rdi
call   1080 <getc@plt>
movsbl %al,%eax
cmp    $0xa,%eax
je     1235 <main+0xd5>
jmp    121b <main+0xbb>
mov    -0x38(%rbp),%rdi
lea    0xdfd(%rip),%rsi
lea    -0x8(%rbp),%rdx
lea    -0x18(%rbp),%rcx
call   1050 <fscanf@plt>
mov    0x2d94(%rip),%rcx
cmp    (%rcx),%rax
jne    1269 <main+0x109>
movl   $0xfffffffe,-0x4(%rbp)
jmp    13aa <main+0x24a>
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
je     12d2 <main+0x172>
movsd  -0x20(%rbp),%xmm0
addsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x20(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm2
movsd  -0x30(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0xc(%rbp),%edi
movsd  -0x20(%rbp),%xmm0
mov    -0x40(%rbp),%rsi
mov    -0x48(%rbp),%rdx
call   1030 <tofile@plt>
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x18(%rbp),%xmm0
addsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
mov    -0x38(%rbp),%rdi
lea    0xd51(%rip),%rsi
lea    -0x8(%rbp),%rdx
lea    -0x18(%rbp),%rcx
call   1050 <fscanf@plt>
mov    0x2ce8(%rip),%rcx
cmp    (%rcx),%rax
jne    126f <main+0x10f>
movsd  -0x20(%rbp),%xmm0
addsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
mov    -0xc(%rbp),%edi
movsd  -0x20(%rbp),%xmm0
mov    -0x40(%rbp),%rsi
mov    -0x48(%rbp),%rdx
call   1030 <tofile@plt>
lea    0xd1c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xd2d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movsd  -0x28(%rbp),%xmm0
cvtsi2sdl -0x10(%rbp),%xmm1
divsd  %xmm1,%xmm0
lea    0xd5b(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  -0x30(%rbp),%xmm0
cvtsi2sdl -0x10(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  -0x28(%rbp),%xmm1
mulsd  -0x28(%rbp),%xmm1
mov    -0x10(%rbp),%eax
imul   -0x10(%rbp),%eax
cvtsi2sd %eax,%xmm2
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
call   1070 <sqrt@plt>
lea    0xd37(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
movl   $0x0,0xc(%rsp)
movq   $0x0,0x18(%rsp)
lea    0xe6a(%rip),%rdi
lea    0xe6e(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,%rbx
lea    0xe61(%rip),%rdi
lea    0xe74(%rip),%rbp
mov    %rbp,%rsi
call   1070 <fopen@plt>
mov    %rax,%r14
lea    0xe64(%rip),%rdi
mov    %rbp,%rsi
call   1070 <fopen@plt>
mov    %rax,0x10(%rsp)
mov    $0xffffffff,%eax
test   %rbx,%rbx
je     13df <main+0x26f>
test   %r14,%r14
je     13df <main+0x26f>
cmpq   $0x0,0x10(%rsp)
je     13df <main+0x26f>
cs nopw 0x0(%rax,%rax,1)
nop
mov    %rbx,%rdi
call   1090 <getc@plt>
cmp    $0xa,%al
jne    1200 <main+0x90>
lea    0xe2a(%rip),%rsi
lea    0xc(%rsp),%rdx
lea    0x18(%rsp),%rcx
mov    %rbx,%rdi
call   1060 <fscanf@plt>
mov    %rax,%rcx
mov    0x2db9(%rip),%rdx
mov    $0xfffffffe,%eax
cmp    (%rdx),%rcx
je     13df <main+0x26f>
mov    %r14,0x38(%rsp)
mov    $0x1,%r15d
xorpd  %xmm2,%xmm2
mov    0xc(%rsp),%eax
lea    0xde6(%rip),%r12
lea    0xc(%rsp),%r13
lea    0x18(%rsp),%rbp
xorpd  %xmm0,%xmm0
movapd %xmm0,0x20(%rsp)
xorpd  %xmm0,%xmm0
movapd %xmm0,0x50(%rsp)
mov    %eax,%r14d
cmp    %eax,%r14d
jne    1290 <main+0x120>
nopl   (%rax)
mov    %eax,%r14d
jmp    12db <main+0x16b>
cs nopw 0x0(%rax,%rax,1)
nop
movapd 0x20(%rsp),%xmm0
addsd  %xmm2,%xmm0
movapd %xmm0,0x20(%rsp)
movapd %xmm2,%xmm0
mulsd  %xmm2,%xmm0
movapd 0x50(%rsp),%xmm1
addsd  %xmm0,%xmm1
movapd %xmm1,0x50(%rsp)
mov    %r14d,%edi
movapd %xmm2,%xmm0
mov    0x38(%rsp),%rsi
mov    0x10(%rsp),%rdx
call   1040 <tofile@plt>
mov    0xc(%rsp),%r14d
add    $0x1,%r15d
xorpd  %xmm2,%xmm2
addsd  0x18(%rsp),%xmm2
movsd  %xmm2,0x40(%rsp)
mov    %rbx,%rdi
mov    %r12,%rsi
mov    %r13,%rdx
mov    %rbp,%rcx
call   1060 <fscanf@plt>
mov    0x2ce9(%rip),%rcx
cmp    (%rcx),%rax
je     131c <main+0x1ac>
mov    0xc(%rsp),%eax
movsd  0x40(%rsp),%xmm2
cmp    %eax,%r14d
jne    1290 <main+0x120>
jmp    1280 <main+0x110>
movsd  0x40(%rsp),%xmm0
movapd 0x20(%rsp),%xmm1
addsd  %xmm0,%xmm1
movapd %xmm1,0x20(%rsp)
mov    %r14d,%edi
mov    0x38(%rsp),%rsi
mov    0x10(%rsp),%rdx
call   1040 <tofile@plt>
lea    0xd3b(%rip),%rdi
call   1030 <puts@plt>
lea    0xd4d(%rip),%rdi
call   1030 <puts@plt>
movd   %r15d,%xmm0
imul   %r15d,%r15d
movd   %r15d,%xmm1
punpckldq %xmm1,%xmm0
cvtdq2pd %xmm0,%xmm1
movapd %xmm1,0x40(%rsp)
movapd 0x20(%rsp),%xmm0
divsd  %xmm1,%xmm0
lea    0xcc7(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movapd 0x20(%rsp),%xmm0
mulsd  %xmm0,%xmm0
movapd 0x50(%rsp),%xmm1
unpcklpd %xmm0,%xmm1
divpd  0x40(%rsp),%xmm1
movapd %xmm1,%xmm0
unpckhpd %xmm1,%xmm0
subsd  %xmm0,%xmm1
xorpd  %xmm0,%xmm0
ucomisd %xmm0,%xmm1
movapd %xmm1,%xmm0
jb     13ca <main+0x25a>
sqrtsd %xmm0,%xmm0
jmp    13cf <main+0x25f>
call   1080 <sqrt@plt>
lea    0xc94(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
xor    %eax,%eax
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [11 x i8] c"shapes.txt\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [26 x i8] c"lessthanorequalto4000.txt\00"
@.str.3 = [2 x i8] c"w\00"
@.str.4 = [20 x i8] c"greaterthan4000.txt\00"
@.str.5 = [19 x i8] c"%d,%*f,%*f,%*f,%lf\00"
@EOF = global i64 0
@.str.6 = [31 x i8] c"\22shapes.txt\22 has been parsed.\0A\00"
@.str.7 = [74 x i8] c"\22lessthanorequalto4000.txt\22 and \22greaterthan4000.txt\22 have been updtaed.\0A\00"
@.str.8 = [26 x i8] c"Average distance: %.4lfm\0A\00"
@.str.9 = [28 x i8] c"Standard deviation: %.4lfm\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
%9 = alloca i32*
%10 = alloca i32*
%11 = alloca i32*
store i32 0, i32* %1
store i32 0, i32* %2
store i32 0, i32* %3
store i32 1, i32* %4
store double 0.000000e+00, double* %5
store double 0.000000e+00, double* %6
store double 0.000000e+00, double* %7
store double 0.000000e+00, double* %8
%12 = call i32* @fopen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %12, i32** %9
%13 = call i32* @fopen(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i32* %13, i32** %10
%14 = call i32* @fopen(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i32* %14, i32** %11
%15 = load i32*, i32** %9
%16 = icmp eq i32* %15, null
br i1 %16, label %23, label %17
17: ; preds = %0
%18 = load i32*, i32** %10
%19 = icmp eq i32* %18, null
br i1 %19, label %23, label %20
20: ; preds = %17
%21 = load i32*, i32** %11
%22 = icmp eq i32* %21, null
br i1 %22, label %23, label %24
23: ; preds = %20, %17, %0
store i32 -1, i32* %1
br label %99
24: ; preds = %20
br label %25
25: ; preds = %30, %24
%26 = load i32*, i32** %9
%27 = call signext i8 @getc(i32* %26)
%28 = sext i8 %27 to i32
%29 = icmp ne i32 %28, 10
br i1 %29, label %30, label %31
30: ; preds = %25
br label %25
31: ; preds = %25
%32 = load i32*, i32** %9
%33 = call i64 @fscanf(i32* %32, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), i32* %2, double* %5)
%34 = load i64, i64* @EOF
%35 = icmp eq i64 %33, %34
br i1 %35, label %36, label %37
36: ; preds = %31
store i32 -2, i32* %1
br label %99
37: ; preds = %31
%38 = load i32, i32* %2
store i32 %38, i32* %3
br label %39
39: ; preds = %63, %37
%40 = load i32, i32* %3
%41 = load i32, i32* %2
%42 = icmp ne i32 %40, %41
br i1 %42, label %43, label %59
43: ; preds = %39
%44 = load double, double* %6
%45 = load double, double* %7
%46 = fadd double %45, %44
store double %46, double* %7
%47 = load double, double* %6
%48 = load double, double* %6
%49 = load double, double* %8
%50 = call double @llvm.fmuladd.f64(double %47, double %48, double %49)
store double %50, double* %8
%51 = load i32, i32* %3
%52 = load double, double* %6
%53 = load i32*, i32** %10
%54 = load i32*, i32** %11
%55 = call i32 @tofile(i32 %51, double %52, i32* %53, i32* %54)
%56 = load i32, i32* %2
store i32 %56, i32* %3
%57 = load i32, i32* %4
%58 = add nsw i32 %57, 1
store i32 %58, i32* %4
store double 0.000000e+00, double* %6
br label %59
59: ; preds = %43, %39
%60 = load double, double* %5
%61 = load double, double* %6
%62 = fadd double %61, %60
store double %62, double* %6
br label %63
63: ; preds = %59
%64 = load i32*, i32** %9
%65 = call i64 @fscanf(i32* %64, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), i32* %2, double* %5)
%66 = load i64, i64* @EOF
%67 = icmp ne i64 %65, %66
br i1 %67, label %39, label %68
68: ; preds = %63
%69 = load double, double* %6
%70 = load double, double* %7
%71 = fadd double %70, %69
store double %71, double* %7
%72 = load i32, i32* %3
%73 = load double, double* %6
%74 = load i32*, i32** %10
%75 = load i32*, i32** %11
%76 = call i32 @tofile(i32 %72, double %73, i32* %74, i32* %75)
%77 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.6, i64 0, i64 0))
%78 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.7, i64 0, i64 0))
%79 = load double, double* %7
%80 = load i32, i32* %4
%81 = sitofp i32 %80 to double
%82 = fdiv double %79, %81
%83 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.8, i64 0, i64 0), double %82)
%84 = load double, double* %8
%85 = load i32, i32* %4
%86 = sitofp i32 %85 to double
%87 = fdiv double %84, %86
%88 = load double, double* %7
%89 = load double, double* %7
%90 = fmul double %88, %89
%91 = load i32, i32* %4
%92 = load i32, i32* %4
%93 = mul nsw i32 %91, %92
%94 = sitofp i32 %93 to double
%95 = fdiv double %90, %94
%96 = fsub double %87, %95
%97 = call double @sqrt(double %96)
%98 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.9, i64 0, i64 0), double %97)
store i32 0, i32* %1
br label %99
99: ; preds = %68, %36, %23
%100 = load i32, i32* %1
ret i32 %100
}

LLVM IR (-O2):
@.str = [11 x i8] c"shapes.txt\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [26 x i8] c"lessthanorequalto4000.txt\00"
@.str.3 = [2 x i8] c"w\00"
@.str.4 = [20 x i8] c"greaterthan4000.txt\00"
@.str.5 = [19 x i8] c"%d,%*f,%*f,%*f,%lf\00"
@EOF = global i64 0
@.str.8 = [26 x i8] c"Average distance: %.4lfm\0A\00"
@.str.9 = [28 x i8] c"Standard deviation: %.4lfm\0A\00"
@str = [30 x i8] c"\22shapes.txt\22 has been parsed.\00"
@str.10 = [73 x i8] c"\22lessthanorequalto4000.txt\22 and \22greaterthan4000.txt\22 have been updtaed.\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca double
%3 = bitcast i32* %1 to i8*
store i32 0, i32* %1
%4 = bitcast double* %2 to i8*
store double 0.000000e+00, double* %2
%5 = tail call i32* @fopen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%6 = tail call i32* @fopen(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%7 = tail call i32* @fopen(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%8 = icmp eq i32* %5, null
%9 = icmp eq i32* %6, null
%10 = or i1 %8, %9
%11 = icmp eq i32* %7, null
%12 = or i1 %10, %11
br i1 %12, label %70, label %13
13: ; preds = %0, %13
%14 = tail call signext i8 @getc(i32* %5)
%15 = icmp eq i8 %14, 10
br i1 %15, label %16, label %13
16: ; preds = %13
%17 = call i64 @fscanf(i32* %5, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), i32* %1, double* %2)
%18 = load i64, i64* @EOF
%19 = icmp eq i64 %17, %18
br i1 %19, label %70, label %20
20: ; preds = %16
%21 = load i32, i32* %1
br label %22
22: ; preds = %47, %20
%23 = phi i32 [ %21, %20 ], [ %48, %47 ]
%24 = phi double [ 0.000000e+00, %20 ], [ %43, %47 ]
%25 = phi double [ 0.000000e+00, %20 ], [ %38, %47 ]
%26 = phi double [ 0.000000e+00, %20 ], [ %39, %47 ]
%27 = phi i32 [ 1, %20 ], [ %40, %47 ]
%28 = phi i32 [ %21, %20 ], [ %41, %47 ]
%29 = icmp eq i32 %28, %23
br i1 %29, label %36, label %30
30: ; preds = %22
%31 = fadd double %24, %25
%32 = call double @llvm.fmuladd.f64(double %24, double %24, double %26)
%33 = call i32 @tofile(i32 %28, double %24, i32* %6, i32* %7)
%34 = load i32, i32* %1
%35 = add nsw i32 %27, 1
br label %36
36: ; preds = %30, %22
%37 = phi double [ 0.000000e+00, %30 ], [ %24, %22 ]
%38 = phi double [ %31, %30 ], [ %25, %22 ]
%39 = phi double [ %32, %30 ], [ %26, %22 ]
%40 = phi i32 [ %35, %30 ], [ %27, %22 ]
%41 = phi i32 [ %34, %30 ], [ %23, %22 ]
%42 = load double, double* %2
%43 = fadd double %37, %42
%44 = call i64 @fscanf(i32* %5, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), i32* %1, double* %2)
%45 = load i64, i64* @EOF
%46 = icmp eq i64 %44, %45
br i1 %46, label %49, label %47
47: ; preds = %36
%48 = load i32, i32* %1
br label %22
49: ; preds = %36
%50 = fadd double %38, %43
%51 = call i32 @tofile(i32 %41, double %43, i32* %6, i32* %7)
%52 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str, i64 0, i64 0))
%53 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @str.10, i64 0, i64 0))
%54 = mul nsw i32 %40, %40
%55 = insertelement <2 x i32> poison, i32 %40, i64 0
%56 = insertelement <2 x i32> %55, i32 %54, i64 1
%57 = sitofp <2 x i32> %56 to <2 x double>
%58 = extractelement <2 x double> %57, i64 0
%59 = fdiv double %50, %58
%60 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.8, i64 0, i64 0), double %59)
%61 = fmul double %50, %50
%62 = insertelement <2 x double> poison, double %39, i64 0
%63 = insertelement <2 x double> %62, double %61, i64 1
%64 = fdiv <2 x double> %63, %57
%65 = shufflevector <2 x double> %64, <2 x double> poison, <2 x i32> <i32 1, i32 undef>
%66 = fsub <2 x double> %64, %65
%67 = extractelement <2 x double> %66, i64 0
%68 = call double @sqrt(double %67)
%69 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.9, i64 0, i64 0), double %68)
br label %70
70: ; preds = %16, %0, %49
%71 = phi i32 [ 0, %49 ], [ -1, %0 ], [ -2, %16 ]
ret i32 %71
}