user: 请将以下的汇编代码转换成C语言代码：

```asm
<housev>:
  endbr64
  push   %r15
  mov    %ecx,%r15d
  push   %r14
  push   %r13
  push   %r12
  mov    %rdx,%r12
  push   %rbp
  mov    %rsi,%rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0xc8,%rsp
  mov    %rdi,0x10(%rsp)
  mov    %ecx,%edi
  mov    %rsi,0x98(%rsp)
  mov    $0x8,%esi
  mov    %rdx,0xb0(%rsp)
  mov    %ecx,0xb8(%rsp)
  call   <calloc@plt>
  movslq %r15d,%rdi
  mov    %rax,%r14
  lea    0x8(,%rdi,8),%r9
  lea    -0x2(%rdi),%eax
  mov    %rdi,0x70(%rsp)
  mov    %eax,0xbc(%rsp)
  mov    %r9,0x28(%rsp)
  test   %eax,%eax
  jle    L228
  lea    -0x1(%rdi),%eax
  mov    %rdi,%rcx
  lea    0x8(%rbx),%r11
  mov    %rbx,%r15
  mov    %eax,0x8(%rsp)
  mov    $0x8,%eax
  sub    %r14,%r15
  pxor   %xmm3,%xmm3
  mov    %rax,%rdi
  sub    %r14,%rax
  movsd  D22(%rip),%xmm7
  mov    %ecx,0x58(%rsp)
  sub    %r9,%rdi
  lea    (%rbx,%rax,1),%r13
  lea    -0x8(%r9),%rax
  mov    %rdi,0x78(%rsp)
  mov    %rbx,%rdi
  neg    %rdi
  mov    %rax,0x68(%rsp)
  lea    0x0(%rbp,%r14,1),%rax
  mov    %r11,%rbp
  mov    %rdi,0x38(%rsp)
  mov    %r14,%rdi
  neg    %rdi
  mov    %rax,0x80(%rsp)
  lea    (%r12,%r14,1),%rax
  mov    %rdi,0xa8(%rsp)
  mov    %rdi,0x48(%rsp)
  mov    %rax,0x88(%rsp)
  movsd  %xmm7,0x40(%rsp)
  nopw   0x0(%rax,%rax,1)
L57:
  mov    0x68(%rsp),%rax
  lea    -0x8(%rbp),%rbx
  lea    (%rax,%rbp,1),%r12
  mov    0x8(%rsp),%eax
  test   %eax,%eax
  jle    L45
  cmpl   $0x2,0x58(%rsp)
  je     L417
  shr    %eax
  movapd %xmm3,%xmm1
  lea    -0x1(%rax),%edx
  lea    0x18(%r14,%r15,1),%rax
  shl    $0x4,%rdx
  add    %rax,%rdx
  mov    %rbp,%rax
  nopl   0x0(%rax)
L86:
  movupd (%rax),%xmm0
  add    $0x10,%rax
  mulpd  %xmm0,%xmm0
  addsd  %xmm0,%xmm1
  unpckhpd %xmm0,%xmm0
  addsd  %xmm0,%xmm1
  cmp    %rdx,%rax
  jne    L86
  mov    0x8(%rsp),%edi
  mov    %edi,%eax
  or     $0x1,%eax
  and    $0x1,%edi
  je     L258
L320:
  cltq
  movsd  (%rbx,%rax,8),%xmm0
  mulsd  %xmm0,%xmm0
  addsd  %xmm0,%xmm1
L258:
  comisd %xmm3,%xmm1
  ja     L22
  mov    0x8(%rsp),%eax
L62:
  sub    $0x1,%eax
  mov    %eax,0x5c(%rsp)
  mov    0x28(%rsp),%rax
  add    %rbp,%rax
  mov    %rax,0x50(%rsp)
L434:
  mov    0x48(%rsp),%rax
  movsd  -0x8(%rbp),%xmm0
  mov    0x80(%rsp),%rbx
  mov    0x78(%rsp),%rsi
  add    %rsi,0x38(%rsp)
  mov    0x28(%rsp),%rsi
  movsd  %xmm0,(%rbx,%rax,1)
  mov    0x88(%rsp),%rbx
  mov    0x50(%rsp),%rbp
  subl   $0x1,0x58(%rsp)
  add    %rsi,%r15
  add    %rsi,%r13
  movsd  %xmm1,(%rbx,%rax,1)
  mov    0x5c(%rsp),%ebx
  add    $0x8,%rax
  mov    %rax,0x48(%rsp)
  mov    %ebx,0x8(%rsp)
  cmp    $0x1,%ebx
  jne    L57
  mov    0xb8(%rsp),%eax
  mov    0x98(%rsp),%rbx
  sub    $0x3,%eax
  add    $0x1,%rax
  imul   %rsi,%rax
  add    %rax,0x10(%rsp)
  movslq 0xbc(%rsp),%rax
  shl    $0x3,%rax
  add    %rax,0xb0(%rsp)
  lea    (%rbx,%rax,1),%rdx
  add    $0x8,%rax
L427:
  mov    0x10(%rsp),%rbx
  mov    0xb0(%rsp),%rsi
  mov    %r14,%rdi
  movsd  (%rbx),%xmm0
  movsd  %xmm0,(%rdx)
  movsd  0x8(%rbx),%xmm0
  add    0x28(%rsp),%rbx
  movsd  %xmm0,(%rsi)
  mov    0x98(%rsp),%rsi
  movsd  (%rbx),%xmm0
  movsd  %xmm0,(%rsi,%rax,1)
  call   <free@plt>
  mov    0xb8(%rsp),%eax
  add    %eax,%eax
  test   %eax,%eax
  jle    L140
  mov    %eax,%edx
  sub    $0x1,%eax
  xor    %esi,%esi
  neg    %rax
  shl    $0x3,%rdx
  lea    (%rbx,%rax,8),%rdi
  call   <memset@plt>
L140:
  movsd  0x40(%rsp),%xmm3
  mov    0x10(%rsp),%rdi
  movsd  %xmm3,(%rbx)
  mov    0x28(%rsp),%rbx
  movsd  %xmm3,(%rdi)
  mov    %rbx,%rax
  neg    %rax
  mov    %rax,0x30(%rsp)
  mov    $0x8,%eax
  sub    %rbx,%rax
  add    %rax,%rdi
  cmpl   $0x2,0xb8(%rsp)
  mov    %rax,0x38(%rsp)
  mov    %rdi,%rbp
  jle    L102
  mov    0x70(%rsp),%rax
  add    $0x8,%rbp
  mov    $0x2,%ebx
  pxor   %xmm3,%xmm3
  neg    %rax
  shl    $0x3,%rax
  lea    0x10(%rdi,%rax,1),%r12
  neg    %rax
  mov    %rax,0x20(%rsp)
  mov    %r12,0x8(%rsp)
  mov    0x68(%rsp),%r12
  nopl   0x0(%rax,%rax,1)
L197:
  mov    %ebx,%r11d
  mov    0x10(%rsp),%rdx
  movsd  0x40(%rsp),%xmm7
  mov    %ebx,%edi
  and    $0xfffffffe,%r11d
  lea    -0x8(%rbp),%rcx
  shr    %edi
  mov    %ebx,%r13d
  mov    %r11d,%r14d
  movsd  %xmm7,(%rdx)
  mov    %ebx,%r15d
  shl    $0x4,%rdi
  shl    $0x3,%r14
  xor    %r10d,%r10d
  movslq %r11d,%r8
  lea    (%rcx,%r14,1),%r9
  nopl   0x0(%rax)
L313:
  xor    %eax,%eax
  movapd %xmm3,%xmm0
  cs nopw 0x0(%rax,%rax,1)
L328:
  movupd (%rdx,%rax,1),%xmm2
  movupd (%rcx,%rax,1),%xmm6
  add    $0x10,%rax
  mulpd  %xmm6,%xmm2
  addsd  %xmm2,%xmm0
  unpckhpd %xmm2,%xmm2
  addsd  %xmm2,%xmm0
  cmp    %rdi,%rax
  jne    L328
  lea    (%rdx,%r14,1),%rsi
  cmp    %r13d,%r11d
  je     L351
  movsd  (%rcx,%r8,8),%xmm1
  mulsd  (%rsi),%xmm1
  addsd  %xmm1,%xmm0
L351:
  addsd  %xmm0,%xmm0
  cmp    %rbp,%rdx
  je     L234
  movapd %xmm0,%xmm4
  xor    %eax,%eax
  unpcklpd %xmm4,%xmm4
  nopl   0x0(%rax)
L406:
  movupd (%rcx,%rax,1),%xmm2
  movupd (%rdx,%rax,1),%xmm1
  mulpd  %xmm4,%xmm2
  subpd  %xmm2,%xmm1
  movups %xmm1,(%rdx,%rax,1)
  add    $0x10,%rax
  cmp    %rax,%rdi
  jne    L406
  cmp    %r13d,%r11d
  je     L29
  mulsd  (%r9),%xmm0
  movsd  (%rsi),%xmm1
  subsd  %xmm0,%xmm1
  movsd  %xmm1,(%rsi)
L29:
  add    $0x1,%r10d
  add    %r12,%rdx
  cmp    %r10d,%r15d
  jne    L313
  mov    0x8(%rsp),%r14
  mov    0x20(%rsp),%rdx
  xor    %esi,%esi
  add    $0x1,%rbx
  movsd  %xmm3,0x18(%rsp)
  mov    %r14,%rdi
  call   <memset@plt>
  mov    0x30(%rsp),%rdi
  add    %rdi,0x10(%rsp)
  movsd  0x40(%rsp),%xmm7
  mov    0x10(%rsp),%rax
  sub    0x28(%rsp),%rbp
  movsd  0x18(%rsp),%xmm3
  movsd  %xmm7,(%rax)
  mov    0x38(%rsp),%rax
  add    %rax,%r14
  cmp    0x70(%rsp),%rbx
  mov    %r14,0x8(%rsp)
  jne    L197
L102:
  add    $0xc8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L234:
  xor    %eax,%eax
  nopw   0x0(%rax,%rax,1)
L286:
  movsd  (%rcx,%rax,8),%xmm2
  movsd  (%rdx,%rax,8),%xmm1
  mulsd  %xmm0,%xmm2
  subsd  %xmm2,%xmm1
  movsd  %xmm1,(%rdx,%rax,8)
  add    $0x1,%rax
  cmp    %rax,%rbx
  jne    L286
  jmp    L29
L22:
  cvttsd2si %xmm1,%edi
  movsd  %xmm3,0x18(%rsp)
  call   <sqrt@plt>
  movsd  0x18(%rsp),%xmm3
  movsd  0x0(%rbp),%xmm4
  pxor   %xmm1,%xmm1
  cvtsi2sd %eax,%xmm1
  comisd %xmm4,%xmm3
  movsd  %xmm3,0x30(%rsp)
  ja     L41
  movapd %xmm1,%xmm0
  addsd  %xmm1,%xmm4
  movsd  %xmm1,0x20(%rsp)
  addsd  %xmm1,%xmm0
  movsd  %xmm4,0x18(%rsp)
  mulsd  %xmm4,%xmm0
  cvttsd2si %xmm0,%edi
  call   <sqrt@plt>
  pxor   %xmm0,%xmm0
  movsd  0x40(%rsp),%xmm2
  movsd  0x20(%rsp),%xmm1
  cvtsi2sd %eax,%xmm0
  xorpd  D25(%rip),%xmm1
  movsd  0x30(%rsp),%xmm3
  movsd  0x18(%rsp),%xmm4
  divsd  %xmm0,%xmm2
L354:
  mov    0x8(%rsp),%ecx
  mov    %r14,%rdx
  lea    -0x1(%rcx),%eax
  mov    %eax,0x5c(%rsp)
  mov    %rax,0x90(%rsp)
  xor    %eax,%eax
  nopl   0x0(%rax,%rax,1)
L380:
  movq   $0x0,(%rdx)
  test   %rax,%rax
  je     L394
  movsd  0x8(%rbx,%rax,8),%xmm0
  add    $0x8,%rdx
  mulsd  %xmm2,%xmm0
  movsd  %xmm0,0x8(%rbx,%rax,8)
  add    $0x1,%rax
  cmp    %rcx,%rax
  jne    L380
L218:
  mov    0x28(%rsp),%rsi
  movsd  0x0(%rbp),%xmm2
  movapd %xmm3,%xmm5
  cmpl   $0x1,0x8(%rsp)
  movsd  -0x8(%rbp,%rsi,1),%xmm0
  lea    (%rsi,%rbp,1),%rax
  mov    %rax,0x50(%rsp)
  mov    %rax,%r9
  mulsd  %xmm2,%xmm0
  addsd  (%r14),%xmm0
  movsd  %xmm0,(%r14)
  je     L263
  mov    0x8(%rsp),%eax
  mov    %rbp,0x30(%rsp)
  lea    0x10(%r14),%rdi
  mov    %r14,%r10
  mov    %r14,0x18(%rsp)
  mov    0x48(%rsp),%r14
  mov    $0x2,%r8d
  movapd %xmm3,%xmm5
  lea    0x1(%rax),%esi
  mov    %r12,0x20(%rsp)
  lea    -0x2(%rax),%r11d
  mov    %r13,0x60(%rsp)
  mov    %rsi,%r12
  mov    %eax,%r13d
  nopl   0x0(%rax)
L339:
  movsd  (%rbx,%r8,8),%xmm4
  mulsd  (%r9),%xmm4
  mov    %r10,%rcx
  lea    0x8(%r9),%rax
  lea    -0x1(%r11),%ebp
  addsd  %xmm4,%xmm0
  movsd  %xmm0,(%r10)
  movsd  (%r9),%xmm0
  lea    -0x8(%rdi),%r10
  mulsd  %xmm2,%xmm0
  addsd  -0x8(%rdi),%xmm0
  movsd  %xmm0,-0x8(%rdi)
  cmp    %r8d,%r13d
  jle    L337
  lea    -0x1(%r11),%edx
  mov    %rdx,%rbp
  lea    0x10(%r9,%rdx,8),%rsi
  mov    %rdi,%rdx
  nopw   0x0(%rax,%rax,1)
L363:
  movsd  0x8(%r15,%rdx,1),%xmm0
  mulsd  (%rax),%xmm0
  add    $0x8,%rax
  add    $0x8,%rdx
  addsd  (%rcx),%xmm0
  movsd  %xmm0,(%rcx)
  movsd  -0x8(%rax),%xmm0
  mulsd  %xmm2,%xmm0
  addsd  -0x8(%rdx),%xmm0
  movsd  %xmm0,-0x8(%rdx)
  cmp    %rsi,%rax
  jne    L363
L337:
  mulsd  (%rcx),%xmm2
  lea    (%rdi,%r14,1),%rax
  add    $0x8,%rdi
  lea    0x8(%rax,%r11,8),%rax
  mov    %ebp,%r11d
  add    %r9,%rax
  movsd  (%rax),%xmm0
  lea    0x8(%rax),%r9
  addsd  %xmm2,%xmm5
  movsd  (%rbx,%r8,8),%xmm2
  add    $0x1,%r8
  mulsd  %xmm2,%xmm0
  addsd  (%r10),%xmm0
  movsd  %xmm0,(%r10)
  cmp    %r12,%r8
  jne    L339
  mov    0x18(%rsp),%r14
  mov    0x20(%rsp),%r12
  mov    0x30(%rsp),%rbp
  mov    0x60(%rsp),%r13
L263:
  mulsd  %xmm2,%xmm0
  cmpl   $0x2,0x58(%rsp)
  lea    0x8(%rbp),%rcx
  addsd  %xmm5,%xmm0
  je     L345
  cmp    %rcx,%r14
  je     L345
  mov    0x8(%rsp),%eax
  movapd %xmm0,%xmm5
  unpcklpd %xmm5,%xmm5
  shr    %eax
  sub    $0x1,%eax
  shl    $0x4,%rax
  lea    0x10(%r14,%rax,1),%rdx
  mov    %r14,%rax
L429:
  movupd 0x8(%r15,%rax,1),%xmm4
  movupd (%rax),%xmm2
  add    $0x10,%rax
  mulpd  %xmm5,%xmm4
  subpd  %xmm4,%xmm2
  addpd  %xmm2,%xmm2
  movups %xmm2,-0x10(%rax)
  cmp    %rax,%rdx
  jne    L429
  mov    0x8(%rsp),%esi
  mov    %esi,%eax
  and    $0xfffffffe,%eax
  and    $0x1,%esi
  je     L207
  mulsd  0x0(%rbp,%rax,8),%xmm0
  lea    (%r14,%rax,8),%rdx
  movsd  (%rdx),%xmm2
  subsd  %xmm0,%xmm2
  addsd  %xmm2,%xmm2
  movsd  %xmm2,(%rdx)
L207:
  mov    0x58(%rsp),%r9d
  mov    %r14,%rdx
  xor    %r11d,%r11d
  xor    %edi,%edi
  mov    0xa8(%rsp),%rax
  mov    %rbx,0x90(%rsp)
  lea    -0x2(%r9),%esi
  mov    %r15,0xa0(%rsp)
  mov    %esi,0x60(%rsp)
  mov    %rax,%r15
  nopl   0x0(%rax)
L255:
  mov    %edi,0x30(%rsp)
  mov    %r9d,%esi
  add    $0x1,%edi
  mov    $0x8,%ebx
  sub    %edi,%esi
  mov    %r11d,0x18(%rsp)
  mov    %esi,%eax
  shl    $0x3,%rax
  cmp    %edi,%r9d
  cmovle %rbx,%rax
  sub    %r15,%rbx
  add    %r12,%rax
  cmp    %edi,%r9d
  setg   %r10b
  cmp    %rcx,%r12
  setne  %r8b
  and    %r8d,%r10d
  mov    %r9d,%r8d
  sub    %r11d,%r8d
  cmp    $0x2,%r8d
  setne  %r8b
  and    %r10d,%r8d
  cmp    %r12,%rbx
  setne  %r10b
  and    %r10d,%r8d
  lea    -0x8(%rcx),%r10
  cmp    %r10,%rax
  setbe  %r10b
  cmp    %rcx,%r12
  setae  0x20(%rsp)
  or     0x20(%rsp),%r10b
  test   %r10b,%r8b
  je     L142
  cmp    %r12,%rbx
  setbe  %r8b
  cmp    %rax,%rdx
  setae  %al
  or     %r8b,%al
  je     L142
  cmp    %edi,%r9d
  mov    $0x1,%eax
  movsd  (%rdx),%xmm4
  lea    (%r12,%r15,1),%r8
  cmovle %eax,%esi
  movsd  -0x8(%rcx),%xmm5
  unpcklpd %xmm4,%xmm4
  mov    %esi,%eax
  unpcklpd %xmm5,%xmm5
  shr    %eax
  sub    $0x1,%eax
  shl    $0x4,%rax
  lea    0x10(%rdx,%rax,1),%r10
  mov    %rdx,%rax
  nop
L315:
  movupd (%rax),%xmm0
  movupd 0x0(%r13,%rax,1),%xmm2
  mulpd  %xmm5,%xmm0
  mulpd  %xmm4,%xmm2
  addpd  %xmm2,%xmm0
  movupd (%r8,%rax,1),%xmm2
  subpd  %xmm0,%xmm2
  movups %xmm2,(%r8,%rax,1)
  add    $0x10,%rax
  cmp    %rax,%r10
  jne    L315
  mov    %esi,%r10d
  mov    0x30(%rsp),%eax
  and    $0xfffffffe,%r10d
  mov    %r10d,%r8d
  add    %r10d,%eax
  lea    (%r12,%r8,8),%r8
  cmp    %r10d,%esi
  je     L213
  cltq
  movsd  (%r14,%rax,8),%xmm0
  movsd  0x0(%rbp,%rax,8),%xmm2
  mulsd  -0x8(%rcx),%xmm0
  mulsd  (%rdx),%xmm2
  addsd  %xmm2,%xmm0
  movsd  (%r8),%xmm2
  subsd  %xmm0,%xmm2
  movsd  %xmm2,(%r8)
L213:
  mov    0x60(%rsp),%eax
  sub    0x18(%rsp),%eax
  add    $0x1,%r11
  add    $0x8,%rdx
  mov    0x38(%rsp),%rbx
  sub    $0x8,%r15
  lea    (%rcx,%rbx,1),%rsi
  add    $0x8,%rcx
  lea    0x8(%rsi,%rax,8),%rax
  add    %rax,%r12
  cmp    0x8(%rsp),%edi
  jne    L255
  mov    0xa0(%rsp),%r15
  jmp    L434
L394:
  movapd %xmm4,%xmm0
  add    $0x8,%rdx
  mulsd  %xmm2,%xmm0
  movsd  %xmm0,0x8(%rbx,%rax,8)
  mov    $0x1,%eax
  cmp    %rcx,%rax
  jne    L380
  jmp    L218
L142:
  mov    0x8(%rsp),%r8d
  mov    0x90(%rsp),%r10
  mov    %r11,%rsi
  mov    %r12,%rax
  nopw   0x0(%rax,%rax,1)
L117:
  add    $0x8,%rax
  movsd  (%rdx),%xmm2
  mulsd  0x8(%r10,%rsi,8),%xmm2
  mov    %rax,%rbx
  add    $0x1,%rsi
  sub    %r12,%rbx
  movsd  -0x8(%rbx,%rdx,1),%xmm0
  mulsd  -0x8(%rcx),%xmm0
  addsd  %xmm2,%xmm0
  movsd  -0x8(%rax),%xmm2
  subsd  %xmm0,%xmm2
  movsd  %xmm2,-0x8(%rax)
  cmp    %esi,%r8d
  jg     L117
  jmp    L213
L45:
  movapd %xmm3,%xmm1
  jmp    L62
L41:
  movsd  D15(%rip),%xmm0
  subsd  %xmm1,%xmm4
  movsd  %xmm1,0x20(%rsp)
  mulsd  %xmm1,%xmm0
  movsd  %xmm4,0x18(%rsp)
  mulsd  %xmm4,%xmm0
  cvttsd2si %xmm0,%edi
  call   <sqrt@plt>
  pxor   %xmm0,%xmm0
  movsd  0x40(%rsp),%xmm2
  movsd  0x18(%rsp),%xmm4
  cvtsi2sd %eax,%xmm0
  movsd  0x20(%rsp),%xmm1
  movsd  0x30(%rsp),%xmm3
  divsd  %xmm0,%xmm2
  jmp    L354
L417:
  mov    $0x1,%eax
  movapd %xmm3,%xmm1
  jmp    L320
L345:
  mov    0x90(%rsp),%rax
  lea    0x8(%r14,%rax,8),%rdx
  mov    %r14,%rax
L281:
  movsd  0x8(%r15,%rax,1),%xmm4
  movsd  (%rax),%xmm2
  add    $0x8,%rax
  mulsd  %xmm0,%xmm4
  subsd  %xmm4,%xmm2
  addsd  %xmm2,%xmm2
  movsd  %xmm2,-0x8(%rax)
  cmp    %rdx,%rax
  jne    L281
  jmp    L207
L228:
  movsd  D22(%rip),%xmm3
  mov    %r9,%rbx
  mov    $0x8,%eax
  mov    0x98(%rsp),%rdx
  sub    $0x8,%rbx
  mov    %rbx,0x68(%rsp)
  movsd  %xmm3,0x40(%rsp)
  jmp    L427
```

