user: 请从给定的汇编指令推导出C源代码:

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  lea    -0x5000(%rsp),%r11
L500:
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  cmp    %r11,%rsp
  jne    L500
  sub    $0xd28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x5d18(%rsp)
  xor    %eax,%eax
  call   <check_offloading@plt>
  lea    0x3e10(%rsp),%r12
  lea    0x5d10(%rsp),%rdx
  mov    %r12,%rax
  movsd  D386(%rip),%xmm0
L614:
  movsd  %xmm0,(%rax)
  add    $0x8,%rax
  cmp    %rdx,%rax
  jne    L614
  lea    0x10(%rsp),%rbp
  lea    0x1f10(%rsp),%r13
  mov    %rbp,%rax
L462:
  movq   $0x0,(%rax)
  add    $0x8,%rax
  cmp    %r13,%rax
  jne    L462
  lea    0x1000(%rbp),%r15
  mov    %r12,%rdx
  mov    %rbp,%rax
L311:
  movsd  (%rax),%xmm0
  addsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
  add    $0x8,%rax
  add    $0x8,%rdx
  cmp    %r15,%rax
  jne    L311
  mov    $0x0,%r14d
  mov    $0x0,%ebx
  jmp    L91
L126:
  movsd  D386(%rip),%xmm0
  lea    D495(%rip),%rdi
  mov    $0x2,%eax
  call   <printf@plt>
  mov    $0x1,%ebx
L1183:
  add    $0x1,%r14
  cmp    $0x200,%r14
  je     L1589
L91:
  mov    %r14d,%esi
  movsd  0x10(%rsp,%r14,8),%xmm1
  ucomisd D386(%rip),%xmm1
  jp     L126
  je     L1183
  jmp    L126
L1589:
  test   %ebx,%ebx
  je     L1820
  lea    D244(%rip),%rdi
  call   <puts@plt>
L1499:
  mov    %rbp,%rax
L798:
  movq   $0x0,(%rax)
  add    $0x8,%rax
  cmp    %r13,%rax
  jne    L798
  lea    0xfa0(%rbp),%rax
  mov    %rax,0x8(%rsp)
  mov    %r12,%rdx
  mov    %rbp,%rax
L15:
  movsd  (%rax),%xmm0
  addsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
  add    $0x8,%rax
  add    $0x8,%rdx
  cmp    0x8(%rsp),%rax
  jne    L15
  mov    $0x0,%r14d
  jmp    L629
L1820:
  lea    D507(%rip),%rdi
  call   <puts@plt>
  jmp    L1499
L1269:
  movsd  D386(%rip),%xmm0
  lea    D495(%rip),%rdi
  mov    $0x2,%eax
  call   <printf@plt>
  mov    $0x1,%ebx
L547:
  add    $0x1,%r14
  cmp    $0x1f4,%r14
  je     L479
L629:
  mov    %r14d,%esi
  movsd  0x10(%rsp,%r14,8),%xmm1
  ucomisd D386(%rip),%xmm1
  jp     L1269
  je     L547
  jmp    L1269
L479:
  test   %ebx,%ebx
  je     L488
  lea    D244(%rip),%rdi
  call   <puts@plt>
L1683:
  mov    %rbp,%rax
L1460:
  movq   $0x0,(%rax)
  add    $0x8,%rax
  cmp    %r13,%rax
  jne    L1460
  lea    0x3d8(%rbp),%rax
  mov    %rax,(%rsp)
  mov    %r12,%rdx
  mov    %rbp,%rax
L249:
  movsd  (%rax),%xmm0
  addsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
  add    $0x8,%rax
  add    $0x8,%rdx
  cmp    (%rsp),%rax
  jne    L249
  mov    $0x0,%r14d
  jmp    L1665
L488:
  lea    D507(%rip),%rdi
  call   <puts@plt>
  jmp    L1683
L2048:
  movsd  D386(%rip),%xmm0
  lea    D495(%rip),%rdi
  mov    $0x2,%eax
  call   <printf@plt>
  mov    $0x1,%ebx
L82:
  add    $0x1,%r14
  cmp    $0x7b,%r14
  je     L1856
L1665:
  mov    %r14d,%esi
  movsd  0x10(%rsp,%r14,8),%xmm1
  ucomisd D386(%rip),%xmm1
  jp     L2048
  je     L82
  jmp    L2048
L1856:
  test   %ebx,%ebx
  je     L937
  lea    D244(%rip),%rdi
  call   <puts@plt>
L1379:
  mov    %rbp,%rax
L2044:
  movq   $0x0,(%rax)
  add    $0x8,%rax
  cmp    %r13,%rax
  jne    L2044
  mov    %r12,%rdx
  mov    %rbp,%rax
L79:
  movsd  (%rax),%xmm0
  addsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
  add    $0x8,%rax
  add    $0x8,%rdx
  cmp    %r15,%rax
  jne    L79
  mov    $0x0,%r14d
  jmp    L476
L937:
  lea    D507(%rip),%rdi
  call   <puts@plt>
  jmp    L1379
L600:
  movsd  D386(%rip),%xmm0
  lea    D495(%rip),%rdi
  mov    $0x2,%eax
  call   <printf@plt>
  mov    $0x1,%ebx
L603:
  add    $0x1,%r14
  cmp    $0x200,%r14
  je     L140
L476:
  mov    %r14d,%esi
  movsd  0x10(%rsp,%r14,8),%xmm1
  ucomisd D386(%rip),%xmm1
  jp     L600
  je     L603
  jmp    L600
L140:
  test   %ebx,%ebx
  je     L1420
  lea    D244(%rip),%rdi
  call   <puts@plt>
L597:
  mov    %rbp,%rax
L487:
  movq   $0x0,(%rax)
  add    $0x8,%rax
  cmp    %r13,%rax
  jne    L487
  mov    %r12,%rdx
  mov    %rbp,%rax
L360:
  movsd  (%rax),%xmm0
  addsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
  add    $0x8,%rax
  add    $0x8,%rdx
  cmp    %r15,%rax
  jne    L360
  mov    $0x0,%r14d
  jmp    L1482
L1420:
  lea    D507(%rip),%rdi
  call   <puts@plt>
  jmp    L597
L1242:
  movsd  D386(%rip),%xmm0
  lea    D495(%rip),%rdi
  mov    $0x2,%eax
  call   <printf@plt>
  mov    $0x1,%ebx
L428:
  add    $0x1,%r14
  cmp    $0x200,%r14
  je     L1897
L1482:
  mov    %r14d,%esi
  movsd  0x10(%rsp,%r14,8),%xmm1
  ucomisd D386(%rip),%xmm1
  jp     L1242
  je     L428
  jmp    L1242
L1897:
  test   %ebx,%ebx
  je     L1666
  lea    D244(%rip),%rdi
  call   <puts@plt>
L554:
  mov    %rbp,%rax
L1615:
  movq   $0x0,(%rax)
  add    $0x8,%rax
  cmp    %r13,%rax
  jne    L1615
  mov    %r12,%rdx
  mov    %rbp,%rax
L1984:
  movsd  (%rax),%xmm0
  addsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
  add    $0x8,%rax
  add    $0x8,%rdx
  cmp    %r15,%rax
  jne    L1984
  mov    $0x0,%r14d
  lea    D495(%rip),%r15
  jmp    L1520
L1666:
  lea    D507(%rip),%rdi
  call   <puts@plt>
  jmp    L554
L1321:
  movsd  D386(%rip),%xmm0
  mov    %r15,%rdi
  mov    $0x2,%eax
  call   <printf@plt>
  mov    $0x1,%ebx
L543:
  add    $0x1,%r14
  cmp    $0x200,%r14
  je     L156
L1520:
  mov    %r14d,%esi
  movsd  0x10(%rsp,%r14,8),%xmm1
  ucomisd D386(%rip),%xmm1
  jp     L1321
  je     L543
  jmp    L1321
L156:
  test   %ebx,%ebx
  je     L1348
  lea    D244(%rip),%rdi
  call   <puts@plt>
L827:
  mov    %rbp,%rax
L1060:
  movq   $0x0,(%rax)
  add    $0x8,%rax
  cmp    %r13,%rax
  jne    L1060
  mov    %r12,%rdx
  mov    %rbp,%rax
L1810:
  movsd  (%rax),%xmm0
  addsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
  add    $0x8,%rax
  add    $0x8,%rdx
  cmp    0x8(%rsp),%rax
  jne    L1810
  mov    $0x0,%r14d
  lea    D495(%rip),%r15
  jmp    L1049
L1348:
  lea    D507(%rip),%rdi
  call   <puts@plt>
  jmp    L827
L534:
  movsd  D386(%rip),%xmm0
  mov    %r15,%rdi
  mov    $0x2,%eax
  call   <printf@plt>
  mov    $0x1,%ebx
L1824:
  add    $0x1,%r14
  cmp    $0x1f4,%r14
  je     L343
L1049:
  mov    %r14d,%esi
  movsd  0x10(%rsp,%r14,8),%xmm1
  ucomisd D386(%rip),%xmm1
  jp     L534
  je     L1824
  jmp    L534
L343:
  test   %ebx,%ebx
  je     L1375
  lea    D244(%rip),%rdi
  call   <puts@plt>
L364:
  mov    %rbp,%rax
L1335:
  movq   $0x0,(%rax)
  add    $0x8,%rax
  cmp    %r13,%rax
  jne    L1335
  mov    %r12,%rdx
  mov    %rbp,%rax
L2030:
  movsd  (%rax),%xmm0
  addsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
  add    $0x8,%rax
  add    $0x8,%rdx
  cmp    0x8(%rsp),%rax
  jne    L2030
  mov    $0x0,%r14d
  lea    D495(%rip),%r15
  jmp    L1751
L1375:
  lea    D507(%rip),%rdi
  call   <puts@plt>
  jmp    L364
L736:
  movsd  D386(%rip),%xmm0
  mov    %r15,%rdi
  mov    $0x2,%eax
  call   <printf@plt>
  mov    $0x1,%ebx
L1796:
  add    $0x1,%r14
  cmp    $0x1f4,%r14
  je     L324
L1751:
  mov    %r14d,%esi
  movsd  0x10(%rsp,%r14,8),%xmm1
  ucomisd D386(%rip),%xmm1
  jp     L736
  je     L1796
  jmp    L736
L324:
  test   %ebx,%ebx
  je     L550
  lea    D244(%rip),%rdi
  call   <puts@plt>
L1881:
  mov    %rbp,%rax
L1241:
  movq   $0x0,(%rax)
  add    $0x8,%rax
  cmp    %r13,%rax
  jne    L1241
  mov    %r12,%rdx
  mov    %rbp,%rax
L420:
  movsd  (%rax),%xmm0
  addsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
  add    $0x8,%rax
  add    $0x8,%rdx
  cmp    0x8(%rsp),%rax
  jne    L420
  mov    $0x0,%r14d
  lea    D495(%rip),%r15
  jmp    L649
L550:
  lea    D507(%rip),%rdi
  call   <puts@plt>
  jmp    L1881
L605:
  movsd  D386(%rip),%xmm0
  mov    %r15,%rdi
  mov    $0x2,%eax
  call   <printf@plt>
  mov    $0x1,%ebx
L1295:
  add    $0x1,%r14
  cmp    $0x1f4,%r14
  je     L26
L649:
  mov    %r14d,%esi
  movsd  0x10(%rsp,%r14,8),%xmm1
  ucomisd D386(%rip),%xmm1
  jp     L605
  je     L1295
  jmp    L605
L26:
  test   %ebx,%ebx
  je     L1575
  lea    D244(%rip),%rdi
  call   <puts@plt>
L1160:
  mov    %rbp,%rax
L1291:
  movq   $0x0,(%rax)
  add    $0x8,%rax
  cmp    %r13,%rax
  jne    L1291
  mov    %r12,%rdx
  mov    %rbp,%rax
L1264:
  movsd  (%rax),%xmm0
  addsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
  add    $0x8,%rax
  add    $0x8,%rdx
  cmp    (%rsp),%rax
  jne    L1264
  mov    $0x0,%r14d
  lea    D495(%rip),%r15
  jmp    L654
L1575:
  lea    D507(%rip),%rdi
  call   <puts@plt>
  jmp    L1160
L1023:
  movsd  D386(%rip),%xmm0
  mov    %r15,%rdi
  mov    $0x2,%eax
  call   <printf@plt>
  mov    $0x1,%ebx
L355:
  add    $0x1,%r14
  cmp    $0x7b,%r14
  je     L225
L654:
  mov    %r14d,%esi
  movsd  0x10(%rsp,%r14,8),%xmm1
  ucomisd D386(%rip),%xmm1
  jp     L1023
  je     L355
  jmp    L1023
L225:
  test   %ebx,%ebx
  je     L935
  lea    D244(%rip),%rdi
  call   <puts@plt>
L1313:
  mov    %rbp,%rax
L702:
  movq   $0x0,(%rax)
  add    $0x8,%rax
  cmp    %r13,%rax
  jne    L702
  mov    %r12,%rdx
  mov    %rbp,%rax
L1058:
  movsd  (%rax),%xmm0
  addsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
  add    $0x8,%rax
  add    $0x8,%rdx
  cmp    (%rsp),%rax
  jne    L1058
  mov    $0x0,%r14d
  lea    D495(%rip),%r15
  jmp    L2023
L935:
  lea    D507(%rip),%rdi
  call   <puts@plt>
  jmp    L1313
L1522:
  movsd  D386(%rip),%xmm0
  mov    %r15,%rdi
  mov    $0x2,%eax
  call   <printf@plt>
  mov    $0x1,%ebx
L2017:
  add    $0x1,%r14
  cmp    $0x7b,%r14
  je     L1320
L2023:
  mov    %r14d,%esi
  movsd  0x10(%rsp,%r14,8),%xmm1
  ucomisd D386(%rip),%xmm1
  jp     L1522
  je     L2017
  jmp    L1522
L1320:
  test   %ebx,%ebx
  je     L125
  lea    D244(%rip),%rdi
  call   <puts@plt>
L25:
  mov    %rbp,%rax
L1942:
  movq   $0x0,(%rax)
  add    $0x8,%rax
  cmp    %r13,%rax
  jne    L1942
  mov    %r12,%rdx
  mov    %rbp,%rax
L1047:
  movsd  (%rax),%xmm0
  addsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
  add    $0x8,%rax
  add    $0x8,%rdx
  cmp    (%rsp),%rax
  jne    L1047
  mov    $0x0,%r14d
  lea    D495(%rip),%r15
  jmp    L127
L125:
  lea    D507(%rip),%rdi
  call   <puts@plt>
  jmp    L25
L926:
  movsd  D386(%rip),%xmm0
  mov    %r15,%rdi
  mov    $0x2,%eax
  call   <printf@plt>
  mov    $0x1,%ebx
L924:
  add    $0x1,%r14
  cmp    $0x7b,%r14
  je     L1859
L127:
  mov    %r14d,%esi
  movsd  0x10(%rsp,%r14,8),%xmm1
  ucomisd D386(%rip),%xmm1
  jp     L926
  je     L924
  jmp    L926
L1859:
  test   %ebx,%ebx
  je     L568
  lea    D244(%rip),%rdi
  call   <puts@plt>
L145:
  mov    %rbp,%rax
L981:
  movq   $0x0,(%rax)
  add    $0x8,%rax
  cmp    %r13,%rax
  jne    L981
  lea    0x1f10(%rsp),%r14
  lea    0x3e10(%rsp),%rax
  mov    %rax,(%rsp)
  mov    %r14,%rax
L215:
  movq   $0x0,(%rax)
  add    $0x8,%rax
  cmp    %rax,(%rsp)
  jne    L215
  mov    %r14,%rdx
  mov    %rbp,%rax
  movsd  D111(%rip),%xmm1
  movsd  D67(%rip),%xmm0
L638:
  movapd %xmm1,%xmm2
  addsd  (%rax),%xmm2
  movsd  %xmm2,(%rax)
  movapd %xmm0,%xmm2
  addsd  (%rdx),%xmm2
  movsd  %xmm2,(%rdx)
  add    $0x8,%rax
  add    $0x8,%rdx
  cmp    %r13,%rax
  jne    L638
  mov    $0x0,%r15d
  jmp    L1633
L568:
  lea    D507(%rip),%rdi
  call   <puts@plt>
  jmp    L145
L1967:
  movsd  D111(%rip),%xmm0
  mov    0x8(%rsp),%esi
  lea    D526(%rip),%rdi
  mov    $0x2,%eax
  call   <printf@plt>
  mov    $0x1,%ebx
  jmp    L1790
L741:
  movsd  D67(%rip),%xmm0
  mov    0x8(%rsp),%esi
  lea    D947(%rip),%rdi
  mov    $0x2,%eax
  call   <printf@plt>
  mov    $0x1,%ebx
L143:
  add    $0x1,%r15
  cmp    $0x3e0,%r15
  je     L459
L1633:
  mov    %r15d,0x8(%rsp)
  movsd  0x10(%rsp,%r15,8),%xmm1
  ucomisd D111(%rip),%xmm1
  jp     L1967
  jne    L1967
L1790:
  movsd  0x1f10(%rsp,%r15,8),%xmm1
  ucomisd D67(%rip),%xmm1
  jp     L741
  je     L143
  jmp    L741
L459:
  test   %ebx,%ebx
  je     L1711
  lea    D244(%rip),%rdi
  call   <puts@plt>
L388:
  mov    %rbp,%rax
L1978:
  movq   $0x0,(%rax)
  add    $0x8,%rax
  cmp    %r13,%rax
  jne    L1978
  mov    %r14,%rax
L1117:
  movq   $0x0,(%rax)
  add    $0x8,%rax
  cmp    %rax,(%rsp)
  jne    L1117
  lea    0x400(%rbp),%rcx
  mov    %r14,%rdx
  mov    %rbp,%rax
  movsd  D79(%rip),%xmm1
  movsd  D111(%rip),%xmm0
