| |
| 1 |
.file "hello.cc" |
| 2 |
.local _ZStL8__ioinit |
| 3 |
.comm _ZStL8__ioinit,1,1 |
| 4 |
.section .rodata |
| 5 |
.LC1: |
| 6 |
.string "sum = " |
| 7 |
.text |
| 8 |
.globl main |
| 9 |
.type main, @function |
| 10 |
main: |
| 11 |
.LFB1159: |
| 12 |
.cfi_startproc |
| 13 |
pushl %ebp |
| 14 |
.cfi_def_cfa_offset 8 |
| 15 |
.cfi_offset 5, -8 |
| 16 |
movl %esp, %ebp |
| 17 |
.cfi_def_cfa_register 5 |
| 18 |
andl $-16, %esp |
| 19 |
subl $131152, %esp |
| 20 |
movl $32768, 131144(%esp) |
| 21 |
movl $0, 131132(%esp) |
| 22 |
jmp .L2 |
| 23 |
.L3: |
| 24 |
call rand |
| 25 |
movl %eax, %edx |
| 26 |
sarl $31, %edx |
| 27 |
shrl $24, %edx |
| 28 |
addl %edx, %eax |
| 29 |
andl $255, %eax |
| 30 |
subl %edx, %eax |
| 31 |
movl %eax, %edx |
| 32 |
movl 131132(%esp), %eax |
| 33 |
movl %edx, 40(%esp,%eax,4) |
| 34 |
addl $1, 131132(%esp) |
| 35 |
.L2: |
| 36 |
cmpl $32767, 131132(%esp) |
| 37 |
setbe %al |
| 38 |
testb %al, %al |
| 39 |
jne .L3 |
| 40 |
call clock |
| 41 |
movl %eax, 131148(%esp) |
| 42 |
movl $0, 131112(%esp) |
| 43 |
movl $0, 131116(%esp) |
| 44 |
movl $0, 131136(%esp) |
| 45 |
jmp .L4 |
| 46 |
.L8: |
| 47 |
movl $0, 131140(%esp) |
| 48 |
jmp .L5 |
| 49 |
.L7: |
| 50 |
movl 131140(%esp), %eax |
| 51 |
movl 40(%esp,%eax,4), %eax |
| 52 |
cmpl $127, %eax |
| 53 |
jle .L6 |
| 54 |
movl 131140(%esp), %eax |
| 55 |
movl 40(%esp,%eax,4), %eax |
| 56 |
movl %eax, %edx |
| 57 |
sarl $31, %edx |
| 58 |
addl %eax, 131112(%esp) |
| 59 |
adcl %edx, 131116(%esp) |
| 60 |
.L6: |
| 61 |
addl $1, 131140(%esp) |
| 62 |
.L5: |
| 63 |
cmpl $32767, 131140(%esp) |
| 64 |
setbe %al |
| 65 |
testb %al, %al |
| 66 |
jne .L7 |
| 67 |
addl $1, 131136(%esp) |
| 68 |
.L4: |
| 69 |
cmpl $99999, 131136(%esp) |
| 70 |
setbe %al |
| 71 |
testb %al, %al |
| 72 |
jne .L8 |
| 73 |
call clock |
| 74 |
subl 131148(%esp), %eax |
| 75 |
movl %eax, 28(%esp) |
| 76 |
fildl 28(%esp) |
| 77 |
fldl .LC0 |
| 78 |
fdivrp %st, %st(1) |
| 79 |
fstpl 131120(%esp) |
| 80 |
fldl 131120(%esp) |
| 81 |
fstpl 4(%esp) |
| 82 |
movl $_ZSt4cout, (%esp) |
| 83 |
call _ZNSolsEd |
| 84 |
movl $_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_, 4(%esp) |
| 85 |
movl %eax, (%esp) |
| 86 |
call _ZNSolsEPFRSoS_E |
| 87 |
movl $.LC1, 4(%esp) |
| 88 |
movl $_ZSt4cout, (%esp) |
| 89 |
call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc |
| 90 |
movl %eax, %ecx |
| 91 |
movl 131112(%esp), %eax |
| 92 |
movl 131116(%esp), %edx |
| 93 |
movl %eax, 4(%esp) |
| 94 |
movl %edx, 8(%esp) |
| 95 |
movl %ecx, (%esp) |
| 96 |
call _ZNSolsEx |
| 97 |
movl $_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_, 4(%esp) |
| 98 |
movl %eax, (%esp) |
| 99 |
call _ZNSolsEPFRSoS_E |
| 100 |
movl $0, %eax |
| 101 |
leave |
| 102 |
.cfi_restore 5 |
| 103 |
.cfi_def_cfa 4, 4 |
| 104 |
ret |
| 105 |
.cfi_endproc |
| 106 |
.LFE1159: |
| 107 |
.size main, .-main |
| 108 |
.type _Z41__static_initialization_and_destruction_0ii, @function |
| 109 |
_Z41__static_initialization_and_destruction_0ii: |
| 110 |
.LFB1170: |
| 111 |
.cfi_startproc |
| 112 |
pushl %ebp |
| 113 |
.cfi_def_cfa_offset 8 |
| 114 |
.cfi_offset 5, -8 |
| 115 |
movl %esp, %ebp |
| 116 |
.cfi_def_cfa_register 5 |
| 117 |
subl $24, %esp |
| 118 |
cmpl $1, 8(%ebp) |
| 119 |
jne .L9 |
| 120 |
cmpl $65535, 12(%ebp) |
| 121 |
jne .L9 |
| 122 |
movl $_ZStL8__ioinit, (%esp) |
| 123 |
call _ZNSt8ios_base4InitC1Ev |
| 124 |
movl $_ZNSt8ios_base4InitD1Ev, %eax |
| 125 |
movl $__dso_handle, 8(%esp) |
| 126 |
movl $_ZStL8__ioinit, 4(%esp) |
| 127 |
movl %eax, (%esp) |
| 128 |
call __cxa_atexit |
| 129 |
.L9: |
| 130 |
leave |
| 131 |
.cfi_restore 5 |
| 132 |
.cfi_def_cfa 4, 4 |
| 133 |
ret |
| 134 |
.cfi_endproc |
| 135 |
.LFE1170: |
| 136 |
.size _Z41__static_initialization_and_destruction_0ii, .-_Z41__static_initialization_and_destruction_0ii |
| 137 |
.type _GLOBAL__sub_I_main, @function |
| 138 |
_GLOBAL__sub_I_main: |
| 139 |
.LFB1171: |
| 140 |
.cfi_startproc |
| 141 |
pushl %ebp |
| 142 |
.cfi_def_cfa_offset 8 |
| 143 |
.cfi_offset 5, -8 |
| 144 |
movl %esp, %ebp |
| 145 |
.cfi_def_cfa_register 5 |
| 146 |
subl $24, %esp |
| 147 |
movl $65535, 4(%esp) |
| 148 |
movl $1, (%esp) |
| 149 |
call _Z41__static_initialization_and_destruction_0ii |
| 150 |
leave |
| 151 |
.cfi_restore 5 |
| 152 |
.cfi_def_cfa 4, 4 |
| 153 |
ret |
| 154 |
.cfi_endproc |
| 155 |
.LFE1171: |
| 156 |
.size _GLOBAL__sub_I_main, .-_GLOBAL__sub_I_main |
| 157 |
.section .ctors,"aw",@progbits |
| 158 |
.align 4 |
| 159 |
.long _GLOBAL__sub_I_main |
| 160 |
.weakref _ZL20__gthrw_pthread_oncePiPFvvE,pthread_once |
| 161 |
.weakref _ZL27__gthrw_pthread_getspecificj,pthread_getspecific |
| 162 |
.weakref _ZL27__gthrw_pthread_setspecificjPKv,pthread_setspecific |
| 163 |
.weakref _ZL22__gthrw_pthread_createPmPK14pthread_attr_tPFPvS3_ES3_,pthread_create |
| 164 |
.weakref _ZL20__gthrw_pthread_joinmPPv,pthread_join |
| 165 |
.weakref _ZL21__gthrw_pthread_equalmm,pthread_equal |
| 166 |
.weakref _ZL20__gthrw_pthread_selfv,pthread_self |
| 167 |
.weakref _ZL22__gthrw_pthread_detachm,pthread_detach |
| 168 |
.weakref _ZL22__gthrw_pthread_cancelm,pthread_cancel |
| 169 |
.weakref _ZL19__gthrw_sched_yieldv,sched_yield |
| 170 |
.weakref _ZL26__gthrw_pthread_mutex_lockP15pthread_mutex_t,pthread_mutex_lock |
| 171 |
.weakref _ZL29__gthrw_pthread_mutex_trylockP15pthread_mutex_t,pthread_mutex_trylock |
| 172 |
.weakref _ZL31__gthrw_pthread_mutex_timedlockP15pthread_mutex_tPK8timespec,pthread_mutex_timedlock |
| 173 |
.weakref _ZL28__gthrw_pthread_mutex_unlockP15pthread_mutex_t,pthread_mutex_unlock |
| 174 |
.weakref _ZL26__gthrw_pthread_mutex_initP15pthread_mutex_tPK19pthread_mutexattr_t,pthread_mutex_init |
| 175 |
.weakref _ZL29__gthrw_pthread_mutex_destroyP15pthread_mutex_t,pthread_mutex_destroy |
| 176 |
.weakref _ZL30__gthrw_pthread_cond_broadcastP14pthread_cond_t,pthread_cond_broadcast |
| 177 |
.weakref _ZL27__gthrw_pthread_cond_signalP14pthread_cond_t,pthread_cond_signal |
| 178 |
.weakref _ZL25__gthrw_pthread_cond_waitP14pthread_cond_tP15pthread_mutex_t,pthread_cond_wait |
| 179 |
.weakref _ZL30__gthrw_pthread_cond_timedwaitP14pthread_cond_tP15pthread_mutex_tPK8timespec,pthread_cond_timedwait |
| 180 |
.weakref _ZL28__gthrw_pthread_cond_destroyP14pthread_cond_t,pthread_cond_destroy |
| 181 |
.weakref _ZL26__gthrw_pthread_key_createPjPFvPvE,pthread_key_create |
| 182 |
.weakref _ZL26__gthrw_pthread_key_deletej,pthread_key_delete |
| 183 |
.weakref _ZL30__gthrw_pthread_mutexattr_initP19pthread_mutexattr_t,pthread_mutexattr_init |
| 184 |
.weakref _ZL33__gthrw_pthread_mutexattr_settypeP19pthread_mutexattr_ti,pthread_mutexattr_settype |
| 185 |
.weakref _ZL33__gthrw_pthread_mutexattr_destroyP19pthread_mutexattr_t,pthread_mutexattr_destroy |
| 186 |
.section .rodata |
| 187 |
.align 8 |
| 188 |
.LC0: |
| 189 |
.long 0 |
| 190 |
.long 1093567616 |
| 191 |
.ident "GCC: (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3" |
| 192 |
.section .note.GNU-stack,"",@progbits |
| |