#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 round(double);
void calc_delta(double *i, double *j, double *delta, double *unitcell,
                double *unitcell_reciproke, int *unitcell_active) {
  double unit_cell[] = {1, 0, 0, 0, 2, 0, 0, 0, 1};
  double unit_cell_reciproke[] = {1, 0, 0, 0, 0.5, 0, 0, 0, 1};
  int p;
  for (p = 0; p < 3; p++) {
    if (*(unitcell_active + p) == 1) {
      int k, l;
      double tmp;
      double i_cart[3], j_cart[3], i_frac[3], j_frac[3], delta_frac[3];
      for (k = 0; k < 3; k++) {
        for (l = 0; l < 3; l++) {
          i_cart[l] = *(i + l);
          tmp = unit_cell[k + l] * i_cart[l];
          i_frac[k] += tmp;
          j_cart[l] = *(j + l);
          tmp = unit_cell[k + l] * j_cart[l];
          j_frac[k] += tmp;
        }
      }
      for (k = 0; k < 3; k++) {
        delta_frac[k] = (j_frac[k] - i_frac[k]) - round(j_frac[k] - i_frac[k]);
      }
      double delta_cart_p = 0;
      for (k = 0; k < 3; k++) {
        tmp = unit_cell_reciproke[k + l] * delta_frac[k];
        delta_cart_p += tmp;
      }
      *(delta + p) = delta_cart_p;
    } else {
      *(delta + p) = *(i + p) - *(j + p);
    }
  }
}


