Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .file "branch.cpp"
- .section .rodata.str1.1,"aMS",@progbits,1
- .LC1:
- .string "sum = "
- .section .text.startup,"ax",@progbits
- .p2align 4,,15
- .globl main
- .type main, @function
- main:
- .LFB1211:
- .cfi_startproc
- pushq %r12
- .cfi_def_cfa_offset 16
- .cfi_offset 12, -16
- pushq %rbp
- .cfi_def_cfa_offset 24
- .cfi_offset 6, -24
- pushq %rbx
- .cfi_def_cfa_offset 32
- .cfi_offset 3, -32
- subq $131072, %rsp
- .cfi_def_cfa_offset 131104
- leaq 131072(%rsp), %rbp
- movq %rsp, %rbx
- .p2align 4,,10
- .p2align 3
- .L2:
- call rand
- movl %eax, %edx
- sarl $31, %edx
- shrl $24, %edx
- addl %edx, %eax
- andl $255, %eax
- subl %edx, %eax
- movl %eax, (%rbx)
- addq $4, %rbx
- cmpq %rbp, %rbx
- jne .L2
- call clock
- xorl %ebx, %ebx
- movq %rax, %r12
- movl $100000, %ecx
- .p2align 4,,10
- .p2align 3
- .L3:
- leaq (%rsp), %rax
- .p2align 4,,10
- .p2align 3
- .L5:
- movl (%rax), %edx
- cmpl $127, %edx
- jle .L4
- movslq %edx, %rdx
- addq %rdx, %rbx
- .L4:
- addq $4, %rax
- cmpq %rax, %rbp
- jne .L5
- subl $1, %ecx
- jne .L3
- call clock
- subq %r12, %rax
- movl $_ZSt4cout, %edi
- cvtsi2sdq %rax, %xmm0
- divsd .LC0(%rip), %xmm0
- call _ZNSo9_M_insertIdEERSoT_
- movq %rax, %rdi
- call _ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
- movl $.LC1, %esi
- movl $_ZSt4cout, %edi
- call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
- movq %rbx, %rsi
- movq %rax, %rdi
- call _ZNSo9_M_insertIxEERSoT_
- movq %rax, %rdi
- call _ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
- addq $131072, %rsp
- .cfi_def_cfa_offset 32
- xorl %eax, %eax
- popq %rbx
- .cfi_def_cfa_offset 24
- popq %rbp
- .cfi_def_cfa_offset 16
- popq %r12
- .cfi_def_cfa_offset 8
- ret
- .cfi_endproc
- .LFE1211:
- .size main, .-main
- .p2align 4,,15
- .type _GLOBAL__sub_I_main, @function
- _GLOBAL__sub_I_main:
- .LFB1223:
- .cfi_startproc
- subq $8, %rsp
- .cfi_def_cfa_offset 16
- movl $_ZStL8__ioinit, %edi
- call _ZNSt8ios_base4InitC1Ev
- movl $__dso_handle, %edx
- movl $_ZStL8__ioinit, %esi
- movl $_ZNSt8ios_base4InitD1Ev, %edi
- addq $8, %rsp
- .cfi_def_cfa_offset 8
- jmp __cxa_atexit
- .cfi_endproc
- .LFE1223:
- .size _GLOBAL__sub_I_main, .-_GLOBAL__sub_I_main
- .section .ctors,"aw",@progbits
- .align 8
- .quad _GLOBAL__sub_I_main
- .local _ZStL8__ioinit
- .comm _ZStL8__ioinit,1,1
- .weakref _ZL20__gthrw_pthread_oncePiPFvvE,pthread_once
- .weakref _ZL27__gthrw_pthread_getspecificj,pthread_getspecific
- .weakref _ZL27__gthrw_pthread_setspecificjPKv,pthread_setspecific
- .weakref _ZL22__gthrw_pthread_createPmPK14pthread_attr_tPFPvS3_ES3_,pthread_create
- .weakref _ZL20__gthrw_pthread_joinmPPv,pthread_join
- .weakref _ZL21__gthrw_pthread_equalmm,pthread_equal
- .weakref _ZL20__gthrw_pthread_selfv,pthread_self
- .weakref _ZL22__gthrw_pthread_detachm,pthread_detach
- .weakref _ZL22__gthrw_pthread_cancelm,pthread_cancel
- .weakref _ZL19__gthrw_sched_yieldv,sched_yield
- .weakref _ZL26__gthrw_pthread_mutex_lockP15pthread_mutex_t,pthread_mutex_lock
- .weakref _ZL29__gthrw_pthread_mutex_trylockP15pthread_mutex_t,pthread_mutex_trylock
- .weakref _ZL31__gthrw_pthread_mutex_timedlockP15pthread_mutex_tPK8timespec,pthread_mutex_timedlock
- .weakref _ZL28__gthrw_pthread_mutex_unlockP15pthread_mutex_t,pthread_mutex_unlock
- .weakref _ZL26__gthrw_pthread_mutex_initP15pthread_mutex_tPK19pthread_mutexattr_t,pthread_mutex_init
- .weakref _ZL29__gthrw_pthread_mutex_destroyP15pthread_mutex_t,pthread_mutex_destroy
- .weakref _ZL30__gthrw_pthread_cond_broadcastP14pthread_cond_t,pthread_cond_broadcast
- .weakref _ZL27__gthrw_pthread_cond_signalP14pthread_cond_t,pthread_cond_signal
- .weakref _ZL25__gthrw_pthread_cond_waitP14pthread_cond_tP15pthread_mutex_t,pthread_cond_wait
- .weakref _ZL30__gthrw_pthread_cond_timedwaitP14pthread_cond_tP15pthread_mutex_tPK8timespec,pthread_cond_timedwait
- .weakref _ZL28__gthrw_pthread_cond_destroyP14pthread_cond_t,pthread_cond_destroy
- .weakref _ZL26__gthrw_pthread_key_createPjPFvPvE,pthread_key_create
- .weakref _ZL26__gthrw_pthread_key_deletej,pthread_key_delete
- .weakref _ZL30__gthrw_pthread_mutexattr_initP19pthread_mutexattr_t,pthread_mutexattr_init
- .weakref _ZL33__gthrw_pthread_mutexattr_settypeP19pthread_mutexattr_ti,pthread_mutexattr_settype
- .weakref _ZL33__gthrw_pthread_mutexattr_destroyP19pthread_mutexattr_t,pthread_mutexattr_destroy
- .section .rodata.cst8,"aM",@progbits,8
- .align 8
- .LC0:
- .long 0
- .long 1093567616
- .ident "GCC: (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3"
- .section .note.GNU-stack,"",@progbits
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement