#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */
typedef scalar_t__ clock_t;

/* Variables and functions */
double CLOCKS_PER_SEC;
scalar_t__ clock();
double fmin(double, double);
int /*<<< orphan*/ lorenz(double *, double *);
int /*<<< orphan*/ printf(char *, double, ...);
int main(int argc, const char *argv[]) {
  const int nb_steps = 20000000;
  const double h = 1.0e-10;
  const double h2 = 0.5 * h;
  const double nb_loops = 21;
  double x[3];
  double y[3];
  double f1[3];
  double f2[3];
  double f3[3];
  double f4[3];
  double min_time = 1E6;
  clock_t begin, end;
  double time_spent;
  for (int j = 0; j < nb_loops; j++) {
    x[0] = 8.5;
    x[1] = 3.1;
    x[2] = 1.2;
    begin = clock();
    for (int k = 0; k < nb_steps; k++) {
      lorenz(x, f1);
      for (int i = 0; i < 3; i++) {
        y[i] = x[i] + h2 * f1[i];
      }
      lorenz(y, f2);
      for (int i = 0; i < 3; i++) {
        y[i] = x[i] + h2 * f2[i];
      }
      lorenz(y, f3);
      for (int i = 0; i < 3; i++) {
        y[i] = x[i] + h * f3[i];
      }
      lorenz(y, f4);
      for (int i = 0; i < 3; i++) {
        x[i] = x[i] + h * (f1[i] + 2 * (f2[i] + f3[i]) + f4[i]) / 6.0;
      }
    }
    end = clock();
    min_time = fmin(min_time, (double)(end - begin) / CLOCKS_PER_SEC);
    printf("Result: %f\t runtime: %f\n", x[0],
           (double)(end - begin) / CLOCKS_PER_SEC);
  }
  printf("Minimal Runtime: %f\n", min_time);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x130,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x1312d00,-0x14(%rbp)
movsd  0xec0(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  0xeab(%rip),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  0xe96(%rip),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  0xe81(%rip),%xmm0
movsd  %xmm0,-0xf8(%rbp)
ff
movl   $0x0,-0x114(%rbp)
cvtsi2sdl -0x114(%rbp),%xmm1
ff
movsd  0xe67(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    14ca <main+0x39a>
movsd  0xe7d(%rip),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  0xe68(%rip),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  0xe53(%rip),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    $0x0,%al
call   1030 <clock@plt>
mov    %rax,-0x100(%rbp)
movl   $0x0,-0x118(%rbp)
cmpl   $0x1312d00,-0x118(%rbp)
2d 31 01
jge    142b <main+0x2fb>
lea    -0x50(%rbp),%rdi
lea    -0x90(%rbp),%rsi
call   1050 <lorenz@plt>
movl   $0x0,-0x11c(%rbp)
cmpl   $0x3,-0x11c(%rbp)
jge    126f <main+0x13f>
movslq -0x11c(%rbp),%rax
movsd  -0x50(%rbp,%rax,8),%xmm1
movslq -0x11c(%rbp),%rax
movsd  -0x90(%rbp,%rax,8),%xmm0
ff ff
movsd  0xdca(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movslq -0x11c(%rbp),%rax
movsd  %xmm0,-0x70(%rbp,%rax,8)
mov    -0x11c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x11c(%rbp)
jmp    1214 <main+0xe4>
lea    -0x70(%rbp),%rdi
lea    -0xb0(%rbp),%rsi
call   1050 <lorenz@plt>
movl   $0x0,-0x120(%rbp)
cmpl   $0x3,-0x120(%rbp)
jge    12e4 <main+0x1b4>
movslq -0x120(%rbp),%rax
movsd  -0x50(%rbp,%rax,8),%xmm1
movslq -0x120(%rbp),%rax
movsd  -0xb0(%rbp,%rax,8),%xmm0
ff ff
movsd  0xd55(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movslq -0x120(%rbp),%rax
movsd  %xmm0,-0x70(%rbp,%rax,8)
mov    -0x120(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x120(%rbp)
jmp    1289 <main+0x159>
lea    -0x70(%rbp),%rdi
lea    -0xd0(%rbp),%rsi
call   1050 <lorenz@plt>
movl   $0x0,-0x124(%rbp)
cmpl   $0x3,-0x124(%rbp)
jge    1359 <main+0x229>
movslq -0x124(%rbp),%rax
movsd  -0x50(%rbp,%rax,8),%xmm1
movslq -0x124(%rbp),%rax
movsd  -0xd0(%rbp,%rax,8),%xmm0
ff ff
movsd  0xce8(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movslq -0x124(%rbp),%rax
movsd  %xmm0,-0x70(%rbp,%rax,8)
mov    -0x124(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x124(%rbp)
jmp    12fe <main+0x1ce>
lea    -0x70(%rbp),%rdi
lea    -0xf0(%rbp),%rsi
call   1050 <lorenz@plt>
movl   $0x0,-0x128(%rbp)
cmpl   $0x3,-0x128(%rbp)
jge    1412 <main+0x2e2>
movslq -0x128(%rbp),%rax
movsd  -0x50(%rbp,%rax,8),%xmm0
movslq -0x128(%rbp),%rax
movsd  -0x90(%rbp,%rax,8),%xmm1
ff ff
movslq -0x128(%rbp),%rax
movsd  -0xb0(%rbp,%rax,8),%xmm2
ff ff
movslq -0x128(%rbp),%rax
addsd  -0xd0(%rbp,%rax,8),%xmm2
ff ff
addsd  %xmm2,%xmm2
addsd  %xmm1,%xmm2
movslq -0x128(%rbp),%rax
addsd  -0xf0(%rbp,%rax,8),%xmm2
ff ff
movsd  0xc3b(%rip),%xmm1
mulsd  %xmm2,%xmm1
movsd  0xc4f(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
movslq -0x128(%rbp),%rax
movsd  %xmm0,-0x50(%rbp,%rax,8)
mov    -0x128(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x128(%rbp)
jmp    1373 <main+0x243>
jmp    1417 <main+0x2e7>
mov    -0x118(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x118(%rbp)
jmp    11ea <main+0xba>
mov    $0x0,%al
call   1030 <clock@plt>
mov    %rax,-0x108(%rbp)
movsd  -0xf8(%rbp),%xmm3
ff
mov    -0x108(%rbp),%rax
sub    -0x100(%rbp),%rax
cvtsi2sd %rax,%xmm2
mov    0x2b8d(%rip),%rax
divsd  (%rax),%xmm2
movaps %xmm2,%xmm4
movaps %xmm3,%xmm0
cmpunordsd %xmm0,%xmm0
movaps %xmm0,%xmm1
pand   %xmm4,%xmm1
minsd  %xmm3,%xmm2
pandn  %xmm2,%xmm0
por    %xmm1,%xmm0
movsd  %xmm0,-0xf8(%rbp)
ff
movsd  -0x50(%rbp),%xmm0
mov    -0x108(%rbp),%rax
sub    -0x100(%rbp),%rax
cvtsi2sd %rax,%xmm1
mov    0x2b44(%rip),%rax
divsd  (%rax),%xmm1
lea    0xb91(%rip),%rdi
mov    $0x2,%al
call   1040 <printf@plt>
mov    -0x114(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x114(%rbp)
jmp    1191 <main+0x61>
movsd  -0xf8(%rbp),%xmm0
ff
lea    0xb80(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x130,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xc8,%rsp
movsd  0xeb7(%rip),%xmm0
movsd  %xmm0,0x20(%rsp)
lea    0x30(%rsp),%rbx
xor    %eax,%eax
cs nopw 0x0(%rax,%rax,1)
mov    %eax,0x2c(%rsp)
movaps 0xeb5(%rip),%xmm0
movaps %xmm0,(%rsp)
movabs $0x3ff3333333333333,%rax
33 f3 3f
mov    %rax,0x10(%rsp)
xor    %eax,%eax
call   1030 <clock@plt>
mov    %rax,0x48(%rsp)
mov    $0x1312d00,%r14d
lea    0x90(%rsp),%r12
lea    0x70(%rsp),%r13
lea    0x50(%rsp),%rbp
lea    0xb0(%rsp),%r15
nopw   0x0(%rax,%rax,1)
mov    %rsp,%rdi
mov    %r12,%rsi
call   1050 <lorenz@plt>
movapd 0x90(%rsp),%xmm0
movapd 0xe64(%rip),%xmm1
mulpd  %xmm1,%xmm0
addpd  (%rsp),%xmm0
movapd %xmm0,0x30(%rsp)
movsd  0xa0(%rsp),%xmm0
movsd  0xe1c(%rip),%xmm1
mulsd  %xmm1,%xmm0
addsd  0x10(%rsp),%xmm0
movsd  %xmm0,0x40(%rsp)
mov    %rbx,%rdi
mov    %r13,%rsi
call   1050 <lorenz@plt>
movapd 0x70(%rsp),%xmm0
mulpd  0xe1b(%rip),%xmm0
addpd  (%rsp),%xmm0
movapd %xmm0,0x30(%rsp)
movsd  0x80(%rsp),%xmm0
mulsd  0xdd7(%rip),%xmm0
addsd  0x10(%rsp),%xmm0
movsd  %xmm0,0x40(%rsp)
mov    %rbx,%rdi
mov    %rbp,%rsi
call   1050 <lorenz@plt>
movapd 0x50(%rsp),%xmm0
movapd 0xdea(%rip),%xmm1
mulpd  %xmm1,%xmm0
addpd  (%rsp),%xmm0
movapd %xmm0,0x30(%rsp)
movsd  0x60(%rsp),%xmm0
movsd  0xd9d(%rip),%xmm1
mulsd  %xmm1,%xmm0
addsd  0x10(%rsp),%xmm0
movsd  %xmm0,0x40(%rsp)
mov    %rbx,%rdi
mov    %r15,%rsi
call   1050 <lorenz@plt>
movapd 0x70(%rsp),%xmm0
addpd  0x50(%rsp),%xmm0
addpd  %xmm0,%xmm0
addpd  0x90(%rsp),%xmm0
addpd  0xb0(%rsp),%xmm0
movsd  0x80(%rsp),%xmm1
addsd  0x60(%rsp),%xmm1
mulpd  0xd79(%rip),%xmm0
addsd  %xmm1,%xmm1
addsd  0xa0(%rsp),%xmm1
divpd  0xd74(%rip),%xmm0
addsd  0xc0(%rsp),%xmm1
addpd  (%rsp),%xmm0
mulsd  0xd1e(%rip),%xmm1
divsd  0xd1e(%rip),%xmm1
movapd %xmm0,(%rsp)
addsd  0x10(%rsp),%xmm1
movsd  %xmm1,0x10(%rsp)
add    $0xffffffff,%r14d
jne    11b0 <main+0x80>
xor    %eax,%eax
call   1030 <clock@plt>
sub    0x48(%rsp),%rax
xorps  %xmm1,%xmm1
cvtsi2sd %rax,%xmm1
mov    0x2cb8(%rip),%rax
divsd  (%rax),%xmm1
movapd %xmm1,%xmm0
movsd  0x20(%rsp),%xmm2
minsd  %xmm2,%xmm0
cmpunordsd %xmm2,%xmm2
movapd %xmm2,%xmm3
andpd  %xmm1,%xmm3
andnpd %xmm0,%xmm2
orpd   %xmm3,%xmm2
movsd  %xmm2,0x20(%rsp)
movsd  (%rsp),%xmm0
lea    0xcf7(%rip),%rdi
mov    $0x2,%al
call   1040 <printf@plt>
mov    0x2c(%rsp),%eax
add    $0x1,%eax
cmp    $0x15,%eax
jne    1160 <main+0x30>
lea    0xcf2(%rip),%rdi
movsd  0x20(%rsp),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0xc8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@CLOCKS_PER_SEC = global double 0.000000e+00
@.str = [25 x i8] c"Result: %f\09 runtime: %f\0A\00"
@.str.1 = [21 x i8] c"Minimal Runtime: %f\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca [3 x double]
%11 = alloca [3 x double]
%12 = alloca [3 x double]
%13 = alloca [3 x double]
%14 = alloca [3 x double]
%15 = alloca [3 x double]
%16 = alloca double
%17 = alloca i64
%18 = alloca i64
%19 = alloca double
%20 = alloca i32
%21 = alloca i32
%22 = alloca i32
%23 = alloca i32
%24 = alloca i32
%25 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 20000000, i32* %6
store double 1.000000e-10, double* %7
store double 5.000000e-11, double* %8
store double 2.100000e+01, double* %9
store double 1.000000e+06, double* %16
store i32 0, i32* %20
br label %26
26: ; preds = %170, %2
%27 = load i32, i32* %20
%28 = sitofp i32 %27 to double
%29 = fcmp olt double %28, 2.100000e+01
br i1 %29, label %30, label %173
30: ; preds = %26
%31 = getelementptr inbounds [3 x double], [3 x double]* %10, i64 0, i64 0
store double 8.500000e+00, double* %31
%32 = getelementptr inbounds [3 x double], [3 x double]* %10, i64 0, i64 1
store double 3.100000e+00, double* %32
%33 = getelementptr inbounds [3 x double], [3 x double]* %10, i64 0, i64 2
store double 1.200000e+00, double* %33
%34 = call i64 (...) @clock()
store i64 %34, i64* %17
store i32 0, i32* %21
br label %35
35: ; preds = %148, %30
%36 = load i32, i32* %21
%37 = icmp slt i32 %36, 20000000
br i1 %37, label %38, label %151
38: ; preds = %35
%39 = getelementptr inbounds [3 x double], [3 x double]* %10, i64 0, i64 0
%40 = getelementptr inbounds [3 x double], [3 x double]* %12, i64 0, i64 0
%41 = call i32 @lorenz(double* %39, double* %40)
store i32 0, i32* %22
br label %42
42: ; preds = %58, %38
%43 = load i32, i32* %22
%44 = icmp slt i32 %43, 3
br i1 %44, label %45, label %61
45: ; preds = %42
%46 = load i32, i32* %22
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [3 x double], [3 x double]* %10, i64 0, i64 %47
%49 = load double, double* %48
%50 = load i32, i32* %22
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [3 x double], [3 x double]* %12, i64 0, i64 %51
%53 = load double, double* %52
%54 = call double @llvm.fmuladd.f64(double 5.000000e-11, double %53, double %49)
%55 = load i32, i32* %22
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [3 x double], [3 x double]* %11, i64 0, i64 %56
store double %54, double* %57
br label %58
58: ; preds = %45
%59 = load i32, i32* %22
%60 = add nsw i32 %59, 1
store i32 %60, i32* %22
br label %42
61: ; preds = %42
%62 = getelementptr inbounds [3 x double], [3 x double]* %11, i64 0, i64 0
%63 = getelementptr inbounds [3 x double], [3 x double]* %13, i64 0, i64 0
%64 = call i32 @lorenz(double* %62, double* %63)
store i32 0, i32* %23
br label %65
65: ; preds = %81, %61
%66 = load i32, i32* %23
%67 = icmp slt i32 %66, 3
br i1 %67, label %68, label %84
68: ; preds = %65
%69 = load i32, i32* %23
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds [3 x double], [3 x double]* %10, i64 0, i64 %70
%72 = load double, double* %71
%73 = load i32, i32* %23
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds [3 x double], [3 x double]* %13, i64 0, i64 %74
%76 = load double, double* %75
%77 = call double @llvm.fmuladd.f64(double 5.000000e-11, double %76, double %72)
%78 = load i32, i32* %23
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds [3 x double], [3 x double]* %11, i64 0, i64 %79
store double %77, double* %80
br label %81
81: ; preds = %68
%82 = load i32, i32* %23
%83 = add nsw i32 %82, 1
store i32 %83, i32* %23
br label %65
84: ; preds = %65
%85 = getelementptr inbounds [3 x double], [3 x double]* %11, i64 0, i64 0
%86 = getelementptr inbounds [3 x double], [3 x double]* %14, i64 0, i64 0
%87 = call i32 @lorenz(double* %85, double* %86)
store i32 0, i32* %24
br label %88
88: ; preds = %104, %84
%89 = load i32, i32* %24
%90 = icmp slt i32 %89, 3
br i1 %90, label %91, label %107
91: ; preds = %88
%92 = load i32, i32* %24
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds [3 x double], [3 x double]* %10, i64 0, i64 %93
%95 = load double, double* %94
%96 = load i32, i32* %24
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds [3 x double], [3 x double]* %14, i64 0, i64 %97
%99 = load double, double* %98
%100 = call double @llvm.fmuladd.f64(double 1.000000e-10, double %99, double %95)
%101 = load i32, i32* %24
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds [3 x double], [3 x double]* %11, i64 0, i64 %102
store double %100, double* %103
br label %104
104: ; preds = %91
%105 = load i32, i32* %24
%106 = add nsw i32 %105, 1
store i32 %106, i32* %24
br label %88
107: ; preds = %88
%108 = getelementptr inbounds [3 x double], [3 x double]* %11, i64 0, i64 0
%109 = getelementptr inbounds [3 x double], [3 x double]* %15, i64 0, i64 0
%110 = call i32 @lorenz(double* %108, double* %109)
store i32 0, i32* %25
br label %111
111: ; preds = %144, %107
%112 = load i32, i32* %25
%113 = icmp slt i32 %112, 3
br i1 %113, label %114, label %147
114: ; preds = %111
%115 = load i32, i32* %25
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds [3 x double], [3 x double]* %10, i64 0, i64 %116
%118 = load double, double* %117
%119 = load i32, i32* %25
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds [3 x double], [3 x double]* %12, i64 0, i64 %120
%122 = load double, double* %121
%123 = load i32, i32* %25
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds [3 x double], [3 x double]* %13, i64 0, i64 %124
%126 = load double, double* %125
%127 = load i32, i32* %25
%128 = sext i32 %127 to i64
%129 = getelementptr inbounds [3 x double], [3 x double]* %14, i64 0, i64 %128
%130 = load double, double* %129
%131 = fadd double %126, %130
%132 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %131, double %122)
%133 = load i32, i32* %25
%134 = sext i32 %133 to i64
%135 = getelementptr inbounds [3 x double], [3 x double]* %15, i64 0, i64 %134
%136 = load double, double* %135
%137 = fadd double %132, %136
%138 = fmul double 1.000000e-10, %137
%139 = fdiv double %138, 6.000000e+00
%140 = fadd double %118, %139
%141 = load i32, i32* %25
%142 = sext i32 %141 to i64
%143 = getelementptr inbounds [3 x double], [3 x double]* %10, i64 0, i64 %142
store double %140, double* %143
br label %144
144: ; preds = %114
%145 = load i32, i32* %25
%146 = add nsw i32 %145, 1
store i32 %146, i32* %25
br label %111
147: ; preds = %111
br label %148
148: ; preds = %147
%149 = load i32, i32* %21
%150 = add nsw i32 %149, 1
store i32 %150, i32* %21
br label %35
151: ; preds = %35
%152 = call i64 (...) @clock()
store i64 %152, i64* %18
%153 = load double, double* %16
%154 = load i64, i64* %18
%155 = load i64, i64* %17
%156 = sub nsw i64 %154, %155
%157 = sitofp i64 %156 to double
%158 = load double, double* @CLOCKS_PER_SEC
%159 = fdiv double %157, %158
%160 = call double @llvm.minnum.f64(double %153, double %159)
store double %160, double* %16
%161 = getelementptr inbounds [3 x double], [3 x double]* %10, i64 0, i64 0
%162 = load double, double* %161
%163 = load i64, i64* %18
%164 = load i64, i64* %17
%165 = sub nsw i64 %163, %164
%166 = sitofp i64 %165 to double
%167 = load double, double* @CLOCKS_PER_SEC
%168 = fdiv double %166, %167
%169 = call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), double %162, double %168)
br label %170
170: ; preds = %151
%171 = load i32, i32* %20
%172 = add nsw i32 %171, 1
store i32 %172, i32* %20
br label %26
173: ; preds = %26
%174 = load double, double* %16
%175 = call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), double %174)
ret i32 0
}

LLVM IR (-O2):
@CLOCKS_PER_SEC = global double 0.000000e+00
@.str = [25 x i8] c"Result: %f\09 runtime: %f\0A\00"
@.str.1 = [21 x i8] c"Minimal Runtime: %f\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [3 x double]
%4 = alloca [3 x double]
%5 = alloca [3 x double]
%6 = alloca [3 x double]
%7 = alloca [3 x double]
%8 = alloca [3 x double]
%9 = bitcast [3 x double]* %3 to i8*
%10 = bitcast [3 x double]* %4 to i8*
%11 = bitcast [3 x double]* %5 to i8*
%12 = bitcast [3 x double]* %6 to i8*
%13 = bitcast [3 x double]* %7 to i8*
%14 = bitcast [3 x double]* %8 to i8*
%15 = getelementptr inbounds [3 x double], [3 x double]* %3, i64 0, i64 0
%16 = getelementptr inbounds [3 x double], [3 x double]* %3, i64 0, i64 2
%17 = getelementptr inbounds [3 x double], [3 x double]* %5, i64 0, i64 0
%18 = getelementptr inbounds [3 x double], [3 x double]* %4, i64 0, i64 0
%19 = getelementptr inbounds [3 x double], [3 x double]* %6, i64 0, i64 0
%20 = getelementptr inbounds [3 x double], [3 x double]* %7, i64 0, i64 0
%21 = getelementptr inbounds [3 x double], [3 x double]* %8, i64 0, i64 0
%22 = getelementptr inbounds [3 x double], [3 x double]* %5, i64 0, i64 2
%23 = getelementptr inbounds [3 x double], [3 x double]* %4, i64 0, i64 2
%24 = getelementptr inbounds [3 x double], [3 x double]* %6, i64 0, i64 2
%25 = getelementptr inbounds [3 x double], [3 x double]* %7, i64 0, i64 2
%26 = getelementptr inbounds [3 x double], [3 x double]* %8, i64 0, i64 2
%27 = bitcast [3 x double]* %3 to <2 x double>*
%28 = bitcast [3 x double]* %3 to <2 x double>*
%29 = bitcast [3 x double]* %5 to <2 x double>*
%30 = bitcast [3 x double]* %4 to <2 x double>*
%31 = bitcast [3 x double]* %3 to <2 x double>*
%32 = bitcast [3 x double]* %6 to <2 x double>*
%33 = bitcast [3 x double]* %4 to <2 x double>*
%34 = bitcast [3 x double]* %3 to <2 x double>*
%35 = bitcast [3 x double]* %7 to <2 x double>*
%36 = bitcast [3 x double]* %4 to <2 x double>*
%37 = bitcast [3 x double]* %3 to <2 x double>*
%38 = bitcast [3 x double]* %5 to <2 x double>*
%39 = bitcast [3 x double]* %6 to <2 x double>*
%40 = bitcast [3 x double]* %7 to <2 x double>*
%41 = bitcast [3 x double]* %8 to <2 x double>*
%42 = bitcast [3 x double]* %3 to <2 x double>*
br label %45
43: ; preds = %49
%44 = call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), double %55)
ret i32 0
45: ; preds = %2, %49
%46 = phi i32 [ 0, %2 ], [ %58, %49 ]
%47 = phi double [ 1.000000e+06, %2 ], [ %55, %49 ]
store <2 x double> <double 8.500000e+00, double 3.100000e+00>, <2 x double>* %27
store double 1.200000e+00, double* %16
%48 = call i64 (...) @clock()
br label %60
49: ; preds = %60
%50 = call i64 (...) @clock()
%51 = sub nsw i64 %50, %48
%52 = sitofp i64 %51 to double
%53 = load double, double* @CLOCKS_PER_SEC
%54 = fdiv double %52, %53
%55 = call double @llvm.minnum.f64(double %47, double %54)
%56 = load double, double* %15
%57 = call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), double %56, double %54)
%58 = add nuw nsw i32 %46, 1
%59 = icmp eq i32 %58, 21
br i1 %59, label %43, label %45
60: ; preds = %45, %60
%61 = phi i32 [ 0, %45 ], [ %106, %60 ]
%62 = call i32 @lorenz(double* %15, double* %17)
%63 = load <2 x double>, <2 x double>* %28
%64 = load <2 x double>, <2 x double>* %29
%65 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %64, <2 x double> <double 5.000000e-11, double 5.000000e-11>, <2 x double> %63)
store <2 x double> %65, <2 x double>* %30
%66 = load double, double* %16
%67 = load double, double* %22
%68 = call double @llvm.fmuladd.f64(double %67, double 5.000000e-11, double %66)
store double %68, double* %23
%69 = call i32 @lorenz(double* %18, double* %19)
%70 = load <2 x double>, <2 x double>* %31
%71 = load <2 x double>, <2 x double>* %32
%72 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %71, <2 x double> <double 5.000000e-11, double 5.000000e-11>, <2 x double> %70)
store <2 x double> %72, <2 x double>* %33
%73 = load double, double* %16
%74 = load double, double* %24
%75 = call double @llvm.fmuladd.f64(double %74, double 5.000000e-11, double %73)
store double %75, double* %23
%76 = call i32 @lorenz(double* %18, double* %20)
%77 = load <2 x double>, <2 x double>* %34
%78 = load <2 x double>, <2 x double>* %35
%79 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %78, <2 x double> <double 1.000000e-10, double 1.000000e-10>, <2 x double> %77)
store <2 x double> %79, <2 x double>* %36
%80 = load double, double* %16
%81 = load double, double* %25
%82 = call double @llvm.fmuladd.f64(double %81, double 1.000000e-10, double %80)
store double %82, double* %23
%83 = call i32 @lorenz(double* %18, double* %21)
%84 = load <2 x double>, <2 x double>* %37
%85 = load <2 x double>, <2 x double>* %38
%86 = load <2 x double>, <2 x double>* %39
%87 = load <2 x double>, <2 x double>* %40
%88 = fadd <2 x double> %86, %87
%89 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %88, <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double> %85)
%90 = load <2 x double>, <2 x double>* %41
%91 = fadd <2 x double> %90, %89
%92 = fmul <2 x double> %91, <double 1.000000e-10, double 1.000000e-10>
%93 = fdiv <2 x double> %92, <double 6.000000e+00, double 6.000000e+00>
%94 = fadd <2 x double> %84, %93
store <2 x double> %94, <2 x double>* %42
%95 = load double, double* %16
%96 = load double, double* %22
%97 = load double, double* %24
%98 = load double, double* %25
%99 = fadd double %97, %98
%100 = call double @llvm.fmuladd.f64(double %99, double 2.000000e+00, double %96)
%101 = load double, double* %26
%102 = fadd double %101, %100
%103 = fmul double %102, 1.000000e-10
%104 = fdiv double %103, 6.000000e+00
%105 = fadd double %95, %104
store double %105, double* %16
%106 = add nuw nsw i32 %61, 1
%107 = icmp eq i32 %106, 20000000
br i1 %107, label %49, label %60
}