Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .file "Source.cpp"
- .section .rdata,"dr"
- __ZStL19piecewise_construct:
- .space 1
- .lcomm __ZStL8__ioinit,1,1
- .lcomm __ZZ4mainE7counter,4,4
- .def ___main; .scl 2; .type 32; .endef
- .text
- .globl _main
- .def _main; .scl 2; .type 32; .endef
- _main:
- LFB1445:
- .cfi_startproc
- leal 4(%esp), %ecx
- .cfi_def_cfa 1, 0
- andl $-16, %esp
- pushl -4(%ecx)
- pushl %ebp
- .cfi_escape 0x10,0x5,0x2,0x75,0
- movl %esp, %ebp
- pushl %ebx
- pushl %ecx
- .cfi_escape 0xf,0x3,0x75,0x78,0x6
- .cfi_escape 0x10,0x3,0x2,0x75,0x7c
- subl $16, %esp
- call ___main
- movl $0, %ebx
- L5:
- addl $1, %ebx
- movl %ebx, (%esp)
- call __Z7isPrimei
- testb %al, %al
- je L2
- movl __ZZ4mainE7counter, %eax
- addl $1, %eax
- movl %eax, __ZZ4mainE7counter
- L2:
- movl __ZZ4mainE7counter, %eax
- cmpl $10001, %eax
- je L8
- jmp L5
- L8:
- nop
- movl %ebx, (%esp)
- movl $__ZSt4cout, %ecx
- call __ZNSolsEi
- subl $4, %esp
- movl $0, %eax
- leal -8(%ebp), %esp
- popl %ecx
- .cfi_restore 1
- .cfi_def_cfa 1, 0
- popl %ebx
- .cfi_restore 3
- popl %ebp
- .cfi_restore 5
- leal -4(%ecx), %esp
- .cfi_def_cfa 4, 4
- ret
- .cfi_endproc
- LFE1445:
- .globl __Z7isPrimei
- .def __Z7isPrimei; .scl 2; .type 32; .endef
- __Z7isPrimei:
- LFB1446:
- .cfi_startproc
- pushl %ebp
- .cfi_def_cfa_offset 8
- .cfi_offset 5, -8
- movl %esp, %ebp
- .cfi_def_cfa_register 5
- subl $16, %esp
- cmpl $1, 8(%ebp)
- jne L10
- movl $0, %eax
- jmp L11
- L10:
- movl $2, -4(%ebp)
- L14:
- movl -4(%ebp), %eax
- cmpl 8(%ebp), %eax
- jge L12
- movl 8(%ebp), %eax
- cltd
- idivl -4(%ebp)
- movl %edx, %eax
- testl %eax, %eax
- jne L13
- movl $0, %eax
- jmp L11
- L13:
- addl $1, -4(%ebp)
- jmp L14
- L12:
- movl $1, %eax
- L11:
- leave
- .cfi_restore 5
- .cfi_def_cfa 4, 4
- ret
- .cfi_endproc
- LFE1446:
- .def ___tcf_0; .scl 3; .type 32; .endef
- ___tcf_0:
- LFB1871:
- .cfi_startproc
- pushl %ebp
- .cfi_def_cfa_offset 8
- .cfi_offset 5, -8
- movl %esp, %ebp
- .cfi_def_cfa_register 5
- subl $8, %esp
- movl $__ZStL8__ioinit, %ecx
- call __ZNSt8ios_base4InitD1Ev
- leave
- .cfi_restore 5
- .cfi_def_cfa 4, 4
- ret
- .cfi_endproc
- LFE1871:
- .def __Z41__static_initialization_and_destruction_0ii; .scl 3; .type 32; .endef
- __Z41__static_initialization_and_destruction_0ii:
- LFB1870:
- .cfi_startproc
- pushl %ebp
- .cfi_def_cfa_offset 8
- .cfi_offset 5, -8
- movl %esp, %ebp
- .cfi_def_cfa_register 5
- subl $24, %esp
- cmpl $1, 8(%ebp)
- jne L18
- cmpl $65535, 12(%ebp)
- jne L18
- movl $__ZStL8__ioinit, %ecx
- call __ZNSt8ios_base4InitC1Ev
- movl $___tcf_0, (%esp)
- call _atexit
- L18:
- nop
- leave
- .cfi_restore 5
- .cfi_def_cfa 4, 4
- ret
- .cfi_endproc
- LFE1870:
- .def __GLOBAL__sub_I_main; .scl 3; .type 32; .endef
- __GLOBAL__sub_I_main:
- LFB1872:
- .cfi_startproc
- pushl %ebp
- .cfi_def_cfa_offset 8
- .cfi_offset 5, -8
- movl %esp, %ebp
- .cfi_def_cfa_register 5
- subl $24, %esp
- movl $65535, 4(%esp)
- movl $1, (%esp)
- call __Z41__static_initialization_and_destruction_0ii
- leave
- .cfi_restore 5
- .cfi_def_cfa 4, 4
- ret
- .cfi_endproc
- LFE1872:
- .section .ctors,"w"
- .align 4
- .long __GLOBAL__sub_I_main
- .ident "GCC: (MinGW.org GCC-6.3.0-1) 6.3.0"
- .def __ZNSolsEi; .scl 2; .type 32; .endef
- .def __ZNSt8ios_base4InitD1Ev; .scl 2; .type 32; .endef
- .def __ZNSt8ios_base4InitC1Ev; .scl 2; .type 32; .endef
- .def _atexit; .scl 2; .type 32; .endef
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement