Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .Ltmp2:
- .cfi_def_cfa_register %rbp
- subq $16, %rsp
- xorl %eax, %eax
- movl %eax, %edi
- movl $0, -4(%rbp)
- callq time
- movl %eax, %ecx
- movl %ecx, %edi
- callq srand
- movl $1, i
- movl $2, j
- .LBB0_1: # =>This Loop Header: Depth=1
- # Child Loop BB0_3 Depth 2
- cmpl $0, i
- je .LBB0_6
- # BB#2: # in Loop: Header=BB0_1 Depth=1
- jmp .LBB0_3
- .LBB0_3: # Parent Loop BB0_1 Depth=1
- # => This Inner Loop Header: Depth=2
- cmpl $0, j
- je .LBB0_5
- # BB#4: # in Loop: Header=BB0_3 Depth=2
- callq rand
- movabsq $a, %rcx
- movslq j, %rdx
- movslq i, %rsi
- shlq $3, %rsi
- addq %rsi, %rcx
- movl %eax, (%rcx,%rdx,4)
- movl j, %eax
- addl $-1, %eax
- movl %eax, j
- jmp .LBB0_3
- .LBB0_5: # in Loop: Header=BB1_1 Depth=1
- movl i, %eax
- addl $-1, %eax
- movl %eax, i
- jmp .LBB0_1
- .LBB0_6:
- jmp .LBB0_7
- .LBB0_7: # =>This Inner Loop Header: Depth=1
- cmpl $1, i
- je .LBB0_9
- # BB#8: # in Loop: Header=BB0_7 Depth=1
- movabsq $a, %rax
- movl $2, %ecx
- movl j, %edx
- movq %rax, -16(%rbp) # 8-byte Spill
- movl %edx, %eax
- cltd
- idivl %ecx
- movslq %eax, %rsi
- movl i, %eax
- cltd
- idivl %ecx
- movslq %eax, %rdi
- shlq $3, %rdi
- movq -16(%rbp), %r8 # 8-byte Reload
- addq %rdi, %r8
- movl (%r8,%rsi,4), %eax
- 49,63 38%
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement