Advertisement
Guest User

HUI

a guest
Feb 19th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .Ltmp2:
  2.        .cfi_def_cfa_register %rbp
  3.         subq    $16, %rsp
  4.         xorl    %eax, %eax
  5.         movl    %eax, %edi
  6.         movl    $0, -4(%rbp)
  7.         callq   time
  8.         movl    %eax, %ecx
  9.         movl    %ecx, %edi
  10.         callq   srand
  11.         movl    $1, i
  12.         movl    $2, j
  13. .LBB0_1:                                # =>This Loop Header: Depth=1
  14.                                        #     Child Loop BB0_3 Depth 2
  15.         cmpl    $0, i
  16.         je      .LBB0_6
  17. # BB#2:                                 #   in Loop: Header=BB0_1 Depth=1
  18.         jmp     .LBB0_3
  19. .LBB0_3:                                #   Parent Loop BB0_1 Depth=1
  20.                                        # =>  This Inner Loop Header: Depth=2
  21.         cmpl    $0, j
  22.         je      .LBB0_5
  23. # BB#4:                                 #   in Loop: Header=BB0_3 Depth=2
  24.         callq   rand
  25.         movabsq $a, %rcx
  26.         movslq  j, %rdx
  27.         movslq  i, %rsi
  28.         shlq    $3, %rsi
  29.         addq    %rsi, %rcx
  30.         movl    %eax, (%rcx,%rdx,4)
  31.         movl    j, %eax
  32.         addl    $-1, %eax
  33.         movl    %eax, j
  34.         jmp     .LBB0_3
  35. .LBB0_5:                                #   in Loop: Header=BB1_1 Depth=1
  36.         movl    i, %eax
  37.         addl    $-1, %eax
  38.         movl    %eax, i
  39.         jmp     .LBB0_1
  40. .LBB0_6:
  41.         jmp     .LBB0_7
  42. .LBB0_7:                                # =>This Inner Loop Header: Depth=1
  43.         cmpl    $1, i
  44.         je      .LBB0_9
  45. # BB#8:                                 #   in Loop: Header=BB0_7 Depth=1
  46.         movabsq $a, %rax
  47.         movl    $2, %ecx
  48.         movl    j, %edx
  49.         movq    %rax, -16(%rbp)         # 8-byte Spill
  50.         movl    %edx, %eax
  51.         cltd
  52.         idivl   %ecx
  53.         movslq  %eax, %rsi
  54.         movl    i, %eax
  55.         cltd
  56.         idivl   %ecx
  57.         movslq  %eax, %rdi
  58.         shlq    $3, %rdi
  59.         movq    -16(%rbp), %r8          # 8-byte Reload
  60.         addq    %rdi, %r8
  61.         movl    (%r8,%rsi,4), %eax
  62.                                                                                                                                                                                           49,63         38%
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement