void g07(double *x, double *f, double *g, double *h, int nx, int nf, int ng,
         int nh) {
  f[0] = x[0] * x[0] + x[1] * x[1] + x[0] * x[1] - 14.0 * x[0] - 16.0 * x[1] +
         (x[2] - 10.0) * (x[2] - 10.0) + 4.0 * (x[3] - 5.0) * (x[3] - 5.0) +
         (x[4] - 3.0) * (x[4] - 3.0) + 2.0 * (x[5] - 1.0) * (x[5] - 1.0) +
         5.0 * x[6] * x[6] + 7.0 * (x[7] - 11) * (x[7] - 11) +
         2.0 * (x[8] - 10.0) * (x[8] - 10.0) + (x[9] - 7.0) * (x[9] - 7.0) +
         45.;
  g[0] = -105.0 + 4.0 * x[0] + 5.0 * x[1] - 3.0 * x[6] + 9.0 * x[7];
  g[1] = 10.0 * x[0] - 8.0 * x[1] - 17.0 * x[6] + 2.0 * x[7];
  g[2] = -8.0 * x[0] + 2.0 * x[1] + 5.0 * x[8] - 2.0 * x[9] - 12.0;
  g[3] = 3.0 * (x[0] - 2.0) * (x[0] - 2.0) + 4.0 * (x[1] - 3.0) * (x[1] - 3.0) +
         2.0 * x[2] * x[2] - 7.0 * x[3] - 120.0;
  g[4] = 5.0 * x[0] * x[0] + 8.0 * x[1] + (x[2] - 6.0) * (x[2] - 6.0) -
         2.0 * x[3] - 40.0;
  g[5] = x[0] * x[0] + 2.0 * (x[1] - 2.0) * (x[1] - 2.0) - 2.0 * x[0] * x[1] +
         14.0 * x[4] - 6.0 * x[5];
  g[6] = 0.5 * (x[0] - 8.0) * (x[0] - 8.0) + 2.0 * (x[1] - 4.0) * (x[1] - 4.0) +
         3.0 * x[4] * x[4] - x[5] - 30.0;
  g[7] = -3.0 * x[0] + 6.0 * x[1] + 12.0 * (x[8] - 8.0) * (x[8] - 8.0) -
         7.0 * x[9];
}