L151:
  addsd  D67(%rip),%xmm0
  addsd  D435(%rip),%xmm1
  movapd %xmm0,%xmm2
  addsd  (%rax),%xmm2
  movsd  %xmm2,(%rax)
  movapd %xmm1,%xmm2
  addsd  (%rdx),%xmm2
  movsd  %xmm2,(%rdx)
  add    $0x8,%rax
  add    $0x8,%rdx
  cmp    %rax,%rcx
  jne    L151
  mov    $0x0,%r15d
  jmp    L805
L1711:
  lea    D507(%rip),%rdi
  call   <puts@plt>
  jmp    L388
L852:
  movsd  D694(%rip),%xmm0
  mov    0x8(%rsp),%esi
  lea    D526(%rip),%rdi
  mov    $0x2,%eax
  call   <printf@plt>
  mov    $0x1,%ebx
  jmp    L439
L1860:
  movsd  0x10(%rsp,%r15,8),%xmm1
  ucomisd D292(%rip),%xmm1
  jp     L1463
  jne    L1463
L287:
  movsd  0x1f10(%rsp,%r15,8),%xmm1
  ucomisd D722(%rip),%xmm1
  jp     L1416
  jne    L1416
L927:
  add    $0x1,%r15
  cmp    $0x80,%r15
  je     L613
L805:
  mov    %r15d,0x8(%rsp)
  test   $0x1,%r15b
  jne    L1860
  movsd  0x10(%rsp,%r15,8),%xmm1
  ucomisd D694(%rip),%xmm1
  jp     L852
  jne    L852
L439:
  movsd  0x1f10(%rsp,%r15,8),%xmm1
  ucomisd D194(%rip),%xmm1
  jp     L332
  je     L927
L332:
  movsd  D194(%rip),%xmm0
  mov    0x8(%rsp),%esi
  lea    D947(%rip),%rdi
  mov    $0x2,%eax
  call   <printf@plt>
  mov    $0x1,%ebx
  jmp    L927
L1463:
  movsd  D292(%rip),%xmm0
  mov    0x8(%rsp),%esi
  lea    D526(%rip),%rdi
  mov    $0x2,%eax
  call   <printf@plt>
  mov    $0x1,%ebx
  jmp    L287
L1416:
  movsd  D722(%rip),%xmm0
  mov    0x8(%rsp),%esi
  lea    D947(%rip),%rdi
  mov    $0x2,%eax
  call   <printf@plt>
  mov    $0x1,%ebx
  jmp    L927
L613:
  test   %ebx,%ebx
  je     L232
  lea    D244(%rip),%rdi
  call   <puts@plt>
L1198:
  movl   $0xffffffff,0x8(%rsp)
  mov    $0x0,%r15d
  jmp    L11
L232:
  lea    D507(%rip),%rdi
  call   <puts@plt>
  jmp    L1198
L10:
  mov    $0x0,%eax
  call   <omp_get_team_num@plt>
  mov    %eax,0x8(%rsp)
  add    $0x1,%r15d
L11:
  mov    $0x0,%eax
  call   <omp_get_num_teams@plt>
  cmp    %r15d,%eax
  jg     L10
  mov    0x8(%rsp),%esi
  cmp    $0x9,%esi
  jne    L776
  test   %ebx,%ebx
  jne    L1854
  lea    D507(%rip),%rdi
  call   <puts@plt>
  jmp    L1244
