user: 提供的汇编代码用C语言表示会是什么样子:

```asm
<particleFilter>:
  endbr64
  mov    %edx,%eax
  push   %r15
  imul   %esi,%eax
  push   %r14
  mov    %edx,%r14d
  push   %r13
  push   %r12
  push   %rbp
  imul   %ecx,%eax
  push   %rbx
  mov    %esi,%ebx
  sub    $0x148,%rsp
  mov    %eax,0x14(%rsp)
  xor    %eax,%eax
  mov    %edx,0x28(%rsp)
  mov    %ecx,0x10(%rsp)
  mov    %r8,0xc8(%rsp)
  mov    %r9d,0x2c(%rsp)
  mov    %rdi,0xb0(%rsp)
  call   <get_time@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %r14d,%xmm0
  mulsd  D336(%rip),%xmm0
  movslq %eax,%rbp
  mov    $0x1,%eax
  movsd  %xmm0,0xe8(%rsp)
  call   <roundDouble@plt>
  pxor   %xmm0,%xmm0
  pxor   %xmm2,%xmm2
  cvtsi2sd %ebx,%xmm0
  mulsd  D336(%rip),%xmm0
  cvtsi2sd %eax,%xmm2
  mov    $0x1,%eax
  movsd  %xmm2,0x18(%rsp)
  movsd  %xmm0,0xf0(%rsp)
  call   <roundDouble@plt>
  pxor   %xmm1,%xmm1
  mov    $0x144,%edi
  cvtsi2sd %eax,%xmm1
  movsd  %xmm1,0x8(%rsp)
  call   <malloc@plt>
  mov    $0x5,%esi
  mov    %rax,%rbx
  mov    %rax,0x138(%rsp)
  mov    %rax,%rdi
  xor    %eax,%eax
  call   <strelDisk@plt>
  movsd  0x18(%rsp),%xmm2
  mov    %rbx,%rax
  xor    %edx,%edx
  movsd  0x8(%rsp),%xmm1
  lea    0x144(%rbx),%rcx
  nopl   0x0(%rax)
L152:
  xor    %esi,%esi
  cmpl   $0x1,(%rax)
  sete   %sil
  add    %esi,%edx
  xor    %esi,%esi
  cmpl   $0x1,0x4(%rax)
  sete   %sil
  add    %esi,%edx
  xor    %esi,%esi
  cmpl   $0x1,0x8(%rax)
  sete   %sil
  add    %esi,%edx
  xor    %esi,%esi
  cmpl   $0x1,0xc(%rax)
  sete   %sil
  add    %esi,%edx
  xor    %esi,%esi
  cmpl   $0x1,0x10(%rax)
  sete   %sil
  add    %esi,%edx
  xor    %esi,%esi
  cmpl   $0x1,0x14(%rax)
  sete   %sil
  add    %esi,%edx
  xor    %esi,%esi
  cmpl   $0x1,0x18(%rax)
  sete   %sil
  add    %esi,%edx
  xor    %esi,%esi
  cmpl   $0x1,0x1c(%rax)
  sete   %sil
  add    %esi,%edx
  xor    %esi,%esi
  cmpl   $0x1,0x20(%rax)
  sete   %sil
  add    $0x24,%rax
  add    %esi,%edx
  cmp    %rcx,%rax
  jne    L152
  lea    (%rdx,%rdx,1),%edi
  movsd  %xmm2,0x18(%rsp)
  mov    %edx,%ebx
  movslq %edi,%rdi
  movsd  %xmm1,0x8(%rsp)
  shl    $0x3,%rdi
  mov    %edx,0xb8(%rsp)
  call   <malloc@plt>
  mov    0x138(%rsp),%rdi
  mov    $0x5,%ecx
  mov    %ebx,%esi
  mov    %rax,%rdx
  mov    %rax,0xa0(%rsp)
  xor    %eax,%eax
  call   <getneighbors@plt>
  xor    %eax,%eax
  call   <get_time@plt>
  mov    %rbp,%rdi
  movslq %eax,%r13
  xor    %eax,%eax
  mov    %r13,%rsi
  call   <elapsed_time@plt>
  lea    D486(%rip),%rdi
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  movslq 0x2c(%rsp),%rbx
  lea    0x0(,%rbx,8),%rbp
  mov    %rbp,%rdi
  call   <malloc@plt>
  mov    %rax,0x20(%rsp)
  xor    %eax,%eax
  call   <current_time_ns@plt>
  test   %ebx,%ebx
  movsd  0x8(%rsp),%xmm1
  movsd  0x18(%rsp),%xmm2
  movslq %eax,%r12
  jle    L172
  mov    0x2c(%rsp),%edx
  pxor   %xmm3,%xmm3
  movsd  D441(%rip),%xmm0
  cvtsi2sd %edx,%xmm3
  divsd  %xmm3,%xmm0
  cmp    $0x1,%edx
  je     L572
  mov    0x20(%rsp),%rcx
  shr    %edx
  movapd %xmm0,%xmm3
  shl    $0x4,%rdx
  unpcklpd %xmm3,%xmm3
  mov    %rcx,%rax
  add    %rcx,%rdx
L223:
  movups %xmm3,(%rax)
  add    $0x10,%rax
  cmp    %rax,%rdx
  jne    L223
  mov    0x2c(%rsp),%edx
  mov    %edx,%eax
  and    $0xfffffffe,%eax
  and    $0x1,%edx
  je     L172
L216:
  mov    0x20(%rsp),%rdx
  cltq
  movsd  %xmm0,(%rdx,%rax,8)
L172:
  xor    %eax,%eax
  movsd  %xmm1,0x18(%rsp)
  movsd  %xmm2,0x8(%rsp)
  call   <current_time_ns@plt>
  lea    D402(%rip),%rdi
  movslq %eax,%rsi
  xor    %eax,%eax
  sub    %r12,%rsi
  call   <printf@plt>
  xor    %eax,%eax
  call   <get_time@plt>
  mov    %r13,%rdi
  movslq %eax,%r12
  xor    %eax,%eax
  mov    %r12,%rsi
  call   <elapsed_time@plt>
  lea    D353(%rip),%rdi
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %rbp,%rdi
  call   <malloc@plt>
  mov    %rbp,%rdi
  mov    %rax,0xc0(%rsp)
  call   <malloc@plt>
  mov    %rbp,%rdi
  mov    %rax,0x30(%rsp)
  call   <malloc@plt>
  mov    %rbp,%rdi
  mov    %rax,0x38(%rsp)
  call   <malloc@plt>
  mov    %rbp,%rdi
  mov    %rax,0x70(%rsp)
  call   <malloc@plt>
  mov    %rbp,%rdi
  mov    %rax,0x78(%rsp)
  call   <malloc@plt>
  mov    %rbp,%rdi
  mov    %rax,0x68(%rsp)
  call   <malloc@plt>
  movslq 0xb8(%rsp),%rdi
  mov    %rax,0x60(%rsp)
  imul   %rbx,%rdi
  shl    $0x2,%rdi
  call   <malloc@plt>
  mov    %rax,0x88(%rsp)
  xor    %eax,%eax
  call   <current_time_ns@plt>
  mov    0x2c(%rsp),%ecx
  movsd  0x8(%rsp),%xmm2
  movsd  0x18(%rsp),%xmm1
  movslq %eax,%rbx
  test   %ecx,%ecx
  jle    L86
  mov    0x2c(%rsp),%eax
  cmp    $0x1,%eax
  je     L381
  shr    %eax
  movapd %xmm2,%xmm3
  movapd %xmm1,%xmm0
  mov    0x30(%rsp),%rcx
  mov    %eax,%edx
  mov    0x38(%rsp),%rsi
  unpcklpd %xmm3,%xmm3
  unpcklpd %xmm0,%xmm0
  shl    $0x4,%rdx
  xor    %eax,%eax
L260:
  movups %xmm3,(%rcx,%rax,1)
  movups %xmm0,(%rsi,%rax,1)
  add    $0x10,%rax
  cmp    %rax,%rdx
  jne    L260
  mov    0x2c(%rsp),%edx
  mov    %edx,%eax
  and    $0xfffffffe,%eax
  and    $0x1,%edx
  je     L86
L302:
  mov    0x30(%rsp),%rdi
  mov    0x38(%rsp),%rdx
  cltq
  movsd  %xmm2,(%rdi,%rax,8)
  movsd  %xmm1,(%rdx,%rax,8)
L86:
  xor    %eax,%eax
  call   <current_time_ns@plt>
  lea    D153(%rip),%rdi
  movslq %eax,%rsi
  xor    %eax,%eax
  sub    %rbx,%rsi
  call   <printf@plt>
  xor    %eax,%eax
  call   <get_time@plt>
  mov    %r12,%rdi
  mov    %eax,%esi
  xor    %eax,%eax
  call   <elapsed_time@plt>
  lea    D368(%rip),%rdi
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  cmpl   $0x1,0x10(%rsp)
  jle    L549
  mov    0x2c(%rsp),%ecx
  mov    0x20(%rsp),%rdi
  mov    $0x1,%r14d
  lea    -0x1(%rcx),%eax
  mov    %ecx,%ebx
  lea    0x8(,%rax,8),%rdx
  mov    %eax,0x114(%rsp)
  mov    %rax,0xf8(%rsp)
  mov    0xc0(%rsp),%rax
  add    %rdx,%rax
  mov    %rax,0x90(%rsp)
  mov    0xb8(%rsp),%eax
  sub    $0x1,%eax
  mov    %rax,0xa8(%rsp)
  add    $0x1,%rax
  shl    $0x4,%rax
  add    0xa0(%rsp),%rax
  mov    %rax,0x18(%rsp)
  lea    (%rdi,%rdx,1),%rax
  mov    %rax,0x108(%rsp)
  mov    %ecx,%eax
  shr    %eax
  sub    $0x1,%eax
  add    $0x1,%rax
  shl    $0x4,%rax
  mov    %rax,0x130(%rsp)
  add    %rdi,%rax
  mov    %rax,0xe0(%rsp)
  mov    %ecx,%eax
  and    $0xfffffffe,%ecx
  test   %ebx,%ebx
  mov    %ecx,0xbc(%rsp)
  mov    %ebx,%ecx
  mov    $0x1,%ebx
  cmovg  %eax,%ebx
  mov    %ebx,%eax
  mov    %ebx,0x110(%rsp)
  shr    $0x2,%eax
  sub    $0x1,%eax
  add    $0x1,%rax
  shl    $0x5,%rax
  add    0x60(%rsp),%rax
  mov    %rax,0x118(%rsp)
  mov    %ebx,%eax
  and    $0xfffffffc,%eax
  test   %ecx,%ecx
  mov    %eax,0x128(%rsp)
  mov    $0x8,%eax
  cmovg  %rdx,%rax
  mov    %rax,0x100(%rsp)
  mov    %ebx,%eax
  and    $0xfffffffe,%ebx
  shr    %eax
  mov    %ebx,0x12c(%rsp)
  sub    $0x1,%eax
  add    $0x1,%rax
  shl    $0x4,%rax
  add    %rdi,%rax
  mov    %rax,0x120(%rsp)
  nopl   0x0(%rax)
L431:
  xor    %eax,%eax
  call   <get_time@plt>
  movslq %eax,%rbp
  xor    %eax,%eax
  call   <current_time_ns@plt>
  mov    0x2c(%rsp),%edx
  movslq %eax,%rbx
  test   %edx,%edx
  jle    L560
  xor    %r12d,%r12d
  mov    %r14d,0x48(%rsp)
  mov    0x30(%rsp),%r13
  mov    %rbp,0x8(%rsp)
  mov    0x38(%rsp),%r15
  mov    %r12,%rbp
  mov    %rbx,0x40(%rsp)
  mov    0xc8(%rsp),%r12
  mov    0xf8(%rsp),%rbx
  nop
L547:
  mov    %ebp,%esi
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <randn@plt>
  pxor   %xmm0,%xmm0
  mov    %ebp,%esi
  mov    %r12,%rdi
  lea    0x1(%rax,%rax,4),%eax
  cvtsi2sd %eax,%xmm0
  addsd  0x0(%r13,%rbp,8),%xmm0
  xor    %eax,%eax
  movsd  %xmm0,0x0(%r13,%rbp,8)
  call   <randn@plt>
  pxor   %xmm0,%xmm0
  lea    -0x2(%rax,%rax,1),%eax
  cvtsi2sd %eax,%xmm0
  addsd  (%r15,%rbp,8),%xmm0
  mov    %rbp,%rax
  movsd  %xmm0,(%r15,%rbp,8)
  add    $0x1,%rbp
  cmp    %rax,%rbx
  jne    L547
  xor    %eax,%eax
  mov    0x40(%rsp),%rbx
  mov    0x8(%rsp),%rbp
  mov    0x48(%rsp),%r14d
  call   <current_time_ns@plt>
  lea    D359(%rip),%rdi
  movslq %eax,%rsi
  xor    %eax,%eax
  sub    %rbx,%rsi
  call   <printf@plt>
  xor    %eax,%eax
  call   <get_time@plt>
  mov    %rbp,%rdi
  cltq
  mov    %rax,%rsi
  mov    %rax,0xd0(%rsp)
  xor    %eax,%eax
  call   <elapsed_time@plt>
  lea    D95(%rip),%rdi
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  xor    %eax,%eax
  call   <current_time_ns@plt>
  pxor   %xmm7,%xmm7
  mov    0x38(%rsp),%rbx
  movl   $0x0,0x48(%rsp)
  cvtsi2sdl 0xb8(%rsp),%xmm7
  cltq
  mov    %rax,0xd8(%rsp)
  mov    0x30(%rsp),%rax
  mov    %rax,0x50(%rsp)
  mov    0xc0(%rsp),%rax
  movsd  %xmm7,0x80(%rsp)
  mov    %rax,0x40(%rsp)
  mov    0x88(%rsp),%rax
  add    $0x4,%rax
  mov    %rax,0x98(%rsp)
  nopl   (%rax)
L414:
  mov    0xb8(%rsp),%eax
  pxor   %xmm2,%xmm2
  test   %eax,%eax
  je     L545
  mov    0x50(%rsp),%rax
  mov    0x88(%rsp),%rcx
  mov    0xa0(%rsp),%r13
  movsd  (%rax),%xmm5
  movslq 0x48(%rsp),%rax
  mov    %rax,0x58(%rsp)
  lea    (%rcx,%rax,4),%rbp
  movsd  %xmm5,0x8(%rsp)
  mov    %rbp,%r15
  nopl   0x0(%rax,%rax,1)
L93:
  movsd  0x8(%rsp),%xmm0
  mov    $0x1,%eax
  call   <roundDouble@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  addsd  0x8(%r13),%xmm0
  mov    $0x1,%eax
  cvttsd2si %xmm0,%r12d
  movsd  (%rbx),%xmm0
  call   <roundDouble@plt>
  pxor   %xmm0,%xmm0
  imul   0x28(%rsp),%r12d
  cvtsi2sd %eax,%xmm0
  addsd  0x0(%r13),%xmm0
  cvttsd2si %xmm0,%eax
  pxor   %xmm0,%xmm0
  add    %r12d,%eax
  imul   0x10(%rsp),%eax
  add    %r14d,%eax
  cvtsi2sd %eax,%xmm0
  andpd  D351(%rip),%xmm0
  cvttsd2si %xmm0,%eax
  cmp    0x14(%rsp),%eax
  jl     L60
  movl   $0x0,(%r15)
  add    $0x10,%r13
  add    $0x4,%r15
  cmp    %r13,0x18(%rsp)
  jne    L93
L92:
  mov    0x98(%rsp),%rdi
  mov    0x58(%rsp),%rax
  pxor   %xmm2,%xmm2
  add    0xa8(%rsp),%rax
  mov    0xb0(%rsp),%rcx
  lea    (%rdi,%rax,4),%rsi
  nopl   0x0(%rax)
L568:
  movslq 0x0(%rbp),%rax
  pxor   %xmm0,%xmm0
  pxor   %xmm1,%xmm1
  add    $0x4,%rbp
  mov    (%rcx,%rax,4),%eax
  lea    -0x64(%rax),%edx
  sub    $0xe4,%eax
  cvtsi2sd %edx,%xmm0
  cvtsi2sd %eax,%xmm1
  mulsd  %xmm0,%xmm0
  mulsd  %xmm1,%xmm1
  subsd  %xmm1,%xmm0
  divsd  D37(%rip),%xmm0
  addsd  %xmm0,%xmm2
  cmp    %rbp,%rsi
  jne    L568
L545:
  mov    0x40(%rsp),%rax
  addq   $0x8,0x50(%rsp)
  add    $0x8,%rbx
  divsd  0x80(%rsp),%xmm2
  mov    0xb8(%rsp),%edi
  add    %edi,0x48(%rsp)
  movsd  %xmm2,(%rax)
  add    $0x8,%rax
  mov    %rax,0x40(%rsp)
  cmp    0x90(%rsp),%rax
  jne    L414
  xor    %eax,%eax
  call   <current_time_ns@plt>
  lea    D52(%rip),%rdi
  movslq %eax,%rsi
  xor    %eax,%eax
  sub    0xd8(%rsp),%rsi
  call   <printf@plt>
  xor    %eax,%eax
  call   <get_time@plt>
  mov    0xd0(%rsp),%rdi
  movslq %eax,%r12
  xor    %eax,%eax
  mov    %r12,%rsi
  call   <elapsed_time@plt>
  lea    D388(%rip),%rdi
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  xor    %eax,%eax
  call   <current_time_ns@plt>
  mov    0xc0(%rsp),%r13
  mov    0x20(%rsp),%rbp
  mov    0x108(%rsp),%r15
  movslq %eax,%rbx
  nopl   0x0(%rax)
L266:
  movsd  0x0(%rbp),%xmm6
  movsd  0x0(%r13),%xmm0
  add    $0x8,%rbp
  add    $0x8,%r13
  movsd  %xmm6,0x8(%rsp)
  call   <exp@plt>
  mulsd  0x8(%rsp),%xmm0
  movsd  %xmm0,-0x8(%rbp)
  cmp    %r15,%rbp
  jne    L266
  xor    %eax,%eax
  call   <current_time_ns@plt>
  lea    D524(%rip),%rdi
  movslq %eax,%rsi
  xor    %eax,%eax
  sub    %rbx,%rsi
  call   <printf@plt>
  xor    %eax,%eax
  call   <get_time@plt>
  mov    %r12,%rdi
  movslq %eax,%rbp
  xor    %eax,%eax
  mov    %rbp,%rsi
  call   <elapsed_time@plt>
  lea    D467(%rip),%rdi
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  xor    %eax,%eax
  call   <current_time_ns@plt>
  cmpl   $0x1,0x2c(%rsp)
  movslq %eax,%rbx
  je     L393
  mov    0x20(%rsp),%rax
  mov    0xe0(%rsp),%rdx
  pxor   %xmm0,%xmm0
  cs nopw 0x0(%rax,%rax,1)
L551:
  movsd  (%rax),%xmm1
  add    $0x10,%rax
  addsd  %xmm1,%xmm0
  movsd  -0x8(%rax),%xmm1
  addsd  %xmm1,%xmm0
  cmp    %rdx,%rax
  jne    L551
  movslq 0xbc(%rsp),%rax
  cmp    %eax,0x2c(%rsp)
  je     L91
L390:
  mov    0x20(%rsp),%rcx
  addsd  (%rcx,%rax,8),%xmm0
  xor    %eax,%eax
  movsd  %xmm0,0x8(%rsp)
  call   <current_time_ns@plt>
  lea    D26(%rip),%rdi
  movslq %eax,%rsi
  xor    %eax,%eax
  sub    %rbx,%rsi
  call   <printf@plt>
  xor    %eax,%eax
  call   <get_time@plt>
  mov    %rbp,%rdi
  movslq %eax,%r12
  xor    %eax,%eax
  mov    %r12,%rsi
  call   <elapsed_time@plt>
  lea    D324(%rip),%rdi
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  xor    %eax,%eax
  call   <current_time_ns@plt>
  cmpl   $0x1,0x2c(%rsp)
  movsd  0x8(%rsp),%xmm0
  movslq %eax,%rbx
  je     L405
L293:
  movapd %xmm0,%xmm2
  mov    0x20(%rsp),%rax
  mov    0xe0(%rsp),%rdx
  unpcklpd %xmm2,%xmm2
  xchg   %ax,%ax
L181:
  movupd (%rax),%xmm1
  add    $0x10,%rax
  divpd  %xmm2,%xmm1
  movups %xmm1,-0x10(%rax)
  cmp    %rax,%rdx
  jne    L181
  movslq 0xbc(%rsp),%rax
  cmp    %eax,0x2c(%rsp)
  je     L343
L103:
  mov    0x20(%rsp),%rdi
  lea    (%rdi,%rax,8),%rax
  movsd  (%rax),%xmm1
  divsd  %xmm0,%xmm1
  movsd  %xmm1,(%rax)
  xor    %eax,%eax
  call   <current_time_ns@plt>
  lea    D461(%rip),%rdi
  movslq %eax,%rsi
  xor    %eax,%eax
  sub    %rbx,%rsi
  call   <printf@plt>
  xor    %eax,%eax
  call   <get_time@plt>
  mov    %r12,%rdi
  movslq %eax,%r13
  xor    %eax,%eax
  mov    %r13,%rsi
  call   <elapsed_time@plt>
  lea    D182(%rip),%rdi
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  xor    %eax,%eax
  call   <current_time_ns@plt>
  cmpl   $0x1,0x2c(%rsp)
  movslq %eax,%rbx
  je     L102
L517:
  pxor   %xmm1,%xmm1
  mov    0x20(%rsp),%rdx
  mov    0x30(%rsp),%rcx
  xor    %eax,%eax
  mov    0x38(%rsp),%rsi
  mov    0x130(%rsp),%rdi
  movapd %xmm1,%xmm2
  nopl   0x0(%rax)
L56:
  movupd (%rdx,%rax,1),%xmm7
  movupd (%rcx,%rax,1),%xmm3
  mulpd  %xmm7,%xmm3
  addsd  %xmm3,%xmm2
  unpckhpd %xmm3,%xmm3
  addsd  %xmm3,%xmm2
  movupd (%rsi,%rax,1),%xmm3
  add    $0x10,%rax
  mulpd  %xmm7,%xmm3
  addsd  %xmm3,%xmm1
  unpckhpd %xmm3,%xmm3
  addsd  %xmm3,%xmm1
  cmp    %rax,%rdi
  jne    L56
  movslq 0xbc(%rsp),%rax
  cmp    %eax,0x2c(%rsp)
  je     L366
L380:
  mov    0x20(%rsp),%rcx
  mov    0x30(%rsp),%rdi
  movsd  (%rcx,%rax,8),%xmm0
  movsd  (%rdi,%rax,8),%xmm3
  mov    0x38(%rsp),%rcx
  mulsd  %xmm0,%xmm3
  mulsd  (%rcx,%rax,8),%xmm0
  addsd  %xmm3,%xmm2
  addsd  %xmm0,%xmm1
L366:
  xor    %eax,%eax
  movsd  %xmm1,0x40(%rsp)
  movsd  %xmm2,0x8(%rsp)
  call   <current_time_ns@plt>
  lea    D269(%rip),%rdi
  movslq %eax,%rsi
  xor    %eax,%eax
  sub    %rbx,%rsi
  call   <printf@plt>
  xor    %eax,%eax
  call   <get_time@plt>
  mov    %r13,%rdi
  movslq %eax,%rbp
  xor    %eax,%eax
  mov    %rbp,%rsi
  call   <elapsed_time@plt>
  lea    D518(%rip),%rdi
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  movsd  0x8(%rsp),%xmm2
  mov    $0x1,%eax
  lea    D434(%rip),%rdi
  movapd %xmm2,%xmm0
  call   <printf@plt>
  movsd  0x40(%rsp),%xmm1
  mov    $0x1,%eax
  lea    D92(%rip),%rdi
  movapd %xmm1,%xmm0
  call   <printf@plt>
  mov    $0x1,%eax
  movsd  0xe8(%rsp),%xmm0
  call   <roundDouble@plt>
  pxor   %xmm0,%xmm0
  movsd  0x8(%rsp),%xmm2
  cvtsi2sd %eax,%xmm0
  mov    $0x1,%eax
  subsd  %xmm0,%xmm2
  movsd  0xf0(%rsp),%xmm0
  mulsd  %xmm2,%xmm2
  movsd  %xmm2,0x8(%rsp)
  call   <roundDouble@plt>
  pxor   %xmm0,%xmm0
  movsd  0x40(%rsp),%xmm1
  pxor   %xmm4,%xmm4
  cvtsi2sd %eax,%xmm0
  subsd  %xmm0,%xmm1
  movsd  0x8(%rsp),%xmm0
  mulsd  %xmm1,%xmm1
  addsd  %xmm1,%xmm0
  ucomisd %xmm0,%xmm4
  ja     L454
  sqrtsd %xmm0,%xmm0
L143:
  lea    D390(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  mov    0x20(%rsp),%rcx
  mov    0x68(%rsp),%rsi
  mov    0x2c(%rsp),%eax
  movsd  (%rcx),%xmm0
  movsd  %xmm0,(%rsi)
  cmp    $0x1,%eax
  jle    L292
  lea    -0x2(%rax),%edx
  mov    $0x1,%eax
  add    $0x2,%rdx
  nopl   0x0(%rax)
L47:
  addsd  (%rcx,%rax,8),%xmm0
  movsd  %xmm0,(%rsi,%rax,8)
  add    $0x1,%rax
  cmp    %rax,%rdx
  jne    L47
  xor    %eax,%eax
  call   <get_time@plt>
  mov    %rbp,%rdi
  movslq %eax,%r12
  xor    %eax,%eax
  mov    %r12,%rsi
  call   <elapsed_time@plt>
  lea    D429(%rip),%rdi
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x2c(%rsp),%r15d
  pxor   %xmm6,%xmm6
  xor    %esi,%esi
  movsd  D441(%rip),%xmm0
  mov    0xc8(%rsp),%rdi
  xor    %eax,%eax
  cvtsi2sd %r15d,%xmm6
  divsd  %xmm6,%xmm0
  movsd  %xmm6,0x48(%rsp)
  movsd  %xmm0,0x8(%rsp)
  call   <randu@plt>
  pxor   %xmm5,%xmm5
  cvtsi2sd %eax,%xmm5
  mulsd  0x8(%rsp),%xmm5
  xor    %eax,%eax
  movsd  %xmm5,0x40(%rsp)
  call   <current_time_ns@plt>
  cmp    $0x3,%r15d
  movsd  0x40(%rsp),%xmm5
  movsd  0x48(%rsp),%xmm6
  movslq %eax,%rbx
  jle    L72
  movapd %xmm6,%xmm4
  movapd %xmm5,%xmm3
  mov    0x60(%rsp),%rax
  movdqa D363(%rip),%xmm2
  mov    0x118(%rsp),%rdx
  unpcklpd %xmm4,%xmm4
  unpcklpd %xmm3,%xmm3
  nopw   0x0(%rax,%rax,1)
L115:
  movdqa %xmm2,%xmm0
  add    $0x20,%rax
  paddd  D309(%rip),%xmm2
  cvtdq2pd %xmm0,%xmm1
  divpd  %xmm4,%xmm1
  pshufd $0xee,%xmm0,%xmm0
  cvtdq2pd %xmm0,%xmm0
  divpd  %xmm4,%xmm0
  addpd  %xmm3,%xmm1
  movups %xmm1,-0x20(%rax)
  addpd  %xmm3,%xmm0
  movups %xmm0,-0x10(%rax)
  cmp    %rax,%rdx
  jne    L115
  mov    0x128(%rsp),%esi
  mov    0x110(%rsp),%eax
  cmp    %eax,%esi
  je     L579
  pxor   %xmm0,%xmm0
  mov    0x60(%rsp),%rcx
  movslq %esi,%rax
  cvtsi2sd %esi,%xmm0
  lea    0x0(,%rax,8),%rdx
  divsd  %xmm6,%xmm0
  addsd  %xmm5,%xmm0
  movsd  %xmm0,(%rcx,%rax,8)
  lea    0x1(%rsi),%eax
  cmp    %eax,0x2c(%rsp)
  jle    L579
L567:
  pxor   %xmm0,%xmm0
  mov    0x60(%rsp),%rcx
  cvtsi2sd %eax,%xmm0
  add    $0x1,%eax
  divsd  %xmm6,%xmm0
  addsd  %xmm5,%xmm0
  movsd  %xmm0,0x8(%rcx,%rdx,1)
  cmp    %eax,0x2c(%rsp)
  jle    L579
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  divsd  %xmm6,%xmm0
  addsd  %xmm5,%xmm0
  movsd  %xmm0,0x10(%rcx,%rdx,1)
L579:
  xor    %eax,%eax
  xor    %r13d,%r13d
  call   <current_time_ns@plt>
  lea    D61(%rip),%rdi
  movslq %eax,%rsi
  xor    %eax,%eax
  sub    %rbx,%rsi
  call   <printf@plt>
  xor    %eax,%eax
  call   <get_time@plt>
  mov    %r12,%rdi
  movslq %eax,%rbp
  xor    %eax,%eax
  mov    %rbp,%rsi
  call   <elapsed_time@plt>
  lea    D348(%rip),%rdi
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  xor    %eax,%eax
  call   <current_time_ns@plt>
  movslq 0x114(%rsp),%rbx
  mov    0x2c(%rsp),%r15d
  movslq %eax,%r12
  jmp    L35
  nopw   0x0(%rax,%rax,1)
L76:
  mov    0x30(%rsp),%rdi
  cltq
  mov    0x70(%rsp),%rcx
  movsd  (%rdi,%rax,8),%xmm0
  mov    0x38(%rsp),%rdi
  movsd  %xmm0,(%rcx,%r13,8)
  movsd  (%rdi,%rax,8),%xmm0
L164:
  mov    0x78(%rsp),%rax
  movsd  %xmm0,(%rax,%r13,8)
  add    $0x1,%r13
  cmp    %r13d,%r15d
  jle    L231
L35:
  mov    0x60(%rsp),%rax
  mov    0x68(%rsp),%rdi
  mov    %r15d,%esi
  movsd  (%rax,%r13,8),%xmm0
  mov    $0x1,%eax
  call   <findIndex@plt>
  cmp    $0xffffffff,%eax
  jne    L76
  mov    0x30(%rsp),%rax
  movsd  (%rax,%rbx,8),%xmm0
  mov    0x70(%rsp),%rax
  movsd  %xmm0,(%rax,%r13,8)
  mov    0x38(%rsp),%rax
  movsd  (%rax,%rbx,8),%xmm0
  jmp    L164
L60:
  mov    %eax,(%r15)
  add    $0x10,%r13
  add    $0x4,%r15
  cmp    0x18(%rsp),%r13
  jne    L93
  jmp    L92
  nopl   0x0(%rax,%rax,1)
L231:
  xor    %eax,%eax
  call   <current_time_ns@plt>
  lea    D174(%rip),%rdi
  movslq %eax,%rsi
  xor    %eax,%eax
  sub    %r12,%rsi
  call   <printf@plt>
  xor    %eax,%eax
  call   <get_time@plt>
  mov    %rbp,%rdi
  movslq %eax,%r12
  xor    %eax,%eax
  mov    %r12,%rsi
  call   <elapsed_time@plt>
  lea    D528(%rip),%rdi
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x70(%rsp),%rsi
  mov    0x30(%rsp),%rdi
  mov    0x100(%rsp),%rbx
  mov    %rbx,%rdx
  call   <memcpy@plt>
  mov    0x78(%rsp),%rsi
  mov    0x38(%rsp),%rdi
  mov    %rbx,%rdx
  call   <memcpy@plt>
  cmpl   $0x1,0x2c(%rsp)
  jle    L3
  movsd  0x8(%rsp),%xmm0
  mov    0x20(%rsp),%rax
  mov    0x120(%rsp),%rdx
  unpcklpd %xmm0,%xmm0
L493:
  movups %xmm0,(%rax)
  add    $0x10,%rax
  cmp    %rdx,%rax
  jne    L493
  movslq 0x12c(%rsp),%rax
  cmp    %eax,0x110(%rsp)
  je     L198
L503:
  mov    0x20(%rsp),%rbx
  movsd  0x8(%rsp),%xmm4
  movsd  %xmm4,(%rbx,%rax,8)
L198:
  xor    %eax,%eax
  add    $0x1,%r14d
  call   <get_time@plt>
  mov    %r12,%rdi
  movslq %eax,%rsi
  xor    %eax,%eax
  call   <elapsed_time@plt>
  lea    D369(%rip),%rdi
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  cmp    %r14d,0x10(%rsp)
  jne    L431
L549:
  mov    0x138(%rsp),%rdi
  call   <free@plt>
  mov    0xa0(%rsp),%rdi
  call   <free@plt>
  mov    0x20(%rsp),%rdi
  call   <free@plt>
  mov    0xc0(%rsp),%rdi
  call   <free@plt>
  mov    0x70(%rsp),%rdi
  call   <free@plt>
  mov    0x78(%rsp),%rdi
  call   <free@plt>
  mov    0x30(%rsp),%rdi
  call   <free@plt>
  mov    0x38(%rsp),%rdi
  call   <free@plt>
  mov    0x68(%rsp),%rdi
  call   <free@plt>
  mov    0x60(%rsp),%rdi
  call   <free@plt>
  mov    0x88(%rsp),%rdi
  add    $0x148,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1130 <free@plt>
  nopl   0x0(%rax,%rax,1)
L102:
  pxor   %xmm1,%xmm1
  xor    %eax,%eax
  movapd %xmm1,%xmm2
  jmp    L380
  nop
L405:
  xor    %eax,%eax
  jmp    L103
L343:
  xor    %eax,%eax
  call   <current_time_ns@plt>
  lea    D461(%rip),%rdi
  movslq %eax,%rsi
  xor    %eax,%eax
  sub    %rbx,%rsi
  call   <printf@plt>
  xor    %eax,%eax
  call   <get_time@plt>
  mov    %r12,%rdi
  movslq %eax,%r13
  xor    %eax,%eax
  mov    %r13,%rsi
  call   <elapsed_time@plt>
  lea    D182(%rip),%rdi
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  xor    %eax,%eax
  call   <current_time_ns@plt>
  movslq %eax,%rbx
  jmp    L517
L91:
  xor    %eax,%eax
  movsd  %xmm0,0x8(%rsp)
  call   <current_time_ns@plt>
  lea    D26(%rip),%rdi
  movslq %eax,%rsi
  xor    %eax,%eax
  sub    %rbx,%rsi
  call   <printf@plt>
  xor    %eax,%eax
  call   <get_time@plt>
  mov    %rbp,%rdi
  movslq %eax,%r12
  xor    %eax,%eax
  mov    %r12,%rsi
  call   <elapsed_time@plt>
  lea    D324(%rip),%rdi
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  xor    %eax,%eax
  call   <current_time_ns@plt>
  movsd  0x8(%rsp),%xmm0
  movslq %eax,%rbx
  jmp    L293
L560:
  xor    %eax,%eax
  call   <current_time_ns@plt>
  lea    D359(%rip),%rdi
  movslq %eax,%rsi
  xor    %eax,%eax
  sub    %rbx,%rsi
  call   <printf@plt>
  xor    %eax,%eax
  call   <get_time@plt>
  mov    %rbp,%rdi
  movslq %eax,%r12
  xor    %eax,%eax
  mov    %r12,%rsi
  call   <elapsed_time@plt>
  lea    D95(%rip),%rdi
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  xor    %eax,%eax
  call   <current_time_ns@plt>
  movslq %eax,%rbx
  xor    %eax,%eax
  call   <current_time_ns@plt>
  lea    D52(%rip),%rdi
  movslq %eax,%rsi
  xor    %eax,%eax
  sub    %rbx,%rsi
  call   <printf@plt>
  xor    %eax,%eax
  call   <get_time@plt>
  mov    %r12,%rdi
  movslq %eax,%rbp
  xor    %eax,%eax
  mov    %rbp,%rsi
  call   <elapsed_time@plt>
  lea    D388(%rip),%rdi
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  xor    %eax,%eax
  call   <current_time_ns@plt>
  movslq %eax,%rbx
  xor    %eax,%eax
  call   <current_time_ns@plt>
  lea    D524(%rip),%rdi
  movslq %eax,%rsi
  xor    %eax,%eax
  sub    %rbx,%rsi
  call   <printf@plt>
  xor    %eax,%eax
  call   <get_time@plt>
  mov    %rbp,%rdi
  movslq %eax,%r12
  xor    %eax,%eax
  mov    %r12,%rsi
  call   <elapsed_time@plt>
  lea    D467(%rip),%rdi
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  xor    %eax,%eax
  call   <current_time_ns@plt>
  movslq %eax,%rbx
  xor    %eax,%eax
  call   <current_time_ns@plt>
  lea    D26(%rip),%rdi
  movslq %eax,%rsi
  xor    %eax,%eax
  sub    %rbx,%rsi
  call   <printf@plt>
  xor    %eax,%eax
  call   <get_time@plt>
  mov    %r12,%rdi
  movslq %eax,%rbp
  xor    %eax,%eax
  mov    %rbp,%rsi
  call   <elapsed_time@plt>
  lea    D324(%rip),%rdi
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  xor    %eax,%eax
  call   <current_time_ns@plt>
  movslq %eax,%rbx
  xor    %eax,%eax
  call   <current_time_ns@plt>
  lea    D461(%rip),%rdi
  movslq %eax,%rsi
  xor    %eax,%eax
  sub    %rbx,%rsi
  call   <printf@plt>
  xor    %eax,%eax
  call   <get_time@plt>
  mov    %rbp,%rdi
  movslq %eax,%r13
  xor    %eax,%eax
  mov    %r13,%rsi
  call   <elapsed_time@plt>
  lea    D182(%rip),%rdi
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  xor    %eax,%eax
  call   <current_time_ns@plt>
  pxor   %xmm1,%xmm1
  movslq %eax,%rbx
  movapd %xmm1,%xmm2
  jmp    L366
L292:
  xor    %eax,%eax
  call   <get_time@plt>
  mov    %rbp,%rdi
  movslq %eax,%r12
  xor    %eax,%eax
  mov    %r12,%rsi
  call   <elapsed_time@plt>
  lea    D429(%rip),%rdi
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0xc8(%rsp),%rdi
  xor    %esi,%esi
  xor    %eax,%eax
  call   <randu@plt>
  mov    %eax,%ebp
  xor    %eax,%eax
  call   <current_time_ns@plt>
  cmpl   $0x1,0x2c(%rsp)
  movslq %eax,%rbx
  je     L511
  xor    %eax,%eax
  call   <current_time_ns@plt>
  lea    D61(%rip),%rdi
  movslq %eax,%rsi
  xor    %eax,%eax
  sub    %rbx,%rsi
  call   <printf@plt>
  xor    %eax,%eax
  call   <get_time@plt>
  mov    %r12,%rdi
  movslq %eax,%rbp
  xor    %eax,%eax
  mov    %rbp,%rsi
  call   <elapsed_time@plt>
  lea    D348(%rip),%rdi
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  xor    %eax,%eax
  call   <current_time_ns@plt>
  movslq %eax,%rbx
  xor    %eax,%eax
  call   <current_time_ns@plt>
  lea    D174(%rip),%rdi
  movslq %eax,%rsi
  xor    %eax,%eax
  sub    %rbx,%rsi
  call   <printf@plt>
  xor    %eax,%eax
  call   <get_time@plt>
  mov    %rbp,%rdi
  movslq %eax,%r12
  xor    %eax,%eax
  mov    %r12,%rsi
  call   <elapsed_time@plt>
  lea    D528(%rip),%rdi
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L198
L393:
  pxor   %xmm0,%xmm0
  xor    %eax,%eax
  jmp    L390
L3:
  xor    %eax,%eax
  jmp    L503
L72:
  pxor   %xmm0,%xmm0
  mov    0x60(%rsp),%rax
  xor    %edx,%edx
  divsd  %xmm6,%xmm0
  addsd  %xmm5,%xmm0
  movsd  %xmm0,(%rax)
  mov    $0x1,%eax
  jmp    L567
L572:
  xor    %eax,%eax
  jmp    L216
L381:
  xor    %eax,%eax
  jmp    L302
L454:
  call   <sqrt@plt>
  jmp    L143
L511:
  pxor   %xmm0,%xmm0
  pxor   %xmm4,%xmm4
  mov    0x60(%rsp),%rax
  cvtsi2sd %ebp,%xmm0
  addsd  %xmm4,%xmm0
  movsd  D441(%rip),%xmm4
  movsd  %xmm4,0x8(%rsp)
  movsd  %xmm0,(%rax)
  jmp    L579
```

