double *trapezoid(double *w, const int leng) {
  int k, m1, m2;
  double *p, slope;
  m1 = leng / 4;
  m2 = (leng * 3) / 4;
  slope = 4.0 / (double)(leng - 1);
  for (k = 0, p = w; k < m1; k++)
    *p++ = slope * k;
  for (; k < m2; k++)
    *p++ = 1.0;
  for (; k < leng; k++)
    *p++ = 4.0 - slope * k;
  return (w);
}


x86 assembly (clang, -O0):
<trapezoid>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    $0x4,%ecx
cltd
idiv   %ecx
mov    %eax,-0x14(%rbp)
imul   $0x3,-0xc(%rbp),%eax
mov    $0x4,%ecx
cltd
idiv   %ecx
mov    %eax,-0x18(%rbp)
mov    -0xc(%rbp),%eax
sub    $0x1,%eax
cvtsi2sd %eax,%xmm1
movsd  0xec6(%rip),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movl   $0x0,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    118d <trapezoid+0x8d>
movsd  -0x28(%rbp),%xmm0
cvtsi2sdl -0x10(%rbp),%xmm1
mulsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x20(%rbp)
movsd  %xmm0,(%rax)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1152 <trapezoid+0x52>
jmp    1192 <trapezoid+0x92>
mov    -0x10(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    11c7 <trapezoid+0xc7>
mov    -0x20(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x20(%rbp)
movsd  0xe53(%rip),%xmm0
movsd  %xmm0,(%rax)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1192 <trapezoid+0x92>
jmp    11cc <trapezoid+0xcc>
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    122a <trapezoid+0x12a>
movsd  -0x28(%rbp),%xmm0
cvtsi2sdl -0x10(%rbp),%xmm1
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm1,%xmm0
movsd  0xdfb(%rip),%xmm1
addsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x20(%rbp)
movsd  %xmm0,(%rax)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    11cc <trapezoid+0xcc>
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<trapezoid>:
push   %rbx
mov    %rdi,%rax
lea    0x3(%rsi),%r11d
test   %esi,%esi
cmovns %esi,%r11d
lea    (%rsi,%rsi,2),%ecx
lea    (%rsi,%rsi,2),%r8d
add    $0x3,%r8d
test   %ecx,%ecx
cmovns %ecx,%r8d
sar    $0x2,%r8d
lea    -0x1(%rsi),%ecx
cvtsi2sd %ecx,%xmm0
movsd  0xecd(%rip),%xmm8
movapd %xmm8,%xmm1
divsd  %xmm0,%xmm1
xor    %edx,%edx
mov    %rdi,%rcx
cmp    $0x4,%esi
jge    115c <trapezoid+0x5c>
cmp    %r8d,%edx
jl     12a7 <trapezoid+0x1a7>
cmp    %esi,%edx
jl     13fa <trapezoid+0x2fa>
jmp    156f <trapezoid+0x46f>
sar    $0x2,%r11d
lea    -0x1(%r11),%r9d
xor    %edx,%edx
mov    %rax,%rcx
cmp    $0x3,%r9d
jb     1280 <trapezoid+0x180>
add    $0x1,%r9
mov    %r9,%rdx
and    $0xfffffffffffffffc,%rdx
movapd %xmm1,%xmm2
unpcklpd %xmm1,%xmm2
lea    -0x4(%rdx),%rcx
mov    %rcx,%r10
shr    $0x2,%r10
add    $0x1,%r10
test   %rcx,%rcx
je     1571 <trapezoid+0x471>
mov    %r10,%rdi
and    $0xfffffffffffffffe,%rdi
movdqa 0xe63(%rip),%xmm4
xor    %ecx,%ecx
movdqa 0xe68(%rip),%xmm9
movdqa 0xe6f(%rip),%xmm10
movdqa 0xe77(%rip),%xmm5
movdqa 0xe7f(%rip),%xmm6
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movdqa %xmm4,%xmm7
cvtdq2pd %xmm4,%xmm0
paddd  %xmm9,%xmm7
cvtdq2pd %xmm7,%xmm7
mulpd  %xmm2,%xmm0
mulpd  %xmm2,%xmm7
movupd %xmm0,(%rax,%rcx,8)
movdqa %xmm4,%xmm0
paddd  %xmm10,%xmm0
movdqa %xmm4,%xmm3
paddd  %xmm5,%xmm3
cvtdq2pd %xmm0,%xmm0
cvtdq2pd %xmm3,%xmm3
movupd %xmm7,0x10(%rax,%rcx,8)
mulpd  %xmm2,%xmm0
mulpd  %xmm2,%xmm3
movupd %xmm0,0x20(%rax,%rcx,8)
movupd %xmm3,0x30(%rax,%rcx,8)
add    $0x8,%rcx
paddd  %xmm6,%xmm4
add    $0xfffffffffffffffe,%rdi
jne    11e0 <trapezoid+0xe0>
test   $0x1,%r10b
je     1268 <trapezoid+0x168>
cvtdq2pd %xmm4,%xmm0
paddd  0xdcf(%rip),%xmm4
cvtdq2pd %xmm4,%xmm3
mulpd  %xmm2,%xmm0
mulpd  %xmm2,%xmm3
movupd %xmm0,(%rax,%rcx,8)
movupd %xmm3,0x10(%rax,%rcx,8)
lea    (%rax,%rdx,8),%rcx
cmp    %rdx,%r9
je     129b <trapezoid+0x19b>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
xorps  %xmm0,%xmm0
cvtsi2sd %edx,%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,(%rcx)
add    $0x8,%rcx
add    $0x1,%edx
cmp    %edx,%r11d
jne    1280 <trapezoid+0x180>
mov    %r11d,%edx
cmp    %r8d,%edx
jge    114f <trapezoid+0x4f>
mov    %edx,%r10d
not    %r10d
add    %r8d,%r10d
cmp    $0x3,%r10d
jb     13d0 <trapezoid+0x2d0>
add    $0x1,%r10
mov    %r10,%r9
and    $0xfffffffffffffffc,%r9
lea    -0x4(%r9),%rbx
mov    %rbx,%rdi
shr    $0x2,%rdi
add    $0x1,%rdi
mov    %edi,%r11d
and    $0x7,%r11d
cmp    $0x1c,%rbx
jae    12e8 <trapezoid+0x1e8>
xor    %ebx,%ebx
jmp    1395 <trapezoid+0x295>
movabs $0x7ffffffffffffffe,%rbx
ff ff 7f
add    $0xfffffffffffffffa,%rbx
and    %rbx,%rdi
xor    %ebx,%ebx
movapd 0xd5d(%rip),%xmm0
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movupd %xmm0,(%rcx,%rbx,8)
movupd %xmm0,0x10(%rcx,%rbx,8)
movupd %xmm0,0x20(%rcx,%rbx,8)
movupd %xmm0,0x30(%rcx,%rbx,8)
movupd %xmm0,0x40(%rcx,%rbx,8)
movupd %xmm0,0x50(%rcx,%rbx,8)
movupd %xmm0,0x60(%rcx,%rbx,8)
movupd %xmm0,0x70(%rcx,%rbx,8)
movupd %xmm0,0x80(%rcx,%rbx,8)
movupd %xmm0,0x90(%rcx,%rbx,8)
movupd %xmm0,0xa0(%rcx,%rbx,8)
movupd %xmm0,0xb0(%rcx,%rbx,8)
movupd %xmm0,0xc0(%rcx,%rbx,8)
movupd %xmm0,0xd0(%rcx,%rbx,8)
movupd %xmm0,0xe0(%rcx,%rbx,8)
movupd %xmm0,0xf0(%rcx,%rbx,8)
add    $0x20,%rbx
add    $0xfffffffffffffff8,%rdi
jne    1310 <trapezoid+0x210>
test   %r11,%r11
je     13c4 <trapezoid+0x2c4>
lea    (%rcx,%rbx,8),%rdi
add    $0x10,%rdi
shl    $0x5,%r11
xor    %ebx,%ebx
movapd 0xcb0(%rip),%xmm0
movupd %xmm0,-0x10(%rdi,%rbx,1)
movupd %xmm0,(%rdi,%rbx,1)
add    $0x20,%rbx
cmp    %rbx,%r11
jne    13b0 <trapezoid+0x2b0>
lea    (%rcx,%r9,8),%rcx
cmp    %r9,%r10
je     13ef <trapezoid+0x2ef>
add    %r9d,%edx
movabs $0x3ff0000000000000,%rdi
nopw   0x0(%rax,%rax,1)
mov    %rdi,(%rcx)
add    $0x8,%rcx
add    $0x1,%edx
cmp    %edx,%r8d
jne    13e0 <trapezoid+0x2e0>
mov    %r8d,%edx
cmp    %esi,%edx
jge    156f <trapezoid+0x46f>
xorpd  0xc6e(%rip),%xmm1
mov    %edx,%r9d
not    %r9d
add    %esi,%r9d
cmp    $0x3,%r9d
jb     1550 <trapezoid+0x450>
add    $0x1,%r9
mov    %r9,%r8
and    $0xfffffffffffffffc,%r8
movd   %edx,%xmm0
pshufd $0x50,%xmm0,%xmm4
paddd  0xbdf(%rip),%xmm4
movapd %xmm1,%xmm2
unpcklpd %xmm1,%xmm2
lea    -0x4(%r8),%rdi
mov    %rdi,%r10
shr    $0x2,%r10
add    $0x1,%r10
test   %rdi,%rdi
je     158a <trapezoid+0x48a>
mov    %r10,%r11
and    $0xfffffffffffffffe,%r11
xor    %edi,%edi
movdqa 0xbbd(%rip),%xmm9
movapd 0xc15(%rip),%xmm5
movdqa 0xbbc(%rip),%xmm10
movdqa 0xbc4(%rip),%xmm7
movdqa 0xbcc(%rip),%xmm0
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movdqa %xmm4,%xmm3
cvtdq2pd %xmm4,%xmm6
paddd  %xmm9,%xmm3
cvtdq2pd %xmm3,%xmm3
mulpd  %xmm2,%xmm6
addpd  %xmm5,%xmm6
mulpd  %xmm2,%xmm3
addpd  %xmm5,%xmm3
movupd %xmm6,(%rcx,%rdi,8)
movupd %xmm3,0x10(%rcx,%rdi,8)
movdqa %xmm4,%xmm3
paddd  %xmm10,%xmm3
movdqa %xmm4,%xmm6
cvtdq2pd %xmm3,%xmm3
paddd  %xmm7,%xmm6
cvtdq2pd %xmm6,%xmm6
mulpd  %xmm2,%xmm3
addpd  %xmm5,%xmm3
mulpd  %xmm2,%xmm6
addpd  %xmm5,%xmm6
movupd %xmm3,0x20(%rcx,%rdi,8)
movupd %xmm6,0x30(%rcx,%rdi,8)
add    $0x8,%rdi
paddd  %xmm0,%xmm4
add    $0xfffffffffffffffe,%r11
jne    1490 <trapezoid+0x390>
test   $0x1,%r10b
je     1538 <trapezoid+0x438>
cvtdq2pd %xmm4,%xmm0
paddd  0xb0f(%rip),%xmm4
cvtdq2pd %xmm4,%xmm3
mulpd  %xmm2,%xmm0
movapd 0xb5f(%rip),%xmm4
addpd  %xmm4,%xmm0
mulpd  %xmm2,%xmm3
addpd  %xmm4,%xmm3
movupd %xmm0,(%rcx,%rdi,8)
movupd %xmm3,0x10(%rcx,%rdi,8)
cmp    %r8,%r9
je     156f <trapezoid+0x46f>
add    %r8d,%edx
lea    (%rcx,%r8,8),%rcx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
xorps  %xmm0,%xmm0
cvtsi2sd %edx,%xmm0
mulsd  %xmm1,%xmm0
addsd  %xmm8,%xmm0
movsd  %xmm0,(%rcx)
add    $0x8,%rcx
add    $0x1,%edx
cmp    %edx,%esi
jne    1550 <trapezoid+0x450>
pop    %rbx
ret
movdqa 0xa97(%rip),%xmm4
xor    %ecx,%ecx
test   $0x1,%r10b
jne    1245 <trapezoid+0x145>
jmp    1268 <trapezoid+0x168>
xor    %edi,%edi
test   $0x1,%r10b
jne    1505 <trapezoid+0x405>
jmp    1538 <trapezoid+0x438>

LLVM IR (-O0):
define double* @trapezoid(double* %0, i32 %1) {
%3 = alloca double*
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca double*
%9 = alloca double
store double* %0, double** %3
store i32 %1, i32* %4
%10 = load i32, i32* %4
%11 = sdiv i32 %10, 4
store i32 %11, i32* %6
%12 = load i32, i32* %4
%13 = mul nsw i32 %12, 3
%14 = sdiv i32 %13, 4
store i32 %14, i32* %7
%15 = load i32, i32* %4
%16 = sub nsw i32 %15, 1
%17 = sitofp i32 %16 to double
%18 = fdiv double 4.000000e+00, %17
store double %18, double* %9
store i32 0, i32* %5
%19 = load double*, double** %3
store double* %19, double** %8
br label %20
20: ; preds = %31, %2
%21 = load i32, i32* %5
%22 = load i32, i32* %6
%23 = icmp slt i32 %21, %22
br i1 %23, label %24, label %34
24: ; preds = %20
%25 = load double, double* %9
%26 = load i32, i32* %5
%27 = sitofp i32 %26 to double
%28 = fmul double %25, %27
%29 = load double*, double** %8
%30 = getelementptr inbounds double, double* %29, i32 1
store double* %30, double** %8
store double %28, double* %29
br label %31
31: ; preds = %24
%32 = load i32, i32* %5
%33 = add nsw i32 %32, 1
store i32 %33, i32* %5
br label %20
34: ; preds = %20
br label %35
35: ; preds = %42, %34
%36 = load i32, i32* %5
%37 = load i32, i32* %7
%38 = icmp slt i32 %36, %37
br i1 %38, label %39, label %45
39: ; preds = %35
%40 = load double*, double** %8
%41 = getelementptr inbounds double, double* %40, i32 1
store double* %41, double** %8
store double 1.000000e+00, double* %40
br label %42
42: ; preds = %39
%43 = load i32, i32* %5
%44 = add nsw i32 %43, 1
store i32 %44, i32* %5
br label %35
45: ; preds = %35
br label %46
46: ; preds = %58, %45
%47 = load i32, i32* %5
%48 = load i32, i32* %4
%49 = icmp slt i32 %47, %48
br i1 %49, label %50, label %61
50: ; preds = %46
%51 = load double, double* %9
%52 = load i32, i32* %5
%53 = sitofp i32 %52 to double
%54 = fneg double %51
%55 = call double @llvm.fmuladd.f64(double %54, double %53, double 4.000000e+00)
%56 = load double*, double** %8
%57 = getelementptr inbounds double, double* %56, i32 1
store double* %57, double** %8
store double %55, double* %56
br label %58
58: ; preds = %50
%59 = load i32, i32* %5
%60 = add nsw i32 %59, 1
store i32 %60, i32* %5
br label %46
61: ; preds = %46
%62 = load double*, double** %3
ret double* %62
}

LLVM IR (-O2):
define double* @trapezoid(double* returned writeonly %0, i32 %1) {
%3 = sdiv i32 %1, 4
%4 = mul nsw i32 %1, 3
%5 = sdiv i32 %4, 4
%6 = add nsw i32 %1, -1
%7 = sitofp i32 %6 to double
%8 = fdiv double 4.000000e+00, %7
%9 = icmp sgt i32 %1, 3
br i1 %9, label %10, label %77
10: ; preds = %2
%11 = add nsw i32 %3, -1
%12 = zext i32 %11 to i64
%13 = add nuw nsw i64 %12, 1
%14 = icmp ult i32 %11, 3
br i1 %14, label %74, label %15
15: ; preds = %10
%16 = and i64 %13, 8589934588
%17 = trunc i64 %16 to i32
%18 = getelementptr double, double* %0, i64 %16
%19 = insertelement <2 x double> poison, double %8, i64 0
%20 = shufflevector <2 x double> %19, <2 x double> poison, <2 x i32> zeroinitializer
%21 = insertelement <2 x double> poison, double %8, i64 0
%22 = shufflevector <2 x double> %21, <2 x double> poison, <2 x i32> zeroinitializer
%23 = add nsw i64 %16, -4
%24 = lshr exact i64 %23, 2
%25 = add nuw nsw i64 %24, 1
%26 = and i64 %25, 1
%27 = icmp eq i64 %23, 0
br i1 %27, label %58, label %28
28: ; preds = %15
%29 = and i64 %25, 9223372036854775806
br label %30
30: ; preds = %30, %28
%31 = phi i64 [ 0, %28 ], [ %54, %30 ]
%32 = phi <2 x i32> [ <i32 0, i32 1>, %28 ], [ %55, %30 ]
%33 = phi i64 [ 0, %28 ], [ %56, %30 ]
%34 = add <2 x i32> %32, <i32 2, i32 2>
%35 = getelementptr double, double* %0, i64 %31
%36 = sitofp <2 x i32> %32 to <2 x double>
%37 = sitofp <2 x i32> %34 to <2 x double>
%38 = fmul <2 x double> %20, %36
%39 = fmul <2 x double> %22, %37
%40 = bitcast double* %35 to <2 x double>*
store <2 x double> %38, <2 x double>* %40
%41 = getelementptr double, double* %35, i64 2
%42 = bitcast double* %41 to <2 x double>*
store <2 x double> %39, <2 x double>* %42
%43 = or i64 %31, 4
%44 = add <2 x i32> %32, <i32 4, i32 4>
%45 = add <2 x i32> %32, <i32 6, i32 6>
%46 = getelementptr double, double* %0, i64 %43
%47 = sitofp <2 x i32> %44 to <2 x double>
%48 = sitofp <2 x i32> %45 to <2 x double>
%49 = fmul <2 x double> %20, %47
%50 = fmul <2 x double> %22, %48
%51 = bitcast double* %46 to <2 x double>*
store <2 x double> %49, <2 x double>* %51
%52 = getelementptr double, double* %46, i64 2
%53 = bitcast double* %52 to <2 x double>*
store <2 x double> %50, <2 x double>* %53
%54 = add nuw i64 %31, 8
%55 = add <2 x i32> %32, <i32 8, i32 8>
%56 = add i64 %33, 2
%57 = icmp eq i64 %56, %29
br i1 %57, label %58, label %30
58: ; preds = %30, %15
%59 = phi i64 [ 0, %15 ], [ %54, %30 ]
%60 = phi <2 x i32> [ <i32 0, i32 1>, %15 ], [ %55, %30 ]
%61 = icmp eq i64 %26, 0
br i1 %61, label %72, label %62
62: ; preds = %58
%63 = add <2 x i32> %60, <i32 2, i32 2>
%64 = getelementptr double, double* %0, i64 %59
%65 = sitofp <2 x i32> %60 to <2 x double>
%66 = sitofp <2 x i32> %63 to <2 x double>
%67 = fmul <2 x double> %20, %65
%68 = fmul <2 x double> %22, %66
%69 = bitcast double* %64 to <2 x double>*
store <2 x double> %67, <2 x double>* %69
%70 = getelementptr double, double* %64, i64 2
%71 = bitcast double* %70 to <2 x double>*
store <2 x double> %68, <2 x double>* %71
br label %72
72: ; preds = %58, %62
%73 = icmp eq i64 %13, %16
br i1 %73, label %77, label %74
74: ; preds = %10, %72
%75 = phi i32 [ 0, %10 ], [ %17, %72 ]
%76 = phi double* [ %0, %10 ], [ %18, %72 ]
br label %162
77: ; preds = %162, %72, %2
%78 = phi double* [ %0, %2 ], [ %18, %72 ], [ %167, %162 ]
%79 = phi i32 [ 0, %2 ], [ %3, %72 ], [ %3, %162 ]
%80 = icmp slt i32 %79, %5
br i1 %80, label %81, label %170
81: ; preds = %77
%82 = xor i32 %79, -1
%83 = add nsw i32 %5, %82
%84 = zext i32 %83 to i64
%85 = add nuw nsw i64 %84, 1
%86 = icmp ult i32 %83, 3
br i1 %86, label %159, label %87
87: ; preds = %81
%88 = and i64 %85, 8589934588
%89 = trunc i64 %88 to i32
%90 = add i32 %79, %89
%91 = getelementptr double, double* %78, i64 %88
%92 = add nsw i64 %88, -4
%93 = lshr exact i64 %92, 2
%94 = add nuw nsw i64 %93, 1
%95 = and i64 %94, 7
%96 = icmp ult i64 %92, 28
br i1 %96, label %144, label %97
97: ; preds = %87
%98 = and i64 %94, 9223372036854775800
br label %99
99: ; preds = %99, %97
%100 = phi i64 [ 0, %97 ], [ %141, %99 ]
%101 = phi i64 [ 0, %97 ], [ %142, %99 ]
%102 = getelementptr double, double* %78, i64 %100
%103 = bitcast double* %102 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %103
%104 = getelementptr double, double* %102, i64 2
%105 = bitcast double* %104 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %105
%106 = or i64 %100, 4
%107 = getelementptr double, double* %78, i64 %106
%108 = bitcast double* %107 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %108
%109 = getelementptr double, double* %107, i64 2
%110 = bitcast double* %109 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %110
%111 = or i64 %100, 8
%112 = getelementptr double, double* %78, i64 %111
%113 = bitcast double* %112 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %113
%114 = getelementptr double, double* %112, i64 2
%115 = bitcast double* %114 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %115
%116 = or i64 %100, 12
%117 = getelementptr double, double* %78, i64 %116
%118 = bitcast double* %117 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %118
%119 = getelementptr double, double* %117, i64 2
%120 = bitcast double* %119 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %120
%121 = or i64 %100, 16
%122 = getelementptr double, double* %78, i64 %121
%123 = bitcast double* %122 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %123
%124 = getelementptr double, double* %122, i64 2
%125 = bitcast double* %124 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %125
%126 = or i64 %100, 20
%127 = getelementptr double, double* %78, i64 %126
%128 = bitcast double* %127 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %128
%129 = getelementptr double, double* %127, i64 2
%130 = bitcast double* %129 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %130
%131 = or i64 %100, 24
%132 = getelementptr double, double* %78, i64 %131
%133 = bitcast double* %132 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %133
%134 = getelementptr double, double* %132, i64 2
%135 = bitcast double* %134 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %135
%136 = or i64 %100, 28
%137 = getelementptr double, double* %78, i64 %136
%138 = bitcast double* %137 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %138
%139 = getelementptr double, double* %137, i64 2
%140 = bitcast double* %139 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %140
%141 = add nuw i64 %100, 32
%142 = add i64 %101, 8
%143 = icmp eq i64 %142, %98
br i1 %143, label %144, label %99
144: ; preds = %99, %87
%145 = phi i64 [ 0, %87 ], [ %141, %99 ]
%146 = icmp eq i64 %95, 0
br i1 %146, label %157, label %147
147: ; preds = %144, %147
%148 = phi i64 [ %154, %147 ], [ %145, %144 ]
%149 = phi i64 [ %155, %147 ], [ 0, %144 ]
%150 = getelementptr double, double* %78, i64 %148
%151 = bitcast double* %150 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %151
%152 = getelementptr double, double* %150, i64 2
%153 = bitcast double* %152 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double>* %153
%154 = add nuw i64 %148, 4
%155 = add i64 %149, 1
%156 = icmp eq i64 %155, %95
br i1 %156, label %157, label %147
157: ; preds = %147, %144
%158 = icmp eq i64 %85, %88
br i1 %158, label %170, label %159
159: ; preds = %81, %157
%160 = phi i32 [ %79, %81 ], [ %90, %157 ]
%161 = phi double* [ %78, %81 ], [ %91, %157 ]
br label %247
162: ; preds = %74, %162
%163 = phi i32 [ %168, %162 ], [ %75, %74 ]
%164 = phi double* [ %167, %162 ], [ %76, %74 ]
%165 = sitofp i32 %163 to double
%166 = fmul double %8, %165
%167 = getelementptr inbounds double, double* %164, i64 1
store double %166, double* %164
%168 = add nuw nsw i32 %163, 1
%169 = icmp eq i32 %168, %3
br i1 %169, label %77, label %162
170: ; preds = %247, %157, %77
%171 = phi double* [ %78, %77 ], [ %91, %157 ], [ %250, %247 ]
%172 = phi i32 [ %79, %77 ], [ %5, %157 ], [ %5, %247 ]
%173 = icmp slt i32 %172, %1
br i1 %173, label %174, label %261
174: ; preds = %170
%175 = fneg double %8
%176 = xor i32 %172, -1
%177 = add i32 %176, %1
%178 = zext i32 %177 to i64
%179 = add nuw nsw i64 %178, 1
%180 = icmp ult i32 %177, 3
br i1 %180, label %244, label %181
181: ; preds = %174
%182 = and i64 %179, 8589934588
%183 = trunc i64 %182 to i32
%184 = add i32 %172, %183
%185 = getelementptr double, double* %171, i64 %182
%186 = insertelement <2 x i32> poison, i32 %172, i64 0
%187 = shufflevector <2 x i32> %186, <2 x i32> poison, <2 x i32> zeroinitializer
%188 = add <2 x i32> %187, <i32 0, i32 1>
%189 = insertelement <2 x double> poison, double %175, i64 0
%190 = shufflevector <2 x double> %189, <2 x double> poison, <2 x i32> zeroinitializer
%191 = insertelement <2 x double> poison, double %175, i64 0
%192 = shufflevector <2 x double> %191, <2 x double> poison, <2 x i32> zeroinitializer
%193 = add nsw i64 %182, -4
%194 = lshr exact i64 %193, 2
%195 = add nuw nsw i64 %194, 1
%196 = and i64 %195, 1
%197 = icmp eq i64 %193, 0
br i1 %197, label %228, label %198
198: ; preds = %181
%199 = and i64 %195, 9223372036854775806
br label %200
200: ; preds = %200, %198
%201 = phi i64 [ 0, %198 ], [ %224, %200 ]
%202 = phi <2 x i32> [ %188, %198 ], [ %225, %200 ]
%203 = phi i64 [ 0, %198 ], [ %226, %200 ]
%204 = add <2 x i32> %202, <i32 2, i32 2>
%205 = getelementptr double, double* %171, i64 %201
%206 = sitofp <2 x i32> %202 to <2 x double>
%207 = sitofp <2 x i32> %204 to <2 x double>
%208 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %190, <2 x double> %206, <2 x double> <double 4.000000e+00, double 4.000000e+00>)
%209 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %192, <2 x double> %207, <2 x double> <double 4.000000e+00, double 4.000000e+00>)
%210 = bitcast double* %205 to <2 x double>*
store <2 x double> %208, <2 x double>* %210
%211 = getelementptr double, double* %205, i64 2
%212 = bitcast double* %211 to <2 x double>*
store <2 x double> %209, <2 x double>* %212
%213 = or i64 %201, 4
%214 = add <2 x i32> %202, <i32 4, i32 4>
%215 = add <2 x i32> %202, <i32 6, i32 6>
%216 = getelementptr double, double* %171, i64 %213
%217 = sitofp <2 x i32> %214 to <2 x double>
%218 = sitofp <2 x i32> %215 to <2 x double>
%219 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %190, <2 x double> %217, <2 x double> <double 4.000000e+00, double 4.000000e+00>)
%220 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %192, <2 x double> %218, <2 x double> <double 4.000000e+00, double 4.000000e+00>)
%221 = bitcast double* %216 to <2 x double>*
store <2 x double> %219, <2 x double>* %221
%222 = getelementptr double, double* %216, i64 2
%223 = bitcast double* %222 to <2 x double>*
store <2 x double> %220, <2 x double>* %223
%224 = add nuw i64 %201, 8
%225 = add <2 x i32> %202, <i32 8, i32 8>
%226 = add i64 %203, 2
%227 = icmp eq i64 %226, %199
br i1 %227, label %228, label %200
228: ; preds = %200, %181
%229 = phi i64 [ 0, %181 ], [ %224, %200 ]
%230 = phi <2 x i32> [ %188, %181 ], [ %225, %200 ]
%231 = icmp eq i64 %196, 0
br i1 %231, label %242, label %232
232: ; preds = %228
%233 = add <2 x i32> %230, <i32 2, i32 2>
%234 = getelementptr double, double* %171, i64 %229
%235 = sitofp <2 x i32> %230 to <2 x double>
%236 = sitofp <2 x i32> %233 to <2 x double>
%237 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %190, <2 x double> %235, <2 x double> <double 4.000000e+00, double 4.000000e+00>)
%238 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %192, <2 x double> %236, <2 x double> <double 4.000000e+00, double 4.000000e+00>)
%239 = bitcast double* %234 to <2 x double>*
store <2 x double> %237, <2 x double>* %239
%240 = getelementptr double, double* %234, i64 2
%241 = bitcast double* %240 to <2 x double>*
store <2 x double> %238, <2 x double>* %241
br label %242
242: ; preds = %228, %232
%243 = icmp eq i64 %179, %182
br i1 %243, label %261, label %244
244: ; preds = %174, %242
%245 = phi i32 [ %172, %174 ], [ %184, %242 ]
%246 = phi double* [ %171, %174 ], [ %185, %242 ]
br label %253
247: ; preds = %159, %247
%248 = phi i32 [ %251, %247 ], [ %160, %159 ]
%249 = phi double* [ %250, %247 ], [ %161, %159 ]
%250 = getelementptr inbounds double, double* %249, i64 1
store double 1.000000e+00, double* %249
%251 = add nuw nsw i32 %248, 1
%252 = icmp eq i32 %251, %5
br i1 %252, label %170, label %247
253: ; preds = %244, %253
%254 = phi i32 [ %259, %253 ], [ %245, %244 ]
%255 = phi double* [ %258, %253 ], [ %246, %244 ]
%256 = sitofp i32 %254 to double
%257 = tail call double @llvm.fmuladd.f64(double %175, double %256, double 4.000000e+00)
%258 = getelementptr inbounds double, double* %255, i64 1
store double %257, double* %255
%259 = add nuw nsw i32 %254, 1
%260 = icmp eq i32 %259, %1
br i1 %260, label %261, label %253
261: ; preds = %253, %242, %170
ret double* %0
}