x86 assembly (clang, -O0):
<g07>:
push   %rbp
mov    %rsp,%rbp
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%eax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8d,-0x24(%rbp)
mov    %r9d,-0x28(%rbp)
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm1
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm2
mov    -0x8(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x8(%rbp),%rax
mulsd  0x8(%rax),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x8(%rbp),%rax
movsd  0x8(%rax),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm1
movsd  0xf53(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x8(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  0xf32(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movsd  0x10(%rax),%xmm1
movsd  0xee1(%rip),%xmm2
subsd  %xmm2,%xmm1
mov    -0x8(%rbp),%rax
movsd  0x10(%rax),%xmm2
movsd  0xecc(%rip),%xmm3
subsd  %xmm3,%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x8(%rbp),%rax
movsd  0x18(%rax),%xmm2
movsd  0xe8f(%rip),%xmm0
subsd  %xmm0,%xmm2
movsd  0xe53(%rip),%xmm0
mulsd  %xmm2,%xmm0
mov    -0x8(%rbp),%rax
movsd  0x18(%rax),%xmm2
movsd  0xe6e(%rip),%xmm3
subsd  %xmm3,%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movsd  0x20(%rax),%xmm1
movsd  0xe19(%rip),%xmm2
subsd  %xmm2,%xmm1
mov    -0x8(%rbp),%rax
movsd  0x20(%rax),%xmm2
movsd  0xe04(%rip),%xmm3
subsd  %xmm3,%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x8(%rbp),%rax
movsd  0x28(%rax),%xmm2
movsd  0xe6f(%rip),%xmm0
subsd  %xmm0,%xmm2
movsd  0xdeb(%rip),%xmm0
mulsd  %xmm2,%xmm0
mov    -0x8(%rbp),%rax
movsd  0x28(%rax),%xmm2
movsd  0xe4e(%rip),%xmm3
subsd  %xmm3,%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movsd  0xde6(%rip),%xmm1
mulsd  0x30(%rax),%xmm1
mov    -0x8(%rbp),%rax
movsd  0x30(%rax),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x8(%rbp),%rax
movsd  0x38(%rax),%xmm2
movsd  0xe07(%rip),%xmm0
subsd  %xmm0,%xmm2
movsd  0xdf3(%rip),%xmm0
mulsd  %xmm2,%xmm0
mov    -0x8(%rbp),%rax
movsd  0x38(%rax),%xmm2
movsd  0xde6(%rip),%xmm3
subsd  %xmm3,%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movsd  0x40(%rax),%xmm2
movsd  0xda1(%rip),%xmm1
subsd  %xmm1,%xmm2
movsd  0xd4d(%rip),%xmm1
mulsd  %xmm2,%xmm1
mov    -0x8(%rbp),%rax
movsd  0x40(%rax),%xmm2
movsd  0xd80(%rip),%xmm3
subsd  %xmm3,%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x8(%rbp),%rax
movsd  0x48(%rax),%xmm0
movsd  0xd83(%rip),%xmm2
subsd  %xmm2,%xmm0
mov    -0x8(%rbp),%rax
movsd  0x48(%rax),%xmm2
movsd  0xd6e(%rip),%xmm3
subsd  %xmm3,%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xd52(%rip),%xmm1
addsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm1
movsd  0xcce(%rip),%xmm0
mulsd  %xmm0,%xmm1
movsd  0xd22(%rip),%xmm0
addsd  %xmm0,%xmm1
mov    -0x8(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  0xcdd(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movsd  0x30(%rax),%xmm1
movsd  0xc74(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x8(%rbp),%rax
movsd  0x38(%rax),%xmm0
movsd  0xcd3(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x8(%rbp),%rax
movsd  0xc27(%rip),%xmm1
mulsd  0x8(%rax),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
movsd  0xc83(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movsd  0x30(%rax),%xmm1
movsd  0xc62(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x8(%rbp),%rax
movsd  0x38(%rax),%xmm0
addsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm1
mov    -0x8(%rbp),%rax
movsd  0xbec(%rip),%xmm0
mulsd  0x8(%rax),%xmm0
movsd  0xc17(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x8(%rbp),%rax
movsd  0x40(%rax),%xmm0
movsd  0xbee(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movsd  0x48(%rax),%xmm1
addsd  %xmm1,%xmm1
subsd  %xmm1,%xmm0
movsd  0xb75(%rip),%xmm1
subsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,0x10(%rax)
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm1
movsd  0xb88(%rip),%xmm0
subsd  %xmm0,%xmm1
movsd  0xb6c(%rip),%xmm0
mulsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm2
movsd  0xb68(%rip),%xmm1
subsd  %xmm1,%xmm2
mov    -0x8(%rbp),%rax
movsd  0x8(%rax),%xmm3
movsd  0xb43(%rip),%xmm1
subsd  %xmm1,%xmm3
movsd  0xb3f(%rip),%xmm1
mulsd  %xmm3,%xmm1
mov    -0x8(%rbp),%rax
movsd  0x8(%rax),%xmm3
movsd  0xb22(%rip),%xmm4
subsd  %xmm4,%xmm3
mulsd  %xmm3,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movsd  0xb16(%rip),%xmm1
mulsd  0x10(%rax),%xmm1
mov    -0x8(%rbp),%rax
movsd  0x10(%rax),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x8(%rbp),%rax
movsd  0x18(%rax),%xmm0
movsd  0xaaf(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xb0f(%rip),%xmm1
subsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,0x18(%rax)
mov    -0x8(%rbp),%rax
movsd  0xaee(%rip),%xmm1
mulsd  (%rax),%xmm1
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm2
mov    -0x8(%rbp),%rax
movsd  0xa76(%rip),%xmm0
mulsd  0x8(%rax),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x8(%rbp),%rax
movsd  0x10(%rax),%xmm0
movsd  0xa70(%rip),%xmm2
subsd  %xmm2,%xmm0
mov    -0x8(%rbp),%rax
movsd  0x10(%rax),%xmm2
movsd  0xa5b(%rip),%xmm3
subsd  %xmm3,%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movsd  0x18(%rax),%xmm1
addsd  %xmm1,%xmm1
subsd  %xmm1,%xmm0
movsd  0xa76(%rip),%xmm1
subsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,0x20(%rax)
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm1
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm2
mov    -0x8(%rbp),%rax
movsd  0x8(%rax),%xmm3
movsd  0xa28(%rip),%xmm0
subsd  %xmm0,%xmm3
movsd  0xa1c(%rip),%xmm0
mulsd  %xmm3,%xmm0
mov    -0x8(%rbp),%rax
movsd  0x8(%rax),%xmm3
movsd  0xa07(%rip),%xmm4
subsd  %xmm4,%xmm3
mulsd  %xmm3,%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x8(%rbp),%rax
movsd  0x9eb(%rip),%xmm0
mulsd  (%rax),%xmm0
mov    -0x8(%rbp),%rax
movsd  0x8(%rax),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movsd  0x20(%rax),%xmm1
movsd  0x9c6(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x8(%rbp),%rax
movsd  0x28(%rax),%xmm0
movsd  0x9a5(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,0x28(%rax)
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm0
movsd  0x93c(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  0x970(%rip),%xmm1
mulsd  %xmm0,%xmm1
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm2
movsd  0x91c(%rip),%xmm0
subsd  %xmm0,%xmm2
mov    -0x8(%rbp),%rax
movsd  0x8(%rax),%xmm3
movsd  0x937(%rip),%xmm0
subsd  %xmm0,%xmm3
movsd  0x933(%rip),%xmm0
mulsd  %xmm3,%xmm0
mov    -0x8(%rbp),%rax
movsd  0x8(%rax),%xmm3
movsd  0x916(%rip),%xmm4
subsd  %xmm4,%xmm3
mulsd  %xmm3,%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x8(%rbp),%rax
movsd  0x8f2(%rip),%xmm0
mulsd  0x20(%rax),%xmm0
mov    -0x8(%rbp),%rax
movsd  0x20(%rax),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
subsd  0x28(%rax),%xmm0
movsd  0x8c3(%rip),%xmm1
subsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,0x30(%rax)
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x8(%rbp),%rax
movsd  0x89a(%rip),%xmm1
mulsd  0x8(%rax),%xmm1
movsd  0x885(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movsd  0x40(%rax),%xmm2
movsd  0x85c(%rip),%xmm1
subsd  %xmm1,%xmm2
movsd  0x858(%rip),%xmm1
mulsd  %xmm2,%xmm1
mov    -0x8(%rbp),%rax
movsd  0x40(%rax),%xmm2
movsd  0x83b(%rip),%xmm3
subsd  %xmm3,%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x8(%rbp),%rax
movsd  0x48(%rax),%xmm0
movsd  0x816(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,0x38(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<g07>:
movsd  (%rdi),%xmm0
movsd  0x8(%rdi),%xmm2
movapd %xmm2,%xmm1
mulsd  %xmm2,%xmm1
movapd %xmm0,%xmm3
mulsd  %xmm0,%xmm3
addsd  %xmm1,%xmm3
movapd %xmm0,%xmm1
mulsd  %xmm2,%xmm1
addsd  %xmm3,%xmm1
mulsd  0xecf(%rip),%xmm0
addsd  %xmm1,%xmm0
mulsd  0xecb(%rip),%xmm2
addsd  %xmm0,%xmm2
movsd  0xec7(%rip),%xmm1
movsd  0x10(%rdi),%xmm0
addsd  %xmm1,%xmm0
mulsd  %xmm0,%xmm0
addsd  %xmm2,%xmm0
movsd  0x18(%rdi),%xmm2
addsd  0xeb1(%rip),%xmm2
movsd  0xeb1(%rip),%xmm4
movapd %xmm2,%xmm3
mulsd  %xmm4,%xmm3
mulsd  %xmm2,%xmm3
addsd  %xmm0,%xmm3
movsd  0xea0(%rip),%xmm9
movsd  0x20(%rdi),%xmm2
addsd  %xmm9,%xmm2
mulsd  %xmm2,%xmm2
addsd  %xmm3,%xmm2
movsd  0x28(%rdi),%xmm3
addsd  0xe89(%rip),%xmm3
movapd %xmm3,%xmm5
addsd  %xmm3,%xmm5
mulsd  %xmm3,%xmm5
addsd  %xmm2,%xmm5
movsd  0x30(%rdi),%xmm2
movsd  0xe74(%rip),%xmm3
movapd %xmm2,%xmm6
mulsd  %xmm3,%xmm6
mulsd  %xmm2,%xmm6
addsd  %xmm5,%xmm6
movsd  0x38(%rdi),%xmm2
addsd  0xe5f(%rip),%xmm2
movsd  0xe5f(%rip),%xmm5
mulsd  %xmm2,%xmm5
mulsd  %xmm2,%xmm5
addsd  0x40(%rdi),%xmm1
addsd  %xmm6,%xmm5
movapd %xmm1,%xmm2
addsd  %xmm1,%xmm2
mulsd  %xmm1,%xmm2
addsd  %xmm5,%xmm2
movsd  0xe3e(%rip),%xmm1
movsd  0x48(%rdi),%xmm5
addsd  %xmm1,%xmm5
mulsd  %xmm5,%xmm5
addsd  %xmm2,%xmm5
addsd  0xe2d(%rip),%xmm5
movsd  %xmm5,(%rsi)
movsd  (%rdi),%xmm2
mulsd  %xmm4,%xmm2
addsd  0xe21(%rip),%xmm2
movsd  0x8(%rdi),%xmm5
mulsd  %xmm3,%xmm5
addsd  %xmm2,%xmm5
movsd  0x30(%rdi),%xmm2
mulsd  %xmm9,%xmm2
addsd  %xmm5,%xmm2
movsd  0x38(%rdi),%xmm5
mulsd  0xe01(%rip),%xmm5
addsd  %xmm2,%xmm5
movsd  %xmm5,(%rdx)
movsd  0xdf9(%rip),%xmm2
movsd  0x8(%rdi),%xmm5
mulsd  %xmm2,%xmm5
movsd  (%rdi),%xmm6
movsd  0x30(%rdi),%xmm7
mulsd  0xde7(%rip),%xmm6
addsd  %xmm5,%xmm6
mulsd  0xde3(%rip),%xmm7
addsd  %xmm6,%xmm7
movsd  0x38(%rdi),%xmm5
addsd  %xmm5,%xmm5
addsd  %xmm7,%xmm5
movsd  %xmm5,0x8(%rdx)
movsd  0x8(%rdi),%xmm5
movsd  0x48(%rdi),%xmm6
addsd  %xmm5,%xmm5
movsd  (%rdi),%xmm7
mulsd  %xmm2,%xmm7
addsd  %xmm5,%xmm7
movsd  0x40(%rdi),%xmm5
mulsd  %xmm3,%xmm5
addsd  %xmm7,%xmm5
addsd  %xmm6,%xmm6
subsd  %xmm6,%xmm5
addsd  0xd9e(%rip),%xmm5
movsd  %xmm5,0x10(%rdx)
movsd  0xd98(%rip),%xmm8
movsd  (%rdi),%xmm6
addsd  %xmm8,%xmm6
movsd  0xd8f(%rip),%xmm5
movapd %xmm6,%xmm7
mulsd  %xmm5,%xmm7
movsd  0x8(%rdi),%xmm0
addsd  %xmm9,%xmm0
mulsd  %xmm0,%xmm4
mulsd  %xmm0,%xmm4
mulsd  %xmm6,%xmm7
addsd  %xmm4,%xmm7
movsd  0x10(%rdi),%xmm0
movapd %xmm0,%xmm4
addsd  %xmm0,%xmm4
mulsd  %xmm0,%xmm4
addsd  %xmm7,%xmm4
movsd  0x18(%rdi),%xmm0
mulsd  %xmm1,%xmm0
addsd  %xmm4,%xmm0
addsd  0xd4b(%rip),%xmm0
movsd  %xmm0,0x18(%rdx)
movsd  (%rdi),%xmm0
movsd  0x8(%rdi),%xmm4
mulsd  %xmm0,%xmm3
mulsd  0xd39(%rip),%xmm4
mulsd  %xmm0,%xmm3
addsd  %xmm4,%xmm3
movsd  0xd31(%rip),%xmm4
movsd  0x10(%rdi),%xmm0
addsd  %xmm4,%xmm0
mulsd  %xmm0,%xmm0
addsd  %xmm3,%xmm0
movsd  0x18(%rdi),%xmm3
addsd  %xmm3,%xmm3
subsd  %xmm3,%xmm0
addsd  0xd13(%rip),%xmm0
movsd  %xmm0,0x20(%rdx)
movsd  (%rdi),%xmm0
movsd  0x8(%rdi),%xmm3
movapd %xmm0,%xmm6
mulsd  %xmm8,%xmm0
mulsd  %xmm3,%xmm0
addsd  %xmm8,%xmm3
movapd %xmm3,%xmm7
addsd  %xmm3,%xmm7
mulsd  %xmm3,%xmm7
mulsd  %xmm6,%xmm6
addsd  %xmm7,%xmm6
addsd  %xmm6,%xmm0
movsd  0x20(%rdi),%xmm3
mulsd  0xcd6(%rip),%xmm3
mulsd  0x28(%rdi),%xmm4
addsd  %xmm0,%xmm3
addsd  %xmm3,%xmm4
movsd  %xmm4,0x28(%rdx)
movsd  (%rdi),%xmm0
addsd  %xmm2,%xmm0
movsd  0xcbc(%rip),%xmm3
mulsd  %xmm0,%xmm3
movsd  0x8(%rdi),%xmm4
movsd  0x20(%rdi),%xmm6
addsd  0xcae(%rip),%xmm4
movapd %xmm4,%xmm7
addsd  %xmm4,%xmm7
mulsd  %xmm4,%xmm7
mulsd  %xmm0,%xmm3
addsd  %xmm7,%xmm3
mulsd  %xmm6,%xmm5
mulsd  %xmm6,%xmm5
addsd  %xmm3,%xmm5
subsd  0x28(%rdi),%xmm5
addsd  0xc89(%rip),%xmm5
movsd  %xmm5,0x30(%rdx)
movsd  0x8(%rdi),%xmm0
mulsd  0xc7f(%rip),%xmm0
mulsd  (%rdi),%xmm9
addsd  %xmm0,%xmm9
addsd  0x40(%rdi),%xmm2
movsd  0xc70(%rip),%xmm0
mulsd  %xmm2,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm9,%xmm0
mulsd  0x48(%rdi),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,0x38(%rdx)
ret

LLVM IR (-O0):
define void @g07(double* %0, double* %1, double* %2, double* %3, i32 %4, i32 %5, i32 %6, i32 %7) {
%9 = alloca double*
%10 = alloca double*
%11 = alloca double*
%12 = alloca double*
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
store double* %0, double** %9
store double* %1, double** %10
store double* %2, double** %11
store double* %3, double** %12
store i32 %4, i32* %13
store i32 %5, i32* %14
store i32 %6, i32* %15
store i32 %7, i32* %16
%17 = load double*, double** %9
%18 = getelementptr inbounds double, double* %17, i64 0
%19 = load double, double* %18
%20 = load double*, double** %9
%21 = getelementptr inbounds double, double* %20, i64 0
%22 = load double, double* %21
%23 = load double*, double** %9
%24 = getelementptr inbounds double, double* %23, i64 1
%25 = load double, double* %24
%26 = load double*, double** %9
%27 = getelementptr inbounds double, double* %26, i64 1
%28 = load double, double* %27
%29 = fmul double %25, %28
%30 = call double @llvm.fmuladd.f64(double %19, double %22, double %29)
%31 = load double*, double** %9
%32 = getelementptr inbounds double, double* %31, i64 0
%33 = load double, double* %32
%34 = load double*, double** %9
%35 = getelementptr inbounds double, double* %34, i64 1
%36 = load double, double* %35
%37 = call double @llvm.fmuladd.f64(double %33, double %36, double %30)
%38 = load double*, double** %9
%39 = getelementptr inbounds double, double* %38, i64 0
%40 = load double, double* %39
%41 = call double @llvm.fmuladd.f64(double -1.400000e+01, double %40, double %37)
%42 = load double*, double** %9
%43 = getelementptr inbounds double, double* %42, i64 1
%44 = load double, double* %43
%45 = call double @llvm.fmuladd.f64(double -1.600000e+01, double %44, double %41)
%46 = load double*, double** %9
%47 = getelementptr inbounds double, double* %46, i64 2
%48 = load double, double* %47
%49 = fsub double %48, 1.000000e+01
%50 = load double*, double** %9
%51 = getelementptr inbounds double, double* %50, i64 2
%52 = load double, double* %51
%53 = fsub double %52, 1.000000e+01
%54 = call double @llvm.fmuladd.f64(double %49, double %53, double %45)
%55 = load double*, double** %9
%56 = getelementptr inbounds double, double* %55, i64 3
%57 = load double, double* %56
%58 = fsub double %57, 5.000000e+00
%59 = fmul double 4.000000e+00, %58
%60 = load double*, double** %9
%61 = getelementptr inbounds double, double* %60, i64 3
%62 = load double, double* %61
%63 = fsub double %62, 5.000000e+00
%64 = call double @llvm.fmuladd.f64(double %59, double %63, double %54)
%65 = load double*, double** %9
%66 = getelementptr inbounds double, double* %65, i64 4
%67 = load double, double* %66
%68 = fsub double %67, 3.000000e+00
%69 = load double*, double** %9
%70 = getelementptr inbounds double, double* %69, i64 4
%71 = load double, double* %70
%72 = fsub double %71, 3.000000e+00
%73 = call double @llvm.fmuladd.f64(double %68, double %72, double %64)
%74 = load double*, double** %9
%75 = getelementptr inbounds double, double* %74, i64 5
%76 = load double, double* %75
%77 = fsub double %76, 1.000000e+00
%78 = fmul double 2.000000e+00, %77
%79 = load double*, double** %9
%80 = getelementptr inbounds double, double* %79, i64 5
%81 = load double, double* %80
%82 = fsub double %81, 1.000000e+00
%83 = call double @llvm.fmuladd.f64(double %78, double %82, double %73)
%84 = load double*, double** %9
%85 = getelementptr inbounds double, double* %84, i64 6
%86 = load double, double* %85
%87 = fmul double 5.000000e+00, %86
%88 = load double*, double** %9
%89 = getelementptr inbounds double, double* %88, i64 6
%90 = load double, double* %89
%91 = call double @llvm.fmuladd.f64(double %87, double %90, double %83)
%92 = load double*, double** %9
%93 = getelementptr inbounds double, double* %92, i64 7
%94 = load double, double* %93
%95 = fsub double %94, 1.100000e+01
%96 = fmul double 7.000000e+00, %95
%97 = load double*, double** %9
%98 = getelementptr inbounds double, double* %97, i64 7
%99 = load double, double* %98
%100 = fsub double %99, 1.100000e+01
%101 = call double @llvm.fmuladd.f64(double %96, double %100, double %91)
%102 = load double*, double** %9
%103 = getelementptr inbounds double, double* %102, i64 8
%104 = load double, double* %103
%105 = fsub double %104, 1.000000e+01
%106 = fmul double 2.000000e+00, %105
%107 = load double*, double** %9
%108 = getelementptr inbounds double, double* %107, i64 8
%109 = load double, double* %108
%110 = fsub double %109, 1.000000e+01
%111 = call double @llvm.fmuladd.f64(double %106, double %110, double %101)
%112 = load double*, double** %9
%113 = getelementptr inbounds double, double* %112, i64 9
%114 = load double, double* %113
%115 = fsub double %114, 7.000000e+00
%116 = load double*, double** %9
%117 = getelementptr inbounds double, double* %116, i64 9
%118 = load double, double* %117
%119 = fsub double %118, 7.000000e+00
%120 = call double @llvm.fmuladd.f64(double %115, double %119, double %111)
%121 = fadd double %120, 4.500000e+01
%122 = load double*, double** %10
%123 = getelementptr inbounds double, double* %122, i64 0
store double %121, double* %123
%124 = load double*, double** %9
%125 = getelementptr inbounds double, double* %124, i64 0
%126 = load double, double* %125
%127 = call double @llvm.fmuladd.f64(double 4.000000e+00, double %126, double -1.050000e+02)
%128 = load double*, double** %9
%129 = getelementptr inbounds double, double* %128, i64 1
%130 = load double, double* %129
%131 = call double @llvm.fmuladd.f64(double 5.000000e+00, double %130, double %127)
%132 = load double*, double** %9
%133 = getelementptr inbounds double, double* %132, i64 6
%134 = load double, double* %133
%135 = call double @llvm.fmuladd.f64(double -3.000000e+00, double %134, double %131)
%136 = load double*, double** %9
%137 = getelementptr inbounds double, double* %136, i64 7
%138 = load double, double* %137
%139 = call double @llvm.fmuladd.f64(double 9.000000e+00, double %138, double %135)
%140 = load double*, double** %11
%141 = getelementptr inbounds double, double* %140, i64 0
store double %139, double* %141
%142 = load double*, double** %9
%143 = getelementptr inbounds double, double* %142, i64 0
%144 = load double, double* %143
%145 = load double*, double** %9
%146 = getelementptr inbounds double, double* %145, i64 1
%147 = load double, double* %146
%148 = fmul double 8.000000e+00, %147
%149 = fneg double %148
%150 = call double @llvm.fmuladd.f64(double 1.000000e+01, double %144, double %149)
%151 = load double*, double** %9
%152 = getelementptr inbounds double, double* %151, i64 6
%153 = load double, double* %152
%154 = call double @llvm.fmuladd.f64(double -1.700000e+01, double %153, double %150)
%155 = load double*, double** %9
%156 = getelementptr inbounds double, double* %155, i64 7
%157 = load double, double* %156
%158 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %157, double %154)
%159 = load double*, double** %11
%160 = getelementptr inbounds double, double* %159, i64 1
store double %158, double* %160
%161 = load double*, double** %9
%162 = getelementptr inbounds double, double* %161, i64 0
%163 = load double, double* %162
%164 = load double*, double** %9
%165 = getelementptr inbounds double, double* %164, i64 1
%166 = load double, double* %165
%167 = fmul double 2.000000e+00, %166
%168 = call double @llvm.fmuladd.f64(double -8.000000e+00, double %163, double %167)
%169 = load double*, double** %9
%170 = getelementptr inbounds double, double* %169, i64 8
%171 = load double, double* %170
%172 = call double @llvm.fmuladd.f64(double 5.000000e+00, double %171, double %168)
%173 = load double*, double** %9
%174 = getelementptr inbounds double, double* %173, i64 9
%175 = load double, double* %174
%176 = call double @llvm.fmuladd.f64(double -2.000000e+00, double %175, double %172)
%177 = fsub double %176, 1.200000e+01
%178 = load double*, double** %11
%179 = getelementptr inbounds double, double* %178, i64 2
store double %177, double* %179
%180 = load double*, double** %9
%181 = getelementptr inbounds double, double* %180, i64 0
%182 = load double, double* %181
%183 = fsub double %182, 2.000000e+00
%184 = fmul double 3.000000e+00, %183
%185 = load double*, double** %9
%186 = getelementptr inbounds double, double* %185, i64 0
%187 = load double, double* %186
%188 = fsub double %187, 2.000000e+00
%189 = load double*, double** %9
%190 = getelementptr inbounds double, double* %189, i64 1
%191 = load double, double* %190
%192 = fsub double %191, 3.000000e+00
%193 = fmul double 4.000000e+00, %192
%194 = load double*, double** %9
%195 = getelementptr inbounds double, double* %194, i64 1
%196 = load double, double* %195
%197 = fsub double %196, 3.000000e+00
%198 = fmul double %193, %197
%199 = call double @llvm.fmuladd.f64(double %184, double %188, double %198)
%200 = load double*, double** %9
%201 = getelementptr inbounds double, double* %200, i64 2
%202 = load double, double* %201
%203 = fmul double 2.000000e+00, %202
%204 = load double*, double** %9
%205 = getelementptr inbounds double, double* %204, i64 2
%206 = load double, double* %205
%207 = call double @llvm.fmuladd.f64(double %203, double %206, double %199)
%208 = load double*, double** %9
%209 = getelementptr inbounds double, double* %208, i64 3
%210 = load double, double* %209
%211 = call double @llvm.fmuladd.f64(double -7.000000e+00, double %210, double %207)
%212 = fsub double %211, 1.200000e+02
%213 = load double*, double** %11
%214 = getelementptr inbounds double, double* %213, i64 3
store double %212, double* %214
%215 = load double*, double** %9
%216 = getelementptr inbounds double, double* %215, i64 0
%217 = load double, double* %216
%218 = fmul double 5.000000e+00, %217
%219 = load double*, double** %9
%220 = getelementptr inbounds double, double* %219, i64 0
%221 = load double, double* %220
%222 = load double*, double** %9
%223 = getelementptr inbounds double, double* %222, i64 1
%224 = load double, double* %223
%225 = fmul double 8.000000e+00, %224
%226 = call double @llvm.fmuladd.f64(double %218, double %221, double %225)
%227 = load double*, double** %9
%228 = getelementptr inbounds double, double* %227, i64 2
%229 = load double, double* %228
%230 = fsub double %229, 6.000000e+00
%231 = load double*, double** %9
%232 = getelementptr inbounds double, double* %231, i64 2
%233 = load double, double* %232
%234 = fsub double %233, 6.000000e+00
%235 = call double @llvm.fmuladd.f64(double %230, double %234, double %226)
%236 = load double*, double** %9
%237 = getelementptr inbounds double, double* %236, i64 3
%238 = load double, double* %237
%239 = call double @llvm.fmuladd.f64(double -2.000000e+00, double %238, double %235)
%240 = fsub double %239, 4.000000e+01
%241 = load double*, double** %11
%242 = getelementptr inbounds double, double* %241, i64 4
store double %240, double* %242
%243 = load double*, double** %9
%244 = getelementptr inbounds double, double* %243, i64 0
%245 = load double, double* %244
%246 = load double*, double** %9
%247 = getelementptr inbounds double, double* %246, i64 0
%248 = load double, double* %247
%249 = load double*, double** %9
%250 = getelementptr inbounds double, double* %249, i64 1
%251 = load double, double* %250
%252 = fsub double %251, 2.000000e+00
%253 = fmul double 2.000000e+00, %252
%254 = load double*, double** %9
%255 = getelementptr inbounds double, double* %254, i64 1
%256 = load double, double* %255
%257 = fsub double %256, 2.000000e+00
%258 = fmul double %253, %257
%259 = call double @llvm.fmuladd.f64(double %245, double %248, double %258)
%260 = load double*, double** %9
%261 = getelementptr inbounds double, double* %260, i64 0
%262 = load double, double* %261
%263 = fmul double 2.000000e+00, %262
%264 = load double*, double** %9
%265 = getelementptr inbounds double, double* %264, i64 1
%266 = load double, double* %265
%267 = fneg double %263
%268 = call double @llvm.fmuladd.f64(double %267, double %266, double %259)
%269 = load double*, double** %9
%270 = getelementptr inbounds double, double* %269, i64 4
%271 = load double, double* %270
%272 = call double @llvm.fmuladd.f64(double 1.400000e+01, double %271, double %268)
%273 = load double*, double** %9
%274 = getelementptr inbounds double, double* %273, i64 5
%275 = load double, double* %274
%276 = call double @llvm.fmuladd.f64(double -6.000000e+00, double %275, double %272)
%277 = load double*, double** %11
%278 = getelementptr inbounds double, double* %277, i64 5
store double %276, double* %278
%279 = load double*, double** %9
%280 = getelementptr inbounds double, double* %279, i64 0
%281 = load double, double* %280
%282 = fsub double %281, 8.000000e+00
%283 = fmul double 5.000000e-01, %282
%284 = load double*, double** %9
%285 = getelementptr inbounds double, double* %284, i64 0
%286 = load double, double* %285
%287 = fsub double %286, 8.000000e+00
%288 = load double*, double** %9
%289 = getelementptr inbounds double, double* %288, i64 1
%290 = load double, double* %289
%291 = fsub double %290, 4.000000e+00
%292 = fmul double 2.000000e+00, %291
%293 = load double*, double** %9
%294 = getelementptr inbounds double, double* %293, i64 1
%295 = load double, double* %294
%296 = fsub double %295, 4.000000e+00
%297 = fmul double %292, %296
%298 = call double @llvm.fmuladd.f64(double %283, double %287, double %297)
%299 = load double*, double** %9
%300 = getelementptr inbounds double, double* %299, i64 4
%301 = load double, double* %300
%302 = fmul double 3.000000e+00, %301
%303 = load double*, double** %9
%304 = getelementptr inbounds double, double* %303, i64 4
%305 = load double, double* %304
%306 = call double @llvm.fmuladd.f64(double %302, double %305, double %298)
%307 = load double*, double** %9
%308 = getelementptr inbounds double, double* %307, i64 5
%309 = load double, double* %308
%310 = fsub double %306, %309
%311 = fsub double %310, 3.000000e+01
%312 = load double*, double** %11
%313 = getelementptr inbounds double, double* %312, i64 6
store double %311, double* %313
%314 = load double*, double** %9
%315 = getelementptr inbounds double, double* %314, i64 0
%316 = load double, double* %315
%317 = load double*, double** %9
%318 = getelementptr inbounds double, double* %317, i64 1
%319 = load double, double* %318
%320 = fmul double 6.000000e+00, %319
%321 = call double @llvm.fmuladd.f64(double -3.000000e+00, double %316, double %320)
%322 = load double*, double** %9
%323 = getelementptr inbounds double, double* %322, i64 8
%324 = load double, double* %323
%325 = fsub double %324, 8.000000e+00
%326 = fmul double 1.200000e+01, %325
%327 = load double*, double** %9
%328 = getelementptr inbounds double, double* %327, i64 8
%329 = load double, double* %328
%330 = fsub double %329, 8.000000e+00
%331 = call double @llvm.fmuladd.f64(double %326, double %330, double %321)
%332 = load double*, double** %9
%333 = getelementptr inbounds double, double* %332, i64 9
%334 = load double, double* %333
%335 = call double @llvm.fmuladd.f64(double -7.000000e+00, double %334, double %331)
%336 = load double*, double** %11
%337 = getelementptr inbounds double, double* %336, i64 7
store double %335, double* %337
ret void
}

LLVM IR (-O2):
define void @g07(double* nocapture %0, double* nocapture writeonly %1, double* nocapture writeonly %2, double* nocapture readnone %3, i32 %4, i32 %5, i32 %6, i32 %7) {
%9 = load double, double* %0
%10 = getelementptr inbounds double, double* %0, i64 1
%11 = load double, double* %10
%12 = fmul double %11, %11
%13 = tail call double @llvm.fmuladd.f64(double %9, double %9, double %12)
%14 = tail call double @llvm.fmuladd.f64(double %9, double %11, double %13)
%15 = tail call double @llvm.fmuladd.f64(double %9, double -1.400000e+01, double %14)
%16 = tail call double @llvm.fmuladd.f64(double %11, double -1.600000e+01, double %15)
%17 = getelementptr inbounds double, double* %0, i64 2
%18 = load double, double* %17
%19 = fadd double %18, -1.000000e+01
%20 = tail call double @llvm.fmuladd.f64(double %19, double %19, double %16)
%21 = getelementptr inbounds double, double* %0, i64 3
%22 = load double, double* %21
%23 = fadd double %22, -5.000000e+00
%24 = fmul double %23, 4.000000e+00
%25 = tail call double @llvm.fmuladd.f64(double %24, double %23, double %20)
%26 = getelementptr inbounds double, double* %0, i64 4
%27 = load double, double* %26
%28 = fadd double %27, -3.000000e+00
%29 = tail call double @llvm.fmuladd.f64(double %28, double %28, double %25)
%30 = getelementptr inbounds double, double* %0, i64 5
%31 = load double, double* %30
%32 = fadd double %31, -1.000000e+00
%33 = fmul double %32, 2.000000e+00
%34 = tail call double @llvm.fmuladd.f64(double %33, double %32, double %29)
%35 = getelementptr inbounds double, double* %0, i64 6
%36 = load double, double* %35
%37 = fmul double %36, 5.000000e+00
%38 = tail call double @llvm.fmuladd.f64(double %37, double %36, double %34)
%39 = getelementptr inbounds double, double* %0, i64 7
%40 = load double, double* %39
%41 = fadd double %40, -1.100000e+01
%42 = fmul double %41, 7.000000e+00
%43 = tail call double @llvm.fmuladd.f64(double %42, double %41, double %38)
%44 = getelementptr inbounds double, double* %0, i64 8
%45 = load double, double* %44
%46 = fadd double %45, -1.000000e+01
%47 = fmul double %46, 2.000000e+00
%48 = tail call double @llvm.fmuladd.f64(double %47, double %46, double %43)
%49 = getelementptr inbounds double, double* %0, i64 9
%50 = load double, double* %49
%51 = fadd double %50, -7.000000e+00
%52 = tail call double @llvm.fmuladd.f64(double %51, double %51, double %48)
%53 = fadd double %52, 4.500000e+01
store double %53, double* %1
%54 = load double, double* %0
%55 = tail call double @llvm.fmuladd.f64(double %54, double 4.000000e+00, double -1.050000e+02)
%56 = load double, double* %10
%57 = tail call double @llvm.fmuladd.f64(double %56, double 5.000000e+00, double %55)
%58 = load double, double* %35
%59 = tail call double @llvm.fmuladd.f64(double %58, double -3.000000e+00, double %57)
%60 = load double, double* %39
%61 = tail call double @llvm.fmuladd.f64(double %60, double 9.000000e+00, double %59)
store double %61, double* %2
%62 = load double, double* %0
%63 = load double, double* %10
%64 = fmul double %63, -8.000000e+00
%65 = tail call double @llvm.fmuladd.f64(double %62, double 1.000000e+01, double %64)
%66 = load double, double* %35
%67 = tail call double @llvm.fmuladd.f64(double %66, double -1.700000e+01, double %65)
%68 = load double, double* %39
%69 = tail call double @llvm.fmuladd.f64(double %68, double 2.000000e+00, double %67)
%70 = getelementptr inbounds double, double* %2, i64 1
store double %69, double* %70
%71 = load double, double* %0
%72 = load double, double* %10
%73 = fmul double %72, 2.000000e+00
%74 = tail call double @llvm.fmuladd.f64(double %71, double -8.000000e+00, double %73)
%75 = load double, double* %44
%76 = tail call double @llvm.fmuladd.f64(double %75, double 5.000000e+00, double %74)
%77 = load double, double* %49
%78 = tail call double @llvm.fmuladd.f64(double %77, double -2.000000e+00, double %76)
%79 = fadd double %78, -1.200000e+01
%80 = getelementptr inbounds double, double* %2, i64 2
store double %79, double* %80
%81 = load double, double* %0
%82 = fadd double %81, -2.000000e+00
%83 = fmul double %82, 3.000000e+00
%84 = load double, double* %10
%85 = fadd double %84, -3.000000e+00
%86 = fmul double %85, 4.000000e+00
%87 = fmul double %85, %86
%88 = tail call double @llvm.fmuladd.f64(double %83, double %82, double %87)
%89 = load double, double* %17
%90 = fmul double %89, 2.000000e+00
%91 = tail call double @llvm.fmuladd.f64(double %90, double %89, double %88)
%92 = load double, double* %21
%93 = tail call double @llvm.fmuladd.f64(double %92, double -7.000000e+00, double %91)
%94 = fadd double %93, -1.200000e+02
%95 = getelementptr inbounds double, double* %2, i64 3
store double %94, double* %95
%96 = load double, double* %0
%97 = fmul double %96, 5.000000e+00
%98 = load double, double* %10
%99 = fmul double %98, 8.000000e+00
%100 = tail call double @llvm.fmuladd.f64(double %97, double %96, double %99)
%101 = load double, double* %17
%102 = fadd double %101, -6.000000e+00
%103 = tail call double @llvm.fmuladd.f64(double %102, double %102, double %100)
%104 = load double, double* %21
%105 = tail call double @llvm.fmuladd.f64(double %104, double -2.000000e+00, double %103)
%106 = fadd double %105, -4.000000e+01
%107 = getelementptr inbounds double, double* %2, i64 4
store double %106, double* %107
%108 = load double, double* %0
%109 = load double, double* %10
%110 = fadd double %109, -2.000000e+00
%111 = fmul double %110, 2.000000e+00
%112 = fmul double %110, %111
%113 = tail call double @llvm.fmuladd.f64(double %108, double %108, double %112)
%114 = fmul double %108, -2.000000e+00
%115 = tail call double @llvm.fmuladd.f64(double %114, double %109, double %113)
%116 = load double, double* %26
%117 = tail call double @llvm.fmuladd.f64(double %116, double 1.400000e+01, double %115)
%118 = load double, double* %30
%119 = tail call double @llvm.fmuladd.f64(double %118, double -6.000000e+00, double %117)
%120 = getelementptr inbounds double, double* %2, i64 5
store double %119, double* %120
%121 = load double, double* %0
%122 = fadd double %121, -8.000000e+00
%123 = fmul double %122, 5.000000e-01
%124 = load double, double* %10
%125 = fadd double %124, -4.000000e+00
%126 = fmul double %125, 2.000000e+00
%127 = fmul double %125, %126
%128 = tail call double @llvm.fmuladd.f64(double %123, double %122, double %127)
%129 = load double, double* %26
%130 = fmul double %129, 3.000000e+00
%131 = tail call double @llvm.fmuladd.f64(double %130, double %129, double %128)
%132 = load double, double* %30
%133 = fsub double %131, %132
%134 = fadd double %133, -3.000000e+01
%135 = getelementptr inbounds double, double* %2, i64 6
store double %134, double* %135
%136 = load double, double* %0
%137 = load double, double* %10
%138 = fmul double %137, 6.000000e+00
%139 = tail call double @llvm.fmuladd.f64(double %136, double -3.000000e+00, double %138)
%140 = load double, double* %44
%141 = fadd double %140, -8.000000e+00
%142 = fmul double %141, 1.200000e+01
%143 = tail call double @llvm.fmuladd.f64(double %142, double %141, double %139)
%144 = load double, double* %49
%145 = tail call double @llvm.fmuladd.f64(double %144, double -7.000000e+00, double %143)
%146 = getelementptr inbounds double, double* %2, i64 7
store double %145, double* %146
ret void
}