#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 */

/* Variables and functions */
int atoi(char *);
int /*<<< orphan*/ eval_AtA_times_u(int const, double *, double *);
int /*<<< orphan*/ printf(char *, double);
double sqrt(double);
int main(int argc, char *argv[]) {
  int i;
  const int N = ((argc == 2) ? atoi(argv[1]) : 1000);
  double u[N], v[N], vBv, vv;
  for (i = 0; i < N; i++)
    u[i] = 1;
  for (i = 0; i < 10; i++) {
    eval_AtA_times_u(N, u, v);
    eval_AtA_times_u(N, v, u);
  }
  vBv = vv = 0;
  for (i = 0; i < N; i++) {
    vBv += u[i] * v[i];
    vv += v[i] * v[i];
  }
  printf("%0.9f\n", sqrt(vBv / vv));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
jne    1175 <main+0x35>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1050 <atoi@plt>
mov    %eax,-0x44(%rbp)
jmp    1182 <main+0x42>
mov    $0x3e8,%eax
mov    %eax,-0x44(%rbp)
jmp    1182 <main+0x42>
mov    -0x44(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x20(%rbp)
lea    0xf(,%rax,8),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x58(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x28(%rbp)
mov    -0x18(%rbp),%eax
lea    0xf(,%rax,8),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x50(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x30(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    1205 <main+0xc5>
mov    -0x58(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsd  0xe0e(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    11d6 <main+0x96>
movl   $0x0,-0x14(%rbp)
cmpl   $0xa,-0x14(%rbp)
jge    1244 <main+0x104>
mov    -0x58(%rbp),%rsi
mov    -0x50(%rbp),%rdx
mov    -0x18(%rbp),%edi
call   1030 <eval_AtA_times_u@plt>
mov    -0x50(%rbp),%rsi
mov    -0x58(%rbp),%rdx
mov    -0x18(%rbp),%edi
call   1030 <eval_AtA_times_u@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    120c <main+0xcc>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x40(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x38(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    12c5 <main+0x185>
mov    -0x50(%rbp),%rax
mov    -0x58(%rbp),%rcx
movslq -0x14(%rbp),%rdx
movsd  (%rcx,%rdx,8),%xmm0
movslq -0x14(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x38(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movslq -0x14(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movslq -0x14(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x40(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    125b <main+0x11b>
movsd  -0x38(%rbp),%xmm0
divsd  -0x40(%rbp),%xmm0
call   1060 <sqrt@plt>
lea    0xd2d(%rip),%rdi
call   1040 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
cmp    $0x2,%edi
jne    1192 <main+0x52>
mov    0x8(%rsi),%rdi
call   1050 <atoi@plt>
mov    %eax,%r15d
mov    %eax,%r12d
mov    %rsp,%rbx
lea    0xf(,%r12,8),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rbx
mov    %rbx,%rsp
mov    %rsp,%r14
sub    %rax,%r14
mov    %r14,%rsp
test   %r15d,%r15d
jle    11e5 <main+0xa5>
cmp    $0x4,%r12d
jae    11be <main+0x7e>
xor    %eax,%eax
jmp    12bc <main+0x17c>
mov    %rsp,%rbx
add    $0xffffffffffffe0c0,%rbx
mov    %rbx,%rsp
mov    %rsp,%r14
add    $0xffffffffffffe0c0,%r14
mov    %r14,%rsp
mov    $0x3e8,%r15d
mov    $0x3e8,%r12d
cmp    $0x4,%r12d
jb     118b <main+0x4b>
mov    %r12d,%eax
and    $0xfffffffc,%eax
lea    -0x4(%rax),%rsi
mov    %rsi,%rdx
shr    $0x2,%rdx
add    $0x1,%rdx
mov    %edx,%ecx
and    $0x7,%ecx
cmp    $0x1c,%rsi
jae    11ed <main+0xad>
xor    %esi,%esi
jmp    1285 <main+0x145>
xor    %r13d,%r13d
jmp    12e0 <main+0x1a0>
and    $0xfffffffffffffff8,%rdx
xor    %esi,%esi
movapd 0xe05(%rip),%xmm0
nopl   0x0(%rax,%rax,1)
movupd %xmm0,(%rbx,%rsi,8)
movupd %xmm0,0x10(%rbx,%rsi,8)
movupd %xmm0,0x20(%rbx,%rsi,8)
movupd %xmm0,0x30(%rbx,%rsi,8)
movupd %xmm0,0x40(%rbx,%rsi,8)
movupd %xmm0,0x50(%rbx,%rsi,8)
movupd %xmm0,0x60(%rbx,%rsi,8)
movupd %xmm0,0x70(%rbx,%rsi,8)
movupd %xmm0,0x80(%rbx,%rsi,8)
movupd %xmm0,0x90(%rbx,%rsi,8)
movupd %xmm0,0xa0(%rbx,%rsi,8)
movupd %xmm0,0xb0(%rbx,%rsi,8)
movupd %xmm0,0xc0(%rbx,%rsi,8)
movupd %xmm0,0xd0(%rbx,%rsi,8)
movupd %xmm0,0xe0(%rbx,%rsi,8)
movupd %xmm0,0xf0(%rbx,%rsi,8)
add    $0x20,%rsi
add    $0xfffffffffffffff8,%rdx
jne    1200 <main+0xc0>
test   %rcx,%rcx
je     12b4 <main+0x174>
lea    (%rbx,%rsi,8),%rdx
add    $0x10,%rdx
shl    $0x5,%rcx
xor    %esi,%esi
movapd 0xd60(%rip),%xmm0
movupd %xmm0,-0x10(%rdx,%rsi,1)
movupd %xmm0,(%rdx,%rsi,1)
add    $0x20,%rsi
cmp    %rsi,%rcx
jne    12a0 <main+0x160>
mov    $0x1,%r13b
cmp    %rax,%r12
je     12e0 <main+0x1a0>
movabs $0x3ff0000000000000,%rcx
cs nopw 0x0(%rax,%rax,1)
mov    %rcx,(%rbx,%rax,8)
add    $0x1,%rax
cmp    %rax,%r12
jne    12d0 <main+0x190>
mov    $0x1,%r13b
mov    %r15d,%edi
mov    %rbx,%rsi
mov    %r14,%rdx
call   1030 <eval_AtA_times_u@plt>
mov    %r15d,%edi
mov    %r14,%rsi
mov    %rbx,%rdx
call   1030 <eval_AtA_times_u@plt>
mov    %r15d,%edi
mov    %rbx,%rsi
mov    %r14,%rdx
call   1030 <eval_AtA_times_u@plt>
mov    %r15d,%edi
mov    %r14,%rsi
mov    %rbx,%rdx
call   1030 <eval_AtA_times_u@plt>
mov    %r15d,%edi
mov    %rbx,%rsi
mov    %r14,%rdx
call   1030 <eval_AtA_times_u@plt>
mov    %r15d,%edi
mov    %r14,%rsi
mov    %rbx,%rdx
call   1030 <eval_AtA_times_u@plt>
mov    %r15d,%edi
mov    %rbx,%rsi
mov    %r14,%rdx
call   1030 <eval_AtA_times_u@plt>
mov    %r15d,%edi
mov    %r14,%rsi
mov    %rbx,%rdx
call   1030 <eval_AtA_times_u@plt>
mov    %r15d,%edi
mov    %rbx,%rsi
mov    %r14,%rdx
call   1030 <eval_AtA_times_u@plt>
mov    %r15d,%edi
mov    %r14,%rsi
mov    %rbx,%rdx
call   1030 <eval_AtA_times_u@plt>
mov    %r15d,%edi
mov    %rbx,%rsi
mov    %r14,%rdx
call   1030 <eval_AtA_times_u@plt>
mov    %r15d,%edi
mov    %r14,%rsi
mov    %rbx,%rdx
call   1030 <eval_AtA_times_u@plt>
mov    %r15d,%edi
mov    %rbx,%rsi
mov    %r14,%rdx
call   1030 <eval_AtA_times_u@plt>
mov    %r15d,%edi
mov    %r14,%rsi
mov    %rbx,%rdx
call   1030 <eval_AtA_times_u@plt>
mov    %r15d,%edi
mov    %rbx,%rsi
mov    %r14,%rdx
call   1030 <eval_AtA_times_u@plt>
mov    %r15d,%edi
mov    %r14,%rsi
mov    %rbx,%rdx
call   1030 <eval_AtA_times_u@plt>
mov    %r15d,%edi
mov    %rbx,%rsi
mov    %r14,%rdx
call   1030 <eval_AtA_times_u@plt>
mov    %r15d,%edi
mov    %r14,%rsi
mov    %rbx,%rdx
call   1030 <eval_AtA_times_u@plt>
mov    %r15d,%edi
mov    %rbx,%rsi
mov    %r14,%rdx
call   1030 <eval_AtA_times_u@plt>
mov    %r15d,%edi
mov    %r14,%rsi
mov    %rbx,%rdx
call   1030 <eval_AtA_times_u@plt>
test   %r13b,%r13b
je     140b <main+0x2cb>
cmp    $0x1,%r12d
jne    1418 <main+0x2d8>
xorpd  %xmm1,%xmm1
xor    %eax,%eax
jmp    1475 <main+0x335>
movsd  0xbfd(%rip),%xmm0
jmp    14a2 <main+0x362>
mov    %r12d,%ecx
and    $0xfffffffe,%ecx
xorpd  %xmm0,%xmm0
xor    %eax,%eax
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsd  (%r14,%rax,8),%xmm2
movsd  0x8(%r14,%rax,8),%xmm1
movapd %xmm2,%xmm3
movhpd (%rbx,%rax,8),%xmm3
unpcklpd %xmm2,%xmm2
mulpd  %xmm3,%xmm2
addpd  %xmm0,%xmm2
movapd %xmm1,%xmm0
movhpd 0x8(%rbx,%rax,8),%xmm0
unpcklpd %xmm1,%xmm1
mulpd  %xmm0,%xmm1
addpd  %xmm2,%xmm1
add    $0x2,%rax
movapd %xmm1,%xmm0
cmp    %rax,%rcx
jne    1430 <main+0x2f0>
test   $0x1,%r12b
je     1496 <main+0x356>
movsd  (%r14,%rax,8),%xmm0
movapd %xmm0,%xmm2
movhpd (%rbx,%rax,8),%xmm2
unpcklpd %xmm0,%xmm0
mulpd  %xmm2,%xmm0
addpd  %xmm0,%xmm1
movapd %xmm1,%xmm0
unpckhpd %xmm1,%xmm0
divsd  %xmm1,%xmm0
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     14b2 <main+0x372>
sqrtsd %xmm0,%xmm0
jmp    14b7 <main+0x377>
call   1060 <sqrt@plt>
lea    0xb5a(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [7 x i8] c"%0.9f\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 i8*
%9 = alloca i64
%10 = alloca i64
%11 = alloca double
%12 = alloca double
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%13 = load i32, i32* %4
%14 = icmp eq i32 %13, 2
br i1 %14, label %15, label %20
15: ; preds = %2
%16 = load i8**, i8*** %5
%17 = getelementptr inbounds i8*, i8** %16, i64 1
%18 = load i8*, i8** %17
%19 = call i32 @atoi(i8* %18)
br label %21
20: ; preds = %2
br label %21
21: ; preds = %20, %15
%22 = phi i32 [ %19, %15 ], [ 1000, %20 ]
store i32 %22, i32* %7
%23 = load i32, i32* %7
%24 = zext i32 %23 to i64
%25 = call i8* @llvm.stacksave()
store i8* %25, i8** %8
%26 = alloca double, i64 %24
store i64 %24, i64* %9
%27 = load i32, i32* %7
%28 = zext i32 %27 to i64
%29 = alloca double, i64 %28
store i64 %28, i64* %10
store i32 0, i32* %6
br label %30
30: ; preds = %38, %21
%31 = load i32, i32* %6
%32 = load i32, i32* %7
%33 = icmp slt i32 %31, %32
br i1 %33, label %34, label %41
34: ; preds = %30
%35 = load i32, i32* %6
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds double, double* %26, i64 %36
store double 1.000000e+00, double* %37
br label %38
38: ; preds = %34
%39 = load i32, i32* %6
%40 = add nsw i32 %39, 1
store i32 %40, i32* %6
br label %30
41: ; preds = %30
store i32 0, i32* %6
br label %42
42: ; preds = %50, %41
%43 = load i32, i32* %6
%44 = icmp slt i32 %43, 10
br i1 %44, label %45, label %53
45: ; preds = %42
%46 = load i32, i32* %7
%47 = call i32 @eval_AtA_times_u(i32 %46, double* %26, double* %29)
%48 = load i32, i32* %7
%49 = call i32 @eval_AtA_times_u(i32 %48, double* %29, double* %26)
br label %50
50: ; preds = %45
%51 = load i32, i32* %6
%52 = add nsw i32 %51, 1
store i32 %52, i32* %6
br label %42
53: ; preds = %42
store double 0.000000e+00, double* %12
store double 0.000000e+00, double* %11
store i32 0, i32* %6
br label %54
54: ; preds = %79, %53
%55 = load i32, i32* %6
%56 = load i32, i32* %7
%57 = icmp slt i32 %55, %56
br i1 %57, label %58, label %82
58: ; preds = %54
%59 = load i32, i32* %6
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds double, double* %26, i64 %60
%62 = load double, double* %61
%63 = load i32, i32* %6
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds double, double* %29, i64 %64
%66 = load double, double* %65
%67 = load double, double* %11
%68 = call double @llvm.fmuladd.f64(double %62, double %66, double %67)
store double %68, double* %11
%69 = load i32, i32* %6
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds double, double* %29, i64 %70
%72 = load double, double* %71
%73 = load i32, i32* %6
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds double, double* %29, i64 %74
%76 = load double, double* %75
%77 = load double, double* %12
%78 = call double @llvm.fmuladd.f64(double %72, double %76, double %77)
store double %78, double* %12
br label %79
79: ; preds = %58
%80 = load i32, i32* %6
%81 = add nsw i32 %80, 1
store i32 %81, i32* %6
br label %54
82: ; preds = %54
%83 = load double, double* %11
%84 = load double, double* %12
%85 = fdiv double %83, %84
%86 = call double @sqrt(double %85)
%87 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), double %86)
store i32 0, i32* %3
%88 = load i8*, i8** %8
%89 = load i32, i32* %3
ret i32 %89
}

LLVM IR (-O2):
@.str = [7 x i8] c"%0.9f\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp eq i32 %0, 2
br i1 %3, label %9, label %4
4: ; preds = %2
%5 = alloca [1000 x double]
%6 = alloca [1000 x double]
%7 = getelementptr inbounds [1000 x double], [1000 x double]* %6, i64 0, i64 0
%8 = getelementptr inbounds [1000 x double], [1000 x double]* %5, i64 0, i64 0
br label %17
9: ; preds = %2
%10 = getelementptr inbounds i8*, i8** %1, i64 1
%11 = load i8*, i8** %10
%12 = tail call i32 @atoi(i8* %11)
%13 = zext i32 %12 to i64
%14 = alloca double, i64 %13
%15 = alloca double, i64 %13
%16 = icmp sgt i32 %12, 0
br i1 %16, label %17, label %94
17: ; preds = %4, %9
%18 = phi double* [ %7, %4 ], [ %15, %9 ]
%19 = phi double* [ %8, %4 ], [ %14, %9 ]
%20 = phi i64 [ 1000, %4 ], [ %13, %9 ]
%21 = phi i32 [ 1000, %4 ], [ %12, %9 ]
%22 = icmp ult i64 %20, 4
br i1 %22, label %92, label %23
23: ; preds = %17
%24 = and i64 %20, 4294967292
%25 = add nsw i64 %24, -4
%26 = lshr exact i64 %25, 2
%27 = add nuw nsw i64 %26, 1
%28 = and i64 %27, 7
%29 = icmp ult i64 %25, 28
br i1 %29, label %77, label %30
30: ; preds = %23
%31 = and i64 %27, 9223372036854775800
br label %32
32: ; preds = %32, %30
%33 = phi i64 [ 0, %30 ], [ %74, %32 ]
%34 = phi i64 [ 0, %30 ], [ %75, %32 ]
%35 = getelementptr inbounds double, double* %19, i64 %33
%36 = bitcast double* %35 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %36
%37 = getelementptr inbounds double, double* %35, i64 2
%38 = bitcast double* %37 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %38
%39 = or i64 %33, 4
%40 = getelementptr inbounds double, double* %19, i64 %39
%41 = bitcast double* %40 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %41
%42 = getelementptr inbounds double, double* %40, i64 2
%43 = bitcast double* %42 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %43
%44 = or i64 %33, 8
%45 = getelementptr inbounds double, double* %19, i64 %44
%46 = bitcast double* %45 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %46
%47 = getelementptr inbounds double, double* %45, i64 2
%48 = bitcast double* %47 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %48
%49 = or i64 %33, 12
%50 = getelementptr inbounds double, double* %19, i64 %49
%51 = bitcast double* %50 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %51
%52 = getelementptr inbounds double, double* %50, i64 2
%53 = bitcast double* %52 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %53
%54 = or i64 %33, 16
%55 = getelementptr inbounds double, double* %19, i64 %54
%56 = bitcast double* %55 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %56
%57 = getelementptr inbounds double, double* %55, i64 2
%58 = bitcast double* %57 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %58
%59 = or i64 %33, 20
%60 = getelementptr inbounds double, double* %19, i64 %59
%61 = bitcast double* %60 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %61
%62 = getelementptr inbounds double, double* %60, i64 2
%63 = bitcast double* %62 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %63
%64 = or i64 %33, 24
%65 = getelementptr inbounds double, double* %19, i64 %64
%66 = bitcast double* %65 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %66
%67 = getelementptr inbounds double, double* %65, i64 2
%68 = bitcast double* %67 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %68
%69 = or i64 %33, 28
%70 = getelementptr inbounds double, double* %19, i64 %69
%71 = bitcast double* %70 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %71
%72 = getelementptr inbounds double, double* %70, i64 2
%73 = bitcast double* %72 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %73
%74 = add nuw i64 %33, 32
%75 = add i64 %34, 8
%76 = icmp eq i64 %75, %31
br i1 %76, label %77, label %32
77: ; preds = %32, %23
%78 = phi i64 [ 0, %23 ], [ %74, %32 ]
%79 = icmp eq i64 %28, 0
br i1 %79, label %90, label %80
80: ; preds = %77, %80
%81 = phi i64 [ %87, %80 ], [ %78, %77 ]
%82 = phi i64 [ %88, %80 ], [ 0, %77 ]
%83 = getelementptr inbounds double, double* %19, i64 %81
%84 = bitcast double* %83 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %84
%85 = getelementptr inbounds double, double* %83, i64 2
%86 = bitcast double* %85 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %86
%87 = add nuw i64 %81, 4
%88 = add i64 %82, 1
%89 = icmp eq i64 %88, %28
br i1 %89, label %90, label %80
90: ; preds = %80, %77
%91 = icmp eq i64 %20, %24
br i1 %91, label %94, label %92
92: ; preds = %17, %90
%93 = phi i64 [ 0, %17 ], [ %24, %90 ]
br label %125
94: ; preds = %125, %90, %9
%95 = phi i1 [ false, %9 ], [ true, %90 ], [ true, %125 ]
%96 = phi double* [ %15, %9 ], [ %18, %90 ], [ %18, %125 ]
%97 = phi double* [ %14, %9 ], [ %19, %90 ], [ %19, %125 ]
%98 = phi i64 [ %13, %9 ], [ %20, %90 ], [ %20, %125 ]
%99 = phi i32 [ %12, %9 ], [ %21, %90 ], [ %21, %125 ]
%100 = call i32 @eval_AtA_times_u(i32 %99, double* %97, double* %96)
%101 = call i32 @eval_AtA_times_u(i32 %99, double* %96, double* %97)
%102 = call i32 @eval_AtA_times_u(i32 %99, double* %97, double* %96)
%103 = call i32 @eval_AtA_times_u(i32 %99, double* %96, double* %97)
%104 = call i32 @eval_AtA_times_u(i32 %99, double* %97, double* %96)
%105 = call i32 @eval_AtA_times_u(i32 %99, double* %96, double* %97)
%106 = call i32 @eval_AtA_times_u(i32 %99, double* %97, double* %96)
%107 = call i32 @eval_AtA_times_u(i32 %99, double* %96, double* %97)
%108 = call i32 @eval_AtA_times_u(i32 %99, double* %97, double* %96)
%109 = call i32 @eval_AtA_times_u(i32 %99, double* %96, double* %97)
%110 = call i32 @eval_AtA_times_u(i32 %99, double* %97, double* %96)
%111 = call i32 @eval_AtA_times_u(i32 %99, double* %96, double* %97)
%112 = call i32 @eval_AtA_times_u(i32 %99, double* %97, double* %96)
%113 = call i32 @eval_AtA_times_u(i32 %99, double* %96, double* %97)
%114 = call i32 @eval_AtA_times_u(i32 %99, double* %97, double* %96)
%115 = call i32 @eval_AtA_times_u(i32 %99, double* %96, double* %97)
%116 = call i32 @eval_AtA_times_u(i32 %99, double* %97, double* %96)
%117 = call i32 @eval_AtA_times_u(i32 %99, double* %96, double* %97)
%118 = call i32 @eval_AtA_times_u(i32 %99, double* %97, double* %96)
%119 = call i32 @eval_AtA_times_u(i32 %99, double* %96, double* %97)
br i1 %95, label %120, label %173
120: ; preds = %94
%121 = and i64 %98, 1
%122 = icmp eq i64 %98, 1
br i1 %122, label %154, label %123
123: ; preds = %120
%124 = and i64 %98, -2
br label %130
125: ; preds = %92, %125
%126 = phi i64 [ %128, %125 ], [ %93, %92 ]
%127 = getelementptr inbounds double, double* %19, i64 %126
store double 1.000000e+00, double* %127
%128 = add nuw nsw i64 %126, 1
%129 = icmp eq i64 %128, %20
br i1 %129, label %94, label %125
130: ; preds = %130, %123
%131 = phi i64 [ 0, %123 ], [ %151, %130 ]
%132 = phi <2 x double> [ zeroinitializer, %123 ], [ %150, %130 ]
%133 = phi i64 [ 0, %123 ], [ %152, %130 ]
%134 = getelementptr inbounds double, double* %97, i64 %131
%135 = load double, double* %134
%136 = getelementptr inbounds double, double* %96, i64 %131
%137 = load double, double* %136
%138 = insertelement <2 x double> poison, double %137, i64 0
%139 = insertelement <2 x double> %138, double %135, i64 1
%140 = shufflevector <2 x double> %138, <2 x double> poison, <2 x i32> zeroinitializer
%141 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %139, <2 x double> %140, <2 x double> %132)
%142 = or i64 %131, 1
%143 = getelementptr inbounds double, double* %97, i64 %142
%144 = load double, double* %143
%145 = getelementptr inbounds double, double* %96, i64 %142
%146 = load double, double* %145
%147 = insertelement <2 x double> poison, double %146, i64 0
%148 = insertelement <2 x double> %147, double %144, i64 1
%149 = shufflevector <2 x double> %147, <2 x double> poison, <2 x i32> zeroinitializer
%150 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %148, <2 x double> %149, <2 x double> %141)
%151 = add nuw nsw i64 %131, 2
%152 = add i64 %133, 2
%153 = icmp eq i64 %152, %124
br i1 %153, label %154, label %130
154: ; preds = %130, %120
%155 = phi <2 x double> [ undef, %120 ], [ %150, %130 ]
%156 = phi i64 [ 0, %120 ], [ %151, %130 ]
%157 = phi <2 x double> [ zeroinitializer, %120 ], [ %150, %130 ]
%158 = icmp eq i64 %121, 0
br i1 %158, label %168, label %159
159: ; preds = %154
%160 = getelementptr inbounds double, double* %97, i64 %156
%161 = load double, double* %160
%162 = getelementptr inbounds double, double* %96, i64 %156
%163 = load double, double* %162
%164 = insertelement <2 x double> poison, double %163, i64 0
%165 = insertelement <2 x double> %164, double %161, i64 1
%166 = shufflevector <2 x double> %164, <2 x double> poison, <2 x i32> zeroinitializer
%167 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %165, <2 x double> %166, <2 x double> %157)
br label %168
168: ; preds = %154, %159
%169 = phi <2 x double> [ %155, %154 ], [ %167, %159 ]
%170 = extractelement <2 x double> %169, i64 0
%171 = extractelement <2 x double> %169, i64 1
%172 = fdiv double %171, %170
br label %173
173: ; preds = %168, %94
%174 = phi double [ %172, %168 ], [ 0x7FF8000000000000, %94 ]
%175 = call double @sqrt(double %174)
%176 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), double %175)
ret i32 0
}