#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 */
double RAND_MAX;
double fabs(double);
int /*<<< orphan*/ free(double *);
scalar_t__ malloc(size_t);
int /*<<< orphan*/ printf(char *);
scalar_t__ random();
int /*<<< orphan*/ srand(int /*<<< orphan*/);
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
int main(void) {
  double *x, *y;
  size_t size = 20480 * sizeof(double);
  x = (double *)malloc(size);
  y = (double *)malloc(size);
  srand(time(NULL));
  double a = (double)random() / RAND_MAX;
  int i;
  for (i = 0; i < 20480; i++)
    x[i] = (double)random() / RAND_MAX;
  for (i = 0; i < 20480; i++)
    y[i] = (double)random() / RAND_MAX;
  double *yomp;
  yomp = (double *)malloc(size);
#pragma omp parallel for
  for (i = 0; i < 20480; i++) {
    yomp[i] = a * x[i] + y[i];
  }
  double *yacc;
  yacc = (double *)malloc(size);
#pragma acc kernels copyin(x [0:N], y [0:N]), copyout(yacc [0:N])
  for (i = 0; i < 20480; i++) {
    yacc[i] = a * x[i] + y[i];
  }
  double m = -1.;
  double tmp;
#pragma omp parallel for private(tmp) reduction(max : m)
  for (i = 0; i < 20480; i++) {
    tmp = fabs((yacc[i] - yomp[i]) / yomp[i]);
    if (tmp > m)
      m = tmp;
  }
  free(x);
  free(y);
  free(yomp);
  free(yacc);
  if (m < 1E-12) {
    printf("Success!\n");
    return 0;
  } else {
    printf("Failure!\n");
    return 1;
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
movq   $0x28000,-0x20(%rbp)
mov    -0x20(%rbp),%rdi
call   1080 <malloc@plt>
mov    %rax,-0x10(%rbp)
mov    -0x20(%rbp),%rdi
call   1080 <malloc@plt>
mov    %rax,-0x18(%rbp)
xor    %eax,%eax
mov    %eax,%edi
call   1060 <time@plt>
mov    %eax,%edi
call   1050 <srand@plt>
mov    $0x0,%al
call   1070 <random@plt>
cvtsi2sd %rax,%xmm0
mov    0x2e34(%rip),%rax
divsd  (%rax),%xmm0
movsd  %xmm0,-0x28(%rbp)
movl   $0x0,-0x2c(%rbp)
cmpl   $0x5000,-0x2c(%rbp)
jge    1203 <main+0xa3>
mov    $0x0,%al
call   1070 <random@plt>
cvtsi2sd %rax,%xmm0
mov    0x2e04(%rip),%rax
divsd  (%rax),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    11c4 <main+0x64>
movl   $0x0,-0x2c(%rbp)
cmpl   $0x5000,-0x2c(%rbp)
jge    1249 <main+0xe9>
mov    $0x0,%al
call   1070 <random@plt>
cvtsi2sd %rax,%xmm0
mov    0x2dbe(%rip),%rax
divsd  (%rax),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    120a <main+0xaa>
mov    -0x20(%rbp),%rdi
call   1080 <malloc@plt>
mov    %rax,-0x38(%rbp)
movl   $0x0,-0x2c(%rbp)
cmpl   $0x5000,-0x2c(%rbp)
jge    12ac <main+0x14c>
movsd  -0x28(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x38(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    125d <main+0xfd>
mov    -0x20(%rbp),%rdi
call   1080 <malloc@plt>
mov    %rax,-0x40(%rbp)
movl   $0x0,-0x2c(%rbp)
cmpl   $0x5000,-0x2c(%rbp)
jge    130f <main+0x1af>
movsd  -0x28(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x40(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    12c0 <main+0x160>
movsd  0xce9(%rip),%xmm0
movsd  %xmm0,-0x48(%rbp)
movl   $0x0,-0x2c(%rbp)
cmpl   $0x5000,-0x2c(%rbp)
jge    1394 <main+0x234>
mov    -0x40(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x38(%rbp),%rax
movslq -0x2c(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
mov    -0x38(%rbp),%rax
movslq -0x2c(%rbp),%rcx
divsd  (%rax,%rcx,8),%xmm0
movaps 0xcb2(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x50(%rbp),%xmm0
ucomisd -0x48(%rbp),%xmm0
jbe    1381 <main+0x221>
movsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
jmp    1386 <main+0x226>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1323 <main+0x1c3>
mov    -0x10(%rbp),%rdi
call   1030 <free@plt>
mov    -0x18(%rbp),%rdi
call   1030 <free@plt>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
mov    -0x40(%rbp),%rdi
call   1030 <free@plt>
movsd  0xc48(%rip),%xmm0
ucomisd -0x48(%rbp),%xmm0
jbe    13e3 <main+0x283>
lea    0xc4e(%rip),%rdi
call   1040 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    13f6 <main+0x296>
lea    0xc40(%rip),%rdi
call   1040 <printf@plt>
movl   $0x1,-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    $0x18,%rsp
mov    $0x28000,%edi
call   1080 <malloc@plt>
mov    %rax,%r14
mov    $0x28000,%edi
call   1080 <malloc@plt>
mov    %rax,%r12
xor    %edi,%edi
call   1060 <time@plt>
mov    %eax,%edi
call   1050 <srand@plt>
xor    %eax,%eax
call   1070 <random@plt>
mov    %rax,%r15
mov    0x2e41(%rip),%rbp
movsd  0x0(%rbp),%xmm0
movsd  %xmm0,0x10(%rsp)
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
xor    %eax,%eax
call   1070 <random@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %rax,%xmm0
divsd  0x0(%rbp),%xmm0
movsd  %xmm0,(%r14,%rbx,8)
add    $0x1,%rbx
cmp    $0x5000,%rbx
jne    11c0 <main+0x60>
xorps  %xmm0,%xmm0
cvtsi2sd %r15,%xmm0
movapd %xmm0,(%rsp)
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
xor    %eax,%eax
call   1070 <random@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %rax,%xmm0
divsd  0x0(%rbp),%xmm0
movsd  %xmm0,(%r12,%rbx,8)
add    $0x1,%rbx
cmp    $0x5000,%rbx
jne    1200 <main+0xa0>
movapd (%rsp),%xmm0
divsd  0x10(%rsp),%xmm0
movapd %xmm0,(%rsp)
mov    $0x28000,%edi
call   1080 <malloc@plt>
mov    %rax,%r15
lea    0x28000(%rax),%rcx
lea    0x28000(%r14),%rbp
lea    0x28000(%r12),%r13
cmp    %rbp,%rax
setb   %dl
cmp    %rcx,%r14
setb   %bl
cmp    %r13,%rax
setb   %al
cmp    %rcx,%r12
setb   %cl
test   %bl,%dl
jne    130f <main+0x1af>
and    %cl,%al
jne    130f <main+0x1af>
movapd (%rsp),%xmm0
unpcklpd %xmm0,%xmm0
mov    $0x6,%eax
movupd -0x30(%r14,%rax,8),%xmm1
movupd -0x20(%r14,%rax,8),%xmm2
movupd -0x30(%r12,%rax,8),%xmm3
movupd -0x20(%r12,%rax,8),%xmm4
mulpd  %xmm0,%xmm1
addpd  %xmm3,%xmm1
mulpd  %xmm0,%xmm2
addpd  %xmm4,%xmm2
movupd %xmm1,-0x30(%r15,%rax,8)
movupd %xmm2,-0x20(%r15,%rax,8)
movupd -0x10(%r14,%rax,8),%xmm1
movupd (%r14,%rax,8),%xmm2
movupd -0x10(%r12,%rax,8),%xmm3
movupd (%r12,%rax,8),%xmm4
mulpd  %xmm0,%xmm1
addpd  %xmm3,%xmm1
mulpd  %xmm0,%xmm2
addpd  %xmm4,%xmm2
movupd %xmm1,-0x10(%r15,%rax,8)
movupd %xmm2,(%r15,%rax,8)
add    $0x8,%rax
cmp    $0x5006,%rax
jne    1290 <main+0x130>
jmp    135b <main+0x1fb>
mov    $0x1,%eax
movapd (%rsp),%xmm1
nopl   0x0(%rax)
movsd  -0x8(%r14,%rax,8),%xmm0
mulsd  %xmm1,%xmm0
addsd  -0x8(%r12,%rax,8),%xmm0
movsd  %xmm0,-0x8(%r15,%rax,8)
movsd  (%r14,%rax,8),%xmm0
mulsd  %xmm1,%xmm0
addsd  (%r12,%rax,8),%xmm0
movsd  %xmm0,(%r15,%rax,8)
add    $0x2,%rax
cmp    $0x5001,%rax
jne    1320 <main+0x1c0>
mov    $0x28000,%edi
call   1080 <malloc@plt>
mov    %rax,%rbx
lea    0x28000(%rax),%rcx
cmp    %rbp,%rax
setb   %sil
cmp    %rcx,%r14
setb   %dl
cmp    %r13,%rax
setb   %al
cmp    %rcx,%r12
setb   %cl
test   %dl,%sil
jne    142b <main+0x2cb>
and    %cl,%al
jne    142b <main+0x2cb>
movapd (%rsp),%xmm4
unpcklpd %xmm4,%xmm4
mov    $0x6,%eax
nopw   0x0(%rax,%rax,1)
movupd -0x30(%r14,%rax,8),%xmm0
movupd -0x20(%r14,%rax,8),%xmm1
movupd -0x30(%r12,%rax,8),%xmm2
movupd -0x20(%r12,%rax,8),%xmm3
mulpd  %xmm4,%xmm0
addpd  %xmm2,%xmm0
mulpd  %xmm4,%xmm1
addpd  %xmm3,%xmm1
movupd %xmm0,-0x30(%rbx,%rax,8)
movupd %xmm1,-0x20(%rbx,%rax,8)
movupd -0x10(%r14,%rax,8),%xmm0
movupd (%r14,%rax,8),%xmm1
movupd -0x10(%r12,%rax,8),%xmm2
movupd (%r12,%rax,8),%xmm3
mulpd  %xmm4,%xmm0
addpd  %xmm2,%xmm0
mulpd  %xmm4,%xmm1
addpd  %xmm3,%xmm1
movupd %xmm0,-0x10(%rbx,%rax,8)
movupd %xmm1,(%rbx,%rax,8)
add    $0x8,%rax
cmp    $0x5006,%rax
jne    13b0 <main+0x250>
jmp    1479 <main+0x319>
mov    $0x1,%eax
movapd (%rsp),%xmm1
cs nopw 0x0(%rax,%rax,1)
nop
movsd  -0x8(%r14,%rax,8),%xmm0
mulsd  %xmm1,%xmm0
addsd  -0x8(%r12,%rax,8),%xmm0
movsd  %xmm0,-0x8(%rbx,%rax,8)
movsd  (%r14,%rax,8),%xmm0
mulsd  %xmm1,%xmm0
addsd  (%r12,%rax,8),%xmm0
movsd  %xmm0,(%rbx,%rax,8)
add    $0x2,%rax
cmp    $0x5001,%rax
jne    1440 <main+0x2e0>
movsd  0xb7f(%rip),%xmm3
mov    $0x1,%eax
movapd 0xb82(%rip),%xmm0
xchg   %ax,%ax
movsd  -0x8(%rbx,%rax,8),%xmm1
movsd  -0x8(%r15,%rax,8),%xmm2
subsd  %xmm2,%xmm1
divsd  %xmm2,%xmm1
andpd  %xmm0,%xmm1
maxsd  %xmm3,%xmm1
movsd  (%rbx,%rax,8),%xmm2
movsd  (%r15,%rax,8),%xmm3
subsd  %xmm3,%xmm2
divsd  %xmm3,%xmm2
andpd  %xmm0,%xmm2
movapd %xmm2,%xmm3
maxsd  %xmm1,%xmm3
add    $0x2,%rax
cmp    $0x5001,%rax
jne    1490 <main+0x330>
mov    %r14,%rdi
movapd %xmm3,(%rsp)
call   1030 <free@plt>
mov    %r12,%rdi
call   1030 <free@plt>
mov    %r15,%rdi
call   1030 <free@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
movsd  0xb03(%rip),%xmm0
xor    %ebx,%ebx
ucomisd (%rsp),%xmm0
setbe  %bl
lea    0xb13(%rip),%rax
lea    0xb03(%rip),%rdi
cmova  %rax,%rdi
call   1040 <puts@plt>
mov    %ebx,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@RAND_MAX = global double 0.000000e+00
@.str = [10 x i8] c"Success!\0A\00"
@.str.1 = [10 x i8] c"Failure!\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca double*
%3 = alloca double*
%4 = alloca i64
%5 = alloca double
%6 = alloca i32
%7 = alloca double*
%8 = alloca double*
%9 = alloca double
%10 = alloca double
store i32 0, i32* %1
store i64 163840, i64* %4
%11 = load i64, i64* %4
%12 = call i64 @malloc(i64 %11)
%13 = inttoptr i64 %12 to double*
store double* %13, double** %2
%14 = load i64, i64* %4
%15 = call i64 @malloc(i64 %14)
%16 = inttoptr i64 %15 to double*
store double* %16, double** %3
%17 = call i32 @time(i32* null)
%18 = call i32 @srand(i32 %17)
%19 = call i64 (...) @random()
%20 = sitofp i64 %19 to double
%21 = load double, double* @RAND_MAX
%22 = fdiv double %20, %21
store double %22, double* %5
store i32 0, i32* %6
br label %23
23: ; preds = %35, %0
%24 = load i32, i32* %6
%25 = icmp slt i32 %24, 20480
br i1 %25, label %26, label %38
26: ; preds = %23
%27 = call i64 (...) @random()
%28 = sitofp i64 %27 to double
%29 = load double, double* @RAND_MAX
%30 = fdiv double %28, %29
%31 = load double*, double** %2
%32 = load i32, i32* %6
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds double, double* %31, i64 %33
store double %30, double* %34
br label %35
35: ; preds = %26
%36 = load i32, i32* %6
%37 = add nsw i32 %36, 1
store i32 %37, i32* %6
br label %23
38: ; preds = %23
store i32 0, i32* %6
br label %39
39: ; preds = %51, %38
%40 = load i32, i32* %6
%41 = icmp slt i32 %40, 20480
br i1 %41, label %42, label %54
42: ; preds = %39
%43 = call i64 (...) @random()
%44 = sitofp i64 %43 to double
%45 = load double, double* @RAND_MAX
%46 = fdiv double %44, %45
%47 = load double*, double** %3
%48 = load i32, i32* %6
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds double, double* %47, i64 %49
store double %46, double* %50
br label %51
51: ; preds = %42
%52 = load i32, i32* %6
%53 = add nsw i32 %52, 1
store i32 %53, i32* %6
br label %39
54: ; preds = %39
%55 = load i64, i64* %4
%56 = call i64 @malloc(i64 %55)
%57 = inttoptr i64 %56 to double*
store double* %57, double** %7
store i32 0, i32* %6
br label %58
58: ; preds = %78, %54
%59 = load i32, i32* %6
%60 = icmp slt i32 %59, 20480
br i1 %60, label %61, label %81
61: ; preds = %58
%62 = load double, double* %5
%63 = load double*, double** %2
%64 = load i32, i32* %6
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds double, double* %63, i64 %65
%67 = load double, double* %66
%68 = load double*, double** %3
%69 = load i32, i32* %6
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds double, double* %68, i64 %70
%72 = load double, double* %71
%73 = call double @llvm.fmuladd.f64(double %62, double %67, double %72)
%74 = load double*, double** %7
%75 = load i32, i32* %6
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds double, double* %74, i64 %76
store double %73, double* %77
br label %78
78: ; preds = %61
%79 = load i32, i32* %6
%80 = add nsw i32 %79, 1
store i32 %80, i32* %6
br label %58
81: ; preds = %58
%82 = load i64, i64* %4
%83 = call i64 @malloc(i64 %82)
%84 = inttoptr i64 %83 to double*
store double* %84, double** %8
store i32 0, i32* %6
br label %85
85: ; preds = %105, %81
%86 = load i32, i32* %6
%87 = icmp slt i32 %86, 20480
br i1 %87, label %88, label %108
88: ; preds = %85
%89 = load double, double* %5
%90 = load double*, double** %2
%91 = load i32, i32* %6
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds double, double* %90, i64 %92
%94 = load double, double* %93
%95 = load double*, double** %3
%96 = load i32, i32* %6
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds double, double* %95, i64 %97
%99 = load double, double* %98
%100 = call double @llvm.fmuladd.f64(double %89, double %94, double %99)
%101 = load double*, double** %8
%102 = load i32, i32* %6
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds double, double* %101, i64 %103
store double %100, double* %104
br label %105
105: ; preds = %88
%106 = load i32, i32* %6
%107 = add nsw i32 %106, 1
store i32 %107, i32* %6
br label %85
108: ; preds = %85
store double -1.000000e+00, double* %9
store i32 0, i32* %6
br label %109
109: ; preds = %137, %108
%110 = load i32, i32* %6
%111 = icmp slt i32 %110, 20480
br i1 %111, label %112, label %140
112: ; preds = %109
%113 = load double*, double** %8
%114 = load i32, i32* %6
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds double, double* %113, i64 %115
%117 = load double, double* %116
%118 = load double*, double** %7
%119 = load i32, i32* %6
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds double, double* %118, i64 %120
%122 = load double, double* %121
%123 = fsub double %117, %122
%124 = load double*, double** %7
%125 = load i32, i32* %6
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds double, double* %124, i64 %126
%128 = load double, double* %127
%129 = fdiv double %123, %128
%130 = call double @llvm.fabs.f64(double %129)
store double %130, double* %10
%131 = load double, double* %10
%132 = load double, double* %9
%133 = fcmp ogt double %131, %132
br i1 %133, label %134, label %136
134: ; preds = %112
%135 = load double, double* %10
store double %135, double* %9
br label %136
136: ; preds = %134, %112
br label %137
137: ; preds = %136
%138 = load i32, i32* %6
%139 = add nsw i32 %138, 1
store i32 %139, i32* %6
br label %109
140: ; preds = %109
%141 = load double*, double** %2
%142 = call i32 @free(double* %141)
%143 = load double*, double** %3
%144 = call i32 @free(double* %143)
%145 = load double*, double** %7
%146 = call i32 @free(double* %145)
%147 = load double*, double** %8
%148 = call i32 @free(double* %147)
%149 = load double, double* %9
%150 = fcmp olt double %149, 0x3D719799812DEA11
br i1 %150, label %151, label %153
151: ; preds = %140
%152 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %1
br label %155
153: ; preds = %140
%154 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
store i32 1, i32* %1
br label %155
155: ; preds = %153, %151
%156 = load i32, i32* %1
ret i32 %156
}

LLVM IR (-O2):
@RAND_MAX = global double 0.000000e+00
@str = [9 x i8] c"Failure!\00"
@str.2 = [9 x i8] c"Success!\00"
define i32 @main() {
%1 = tail call i64 @malloc(i64 163840)
%2 = inttoptr i64 %1 to double*
%3 = inttoptr i64 %1 to i8*
%4 = tail call i64 @malloc(i64 163840)
%5 = tail call i32 @time(i32* null)
%6 = tail call i32 @srand(i32 %5)
%7 = tail call i64 (...) @random()
%8 = load double, double* @RAND_MAX
br label %9
9: ; preds = %0, %9
%10 = phi i64 [ 0, %0 ], [ %16, %9 ]
%11 = tail call i64 (...) @random()
%12 = sitofp i64 %11 to double
%13 = load double, double* @RAND_MAX
%14 = fdiv double %12, %13
%15 = getelementptr inbounds double, double* %2, i64 %10
store double %14, double* %15
%16 = add nuw nsw i64 %10, 1
%17 = icmp eq i64 %16, 20480
br i1 %17, label %18, label %9
18: ; preds = %9
%19 = inttoptr i64 %4 to double*
%20 = inttoptr i64 %4 to i8*
%21 = sitofp i64 %7 to double
br label %22
22: ; preds = %18, %22
%23 = phi i64 [ 0, %18 ], [ %29, %22 ]
%24 = tail call i64 (...) @random()
%25 = sitofp i64 %24 to double
%26 = load double, double* @RAND_MAX
%27 = fdiv double %25, %26
%28 = getelementptr inbounds double, double* %19, i64 %23
store double %27, double* %28
%29 = add nuw nsw i64 %23, 1
%30 = icmp eq i64 %29, 20480
br i1 %30, label %31, label %22
31: ; preds = %22
%32 = fdiv double %21, %8
%33 = tail call i64 @malloc(i64 163840)
%34 = inttoptr i64 %33 to double*
%35 = inttoptr i64 %33 to i8*
%36 = getelementptr double, double* %34, i64 20480
%37 = bitcast double* %36 to i8*
%38 = getelementptr double, double* %2, i64 20480
%39 = bitcast double* %38 to i8*
%40 = getelementptr double, double* %19, i64 20480
%41 = bitcast double* %40 to i8*
%42 = icmp ult i8* %35, %39
%43 = icmp ult i8* %3, %37
%44 = and i1 %42, %43
%45 = icmp ult i8* %35, %41
%46 = icmp ult i8* %20, %37
%47 = and i1 %45, %46
%48 = or i1 %44, %47
br i1 %48, label %95, label %49
49: ; preds = %31
%50 = insertelement <2 x double> poison, double %32, i64 0
%51 = shufflevector <2 x double> %50, <2 x double> poison, <2 x i32> zeroinitializer
%52 = insertelement <2 x double> poison, double %32, i64 0
%53 = shufflevector <2 x double> %52, <2 x double> poison, <2 x i32> zeroinitializer
br label %54
54: ; preds = %54, %49
%55 = phi i64 [ 0, %49 ], [ %93, %54 ]
%56 = getelementptr inbounds double, double* %2, i64 %55
%57 = bitcast double* %56 to <2 x double>*
%58 = load <2 x double>, <2 x double>* %57
%59 = getelementptr inbounds double, double* %56, i64 2
%60 = bitcast double* %59 to <2 x double>*
%61 = load <2 x double>, <2 x double>* %60
%62 = getelementptr inbounds double, double* %19, i64 %55
%63 = bitcast double* %62 to <2 x double>*
%64 = load <2 x double>, <2 x double>* %63
%65 = getelementptr inbounds double, double* %62, i64 2
%66 = bitcast double* %65 to <2 x double>*
%67 = load <2 x double>, <2 x double>* %66
%68 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %51, <2 x double> %58, <2 x double> %64)
%69 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %53, <2 x double> %61, <2 x double> %67)
%70 = getelementptr inbounds double, double* %34, i64 %55
%71 = bitcast double* %70 to <2 x double>*
store <2 x double> %68, <2 x double>* %71
%72 = getelementptr inbounds double, double* %70, i64 2
%73 = bitcast double* %72 to <2 x double>*
store <2 x double> %69, <2 x double>* %73
%74 = or i64 %55, 4
%75 = getelementptr inbounds double, double* %2, i64 %74
%76 = bitcast double* %75 to <2 x double>*
%77 = load <2 x double>, <2 x double>* %76
%78 = getelementptr inbounds double, double* %75, i64 2
%79 = bitcast double* %78 to <2 x double>*
%80 = load <2 x double>, <2 x double>* %79
%81 = getelementptr inbounds double, double* %19, i64 %74
%82 = bitcast double* %81 to <2 x double>*
%83 = load <2 x double>, <2 x double>* %82
%84 = getelementptr inbounds double, double* %81, i64 2
%85 = bitcast double* %84 to <2 x double>*
%86 = load <2 x double>, <2 x double>* %85
%87 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %51, <2 x double> %77, <2 x double> %83)
%88 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %53, <2 x double> %80, <2 x double> %86)
%89 = getelementptr inbounds double, double* %34, i64 %74
%90 = bitcast double* %89 to <2 x double>*
store <2 x double> %87, <2 x double>* %90
%91 = getelementptr inbounds double, double* %89, i64 2
%92 = bitcast double* %91 to <2 x double>*
store <2 x double> %88, <2 x double>* %92
%93 = add nuw nsw i64 %55, 8
%94 = icmp eq i64 %93, 20480
br i1 %94, label %112, label %54
95: ; preds = %31, %95
%96 = phi i64 [ %110, %95 ], [ 0, %31 ]
%97 = getelementptr inbounds double, double* %2, i64 %96
%98 = load double, double* %97
%99 = getelementptr inbounds double, double* %19, i64 %96
%100 = load double, double* %99
%101 = tail call double @llvm.fmuladd.f64(double %32, double %98, double %100)
%102 = getelementptr inbounds double, double* %34, i64 %96
store double %101, double* %102
%103 = or i64 %96, 1
%104 = getelementptr inbounds double, double* %2, i64 %103
%105 = load double, double* %104
%106 = getelementptr inbounds double, double* %19, i64 %103
%107 = load double, double* %106
%108 = tail call double @llvm.fmuladd.f64(double %32, double %105, double %107)
%109 = getelementptr inbounds double, double* %34, i64 %103
store double %108, double* %109
%110 = add nuw nsw i64 %96, 2
%111 = icmp eq i64 %110, 20480
br i1 %111, label %112, label %95
112: ; preds = %54, %95
%113 = tail call i64 @malloc(i64 163840)
%114 = inttoptr i64 %113 to double*
%115 = inttoptr i64 %113 to i8*
%116 = getelementptr double, double* %114, i64 20480
%117 = bitcast double* %116 to i8*
%118 = getelementptr double, double* %2, i64 20480
%119 = bitcast double* %118 to i8*
%120 = getelementptr double, double* %19, i64 20480
%121 = bitcast double* %120 to i8*
%122 = icmp ult i8* %115, %119
%123 = icmp ult i8* %3, %117
%124 = and i1 %122, %123
%125 = icmp ult i8* %115, %121
%126 = icmp ult i8* %20, %117
%127 = and i1 %125, %126
%128 = or i1 %124, %127
br i1 %128, label %175, label %129
129: ; preds = %112
%130 = insertelement <2 x double> poison, double %32, i64 0
%131 = shufflevector <2 x double> %130, <2 x double> poison, <2 x i32> zeroinitializer
%132 = insertelement <2 x double> poison, double %32, i64 0
%133 = shufflevector <2 x double> %132, <2 x double> poison, <2 x i32> zeroinitializer
br label %134
134: ; preds = %134, %129
%135 = phi i64 [ 0, %129 ], [ %173, %134 ]
%136 = getelementptr inbounds double, double* %2, i64 %135
%137 = bitcast double* %136 to <2 x double>*
%138 = load <2 x double>, <2 x double>* %137
%139 = getelementptr inbounds double, double* %136, i64 2
%140 = bitcast double* %139 to <2 x double>*
%141 = load <2 x double>, <2 x double>* %140
%142 = getelementptr inbounds double, double* %19, i64 %135
%143 = bitcast double* %142 to <2 x double>*
%144 = load <2 x double>, <2 x double>* %143
%145 = getelementptr inbounds double, double* %142, i64 2
%146 = bitcast double* %145 to <2 x double>*
%147 = load <2 x double>, <2 x double>* %146
%148 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %131, <2 x double> %138, <2 x double> %144)
%149 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %133, <2 x double> %141, <2 x double> %147)
%150 = getelementptr inbounds double, double* %114, i64 %135
%151 = bitcast double* %150 to <2 x double>*
store <2 x double> %148, <2 x double>* %151
%152 = getelementptr inbounds double, double* %150, i64 2
%153 = bitcast double* %152 to <2 x double>*
store <2 x double> %149, <2 x double>* %153
%154 = or i64 %135, 4
%155 = getelementptr inbounds double, double* %2, i64 %154
%156 = bitcast double* %155 to <2 x double>*
%157 = load <2 x double>, <2 x double>* %156
%158 = getelementptr inbounds double, double* %155, i64 2
%159 = bitcast double* %158 to <2 x double>*
%160 = load <2 x double>, <2 x double>* %159
%161 = getelementptr inbounds double, double* %19, i64 %154
%162 = bitcast double* %161 to <2 x double>*
%163 = load <2 x double>, <2 x double>* %162
%164 = getelementptr inbounds double, double* %161, i64 2
%165 = bitcast double* %164 to <2 x double>*
%166 = load <2 x double>, <2 x double>* %165
%167 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %131, <2 x double> %157, <2 x double> %163)
%168 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %133, <2 x double> %160, <2 x double> %166)
%169 = getelementptr inbounds double, double* %114, i64 %154
%170 = bitcast double* %169 to <2 x double>*
store <2 x double> %167, <2 x double>* %170
%171 = getelementptr inbounds double, double* %169, i64 2
%172 = bitcast double* %171 to <2 x double>*
store <2 x double> %168, <2 x double>* %172
%173 = add nuw nsw i64 %135, 8
%174 = icmp eq i64 %173, 20480
br i1 %174, label %192, label %134
175: ; preds = %112, %175
%176 = phi i64 [ %190, %175 ], [ 0, %112 ]
%177 = getelementptr inbounds double, double* %2, i64 %176
%178 = load double, double* %177
%179 = getelementptr inbounds double, double* %19, i64 %176
%180 = load double, double* %179
%181 = tail call double @llvm.fmuladd.f64(double %32, double %178, double %180)
%182 = getelementptr inbounds double, double* %114, i64 %176
store double %181, double* %182
%183 = or i64 %176, 1
%184 = getelementptr inbounds double, double* %2, i64 %183
%185 = load double, double* %184
%186 = getelementptr inbounds double, double* %19, i64 %183
%187 = load double, double* %186
%188 = tail call double @llvm.fmuladd.f64(double %32, double %185, double %187)
%189 = getelementptr inbounds double, double* %114, i64 %183
store double %188, double* %189
%190 = add nuw nsw i64 %176, 2
%191 = icmp eq i64 %190, 20480
br i1 %191, label %192, label %175
192: ; preds = %134, %175
br label %193
193: ; preds = %193, %192
%194 = phi i64 [ 0, %192 ], [ %215, %193 ]
%195 = phi double [ -1.000000e+00, %192 ], [ %214, %193 ]
%196 = getelementptr inbounds double, double* %114, i64 %194
%197 = load double, double* %196
%198 = getelementptr inbounds double, double* %34, i64 %194
%199 = load double, double* %198
%200 = fsub double %197, %199
%201 = fdiv double %200, %199
%202 = tail call double @llvm.fabs.f64(double %201)
%203 = fcmp ogt double %202, %195
%204 = select i1 %203, double %202, double %195
%205 = or i64 %194, 1
%206 = getelementptr inbounds double, double* %114, i64 %205
%207 = load double, double* %206
%208 = getelementptr inbounds double, double* %34, i64 %205
%209 = load double, double* %208
%210 = fsub double %207, %209
%211 = fdiv double %210, %209
%212 = tail call double @llvm.fabs.f64(double %211)
%213 = fcmp ogt double %212, %204
%214 = select i1 %213, double %212, double %204
%215 = add nuw nsw i64 %194, 2
%216 = icmp eq i64 %215, 20480
br i1 %216, label %217, label %193
217: ; preds = %193
%218 = tail call i32 @free(double* %2)
%219 = tail call i32 @free(double* %19)
%220 = tail call i32 @free(double* %34)
%221 = tail call i32 @free(double* %114)
%222 = fcmp olt double %214, 0x3D719799812DEA11
%223 = select i1 %222, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @str.2, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @str, i64 0, i64 0)
%224 = xor i1 %222, true
%225 = zext i1 %224 to i32
%226 = tail call i32 @puts(i8* dereferenceable(1) %223)
ret i32 %225
}