Advertisement
Guest User

Untitled

a guest
Jun 27th, 2012
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.39 KB | None | 0 0
  1. .file "branch.cpp"
  2. .section .rodata.str1.1,"aMS",@progbits,1
  3. .LC1:
  4. .string "sum = "
  5. .section .text.startup,"ax",@progbits
  6. .p2align 4,,15
  7. .globl main
  8. .type main, @function
  9. main:
  10. .LFB1211:
  11. .cfi_startproc
  12. pushq %r12
  13. .cfi_def_cfa_offset 16
  14. .cfi_offset 12, -16
  15. pushq %rbp
  16. .cfi_def_cfa_offset 24
  17. .cfi_offset 6, -24
  18. pushq %rbx
  19. .cfi_def_cfa_offset 32
  20. .cfi_offset 3, -32
  21. subq $131072, %rsp
  22. .cfi_def_cfa_offset 131104
  23. leaq 131072(%rsp), %rbp
  24. movq %rsp, %rbx
  25. .p2align 4,,10
  26. .p2align 3
  27. .L2:
  28. call rand
  29. movl %eax, %edx
  30. sarl $31, %edx
  31. shrl $24, %edx
  32. addl %edx, %eax
  33. andl $255, %eax
  34. subl %edx, %eax
  35. movl %eax, (%rbx)
  36. addq $4, %rbx
  37. cmpq %rbp, %rbx
  38. jne .L2
  39. call clock
  40. xorl %ebx, %ebx
  41. movq %rax, %r12
  42. movl $100000, %ecx
  43. .p2align 4,,10
  44. .p2align 3
  45. .L3:
  46. leaq (%rsp), %rax
  47. .p2align 4,,10
  48. .p2align 3
  49. .L5:
  50. movl (%rax), %edx
  51. cmpl $127, %edx
  52. jle .L4
  53. movslq %edx, %rdx
  54. addq %rdx, %rbx
  55. .L4:
  56. addq $4, %rax
  57. cmpq %rax, %rbp
  58. jne .L5
  59. subl $1, %ecx
  60. jne .L3
  61. call clock
  62. subq %r12, %rax
  63. movl $_ZSt4cout, %edi
  64. cvtsi2sdq %rax, %xmm0
  65. divsd .LC0(%rip), %xmm0
  66. call _ZNSo9_M_insertIdEERSoT_
  67. movq %rax, %rdi
  68. call _ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
  69. movl $.LC1, %esi
  70. movl $_ZSt4cout, %edi
  71. call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
  72. movq %rbx, %rsi
  73. movq %rax, %rdi
  74. call _ZNSo9_M_insertIxEERSoT_
  75. movq %rax, %rdi
  76. call _ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
  77. addq $131072, %rsp
  78. .cfi_def_cfa_offset 32
  79. xorl %eax, %eax
  80. popq %rbx
  81. .cfi_def_cfa_offset 24
  82. popq %rbp
  83. .cfi_def_cfa_offset 16
  84. popq %r12
  85. .cfi_def_cfa_offset 8
  86. ret
  87. .cfi_endproc
  88. .LFE1211:
  89. .size main, .-main
  90. .p2align 4,,15
  91. .type _GLOBAL__sub_I_main, @function
  92. _GLOBAL__sub_I_main:
  93. .LFB1223:
  94. .cfi_startproc
  95. subq $8, %rsp
  96. .cfi_def_cfa_offset 16
  97. movl $_ZStL8__ioinit, %edi
  98. call _ZNSt8ios_base4InitC1Ev
  99. movl $__dso_handle, %edx
  100. movl $_ZStL8__ioinit, %esi
  101. movl $_ZNSt8ios_base4InitD1Ev, %edi
  102. addq $8, %rsp
  103. .cfi_def_cfa_offset 8
  104. jmp __cxa_atexit
  105. .cfi_endproc
  106. .LFE1223:
  107. .size _GLOBAL__sub_I_main, .-_GLOBAL__sub_I_main
  108. .section .ctors,"aw",@progbits
  109. .align 8
  110. .quad _GLOBAL__sub_I_main
  111. .local _ZStL8__ioinit
  112. .comm _ZStL8__ioinit,1,1
  113. .weakref _ZL20__gthrw_pthread_oncePiPFvvE,pthread_once
  114. .weakref _ZL27__gthrw_pthread_getspecificj,pthread_getspecific
  115. .weakref _ZL27__gthrw_pthread_setspecificjPKv,pthread_setspecific
  116. .weakref _ZL22__gthrw_pthread_createPmPK14pthread_attr_tPFPvS3_ES3_,pthread_create
  117. .weakref _ZL20__gthrw_pthread_joinmPPv,pthread_join
  118. .weakref _ZL21__gthrw_pthread_equalmm,pthread_equal
  119. .weakref _ZL20__gthrw_pthread_selfv,pthread_self
  120. .weakref _ZL22__gthrw_pthread_detachm,pthread_detach
  121. .weakref _ZL22__gthrw_pthread_cancelm,pthread_cancel
  122. .weakref _ZL19__gthrw_sched_yieldv,sched_yield
  123. .weakref _ZL26__gthrw_pthread_mutex_lockP15pthread_mutex_t,pthread_mutex_lock
  124. .weakref _ZL29__gthrw_pthread_mutex_trylockP15pthread_mutex_t,pthread_mutex_trylock
  125. .weakref _ZL31__gthrw_pthread_mutex_timedlockP15pthread_mutex_tPK8timespec,pthread_mutex_timedlock
  126. .weakref _ZL28__gthrw_pthread_mutex_unlockP15pthread_mutex_t,pthread_mutex_unlock
  127. .weakref _ZL26__gthrw_pthread_mutex_initP15pthread_mutex_tPK19pthread_mutexattr_t,pthread_mutex_init
  128. .weakref _ZL29__gthrw_pthread_mutex_destroyP15pthread_mutex_t,pthread_mutex_destroy
  129. .weakref _ZL30__gthrw_pthread_cond_broadcastP14pthread_cond_t,pthread_cond_broadcast
  130. .weakref _ZL27__gthrw_pthread_cond_signalP14pthread_cond_t,pthread_cond_signal
  131. .weakref _ZL25__gthrw_pthread_cond_waitP14pthread_cond_tP15pthread_mutex_t,pthread_cond_wait
  132. .weakref _ZL30__gthrw_pthread_cond_timedwaitP14pthread_cond_tP15pthread_mutex_tPK8timespec,pthread_cond_timedwait
  133. .weakref _ZL28__gthrw_pthread_cond_destroyP14pthread_cond_t,pthread_cond_destroy
  134. .weakref _ZL26__gthrw_pthread_key_createPjPFvPvE,pthread_key_create
  135. .weakref _ZL26__gthrw_pthread_key_deletej,pthread_key_delete
  136. .weakref _ZL30__gthrw_pthread_mutexattr_initP19pthread_mutexattr_t,pthread_mutexattr_init
  137. .weakref _ZL33__gthrw_pthread_mutexattr_settypeP19pthread_mutexattr_ti,pthread_mutexattr_settype
  138. .weakref _ZL33__gthrw_pthread_mutexattr_destroyP19pthread_mutexattr_t,pthread_mutexattr_destroy
  139. .section .rodata.cst8,"aM",@progbits,8
  140. .align 8
  141. .LC0:
  142. .long 0
  143. .long 1093567616
  144. .ident "GCC: (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3"
  145. .section .note.GNU-stack,"",@progbits
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement