#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);
double omp_get_wtime();
int /*<<< orphan*/ printf(char *, long, ...);
int 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);
  double start = omp_get_wtime();
  x = 0;
  for (i = 0; i < n + 1; 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("\tTempo total : \t %g \n", omp_get_wtime() - start);
  printf("Maior valor u[%ld] = %g\n", maxloc, u[maxloc]);
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
movq   $0x1869f,-0x40(%rbp)
mov    -0x40(%rbp),%rdi
add    $0x1,%rdi
shl    $0x3,%rdi
call   1050 <malloc@plt>
mov    %rax,-0x18(%rbp)
mov    -0x40(%rbp),%rdi
add    $0x1,%rdi
shl    $0x3,%rdi
call   1050 <malloc@plt>
mov    %rax,-0x20(%rbp)
mov    -0x40(%rbp),%rsi
add    $0x1,%rsi
lea    0xec8(%rip),%rdi
movsd  0xe78(%rip),%xmm0
movsd  0xe78(%rip),%xmm1
movsd  0xe78(%rip),%xmm2
movsd  0xe78(%rip),%xmm3
movsd  0xe78(%rip),%xmm4
mov    $0x5,%al
call   1040 <printf@plt>
lea    0xecf(%rip),%rdi
mov    $0x2710,%esi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x0,%al
call   1030 <omp_get_wtime@plt>
movsd  %xmm0,-0x50(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x28(%rbp)
movq   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%rax
mov    -0x40(%rbp),%rcx
add    $0x1,%rcx
cmp    %rcx,%rax
jge    126e <main+0x13e>
movsd  0xe35(%rip),%xmm0
ucomisd -0x28(%rbp),%xmm0
jb     1225 <main+0xf5>
movsd  0xe2a(%rip),%xmm0
mulsd  -0x28(%rbp),%xmm0
mov    -0x20(%rbp),%rax
mov    -0x38(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
jmp    124b <main+0x11b>
movsd  0xe13(%rip),%xmm1
subsd  -0x28(%rbp),%xmm1
movsd  0xdfe(%rip),%xmm0
mulsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
mov    -0x38(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  0xdb5(%rip),%xmm0
addsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
mov    -0x38(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x38(%rbp)
jmp    11de <main+0xae>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  0xdaa(%rip),%xmm0
ucomisd -0x30(%rbp),%xmm0
jbe    1377 <main+0x247>
movsd  0xd77(%rip),%xmm0
movsd  %xmm0,-0x28(%rbp)
movq   $0x1,-0x38(%rbp)
mov    -0x38(%rbp),%rax
cmp    -0x40(%rbp),%rax
jge    132d <main+0x1fd>
mov    -0x20(%rbp),%rax
mov    -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x20(%rbp),%rax
mov    -0x38(%rbp),%rcx
sub    $0x1,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
mov    -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
addsd  %xmm2,%xmm2
subsd  %xmm2,%xmm0
mov    -0x20(%rbp),%rax
mov    -0x38(%rbp),%rcx
addsd  0x8(%rax,%rcx,8),%xmm0
movsd  0xd2b(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
mov    -0x38(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  0xcf6(%rip),%xmm0
addsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
mov    -0x38(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x38(%rbp)
jmp    129e <main+0x16e>
mov    -0x18(%rbp),%rax
mov    -0x40(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
mov    -0x20(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
movsd  0xc98(%rip),%xmm0
addsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
jmp    1276 <main+0x146>
movq   $0x0,-0x48(%rbp)
movq   $0x1,-0x38(%rbp)
mov    -0x38(%rbp),%rax
mov    -0x40(%rbp),%rcx
add    $0x1,%rcx
cmp    %rcx,%rax
jge    13da <main+0x2aa>
mov    -0x18(%rbp),%rax
mov    -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
mov    -0x48(%rbp),%rcx
ucomisd (%rax,%rcx,8),%xmm0
jbe    13c4 <main+0x294>
mov    -0x38(%rbp),%rax
mov    %rax,-0x48(%rbp)
jmp    13c9 <main+0x299>
mov    -0x38(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x38(%rbp)
jmp    1387 <main+0x257>
mov    $0x0,%al
call   1030 <omp_get_wtime@plt>
subsd  -0x50(%rbp),%xmm0
cvttsd2si %xmm0,%rsi
lea    0xcac(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x48(%rbp),%rsi
mov    -0x18(%rbp),%rax
mov    -0x48(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
lea    0xca3(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x10,%rsp
mov    $0xc3500,%edi
call   1050 <malloc@plt>
mov    %rax,%r14
mov    $0xc3500,%edi
call   1050 <malloc@plt>
mov    %rax,%r15
lea    0xf06(%rip),%rdi
movsd  0xe9e(%rip),%xmm0
movsd  0xe9e(%rip),%xmm1
movsd  0xe9e(%rip),%xmm2
movsd  0xe9e(%rip),%xmm3
movsd  0xe9e(%rip),%xmm4
mov    $0x186a0,%esi
mov    $0x5,%al
call   1040 <printf@plt>
lea    0xf08(%rip),%rdi
mov    $0x2710,%esi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
call   1030 <omp_get_wtime@plt>
movsd  0xe58(%rip),%xmm6
movsd  %xmm0,0x8(%rsp)
xorpd  %xmm0,%xmm0
mov    $0x1,%eax
movsd  0xe61(%rip),%xmm1
movsd  0xe61(%rip),%xmm2
movsd  0xe61(%rip),%xmm3
nopw   0x0(%rax,%rax,1)
movapd %xmm1,%xmm4
subsd  %xmm0,%xmm4
movapd %xmm0,%xmm5
cmpnlesd %xmm2,%xmm5
andpd  %xmm5,%xmm4
andnpd %xmm0,%xmm5
orpd   %xmm4,%xmm5
mulsd  %xmm3,%xmm5
movsd  %xmm5,-0x8(%r15,%rax,8)
addsd  %xmm6,%xmm0
movapd %xmm1,%xmm4
subsd  %xmm0,%xmm4
movapd %xmm0,%xmm5
cmpnlesd %xmm2,%xmm5
andpd  %xmm5,%xmm4
andnpd %xmm0,%xmm5
orpd   %xmm4,%xmm5
mulsd  %xmm3,%xmm5
movsd  %xmm5,(%r15,%rax,8)
addsd  %xmm6,%xmm0
add    $0x2,%rax
cmp    $0x186a1,%rax
jne    11e0 <main+0xb0>
xorpd  %xmm0,%xmm0
movsd  0xdf0(%rip),%xmm8
movapd 0xdf8(%rip),%xmm2
movsd  0xd9f(%rip),%xmm9
movsd  0xdb7(%rip),%xmm1
nopl   0x0(%rax)
mov    %r15,%rbx
mov    %r14,%r15
lea    0x8(%r14),%rax
lea    0xc34f8(%r14),%rdi
lea    0x8(%rbx),%rcx
lea    0xc34f8(%rbx),%rdx
lea    0xc34f0(%rbx),%rsi
lea    0x10(%rbx),%r8
lea    0xc3500(%rbx),%r9
cmp    %rdx,%rax
setb   %r10b
cmp    %rdi,%rcx
setb   %r11b
cmp    %rsi,%rax
setb   %cl
cmp    %rdi,%rbx
setb   %sil
cmp    %r9,%rax
setb   %dl
cmp    %rdi,%r8
setb   %dil
mov    $0x1,%eax
test   %r11b,%r10b
jne    134c <main+0x21c>
and    %sil,%cl
jne    134c <main+0x21c>
and    %dil,%dl
jne    134c <main+0x21c>
xor    %eax,%eax
nopl   0x0(%rax)
movupd (%rbx,%rax,8),%xmm3
movupd 0x8(%rbx,%rax,8),%xmm4
movupd 0x10(%rbx,%rax,8),%xmm5
movupd 0x18(%rbx,%rax,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(%rbx,%rax,8),%xmm7
addpd  %xmm5,%xmm7
mulpd  %xmm2,%xmm3
addpd  %xmm4,%xmm3
mulpd  %xmm2,%xmm7
addpd  %xmm6,%xmm7
movupd %xmm3,0x8(%r15,%rax,8)
movupd %xmm7,0x18(%r15,%rax,8)
add    $0x4,%rax
cmp    $0x1869c,%rax
jne    12e0 <main+0x1b0>
mov    $0x1869d,%eax
add    $0xfffffffffffe7961,%rax
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsd  0xc34f0(%rbx,%rax,8),%xmm3
movsd  0xc34f8(%rbx,%rax,8),%xmm4
movapd %xmm4,%xmm5
addsd  %xmm4,%xmm5
subsd  %xmm5,%xmm3
addsd  0xc3500(%rbx,%rax,8),%xmm3
mulsd  %xmm1,%xmm3
addsd  %xmm4,%xmm3
movsd  %xmm3,0xc34f8(%r15,%rax,8)
movsd  0xc34f8(%rbx,%rax,8),%xmm3
movsd  0xc3500(%rbx,%rax,8),%xmm4
movapd %xmm4,%xmm5
addsd  %xmm4,%xmm5
subsd  %xmm5,%xmm3
addsd  0xc3508(%rbx,%rax,8),%xmm3
mulsd  %xmm1,%xmm3
addsd  %xmm4,%xmm3
movsd  %xmm3,0xc3500(%r15,%rax,8)
add    $0x2,%rax
jne    1360 <main+0x230>
movq   $0x0,0xc34f8(%r15)
movq   $0x0,(%r15)
addsd  %xmm9,%xmm0
ucomisd %xmm0,%xmm8
mov    %rbx,%r14
ja     1270 <main+0x140>
mov    $0x1,%eax
xor    %r14d,%r14d
jmp    141f <main+0x2ef>
nopw   0x0(%rax,%rax,1)
mov    %rcx,%r14
add    $0x3,%rax
cmp    $0x186a0,%rax
je     1456 <main+0x326>
movsd  (%rbx,%rax,8),%xmm0
ucomisd (%rbx,%r14,8),%xmm0
mov    %rax,%rcx
ja     1432 <main+0x302>
mov    %r14,%rcx
movsd  0x8(%rbx,%rax,8),%xmm0
ucomisd (%rbx,%rcx,8),%xmm0
jbe    1443 <main+0x313>
lea    0x1(%rax),%rcx
movsd  0x10(%rbx,%rax,8),%xmm0
ucomisd (%rbx,%rcx,8),%xmm0
jbe    1410 <main+0x2e0>
lea    0x2(%rax),%r14
jmp    1413 <main+0x2e3>
xor    %eax,%eax
call   1030 <omp_get_wtime@plt>
subsd  0x8(%rsp),%xmm0
cvttsd2si %xmm0,%rsi
lea    0xc47(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movsd  (%rbx,%r14,8),%xmm0
lea    0xc49(%rip),%rdi
mov    %r14,%rsi
mov    $0x1,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

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

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