#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 compute_sigmoid(double *, double *, double, long);
void compute_full_gradient(double *Xt, double *w, double *y, double *g, long n,
                           long d, double lambda) {
  for (long i = 0; i < d; i++) {
    g[i] = 0;
  }
  double sigmoid;
  for (long i = 0; i < n; i++) {
    sigmoid = compute_sigmoid(Xt + d * i, w, y[i], d);
    for (long j = 0; j < d; j++) {
      g[j] += Xt[d * i + j] * sigmoid;
    }
  }
  for (long i = 0; i < d; i++) {
    g[i] = g[i] / n;
    g[i] += lambda * w[i];
  }
}


x86 assembly (clang, -O0):
<compute_full_gradient>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%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)
movsd  %xmm0,-0x38(%rbp)
movq   $0x0,-0x40(%rbp)
mov    -0x40(%rbp),%rax
cmp    -0x30(%rbp),%rax
jge    116c <compute_full_gradient+0x5c>
mov    -0x20(%rbp),%rax
mov    -0x40(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x40(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x40(%rbp)
jmp    113d <compute_full_gradient+0x2d>
movq   $0x0,-0x50(%rbp)
mov    -0x50(%rbp),%rax
cmp    -0x28(%rbp),%rax
jge    1227 <compute_full_gradient+0x117>
mov    -0x8(%rbp),%rdi
mov    -0x30(%rbp),%rax
imul   -0x50(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rax
mov    -0x50(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x30(%rbp),%rdx
call   1030 <compute_sigmoid@plt>
movsd  %xmm0,-0x48(%rbp)
movq   $0x0,-0x58(%rbp)
mov    -0x58(%rbp),%rax
cmp    -0x30(%rbp),%rax
jge    1211 <compute_full_gradient+0x101>
mov    -0x8(%rbp),%rax
mov    -0x30(%rbp),%rcx
imul   -0x50(%rbp),%rcx
add    -0x58(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  -0x48(%rbp),%xmm2
mov    -0x20(%rbp),%rax
mov    -0x58(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x58(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x58(%rbp)
jmp    11bd <compute_full_gradient+0xad>
jmp    1216 <compute_full_gradient+0x106>
mov    -0x50(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x50(%rbp)
jmp    1174 <compute_full_gradient+0x64>
movq   $0x0,-0x60(%rbp)
mov    -0x60(%rbp),%rax
cmp    -0x30(%rbp),%rax
jge    129e <compute_full_gradient+0x18e>
mov    -0x20(%rbp),%rax
mov    -0x60(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
cvtsi2sdq -0x28(%rbp),%xmm1
divsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
mov    -0x60(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x38(%rbp),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x60(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x20(%rbp),%rax
mov    -0x60(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x60(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x60(%rbp)
jmp    122f <compute_full_gradient+0x11f>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<compute_full_gradient>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x78,%rsp
movapd %xmm0,0x60(%rsp)
mov    %r8,0x8(%rsp)
mov    %rcx,%rbx
mov    %rdx,0x58(%rsp)
mov    %rsi,%r8
mov    %rdi,(%rsp)
test   %r9,%r9
mov    %r9,0x10(%rsp)
jle    116f <compute_full_gradient+0x4f>
lea    0x0(,%r9,8),%rdx
mov    %rbx,%rdi
xor    %esi,%esi
mov    %r8,%rbp
call   1030 <memset@plt>
mov    %rbp,%r8
mov    0x10(%rsp),%r9
cmpq   $0x0,0x8(%rsp)
jle    13b9 <compute_full_gradient+0x299>
lea    (%rbx,%r9,8),%rax
mov    %rax,0x38(%rsp)
lea    -0x4(%r9),%rax
mov    %rax,0x30(%rsp)
mov    %rax,%rcx
shr    $0x2,%rcx
add    $0x1,%rcx
mov    %r9,%rax
and    $0xfffffffffffffffc,%rax
mov    %rax,0x20(%rsp)
mov    %rcx,%rax
mov    %rcx,0x28(%rsp)
and    $0xfffffffffffffffe,%rcx
mov    %rcx,0x18(%rsp)
mov    %r9,%rax
neg    %rax
mov    %rax,0x40(%rsp)
mov    (%rsp),%r15
lea    0x30(%r15),%r12
lea    0x0(,%r9,8),%rax
mov    %rax,0x48(%rsp)
xor    %ebp,%ebp
mov    %r8,0x50(%rsp)
jmp    11ff <compute_full_gradient+0xdf>
xchg   %ax,%ax
add    $0x1,%rbp
mov    0x48(%rsp),%rax
add    %rax,%r12
add    %rax,%r15
cmp    0x8(%rsp),%rbp
mov    0x50(%rsp),%r8
je     13b9 <compute_full_gradient+0x299>
mov    %rbp,%r14
imul   %r9,%r14
mov    (%rsp),%rax
lea    (%rax,%r14,8),%r13
mov    0x58(%rsp),%rax
movsd  (%rax,%rbp,8),%xmm0
mov    %r13,%rdi
mov    %r8,%rsi
mov    %r9,%rdx
call   1040 <compute_sigmoid@plt>
mov    0x10(%rsp),%r9
test   %r9,%r9
jle    11e0 <compute_full_gradient+0xc0>
cmp    $0x4,%r9
jb     1252 <compute_full_gradient+0x132>
lea    (%r14,%r9,1),%rax
mov    (%rsp),%rcx
lea    (%rcx,%rax,8),%rax
cmp    %rbx,%rax
jbe    12c9 <compute_full_gradient+0x1a9>
cmp    0x38(%rsp),%r13
jae    12c9 <compute_full_gradient+0x1a9>
xor    %ecx,%ecx
mov    %rcx,%rax
test   $0x1,%r9b
je     127f <compute_full_gradient+0x15f>
add    %rcx,%r14
mov    (%rsp),%rax
movsd  (%rax,%r14,8),%xmm1
mulsd  %xmm0,%xmm1
addsd  (%rbx,%rcx,8),%xmm1
movsd  %xmm1,(%rbx,%rcx,8)
mov    %rcx,%rax
or     $0x1,%rax
not    %rcx
cmp    0x40(%rsp),%rcx
je     11e0 <compute_full_gradient+0xc0>
nopl   (%rax)
movsd  (%r15,%rax,8),%xmm1
mulsd  %xmm0,%xmm1
addsd  (%rbx,%rax,8),%xmm1
movsd  %xmm1,(%rbx,%rax,8)
movsd  0x8(%r15,%rax,8),%xmm1
mulsd  %xmm0,%xmm1
addsd  0x8(%rbx,%rax,8),%xmm1
movsd  %xmm1,0x8(%rbx,%rax,8)
add    $0x2,%rax
cmp    %rax,%r9
jne    1290 <compute_full_gradient+0x170>
jmp    11e0 <compute_full_gradient+0xc0>
movapd %xmm0,%xmm1
unpcklpd %xmm0,%xmm1
cmpq   $0x4,0x30(%rsp)
jae    12e0 <compute_full_gradient+0x1c0>
xor    %eax,%eax
jmp    1363 <compute_full_gradient+0x243>
mov    0x18(%rsp),%rcx
xor    %eax,%eax
nopw   0x0(%rax,%rax,1)
movupd -0x30(%r12,%rax,8),%xmm2
movupd -0x20(%r12,%rax,8),%xmm3
mulpd  %xmm1,%xmm2
movupd (%rbx,%rax,8),%xmm4
addpd  %xmm2,%xmm4
movupd 0x10(%rbx,%rax,8),%xmm2
movupd 0x20(%rbx,%rax,8),%xmm5
movupd 0x30(%rbx,%rax,8),%xmm6
mulpd  %xmm1,%xmm3
addpd  %xmm2,%xmm3
movupd %xmm4,(%rbx,%rax,8)
movupd %xmm3,0x10(%rbx,%rax,8)
movupd -0x10(%r12,%rax,8),%xmm2
movupd (%r12,%rax,8),%xmm3
mulpd  %xmm1,%xmm2
addpd  %xmm5,%xmm2
mulpd  %xmm1,%xmm3
addpd  %xmm6,%xmm3
movupd %xmm2,0x20(%rbx,%rax,8)
movupd %xmm3,0x30(%rbx,%rax,8)
add    $0x8,%rax
add    $0xfffffffffffffffe,%rcx
jne    12f0 <compute_full_gradient+0x1d0>
testb  $0x1,0x28(%rsp)
je     13a3 <compute_full_gradient+0x283>
lea    (%rax,%r14,1),%rcx
mov    (%rsp),%rdx
movupd (%rdx,%rcx,8),%xmm2
movupd 0x10(%rdx,%rcx,8),%xmm3
movupd (%rbx,%rax,8),%xmm4
movupd 0x10(%rbx,%rax,8),%xmm5
mulpd  %xmm1,%xmm2
addpd  %xmm4,%xmm2
mulpd  %xmm1,%xmm3
addpd  %xmm5,%xmm3
movupd %xmm2,(%rbx,%rax,8)
movupd %xmm3,0x10(%rbx,%rax,8)
mov    0x20(%rsp),%rax
mov    %rax,%rcx
cmp    %r9,%rax
je     11e0 <compute_full_gradient+0xc0>
jmp    1254 <compute_full_gradient+0x134>
test   %r9,%r9
movapd 0x60(%rsp),%xmm6
jle    153f <compute_full_gradient+0x41f>
xorps  %xmm0,%xmm0
cvtsi2sdq 0x8(%rsp),%xmm0
cmp    $0x1,%r9
je     13f2 <compute_full_gradient+0x2d2>
lea    (%r8,%r9,8),%rax
cmp    %rbx,%rax
jbe    1484 <compute_full_gradient+0x364>
lea    (%rbx,%r9,8),%rax
cmp    %r8,%rax
jbe    1484 <compute_full_gradient+0x364>
xor    %eax,%eax
mov    %rax,%rcx
not    %rcx
test   $0x1,%r9b
je     1425 <compute_full_gradient+0x305>
movsd  (%rbx,%rax,8),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,(%rbx,%rax,8)
movsd  (%r8,%rax,8),%xmm2
mulsd  %xmm6,%xmm2
addsd  %xmm1,%xmm2
movsd  %xmm2,(%rbx,%rax,8)
or     $0x1,%rax
add    %r9,%rcx
je     153f <compute_full_gradient+0x41f>
xchg   %ax,%ax
movsd  (%rbx,%rax,8),%xmm1
movsd  0x8(%rbx,%rax,8),%xmm2
divsd  %xmm0,%xmm1
movsd  %xmm1,(%rbx,%rax,8)
movsd  (%r8,%rax,8),%xmm3
mulsd  %xmm6,%xmm3
addsd  %xmm1,%xmm3
movsd  %xmm3,(%rbx,%rax,8)
divsd  %xmm0,%xmm2
movsd  %xmm2,0x8(%rbx,%rax,8)
movsd  0x8(%r8,%rax,8),%xmm1
mulsd  %xmm6,%xmm1
addsd  %xmm2,%xmm1
movsd  %xmm1,0x8(%rbx,%rax,8)
add    $0x2,%rax
cmp    %rax,%r9
jne    1430 <compute_full_gradient+0x310>
jmp    153f <compute_full_gradient+0x41f>
mov    %r9,%rax
and    $0xfffffffffffffffe,%rax
movapd %xmm0,%xmm2
unpcklpd %xmm0,%xmm2
movapd %xmm6,%xmm1
unpcklpd %xmm6,%xmm1
lea    -0x2(%rax),%rcx
mov    %rcx,%rdx
shr    %rdx
add    $0x1,%rdx
test   %rcx,%rcx
je     154e <compute_full_gradient+0x42e>
mov    %rdx,%rsi
and    $0xfffffffffffffffe,%rsi
xor    %ecx,%ecx
nopl   0x0(%rax,%rax,1)
movupd (%rbx,%rcx,8),%xmm3
movupd 0x10(%rbx,%rcx,8),%xmm4
divpd  %xmm2,%xmm3
movupd %xmm3,(%rbx,%rcx,8)
movupd (%r8,%rcx,8),%xmm5
mulpd  %xmm1,%xmm5
addpd  %xmm3,%xmm5
movupd %xmm5,(%rbx,%rcx,8)
divpd  %xmm2,%xmm4
movupd %xmm4,0x10(%rbx,%rcx,8)
movupd 0x10(%r8,%rcx,8),%xmm3
mulpd  %xmm1,%xmm3
addpd  %xmm4,%xmm3
movupd %xmm3,0x10(%rbx,%rcx,8)
add    $0x4,%rcx
add    $0xfffffffffffffffe,%rsi
jne    14c0 <compute_full_gradient+0x3a0>
test   $0x1,%dl
je     1536 <compute_full_gradient+0x416>
movupd (%rbx,%rcx,8),%xmm3
divpd  %xmm2,%xmm3
movupd %xmm3,(%rbx,%rcx,8)
movupd (%r8,%rcx,8),%xmm2
mulpd  %xmm2,%xmm1
addpd  %xmm3,%xmm1
movupd %xmm1,(%rbx,%rcx,8)
cmp    %r9,%rax
jne    13f4 <compute_full_gradient+0x2d4>
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %ecx,%ecx
test   $0x1,%dl
jne    1515 <compute_full_gradient+0x3f5>
jmp    1536 <compute_full_gradient+0x416>

LLVM IR (-O0):
define void @compute_full_gradient(double* %0, double* %1, double* %2, double* %3, i64 %4, i64 %5, double %6) {
%8 = alloca double*
%9 = alloca double*
%10 = alloca double*
%11 = alloca double*
%12 = alloca i64
%13 = alloca i64
%14 = alloca double
%15 = alloca i64
%16 = alloca double
%17 = alloca i64
%18 = alloca i64
%19 = alloca i64
store double* %0, double** %8
store double* %1, double** %9
store double* %2, double** %10
store double* %3, double** %11
store i64 %4, i64* %12
store i64 %5, i64* %13
store double %6, double* %14
store i64 0, i64* %15
br label %20
20: ; preds = %28, %7
%21 = load i64, i64* %15
%22 = load i64, i64* %13
%23 = icmp slt i64 %21, %22
br i1 %23, label %24, label %31
24: ; preds = %20
%25 = load double*, double** %11
%26 = load i64, i64* %15
%27 = getelementptr inbounds double, double* %25, i64 %26
store double 0.000000e+00, double* %27
br label %28
28: ; preds = %24
%29 = load i64, i64* %15
%30 = add nsw i64 %29, 1
store i64 %30, i64* %15
br label %20
31: ; preds = %20
store i64 0, i64* %17
br label %32
32: ; preds = %72, %31
%33 = load i64, i64* %17
%34 = load i64, i64* %12
%35 = icmp slt i64 %33, %34
br i1 %35, label %36, label %75
36: ; preds = %32
%37 = load double*, double** %8
%38 = load i64, i64* %13
%39 = load i64, i64* %17
%40 = mul nsw i64 %38, %39
%41 = getelementptr inbounds double, double* %37, i64 %40
%42 = load double*, double** %9
%43 = load double*, double** %10
%44 = load i64, i64* %17
%45 = getelementptr inbounds double, double* %43, i64 %44
%46 = load double, double* %45
%47 = load i64, i64* %13
%48 = call double @compute_sigmoid(double* %41, double* %42, double %46, i64 %47)
store double %48, double* %16
store i64 0, i64* %18
br label %49
49: ; preds = %68, %36
%50 = load i64, i64* %18
%51 = load i64, i64* %13
%52 = icmp slt i64 %50, %51
br i1 %52, label %53, label %71
53: ; preds = %49
%54 = load double*, double** %8
%55 = load i64, i64* %13
%56 = load i64, i64* %17
%57 = mul nsw i64 %55, %56
%58 = load i64, i64* %18
%59 = add nsw i64 %57, %58
%60 = getelementptr inbounds double, double* %54, i64 %59
%61 = load double, double* %60
%62 = load double, double* %16
%63 = load double*, double** %11
%64 = load i64, i64* %18
%65 = getelementptr inbounds double, double* %63, i64 %64
%66 = load double, double* %65
%67 = call double @llvm.fmuladd.f64(double %61, double %62, double %66)
store double %67, double* %65
br label %68
68: ; preds = %53
%69 = load i64, i64* %18
%70 = add nsw i64 %69, 1
store i64 %70, i64* %18
br label %49
71: ; preds = %49
br label %72
72: ; preds = %71
%73 = load i64, i64* %17
%74 = add nsw i64 %73, 1
store i64 %74, i64* %17
br label %32
75: ; preds = %32
store i64 0, i64* %19
br label %76
76: ; preds = %101, %75
%77 = load i64, i64* %19
%78 = load i64, i64* %13
%79 = icmp slt i64 %77, %78
br i1 %79, label %80, label %104
80: ; preds = %76
%81 = load double*, double** %11
%82 = load i64, i64* %19
%83 = getelementptr inbounds double, double* %81, i64 %82
%84 = load double, double* %83
%85 = load i64, i64* %12
%86 = sitofp i64 %85 to double
%87 = fdiv double %84, %86
%88 = load double*, double** %11
%89 = load i64, i64* %19
%90 = getelementptr inbounds double, double* %88, i64 %89
store double %87, double* %90
%91 = load double, double* %14
%92 = load double*, double** %9
%93 = load i64, i64* %19
%94 = getelementptr inbounds double, double* %92, i64 %93
%95 = load double, double* %94
%96 = load double*, double** %11
%97 = load i64, i64* %19
%98 = getelementptr inbounds double, double* %96, i64 %97
%99 = load double, double* %98
%100 = call double @llvm.fmuladd.f64(double %91, double %95, double %99)
store double %100, double* %98
br label %101
101: ; preds = %80
%102 = load i64, i64* %19
%103 = add nsw i64 %102, 1
store i64 %103, i64* %19
br label %76
104: ; preds = %76
ret void
}

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