tool_calls: name: unpack_data
arguments: label: D336
type: f32[2]
name: unpack_data
arguments: label: D486
type: string
name: unpack_data
arguments: label: D441
type: f64
name: unpack_data
arguments: label: D402
type: string
name: unpack_data
arguments: label: D353
type: string
name: unpack_data
arguments: label: D153
type: string
name: unpack_data
arguments: label: D368
type: string
name: unpack_data
arguments: label: D359
type: string
name: unpack_data
arguments: label: D95
type: string
name: unpack_data
arguments: label: D351
type: qword[2]
name: unpack_data
arguments: label: D37
type: f64
name: unpack_data
arguments: label: D52
type: string
name: unpack_data
arguments: label: D388
type: string
name: unpack_data
arguments: label: D524
type: string
name: unpack_data
arguments: label: D467
type: string
name: unpack_data
arguments: label: D26
type: string
name: unpack_data
arguments: label: D324
type: string
name: unpack_data
arguments: label: D461
type: string
name: unpack_data
arguments: label: D182
type: string
name: unpack_data
arguments: label: D269
type: string
name: unpack_data
arguments: label: D518
type: string
name: unpack_data
arguments: label: D434
type: string
name: unpack_data
arguments: label: D92
type: string
name: unpack_data
arguments: label: D390
type: string
name: unpack_data
arguments: label: D429
type: string
name: unpack_data
arguments: label: D363
type: f32[4]
name: unpack_data
arguments: label: D309
type: byte[16]
name: unpack_data
arguments: label: D61
type: string
name: unpack_data
arguments: label: D348
type: string
name: unpack_data
arguments: label: D174
type: string
name: unpack_data
arguments: label: D528
type: string
name: unpack_data
arguments: label: D369
type: string