x86 assembly (clang, -O0):
<calc_delta>:
push   %rbp
mov    %rsp,%rbp
sub    $0x190,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
lea    -0x80(%rbp),%rdi
xor    %esi,%esi
mov    $0x48,%edx
call   1030 <memset@plt>
movsd  0xea5(%rip),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  0xea8(%rip),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  0xe8b(%rip),%xmm0
movsd  %xmm0,-0x40(%rbp)
lea    -0xd0(%rbp),%rdi
xor    %esi,%esi
mov    $0x48,%edx
call   1030 <memset@plt>
movsd  0xe6b(%rip),%xmm0
movsd  %xmm0,-0xd0(%rbp)
ff
movsd  0xe63(%rip),%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  0xe4b(%rip),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movl   $0x0,-0xd4(%rbp)
cmpl   $0x3,-0xd4(%rbp)
jge    1498 <calc_delta+0x378>
mov    -0x30(%rbp),%rax
movslq -0xd4(%rbp),%rcx
cmpl   $0x1,(%rax,%rcx,4)
jne    144f <calc_delta+0x32f>
movl   $0x0,-0xd8(%rbp)
cmpl   $0x3,-0xd8(%rbp)
jge    131e <calc_delta+0x1fe>
movl   $0x0,-0xdc(%rbp)
cmpl   $0x3,-0xdc(%rbp)
jge    1305 <calc_delta+0x1e5>
mov    -0x8(%rbp),%rax
movslq -0xdc(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movslq -0xdc(%rbp),%rax
movsd  %xmm0,-0x100(%rbp,%rax,8)
ff ff
mov    -0xd8(%rbp),%eax
add    -0xdc(%rbp),%eax
cltq
movsd  -0x80(%rbp,%rax,8),%xmm0
movslq -0xdc(%rbp),%rax
mulsd  -0x100(%rbp,%rax,8),%xmm0
ff ff
movsd  %xmm0,-0xe8(%rbp)
ff
movsd  -0xe8(%rbp),%xmm0
ff
movslq -0xd8(%rbp),%rax
addsd  -0x140(%rbp,%rax,8),%xmm0
ff ff
movsd  %xmm0,-0x140(%rbp,%rax,8)
ff ff
mov    -0x10(%rbp),%rax
movslq -0xdc(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movslq -0xdc(%rbp),%rax
movsd  %xmm0,-0x120(%rbp,%rax,8)
ff ff
mov    -0xd8(%rbp),%eax
add    -0xdc(%rbp),%eax
cltq
movsd  -0x80(%rbp,%rax,8),%xmm0
movslq -0xdc(%rbp),%rax
mulsd  -0x120(%rbp,%rax,8),%xmm0
ff ff
movsd  %xmm0,-0xe8(%rbp)
ff
movsd  -0xe8(%rbp),%xmm0
ff
movslq -0xd8(%rbp),%rax
addsd  -0x160(%rbp,%rax,8),%xmm0
ff ff
movsd  %xmm0,-0x160(%rbp,%rax,8)
ff ff
mov    -0xdc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xdc(%rbp)
jmp    120a <calc_delta+0xea>
jmp    130a <calc_delta+0x1ea>
mov    -0xd8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xd8(%rbp)
jmp    11f3 <calc_delta+0xd3>
movl   $0x0,-0xd8(%rbp)
cmpl   $0x3,-0xd8(%rbp)
jge    13b5 <calc_delta+0x295>
movslq -0xd8(%rbp),%rax
movsd  -0x160(%rbp,%rax,8),%xmm0
ff ff
movslq -0xd8(%rbp),%rax
subsd  -0x140(%rbp,%rax,8),%xmm0
ff ff
movsd  %xmm0,-0x190(%rbp)
ff
movslq -0xd8(%rbp),%rax
movsd  -0x160(%rbp,%rax,8),%xmm0
ff ff
movslq -0xd8(%rbp),%rax
subsd  -0x140(%rbp,%rax,8),%xmm0
ff ff
call   1040 <round@plt>
movaps %xmm0,%xmm1
movsd  -0x190(%rbp),%xmm0
ff
subsd  %xmm1,%xmm0
movslq -0xd8(%rbp),%rax
movsd  %xmm0,-0x180(%rbp,%rax,8)
ff ff
mov    -0xd8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xd8(%rbp)
jmp    1328 <calc_delta+0x208>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x188(%rbp)
ff
movl   $0x0,-0xd8(%rbp)
cmpl   $0x3,-0xd8(%rbp)
jge    1432 <calc_delta+0x312>
mov    -0xd8(%rbp),%eax
add    -0xdc(%rbp),%eax
cltq
movsd  -0xd0(%rbp,%rax,8),%xmm0
ff ff
movslq -0xd8(%rbp),%rax
mulsd  -0x180(%rbp,%rax,8),%xmm0
ff ff
movsd  %xmm0,-0xe8(%rbp)
ff
movsd  -0xe8(%rbp),%xmm0
ff
addsd  -0x188(%rbp),%xmm0
ff
movsd  %xmm0,-0x188(%rbp)
ff
mov    -0xd8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xd8(%rbp)
jmp    13ca <calc_delta+0x2aa>
movsd  -0x188(%rbp),%xmm0
ff
mov    -0x18(%rbp),%rax
movslq -0xd4(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
jmp    147f <calc_delta+0x35f>
mov    -0x8(%rbp),%rax
movslq -0xd4(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0xd4(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
movslq -0xd4(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
jmp    1484 <calc_delta+0x364>
mov    -0xd4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xd4(%rbp)
jmp    11c7 <calc_delta+0xa7>
add    $0x190,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<calc_delta>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x60,%rsp
mov    %r9,%r14
mov    %rdx,%r15
mov    %rsi,%r12
mov    %rdi,%r13
xor    %ebx,%ebx
jmp    1151 <calc_delta+0x41>
nopl   (%rax)
movsd  0x0(%r13,%rbx,8),%xmm1
subsd  (%r12,%rbx,8),%xmm1
movsd  %xmm1,(%r15,%rbx,8)
add    $0x1,%rbx
cmp    $0x3,%rbx
je     12ce <calc_delta+0x1be>
cmpl   $0x1,(%r14,%rbx,4)
jne    1130 <calc_delta+0x20>
movsd  0x0(%r13),%xmm2
movsd  0x8(%r13),%xmm1
movhpd 0x8(%r12),%xmm1
mulpd  0xe9d(%rip),%xmm1
movsd  (%r12),%xmm3
movapd %xmm2,%xmm4
movapd %xmm3,%xmm5
xorpd  %xmm6,%xmm6
mulsd  %xmm6,%xmm5
xorpd  %xmm8,%xmm8
unpcklpd %xmm5,%xmm2
movapd %xmm1,%xmm6
movapd 0x30(%rsp),%xmm7
addpd  %xmm2,%xmm7
addpd  %xmm1,%xmm7
movapd %xmm7,%xmm9
unpcklpd %xmm1,%xmm1
movsd  0x10(%r12),%xmm7
movapd %xmm7,%xmm2
mulsd  %xmm8,%xmm2
mulsd  %xmm8,%xmm4
unpcklpd %xmm3,%xmm5
addpd  %xmm5,%xmm0
unpckhpd %xmm6,%xmm6
addpd  %xmm0,%xmm6
unpcklpd %xmm2,%xmm2
addpd  %xmm6,%xmm2
movapd %xmm2,0x20(%rsp)
unpcklpd %xmm4,%xmm4
movapd 0x40(%rsp),%xmm3
addpd  %xmm4,%xmm3
addpd  %xmm1,%xmm3
movsd  0x10(%r13),%xmm0
unpcklpd %xmm0,%xmm0
movsd  0xdfc(%rip),%xmm1
mulpd  %xmm1,%xmm0
addsd  %xmm7,%xmm7
addpd  %xmm0,%xmm3
movapd %xmm3,0x40(%rsp)
shufpd $0x1,%xmm7,%xmm0
addpd  %xmm0,%xmm9
movapd %xmm9,0x30(%rsp)
movapd %xmm2,%xmm0
unpckhpd %xmm2,%xmm0
subsd  %xmm9,%xmm0
movapd %xmm0,(%rsp)
call   1030 <round@plt>
movapd (%rsp),%xmm1
subsd  %xmm0,%xmm1
movapd %xmm1,(%rsp)
movapd 0x30(%rsp),%xmm0
movlpd 0x20(%rsp),%xmm0
movapd 0x40(%rsp),%xmm1
shufpd $0x1,%xmm1,%xmm1
subpd  %xmm1,%xmm0
movapd %xmm0,0x10(%rsp)
call   1030 <round@plt>
movapd %xmm0,0x50(%rsp)
movapd 0x10(%rsp),%xmm0
unpckhpd %xmm0,%xmm0
call   1030 <round@plt>
movapd 0x10(%rsp),%xmm1
movapd 0x50(%rsp),%xmm2
unpcklpd %xmm0,%xmm2
subpd  %xmm2,%xmm1
movsd  0xd65(%rip),%xmm0
mulpd  %xmm0,%xmm1
xorpd  %xmm0,%xmm0
movapd (%rsp),%xmm2
mulsd  %xmm0,%xmm2
addsd  %xmm0,%xmm2
addsd  %xmm1,%xmm2
unpckhpd %xmm1,%xmm1
addsd  %xmm2,%xmm1
movaps 0x20(%rsp),%xmm0
jmp    113d <calc_delta+0x2d>
add    $0x60,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

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

LLVM IR (-O2):
define void @calc_delta(double* nocapture %0, double* nocapture %1, double* nocapture writeonly %2, double* nocapture readnone %3, double* nocapture readnone %4, i32* nocapture %5) {
%7 = getelementptr inbounds double, double* %0, i64 1
%8 = getelementptr inbounds double, double* %1, i64 1
%9 = getelementptr inbounds double, double* %0, i64 2
%10 = getelementptr inbounds double, double* %1, i64 2
br label %11
11: ; preds = %6, %79
%12 = phi i64 [ 0, %6 ], [ %84, %79 ]
%13 = phi <4 x double> [ poison, %6 ], [ %81, %79 ]
%14 = phi <2 x double> [ undef, %6 ], [ %82, %79 ]
%15 = getelementptr inbounds i32, i32* %5, i64 %12
%16 = load i32, i32* %15
%17 = icmp eq i32 %16, 1
br i1 %17, label %18, label %73
18: ; preds = %11
%19 = load double, double* %0
%20 = load double, double* %1
%21 = load double, double* %7
%22 = load double, double* %8
%23 = insertelement <2 x double> poison, double %21, i64 0
%24 = insertelement <2 x double> %23, double %22, i64 1
%25 = fmul <2 x double> %24, zeroinitializer
%26 = shufflevector <2 x double> %25, <2 x double> poison, <4 x i32> <i32 0, i32 0, i32 0, i32 1>
%27 = load double, double* %9
%28 = load double, double* %10
%29 = fmul double %28, 0.000000e+00
%30 = fmul double %19, 0.000000e+00
%31 = fmul double %20, 0.000000e+00
%32 = insertelement <2 x double> poison, double %31, i64 0
%33 = insertelement <2 x double> %32, double %20, i64 1
%34 = fadd <2 x double> %14, %33
%35 = shufflevector <2 x double> %25, <2 x double> undef, <2 x i32> <i32 1, i32 1>
%36 = fadd <2 x double> %34, %35
%37 = insertelement <2 x double> poison, double %29, i64 0
%38 = shufflevector <2 x double> %37, <2 x double> poison, <2 x i32> zeroinitializer
%39 = fadd <2 x double> %36, %38
%40 = insertelement <4 x double> poison, double %30, i64 0
%41 = insertelement <4 x double> %40, double %30, i64 1
%42 = insertelement <4 x double> %41, double %19, i64 2
%43 = insertelement <4 x double> %42, double %31, i64 3
%44 = fadd <4 x double> %13, %43
%45 = fadd <4 x double> %44, %26
%46 = insertelement <2 x double> poison, double %27, i64 0
%47 = shufflevector <2 x double> %46, <2 x double> poison, <2 x i32> zeroinitializer
%48 = fmul <2 x double> %47, <double 2.000000e+00, double 0.000000e+00>
%49 = fmul double %28, 2.000000e+00
%50 = shufflevector <2 x double> %48, <2 x double> poison, <4 x i32> <i32 0, i32 1, i32 undef, i32 undef>
%51 = extractelement <2 x double> %48, i64 1
%52 = insertelement <4 x double> %50, double %51, i64 2
%53 = insertelement <4 x double> %52, double %49, i64 3
%54 = fadd <4 x double> %45, %53
%55 = extractelement <4 x double> %54, i64 2
%56 = extractelement <2 x double> %39, i64 1
%57 = fsub double %56, %55
%58 = tail call double @llvm.round.f64(double %57)
%59 = fsub double %57, %58
%60 = extractelement <4 x double> %54, i64 3
%61 = insertelement <2 x double> %39, double %60, i64 1
%62 = shufflevector <4 x double> %54, <4 x double> undef, <2 x i32> <i32 1, i32 0>
%63 = fsub <2 x double> %61, %62
%64 = call <2 x double> @llvm.round.v2f64(<2 x double> %63)
%65 = fsub <2 x double> %63, %64
%66 = fmul double %59, 0.000000e+00
%67 = fadd double %66, 0.000000e+00
%68 = fmul <2 x double> %65, <double 5.000000e-01, double 0.000000e+00>
%69 = extractelement <2 x double> %68, i64 0
%70 = fadd double %67, %69
%71 = extractelement <2 x double> %68, i64 1
%72 = fadd double %70, %71
br label %79
73: ; preds = %11
%74 = getelementptr inbounds double, double* %0, i64 %12
%75 = load double, double* %74
%76 = getelementptr inbounds double, double* %1, i64 %12
%77 = load double, double* %76
%78 = fsub double %75, %77
br label %79
79: ; preds = %18, %73
%80 = phi double [ %72, %18 ], [ %78, %73 ]
%81 = phi <4 x double> [ %54, %18 ], [ %13, %73 ]
%82 = phi <2 x double> [ %39, %18 ], [ %14, %73 ]
%83 = getelementptr inbounds double, double* %2, i64 %12
store double %80, double* %83
%84 = add nuw nsw i64 %12, 1
%85 = icmp eq i64 %84, 3
br i1 %85, label %86, label %11
86: ; preds = %79
ret void
}