.file "ex.cpp" .local _ZStL8__ioinit .comm _ZStL8__ioinit,1,1 .text .globl _Z10divideNoExdd .type _Z10divideNoExdd, @function _Z10divideNoExdd: .LFB957: .cfi_startproc .cfi_personality 0x0,__gxx_personality_v0 pushl %ebp .cfi_def_cfa_offset 8 movl %esp, %ebp .cfi_offset 5, -8 .cfi_def_cfa_register 5 subl $16, %esp movl 8(%ebp), %eax movl %eax, -8(%ebp) movl 12(%ebp), %eax movl %eax, -4(%ebp) movl 16(%ebp), %eax movl %eax, -16(%ebp) movl 20(%ebp), %eax movl %eax, -12(%ebp) fldl -8(%ebp) fdivl -16(%ebp) leave ret .cfi_endproc .LFE957: .size _Z10divideNoExdd, .-_Z10divideNoExdd .globl _Z6dividedd .type _Z6dividedd, @function _Z6dividedd: .LFB958: .cfi_startproc .cfi_personality 0x0,__gxx_personality_v0 pushl %ebp .cfi_def_cfa_offset 8 movl %esp, %ebp .cfi_offset 5, -8 .cfi_def_cfa_register 5 subl $40, %esp movl 8(%ebp), %eax movl %eax, -16(%ebp) movl 12(%ebp), %eax movl %eax, -12(%ebp) movl 16(%ebp), %eax movl %eax, -24(%ebp) movl 20(%ebp), %eax movl %eax, -20(%ebp) fldl -24(%ebp) fldz fxch %st(1) fucompp fnstsw %ax sahf jne .L8 jp .L8 .L7: movl $4, (%esp) call __cxa_allocate_exception movl %eax, %edx movl $10, (%edx) movl $0, 8(%esp) movl $_ZTIi, 4(%esp) movl %eax, (%esp) call __cxa_throw .L8: fldl -16(%ebp) fdivl -24(%ebp) leave ret .cfi_endproc .LFE958: .size _Z6dividedd, .-_Z6dividedd .section .rodata .LC3: .string "Divide by zero error\n" .globl _Unwind_Resume .text .globl main .type main, @function main: .LFB959: .cfi_startproc .cfi_personality 0x0,__gxx_personality_v0 .cfi_lsda 0x0,.LLSDA959 pushl %ebp .cfi_def_cfa_offset 8 movl %esp, %ebp .cfi_offset 5, -8 .cfi_def_cfa_register 5 andl $-16, %esp pushl %esi pushl %ebx subl $40, %esp fldz fstpl 8(%esp) fldl .LC2 fstpl (%esp) .LEHB0: .cfi_escape 0x10,0x3,0x7,0x55,0x9,0xf0,0x1a,0x9,0xf8,0x22 .cfi_escape 0x10,0x6,0x7,0x55,0x9,0xf0,0x1a,0x9,0xfc,0x22 call _Z6dividedd fstpl 4(%esp) movl $_ZSt4cout, (%esp) call _ZNSolsEd fldz fstpl 8(%esp) fldl .LC2 fstpl (%esp) call _Z10divideNoExdd fstpl 4(%esp) movl $_ZSt4cout, (%esp) call _ZNSolsEd .LEHE0: jmp .L10 .L16: cmpl $1, %edx je .L11 movl %eax, (%esp) .LEHB1: call _Unwind_Resume .LEHE1: .L11: movl %eax, (%esp) call __cxa_begin_catch movl (%eax), %eax movl %eax, 28(%esp) movl $.LC3, 4(%esp) movl $_ZSt4cout, (%esp) .LEHB2: call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc .LEHE2: .LEHB3: call __cxa_end_catch .LEHE3: jmp .L10 .L15: .L12: movl %edx, %ebx movl %eax, %esi call __cxa_end_catch movl %esi, %eax movl %ebx, %edx movl %eax, (%esp) .LEHB4: call _Unwind_Resume .LEHE4: .L10: movl $0, %eax addl $40, %esp popl %ebx popl %esi movl %ebp, %esp popl %ebp ret .cfi_endproc .LFE959: .size main, .-main .globl __gxx_personality_v0 .section .gcc_except_table,"a",@progbits .align 4 .LLSDA959: .byte 0xff .byte 0x0 .uleb128 .LLSDATT959-.LLSDATTD959 .LLSDATTD959: .byte 0x1 .uleb128 .LLSDACSE959-.LLSDACSB959 .LLSDACSB959: .uleb128 .LEHB0-.LFB959 .uleb128 .LEHE0-.LEHB0 .uleb128 .L16-.LFB959 .uleb128 0x1 .uleb128 .LEHB1-.LFB959 .uleb128 .LEHE1-.LEHB1 .uleb128 0x0 .uleb128 0x0 .uleb128 .LEHB2-.LFB959 .uleb128 .LEHE2-.LEHB2 .uleb128 .L15-.LFB959 .uleb128 0x0 .uleb128 .LEHB3-.LFB959 .uleb128 .LEHE3-.LEHB3 .uleb128 0x0 .uleb128 0x0 .uleb128 .LEHB4-.LFB959 .uleb128 .LEHE4-.LEHB4 .uleb128 0x0 .uleb128 0x0 .LLSDACSE959: .byte 0x1 .byte 0x0 .align 4 .long _ZTIi .LLSDATT959: .text .type _Z41__static_initialization_and_destruction_0ii, @function _Z41__static_initialization_and_destruction_0ii: .LFB964: .cfi_startproc .cfi_personality 0x0,__gxx_personality_v0 pushl %ebp .cfi_def_cfa_offset 8 movl %esp, %ebp .cfi_offset 5, -8 .cfi_def_cfa_register 5 subl $24, %esp cmpl $1, 8(%ebp) jne .L19 cmpl $65535, 12(%ebp) jne .L19 movl $_ZStL8__ioinit, (%esp) call _ZNSt8ios_base4InitC1Ev movl $_ZNSt8ios_base4InitD1Ev, %eax movl $__dso_handle, 8(%esp) movl $_ZStL8__ioinit, 4(%esp) movl %eax, (%esp) call __cxa_atexit .L19: leave ret .cfi_endproc .LFE964: .size _Z41__static_initialization_and_destruction_0ii, .-_Z41__static_initialization_and_destruction_0ii .section .rodata .align 4 .type _ZL12DivideByZero, @object .size _ZL12DivideByZero, 4 _ZL12DivideByZero: .long 10 .text .type _GLOBAL__I__Z10divideNoExdd, @function _GLOBAL__I__Z10divideNoExdd: .LFB965: .cfi_startproc .cfi_personality 0x0,__gxx_personality_v0 pushl %ebp .cfi_def_cfa_offset 8 movl %esp, %ebp .cfi_offset 5, -8 .cfi_def_cfa_register 5 subl $24, %esp movl $65535, 4(%esp) movl $1, (%esp) call _Z41__static_initialization_and_destruction_0ii leave ret .cfi_endproc .LFE965: .size _GLOBAL__I__Z10divideNoExdd, .-_GLOBAL__I__Z10divideNoExdd .section .ctors,"aw",@progbits .align 4 .long _GLOBAL__I__Z10divideNoExdd .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 .align 8 .LC2: .long 0 .long 1076101120 .ident "GCC: (Ubuntu 4.4.3-4ubuntu5) 4.4.3" .section .note.GNU-stack,"",@progbits