tool: {"D336": [0.0,1.75]}

tool: D486: TIME TO GET NEIGHBORS TOOK: %f


tool: D441: 1

tool: D402: pragma373_omp_parallel %llu ns


tool: D353: TIME TO GET WEIGHTSTOOK: %f


tool: D153: pragma388_omp_parallel %llu ns


tool: D368: TIME TO SET ARRAYS TOOK: %f


tool: D359: pragma402_omp_parallel %llu ns


tool: D95: TIME TO SET ERROR TOOK: %f


tool: {"D351": [0x7fffffffffffffff,0x0000000000000000]}

tool: D37: 50

tool: D52: pragma410_omp_parallel %llu ns


tool: D388: TIME TO GET LIKELIHOODS TOOK: %f


tool: D524: pragma433_omp_parallel %llu ns


tool: D467: TIME TO GET EXP TOOK: %f


tool: D26: pragma440_omp_parallel %llu ns


tool: D324: TIME TO SUM WEIGHTS TOOK: %f


tool: D461: pragma446_omp_parallel %llu ns


tool: D182: TIME TO NORMALIZE WEIGHTS TOOK: %f


tool: D269: pragma455_omp_parallel %llu ns


tool: D518: TIME TO MOVE OBJECT TOOK: %f


tool: D434: XE: %lf