tool_calls: name: read_data
arguments: data_tag: D22
type_infered: f64
name: read_data
arguments: data_tag: D25
type_infered: f32[4]
name: read_data
arguments: data_tag: D15
type_infered: f32[2]

tool: D22: 1

tool: {"D25": [0.0,-0.0,0.0,0.0]}

tool: {"D15": [0.0,-2.0]}

assistant: ```c
void housev(double *a, double *d, double *dp, int n) {
  double sc, x, y, h;
  int i, j, k, m, e;
  double *qw, *qs, *pc, *p;
  qs = (double *)calloc(n, sizeof(double));
  for (j = 0, pc = a; j < n - 2; ++j, pc += n + 1) {
    m = n - j - 1;
    for (i = 1, sc = 0.; i <= m; ++i)
      sc += pc[i] * pc[i];
    if (sc > 0.) {
      sc = sqrt(sc);
      if ((x = *(pc + 1)) < 0.) {
        y = x - sc;
        h = 1. / sqrt(-2. * sc * y);
      } else {
        y = x + sc;
        h = 1. / sqrt(2. * sc * y);
        sc = -sc;
      }
      for (i = 0, qw = pc + 1; i < m; ++i) {
        qs[i] = 0.;
        if (i)
          qw[i] *= h;
        else
          qw[i] = y * h;
      }
      for (i = 0, e = j + 2, p = pc + n + 1, h = 0.; i < m; ++i, p += e++) {
        qs[i] += (y = qw[i]) * *p++;
        for (k = i + 1; k < m; ++k) {
          qs[i] += qw[k] * *p;
          qs[k] += y * *p++;
        }
        h += y * qs[i];
      }
      for (i = 0; i < m; ++i) {
        qs[i] -= h * qw[i];
        qs[i] += qs[i];
      }
      for (i = 0, e = j + 2, p = pc + n + 1; i < m; ++i, p += e++) {
        for (k = i; k < m; ++k)
          *p++ -= qw[i] * qs[k] + qs[i] * qw[k];
      }
    }
    d[j] = *pc;
    dp[j] = sc;
  }
  d[j] = *pc;
  dp[j] = *(pc + 1);
  d[j + 1] = *(pc += n + 1);
  free(qs);
  for (i = 0, m = n + n, p = pc; i < m; ++i)
    *p-- = 0.;
  *pc = 1.;
  *(pc -= n + 1) = 1.;
  qw = pc - n;
  for (m = 2; m < n; ++m, qw -= n + 1) {
    for (j = 0, p = pc, *pc = 1.; j < m; ++j, p += n) {
      for (i = 0, qs = p, h = 0.; i < m;)
        h += qw[i++] * *qs++;
      for (i = 0, qs = p, h += h; i < m;)
        *qs++ -= h * qw[i++];
    }
    for (i = 0, p = qw + m; i < n; ++i)
      *(--p) = 0.;
    *(pc -= n + 1) = 1.;
  }
}
```