#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 */
scalar_t__ malloc(long);
int /*<<< orphan*/ printf(char *, long, ...);
void main(void) {
  double *tmp, *u, *u_prev;
  double x, t;
  long int i, n, maxloc;
  n = 1.0 / 0.00001;
  u = (double *)malloc((n + 1) * sizeof(double));
  u_prev = (double *)malloc((n + 1) * sizeof(double));
  printf("Inicio: qtde=%ld, dt=%g, dx=%g, dx²=%g, kappa=%f, const=%f\n",
         (n + 1), 0.000001, 0.00001, 0.00001 * 0.00001, 0.000045,
         0.000045 * 0.000001 / (0.00001 * 0.00001));
  printf("Iteracoes previstas: %g\n", 0.01 / 0.000001);
  x = 0.00001;
  for (i = 1; i < n; i++) {
    if (x <= 0.5)
      u_prev[i] = 200 * x;
    else
      u_prev[i] = 200 * (1. - x);
    x += 0.00001;
  }
  t = 0.;
  while (t < 0.01) {
    x = 0.00001;
    for (i = 1; i < n; i++) {
      u[i] = u_prev[i] + 0.000045 * 0.000001 / (0.00001 * 0.00001) *
                             (u_prev[i - 1] - 2 * u_prev[i] + u_prev[i + 1]);
      x += 0.00001;
    }
    u[0] = u[n] = 0.;
    tmp = u_prev;
    u_prev = u;
    u = tmp;
    t += 0.000001;
  }
  maxloc = 0;
  for (i = 1; i < n + 1; i++) {
    if (u[i] > u[maxloc])
      maxloc = i;
  }
  printf("Maior valor u[%ld] = %g\n", maxloc, u[maxloc]);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movq   $0x1869f,-0x38(%rbp)
mov    -0x38(%rbp),%rdi
add    $0x1,%rdi
shl    $0x3,%rdi
call   1040 <malloc@plt>
mov    %rax,-0x10(%rbp)
mov    -0x38(%rbp),%rdi
add    $0x1,%rdi
shl    $0x3,%rdi
call   1040 <malloc@plt>
mov    %rax,-0x18(%rbp)
mov    -0x38(%rbp),%rsi
add    $0x1,%rsi
lea    0xedf(%rip),%rdi
movsd  0xe97(%rip),%xmm0
movsd  0xe87(%rip),%xmm1
movsd  0xe8f(%rip),%xmm2
movsd  0xe8f(%rip),%xmm3
movsd  0xe8f(%rip),%xmm4
mov    $0x5,%al
call   1030 <printf@plt>
lea    0xee6(%rip),%rdi
mov    $0x2710,%esi
mov    $0x0,%al
call   1030 <printf@plt>
movsd  0xe4d(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
movq   $0x1,-0x30(%rbp)
mov    -0x30(%rbp),%rax
cmp    -0x38(%rbp),%rax
jge    1249 <main+0x129>
movsd  0xe5a(%rip),%xmm0
ucomisd -0x20(%rbp),%xmm0
jb     1200 <main+0xe0>
movsd  0xe4f(%rip),%xmm0
mulsd  -0x20(%rbp),%xmm0
mov    -0x18(%rbp),%rax
mov    -0x30(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
jmp    1226 <main+0x106>
movsd  0xe38(%rip),%xmm1
subsd  -0x20(%rbp),%xmm1
movsd  0xe23(%rip),%xmm0
mulsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
mov    -0x30(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  0xdd2(%rip),%xmm0
addsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
jmp    11c0 <main+0xa0>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  0xdcf(%rip),%xmm0
ucomisd -0x28(%rbp),%xmm0
jbe    1352 <main+0x232>
movsd  0xd94(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
movq   $0x1,-0x30(%rbp)
mov    -0x30(%rbp),%rax
cmp    -0x38(%rbp),%rax
jge    1308 <main+0x1e8>
mov    -0x18(%rbp),%rax
mov    -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x18(%rbp),%rax
mov    -0x30(%rbp),%rcx
sub    $0x1,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
mov    -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
addsd  %xmm2,%xmm2
subsd  %xmm2,%xmm0
mov    -0x18(%rbp),%rax
mov    -0x30(%rbp),%rcx
addsd  0x8(%rax,%rcx,8),%xmm0
movsd  0xd50(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
mov    -0x30(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  0xd13(%rip),%xmm0
addsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
jmp    1279 <main+0x159>
mov    -0x10(%rbp),%rax
mov    -0x38(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
mov    -0x18(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
movsd  0xcc5(%rip),%xmm0
addsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
jmp    1251 <main+0x131>
movq   $0x0,-0x40(%rbp)
movq   $0x1,-0x30(%rbp)
mov    -0x30(%rbp),%rax
mov    -0x38(%rbp),%rcx
add    $0x1,%rcx
cmp    %rcx,%rax
jge    13b5 <main+0x295>
mov    -0x10(%rbp),%rax
mov    -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x40(%rbp),%rcx
ucomisd (%rax,%rcx,8),%xmm0
jbe    139f <main+0x27f>
mov    -0x30(%rbp),%rax
mov    %rax,-0x40(%rbp)
jmp    13a4 <main+0x284>
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
jmp    1362 <main+0x242>
mov    -0x40(%rbp),%rsi
mov    -0x10(%rbp),%rax
mov    -0x40(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
lea    0xcd1(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
mov    $0xc3500,%edi
call   1040 <malloc@plt>
mov    %rax,%r14
mov    $0xc3500,%edi
call   1040 <malloc@plt>
mov    %rax,%rbx
lea    0xf1b(%rip),%rdi
movsd  0xeb3(%rip),%xmm0
movsd  0xeb3(%rip),%xmm1
movsd  0xeb3(%rip),%xmm2
movsd  0xeb3(%rip),%xmm3
movsd  0xeb3(%rip),%xmm4
mov    $0x186a0,%esi
mov    $0x5,%al
call   1030 <printf@plt>
lea    0xf1d(%rip),%rdi
mov    $0x2710,%esi
xor    %eax,%eax
call   1030 <printf@plt>
movsd  0xe74(%rip),%xmm6
mov    $0x2,%eax
movsd  0xe87(%rip),%xmm0
movsd  0xe87(%rip),%xmm1
movsd  0xe87(%rip),%xmm2
movapd %xmm6,%xmm3
cs nopw 0x0(%rax,%rax,1)
nop
movapd %xmm0,%xmm4
subsd  %xmm3,%xmm4
movapd %xmm3,%xmm5
cmpnlesd %xmm1,%xmm5
andpd  %xmm5,%xmm4
andnpd %xmm3,%xmm5
orpd   %xmm4,%xmm5
mulsd  %xmm2,%xmm5
movsd  %xmm5,-0x8(%rbx,%rax,8)
addsd  %xmm6,%xmm3
movapd %xmm0,%xmm4
subsd  %xmm3,%xmm4
movapd %xmm3,%xmm5
cmpnlesd %xmm1,%xmm5
andpd  %xmm5,%xmm4
andnpd %xmm3,%xmm5
orpd   %xmm4,%xmm5
mulsd  %xmm2,%xmm5
movsd  %xmm5,(%rbx,%rax,8)
addsd  %xmm6,%xmm3
add    $0x2,%rax
cmp    $0x186a0,%rax
jne    11c0 <main+0xa0>
xorpd  %xmm0,%xmm0
movsd  0xe12(%rip),%xmm8
movapd 0xe1a(%rip),%xmm2
movsd  0xdc1(%rip),%xmm9
movsd  0xdd9(%rip),%xmm1
nopw   0x0(%rax,%rax,1)
mov    %rbx,%rax
mov    %r14,%rbx
lea    0x8(%r14),%rcx
lea    0xc34f8(%r14),%rdi
lea    0x8(%rax),%rdx
lea    0xc34f8(%rax),%rsi
lea    0xc34f0(%rax),%r8
lea    0x10(%rax),%r10
lea    0xc3500(%rax),%r11
cmp    %rsi,%rcx
setb   %bpl
cmp    %rdi,%rdx
setb   %r14b
cmp    %r8,%rcx
setb   %dl
cmp    %rdi,%rax
setb   %r9b
cmp    %r11,%rcx
setb   %sil
cmp    %rdi,%r10
setb   %r8b
mov    $0x1,%ecx
test   %r14b,%bpl
jne    132b <main+0x20b>
and    %r9b,%dl
jne    132b <main+0x20b>
and    %r8b,%sil
jne    132b <main+0x20b>
xor    %ecx,%ecx
nopl   (%rax)
movupd (%rax,%rcx,8),%xmm3
movupd 0x8(%rax,%rcx,8),%xmm4
movupd 0x10(%rax,%rcx,8),%xmm5
movupd 0x18(%rax,%rcx,8),%xmm6
movapd %xmm4,%xmm7
addpd  %xmm4,%xmm7
subpd  %xmm7,%xmm3
movapd %xmm6,%xmm7
addpd  %xmm6,%xmm7
addpd  %xmm5,%xmm3
subpd  %xmm7,%xmm5
movupd 0x20(%rax,%rcx,8),%xmm7
addpd  %xmm5,%xmm7
mulpd  %xmm2,%xmm3
addpd  %xmm4,%xmm3
mulpd  %xmm2,%xmm7
addpd  %xmm6,%xmm7
movupd %xmm3,0x8(%rbx,%rcx,8)
movupd %xmm7,0x18(%rbx,%rcx,8)
add    $0x4,%rcx
cmp    $0x1869c,%rcx
jne    12c0 <main+0x1a0>
mov    $0x1869d,%ecx
add    $0xfffffffffffe7961,%rcx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsd  0xc34f0(%rax,%rcx,8),%xmm3
movsd  0xc34f8(%rax,%rcx,8),%xmm4
movapd %xmm4,%xmm5
addsd  %xmm4,%xmm5
subsd  %xmm5,%xmm3
addsd  0xc3500(%rax,%rcx,8),%xmm3
mulsd  %xmm1,%xmm3
addsd  %xmm4,%xmm3
movsd  %xmm3,0xc34f8(%rbx,%rcx,8)
movsd  0xc34f8(%rax,%rcx,8),%xmm3
movsd  0xc3500(%rax,%rcx,8),%xmm4
movapd %xmm4,%xmm5
addsd  %xmm4,%xmm5
subsd  %xmm5,%xmm3
addsd  0xc3508(%rax,%rcx,8),%xmm3
mulsd  %xmm1,%xmm3
addsd  %xmm4,%xmm3
movsd  %xmm3,0xc3500(%rbx,%rcx,8)
add    $0x2,%rcx
jne    1340 <main+0x220>
movq   $0x0,0xc34f8(%rbx)
movq   $0x0,(%rbx)
addsd  %xmm9,%xmm0
ucomisd %xmm0,%xmm8
mov    %rax,%r14
ja     1250 <main+0x130>
mov    $0x1,%ecx
xor    %esi,%esi
jmp    1400 <main+0x2e0>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %rdx,%rsi
add    $0x3,%rcx
cmp    $0x186a0,%rcx
je     1436 <main+0x316>
movsd  (%rax,%rcx,8),%xmm0
ucomisd (%rax,%rsi,8),%xmm0
mov    %rcx,%rdx
ja     1412 <main+0x2f2>
mov    %rsi,%rdx
movsd  0x8(%rax,%rcx,8),%xmm0
ucomisd (%rax,%rdx,8),%xmm0
jbe    1423 <main+0x303>
lea    0x1(%rcx),%rdx
movsd  0x10(%rax,%rcx,8),%xmm0
ucomisd (%rax,%rdx,8),%xmm0
jbe    13f0 <main+0x2d0>
lea    0x2(%rcx),%rsi
jmp    13f3 <main+0x2d3>
movsd  (%rax,%rsi,8),%xmm0
lea    0xc74(%rip),%rdi
mov    $0x1,%al
pop    %rbx
pop    %r14
pop    %rbp
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [61 x i8] c"Inicio: qtde=%ld, dt=%g, dx=%g, dx\C2\B2=%g, kappa=%f, const=%f\0A\00"
@.str.1 = [25 x i8] c"Iteracoes previstas: %g\0A\00"
@.str.2 = [25 x i8] c"Maior valor u[%ld] = %g\0A\00"
define void @main() {
%1 = alloca double*
%2 = alloca double*
%3 = alloca double*
%4 = alloca double
%5 = alloca double
%6 = alloca i64
%7 = alloca i64
%8 = alloca i64
store i64 99999, i64* %7
%9 = load i64, i64* %7
%10 = add nsw i64 %9, 1
%11 = mul i64 %10, 8
%12 = call i64 @malloc(i64 %11)
%13 = inttoptr i64 %12 to double*
store double* %13, double** %2
%14 = load i64, i64* %7
%15 = add nsw i64 %14, 1
%16 = mul i64 %15, 8
%17 = call i64 @malloc(i64 %16)
%18 = inttoptr i64 %17 to double*
store double* %18, double** %3
%19 = load i64, i64* %7
%20 = add nsw i64 %19, 1
%21 = call i32 (i8*, i64, ...) @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str, i64 0, i64 0), i64 %20, double 0x3EB0C6F7A0B5ED8D, double 1.000000e-05, double 0x3DDB7CDFD9D7BDBC, double 4.500000e-05, double 0x3FDCCCCCCCCCCCCB)
%22 = call i32 (i8*, i64, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i64 10000)
store double 1.000000e-05, double* %4
store i64 1, i64* %6
br label %23
23: ; preds = %46, %0
%24 = load i64, i64* %6
%25 = load i64, i64* %7
%26 = icmp slt i64 %24, %25
br i1 %26, label %27, label %49
27: ; preds = %23
%28 = load double, double* %4
%29 = fcmp ole double %28, 5.000000e-01
br i1 %29, label %30, label %36
30: ; preds = %27
%31 = load double, double* %4
%32 = fmul double 2.000000e+02, %31
%33 = load double*, double** %3
%34 = load i64, i64* %6
%35 = getelementptr inbounds double, double* %33, i64 %34
store double %32, double* %35
br label %43
36: ; preds = %27
%37 = load double, double* %4
%38 = fsub double 1.000000e+00, %37
%39 = fmul double 2.000000e+02, %38
%40 = load double*, double** %3
%41 = load i64, i64* %6
%42 = getelementptr inbounds double, double* %40, i64 %41
store double %39, double* %42
br label %43
43: ; preds = %36, %30
%44 = load double, double* %4
%45 = fadd double %44, 1.000000e-05
store double %45, double* %4
br label %46
46: ; preds = %43
%47 = load i64, i64* %6
%48 = add nsw i64 %47, 1
store i64 %48, i64* %6
br label %23
49: ; preds = %23
store double 0.000000e+00, double* %5
br label %50
50: ; preds = %88, %49
%51 = load double, double* %5
%52 = fcmp olt double %51, 1.000000e-02
br i1 %52, label %53, label %99
53: ; preds = %50
store double 1.000000e-05, double* %4
store i64 1, i64* %6
br label %54
54: ; preds = %85, %53
%55 = load i64, i64* %6
%56 = load i64, i64* %7
%57 = icmp slt i64 %55, %56
br i1 %57, label %58, label %88
58: ; preds = %54
%59 = load double*, double** %3
%60 = load i64, i64* %6
%61 = getelementptr inbounds double, double* %59, i64 %60
%62 = load double, double* %61
%63 = load double*, double** %3
%64 = load i64, i64* %6
%65 = sub nsw i64 %64, 1
%66 = getelementptr inbounds double, double* %63, i64 %65
%67 = load double, double* %66
%68 = load double*, double** %3
%69 = load i64, i64* %6
%70 = getelementptr inbounds double, double* %68, i64 %69
%71 = load double, double* %70
%72 = call double @llvm.fmuladd.f64(double -2.000000e+00, double %71, double %67)
%73 = load double*, double** %3
%74 = load i64, i64* %6
%75 = add nsw i64 %74, 1
%76 = getelementptr inbounds double, double* %73, i64 %75
%77 = load double, double* %76
%78 = fadd double %72, %77
%79 = call double @llvm.fmuladd.f64(double 0x3FDCCCCCCCCCCCCB, double %78, double %62)
%80 = load double*, double** %2
%81 = load i64, i64* %6
%82 = getelementptr inbounds double, double* %80, i64 %81
store double %79, double* %82
%83 = load double, double* %4
%84 = fadd double %83, 1.000000e-05
store double %84, double* %4
br label %85
85: ; preds = %58
%86 = load i64, i64* %6
%87 = add nsw i64 %86, 1
store i64 %87, i64* %6
br label %54
88: ; preds = %54
%89 = load double*, double** %2
%90 = load i64, i64* %7
%91 = getelementptr inbounds double, double* %89, i64 %90
store double 0.000000e+00, double* %91
%92 = load double*, double** %2
%93 = getelementptr inbounds double, double* %92, i64 0
store double 0.000000e+00, double* %93
%94 = load double*, double** %3
store double* %94, double** %1
%95 = load double*, double** %2
store double* %95, double** %3
%96 = load double*, double** %1
store double* %96, double** %2
%97 = load double, double* %5
%98 = fadd double %97, 0x3EB0C6F7A0B5ED8D
store double %98, double* %5
br label %50
99: ; preds = %50
store i64 0, i64* %8
store i64 1, i64* %6
br label %100
100: ; preds = %118, %99
%101 = load i64, i64* %6
%102 = load i64, i64* %7
%103 = add nsw i64 %102, 1
%104 = icmp slt i64 %101, %103
br i1 %104, label %105, label %121
105: ; preds = %100
%106 = load double*, double** %2
%107 = load i64, i64* %6
%108 = getelementptr inbounds double, double* %106, i64 %107
%109 = load double, double* %108
%110 = load double*, double** %2
%111 = load i64, i64* %8
%112 = getelementptr inbounds double, double* %110, i64 %111
%113 = load double, double* %112
%114 = fcmp ogt double %109, %113
br i1 %114, label %115, label %117
115: ; preds = %105
%116 = load i64, i64* %6
store i64 %116, i64* %8
br label %117
117: ; preds = %115, %105
br label %118
118: ; preds = %117
%119 = load i64, i64* %6
%120 = add nsw i64 %119, 1
store i64 %120, i64* %6
br label %100
121: ; preds = %100
%122 = load i64, i64* %8
%123 = load double*, double** %2
%124 = load i64, i64* %8
%125 = getelementptr inbounds double, double* %123, i64 %124
%126 = load double, double* %125
%127 = call i32 (i8*, i64, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0), i64 %122, double %126)
ret void
}

LLVM IR (-O2):
@.str = [61 x i8] c"Inicio: qtde=%ld, dt=%g, dx=%g, dx\C2\B2=%g, kappa=%f, const=%f\0A\00"
@.str.1 = [25 x i8] c"Iteracoes previstas: %g\0A\00"
@.str.2 = [25 x i8] c"Maior valor u[%ld] = %g\0A\00"
define void @main() {
%1 = tail call i64 @malloc(i64 800000)
%2 = tail call i64 @malloc(i64 800000)
%3 = inttoptr i64 %2 to double*
%4 = tail call i32 (i8*, i64, ...) @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str, i64 0, i64 0), i64 100000, double 0x3EB0C6F7A0B5ED8D, double 1.000000e-05, double 0x3DDB7CDFD9D7BDBC, double 4.500000e-05, double 0x3FDCCCCCCCCCCCCB)
%5 = tail call i32 (i8*, i64, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i64 10000)
br label %6
6: ; preds = %6, %0
%7 = phi i64 [ 1, %0 ], [ %22, %6 ]
%8 = phi double [ 1.000000e-05, %0 ], [ %21, %6 ]
%9 = fcmp ugt double %8, 5.000000e-01
%10 = fsub double 1.000000e+00, %8
%11 = select i1 %9, double %10, double %8
%12 = fmul double %11, 2.000000e+02
%13 = getelementptr inbounds double, double* %3, i64 %7
store double %12, double* %13
%14 = fadd double %8, 1.000000e-05
%15 = add nuw nsw i64 %7, 1
%16 = fcmp ugt double %14, 5.000000e-01
%17 = fsub double 1.000000e+00, %14
%18 = select i1 %16, double %17, double %14
%19 = fmul double %18, 2.000000e+02
%20 = getelementptr inbounds double, double* %3, i64 %15
store double %19, double* %20
%21 = fadd double %14, 1.000000e-05
%22 = add nuw nsw i64 %7, 2
%23 = icmp eq i64 %22, 99999
br i1 %23, label %24, label %6
24: ; preds = %6
%25 = inttoptr i64 %1 to double*
br label %26
26: ; preds = %110, %24
%27 = phi double* [ %29, %110 ], [ %25, %24 ]
%28 = phi double [ %112, %110 ], [ 0.000000e+00, %24 ]
%29 = phi double* [ %27, %110 ], [ %3, %24 ]
%30 = getelementptr double, double* %27, i64 1
%31 = getelementptr double, double* %27, i64 99999
%32 = getelementptr double, double* %29, i64 1
%33 = getelementptr double, double* %29, i64 99999
%34 = getelementptr double, double* %29, i64 99998
%35 = getelementptr double, double* %29, i64 2
%36 = getelementptr double, double* %29, i64 100000
%37 = icmp ult double* %30, %33
%38 = icmp ult double* %32, %31
%39 = and i1 %37, %38
%40 = icmp ult double* %30, %34
%41 = icmp ult double* %29, %31
%42 = and i1 %40, %41
%43 = or i1 %39, %42
%44 = icmp ult double* %30, %36
%45 = icmp ult double* %35, %31
%46 = and i1 %44, %45
%47 = or i1 %43, %46
br i1 %47, label %82, label %48
48: ; preds = %26, %48
%49 = phi i64 [ %80, %48 ], [ 0, %26 ]
%50 = or i64 %49, 1
%51 = getelementptr inbounds double, double* %29, i64 %50
%52 = bitcast double* %51 to <2 x double>*
%53 = load <2 x double>, <2 x double>* %52
%54 = getelementptr inbounds double, double* %51, i64 2
%55 = bitcast double* %54 to <2 x double>*
%56 = load <2 x double>, <2 x double>* %55
%57 = getelementptr inbounds double, double* %29, i64 %49
%58 = bitcast double* %57 to <2 x double>*
%59 = load <2 x double>, <2 x double>* %58
%60 = getelementptr inbounds double, double* %57, i64 2
%61 = bitcast double* %60 to <2 x double>*
%62 = load <2 x double>, <2 x double>* %61
%63 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %53, <2 x double> <double -2.000000e+00, double -2.000000e+00>, <2 x double> %59)
%64 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %56, <2 x double> <double -2.000000e+00, double -2.000000e+00>, <2 x double> %62)
%65 = or i64 %49, 2
%66 = getelementptr inbounds double, double* %29, i64 %65
%67 = bitcast double* %66 to <2 x double>*
%68 = load <2 x double>, <2 x double>* %67
%69 = getelementptr inbounds double, double* %66, i64 2
%70 = bitcast double* %69 to <2 x double>*
%71 = load <2 x double>, <2 x double>* %70
%72 = fadd <2 x double> %63, %68
%73 = fadd <2 x double> %64, %71
%74 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %72, <2 x double> <double 0x3FDCCCCCCCCCCCCB, double 0x3FDCCCCCCCCCCCCB>, <2 x double> %53)
%75 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %73, <2 x double> <double 0x3FDCCCCCCCCCCCCB, double 0x3FDCCCCCCCCCCCCB>, <2 x double> %56)
%76 = getelementptr inbounds double, double* %27, i64 %50
%77 = bitcast double* %76 to <2 x double>*
store <2 x double> %74, <2 x double>* %77
%78 = getelementptr inbounds double, double* %76, i64 2
%79 = bitcast double* %78 to <2 x double>*
store <2 x double> %75, <2 x double>* %79
%80 = add nuw i64 %49, 4
%81 = icmp eq i64 %80, 99996
br i1 %81, label %82, label %48
82: ; preds = %48, %26
%83 = phi i64 [ 1, %26 ], [ 99997, %48 ]
br label %84
84: ; preds = %84, %82
%85 = phi i64 [ %83, %82 ], [ %103, %84 ]
%86 = getelementptr inbounds double, double* %29, i64 %85
%87 = load double, double* %86
%88 = add nsw i64 %85, -1
%89 = getelementptr inbounds double, double* %29, i64 %88
%90 = load double, double* %89
%91 = tail call double @llvm.fmuladd.f64(double %87, double -2.000000e+00, double %90)
%92 = add nuw nsw i64 %85, 1
%93 = getelementptr inbounds double, double* %29, i64 %92
%94 = load double, double* %93
%95 = fadd double %91, %94
%96 = tail call double @llvm.fmuladd.f64(double %95, double 0x3FDCCCCCCCCCCCCB, double %87)
%97 = getelementptr inbounds double, double* %27, i64 %85
store double %96, double* %97
%98 = getelementptr inbounds double, double* %29, i64 %92
%99 = load double, double* %98
%100 = getelementptr inbounds double, double* %29, i64 %85
%101 = load double, double* %100
%102 = tail call double @llvm.fmuladd.f64(double %99, double -2.000000e+00, double %101)
%103 = add nuw nsw i64 %85, 2
%104 = getelementptr inbounds double, double* %29, i64 %103
%105 = load double, double* %104
%106 = fadd double %102, %105
%107 = tail call double @llvm.fmuladd.f64(double %106, double 0x3FDCCCCCCCCCCCCB, double %99)
%108 = getelementptr inbounds double, double* %27, i64 %92
store double %107, double* %108
%109 = icmp eq i64 %103, 99999
br i1 %109, label %110, label %84
110: ; preds = %84
%111 = getelementptr inbounds double, double* %27, i64 99999
store double 0.000000e+00, double* %111
store double 0.000000e+00, double* %27
%112 = fadd double %28, 0x3EB0C6F7A0B5ED8D
%113 = fcmp olt double %112, 1.000000e-02
br i1 %113, label %26, label %114
114: ; preds = %110, %114
%115 = phi i64 [ %136, %114 ], [ 0, %110 ]
%116 = phi i64 [ %137, %114 ], [ 1, %110 ]
%117 = getelementptr inbounds double, double* %29, i64 %116
%118 = load double, double* %117
%119 = getelementptr inbounds double, double* %29, i64 %115
%120 = load double, double* %119
%121 = fcmp ogt double %118, %120
%122 = select i1 %121, i64 %116, i64 %115
%123 = add nuw nsw i64 %116, 1
%124 = getelementptr inbounds double, double* %29, i64 %123
%125 = load double, double* %124
%126 = getelementptr inbounds double, double* %29, i64 %122
%127 = load double, double* %126
%128 = fcmp ogt double %125, %127
%129 = select i1 %128, i64 %123, i64 %122
%130 = add nuw nsw i64 %116, 2
%131 = getelementptr inbounds double, double* %29, i64 %130
%132 = load double, double* %131
%133 = getelementptr inbounds double, double* %29, i64 %129
%134 = load double, double* %133
%135 = fcmp ogt double %132, %134
%136 = select i1 %135, i64 %130, i64 %129
%137 = add nuw nsw i64 %116, 3
%138 = icmp eq i64 %137, 100000
br i1 %138, label %139, label %114
139: ; preds = %114
%140 = getelementptr inbounds double, double* %29, i64 %136
%141 = load double, double* %140
%142 = tail call i32 (i8*, i64, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0), i64 %136, double %141)
ret void
}