L776:
  mov    $0x9,%edx
  lea    D858(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L1854:
  lea    D244(%rip),%rdi
  call   <puts@plt>
  mov    $0x1,%ebx
L1244:
  mov    %rbp,%rax
L765:
  movq   $0x0,(%rax)
  add    $0x8,%rax
  cmp    %r13,%rax
  jne    L765
  mov    %r14,%rax
L744:
  movq   $0x0,(%rax)
  add    $0x8,%rax
  cmp    %rax,(%rsp)
  jne    L744
  mov    %r12,%rdi
  mov    %r14,%rsi
  mov    %rbp,%rdx
  mov    $0x0,%ecx
L607:
  add    $0x40,%ecx
  mov    $0x0,%eax
L1223:
  movsd  (%rsi,%rax,1),%xmm0
  addsd  (%rdi,%rax,1),%xmm0
  addsd  (%rdx,%rax,1),%xmm0
  movsd  %xmm0,(%rdx,%rax,1)
  add    $0x8,%rax
  cmp    $0x200,%rax
  jne    L1223
  add    $0x200,%rdx
  add    $0x200,%rsi
  add    $0x200,%rdi
  cmp    $0x100,%ecx
  jne    L607
  mov    $0x0,%r15d
  jmp    L1961
L1247:
  movsd  D694(%rip),%xmm0
  lea    D526(%rip),%rdi
  mov    $0x2,%eax
  call   <printf@plt>
  mov    $0x1,%ebx
L1299:
  add    $0x1,%r15
  cmp    $0x100,%r15
  je     L1475
L1961:
  mov    %r15d,%esi
  movsd  0x10(%rsp,%r15,8),%xmm1
  ucomisd D386(%rip),%xmm1
  jp     L1247
  je     L1299
  jmp    L1247
L1475:
  test   %ebx,%ebx
  je     L148
  lea    D244(%rip),%rdi
  call   <puts@plt>
L1629:
  mov    %rbp,%rax
L254:
  movq   $0x0,(%rax)
  add    $0x8,%rax
  cmp    %r13,%rax
  jne    L254
  mov    %r14,%rax
L1689:
  movq   $0x0,(%rax)
  add    $0x8,%rax
  cmp    %rax,(%rsp)
  jne    L1689
  mov    $0x0,%edx
  mov    $0x200,%esi
L757:
  mov    %edx,%ecx
  add    $0x40,%edx
  cmp    $0x1be,%ecx
  mov    %esi,%eax
  cmovl  %edx,%eax
  cmp    %ecx,%eax
  jle    L1928
  sub    %ecx,%eax
  lea    -0x1(%rax),%eax
  lea    0x8(,%rax,8),%rcx
  mov    $0x0,%eax
L1092:
  movsd  (%r14,%rax,1),%xmm0
  addsd  (%r12,%rax,1),%xmm0
  addsd  0x0(%rbp,%rax,1),%xmm0
  movsd  %xmm0,0x0(%rbp,%rax,1)
  add    $0x8,%rax
  cmp    %rax,%rcx
  jne    L1092
L1928:
  add    $0x200,%rbp
  add    $0x200,%r14
  add    $0x200,%r12
  cmp    $0x200,%edx
  jne    L757
  mov    $0x0,%ebp
  lea    D526(%rip),%r12
  jmp    L171
L148:
  lea    D507(%rip),%rdi
  call   <puts@plt>
  jmp    L1629
L947:
  movsd  D694(%rip),%xmm0
  mov    %r12,%rdi
  mov    $0x2,%eax
  call   <printf@plt>
  mov    $0x1,%ebx
L1660:
  add    $0x1,%rbp
  cmp    $0x100,%rbp
  je     L1775
L171:
  mov    %ebp,%esi
  movsd  0x10(%rsp,%rbp,8),%xmm1
  ucomisd D386(%rip),%xmm1
  jp     L947
  je     L1660
  jmp    L947
L1775:
  test   %ebx,%ebx
  je     L1252
  lea    D244(%rip),%rdi
  call   <puts@plt>
L790:
  mov    $0x782000,%edi
  call   <malloc@plt>
  mov    %rax,%r13
  mov    $0x782000,%edi
  call   <malloc@plt>
  mov    %rax,%rbp
  mov    $0x782000,%edi
  call   <malloc@plt>
  mov    %r13,%r12
  lea    0x782000(%r13),%rdi
  mov    %r13,%rdx
  mov    %rbp,%rcx
  sub    %r13,%rcx
  movsd  D386(%rip),%xmm1
  sub    %r13,%rax
  mov    %rax,%rsi
  movsd  D111(%rip),%xmm0
L391:
  mov    %rdx,%rax
  add    $0x1f00,%rdx
L1612:
  movq   $0x0,(%rax)
  movsd  %xmm1,(%rcx,%rax,1)
  movsd  %xmm0,(%rax,%rsi,1)
  add    $0x8,%rax
  cmp    %rax,%rdx
  jne    L1612
  cmp    %rdx,%rdi
  jne    L391
  lea    0x1f00(%r13),%rdx
  add    $0x783f00,%r13
L1109:
  lea    -0x1f00(%rdx),%rax
L1254:
  movsd  (%rcx,%rax,1),%xmm0
  addsd  (%rax,%rsi,1),%xmm0
  addsd  (%rax),%xmm0
  movsd  %xmm0,(%rax)
  add    $0x8,%rax
  cmp    %rax,%rdx
  jne    L1254
  add    $0x1f00,%rdx
  cmp    %r13,%rdx
  jne    L1109
  mov    $0x0,%r14d
  lea    D1126(%rip),%r15
  jmp    L1867
L1252:
  lea    D507(%rip),%rdi
  call   <puts@plt>
  jmp    L790
L1161:
  movsd  D67(%rip),%xmm0
  mov    %ebp,%edx
  mov    %r14d,%esi
  mov    %r15,%rdi
  mov    $0x2,%eax
  call   <printf@plt>
  mov    $0x1,%ebx
L1817:
  add    $0x1,%ebp
  add    $0x8,%r13
  cmp    $0x3e0,%ebp
  je     L1718
L1337:
  movsd  0x0(%r13),%xmm1
  ucomisd D67(%rip),%xmm1
  jp     L1161
  je     L1817
  jmp    L1161
L1718:
  add    $0x1,%r14d
  add    $0x1f00,%r12
  cmp    $0x3e0,%r14d
  je     L1838
L1867:
  mov    %r12,%r13
  mov    $0x0,%ebp
  jmp    L1337
L1838:
  test   %ebx,%ebx
  je     L1549
  lea    D244(%rip),%rdi
  call   <puts@plt>
L2038:
  mov    $0xe8be00,%edi
  call   <malloc@plt>
  mov    %rax,%rbp
  mov    $0xe8be00,%edi
  call   <malloc@plt>
  lea    0x1e460(%rbp),%rsi
  lea    0xeaa260(%rbp),%rdi
  movsd  D111(%rip),%xmm1
  sub    %rbp,%rax
  mov    %rax,%rcx
  movsd  D67(%rip),%xmm0
L1314:
  lea    -0x1e080(%rsi),%rdx
L626:
  lea    -0x3e0(%rdx),%rax
L663:
  movsd  %xmm1,(%rax)
  movsd  %xmm0,(%rcx,%rax,1)
  add    $0x8,%rax
  cmp    %rax,%rdx
  jne    L663
  add    $0x3e0,%rdx
  cmp    %rdx,%rsi
  jne    L626
  add    $0x1e080,%rsi
  cmp    %rsi,%rdi
  jne    L1314
  lea    0x3e0(%rbp),%rsi
  mov    %rsi,(%rsp)
  add    $0xe8c1e0,%rbp
  jmp    L1324
L1549:
  lea    D507(%rip),%rdi
  call   <puts@plt>
  jmp    L2038
L1037:
  add    $0x3e0,%rdx
  cmp    %rdx,%rsi
  je     L1204
L1988:
  lea    -0x3e0(%rdx),%rax
L1208:
  movsd  (%rax),%xmm0
  addsd  (%rcx,%rax,1),%xmm0
  movsd  %xmm0,(%rax)
  add    $0x8,%rax
  cmp    %rax,%rdx
  jne    L1208
  jmp    L1037
L1204:
  cmp    %rbp,%rsi
  je     L1408
L1324:
  mov    %rsi,%rdx
  add    $0x1e080,%rsi
  jmp    L1988
L1408:
  mov    $0x0,%r14d
  lea    D1126(%rip),%r15
  jmp    L1432
L1998:
  movsd  D67(%rip),%xmm0
  mov    %r13d,%edx
  mov    %r14d,%esi
  mov    %r15,%rdi
  mov    $0x2,%eax
  call   <printf@plt>
  mov    $0x1,%ebx
L1096:
  add    $0x8,%rbp
  cmp    %rbp,%r12
  je     L714
L609:
  movsd  0x0(%rbp),%xmm1
  ucomisd D694(%rip),%xmm1
  jp     L1998
  je     L1096
  jmp    L1998
L714:
  add    $0x1,%r13d
  add    $0x3e0,%r12
  cmp    $0x7c,%r13d
  je     L73
L63:
  lea    -0x3e0(%r12),%rbp
  jmp    L609
L73:
  add    $0x1,%r14d
  addq   $0x1e080,(%rsp)
  cmp    $0x7c,%r14d
  je     L1022
L1432:
  mov    (%rsp),%r12
  mov    $0x0,%r13d
  jmp    L63
L1022:
  test   %ebx,%ebx
  je     L1232
  lea    D244(%rip),%rdi
  call   <puts@plt>
L1515:
  mov    0x5d18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L1972
  mov    $0x0,%eax
  add    $0x5d28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L1232:
  lea    D507(%rip),%rdi
  call   <puts@plt>
  jmp    L1515
L1972:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: tag: D386
type_infered: f64
name: retrieve_data
arguments: tag: D495
type_infered: string
name: retrieve_data
arguments: tag: D244
type_infered: string
name: retrieve_data
arguments: tag: D507
type_infered: string
name: retrieve_data
arguments: tag: D111
type_infered: f64
name: retrieve_data
arguments: tag: D67
type_infered: f64
name: retrieve_data
arguments: tag: D526
type_infered: string
name: retrieve_data
arguments: tag: D947
type_infered: string
name: retrieve_data
arguments: tag: D79
type_infered: f64
name: retrieve_data
arguments: tag: D435
type_infered: f64
name: retrieve_data
arguments: tag: D694
type_infered: f32[2]
name: retrieve_data
arguments: tag: D292
type_infered: f32[2]
name: retrieve_data
arguments: tag: D722
type_infered: f32[2]
name: retrieve_data
arguments: tag: D194
type_infered: f32[2]
name: retrieve_data
arguments: tag: D858
type_infered: string
name: retrieve_data
arguments: tag: D1126
type_infered: string

tool: D386: 1

tool: D495: Error at %d, h = %lf, d = %lf


tool: D244: Failed

tool: D507: Succeeded

tool: D111: 2

tool: D67: 3

tool: D526: Error at A[%d], h = %lf, d = %lf


tool: D947: Error at B[%d], h = %lf, d = %lf


tool: D79: 4

tool: D435: 7

tool: {"D694": [0.0,2.3125]}

tool: {"D292": [0.0,2.5]}

tool: {"D722": [0.0,2.78125]}

tool: {"D194": [0.0,2.59375]}

tool: D858: lastpriv value is %d and should have been %d


tool: D1126: Error at (%d,%d), h = %lf, d = %lf


assistant: ```c
int main(void) {
  check_offloading();
  double A[(992)], B[(992)], C[(992)], D[(992)], E[(992)];
  int fail = 0;
  {
    int i;
    for (i = 0; i < (992); i++) {
      {
        C[i] = 1;
        D[i] = i;
        E[i] = -i;
      }
    }
  };
  {
    int i;
    for (i = 0; i < (992); i++) {
      A[i] = 0;
    }
  };
  for (int t = 0; t < (1); t++) {
#pragma omp target teams distribute num_teams(512)
    for (int i = 0; i < 512; i++) {
      A[i] += C[i];
    }
  }
  for (int i = 0; i < 512; i++)
    if (A[i] != (1)) {
      printf("Error at %d, h = %lf, d = %lf\n", i, (double)(1), A[i]);
      fail = 1;
    }
  if (fail)
    printf("Failed\n");
  else
    printf("Succeeded\n");
  {
    int i;
    for (i = 0; i < (992); i++) {
      A[i] = 0;
    }
  };
  for (int t = 0; t < (1); t++) {
#pragma omp target teams distribute num_teams(256)
    for (int i = 0; i < 500; i++) {
      A[i] += C[i];
    }
  }
  for (int i = 0; i < 500; i++)
    if (A[i] != (1)) {
      printf("Error at %d, h = %lf, d = %lf\n", i, (double)(1), A[i]);
      fail = 1;
    }
  if (fail)
    printf("Failed\n");
  else
    printf("Succeeded\n");
  {
    int i;
    for (i = 0; i < (992); i++) {
      A[i] = 0;
    }
  };
  for (int t = 0; t < (1); t++) {
#pragma omp target teams distribute num_teams(256)
    for (int i = 0; i < 123; i++) {
      A[i] += C[i];
    }
  }
  for (int i = 0; i < 123; i++)
    if (A[i] != (1)) {
      printf("Error at %d, h = %lf, d = %lf\n", i, (double)(1), A[i]);
      fail = 1;
    }
  if (fail)
    printf("Failed\n");
  else
    printf("Succeeded\n");
  {
    int i;
    for (i = 0; i < (992); i++) {
      A[i] = 0;
    }
  };
  for (int t = 0; t < (1); t++) {
#pragma omp target teams distribute dist_schedule(static, 1) num_teams(512)
    for (int i = 0; i < 512; i++) {
      A[i] += C[i];
    }
  }
  for (int i = 0; i < 512; i++)
    if (A[i] != (1)) {
      printf("Error at %d, h = %lf, d = %lf\n", i, (double)(1), A[i]);
      fail = 1;
    }
  if (fail)
    printf("Failed\n");
  else
    printf("Succeeded\n");
  {
    int i;
    for (i = 0; i < (992); i++) {
      A[i] = 0;
    }
  };
  for (int t = 0; t < (1); t++) {
#pragma omp target teams distribute dist_schedule(static, 512) num_teams(512)
    for (int i = 0; i < 512; i++) {
      A[i] += C[i];
    }
  }
  for (int i = 0; i < 512; i++)
    if (A[i] != (1)) {
      printf("Error at %d, h = %lf, d = %lf\n", i, (double)(1), A[i]);
      fail = 1;
    }
  if (fail)
    printf("Failed\n");
  else
    printf("Succeeded\n");
  {
    int i;
    for (i = 0; i < (992); i++) {
      A[i] = 0;
    }
  };
  int ten = 10;
  int chunkSize = 512 / ten;
  for (int t = 0; t < (1); t++) {
#pragma omp target teams distribute dist_schedule(static, chunkSize) num_teams(512)
    for (int i = 0; i < 512; i++) {
      A[i] += C[i];
    }
  }
  for (int i = 0; i < 512; i++)
    if (A[i] != (1)) {
      printf("Error at %d, h = %lf, d = %lf\n", i, (double)(1), A[i]);
      fail = 1;
    }
  if (fail)
    printf("Failed\n");
  else
    printf("Succeeded\n");
  {
    int i;
    for (i = 0; i < (992); i++) {
      A[i] = 0;
    }
  };
  for (int t = 0; t < (1); t++) {
#pragma omp target teams distribute dist_schedule(static, 1) num_teams(256)
    for (int i = 0; i < 500; i++) {
      A[i] += C[i];
    }
  }
  for (int i = 0; i < 500; i++)
    if (A[i] != (1)) {
      printf("Error at %d, h = %lf, d = %lf\n", i, (double)(1), A[i]);
      fail = 1;
    }
  if (fail)
    printf("Failed\n");
  else
    printf("Succeeded\n");
  {
    int i;
    for (i = 0; i < (992); i++) {
      A[i] = 0;
    }
  };
  for (int t = 0; t < (1); t++) {
#pragma omp target teams distribute dist_schedule(static, 500) num_teams(256)
    for (int i = 0; i < 500; i++) {
      A[i] += C[i];
    }
  }
  for (int i = 0; i < 500; i++)
    if (A[i] != (1)) {
      printf("Error at %d, h = %lf, d = %lf\n", i, (double)(1), A[i]);
      fail = 1;
    }
  if (fail)
    printf("Failed\n");
  else
    printf("Succeeded\n");
  {
    int i;
    for (i = 0; i < (992); i++) {
      A[i] = 0;
    }
  };
  ten = 10;
  chunkSize = 500 / ten;
  for (int t = 0; t < (1); t++) {
#pragma omp target teams distribute dist_schedule(static, chunkSize) num_teams(256)
    for (int i = 0; i < 500; i++) {
      A[i] += C[i];
    }
  }
  for (int i = 0; i < 500; i++)
    if (A[i] != (1)) {
      printf("Error at %d, h = %lf, d = %lf\n", i, (double)(1), A[i]);
      fail = 1;
    }
  if (fail)
    printf("Failed\n");
  else
    printf("Succeeded\n");
  {
    int i;
    for (i = 0; i < (992); i++) {
      A[i] = 0;
    }
  };
  for (int t = 0; t < (1); t++) {
#pragma omp target teams distribute dist_schedule(static, 1) num_teams(256)
    for (int i = 0; i < 123; i++) {
      A[i] += C[i];
    }
  }
  for (int i = 0; i < 123; i++)
    if (A[i] != (1)) {
      printf("Error at %d, h = %lf, d = %lf\n", i, (double)(1), A[i]);
      fail = 1;
    }
  if (fail)
    printf("Failed\n");
  else
    printf("Succeeded\n");
  {
    int i;
    for (i = 0; i < (992); i++) {
      A[i] = 0;
    }
  };
  for (int t = 0; t < (1); t++) {
#pragma omp target teams distribute dist_schedule(static, 123) num_teams(256)
    for (int i = 0; i < 123; i++) {
      A[i] += C[i];
    }
  }
  for (int i = 0; i < 123; i++)
    if (A[i] != (1)) {
      printf("Error at %d, h = %lf, d = %lf\n", i, (double)(1), A[i]);
      fail = 1;
    }
  if (fail)
    printf("Failed\n");
  else
    printf("Succeeded\n");
  {
    int i;
    for (i = 0; i < (992); i++) {
      A[i] = 0;
    }
  };
  ten = 10;
  chunkSize = 123 / ten;
  for (int t = 0; t < (1); t++) {
#pragma omp target teams distribute dist_schedule(static, chunkSize) num_teams(256)
    for (int i = 0; i < 123; i++) {
      A[i] += C[i];
    }
  }
  for (int i = 0; i < 123; i++)
    if (A[i] != (1)) {
      printf("Error at %d, h = %lf, d = %lf\n", i, (double)(1), A[i]);
      fail = 1;
    }
  if (fail)
    printf("Failed\n");
  else
    printf("Succeeded\n");
  {
    int i;
    for (i = 0; i < (992); i++) {
      A[i] = 0;
    }
  };
  {
    int i;
    for (i = 0; i < (992); i++) {
      B[i] = 0;
    }
  };
  double p = 2.0, q = 4.0;
  for (int t = 0; t < (1); t++) {
#pragma omp target teams distribute private(p, q) num_teams(256)
    for (int i = 0; i < (992); i++) {
      p = 2;
      q = 3;
      A[i] += p;
      B[i] += q;
    }
  }
  for (int i = 0; i < (992); i++) {
    if (A[i] != (1) * 2) {
      printf("Error at A[%d], h = %lf, d = %lf\n", i, (double)(1) * 2, A[i]);
      fail = 1;
    }
    if (B[i] != (1) * 3) {
      printf("Error at B[%d], h = %lf, d = %lf\n", i, (double)(1) * 3, B[i]);
      fail = 1;
    }
  }
  if (fail)
    printf("Failed\n");
  else
    printf("Succeeded\n");
  {
    int i;
    for (i = 0; i < (992); i++) {
      A[i] = 0;
    }
  };
  {
    int i;
    for (i = 0; i < (992); i++) {
      B[i] = 0;
    }
  };
  p = 2.0, q = 4.0;
  for (int t = 0; t < (1); t++) {
#pragma omp target teams distribute firstprivate(p, q) num_teams(64)
    for (int i = 0; i < 128; i++) {
      p += 3.0;
      q += 7.0;
      A[i] += p;
      B[i] += q;
    }
  }
  for (int i = 0; i < 128; i++) {
    if (i % 2 == 0) {
      if (A[i] != (2.0 + 3.0) * (1)) {
        printf("Error at A[%d], h = %lf, d = %lf\n", i, (double)(2.0 + 3.0) * (1), A[i]);
        fail = 1;
      }
      if (B[i] != (4.0 + 7.0) * (1)) {
        printf("Error at B[%d], h = %lf, d = %lf\n", i, (double)(4.0 + 7.0) * (1), B[i]);
        fail = 1;
      }
    } else {
      if (A[i] != (2.0 + 3.0 * 2) * (1)) {
        printf("Error at A[%d], h = %lf, d = %lf\n", i, (double)(2.0 + 3.0 * 2) * (1), A[i]);
        fail = 1;
      }
      if (B[i] != (4.0 + 7.0 * 2) * (1)) {
        printf("Error at B[%d], h = %lf, d = %lf\n", i, (double)(4.0 + 7.0 * 2) * (1), B[i]);
        fail = 1;
      }
    }
  }
  if (fail)
    printf("Failed\n");
  else
    printf("Succeeded\n");
  int lastpriv[2] = {-1, -1};
#pragma omp target teams distribute lastprivate(lastpriv) num_teams(10)
  for (int i = 0; i < omp_get_num_teams(); i++) {
    lastpriv[0] = omp_get_team_num();
  }
  if (lastpriv[0] != 9) {
    printf("lastpriv value is %d and should have been %d\n", lastpriv[0], 9);
    fail = 1;
  }
  if (fail)
    printf("Failed\n");
  else
    printf("Succeeded\n");
  {
    int i;
    for (i = 0; i < (992); i++) {
      A[i] = 0;
    }
  };
  {
    int i;
    for (i = 0; i < (992); i++) {
      B[i] = 0;
    }
  };
  int nte = 32;
  int tl = 64;
  int blockSize = tl;
  for (int t = 0; t < (1); t++) {
#pragma omp target teams distribute num_teams(nte) thread_limit(tl)
    for (int j = 0; j < 256; j += blockSize) {
#pragma omp parallel for
      for (int i = j; i < j + blockSize; i++) {
        A[i] += B[i] + C[i];
      }
    }
  }
  for (int i = 0; i < 256; i++) {
    if (A[i] != (1)) {
      printf("Error at A[%d], h = %lf, d = %lf\n", i, (double)(2.0 + 3.0) * (1), A[i]);
      fail = 1;
    }
  }
  if (fail)
    printf("Failed\n");
  else
    printf("Succeeded\n");
  {
    int i;
    for (i = 0; i < (992); i++) {
      A[i] = 0;
    }
  };
  {
    int i;
    for (i = 0; i < (992); i++) {
      B[i] = 0;
    }
  };
  nte = 32;
  tl = 64;
  blockSize = tl;
  for (int t = 0; t < (1); t++) {
#pragma omp target teams distribute num_teams(nte) thread_limit(tl)
    for (int j = 0; j < 510; j += blockSize) {
      int ub = (j + blockSize < 510) ? (j + blockSize) : 512;
#pragma omp parallel for
      for (int i = j; i < ub; i++) {
        A[i] += B[i] + C[i];
      }
    }
  }
  for (int i = 0; i < 256; i++) {
    if (A[i] != (1)) {
      printf("Error at A[%d], h = %lf, d = %lf\n", i, (double)(2.0 + 3.0) * (1), A[i]);
      fail = 1;
    }
  }
  if (fail)
    printf("Failed\n");
  else
    printf("Succeeded\n");
  double *S = (double *)malloc((992) * (992) * sizeof(double));
  double *T = (double *)malloc((992) * (992) * sizeof(double));
  double *U = (double *)malloc((992) * (992) * sizeof(double));
  for (int i = 0; i < (992); i++)
    for (int j = 0; j < (992); j++) {
      S[i * (992) + j] = 0.0;
      T[i * (992) + j] = 1.0;
      U[i * (992) + j] = 2.0;
    }
  for (int t = 0; t < (1); t++) {
#pragma omp target teams distribute collapse(2) map(tofrom : S[:N * N]), map(to : T[:N * N], U[:N * N]) num_teams(512)
    for (int i = 0; i < (992); i++)
      for (int j = 0; j < (992); j++)
        S[i * (992) + j] += T[i * (992) + j] + U[i * (992) + j];
  }
  for (int i = 0; i < (992); i++)
    for (int j = 0; j < (992); j++)
      if (S[i * (992) + j] != (1) * 3.0) {
        printf("Error at (%d,%d), h = %lf, d = %lf\n", i, j, (double)(1) * 3.0, S[i * (992) + j]);
        fail = 1;
      }
  if (fail)
    printf("Failed\n");
  else
    printf("Succeeded\n");
  int M = (992) / 8;
  double *V = (double *)malloc(M * M * M * sizeof(double));
  double *Z = (double *)malloc(M * M * M * sizeof(double));
  for (int i = 0; i < M; i++)
    for (int j = 0; j < M; j++)
      for (int k = 0; k < M; k++) {
        V[i * M * M + j * M + k] = 2.0;
        Z[i * M * M + j * M + k] = 3.0;
      }
  for (int t = 0; t < (1); t++) {
#pragma omp target teams distribute collapse(3) map(tofrom : V[:M * M * M]), map(to : Z[:M * M * M]) num_teams(512)
    for (int i = 0; i < M; i++)
      for (int j = 0; j < M; j++)
        for (int k = 0; k < M; k++)
          V[i * M * M + j * M + k] += Z[i * M * M + j * M + k];
  }
  for (int i = 0; i < M; i++)
    for (int j = 0; j < M; j++)
      for (int k = 0; k < M; k++)
        if (V[i * M * M + j * M + k] != 2.0 + (1) * 3.0) {
          printf("Error at (%d,%d), h = %lf, d = %lf\n", i, j, (double)(1) * 3.0, V[i * M * M + j * M + k]);
          fail = 1;
        }
  if (fail)
    printf("Failed\n");
  else
    printf("Succeeded\n");
  return 0;
}
```