tool: D92: YE: %lf


tool: D390: %lf


tool: D429: TIME TO CALC CUM SUM TOOK: %f


tool: {"D363": [0.0,1.401298464324817e-45,2.802596928649634e-45,4.203895392974451e-45]}

tool: {"D309": [0x04,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x04,0x00,0x00,0x00]}

tool: D61: pragma480_omp_parallel %llu ns


tool: D348: TIME TO CALC U TOOK: %f


tool: D174: pragma488_omp_parallel %llu ns


tool: D528: TIME TO CALC NEW ARRAY X AND Y TOOK: %f


tool: D369: TIME TO RESET WEIGHTS TOOK: %f


assistant: ```c
void particleFilter(int *I, int IszX, int IszY, int Nfr, int *seed, int Nparticles) {
  int max_size = IszX * IszY * Nfr;
  long long start = get_time();
  double xe = roundDouble(IszY / 2.0);
  double ye = roundDouble(IszX / 2.0);
  int radius = 5;
  int diameter = radius * 2 - 1;
  int *disk = (int *)malloc(diameter * diameter * sizeof(int));
  strelDisk(disk, radius);
  int countOnes = 0;
  int x, y;
  for (x = 0; x < diameter; x++) {
    for (y = 0; y < diameter; y++) {
      if (disk[x * diameter + y] == 1)
        countOnes++;
    }
  }
  double *objxy = (double *)malloc(countOnes * 2 * sizeof(double));
  getneighbors(disk, countOnes, objxy, radius);
  long long get_neighbors = get_time();
  printf("TIME TO GET NEIGHBORS TOOK: %f\n", elapsed_time(start, get_neighbors));
  double *weights = (double *)malloc(sizeof(double) * Nparticles);
  {
    const unsigned long long parallel_for_start = current_time_ns();
#pragma omp parallel for shared(weights, Nparticles) private(x)
    for (x = 0; x < Nparticles; x++) {
      weights[x] = 1 / ((double)(Nparticles));
    };
    const unsigned long long parallel_for_end = current_time_ns();
    printf("pragma373_omp_parallel %llu ns\n", parallel_for_end - parallel_for_start);
  }
  long long get_weights = get_time();
  printf("TIME TO GET WEIGHTSTOOK: %f\n", elapsed_time(get_neighbors, get_weights));
  double *likelihood = (double *)malloc(sizeof(double) * Nparticles);
  double *arrayX = (double *)malloc(sizeof(double) * Nparticles);
  double *arrayY = (double *)malloc(sizeof(double) * Nparticles);
  double *xj = (double *)malloc(sizeof(double) * Nparticles);
  double *yj = (double *)malloc(sizeof(double) * Nparticles);
  double *CDF = (double *)malloc(sizeof(double) * Nparticles);
  double *u = (double *)malloc(sizeof(double) * Nparticles);
  int *ind = (int *)malloc(sizeof(int) * countOnes * Nparticles);
  {
    const unsigned long long parallel_for_start = current_time_ns();
#pragma omp parallel for shared(arrayX, arrayY, xe, ye) private(x)
    for (x = 0; x < Nparticles; x++) {
      arrayX[x] = xe;
      arrayY[x] = ye;
    };
    const unsigned long long parallel_for_end = current_time_ns();
    printf("pragma388_omp_parallel %llu ns\n", parallel_for_end - parallel_for_start);
  }
  int k;
  printf("TIME TO SET ARRAYS TOOK: %f\n", elapsed_time(get_weights, get_time()));
  int indX, indY;
  for (k = 1; k < Nfr; k++) {
    long long set_arrays = get_time();
    {
      const unsigned long long parallel_for_start = current_time_ns();
#pragma omp parallel for shared(arrayX, arrayY, Nparticles, seed) private(x)
      for (x = 0; x < Nparticles; x++) {
        arrayX[x] += 1 + 5 * randn(seed, x);
        arrayY[x] += -2 + 2 * randn(seed, x);
      };
      const unsigned long long parallel_for_end = current_time_ns();
      printf("pragma402_omp_parallel %llu ns\n", parallel_for_end - parallel_for_start);
    }
    long long error = get_time();
    printf("TIME TO SET ERROR TOOK: %f\n", elapsed_time(set_arrays, error));
    {
      const unsigned long long parallel_for_start = current_time_ns();
#pragma omp parallel for shared(likelihood, I, arrayX, arrayY, objxy, ind) private(x, y, indX, indY)
      for (x = 0; x < Nparticles; x++) {
        for (y = 0; y < countOnes; y++) {
          indX = roundDouble(arrayX[x]) + objxy[y * 2 + 1];
          indY = roundDouble(arrayY[x]) + objxy[y * 2];
          ind[x * countOnes + y] = fabs((double)(indX * IszY * Nfr + indY * Nfr + k));
          if (ind[x * countOnes + y] >= max_size)
            ind[x * countOnes + y] = 0;
        }
        likelihood[x] = 0;
        for (y = 0; y < countOnes; y++)
          likelihood[x] += (pow((I[ind[x * countOnes + y]] - 100), 2) - pow((I[ind[x * countOnes + y]] - 228), 2)) / 50.0;
        likelihood[x] = likelihood[x] / ((double)countOnes);
      };
      const unsigned long long parallel_for_end = current_time_ns();
      printf("pragma410_omp_parallel %llu ns\n", parallel_for_end - parallel_for_start);
    }
    long long likelihood_time = get_time();
    printf("TIME TO GET LIKELIHOODS TOOK: %f\n", elapsed_time(error, likelihood_time));
    {
      const unsigned long long parallel_for_start = current_time_ns();
#pragma omp parallel for shared(Nparticles, weights, likelihood) private(x)
      for (x = 0; x < Nparticles; x++) {
        weights[x] = weights[x] * exp(likelihood[x]);
      };
      const unsigned long long parallel_for_end = current_time_ns();
      printf("pragma433_omp_parallel %llu ns\n", parallel_for_end - parallel_for_start);
    }
    long long exponential = get_time();
    printf("TIME TO GET EXP TOOK: %f\n", elapsed_time(likelihood_time, exponential));
    double sumWeights = 0;
    {
      const unsigned long long parallel_for_start = current_time_ns();
#pragma omp parallel for private(x) reduction(+ : sumWeights)
      for (x = 0; x < Nparticles; x++) {
        sumWeights += weights[x];
      };
      const unsigned long long parallel_for_end = current_time_ns();
      printf("pragma440_omp_parallel %llu ns\n", parallel_for_end - parallel_for_start);
    }
    long long sum_time = get_time();
    printf("TIME TO SUM WEIGHTS TOOK: %f\n", elapsed_time(exponential, sum_time));
    {
      const unsigned long long parallel_for_start = current_time_ns();
#pragma omp parallel for shared(sumWeights, weights) private(x)
      for (x = 0; x < Nparticles; x++) {
        weights[x] = weights[x] / sumWeights;
      };
      const unsigned long long parallel_for_end = current_time_ns();
      printf("pragma446_omp_parallel %llu ns\n", parallel_for_end - parallel_for_start);
    }
    long long normalize = get_time();
    printf("TIME TO NORMALIZE WEIGHTS TOOK: %f\n", elapsed_time(sum_time, normalize));
    xe = 0;
    ye = 0;
    {
      const unsigned long long parallel_for_start = current_time_ns();
#pragma omp parallel for private(x) reduction(+ : xe, ye)
      for (x = 0; x < Nparticles; x++) {
        xe += arrayX[x] * weights[x];
        ye += arrayY[x] * weights[x];
      };
      const unsigned long long parallel_for_end = current_time_ns();
      printf("pragma455_omp_parallel %llu ns\n", parallel_for_end - parallel_for_start);
    }
    long long move_time = get_time();
    printf("TIME TO MOVE OBJECT TOOK: %f\n", elapsed_time(normalize, move_time));
    printf("XE: %lf\n", xe);
    printf("YE: %lf\n", ye);
    double distance = sqrt(pow((double)(xe - (int)roundDouble(IszY / 2.0)), 2) + pow((double)(ye - (int)roundDouble(IszX / 2.0)), 2));
    printf("%lf\n", distance);
    CDF[0] = weights[0];
    for (x = 1; x < Nparticles; x++) {
      CDF[x] = weights[x] + CDF[x - 1];
    }
    long long cum_sum = get_time();
    printf("TIME TO CALC CUM SUM TOOK: %f\n", elapsed_time(move_time, cum_sum));
    double u1 = (1 / ((double)(Nparticles))) * randu(seed, 0);
    {
      const unsigned long long parallel_for_start = current_time_ns();
#pragma omp parallel for shared(u, u1, Nparticles) private(x)
      for (x = 0; x < Nparticles; x++) {
        u[x] = u1 + x / ((double)(Nparticles));
      };
      const unsigned long long parallel_for_end = current_time_ns();
      printf("pragma480_omp_parallel %llu ns\n", parallel_for_end - parallel_for_start);
    }
    long long u_time = get_time();
    printf("TIME TO CALC U TOOK: %f\n", elapsed_time(cum_sum, u_time));
    int j, i;
    {
      const unsigned long long parallel_for_start = current_time_ns();
#pragma omp parallel for shared(CDF, Nparticles, xj, yj, u, arrayX, arrayY) private(i, j)
      for (j = 0; j < Nparticles; j++) {
        i = findIndex(CDF, Nparticles, u[j]);
        if (i == -1)
          i = Nparticles - 1;
        xj[j] = arrayX[i];
        yj[j] = arrayY[i];
      };
      const unsigned long long parallel_for_end = current_time_ns();
      printf("pragma488_omp_parallel %llu ns\n", parallel_for_end - parallel_for_start);
    }
    long long xyj_time = get_time();
    printf("TIME TO CALC NEW ARRAY X AND Y TOOK: %f\n", elapsed_time(u_time, xyj_time));
    for (x = 0; x < Nparticles; x++) {
      arrayX[x] = xj[x];
      arrayY[x] = yj[x];
      weights[x] = 1 / ((double)(Nparticles));
    }
    long long reset = get_time();
    printf("TIME TO RESET WEIGHTS TOOK: %f\n", elapsed_time(xyj_time, reset));
  }
  free(disk);
  free(objxy);
  free(weights);
  free(likelihood);
  free(xj);
  free(yj);
  free(arrayX);
  free(arrayY);
  free(CDF);
  free(u);
  free(ind);
}
```