x86
stringlengths 321
23.7M
| arm
stringlengths 335
24.4M
|
---|---|
.file "417219.c"
.intel_syntax noprefix
.text
.section .rodata
.LC0:
.string "./include/blog/%s"
.text
.type compare_files, @function
compare_files:
.LFB6:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
push rbx
sub rsp, 360
.cfi_offset 3, -24
mov QWORD PTR -360[rbp], rdi
mov QWORD PTR -368[rbp], rsi
mov rax, QWORD PTR fs:40
mov QWORD PTR -24[rbp], rax
xor eax, eax
mov rax, QWORD PTR -360[rbp]
mov rax, QWORD PTR [rax]
mov QWORD PTR -344[rbp], rax
mov rax, QWORD PTR -368[rbp]
mov rax, QWORD PTR [rax]
mov QWORD PTR -336[rbp], rax
mov rax, QWORD PTR -344[rbp]
add rax, 19
mov rdi, rax
call strlen@PLT
add rax, 16
mov rdi, rax
call malloc@PLT
mov QWORD PTR -328[rbp], rax
mov rax, QWORD PTR -344[rbp]
lea rbx, 19[rax]
mov rax, QWORD PTR -344[rbp]
add rax, 19
mov rdi, rax
call strlen@PLT
lea rsi, 16[rax]
mov rax, QWORD PTR -328[rbp]
mov rcx, rbx
lea rdx, .LC0[rip]
mov rdi, rax
mov eax, 0
call snprintf@PLT
lea rdx, -320[rbp]
mov rax, QWORD PTR -328[rbp]
mov rsi, rdx
mov rdi, rax
call stat@PLT
mov rax, QWORD PTR -328[rbp]
mov rdi, rax
call free@PLT
mov rax, QWORD PTR -336[rbp]
add rax, 19
mov rdi, rax
call strlen@PLT
add rax, 16
mov rdi, rax
call malloc@PLT
mov QWORD PTR -328[rbp], rax
mov rax, QWORD PTR -336[rbp]
lea rbx, 19[rax]
mov rax, QWORD PTR -336[rbp]
add rax, 19
mov rdi, rax
call strlen@PLT
lea rsi, 16[rax]
mov rax, QWORD PTR -328[rbp]
mov rcx, rbx
lea rdx, .LC0[rip]
mov rdi, rax
mov eax, 0
call snprintf@PLT
lea rdx, -176[rbp]
mov rax, QWORD PTR -328[rbp]
mov rsi, rdx
mov rdi, rax
call stat@PLT
mov rdx, QWORD PTR -232[rbp]
mov rax, QWORD PTR -88[rbp]
cmp rdx, rax
jge .L2
mov eax, 1
jmp .L5
.L2:
mov rdx, QWORD PTR -88[rbp]
mov rax, QWORD PTR -232[rbp]
cmp rdx, rax
jge .L4
mov eax, -1
jmp .L5
.L4:
mov eax, 0
.L5:
mov rcx, QWORD PTR -24[rbp]
sub rcx, QWORD PTR fs:40
je .L6
call __stack_chk_fail@PLT
.L6:
mov rbx, QWORD PTR -8[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size compare_files, .-compare_files
.section .rodata
.LC1:
.string "./include/blog"
.LC2:
.string ".entry"
.LC3:
.string "r"
.LC4:
.string "%Y-%m-%d %H:%M:%S"
.text
.globl get_blog_entries
.type get_blog_entries, @function
get_blog_entries:
.LFB7:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
push rbx
sub rsp, 296
.cfi_offset 3, -24
mov rax, QWORD PTR fs:40
mov QWORD PTR -24[rbp], rax
xor eax, eax
lea rdi, .LC1[rip]
call opendir@PLT
mov QWORD PTR -264[rbp], rax
mov esi, 8
mov edi, 1024
call calloc@PLT
mov QWORD PTR -256[rbp], rax
mov DWORD PTR -296[rbp], 0
jmp .L8
.L9:
mov eax, DWORD PTR -296[rbp]
cdqe
lea rdx, 0[0+rax*8]
mov rax, QWORD PTR -256[rbp]
add rax, rdx
mov rax, QWORD PTR [rax]
movzx eax, BYTE PTR 18[rax]
cmp al, 8
jne .L8
mov eax, DWORD PTR -296[rbp]
cdqe
lea rdx, 0[0+rax*8]
mov rax, QWORD PTR -256[rbp]
add rax, rdx
mov rax, QWORD PTR [rax]
add rax, 19
lea rsi, .LC2[rip]
mov rdi, rax
mov eax, 0
call strcasestr@PLT
test eax, eax
je .L8
add DWORD PTR -296[rbp], 1
.L8:
mov eax, DWORD PTR -296[rbp]
cdqe
lea rdx, 0[0+rax*8]
mov rax, QWORD PTR -256[rbp]
lea rbx, [rdx+rax]
mov rax, QWORD PTR -264[rbp]
mov rdi, rax
call readdir@PLT
mov QWORD PTR [rbx], rax
mov rax, QWORD PTR [rbx]
test rax, rax
jne .L9
mov eax, DWORD PTR -296[rbp]
movsx rsi, eax
mov rax, QWORD PTR -256[rbp]
lea rcx, compare_files[rip]
mov edx, 8
mov rdi, rax
call qsort@PLT
mov eax, DWORD PTR -296[rbp]
cdqe
mov esi, 24
mov rdi, rax
call calloc@PLT
mov QWORD PTR -248[rbp], rax
mov rax, QWORD PTR -248[rbp]
mov QWORD PTR -224[rbp], rax
mov eax, DWORD PTR -296[rbp]
mov DWORD PTR -216[rbp], eax
mov DWORD PTR -292[rbp], 0
mov DWORD PTR -288[rbp], 0
jmp .L10
.L22:
mov eax, DWORD PTR -288[rbp]
cdqe
lea rdx, 0[0+rax*8]
mov rax, QWORD PTR -256[rbp]
add rax, rdx
mov rax, QWORD PTR [rax]
add rax, 19
mov rdi, rax
call strlen@PLT
add rax, 16
mov rdi, rax
call malloc@PLT
mov QWORD PTR -240[rbp], rax
mov eax, DWORD PTR -288[rbp]
cdqe
lea rdx, 0[0+rax*8]
mov rax, QWORD PTR -256[rbp]
add rax, rdx
mov rax, QWORD PTR [rax]
lea rbx, 19[rax]
mov eax, DWORD PTR -288[rbp]
cdqe
lea rdx, 0[0+rax*8]
mov rax, QWORD PTR -256[rbp]
add rax, rdx
mov rax, QWORD PTR [rax]
add rax, 19
mov rdi, rax
call strlen@PLT
lea rsi, 16[rax]
mov rax, QWORD PTR -240[rbp]
mov rcx, rbx
lea rdx, .LC0[rip]
mov rdi, rax
mov eax, 0
call snprintf@PLT
mov rax, QWORD PTR -240[rbp]
lea rsi, .LC3[rip]
mov rdi, rax
call fopen@PLT
mov QWORD PTR -232[rbp], rax
mov QWORD PTR -280[rbp], 0
mov QWORD PTR -272[rbp], 0
jmp .L11
.L14:
cmp BYTE PTR -297[rbp], 10
jne .L12
cmp QWORD PTR -272[rbp], 0
jne .L13
mov rax, QWORD PTR -232[rbp]
mov rdi, rax
call ftell@PLT
sub rax, 1
add QWORD PTR -272[rbp], rax
mov rax, QWORD PTR -272[rbp]
sub QWORD PTR -280[rbp], rax
jmp .L12
.L13:
add QWORD PTR -280[rbp], 3
.L12:
add QWORD PTR -280[rbp], 1
.L11:
mov rax, QWORD PTR -232[rbp]
mov rdi, rax
call fgetc@PLT
mov BYTE PTR -297[rbp], al
cmp BYTE PTR -297[rbp], -1
jne .L14
add QWORD PTR -272[rbp], 1
add QWORD PTR -280[rbp], 1
mov rax, QWORD PTR -232[rbp]
mov rdi, rax
call rewind@PLT
cmp QWORD PTR -280[rbp], 0
jne .L15
mov rax, QWORD PTR -232[rbp]
mov rdi, rax
call fclose@PLT
jmp .L21
.L15:
mov rax, QWORD PTR -272[rbp]
mov rdi, rax
call malloc@PLT
mov QWORD PTR -208[rbp], rax
mov rax, QWORD PTR -280[rbp]
mov rdi, rax
call malloc@PLT
mov QWORD PTR -200[rbp], rax
mov edi, 22
call malloc@PLT
mov QWORD PTR -192[rbp], rax
lea rdx, -176[rbp]
mov rax, QWORD PTR -240[rbp]
mov rsi, rdx
mov rdi, rax
call stat@PLT
test eax, eax
jne .L17
lea rax, -176[rbp]
add rax, 88
mov rdi, rax
call localtime@PLT
mov rdx, rax
mov rax, QWORD PTR -192[rbp]
mov rcx, rdx
lea rdx, .LC4[rip]
mov esi, 22
mov rdi, rax
call strftime@PLT
mov rax, QWORD PTR -272[rbp]
mov ecx, eax
mov rax, QWORD PTR -208[rbp]
mov rdx, QWORD PTR -232[rbp]
mov esi, ecx
mov rdi, rax
call fgets@PLT
mov QWORD PTR -208[rbp], rax
mov rax, QWORD PTR -232[rbp]
mov rdi, rax
call fgetc@PLT
mov DWORD PTR -284[rbp], 0
jmp .L19
.L17:
mov rax, QWORD PTR -232[rbp]
mov rdi, rax
call fclose@PLT
jmp .L21
.L20:
mov rcx, QWORD PTR -200[rbp]
mov eax, DWORD PTR -284[rbp]
lea edx, 1[rax]
mov DWORD PTR -284[rbp], edx
cdqe
lea rdx, [rcx+rax]
movzx eax, BYTE PTR -297[rbp]
mov BYTE PTR [rdx], al
cmp BYTE PTR -297[rbp], 10
jne .L19
mov rcx, QWORD PTR -200[rbp]
mov eax, DWORD PTR -284[rbp]
lea edx, 1[rax]
mov DWORD PTR -284[rbp], edx
cdqe
add rax, rcx
mov BYTE PTR [rax], 9
mov rcx, QWORD PTR -200[rbp]
mov eax, DWORD PTR -284[rbp]
lea edx, 1[rax]
mov DWORD PTR -284[rbp], edx
cdqe
add rax, rcx
mov BYTE PTR [rax], 9
mov rcx, QWORD PTR -200[rbp]
mov eax, DWORD PTR -284[rbp]
lea edx, 1[rax]
mov DWORD PTR -284[rbp], edx
cdqe
add rax, rcx
mov BYTE PTR [rax], 9
.L19:
mov rax, QWORD PTR -232[rbp]
mov rdi, rax
call fgetc@PLT
mov BYTE PTR -297[rbp], al
cmp BYTE PTR -297[rbp], -1
jne .L20
mov rdx, QWORD PTR -200[rbp]
mov eax, DWORD PTR -284[rbp]
cdqe
add rax, rdx
mov BYTE PTR [rax], 0
mov rax, QWORD PTR -232[rbp]
mov rdi, rax
call fclose@PLT
mov eax, DWORD PTR -292[rbp]
lea edx, 1[rax]
mov DWORD PTR -292[rbp], edx
movsx rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
sal rax, 3
mov rdx, rax
mov rax, QWORD PTR -248[rbp]
lea rcx, [rdx+rax]
mov rax, QWORD PTR -208[rbp]
mov rdx, QWORD PTR -200[rbp]
mov QWORD PTR [rcx], rax
mov QWORD PTR 8[rcx], rdx
mov rax, QWORD PTR -192[rbp]
mov QWORD PTR 16[rcx], rax
.L21:
add DWORD PTR -288[rbp], 1
.L10:
mov eax, DWORD PTR -288[rbp]
cmp eax, DWORD PTR -296[rbp]
jl .L22
mov rax, QWORD PTR -224[rbp]
mov rdx, QWORD PTR -216[rbp]
mov rbx, QWORD PTR -24[rbp]
sub rbx, QWORD PTR fs:40
je .L24
call __stack_chk_fail@PLT
.L24:
mov rbx, QWORD PTR -8[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE7:
.size get_blog_entries, .-get_blog_entries
.section .rodata
.align 8
.LC5:
.string "Content-type: text/html;charset=UTF-8\n"
.align 8
.LC6:
.string "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">"
.LC7:
.string "<html>"
.LC8:
.string "\t<head>"
.align 8
.LC9:
.string "\t\t<title>Sanctuary of Slack</title>"
.align 8
.LC10:
.string "\t\t<meta http-equiv=\"content-type\" content=\"text/html; charset=UTF-8\">"
.align 8
.LC11:
.string "\t\t<meta http-equiv=\"pragma\" content=\"no-cache\">"
.align 8
.LC12:
.string "\t\t<meta http-equiv=\"expires\" content=\"-1\">"
.align 8
.LC13:
.string "\t\t<meta name=\"keywords\" content=\"slackware, slack, ware, church, of, bob, slacky, programming, libslack, libslack.so, pharmaceuticals, meds, medications, drugs\">"
.align 8
.LC14:
.string "\t\t<meta name=\"description\" content=\"Sanctuary of Slack\">"
.align 8
.LC15:
.string "\t\t<link rel=\"stylesheet\" type=\"text/css\" href=\"style/tan.css\" media=\"screen\">"
.LC16:
.string "\t</head>"
.LC17:
.string "\t<body>"
.LC18:
.string "\t\t<h1>Sanctuary of Slack</h1>"
.align 8
.LC19:
.string "\t\t<h5>We are very rare and mostly men.</h5>"
.align 8
.LC20:
.string "\t\t<p>Slack(n.): The state in which you need nothing, because you already have it.<br>-- Dobbs, 1956</p>"
.LC21:
.string "\t\t<div class=\"entry\">"
.align 8
.LC22:
.string "\t\t\t<div class=\"subject\">%s</div><br>\n"
.align 8
.LC23:
.string "\t\t\t<div class=\"content\">%s</div><br>\n"
.align 8
.LC24:
.string "\t\t\t<div class=\"date\">%s</div><br>\n"
.LC25:
.string "\t\t</div>"
.LC26:
.string "\t\t<div id=\"footer\">"
.align 8
.LC27:
.string "\t\t\t<a href=\"http://validator.w3.org/check?uri=referer\"><img src=\"http://www.w3.org/Icons/valid-html401\" alt=\"Valid HTML 4.01 Strict\" height=\"31\" width=\"88\"></a>"
.align 8
.LC28:
.string "\t\t\t<a href=\"http://jigsaw.w3.org/css-validator/check/referer\"><img style=\"border:0;width:88px;height:31px\" src=\"http://jigsaw.w3.org/css-validator/images/vcss\" alt=\"Valid CSS!\"></a><br><br>"
.align 8
.LC30:
.string "\t\t\tExecution time: %.3f<br><br>\n"
.align 8
.LC31:
.string "\t\t\tWebsite content released under a <b><a href=\"http://creativecommons.org/about/cc0\">Creative Commons CC0 Public Domain Dedication</a></b> except where an alternate is specified.<br><br>"
.LC32:
.string "\t</body>"
.LC33:
.string "</html>"
.text
.globl main
.type main, @function
main:
.LFB8:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 48
call clock@PLT
mov QWORD PTR -40[rbp], rax
lea rdi, .LC5[rip]
call puts@PLT
lea rdi, .LC6[rip]
call puts@PLT
lea rdi, .LC7[rip]
call puts@PLT
lea rdi, .LC8[rip]
call puts@PLT
lea rdi, .LC9[rip]
call puts@PLT
lea rdi, .LC10[rip]
call puts@PLT
lea rdi, .LC11[rip]
call puts@PLT
lea rdi, .LC12[rip]
call puts@PLT
lea rdi, .LC13[rip]
call puts@PLT
lea rdi, .LC14[rip]
call puts@PLT
lea rdi, .LC15[rip]
call puts@PLT
lea rdi, .LC16[rip]
call puts@PLT
lea rdi, .LC17[rip]
call puts@PLT
lea rdi, .LC18[rip]
call puts@PLT
lea rdi, .LC19[rip]
call puts@PLT
lea rdi, .LC20[rip]
call puts@PLT
call get_blog_entries
mov QWORD PTR -16[rbp], rax
mov QWORD PTR -8[rbp], rdx
mov DWORD PTR -44[rbp], 0
jmp .L26
.L28:
mov rcx, QWORD PTR -16[rbp]
mov eax, DWORD PTR -44[rbp]
movsx rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
sal rax, 3
add rax, rcx
mov rax, QWORD PTR 8[rax]
test rax, rax
je .L27
lea rdi, .LC21[rip]
call puts@PLT
mov rcx, QWORD PTR -16[rbp]
mov eax, DWORD PTR -44[rbp]
movsx rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
sal rax, 3
add rax, rcx
mov rax, QWORD PTR [rax]
mov rsi, rax
lea rdi, .LC22[rip]
mov eax, 0
call printf@PLT
mov rcx, QWORD PTR -16[rbp]
mov eax, DWORD PTR -44[rbp]
movsx rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
sal rax, 3
add rax, rcx
mov rax, QWORD PTR 8[rax]
mov rsi, rax
lea rdi, .LC23[rip]
mov eax, 0
call printf@PLT
mov rcx, QWORD PTR -16[rbp]
mov eax, DWORD PTR -44[rbp]
movsx rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
sal rax, 3
add rax, rcx
mov rax, QWORD PTR 16[rax]
mov rsi, rax
lea rdi, .LC24[rip]
mov eax, 0
call printf@PLT
lea rdi, .LC25[rip]
call puts@PLT
.L27:
add DWORD PTR -44[rbp], 1
.L26:
mov eax, DWORD PTR -8[rbp]
cmp DWORD PTR -44[rbp], eax
jl .L28
lea rdi, .LC26[rip]
call puts@PLT
lea rdi, .LC27[rip]
call puts@PLT
lea rdi, .LC28[rip]
call puts@PLT
call clock@PLT
mov QWORD PTR -32[rbp], rax
mov rax, QWORD PTR -32[rbp]
sub rax, QWORD PTR -40[rbp]
pxor xmm0, xmm0
cvtsi2sd xmm0, rax
movsd xmm1, QWORD PTR .LC29[rip]
divsd xmm0, xmm1
movsd QWORD PTR -24[rbp], xmm0
mov rax, QWORD PTR -24[rbp]
movq xmm0, rax
lea rdi, .LC30[rip]
mov eax, 1
call printf@PLT
lea rdi, .LC31[rip]
call puts@PLT
lea rdi, .LC25[rip]
call puts@PLT
lea rdi, .LC32[rip]
call puts@PLT
lea rdi, .LC33[rip]
mov eax, 0
call printf@PLT
mov eax, 0
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE8:
.size main, .-main
.section .rodata
.align 8
.LC29:
.long 0
.long 1093567616
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "417219.c"
.text
.section .rodata
.align 2
.LC0:
.ascii "./include/blog/%s\000"
.align 2
.LC1:
.word __stack_chk_guard
.text
.align 2
.syntax unified
.arm
.fpu softvfp
.type compare_files, %function
compare_files:
@ args = 0, pretend = 0, frame = 208
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #208
str r0, [fp, #-208]
str r1, [fp, #-212]
ldr r3, .L7
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
ldr r3, [fp, #-208]
ldr r3, [r3]
str r3, [fp, #-200]
ldr r3, [fp, #-212]
ldr r3, [r3]
str r3, [fp, #-196]
ldr r3, [fp, #-200]
add r3, r3, #11
mov r0, r3
bl strlen
mov r3, r0
add r3, r3, #16
mov r0, r3
bl malloc
mov r3, r0
str r3, [fp, #-192]
ldr r3, [fp, #-200]
add r3, r3, #11
mov r0, r3
bl strlen
mov r3, r0
add r1, r3, #16
ldr r3, [fp, #-200]
add r3, r3, #11
ldr r2, .L7+4
ldr r0, [fp, #-192]
bl snprintf
sub r3, fp, #188
mov r1, r3
ldr r0, [fp, #-192]
bl stat
ldr r0, [fp, #-192]
bl free
ldr r3, [fp, #-196]
add r3, r3, #11
mov r0, r3
bl strlen
mov r3, r0
add r3, r3, #16
mov r0, r3
bl malloc
mov r3, r0
str r3, [fp, #-192]
ldr r3, [fp, #-196]
add r3, r3, #11
mov r0, r3
bl strlen
mov r3, r0
add r1, r3, #16
ldr r3, [fp, #-196]
add r3, r3, #11
ldr r2, .L7+4
ldr r0, [fp, #-192]
bl snprintf
sub r3, fp, #100
mov r1, r3
ldr r0, [fp, #-192]
bl stat
ldr r2, [fp, #-124]
ldr r3, [fp, #-36]
cmp r2, r3
bge .L2
mov r3, #1
b .L5
.L2:
ldr r2, [fp, #-36]
ldr r3, [fp, #-124]
cmp r2, r3
bge .L4
mvn r3, #0
b .L5
.L4:
mov r3, #0
.L5:
ldr r2, .L7
ldr r1, [r2]
ldr r2, [fp, #-8]
eors r1, r2, r1
mov r2, #0
beq .L6
bl __stack_chk_fail
.L6:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L8:
.align 2
.L7:
.word .LC1
.word .LC0
.size compare_files, .-compare_files
.section .rodata
.align 2
.LC2:
.ascii "./include/blog\000"
.align 2
.LC3:
.ascii ".entry\000"
.align 2
.LC4:
.ascii "r\000"
.align 2
.LC5:
.word __stack_chk_guard
.text
.align 2
.global get_blog_entries
.syntax unified
.arm
.fpu softvfp
.type get_blog_entries, %function
get_blog_entries:
@ args = 0, pretend = 0, frame = 152
@ frame_needed = 1, uses_anonymous_args = 0
push {r4, fp, lr}
add fp, sp, #8
sub sp, sp, #156
str r0, [fp, #-160]
ldr r3, .L20
ldr r3, [r3]
str r3, [fp, #-16]
mov r3,#0
ldr r0, .L20+4
bl opendir
str r0, [fp, #-124]
mov r1, #4
mov r0, #1024
bl calloc
mov r3, r0
str r3, [fp, #-120]
mov r3, #0
str r3, [fp, #-116]
b .L10
.L11:
ldr r3, [fp, #-116]
lsl r3, r3, #2
ldr r2, [fp, #-120]
add r3, r2, r3
ldr r3, [r3]
ldrb r3, [r3, #10] @ zero_extendqisi2
cmp r3, #8
bne .L10
ldr r3, [fp, #-116]
lsl r3, r3, #2
ldr r2, [fp, #-120]
add r3, r2, r3
ldr r3, [r3]
add r3, r3, #11
ldr r1, .L20+8
mov r0, r3
bl strcasestr
mov r3, r0
cmp r3, #0
beq .L10
ldr r3, [fp, #-116]
add r3, r3, #1
str r3, [fp, #-116]
.L10:
ldr r3, [fp, #-116]
lsl r3, r3, #2
ldr r2, [fp, #-120]
add r4, r2, r3
ldr r0, [fp, #-124]
bl readdir
mov r3, r0
str r3, [r4]
ldr r3, [r4]
cmp r3, #0
bne .L11
ldr r1, [fp, #-116]
ldr r3, .L20+12
mov r2, #4
ldr r0, [fp, #-120]
bl qsort
ldr r3, [fp, #-116]
mov r1, #12
mov r0, r3
bl calloc
mov r3, r0
str r3, [fp, #-112]
ldr r3, [fp, #-112]
str r3, [fp, #-108]
ldr r3, [fp, #-116]
str r3, [fp, #-104]
mov r3, #0
str r3, [fp, #-132]
mov r3, #0
str r3, [fp, #-128]
ldr r2, [fp, #-128]
ldr r3, [fp, #-116]
cmp r2, r3
bge .L12
ldr r3, [fp, #-128]
lsl r3, r3, #2
ldr r2, [fp, #-120]
add r3, r2, r3
ldr r3, [r3]
add r3, r3, #11
mov r0, r3
bl strlen
mov r3, r0
add r3, r3, #16
mov r0, r3
bl malloc
mov r3, r0
str r3, [fp, #-136]
ldr r3, [fp, #-128]
lsl r3, r3, #2
ldr r2, [fp, #-120]
add r3, r2, r3
ldr r3, [r3]
add r3, r3, #11
mov r0, r3
bl strlen
mov r3, r0
add r1, r3, #16
ldr r3, [fp, #-128]
lsl r3, r3, #2
ldr r2, [fp, #-120]
add r3, r2, r3
ldr r3, [r3]
add r3, r3, #11
ldr r2, .L20+16
ldr r0, [fp, #-136]
bl snprintf
ldr r1, .L20+20
ldr r0, [fp, #-136]
bl fopen
str r0, [fp, #-148]
mov r3, #0
str r3, [fp, #-144]
mov r3, #0
str r3, [fp, #-140]
b .L13
.L19:
ldr r3, [fp, #-140]
cmp r3, #0
bne .L15
ldr r0, [fp, #-148]
bl ftell
mov r3, r0
sub r3, r3, #1
mov r2, r3
ldr r3, [fp, #-140]
add r3, r3, r2
str r3, [fp, #-140]
ldr r2, [fp, #-144]
ldr r3, [fp, #-140]
sub r3, r2, r3
str r3, [fp, #-144]
b .L14
.L15:
ldr r3, [fp, #-144]
add r3, r3, #3
str r3, [fp, #-144]
.L14:
ldr r3, [fp, #-144]
add r3, r3, #1
str r3, [fp, #-144]
.L13:
ldr r0, [fp, #-148]
bl fgetc
mov r3, r0
strb r3, [fp, #-149]
ldrb r3, [fp, #-149] @ zero_extendqisi2
cmp r3, #10
bne .L14
b .L19
.L12:
ldr r3, [fp, #-160]
mov r2, r3
sub r3, fp, #108
ldm r3, {r0, r1}
stm r2, {r0, r1}
ldr r3, .L20
ldr r2, [r3]
ldr r3, [fp, #-16]
eors r2, r3, r2
mov r3, #0
beq .L18
bl __stack_chk_fail
.L18:
ldr r0, [fp, #-160]
sub sp, fp, #8
@ sp needed
pop {r4, fp, pc}
.L21:
.align 2
.L20:
.word .LC5
.word .LC2
.word .LC3
.word compare_files
.word .LC0
.word .LC4
.size get_blog_entries, .-get_blog_entries
.section .rodata
.align 2
.LC6:
.ascii "Content-type: text/html;charset=UTF-8\012\000"
.align 2
.LC7:
.ascii "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\""
.ascii " \"http://www.w3.org/TR/html4/strict.dtd\">\000"
.align 2
.LC8:
.ascii "<html>\000"
.align 2
.LC9:
.ascii "\011<head>\000"
.align 2
.LC10:
.ascii "\011\011<title>Sanctuary of Slack</title>\000"
.align 2
.LC11:
.ascii "\011\011<meta http-equiv=\"content-type\" content=\""
.ascii "text/html; charset=UTF-8\">\000"
.align 2
.LC12:
.ascii "\011\011<meta http-equiv=\"pragma\" content=\"no-ca"
.ascii "che\">\000"
.align 2
.LC13:
.ascii "\011\011<meta http-equiv=\"expires\" content=\"-1\""
.ascii ">\000"
.align 2
.LC14:
.ascii "\011\011<meta name=\"keywords\" content=\"slackware"
.ascii ", slack, ware, church, of, bob, slacky, programming"
.ascii ", libslack, libslack.so, pharmaceuticals, meds, med"
.ascii "ications, drugs\">\000"
.align 2
.LC15:
.ascii "\011\011<meta name=\"description\" content=\"Sanctu"
.ascii "ary of Slack\">\000"
.align 2
.LC16:
.ascii "\011\011<link rel=\"stylesheet\" type=\"text/css\" "
.ascii "href=\"style/tan.css\" media=\"screen\">\000"
.align 2
.LC17:
.ascii "\011</head>\000"
.align 2
.LC18:
.ascii "\011<body>\000"
.align 2
.LC19:
.ascii "\011\011<h1>Sanctuary of Slack</h1>\000"
.align 2
.LC20:
.ascii "\011\011<h5>We are very rare and mostly men.</h5>\000"
.align 2
.LC21:
.ascii "\011\011<p>Slack(n.): The state in which you need n"
.ascii "othing, because you already have it.<br>-- Dobbs, 1"
.ascii "956</p>\000"
.align 2
.LC22:
.ascii "\011\011<div class=\"entry\">\000"
.align 2
.LC23:
.ascii "\011\011\011<div class=\"subject\">%s</div><br>\012"
.ascii "\000"
.align 2
.LC24:
.ascii "\011\011\011<div class=\"content\">%s</div><br>\012"
.ascii "\000"
.align 2
.LC25:
.ascii "\011\011\011<div class=\"date\">%s</div><br>\012\000"
.align 2
.LC26:
.ascii "\011\011</div>\000"
.align 2
.LC27:
.ascii "\011\011<div id=\"footer\">\000"
.align 2
.LC28:
.ascii "\011\011\011<a href=\"http://validator.w3.org/check"
.ascii "?uri=referer\"><img src=\"http://www.w3.org/Icons/v"
.ascii "alid-html401\" alt=\"Valid HTML 4.01 Strict\" heigh"
.ascii "t=\"31\" width=\"88\"></a>\000"
.align 2
.LC29:
.ascii "\011\011\011<a href=\"http://jigsaw.w3.org/css-vali"
.ascii "dator/check/referer\"><img style=\"border:0;width:8"
.ascii "8px;height:31px\" src=\"http://jigsaw.w3.org/css-va"
.ascii "lidator/images/vcss\" alt=\"Valid CSS!\"></a><br><b"
.ascii "r>\000"
.global __aeabi_i2d
.global __aeabi_ddiv
.align 2
.LC30:
.ascii "\011\011\011Execution time: %.3f<br><br>\012\000"
.align 2
.LC31:
.ascii "\011\011\011Website content released under a <b><a "
.ascii "href=\"http://creativecommons.org/about/cc0\">Creat"
.ascii "ive Commons CC0 Public Domain Dedication</a></b> ex"
.ascii "cept where an alternate is specified.<br><br>\000"
.align 2
.LC32:
.ascii "\011</body>\000"
.align 2
.LC33:
.ascii "</html>\000"
.align 2
.LC34:
.word __stack_chk_guard
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 40
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #40
ldr r3, .L28
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
bl clock
str r0, [fp, #-36]
ldr r0, .L28+4
bl puts
ldr r0, .L28+8
bl puts
ldr r0, .L28+12
bl puts
ldr r0, .L28+16
bl puts
ldr r0, .L28+20
bl puts
ldr r0, .L28+24
bl puts
ldr r0, .L28+28
bl puts
ldr r0, .L28+32
bl puts
ldr r0, .L28+36
bl puts
ldr r0, .L28+40
bl puts
ldr r0, .L28+44
bl puts
ldr r0, .L28+48
bl puts
ldr r0, .L28+52
bl puts
ldr r0, .L28+56
bl puts
ldr r0, .L28+60
bl puts
ldr r0, .L28+64
bl puts
sub r3, fp, #16
mov r0, r3
bl get_blog_entries
mov r3, #0
str r3, [fp, #-40]
b .L23
.L25:
ldr r1, [fp, #-16]
ldr r2, [fp, #-40]
mov r3, r2
lsl r3, r3, #1
add r3, r3, r2
lsl r3, r3, #2
add r3, r1, r3
ldr r3, [r3, #4]
cmp r3, #0
beq .L24
ldr r0, .L28+68
bl puts
ldr r1, [fp, #-16]
ldr r2, [fp, #-40]
mov r3, r2
lsl r3, r3, #1
add r3, r3, r2
lsl r3, r3, #2
add r3, r1, r3
ldr r3, [r3]
mov r1, r3
ldr r0, .L28+72
bl printf
ldr r1, [fp, #-16]
ldr r2, [fp, #-40]
mov r3, r2
lsl r3, r3, #1
add r3, r3, r2
lsl r3, r3, #2
add r3, r1, r3
ldr r3, [r3, #4]
mov r1, r3
ldr r0, .L28+76
bl printf
ldr r1, [fp, #-16]
ldr r2, [fp, #-40]
mov r3, r2
lsl r3, r3, #1
add r3, r3, r2
lsl r3, r3, #2
add r3, r1, r3
ldr r3, [r3, #8]
mov r1, r3
ldr r0, .L28+80
bl printf
ldr r0, .L28+84
bl puts
.L24:
ldr r3, [fp, #-40]
add r3, r3, #1
str r3, [fp, #-40]
.L23:
ldr r3, [fp, #-12]
ldr r2, [fp, #-40]
cmp r2, r3
blt .L25
ldr r0, .L28+88
bl puts
ldr r0, .L28+92
bl puts
ldr r0, .L28+96
bl puts
bl clock
str r0, [fp, #-32]
ldr r2, [fp, #-32]
ldr r3, [fp, #-36]
sub r3, r2, r3
mov r0, r3
bl __aeabi_i2d
mov r2, #0
ldr r3, .L28+100
bl __aeabi_ddiv
mov r2, r0
mov r3, r1
str r2, [fp, #-28]
str r3, [fp, #-24]
sub r3, fp, #28
ldmia r3, {r2-r3}
ldr r0, .L28+104
bl printf
ldr r0, .L28+108
bl puts
ldr r0, .L28+84
bl puts
ldr r0, .L28+112
bl puts
ldr r0, .L28+116
bl printf
mov r3, #0
ldr r2, .L28
ldr r1, [r2]
ldr r2, [fp, #-8]
eors r1, r2, r1
mov r2, #0
beq .L27
bl __stack_chk_fail
.L27:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L29:
.align 2
.L28:
.word .LC34
.word .LC6
.word .LC7
.word .LC8
.word .LC9
.word .LC10
.word .LC11
.word .LC12
.word .LC13
.word .LC14
.word .LC15
.word .LC16
.word .LC17
.word .LC18
.word .LC19
.word .LC20
.word .LC21
.word .LC22
.word .LC23
.word .LC24
.word .LC25
.word .LC26
.word .LC27
.word .LC28
.word .LC29
.word 1093567616
.word .LC30
.word .LC31
.word .LC32
.word .LC33
.size main, .-main
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "67182.c"
.intel_syntax noprefix
.text
.section .rodata
.LC0:
.string "%lf"
.LC1:
.string "%.2f \n"
.text
.globl main
.type main, @function
main:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
lea rax, -16[rbp]
mov rsi, rax
lea rdi, .LC0[rip]
mov eax, 0
call __isoc99_scanf@PLT
mov rax, QWORD PTR -16[rbp]
movq xmm0, rax
call raizq
movq rax, xmm0
movq xmm0, rax
lea rdi, .LC1[rip]
mov eax, 1
call printf@PLT
mov eax, 0
mov rdx, QWORD PTR -8[rbp]
sub rdx, QWORD PTR fs:40
je .L3
call __stack_chk_fail@PLT
.L3:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size main, .-main
.globl raizq
.type raizq, @function
raizq:
.LFB1:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
movsd QWORD PTR -24[rbp], xmm0
movsd xmm0, QWORD PTR -24[rbp]
movsd QWORD PTR -8[rbp], xmm0
mov DWORD PTR -12[rbp], 0
jmp .L5
.L6:
movsd xmm0, QWORD PTR -8[rbp]
movsd xmm2, QWORD PTR .LC2[rip]
movapd xmm1, xmm0
divsd xmm1, xmm2
movsd xmm0, QWORD PTR -8[rbp]
movapd xmm2, xmm0
addsd xmm2, xmm0
movsd xmm0, QWORD PTR -24[rbp]
divsd xmm0, xmm2
addsd xmm0, xmm1
movsd QWORD PTR -8[rbp], xmm0
add DWORD PTR -12[rbp], 1
.L5:
cmp DWORD PTR -12[rbp], 199
jle .L6
movsd xmm0, QWORD PTR -8[rbp]
movq rax, xmm0
movq xmm0, rax
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE1:
.size raizq, .-raizq
.section .rodata
.align 8
.LC2:
.long 0
.long 1073741824
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "67182.c"
.text
.section .rodata
.align 2
.LC0:
.ascii "%lf\000"
.align 2
.LC1:
.ascii "%.2f \012\000"
.align 2
.LC2:
.word __stack_chk_guard
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #16
ldr r3, .L4
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
sub r3, fp, #20
mov r1, r3
ldr r0, .L4+4
bl __isoc99_scanf
sub r3, fp, #20
ldmia r3, {r2-r3}
mov r0, r2
mov r1, r3
bl raizq
mov r2, r0
mov r3, r1
ldr r0, .L4+8
bl printf
mov r3, #0
ldr r2, .L4
ldr r1, [r2]
ldr r2, [fp, #-8]
eors r1, r2, r1
mov r2, #0
beq .L3
bl __stack_chk_fail
.L3:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L5:
.align 2
.L4:
.word .LC2
.word .LC0
.word .LC1
.size main, .-main
.global __aeabi_ddiv
.global __aeabi_dadd
.align 2
.global raizq
.syntax unified
.arm
.fpu softvfp
.type raizq, %function
raizq:
@ args = 0, pretend = 0, frame = 24
@ frame_needed = 1, uses_anonymous_args = 0
push {r4, r5, fp, lr}
add fp, sp, #12
sub sp, sp, #24
str r0, [fp, #-36]
str r1, [fp, #-32]
sub r3, fp, #36
ldmia r3, {r2-r3}
str r2, [fp, #-20]
str r3, [fp, #-16]
mov r3, #0
str r3, [fp, #-24]
b .L7
.L8:
mov r2, #0
mov r3, #1073741824
sub r1, fp, #20
ldmia r1, {r0-r1}
bl __aeabi_ddiv
mov r2, r0
mov r3, r1
mov r4, r2
mov r5, r3
sub r1, fp, #20
ldmia r1, {r0-r1}
mov r2, r0
mov r3, r1
bl __aeabi_dadd
mov r2, r0
mov r3, r1
sub r1, fp, #36
ldmia r1, {r0-r1}
bl __aeabi_ddiv
mov r2, r0
mov r3, r1
mov r0, r4
mov r1, r5
bl __aeabi_dadd
mov r2, r0
mov r3, r1
str r2, [fp, #-20]
str r3, [fp, #-16]
ldr r3, [fp, #-24]
add r3, r3, #1
str r3, [fp, #-24]
.L7:
ldr r3, [fp, #-24]
cmp r3, #199
ble .L8
sub r3, fp, #20
ldmia r3, {r2-r3}
mov r0, r2
mov r1, r3
sub sp, fp, #12
@ sp needed
pop {r4, r5, fp, pc}
.size raizq, .-raizq
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "579838.c"
.intel_syntax noprefix
.text
.globl lrintf
.type lrintf, @function
lrintf:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 32
movss DWORD PTR -20[rbp], xmm0
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
mov QWORD PTR -16[rbp], 0
movss xmm1, DWORD PTR -20[rbp]
movss DWORD PTR -24[rbp], xmm1
fld DWORD PTR -24[rbp]
#APP
# 27 "the_stack_data/579838.c" 1
fistpl QWORD PTR -16[rbp]
# 0 "" 2
#NO_APP
mov rax, QWORD PTR -16[rbp]
mov rdx, QWORD PTR -8[rbp]
sub rdx, QWORD PTR fs:40
je .L3
call __stack_chk_fail@PLT
.L3:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size lrintf, .-lrintf
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "579838.c"
.text
.syntax divided
.def __lrintf_internal; .scl 2; .type 32; .endef
.text
.align 4
.globl __lrintf_internal
__lrintf_internal:
vcvtr.s32.f32 s0, s0
fmrs r0, s0
bx lr
.arm
.syntax unified
.align 2
.global lrintf
.syntax unified
.arm
.fpu softvfp
.type lrintf, %function
lrintf:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #16
str r0, [fp, #-16] @ float
mov r3, #0
str r3, [fp, #-8]
ldr r0, [fp, #-16] @ float
bl __lrintf_internal
str r0, [fp, #-8]
ldr r3, [fp, #-8]
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.size lrintf, .-lrintf
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "751028.c"
.intel_syntax noprefix
.text
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "751028.c"
.text
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "1002849.c"
.intel_syntax noprefix
.text
.local a
.comm a,16000000,32
.local b
.comm b,16000000,32
.local c
.comm c,16000000,32
.section .rodata
.LC0:
.string "Copy: "
.LC1:
.string "Scale: "
.LC2:
.string "Add: "
.LC3:
.string "Triad: "
.section .data.rel.local,"aw"
.align 32
.type label, @object
.size label, 32
label:
.quad .LC0
.quad .LC1
.quad .LC2
.quad .LC3
.data
.align 32
.type bytes, @object
.size bytes, 32
bytes:
.long 0
.long 1098810496
.long 0
.long 1098810496
.long 0
.long 1099359072
.long 0
.long 1099359072
.section .rodata
.align 8
.LC10:
.string "Function Rate (MB/s) Avg time Min time Max time"
.align 8
.LC15:
.string "%s%4d.%06d %4d.%06d %4d.%06d %4d.%06d\n"
.align 8
.LC16:
.string "-------------------------------------------------------------"
.text
.globl streammain
.type streammain, @function
streammain:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
push r12
push rbx
sub rsp, 464
.cfi_offset 12, -24
.cfi_offset 3, -32
mov rax, QWORD PTR fs:40
mov QWORD PTR -24[rbp], rax
xor eax, eax
mov QWORD PTR -448[rbp], 0
mov QWORD PTR -440[rbp], 0
mov QWORD PTR -432[rbp], 0
mov QWORD PTR -424[rbp], 0
mov QWORD PTR -416[rbp], 0
mov QWORD PTR -408[rbp], 0
mov QWORD PTR -400[rbp], 0
mov QWORD PTR -392[rbp], 0
movsd xmm0, QWORD PTR .LC4[rip]
movsd QWORD PTR -384[rbp], xmm0
movsd xmm0, QWORD PTR .LC4[rip]
movsd QWORD PTR -376[rbp], xmm0
movsd xmm0, QWORD PTR .LC4[rip]
movsd QWORD PTR -368[rbp], xmm0
movsd xmm0, QWORD PTR .LC4[rip]
movsd QWORD PTR -360[rbp], xmm0
mov DWORD PTR -472[rbp], 8
mov ebx, 0
jmp .L2
.L3:
movsx rax, ebx
lea rdx, 0[0+rax*8]
lea rax, a[rip]
movsd xmm0, QWORD PTR .LC5[rip]
movsd QWORD PTR [rdx+rax], xmm0
movsx rax, ebx
lea rdx, 0[0+rax*8]
lea rax, b[rip]
movsd xmm0, QWORD PTR .LC6[rip]
movsd QWORD PTR [rdx+rax], xmm0
movsx rax, ebx
lea rdx, 0[0+rax*8]
lea rax, c[rip]
pxor xmm0, xmm0
movsd QWORD PTR [rdx+rax], xmm0
add ebx, 1
.L2:
cmp ebx, 1999999
jle .L3
mov eax, 0
call checktick
mov DWORD PTR -468[rbp], eax
cmp DWORD PTR -468[rbp], 0
jg .L4
mov DWORD PTR -468[rbp], 1
.L4:
mov eax, 0
call mysecond@PLT
movq rax, xmm0
mov QWORD PTR -464[rbp], rax
mov ebx, 0
jmp .L5
.L6:
movsx rax, ebx
lea rdx, 0[0+rax*8]
lea rax, a[rip]
movsd xmm0, QWORD PTR [rdx+rax]
addsd xmm0, xmm0
movsx rax, ebx
lea rdx, 0[0+rax*8]
lea rax, a[rip]
movsd QWORD PTR [rdx+rax], xmm0
add ebx, 1
.L5:
cmp ebx, 1999999
jle .L6
mov eax, 0
call mysecond@PLT
movq rax, xmm0
movq xmm1, rax
subsd xmm1, QWORD PTR -464[rbp]
movsd xmm0, QWORD PTR .LC8[rip]
mulsd xmm0, xmm1
movsd QWORD PTR -464[rbp], xmm0
movsd xmm0, QWORD PTR .LC9[rip]
movsd QWORD PTR -456[rbp], xmm0
mov r12d, 0
jmp .L7
.L16:
mov eax, 0
call mysecond@PLT
movq rax, xmm0
movsx rdx, r12d
mov QWORD PTR -352[rbp+rdx*8], rax
mov ebx, 0
jmp .L8
.L9:
movsx rax, ebx
lea rdx, 0[0+rax*8]
lea rax, a[rip]
movsd xmm0, QWORD PTR [rdx+rax]
movsx rax, ebx
lea rdx, 0[0+rax*8]
lea rax, c[rip]
movsd QWORD PTR [rdx+rax], xmm0
add ebx, 1
.L8:
cmp ebx, 1999999
jle .L9
mov eax, 0
call mysecond@PLT
movq rax, xmm0
movsx rdx, r12d
movsd xmm1, QWORD PTR -352[rbp+rdx*8]
movq xmm0, rax
subsd xmm0, xmm1
movsx rax, r12d
movsd QWORD PTR -352[rbp+rax*8], xmm0
mov eax, 0
call mysecond@PLT
movq rax, xmm0
movsx rdx, r12d
add rdx, 10
mov QWORD PTR -352[rbp+rdx*8], rax
mov ebx, 0
jmp .L10
.L11:
movsx rax, ebx
lea rdx, 0[0+rax*8]
lea rax, c[rip]
movsd xmm0, QWORD PTR [rdx+rax]
mulsd xmm0, QWORD PTR -456[rbp]
movsx rax, ebx
lea rdx, 0[0+rax*8]
lea rax, b[rip]
movsd QWORD PTR [rdx+rax], xmm0
add ebx, 1
.L10:
cmp ebx, 1999999
jle .L11
mov eax, 0
call mysecond@PLT
movq rax, xmm0
movsx rdx, r12d
add rdx, 10
movsd xmm1, QWORD PTR -352[rbp+rdx*8]
movq xmm0, rax
subsd xmm0, xmm1
movsx rax, r12d
add rax, 10
movsd QWORD PTR -352[rbp+rax*8], xmm0
mov eax, 0
call mysecond@PLT
movq rax, xmm0
movsx rdx, r12d
add rdx, 20
mov QWORD PTR -352[rbp+rdx*8], rax
mov ebx, 0
jmp .L12
.L13:
movsx rax, ebx
lea rdx, 0[0+rax*8]
lea rax, a[rip]
movsd xmm1, QWORD PTR [rdx+rax]
movsx rax, ebx
lea rdx, 0[0+rax*8]
lea rax, b[rip]
movsd xmm0, QWORD PTR [rdx+rax]
addsd xmm0, xmm1
movsx rax, ebx
lea rdx, 0[0+rax*8]
lea rax, c[rip]
movsd QWORD PTR [rdx+rax], xmm0
add ebx, 1
.L12:
cmp ebx, 1999999
jle .L13
mov eax, 0
call mysecond@PLT
movq rax, xmm0
movsx rdx, r12d
add rdx, 20
movsd xmm1, QWORD PTR -352[rbp+rdx*8]
movq xmm0, rax
subsd xmm0, xmm1
movsx rax, r12d
add rax, 20
movsd QWORD PTR -352[rbp+rax*8], xmm0
mov eax, 0
call mysecond@PLT
movq rax, xmm0
movsx rdx, r12d
add rdx, 30
mov QWORD PTR -352[rbp+rdx*8], rax
mov ebx, 0
jmp .L14
.L15:
movsx rax, ebx
lea rdx, 0[0+rax*8]
lea rax, b[rip]
movsd xmm1, QWORD PTR [rdx+rax]
movsx rax, ebx
lea rdx, 0[0+rax*8]
lea rax, c[rip]
movsd xmm0, QWORD PTR [rdx+rax]
mulsd xmm0, QWORD PTR -456[rbp]
addsd xmm0, xmm1
movsx rax, ebx
lea rdx, 0[0+rax*8]
lea rax, a[rip]
movsd QWORD PTR [rdx+rax], xmm0
add ebx, 1
.L14:
cmp ebx, 1999999
jle .L15
mov eax, 0
call mysecond@PLT
movq rax, xmm0
movsx rdx, r12d
add rdx, 30
movsd xmm1, QWORD PTR -352[rbp+rdx*8]
movq xmm0, rax
subsd xmm0, xmm1
movsx rax, r12d
add rax, 30
movsd QWORD PTR -352[rbp+rax*8], xmm0
add r12d, 1
.L7:
cmp r12d, 9
jle .L16
mov r12d, 1
jmp .L17
.L26:
mov ebx, 0
jmp .L18
.L25:
movsx rax, ebx
movsd xmm1, QWORD PTR -448[rbp+rax*8]
movsx rcx, r12d
movsx rdx, ebx
mov rax, rdx
sal rax, 2
add rax, rdx
add rax, rax
add rax, rcx
movsd xmm0, QWORD PTR -352[rbp+rax*8]
addsd xmm0, xmm1
movsx rax, ebx
movsd QWORD PTR -448[rbp+rax*8], xmm0
movsx rax, ebx
movsd xmm1, QWORD PTR -384[rbp+rax*8]
movsx rcx, r12d
movsx rdx, ebx
mov rax, rdx
sal rax, 2
add rax, rdx
add rax, rax
add rax, rcx
movsd xmm0, QWORD PTR -352[rbp+rax*8]
comisd xmm0, xmm1
jbe .L33
movsx rax, ebx
movsd xmm0, QWORD PTR -384[rbp+rax*8]
jmp .L21
.L33:
movsx rcx, r12d
movsx rdx, ebx
mov rax, rdx
sal rax, 2
add rax, rdx
add rax, rax
add rax, rcx
movsd xmm0, QWORD PTR -352[rbp+rax*8]
.L21:
movsx rax, ebx
movsd QWORD PTR -384[rbp+rax*8], xmm0
movsx rax, ebx
movsd xmm0, QWORD PTR -416[rbp+rax*8]
movsx rcx, r12d
movsx rdx, ebx
mov rax, rdx
sal rax, 2
add rax, rdx
add rax, rax
add rax, rcx
movsd xmm1, QWORD PTR -352[rbp+rax*8]
comisd xmm0, xmm1
jbe .L34
movsx rax, ebx
movsd xmm0, QWORD PTR -416[rbp+rax*8]
jmp .L24
.L34:
movsx rcx, r12d
movsx rdx, ebx
mov rax, rdx
sal rax, 2
add rax, rdx
add rax, rax
add rax, rcx
movsd xmm0, QWORD PTR -352[rbp+rax*8]
.L24:
movsx rax, ebx
movsd QWORD PTR -416[rbp+rax*8], xmm0
add ebx, 1
.L18:
cmp ebx, 3
jle .L25
add r12d, 1
.L17:
cmp r12d, 9
jle .L26
lea rdi, .LC10[rip]
call puts@PLT
mov ebx, 0
jmp .L27
.L28:
movsx rax, ebx
movsd xmm0, QWORD PTR -448[rbp+rax*8]
movsd xmm1, QWORD PTR .LC11[rip]
divsd xmm0, xmm1
movsx rax, ebx
movsd QWORD PTR -448[rbp+rax*8], xmm0
movsx rax, ebx
movsd xmm0, QWORD PTR -416[rbp+rax*8]
pxor xmm1, xmm1
cvtsd2ss xmm1, xmm0
movss xmm0, DWORD PTR .LC12[rip]
mulss xmm0, xmm1
pxor xmm1, xmm1
cvtss2sd xmm1, xmm0
movsd xmm0, QWORD PTR .LC13[rip]
addsd xmm0, xmm1
cvttsd2si eax, xmm0
movsx rdx, eax
imul rdx, rdx, 1125899907
shr rdx, 32
sar edx, 18
mov esi, eax
sar esi, 31
mov ecx, edx
sub ecx, esi
imul edx, ecx, 1000000
sub eax, edx
mov ecx, eax
movsx rax, ebx
movsd xmm0, QWORD PTR -416[rbp+rax*8]
cvttsd2si r9d, xmm0
movsx rax, ebx
movsd xmm0, QWORD PTR -384[rbp+rax*8]
pxor xmm1, xmm1
cvtsd2ss xmm1, xmm0
movss xmm0, DWORD PTR .LC12[rip]
mulss xmm0, xmm1
pxor xmm1, xmm1
cvtss2sd xmm1, xmm0
movsd xmm0, QWORD PTR .LC13[rip]
addsd xmm0, xmm1
cvttsd2si eax, xmm0
movsx rdx, eax
imul rdx, rdx, 1125899907
shr rdx, 32
sar edx, 18
mov esi, eax
sar esi, 31
sub edx, esi
imul esi, edx, 1000000
sub eax, esi
mov edx, eax
movsx rax, ebx
movsd xmm0, QWORD PTR -384[rbp+rax*8]
cvttsd2si r8d, xmm0
movsx rax, ebx
movsd xmm0, QWORD PTR -448[rbp+rax*8]
pxor xmm1, xmm1
cvtsd2ss xmm1, xmm0
movss xmm0, DWORD PTR .LC12[rip]
mulss xmm0, xmm1
pxor xmm1, xmm1
cvtss2sd xmm1, xmm0
movsd xmm0, QWORD PTR .LC13[rip]
addsd xmm0, xmm1
cvttsd2si eax, xmm0
movsx rsi, eax
imul rsi, rsi, 1125899907
shr rsi, 32
sar esi, 18
mov r10d, eax
sar r10d, 31
mov edi, esi
sub edi, r10d
imul esi, edi, 1000000
sub eax, esi
mov edi, eax
movsx rax, ebx
movsd xmm0, QWORD PTR -448[rbp+rax*8]
cvttsd2si r12d, xmm0
movsx rax, ebx
lea rsi, 0[0+rax*8]
lea rax, bytes[rip]
movsd xmm1, QWORD PTR [rsi+rax]
movsd xmm0, QWORD PTR .LC14[rip]
mulsd xmm0, xmm1
movsx rax, ebx
movsd xmm1, QWORD PTR -448[rbp+rax*8]
divsd xmm0, xmm1
pxor xmm1, xmm1
cvtsd2ss xmm1, xmm0
movss xmm0, DWORD PTR .LC12[rip]
mulss xmm0, xmm1
pxor xmm1, xmm1
cvtss2sd xmm1, xmm0
movsd xmm0, QWORD PTR .LC13[rip]
addsd xmm0, xmm1
cvttsd2si esi, xmm0
movsx rax, esi
imul rax, rax, 1125899907
shr rax, 32
sar eax, 18
mov r10d, esi
sar r10d, 31
sub eax, r10d
imul r10d, eax, 1000000
mov eax, esi
sub eax, r10d
movsx rsi, ebx
lea r10, 0[0+rsi*8]
lea rsi, bytes[rip]
movsd xmm1, QWORD PTR [r10+rsi]
movsd xmm0, QWORD PTR .LC14[rip]
mulsd xmm0, xmm1
movsx rsi, ebx
movsd xmm1, QWORD PTR -448[rbp+rsi*8]
divsd xmm0, xmm1
cvttsd2si r10d, xmm0
movsx rsi, ebx
lea r11, 0[0+rsi*8]
lea rsi, label[rip]
mov rsi, QWORD PTR [r11+rsi]
push rcx
push r9
push rdx
push r8
mov r9d, edi
mov r8d, r12d
mov ecx, eax
mov edx, r10d
lea rdi, .LC15[rip]
mov eax, 0
call printf@PLT
add rsp, 32
add ebx, 1
.L27:
cmp ebx, 3
jle .L28
lea rdi, .LC16[rip]
call puts@PLT
mov eax, 0
call checkSTREAMresults
lea rdi, .LC16[rip]
call puts@PLT
mov eax, 0
mov rdi, QWORD PTR -24[rbp]
sub rdi, QWORD PTR fs:40
je .L30
call __stack_chk_fail@PLT
.L30:
lea rsp, -16[rbp]
pop rbx
pop r12
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size streammain, .-streammain
.globl checktick
.type checktick, @function
checktick:
.LFB1:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 208
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
mov DWORD PTR -204[rbp], 0
jmp .L36
.L38:
mov eax, 0
call mysecond@PLT
movq rax, xmm0
mov QWORD PTR -192[rbp], rax
nop
.L37:
mov eax, 0
call mysecond@PLT
movq rax, xmm0
mov QWORD PTR -184[rbp], rax
movsd xmm0, QWORD PTR -184[rbp]
movapd xmm1, xmm0
subsd xmm1, QWORD PTR -192[rbp]
movsd xmm0, QWORD PTR .LC14[rip]
comisd xmm0, xmm1
ja .L37
movsd xmm0, QWORD PTR -184[rbp]
movsd QWORD PTR -192[rbp], xmm0
mov eax, DWORD PTR -204[rbp]
cdqe
movsd xmm0, QWORD PTR -192[rbp]
movsd QWORD PTR -176[rbp+rax*8], xmm0
add DWORD PTR -204[rbp], 1
.L36:
cmp DWORD PTR -204[rbp], 19
jle .L38
mov DWORD PTR -200[rbp], 1000000
mov DWORD PTR -204[rbp], 1
jmp .L39
.L40:
mov eax, DWORD PTR -204[rbp]
cdqe
movsd xmm0, QWORD PTR -176[rbp+rax*8]
mov eax, DWORD PTR -204[rbp]
sub eax, 1
cdqe
movsd xmm2, QWORD PTR -176[rbp+rax*8]
movapd xmm1, xmm0
subsd xmm1, xmm2
movsd xmm0, QWORD PTR .LC8[rip]
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
mov DWORD PTR -196[rbp], eax
mov eax, 0
cmp DWORD PTR -196[rbp], 0
cmovns eax, DWORD PTR -196[rbp]
cmp DWORD PTR -200[rbp], eax
cmovle eax, DWORD PTR -200[rbp]
mov DWORD PTR -200[rbp], eax
add DWORD PTR -204[rbp], 1
.L39:
cmp DWORD PTR -204[rbp], 19
jle .L40
mov eax, DWORD PTR -200[rbp]
mov rdx, QWORD PTR -8[rbp]
sub rdx, QWORD PTR fs:40
je .L42
call __stack_chk_fail@PLT
.L42:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE1:
.size checktick, .-checktick
.section .rodata
.align 8
.LC20:
.string "Failed Validation on array a[]"
.LC21:
.string " Expected : %f \n"
.LC22:
.string " Observed : %f \n"
.align 8
.LC23:
.string "Failed Validation on array b[]"
.align 8
.LC24:
.string "Failed Validation on array c[]"
.LC25:
.string "Solution Validates"
.text
.globl checkSTREAMresults
.type checkSTREAMresults, @function
checkSTREAMresults:
.LFB2:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 80
movsd xmm0, QWORD PTR .LC5[rip]
movsd QWORD PTR -64[rbp], xmm0
movsd xmm0, QWORD PTR .LC6[rip]
movsd QWORD PTR -56[rbp], xmm0
pxor xmm0, xmm0
movsd QWORD PTR -48[rbp], xmm0
movsd xmm0, QWORD PTR -64[rbp]
addsd xmm0, xmm0
movsd QWORD PTR -64[rbp], xmm0
movsd xmm0, QWORD PTR .LC9[rip]
movsd QWORD PTR -16[rbp], xmm0
mov DWORD PTR -68[rbp], 0
jmp .L44
.L45:
movsd xmm0, QWORD PTR -64[rbp]
movsd QWORD PTR -48[rbp], xmm0
movsd xmm0, QWORD PTR -16[rbp]
mulsd xmm0, QWORD PTR -48[rbp]
movsd QWORD PTR -56[rbp], xmm0
movsd xmm0, QWORD PTR -64[rbp]
addsd xmm0, QWORD PTR -56[rbp]
movsd QWORD PTR -48[rbp], xmm0
movsd xmm0, QWORD PTR -16[rbp]
mulsd xmm0, QWORD PTR -48[rbp]
movsd xmm1, QWORD PTR -56[rbp]
addsd xmm0, xmm1
movsd QWORD PTR -64[rbp], xmm0
add DWORD PTR -68[rbp], 1
.L44:
cmp DWORD PTR -68[rbp], 9
jle .L45
movsd xmm1, QWORD PTR -64[rbp]
movsd xmm0, QWORD PTR .LC17[rip]
mulsd xmm0, xmm1
movsd QWORD PTR -64[rbp], xmm0
movsd xmm1, QWORD PTR -56[rbp]
movsd xmm0, QWORD PTR .LC17[rip]
mulsd xmm0, xmm1
movsd QWORD PTR -56[rbp], xmm0
movsd xmm1, QWORD PTR -48[rbp]
movsd xmm0, QWORD PTR .LC17[rip]
mulsd xmm0, xmm1
movsd QWORD PTR -48[rbp], xmm0
pxor xmm0, xmm0
movsd QWORD PTR -40[rbp], xmm0
pxor xmm0, xmm0
movsd QWORD PTR -32[rbp], xmm0
pxor xmm0, xmm0
movsd QWORD PTR -24[rbp], xmm0
mov DWORD PTR -72[rbp], 0
jmp .L46
.L47:
mov eax, DWORD PTR -72[rbp]
cdqe
lea rdx, 0[0+rax*8]
lea rax, a[rip]
movsd xmm0, QWORD PTR [rdx+rax]
movsd xmm1, QWORD PTR -40[rbp]
addsd xmm0, xmm1
movsd QWORD PTR -40[rbp], xmm0
mov eax, DWORD PTR -72[rbp]
cdqe
lea rdx, 0[0+rax*8]
lea rax, b[rip]
movsd xmm0, QWORD PTR [rdx+rax]
movsd xmm1, QWORD PTR -32[rbp]
addsd xmm0, xmm1
movsd QWORD PTR -32[rbp], xmm0
mov eax, DWORD PTR -72[rbp]
cdqe
lea rdx, 0[0+rax*8]
lea rax, c[rip]
movsd xmm0, QWORD PTR [rdx+rax]
movsd xmm1, QWORD PTR -24[rbp]
addsd xmm0, xmm1
movsd QWORD PTR -24[rbp], xmm0
add DWORD PTR -72[rbp], 1
.L46:
cmp DWORD PTR -72[rbp], 1999999
jle .L47
movsd xmm0, QWORD PTR .LC18[rip]
movsd QWORD PTR -8[rbp], xmm0
movsd xmm0, QWORD PTR -64[rbp]
subsd xmm0, QWORD PTR -40[rbp]
pxor xmm1, xmm1
comisd xmm0, xmm1
jb .L70
movsd xmm0, QWORD PTR -64[rbp]
subsd xmm0, QWORD PTR -40[rbp]
jmp .L50
.L70:
movsd xmm0, QWORD PTR -64[rbp]
subsd xmm0, QWORD PTR -40[rbp]
movq xmm1, QWORD PTR .LC19[rip]
xorpd xmm0, xmm1
.L50:
divsd xmm0, QWORD PTR -40[rbp]
comisd xmm0, QWORD PTR -8[rbp]
jbe .L71
lea rdi, .LC20[rip]
call puts@PLT
mov rax, QWORD PTR -64[rbp]
movq xmm0, rax
lea rdi, .LC21[rip]
mov eax, 1
call printf@PLT
mov rax, QWORD PTR -40[rbp]
movq xmm0, rax
lea rdi, .LC22[rip]
mov eax, 1
call printf@PLT
jmp .L76
.L71:
movsd xmm0, QWORD PTR -56[rbp]
subsd xmm0, QWORD PTR -32[rbp]
pxor xmm1, xmm1
comisd xmm0, xmm1
jb .L72
movsd xmm0, QWORD PTR -56[rbp]
subsd xmm0, QWORD PTR -32[rbp]
jmp .L56
.L72:
movsd xmm0, QWORD PTR -56[rbp]
subsd xmm0, QWORD PTR -32[rbp]
movq xmm1, QWORD PTR .LC19[rip]
xorpd xmm0, xmm1
.L56:
divsd xmm0, QWORD PTR -32[rbp]
comisd xmm0, QWORD PTR -8[rbp]
jbe .L73
lea rdi, .LC23[rip]
call puts@PLT
mov rax, QWORD PTR -56[rbp]
movq xmm0, rax
lea rdi, .LC21[rip]
mov eax, 1
call printf@PLT
mov rax, QWORD PTR -32[rbp]
movq xmm0, rax
lea rdi, .LC22[rip]
mov eax, 1
call printf@PLT
jmp .L76
.L73:
movsd xmm0, QWORD PTR -48[rbp]
subsd xmm0, QWORD PTR -24[rbp]
pxor xmm1, xmm1
comisd xmm0, xmm1
jb .L74
movsd xmm0, QWORD PTR -48[rbp]
subsd xmm0, QWORD PTR -24[rbp]
jmp .L61
.L74:
movsd xmm0, QWORD PTR -48[rbp]
subsd xmm0, QWORD PTR -24[rbp]
movq xmm1, QWORD PTR .LC19[rip]
xorpd xmm0, xmm1
.L61:
divsd xmm0, QWORD PTR -24[rbp]
comisd xmm0, QWORD PTR -8[rbp]
jbe .L75
lea rdi, .LC24[rip]
call puts@PLT
mov rax, QWORD PTR -48[rbp]
movq xmm0, rax
lea rdi, .LC21[rip]
mov eax, 1
call printf@PLT
mov rax, QWORD PTR -24[rbp]
movq xmm0, rax
lea rdi, .LC22[rip]
mov eax, 1
call printf@PLT
jmp .L76
.L75:
lea rdi, .LC25[rip]
call puts@PLT
.L76:
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE2:
.size checkSTREAMresults, .-checkSTREAMresults
.globl tuned_STREAM_Copy
.type tuned_STREAM_Copy, @function
tuned_STREAM_Copy:
.LFB3:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov DWORD PTR -4[rbp], 0
jmp .L78
.L79:
mov eax, DWORD PTR -4[rbp]
cdqe
lea rdx, 0[0+rax*8]
lea rax, a[rip]
movsd xmm0, QWORD PTR [rdx+rax]
mov eax, DWORD PTR -4[rbp]
cdqe
lea rdx, 0[0+rax*8]
lea rax, c[rip]
movsd QWORD PTR [rdx+rax], xmm0
add DWORD PTR -4[rbp], 1
.L78:
cmp DWORD PTR -4[rbp], 1999999
jle .L79
nop
nop
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE3:
.size tuned_STREAM_Copy, .-tuned_STREAM_Copy
.globl tuned_STREAM_Scale
.type tuned_STREAM_Scale, @function
tuned_STREAM_Scale:
.LFB4:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
movsd QWORD PTR -24[rbp], xmm0
mov DWORD PTR -4[rbp], 0
jmp .L81
.L82:
mov eax, DWORD PTR -4[rbp]
cdqe
lea rdx, 0[0+rax*8]
lea rax, c[rip]
movsd xmm0, QWORD PTR [rdx+rax]
mulsd xmm0, QWORD PTR -24[rbp]
mov eax, DWORD PTR -4[rbp]
cdqe
lea rdx, 0[0+rax*8]
lea rax, b[rip]
movsd QWORD PTR [rdx+rax], xmm0
add DWORD PTR -4[rbp], 1
.L81:
cmp DWORD PTR -4[rbp], 1999999
jle .L82
nop
nop
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE4:
.size tuned_STREAM_Scale, .-tuned_STREAM_Scale
.globl tuned_STREAM_Add
.type tuned_STREAM_Add, @function
tuned_STREAM_Add:
.LFB5:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov DWORD PTR -4[rbp], 0
jmp .L84
.L85:
mov eax, DWORD PTR -4[rbp]
cdqe
lea rdx, 0[0+rax*8]
lea rax, a[rip]
movsd xmm1, QWORD PTR [rdx+rax]
mov eax, DWORD PTR -4[rbp]
cdqe
lea rdx, 0[0+rax*8]
lea rax, b[rip]
movsd xmm0, QWORD PTR [rdx+rax]
addsd xmm0, xmm1
mov eax, DWORD PTR -4[rbp]
cdqe
lea rdx, 0[0+rax*8]
lea rax, c[rip]
movsd QWORD PTR [rdx+rax], xmm0
add DWORD PTR -4[rbp], 1
.L84:
cmp DWORD PTR -4[rbp], 1999999
jle .L85
nop
nop
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE5:
.size tuned_STREAM_Add, .-tuned_STREAM_Add
.globl tuned_STREAM_Triad
.type tuned_STREAM_Triad, @function
tuned_STREAM_Triad:
.LFB6:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
movsd QWORD PTR -24[rbp], xmm0
mov DWORD PTR -4[rbp], 0
jmp .L87
.L88:
mov eax, DWORD PTR -4[rbp]
cdqe
lea rdx, 0[0+rax*8]
lea rax, b[rip]
movsd xmm1, QWORD PTR [rdx+rax]
mov eax, DWORD PTR -4[rbp]
cdqe
lea rdx, 0[0+rax*8]
lea rax, c[rip]
movsd xmm0, QWORD PTR [rdx+rax]
mulsd xmm0, QWORD PTR -24[rbp]
addsd xmm0, xmm1
mov eax, DWORD PTR -4[rbp]
cdqe
lea rdx, 0[0+rax*8]
lea rax, a[rip]
movsd QWORD PTR [rdx+rax], xmm0
add DWORD PTR -4[rbp], 1
.L87:
cmp DWORD PTR -4[rbp], 1999999
jle .L88
nop
nop
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size tuned_STREAM_Triad, .-tuned_STREAM_Triad
.section .rodata
.align 8
.LC4:
.long -536870912
.long 1206910975
.align 8
.LC5:
.long 0
.long 1072693248
.align 8
.LC6:
.long 0
.long 1073741824
.align 8
.LC8:
.long 0
.long 1093567616
.align 8
.LC9:
.long 0
.long 1074266112
.align 8
.LC11:
.long 0
.long 1075970048
.align 4
.LC12:
.long 1232348160
.align 8
.LC13:
.long 0
.long 1071644672
.align 8
.LC14:
.long -1598689907
.long 1051772663
.align 8
.LC17:
.long 0
.long 1094616192
.align 8
.LC18:
.long -500134854
.long 1044740494
.align 16
.LC19:
.long 0
.long -2147483648
.long 0
.long 0
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "1002849.c"
.text
.local a
.comm a,16000000,8
.local b
.comm b,16000000,8
.local c
.comm c,16000000,8
.section .rodata
.align 2
.LC1:
.ascii "Copy: \000"
.align 2
.LC2:
.ascii "Scale: \000"
.align 2
.LC3:
.ascii "Add: \000"
.align 2
.LC4:
.ascii "Triad: \000"
.data
.align 2
.type label, %object
.size label, 16
label:
.word .LC1
.word .LC2
.word .LC3
.word .LC4
.align 3
.type bytes, %object
.size bytes, 32
bytes:
.word 0
.word 1098810496
.word 0
.word 1098810496
.word 0
.word 1099359072
.word 0
.word 1099359072
.global __aeabi_dadd
.global __aeabi_dsub
.global __aeabi_dmul
.global __aeabi_dcmplt
.global __aeabi_dcmpgt
.section .rodata
.align 2
.LC5:
.ascii "Function Rate (MB/s) Avg time Min time "
.ascii " Max time\000"
.global __aeabi_ddiv
.global __aeabi_d2iz
.global __aeabi_d2f
.global __aeabi_fmul
.global __aeabi_f2d
.align 2
.LC6:
.ascii "%s%4d.%06d %4d.%06d %4d.%06d %4d.%06d\012\000"
.align 2
.LC7:
.ascii "---------------------------------------------------"
.ascii "----------\000"
.align 3
.LC0:
.word 3758096384
.word 1206910975
.word 3758096384
.word 1206910975
.word 3758096384
.word 1206910975
.word 3758096384
.word 1206910975
.align 2
.LC8:
.word __stack_chk_guard
.text
.align 2
.global streammain
.syntax unified
.arm
.fpu softvfp
.type streammain, %function
streammain:
@ args = 0, pretend = 0, frame = 456
@ frame_needed = 1, uses_anonymous_args = 0
push {r4, r5, r6, r7, r8, r9, r10, fp, lr}
add fp, sp, #32
sub sp, sp, #484
ldr r3, .L35
ldr r3, [r3]
str r3, [fp, #-40]
mov r3,#0
sub r3, fp, #460
mov r2, #32
mov r1, #0
mov r0, r3
bl memset
sub r3, fp, #428
mov r2, #32
mov r1, #0
mov r0, r3
bl memset
ldr r3, .L35+4
sub ip, fp, #396
mov lr, r3
ldmia lr!, {r0, r1, r2, r3}
stmia ip!, {r0, r1, r2, r3}
ldm lr, {r0, r1, r2, r3}
stm ip, {r0, r1, r2, r3}
mov r3, #8
str r3, [fp, #-484]
mov r4, #0
b .L2
.L3:
ldr r2, .L35+8
lsl r3, r4, #3
add r1, r2, r3
mov r2, #0
ldr r3, .L35+12
stm r1, {r2-r3}
ldr r2, .L35+16
lsl r3, r4, #3
add r1, r2, r3
mov r2, #0
mov r3, #1073741824
stm r1, {r2-r3}
ldr r2, .L35+20
lsl r3, r4, #3
add r1, r2, r3
mov r2, #0
mov r3, #0
stm r1, {r2-r3}
add r4, r4, #1
.L2:
ldr r3, .L35+24
cmp r4, r3
blt .L3
bl checktick
str r0, [fp, #-480]
ldr r3, [fp, #-480]
cmp r3, #0
bgt .L4
mov r3, #1
str r3, [fp, #-480]
.L4:
bl mysecond
str r0, [fp, #-476]
str r1, [fp, #-472]
mov r4, #0
b .L5
.L6:
ldr r2, .L35+8
lsl r3, r4, #3
add r3, r2, r3
ldmia r3, {r0-r1}
mov r2, r0
mov r3, r1
bl __aeabi_dadd
mov r2, r0
mov r3, r1
ldr r0, .L35+8
lsl r1, r4, #3
add r1, r0, r1
stm r1, {r2-r3}
add r4, r4, #1
.L5:
ldr r3, .L35+24
cmp r4, r3
blt .L6
bl mysecond
sub r3, fp, #476
ldmia r3, {r2-r3}
bl __aeabi_dsub
mov r2, r0
mov r3, r1
mov r0, r2
mov r1, r3
mov r2, #0
ldr r3, .L35+28
bl __aeabi_dmul
mov r2, r0
mov r3, r1
str r2, [fp, #-476]
str r3, [fp, #-472]
mov r2, #0
ldr r3, .L35+32
str r2, [fp, #-468]
str r3, [fp, #-464]
mov r5, #0
b .L7
.L16:
bl mysecond
mov r2, r0
mov r3, r1
lsl r1, r5, #3
sub r0, fp, #36
add r1, r0, r1
sub r1, r1, #328
stm r1, {r2-r3}
mov r4, #0
b .L8
.L9:
ldr r2, .L35+8
lsl r3, r4, #3
add r3, r2, r3
ldmia r3, {r2-r3}
ldr r0, .L35+20
lsl r1, r4, #3
add r1, r0, r1
stm r1, {r2-r3}
add r4, r4, #1
.L8:
ldr r3, .L35+24
cmp r4, r3
blt .L9
bl mysecond
lsl r3, r5, #3
sub r2, fp, #36
add r3, r2, r3
sub r3, r3, #328
ldmia r3, {r2-r3}
bl __aeabi_dsub
mov r2, r0
mov r3, r1
lsl r1, r5, #3
sub r0, fp, #36
add r1, r0, r1
sub r1, r1, #328
stm r1, {r2-r3}
bl mysecond
mov r2, r0
mov r3, r1
add r1, r5, #10
lsl r1, r1, #3
sub r0, fp, #36
add r1, r0, r1
sub r1, r1, #328
stm r1, {r2-r3}
mov r4, #0
b .L10
.L11:
ldr r2, .L35+20
lsl r3, r4, #3
add r3, r2, r3
ldmia r3, {r0-r1}
sub r3, fp, #468
ldmia r3, {r2-r3}
bl __aeabi_dmul
mov r2, r0
mov r3, r1
ldr r0, .L35+16
lsl r1, r4, #3
add r1, r0, r1
stm r1, {r2-r3}
add r4, r4, #1
.L10:
ldr r3, .L35+24
cmp r4, r3
blt .L11
bl mysecond
add r3, r5, #10
lsl r3, r3, #3
sub r2, fp, #36
add r3, r2, r3
sub r3, r3, #328
ldmia r3, {r2-r3}
bl __aeabi_dsub
mov r2, r0
mov r3, r1
add r1, r5, #10
lsl r1, r1, #3
sub r0, fp, #36
add r1, r0, r1
sub r1, r1, #328
stm r1, {r2-r3}
bl mysecond
mov r2, r0
mov r3, r1
add r1, r5, #20
lsl r1, r1, #3
sub r0, fp, #36
add r1, r0, r1
sub r1, r1, #328
stm r1, {r2-r3}
mov r4, #0
b .L12
.L13:
ldr r2, .L35+8
lsl r3, r4, #3
add r3, r2, r3
ldmia r3, {r0-r1}
ldr r2, .L35+16
lsl r3, r4, #3
add r3, r2, r3
ldmia r3, {r2-r3}
bl __aeabi_dadd
mov r2, r0
mov r3, r1
ldr r0, .L35+20
lsl r1, r4, #3
add r1, r0, r1
stm r1, {r2-r3}
add r4, r4, #1
.L12:
ldr r3, .L35+24
cmp r4, r3
blt .L13
bl mysecond
add r3, r5, #20
lsl r3, r3, #3
sub r2, fp, #36
add r3, r2, r3
sub r3, r3, #328
ldmia r3, {r2-r3}
bl __aeabi_dsub
mov r2, r0
mov r3, r1
add r1, r5, #20
lsl r1, r1, #3
sub r0, fp, #36
add r1, r0, r1
sub r1, r1, #328
stm r1, {r2-r3}
bl mysecond
mov r2, r0
mov r3, r1
add r1, r5, #30
lsl r1, r1, #3
sub r0, fp, #36
add r1, r0, r1
sub r1, r1, #328
stm r1, {r2-r3}
mov r4, #0
b .L14
.L15:
ldr r2, .L35+16
lsl r3, r4, #3
add r3, r2, r3
ldmia r3, {r6-r7}
ldr r2, .L35+20
lsl r3, r4, #3
add r3, r2, r3
ldmia r3, {r0-r1}
sub r3, fp, #468
ldmia r3, {r2-r3}
bl __aeabi_dmul
mov r2, r0
mov r3, r1
mov r0, r6
mov r1, r7
bl __aeabi_dadd
mov r2, r0
mov r3, r1
ldr r0, .L35+8
lsl r1, r4, #3
add r1, r0, r1
stm r1, {r2-r3}
add r4, r4, #1
.L14:
ldr r3, .L35+24
cmp r4, r3
blt .L15
bl mysecond
add r3, r5, #30
lsl r3, r3, #3
sub r2, fp, #36
add r3, r2, r3
sub r3, r3, #328
ldmia r3, {r2-r3}
bl __aeabi_dsub
mov r2, r0
mov r3, r1
add r1, r5, #30
lsl r1, r1, #3
sub r0, fp, #36
add r1, r0, r1
sub r1, r1, #328
stm r1, {r2-r3}
add r5, r5, #1
.L7:
cmp r5, #9
ble .L16
mov r5, #1
b .L17
.L26:
mov r4, #0
b .L18
.L25:
lsl r3, r4, #3
sub r2, fp, #36
add r3, r2, r3
sub r3, r3, #424
ldmia r3, {r0-r1}
mov r3, r4
lsl r3, r3, #2
add r3, r3, r4
lsl r3, r3, #1
add r3, r3, r5
lsl r3, r3, #3
sub r2, fp, #36
add r3, r2, r3
sub r3, r3, #328
ldmia r3, {r2-r3}
bl __aeabi_dadd
mov r2, r0
mov r3, r1
lsl r1, r4, #3
sub r0, fp, #36
add r1, r0, r1
sub r1, r1, #424
stm r1, {r2-r3}
lsl r3, r4, #3
sub r2, fp, #36
add r3, r2, r3
sub r3, r3, #360
ldmia r3, {r0-r1}
mov r3, r4
lsl r3, r3, #2
add r3, r3, r4
lsl r3, r3, #1
add r3, r3, r5
lsl r3, r3, #3
sub r2, fp, #36
add r3, r2, r3
sub r3, r3, #328
ldmia r3, {r2-r3}
bl __aeabi_dcmplt
mov r3, r0
cmp r3, #0
beq .L33
lsl r3, r4, #3
sub r2, fp, #36
add r3, r2, r3
sub r3, r3, #360
ldmia r3, {r2-r3}
b .L21
.L33:
mov r3, r4
lsl r3, r3, #2
add r3, r3, r4
lsl r3, r3, #1
add r3, r3, r5
lsl r3, r3, #3
sub r2, fp, #36
add r3, r2, r3
sub r3, r3, #328
ldmia r3, {r2-r3}
.L21:
lsl r1, r4, #3
sub r0, fp, #36
add r1, r0, r1
sub r1, r1, #360
stm r1, {r2-r3}
lsl r3, r4, #3
sub r2, fp, #36
add r3, r2, r3
sub r3, r3, #392
ldmia r3, {r0-r1}
mov r3, r4
lsl r3, r3, #2
add r3, r3, r4
lsl r3, r3, #1
add r3, r3, r5
lsl r3, r3, #3
sub r2, fp, #36
add r3, r2, r3
sub r3, r3, #328
ldmia r3, {r2-r3}
bl __aeabi_dcmpgt
mov r3, r0
cmp r3, #0
beq .L34
lsl r3, r4, #3
sub r2, fp, #36
add r3, r2, r3
sub r3, r3, #392
ldmia r3, {r2-r3}
b .L24
.L34:
mov r3, r4
lsl r3, r3, #2
add r3, r3, r4
lsl r3, r3, #1
add r3, r3, r5
lsl r3, r3, #3
sub r2, fp, #36
add r3, r2, r3
sub r3, r3, #328
ldmia r3, {r2-r3}
.L24:
lsl r1, r4, #3
sub r0, fp, #36
add r1, r0, r1
sub r1, r1, #392
stm r1, {r2-r3}
add r4, r4, #1
.L18:
cmp r4, #3
ble .L25
add r5, r5, #1
.L17:
cmp r5, #9
ble .L26
ldr r0, .L35+36
bl puts
mov r4, #0
b .L27
.L28:
lsl r3, r4, #3
sub r2, fp, #36
add r3, r2, r3
sub r3, r3, #424
ldmia r3, {r0-r1}
mov r2, #0
ldr r3, .L35+40
bl __aeabi_ddiv
mov r2, r0
mov r3, r1
lsl r1, r4, #3
sub r0, fp, #36
add r1, r0, r1
sub r1, r1, #424
stm r1, {r2-r3}
ldr r3, .L35+44
ldr r8, [r3, r4, lsl #2]
ldr r2, .L35+48
lsl r3, r4, #3
add r3, r2, r3
ldmia r3, {r0-r1}
ldr r2, .L35+52
ldr r3, .L35+56
bl __aeabi_dmul
mov r2, r0
mov r3, r1
mov r0, r2
mov r1, r3
lsl r3, r4, #3
sub r2, fp, #36
add r3, r2, r3
sub r3, r3, #424
ldmia r3, {r2-r3}
bl __aeabi_ddiv
mov r2, r0
mov r3, r1
mov r0, r2
mov r1, r3
bl __aeabi_d2iz
str r0, [fp, #-488]
ldr r2, .L35+48
lsl r3, r4, #3
add r3, r2, r3
ldmia r3, {r0-r1}
ldr r2, .L35+52
ldr r3, .L35+56
bl __aeabi_dmul
mov r2, r0
mov r3, r1
mov r0, r2
mov r1, r3
lsl r3, r4, #3
sub ip, fp, #36
add r3, ip, r3
sub r3, r3, #424
ldmia r3, {r2-r3}
bl __aeabi_ddiv
mov r2, r0
mov r3, r1
mov r0, r2
mov r1, r3
bl __aeabi_d2f
mov r3, r0
ldr r1, .L35+60
mov r0, r3
bl __aeabi_fmul
mov r3, r0
mov r0, r3
bl __aeabi_f2d
mov r2, #0
ldr r3, .L35+64
bl __aeabi_dadd
mov r2, r0
mov r3, r1
mov r0, r2
mov r1, r3
bl __aeabi_d2iz
mov r1, r0
ldr r3, .L35+68
smull ip, r3, r1, r3
asr r2, r3, #18
asr r3, r1, #31
sub r7, r2, r3
mov r2, r7
lsl r2, r2, #5
sub r2, r2, r7
lsl r3, r2, #6
sub r3, r3, r2
lsl r3, r3, #3
add r3, r3, r7
lsl r3, r3, #6
sub r7, r1, r3
lsl r3, r4, #3
sub r1, fp, #36
add r3, r1, r3
sub r3, r3, #424
ldmia r3, {r2-r3}
mov r0, r2
mov r1, r3
bl __aeabi_d2iz
mov r9, r0
lsl r3, r4, #3
sub r1, fp, #36
add r3, r1, r3
sub r3, r3, #424
ldmia r3, {r2-r3}
mov r0, r2
mov r1, r3
bl __aeabi_d2f
mov r3, r0
ldr r1, .L35+60
mov r0, r3
bl __aeabi_fmul
mov r3, r0
mov r0, r3
bl __aeabi_f2d
mov r2, #0
ldr r3, .L35+64
bl __aeabi_dadd
mov r2, r0
mov r3, r1
mov r0, r2
mov r1, r3
bl __aeabi_d2iz
mov r1, r0
ldr r3, .L35+68
smull ip, r3, r1, r3
asr r2, r3, #18
asr r3, r1, #31
sub r5, r2, r3
mov r2, r5
lsl r2, r2, #5
sub r2, r2, r5
lsl r3, r2, #6
sub r3, r3, r2
lsl r3, r3, #3
add r3, r3, r5
lsl r3, r3, #6
sub r5, r1, r3
lsl r3, r4, #3
sub r1, fp, #36
add r3, r1, r3
sub r3, r3, #360
ldmia r3, {r2-r3}
mov r0, r2
mov r1, r3
bl __aeabi_d2iz
mov r10, r0
lsl r3, r4, #3
sub r1, fp, #36
add r3, r1, r3
sub r3, r3, #360
ldmia r3, {r2-r3}
mov r0, r2
mov r1, r3
bl __aeabi_d2f
mov r3, r0
ldr r1, .L35+60
mov r0, r3
bl __aeabi_fmul
mov r3, r0
mov r0, r3
bl __aeabi_f2d
mov r2, #0
ldr r3, .L35+64
bl __aeabi_dadd
mov r2, r0
mov r3, r1
mov r0, r2
mov r1, r3
bl __aeabi_d2iz
mov r1, r0
ldr r3, .L35+68
smull ip, r3, r1, r3
asr r2, r3, #18
asr r3, r1, #31
sub r6, r2, r3
mov r2, r6
lsl r2, r2, #5
sub r2, r2, r6
lsl r3, r2, #6
sub r3, r3, r2
lsl r3, r3, #3
add r3, r3, r6
lsl r3, r3, #6
sub r6, r1, r3
lsl r3, r4, #3
sub r1, fp, #36
add r3, r1, r3
sub r3, r3, #392
ldmia r3, {r2-r3}
mov r0, r2
mov r1, r3
bl __aeabi_d2iz
str r0, [fp, #-492]
lsl r3, r4, #3
sub r1, fp, #36
add r3, r1, r3
sub r3, r3, #392
ldmia r3, {r2-r3}
mov r0, r2
mov r1, r3
bl __aeabi_d2f
mov r3, r0
ldr r1, .L35+60
mov r0, r3
bl __aeabi_fmul
mov r3, r0
mov r0, r3
bl __aeabi_f2d
mov r2, #0
ldr r3, .L35+64
bl __aeabi_dadd
mov r2, r0
mov r3, r1
mov r0, r2
mov r1, r3
bl __aeabi_d2iz
ldr r3, .L35+68
smull r1, r3, r0, r3
asr r2, r3, #18
asr r3, r0, #31
sub r1, r2, r3
mov r2, r1
lsl r2, r2, #5
sub r2, r2, r1
lsl r3, r2, #6
sub r3, r3, r2
lsl r3, r3, #3
add r3, r3, r1
lsl r3, r3, #6
sub r1, r0, r3
str r1, [sp, #20]
ldr r3, [fp, #-492]
str r3, [sp, #16]
str r6, [sp, #12]
str r10, [sp, #8]
str r5, [sp, #4]
str r9, [sp]
mov r3, r7
ldr r2, [fp, #-488]
mov r1, r8
ldr r0, .L35+72
bl printf
add r4, r4, #1
.L27:
cmp r4, #3
ble .L28
ldr r0, .L35+76
bl puts
bl checkSTREAMresults
ldr r0, .L35+76
bl puts
mov r3, #0
ldr r2, .L35
ldr r1, [r2]
ldr r2, [fp, #-40]
eors r1, r2, r1
mov r2, #0
beq .L30
bl __stack_chk_fail
.L30:
mov r0, r3
sub sp, fp, #32
@ sp needed
pop {r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L36:
.align 2
.L35:
.word .LC8
.word .LC0
.word a
.word 1072693248
.word b
.word c
.word 2000000
.word 1093567616
.word 1074266112
.word .LC5
.word 1075970048
.word label
.word bytes
.word -1598689907
.word 1051772663
.word 1232348160
.word 1071644672
.word 1125899907
.word .LC6
.word .LC7
.size streammain, .-streammain
.section .rodata
.align 2
.LC9:
.word __stack_chk_guard
.text
.align 2
.global checktick
.syntax unified
.arm
.fpu softvfp
.type checktick, %function
checktick:
@ args = 0, pretend = 0, frame = 200
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #200
ldr r3, .L45
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
mov r3, #0
str r3, [fp, #-200]
b .L38
.L40:
bl mysecond
str r0, [fp, #-188]
str r1, [fp, #-184]
nop
.L39:
bl mysecond
str r0, [fp, #-180]
str r1, [fp, #-176]
sub r3, fp, #188
ldmia r3, {r2-r3}
sub r1, fp, #180
ldmia r1, {r0-r1}
bl __aeabi_dsub
mov r2, r0
mov r3, r1
mov r0, r2
mov r1, r3
ldr r2, .L45+4
ldr r3, .L45+8
bl __aeabi_dcmplt
mov r3, r0
cmp r3, #0
bne .L39
sub r3, fp, #180
ldmia r3, {r2-r3}
str r2, [fp, #-188]
str r3, [fp, #-184]
ldr r3, [fp, #-200]
lsl r3, r3, #3
sub r2, fp, #4
add r3, r2, r3
sub r1, r3, #168
sub r3, fp, #188
ldmia r3, {r2-r3}
stm r1, {r2-r3}
ldr r3, [fp, #-200]
add r3, r3, #1
str r3, [fp, #-200]
.L38:
ldr r3, [fp, #-200]
cmp r3, #19
ble .L40
ldr r3, .L45+12
str r3, [fp, #-196]
mov r3, #1
str r3, [fp, #-200]
b .L41
.L42:
ldr r3, [fp, #-200]
lsl r3, r3, #3
sub r2, fp, #4
add r3, r2, r3
sub r3, r3, #168
ldmia r3, {r0-r1}
ldr r3, [fp, #-200]
sub r3, r3, #1
lsl r3, r3, #3
sub r2, fp, #4
add r3, r2, r3
sub r3, r3, #168
ldmia r3, {r2-r3}
bl __aeabi_dsub
mov r2, r0
mov r3, r1
mov r0, r2
mov r1, r3
mov r2, #0
ldr r3, .L45+16
bl __aeabi_dmul
mov r2, r0
mov r3, r1
mov r0, r2
mov r1, r3
bl __aeabi_d2iz
mov r3, r0
str r3, [fp, #-192]
ldr r3, [fp, #-192]
bic r3, r3, r3, asr #31
ldr r2, [fp, #-196]
cmp r2, r3
movlt r3, r2
movge r3, r3
str r3, [fp, #-196]
ldr r3, [fp, #-200]
add r3, r3, #1
str r3, [fp, #-200]
.L41:
ldr r3, [fp, #-200]
cmp r3, #19
ble .L42
ldr r3, [fp, #-196]
ldr r2, .L45
ldr r1, [r2]
ldr r2, [fp, #-8]
eors r1, r2, r1
mov r2, #0
beq .L44
bl __stack_chk_fail
.L44:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L46:
.align 2
.L45:
.word .LC9
.word -1598689907
.word 1051772663
.word 1000000
.word 1093567616
.size checktick, .-checktick
.global __aeabi_dcmpge
.section .rodata
.align 2
.LC10:
.ascii "Failed Validation on array a[]\000"
.align 2
.LC11:
.ascii " Expected : %f \012\000"
.align 2
.LC12:
.ascii " Observed : %f \012\000"
.align 2
.LC13:
.ascii "Failed Validation on array b[]\000"
.align 2
.LC14:
.ascii "Failed Validation on array c[]\000"
.align 2
.LC15:
.ascii "Solution Validates\000"
.text
.align 2
.global checkSTREAMresults
.syntax unified
.arm
.fpu softvfp
.type checkSTREAMresults, %function
checkSTREAMresults:
@ args = 0, pretend = 0, frame = 72
@ frame_needed = 1, uses_anonymous_args = 0
push {r4, r5, r6, r7, r8, r9, fp, lr}
add fp, sp, #28
sub sp, sp, #72
mov r2, #0
ldr r3, .L81
str r2, [fp, #-92]
str r3, [fp, #-88]
mov r2, #0
mov r3, #1073741824
str r2, [fp, #-84]
str r3, [fp, #-80]
mov r2, #0
mov r3, #0
str r2, [fp, #-76]
str r3, [fp, #-72]
sub r1, fp, #92
ldmia r1, {r0-r1}
mov r2, r0
mov r3, r1
bl __aeabi_dadd
mov r2, r0
mov r3, r1
str r2, [fp, #-92]
str r3, [fp, #-88]
mov r2, #0
ldr r3, .L81+4
str r2, [fp, #-44]
str r3, [fp, #-40]
mov r3, #0
str r3, [fp, #-96]
b .L48
.L49:
sub r3, fp, #92
ldmia r3, {r2-r3}
str r2, [fp, #-76]
str r3, [fp, #-72]
sub r3, fp, #76
ldmia r3, {r2-r3}
sub r1, fp, #44
ldmia r1, {r0-r1}
bl __aeabi_dmul
mov r2, r0
mov r3, r1
str r2, [fp, #-84]
str r3, [fp, #-80]
sub r3, fp, #84
ldmia r3, {r2-r3}
sub r1, fp, #92
ldmia r1, {r0-r1}
bl __aeabi_dadd
mov r2, r0
mov r3, r1
str r2, [fp, #-76]
str r3, [fp, #-72]
sub r3, fp, #76
ldmia r3, {r2-r3}
sub r1, fp, #44
ldmia r1, {r0-r1}
bl __aeabi_dmul
mov r2, r0
mov r3, r1
sub r1, fp, #84
ldmia r1, {r0-r1}
bl __aeabi_dadd
mov r2, r0
mov r3, r1
str r2, [fp, #-92]
str r3, [fp, #-88]
ldr r3, [fp, #-96]
add r3, r3, #1
str r3, [fp, #-96]
.L48:
ldr r3, [fp, #-96]
cmp r3, #9
ble .L49
mov r2, #0
ldr r3, .L81+8
sub r1, fp, #92
ldmia r1, {r0-r1}
bl __aeabi_dmul
mov r2, r0
mov r3, r1
str r2, [fp, #-92]
str r3, [fp, #-88]
mov r2, #0
ldr r3, .L81+8
sub r1, fp, #84
ldmia r1, {r0-r1}
bl __aeabi_dmul
mov r2, r0
mov r3, r1
str r2, [fp, #-84]
str r3, [fp, #-80]
mov r2, #0
ldr r3, .L81+8
sub r1, fp, #76
ldmia r1, {r0-r1}
bl __aeabi_dmul
mov r2, r0
mov r3, r1
str r2, [fp, #-76]
str r3, [fp, #-72]
mov r2, #0
mov r3, #0
str r2, [fp, #-68]
str r3, [fp, #-64]
mov r2, #0
mov r3, #0
str r2, [fp, #-60]
str r3, [fp, #-56]
mov r2, #0
mov r3, #0
str r2, [fp, #-52]
str r3, [fp, #-48]
mov r3, #0
str r3, [fp, #-100]
b .L50
.L51:
ldr r2, .L81+12
ldr r3, [fp, #-100]
lsl r3, r3, #3
add r3, r2, r3
ldmia r3, {r2-r3}
sub r1, fp, #68
ldmia r1, {r0-r1}
bl __aeabi_dadd
mov r2, r0
mov r3, r1
str r2, [fp, #-68]
str r3, [fp, #-64]
ldr r2, .L81+16
ldr r3, [fp, #-100]
lsl r3, r3, #3
add r3, r2, r3
ldmia r3, {r2-r3}
sub r1, fp, #60
ldmia r1, {r0-r1}
bl __aeabi_dadd
mov r2, r0
mov r3, r1
str r2, [fp, #-60]
str r3, [fp, #-56]
ldr r2, .L81+20
ldr r3, [fp, #-100]
lsl r3, r3, #3
add r3, r2, r3
ldmia r3, {r2-r3}
sub r1, fp, #52
ldmia r1, {r0-r1}
bl __aeabi_dadd
mov r2, r0
mov r3, r1
str r2, [fp, #-52]
str r3, [fp, #-48]
ldr r3, [fp, #-100]
add r3, r3, #1
str r3, [fp, #-100]
.L50:
ldr r3, [fp, #-100]
ldr r2, .L81+24
cmp r3, r2
blt .L51
ldr r2, .L81+28
ldr r3, .L81+32
str r2, [fp, #-36]
str r3, [fp, #-32]
sub r3, fp, #68
ldmia r3, {r2-r3}
sub r1, fp, #92
ldmia r1, {r0-r1}
bl __aeabi_dsub
mov r2, r0
mov r3, r1
mov r0, r2
mov r1, r3
mov r2, #0
mov r3, #0
bl __aeabi_dcmpge
mov r3, r0
cmp r3, #0
beq .L74
sub r3, fp, #68
ldmia r3, {r2-r3}
sub r1, fp, #92
ldmia r1, {r0-r1}
bl __aeabi_dsub
mov r2, r0
mov r3, r1
mov r8, r2
mov r9, r3
b .L54
.L74:
sub r3, fp, #68
ldmia r3, {r2-r3}
sub r1, fp, #92
ldmia r1, {r0-r1}
bl __aeabi_dsub
mov r2, r0
mov r3, r1
mov r8, r2
eor r9, r3, #-2147483648
.L54:
sub r3, fp, #68
ldmia r3, {r2-r3}
mov r0, r8
mov r1, r9
bl __aeabi_ddiv
mov r2, r0
mov r3, r1
sub r1, fp, #36
ldmia r1, {r0-r1}
bl __aeabi_dcmplt
mov r3, r0
cmp r3, #0
beq .L75
ldr r0, .L81+36
bl puts
sub r3, fp, #92
ldmia r3, {r2-r3}
ldr r0, .L81+40
bl printf
sub r3, fp, #68
ldmia r3, {r2-r3}
ldr r0, .L81+44
bl printf
b .L80
.L75:
sub r3, fp, #60
ldmia r3, {r2-r3}
sub r1, fp, #84
ldmia r1, {r0-r1}
bl __aeabi_dsub
mov r2, r0
mov r3, r1
mov r0, r2
mov r1, r3
mov r2, #0
mov r3, #0
bl __aeabi_dcmpge
mov r3, r0
cmp r3, #0
beq .L76
sub r3, fp, #60
ldmia r3, {r2-r3}
sub r1, fp, #84
ldmia r1, {r0-r1}
bl __aeabi_dsub
mov r2, r0
mov r3, r1
mov r6, r2
mov r7, r3
b .L60
.L76:
sub r3, fp, #60
ldmia r3, {r2-r3}
sub r1, fp, #84
ldmia r1, {r0-r1}
bl __aeabi_dsub
mov r2, r0
mov r3, r1
mov r6, r2
eor r7, r3, #-2147483648
.L60:
sub r3, fp, #60
ldmia r3, {r2-r3}
mov r0, r6
mov r1, r7
bl __aeabi_ddiv
mov r2, r0
mov r3, r1
sub r1, fp, #36
ldmia r1, {r0-r1}
bl __aeabi_dcmplt
mov r3, r0
cmp r3, #0
beq .L77
ldr r0, .L81+48
bl puts
sub r3, fp, #84
ldmia r3, {r2-r3}
ldr r0, .L81+40
bl printf
sub r3, fp, #60
ldmia r3, {r2-r3}
ldr r0, .L81+44
bl printf
b .L80
.L77:
sub r3, fp, #52
ldmia r3, {r2-r3}
sub r1, fp, #76
ldmia r1, {r0-r1}
bl __aeabi_dsub
mov r2, r0
mov r3, r1
mov r0, r2
mov r1, r3
mov r2, #0
mov r3, #0
bl __aeabi_dcmpge
mov r3, r0
cmp r3, #0
beq .L78
sub r3, fp, #52
ldmia r3, {r2-r3}
sub r1, fp, #76
ldmia r1, {r0-r1}
bl __aeabi_dsub
mov r2, r0
mov r3, r1
mov r4, r2
mov r5, r3
b .L65
.L78:
sub r3, fp, #52
ldmia r3, {r2-r3}
sub r1, fp, #76
ldmia r1, {r0-r1}
bl __aeabi_dsub
mov r2, r0
mov r3, r1
mov r4, r2
eor r5, r3, #-2147483648
.L65:
sub r3, fp, #52
ldmia r3, {r2-r3}
mov r0, r4
mov r1, r5
bl __aeabi_ddiv
mov r2, r0
mov r3, r1
sub r1, fp, #36
ldmia r1, {r0-r1}
bl __aeabi_dcmplt
mov r3, r0
cmp r3, #0
beq .L79
ldr r0, .L81+52
bl puts
sub r3, fp, #76
ldmia r3, {r2-r3}
ldr r0, .L81+40
bl printf
sub r3, fp, #52
ldmia r3, {r2-r3}
ldr r0, .L81+44
bl printf
b .L80
.L79:
ldr r0, .L81+56
bl puts
.L80:
nop
sub sp, fp, #28
@ sp needed
pop {r4, r5, r6, r7, r8, r9, fp, pc}
.L82:
.align 2
.L81:
.word 1072693248
.word 1074266112
.word 1094616192
.word a
.word b
.word c
.word 2000000
.word -500134854
.word 1044740494
.word .LC10
.word .LC11
.word .LC12
.word .LC13
.word .LC14
.word .LC15
.size checkSTREAMresults, .-checkSTREAMresults
.align 2
.global tuned_STREAM_Copy
.syntax unified
.arm
.fpu softvfp
.type tuned_STREAM_Copy, %function
tuned_STREAM_Copy:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #12
mov r3, #0
str r3, [fp, #-8]
b .L84
.L85:
ldr r2, .L86
ldr r3, [fp, #-8]
lsl r3, r3, #3
add r3, r2, r3
ldmia r3, {r2-r3}
ldr r0, .L86+4
ldr r1, [fp, #-8]
lsl r1, r1, #3
add r1, r0, r1
stm r1, {r2-r3}
ldr r3, [fp, #-8]
add r3, r3, #1
str r3, [fp, #-8]
.L84:
ldr r3, [fp, #-8]
ldr r2, .L86+8
cmp r3, r2
blt .L85
nop
nop
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.L87:
.align 2
.L86:
.word a
.word c
.word 2000000
.size tuned_STREAM_Copy, .-tuned_STREAM_Copy
.align 2
.global tuned_STREAM_Scale
.syntax unified
.arm
.fpu softvfp
.type tuned_STREAM_Scale, %function
tuned_STREAM_Scale:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #16
str r0, [fp, #-20]
str r1, [fp, #-16]
mov r3, #0
str r3, [fp, #-8]
b .L89
.L90:
ldr r2, .L91
ldr r3, [fp, #-8]
lsl r3, r3, #3
add r3, r2, r3
ldmia r3, {r0-r1}
sub r3, fp, #20
ldmia r3, {r2-r3}
bl __aeabi_dmul
mov r2, r0
mov r3, r1
ldr r0, .L91+4
ldr r1, [fp, #-8]
lsl r1, r1, #3
add r1, r0, r1
stm r1, {r2-r3}
ldr r3, [fp, #-8]
add r3, r3, #1
str r3, [fp, #-8]
.L89:
ldr r3, [fp, #-8]
ldr r2, .L91+8
cmp r3, r2
blt .L90
nop
nop
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L92:
.align 2
.L91:
.word c
.word b
.word 2000000
.size tuned_STREAM_Scale, .-tuned_STREAM_Scale
.align 2
.global tuned_STREAM_Add
.syntax unified
.arm
.fpu softvfp
.type tuned_STREAM_Add, %function
tuned_STREAM_Add:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #8
mov r3, #0
str r3, [fp, #-8]
b .L94
.L95:
ldr r2, .L96
ldr r3, [fp, #-8]
lsl r3, r3, #3
add r3, r2, r3
ldmia r3, {r0-r1}
ldr r2, .L96+4
ldr r3, [fp, #-8]
lsl r3, r3, #3
add r3, r2, r3
ldmia r3, {r2-r3}
bl __aeabi_dadd
mov r2, r0
mov r3, r1
ldr r0, .L96+8
ldr r1, [fp, #-8]
lsl r1, r1, #3
add r1, r0, r1
stm r1, {r2-r3}
ldr r3, [fp, #-8]
add r3, r3, #1
str r3, [fp, #-8]
.L94:
ldr r3, [fp, #-8]
ldr r2, .L96+12
cmp r3, r2
blt .L95
nop
nop
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L97:
.align 2
.L96:
.word a
.word b
.word c
.word 2000000
.size tuned_STREAM_Add, .-tuned_STREAM_Add
.align 2
.global tuned_STREAM_Triad
.syntax unified
.arm
.fpu softvfp
.type tuned_STREAM_Triad, %function
tuned_STREAM_Triad:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
push {r4, r5, fp, lr}
add fp, sp, #12
sub sp, sp, #16
str r0, [fp, #-28]
str r1, [fp, #-24]
mov r3, #0
str r3, [fp, #-16]
b .L99
.L100:
ldr r2, .L101
ldr r3, [fp, #-16]
lsl r3, r3, #3
add r3, r2, r3
ldmia r3, {r4-r5}
ldr r2, .L101+4
ldr r3, [fp, #-16]
lsl r3, r3, #3
add r3, r2, r3
ldmia r3, {r0-r1}
sub r3, fp, #28
ldmia r3, {r2-r3}
bl __aeabi_dmul
mov r2, r0
mov r3, r1
mov r0, r4
mov r1, r5
bl __aeabi_dadd
mov r2, r0
mov r3, r1
ldr r0, .L101+8
ldr r1, [fp, #-16]
lsl r1, r1, #3
add r1, r0, r1
stm r1, {r2-r3}
ldr r3, [fp, #-16]
add r3, r3, #1
str r3, [fp, #-16]
.L99:
ldr r3, [fp, #-16]
ldr r2, .L101+12
cmp r3, r2
blt .L100
nop
nop
sub sp, fp, #12
@ sp needed
pop {r4, r5, fp, pc}
.L102:
.align 2
.L101:
.word b
.word c
.word a
.word 2000000
.size tuned_STREAM_Triad, .-tuned_STREAM_Triad
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "823879.c"
.intel_syntax noprefix
.text
.globl refclock_dumbclock_bs
.bss
.align 4
.type refclock_dumbclock_bs, @object
.size refclock_dumbclock_bs, 4
refclock_dumbclock_bs:
.zero 4
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "823879.c"
.text
.comm refclock_dumbclock_bs,4,4
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "697464.c"
.intel_syntax noprefix
.text
.section .rodata
.LC0:
.string "%d"
.LC1:
.string "%4d"
.text
.globl main
.type main, @function
main:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 32
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
lea rax, -20[rbp]
mov rsi, rax
lea rdi, .LC0[rip]
mov eax, 0
call __isoc99_scanf@PLT
mov DWORD PTR -16[rbp], 1
jmp .L2
.L5:
mov DWORD PTR -12[rbp], 1
jmp .L3
.L4:
mov eax, DWORD PTR -16[rbp]
imul eax, DWORD PTR -12[rbp]
mov esi, eax
lea rdi, .LC1[rip]
mov eax, 0
call printf@PLT
add DWORD PTR -12[rbp], 1
.L3:
mov eax, DWORD PTR -20[rbp]
cmp DWORD PTR -12[rbp], eax
jle .L4
mov edi, 10
call putchar@PLT
add DWORD PTR -16[rbp], 1
.L2:
mov eax, DWORD PTR -20[rbp]
cmp DWORD PTR -16[rbp], eax
jle .L5
mov eax, 0
mov rdx, QWORD PTR -8[rbp]
sub rdx, QWORD PTR fs:40
je .L7
call __stack_chk_fail@PLT
.L7:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size main, .-main
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "697464.c"
.text
.section .rodata
.align 2
.LC0:
.ascii "%d\000"
.align 2
.LC1:
.ascii "%4d\000"
.align 2
.LC2:
.word __stack_chk_guard
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #16
ldr r3, .L8
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
sub r3, fp, #20
mov r1, r3
ldr r0, .L8+4
bl __isoc99_scanf
mov r3, #1
str r3, [fp, #-16]
b .L2
.L5:
mov r3, #1
str r3, [fp, #-12]
b .L3
.L4:
ldr r3, [fp, #-16]
ldr r2, [fp, #-12]
mul r3, r2, r3
mov r1, r3
ldr r0, .L8+8
bl printf
ldr r3, [fp, #-12]
add r3, r3, #1
str r3, [fp, #-12]
.L3:
ldr r3, [fp, #-20]
ldr r2, [fp, #-12]
cmp r2, r3
ble .L4
mov r0, #10
bl putchar
ldr r3, [fp, #-16]
add r3, r3, #1
str r3, [fp, #-16]
.L2:
ldr r3, [fp, #-20]
ldr r2, [fp, #-16]
cmp r2, r3
ble .L5
mov r3, #0
ldr r2, .L8
ldr r1, [r2]
ldr r2, [fp, #-8]
eors r1, r2, r1
mov r2, #0
beq .L7
bl __stack_chk_fail
.L7:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L9:
.align 2
.L8:
.word .LC2
.word .LC0
.word .LC1
.size main, .-main
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "21937.c"
.intel_syntax noprefix
.text
.globl zhs
.type zhs, @function
zhs:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
push rbx
sub rsp, 24
.cfi_offset 3, -24
mov DWORD PTR -20[rbp], edi
mov DWORD PTR -24[rbp], esi
cmp DWORD PTR -20[rbp], 1
jne .L2
mov eax, DWORD PTR -24[rbp]
jmp .L3
.L2:
cmp DWORD PTR -24[rbp], 1
jne .L4
mov eax, 0
jmp .L3
.L4:
mov eax, DWORD PTR -24[rbp]
lea edx, -1[rax]
mov eax, DWORD PTR -20[rbp]
sub eax, 1
mov esi, edx
mov edi, eax
call zhs
mov ebx, eax
mov eax, DWORD PTR -24[rbp]
lea edx, -1[rax]
mov eax, DWORD PTR -20[rbp]
mov esi, edx
mov edi, eax
call zhs
add eax, ebx
.L3:
mov rbx, QWORD PTR -8[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size zhs, .-zhs
.section .rodata
.LC0:
.string "%d%d"
.LC1:
.string "%d"
.text
.globl main
.type main, @function
main:
.LFB1:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 32
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
lea rdx, -20[rbp]
lea rax, -16[rbp]
mov rsi, rax
lea rdi, .LC0[rip]
mov eax, 0
call __isoc99_scanf@PLT
mov edx, DWORD PTR -16[rbp]
mov eax, DWORD PTR -20[rbp]
mov esi, edx
mov edi, eax
call zhs
mov DWORD PTR -12[rbp], eax
mov eax, DWORD PTR -12[rbp]
mov esi, eax
lea rdi, .LC1[rip]
mov eax, 0
call printf@PLT
mov eax, 0
mov rcx, QWORD PTR -8[rbp]
sub rcx, QWORD PTR fs:40
je .L7
call __stack_chk_fail@PLT
.L7:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE1:
.size main, .-main
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "21937.c"
.text
.align 2
.global zhs
.syntax unified
.arm
.fpu softvfp
.type zhs, %function
zhs:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
push {r4, fp, lr}
add fp, sp, #8
sub sp, sp, #12
str r0, [fp, #-16]
str r1, [fp, #-20]
ldr r3, [fp, #-16]
cmp r3, #1
bne .L2
ldr r3, [fp, #-20]
b .L3
.L2:
ldr r3, [fp, #-20]
cmp r3, #1
bne .L4
mov r3, #0
b .L3
.L4:
ldr r3, [fp, #-16]
sub r2, r3, #1
ldr r3, [fp, #-20]
sub r3, r3, #1
mov r1, r3
mov r0, r2
bl zhs
mov r4, r0
ldr r3, [fp, #-20]
sub r3, r3, #1
mov r1, r3
ldr r0, [fp, #-16]
bl zhs
mov r3, r0
add r3, r4, r3
.L3:
mov r0, r3
sub sp, fp, #8
@ sp needed
pop {r4, fp, pc}
.size zhs, .-zhs
.section .rodata
.align 2
.LC0:
.ascii "%d%d\000"
.align 2
.LC1:
.ascii "%d\000"
.align 2
.LC2:
.word __stack_chk_guard
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #16
ldr r3, .L8
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
sub r2, fp, #20
sub r3, fp, #16
mov r1, r3
ldr r0, .L8+4
bl __isoc99_scanf
ldr r3, [fp, #-20]
ldr r2, [fp, #-16]
mov r1, r2
mov r0, r3
bl zhs
str r0, [fp, #-12]
ldr r1, [fp, #-12]
ldr r0, .L8+8
bl printf
mov r3, #0
ldr r2, .L8
ldr r1, [r2]
ldr r2, [fp, #-8]
eors r1, r2, r1
mov r2, #0
beq .L7
bl __stack_chk_fail
.L7:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L9:
.align 2
.L8:
.word .LC2
.word .LC0
.word .LC1
.size main, .-main
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "758599.c"
.intel_syntax noprefix
.text
.section .rodata
.LC0:
.string "c"
.text
.globl foo
.type foo, @function
foo:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov BYTE PTR .LC0[rip], 120
nop
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size foo, .-foo
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "758599.c"
.text
.section .rodata
.align 2
.LC0:
.ascii "c\000"
.text
.align 2
.global foo
.syntax unified
.arm
.fpu softvfp
.type foo, %function
foo:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
ldr r3, .L2
mov r2, #120
strb r2, [r3]
nop
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.L3:
.align 2
.L2:
.word .LC0
.size foo, .-foo
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "714646.c"
.intel_syntax noprefix
.text
.globl __VERIFIER_assert
.type __VERIFIER_assert, @function
__VERIFIER_assert:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov DWORD PTR -4[rbp], edi
cmp DWORD PTR -4[rbp], 0
jne .L5
nop
.L3:
mov eax, 0
call __VERIFIER_error@PLT
.L5:
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size __VERIFIER_assert, .-__VERIFIER_assert
.globl __global_lock
.bss
.align 4
.type __global_lock, @object
.size __global_lock, 4
__global_lock:
.zero 4
.text
.globl __VERIFIER_atomic_begin
.type __VERIFIER_atomic_begin, @function
__VERIFIER_atomic_begin:
.LFB1:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov eax, DWORD PTR __global_lock[rip]
test eax, eax
sete al
movzx eax, al
mov edi, eax
mov eax, 0
call __VERIFIER_assume@PLT
mov DWORD PTR __global_lock[rip], 1
nop
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE1:
.size __VERIFIER_atomic_begin, .-__VERIFIER_atomic_begin
.globl __VERIFIER_atomic_end
.type __VERIFIER_atomic_end, @function
__VERIFIER_atomic_end:
.LFB2:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov eax, DWORD PTR __global_lock[rip]
cmp eax, 1
sete al
movzx eax, al
mov edi, eax
mov eax, 0
call __VERIFIER_assume@PLT
mov DWORD PTR __global_lock[rip], 0
nop
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE2:
.size __VERIFIER_atomic_end, .-__VERIFIER_atomic_end
.globl __unbuffered_cnt
.bss
.align 4
.type __unbuffered_cnt, @object
.size __unbuffered_cnt, 4
__unbuffered_cnt:
.zero 4
.globl __unbuffered_p0_EAX
.align 4
.type __unbuffered_p0_EAX, @object
.size __unbuffered_p0_EAX, 4
__unbuffered_p0_EAX:
.zero 4
.globl __unbuffered_p2_EAX
.align 4
.type __unbuffered_p2_EAX, @object
.size __unbuffered_p2_EAX, 4
__unbuffered_p2_EAX:
.zero 4
.globl __unbuffered_p2_EAX$flush_delayed
.type __unbuffered_p2_EAX$flush_delayed, @object
.size __unbuffered_p2_EAX$flush_delayed, 1
__unbuffered_p2_EAX$flush_delayed:
.zero 1
.globl __unbuffered_p2_EAX$mem_tmp
.align 4
.type __unbuffered_p2_EAX$mem_tmp, @object
.size __unbuffered_p2_EAX$mem_tmp, 4
__unbuffered_p2_EAX$mem_tmp:
.zero 4
.globl __unbuffered_p2_EAX$r_buff0_thd0
.type __unbuffered_p2_EAX$r_buff0_thd0, @object
.size __unbuffered_p2_EAX$r_buff0_thd0, 1
__unbuffered_p2_EAX$r_buff0_thd0:
.zero 1
.globl __unbuffered_p2_EAX$r_buff0_thd1
.type __unbuffered_p2_EAX$r_buff0_thd1, @object
.size __unbuffered_p2_EAX$r_buff0_thd1, 1
__unbuffered_p2_EAX$r_buff0_thd1:
.zero 1
.globl __unbuffered_p2_EAX$r_buff0_thd2
.type __unbuffered_p2_EAX$r_buff0_thd2, @object
.size __unbuffered_p2_EAX$r_buff0_thd2, 1
__unbuffered_p2_EAX$r_buff0_thd2:
.zero 1
.globl __unbuffered_p2_EAX$r_buff0_thd3
.type __unbuffered_p2_EAX$r_buff0_thd3, @object
.size __unbuffered_p2_EAX$r_buff0_thd3, 1
__unbuffered_p2_EAX$r_buff0_thd3:
.zero 1
.globl __unbuffered_p2_EAX$r_buff1_thd0
.type __unbuffered_p2_EAX$r_buff1_thd0, @object
.size __unbuffered_p2_EAX$r_buff1_thd0, 1
__unbuffered_p2_EAX$r_buff1_thd0:
.zero 1
.globl __unbuffered_p2_EAX$r_buff1_thd1
.type __unbuffered_p2_EAX$r_buff1_thd1, @object
.size __unbuffered_p2_EAX$r_buff1_thd1, 1
__unbuffered_p2_EAX$r_buff1_thd1:
.zero 1
.globl __unbuffered_p2_EAX$r_buff1_thd2
.type __unbuffered_p2_EAX$r_buff1_thd2, @object
.size __unbuffered_p2_EAX$r_buff1_thd2, 1
__unbuffered_p2_EAX$r_buff1_thd2:
.zero 1
.globl __unbuffered_p2_EAX$r_buff1_thd3
.type __unbuffered_p2_EAX$r_buff1_thd3, @object
.size __unbuffered_p2_EAX$r_buff1_thd3, 1
__unbuffered_p2_EAX$r_buff1_thd3:
.zero 1
.globl __unbuffered_p2_EAX$read_delayed
.type __unbuffered_p2_EAX$read_delayed, @object
.size __unbuffered_p2_EAX$read_delayed, 1
__unbuffered_p2_EAX$read_delayed:
.zero 1
.globl __unbuffered_p2_EAX$read_delayed_var
.align 8
.type __unbuffered_p2_EAX$read_delayed_var, @object
.size __unbuffered_p2_EAX$read_delayed_var, 8
__unbuffered_p2_EAX$read_delayed_var:
.zero 8
.globl __unbuffered_p2_EAX$w_buff0
.align 4
.type __unbuffered_p2_EAX$w_buff0, @object
.size __unbuffered_p2_EAX$w_buff0, 4
__unbuffered_p2_EAX$w_buff0:
.zero 4
.globl __unbuffered_p2_EAX$w_buff0_used
.type __unbuffered_p2_EAX$w_buff0_used, @object
.size __unbuffered_p2_EAX$w_buff0_used, 1
__unbuffered_p2_EAX$w_buff0_used:
.zero 1
.globl __unbuffered_p2_EAX$w_buff1
.align 4
.type __unbuffered_p2_EAX$w_buff1, @object
.size __unbuffered_p2_EAX$w_buff1, 4
__unbuffered_p2_EAX$w_buff1:
.zero 4
.globl __unbuffered_p2_EAX$w_buff1_used
.type __unbuffered_p2_EAX$w_buff1_used, @object
.size __unbuffered_p2_EAX$w_buff1_used, 1
__unbuffered_p2_EAX$w_buff1_used:
.zero 1
.globl __unbuffered_p2_EBX
.align 4
.type __unbuffered_p2_EBX, @object
.size __unbuffered_p2_EBX, 4
__unbuffered_p2_EBX:
.zero 4
.globl main$tmp_guard0
.type main$tmp_guard0, @object
.size main$tmp_guard0, 1
main$tmp_guard0:
.zero 1
.globl main$tmp_guard1
.type main$tmp_guard1, @object
.size main$tmp_guard1, 1
main$tmp_guard1:
.zero 1
.globl x
.align 4
.type x, @object
.size x, 4
x:
.zero 4
.globl x$flush_delayed
.type x$flush_delayed, @object
.size x$flush_delayed, 1
x$flush_delayed:
.zero 1
.globl x$mem_tmp
.align 4
.type x$mem_tmp, @object
.size x$mem_tmp, 4
x$mem_tmp:
.zero 4
.globl x$r_buff0_thd0
.type x$r_buff0_thd0, @object
.size x$r_buff0_thd0, 1
x$r_buff0_thd0:
.zero 1
.globl x$r_buff0_thd1
.type x$r_buff0_thd1, @object
.size x$r_buff0_thd1, 1
x$r_buff0_thd1:
.zero 1
.globl x$r_buff0_thd2
.type x$r_buff0_thd2, @object
.size x$r_buff0_thd2, 1
x$r_buff0_thd2:
.zero 1
.globl x$r_buff0_thd3
.type x$r_buff0_thd3, @object
.size x$r_buff0_thd3, 1
x$r_buff0_thd3:
.zero 1
.globl x$r_buff1_thd0
.type x$r_buff1_thd0, @object
.size x$r_buff1_thd0, 1
x$r_buff1_thd0:
.zero 1
.globl x$r_buff1_thd1
.type x$r_buff1_thd1, @object
.size x$r_buff1_thd1, 1
x$r_buff1_thd1:
.zero 1
.globl x$r_buff1_thd2
.type x$r_buff1_thd2, @object
.size x$r_buff1_thd2, 1
x$r_buff1_thd2:
.zero 1
.globl x$r_buff1_thd3
.type x$r_buff1_thd3, @object
.size x$r_buff1_thd3, 1
x$r_buff1_thd3:
.zero 1
.globl x$read_delayed
.type x$read_delayed, @object
.size x$read_delayed, 1
x$read_delayed:
.zero 1
.globl x$read_delayed_var
.align 8
.type x$read_delayed_var, @object
.size x$read_delayed_var, 8
x$read_delayed_var:
.zero 8
.globl x$w_buff0
.align 4
.type x$w_buff0, @object
.size x$w_buff0, 4
x$w_buff0:
.zero 4
.globl x$w_buff0_used
.type x$w_buff0_used, @object
.size x$w_buff0_used, 1
x$w_buff0_used:
.zero 1
.globl x$w_buff1
.align 4
.type x$w_buff1, @object
.size x$w_buff1, 4
x$w_buff1:
.zero 4
.globl x$w_buff1_used
.type x$w_buff1_used, @object
.size x$w_buff1_used, 1
x$w_buff1_used:
.zero 1
.globl y
.align 4
.type y, @object
.size y, 4
y:
.zero 4
.globl weak$$choice0
.type weak$$choice0, @object
.size weak$$choice0, 1
weak$$choice0:
.zero 1
.globl weak$$choice1
.type weak$$choice1, @object
.size weak$$choice1, 1
weak$$choice1:
.zero 1
.globl weak$$choice2
.type weak$$choice2, @object
.size weak$$choice2, 1
weak$$choice2:
.zero 1
.text
.globl P0
.type P0, @function
P0:
.LFB3:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov QWORD PTR -8[rbp], rdi
mov eax, 0
call __VERIFIER_atomic_begin
mov DWORD PTR y[rip], 1
mov eax, 0
call __VERIFIER_atomic_end
mov eax, 0
call __VERIFIER_atomic_begin
mov eax, 0
call __VERIFIER_atomic_end
mov eax, 0
call __VERIFIER_atomic_begin
mov eax, 0
call nondet_0@PLT
test eax, eax
setne al
mov BYTE PTR weak$$choice0[rip], al
mov eax, 0
call nondet_0@PLT
test eax, eax
setne al
mov BYTE PTR weak$$choice2[rip], al
movzx eax, BYTE PTR weak$$choice2[rip]
mov BYTE PTR x$flush_delayed[rip], al
mov eax, DWORD PTR x[rip]
mov DWORD PTR x$mem_tmp[rip], eax
movzx eax, BYTE PTR x$w_buff0_used[rip]
test al, al
je .L11
movzx eax, BYTE PTR x$r_buff0_thd1[rip]
test al, al
jne .L12
movzx eax, BYTE PTR x$w_buff1_used[rip]
test al, al
je .L11
.L12:
movzx eax, BYTE PTR x$r_buff0_thd1[rip]
test al, al
jne .L13
movzx eax, BYTE PTR x$r_buff1_thd1[rip]
test al, al
je .L11
.L13:
movzx eax, BYTE PTR x$w_buff0_used[rip]
test al, al
je .L14
movzx eax, BYTE PTR x$r_buff0_thd1[rip]
test al, al
je .L14
mov eax, DWORD PTR x$w_buff0[rip]
jmp .L16
.L14:
mov eax, DWORD PTR x$w_buff1[rip]
jmp .L16
.L11:
mov eax, DWORD PTR x[rip]
.L16:
mov DWORD PTR x[rip], eax
mov eax, DWORD PTR x$w_buff0[rip]
mov DWORD PTR x$w_buff0[rip], eax
mov eax, DWORD PTR x$w_buff1[rip]
mov DWORD PTR x$w_buff1[rip], eax
movzx eax, BYTE PTR weak$$choice2[rip]
test al, al
je .L17
movzx eax, BYTE PTR x$w_buff0_used[rip]
movzx eax, al
test eax, eax
setne al
jmp .L18
.L17:
movzx eax, BYTE PTR x$w_buff0_used[rip]
xor eax, 1
test al, al
jne .L19
movzx eax, BYTE PTR x$r_buff0_thd1[rip]
xor eax, 1
test al, al
je .L20
movzx eax, BYTE PTR x$w_buff1_used[rip]
xor eax, 1
test al, al
jne .L19
.L20:
movzx eax, BYTE PTR x$r_buff0_thd1[rip]
xor eax, 1
test al, al
je .L21
movzx eax, BYTE PTR x$r_buff1_thd1[rip]
xor eax, 1
test al, al
je .L21
.L19:
movzx eax, BYTE PTR x$w_buff0_used[rip]
movzx eax, al
test eax, eax
setne al
jmp .L18
.L21:
movzx eax, BYTE PTR x$w_buff0_used[rip]
test al, al
je .L23
movzx eax, BYTE PTR x$r_buff0_thd1[rip]
test al, al
jne .L24
.L23:
mov eax, 1
jmp .L25
.L24:
mov eax, 0
.L25:
and eax, 1
test al, al
je .L26
movzx eax, BYTE PTR x$w_buff0_used[rip]
movzx eax, al
test eax, eax
je .L26
mov eax, 1
jmp .L18
.L26:
mov eax, 0
.L18:
mov BYTE PTR x$w_buff0_used[rip], al
movzx eax, BYTE PTR weak$$choice2[rip]
test al, al
je .L28
movzx eax, BYTE PTR x$w_buff1_used[rip]
movzx eax, al
test eax, eax
setne al
jmp .L29
.L28:
movzx eax, BYTE PTR x$w_buff0_used[rip]
xor eax, 1
test al, al
jne .L30
movzx eax, BYTE PTR x$r_buff0_thd1[rip]
xor eax, 1
test al, al
je .L31
movzx eax, BYTE PTR x$w_buff1_used[rip]
xor eax, 1
test al, al
jne .L30
.L31:
movzx eax, BYTE PTR x$r_buff0_thd1[rip]
xor eax, 1
test al, al
je .L32
movzx eax, BYTE PTR x$r_buff1_thd1[rip]
xor eax, 1
test al, al
je .L32
.L30:
mov eax, 1
jmp .L33
.L32:
mov eax, 0
.L33:
and eax, 1
test al, al
je .L34
movzx eax, BYTE PTR x$w_buff1_used[rip]
movzx eax, al
test eax, eax
je .L34
mov eax, 1
jmp .L29
.L34:
mov eax, 0
.L29:
mov BYTE PTR x$w_buff1_used[rip], al
movzx eax, BYTE PTR weak$$choice2[rip]
test al, al
je .L36
movzx eax, BYTE PTR x$r_buff0_thd1[rip]
movzx eax, al
test eax, eax
setne al
jmp .L37
.L36:
movzx eax, BYTE PTR x$w_buff0_used[rip]
xor eax, 1
test al, al
jne .L38
movzx eax, BYTE PTR x$r_buff0_thd1[rip]
xor eax, 1
test al, al
je .L39
movzx eax, BYTE PTR x$w_buff1_used[rip]
xor eax, 1
test al, al
jne .L38
.L39:
movzx eax, BYTE PTR x$r_buff0_thd1[rip]
xor eax, 1
test al, al
je .L40
movzx eax, BYTE PTR x$r_buff1_thd1[rip]
xor eax, 1
test al, al
je .L40
.L38:
movzx eax, BYTE PTR x$r_buff0_thd1[rip]
movzx eax, al
test eax, eax
setne al
jmp .L37
.L40:
movzx eax, BYTE PTR x$w_buff0_used[rip]
test al, al
je .L42
movzx eax, BYTE PTR x$r_buff0_thd1[rip]
test al, al
jne .L43
.L42:
mov eax, 1
jmp .L44
.L43:
mov eax, 0
.L44:
and eax, 1
test al, al
je .L45
movzx eax, BYTE PTR x$r_buff0_thd1[rip]
movzx eax, al
test eax, eax
je .L45
mov eax, 1
jmp .L37
.L45:
mov eax, 0
.L37:
mov BYTE PTR x$r_buff0_thd1[rip], al
movzx eax, BYTE PTR weak$$choice2[rip]
test al, al
je .L47
movzx eax, BYTE PTR x$r_buff1_thd1[rip]
movzx eax, al
test eax, eax
setne al
jmp .L48
.L47:
movzx eax, BYTE PTR x$w_buff0_used[rip]
xor eax, 1
test al, al
jne .L49
movzx eax, BYTE PTR x$r_buff0_thd1[rip]
xor eax, 1
test al, al
je .L50
movzx eax, BYTE PTR x$w_buff1_used[rip]
xor eax, 1
test al, al
jne .L49
.L50:
movzx eax, BYTE PTR x$r_buff0_thd1[rip]
xor eax, 1
test al, al
je .L51
movzx eax, BYTE PTR x$r_buff1_thd1[rip]
xor eax, 1
test al, al
je .L51
.L49:
mov eax, 1
jmp .L52
.L51:
mov eax, 0
.L52:
and eax, 1
test al, al
je .L53
movzx eax, BYTE PTR x$r_buff1_thd1[rip]
movzx eax, al
test eax, eax
je .L53
mov eax, 1
jmp .L48
.L53:
mov eax, 0
.L48:
mov BYTE PTR x$r_buff1_thd1[rip], al
mov eax, DWORD PTR x[rip]
mov DWORD PTR __unbuffered_p0_EAX[rip], eax
movzx eax, BYTE PTR x$flush_delayed[rip]
test al, al
je .L55
mov eax, DWORD PTR x$mem_tmp[rip]
jmp .L56
.L55:
mov eax, DWORD PTR x[rip]
.L56:
mov DWORD PTR x[rip], eax
mov BYTE PTR x$flush_delayed[rip], 0
mov eax, 0
call __VERIFIER_atomic_end
mov eax, 0
call __VERIFIER_atomic_begin
mov eax, 0
call __VERIFIER_atomic_end
mov eax, 0
call __VERIFIER_atomic_begin
mov eax, DWORD PTR __unbuffered_cnt[rip]
add eax, 1
mov DWORD PTR __unbuffered_cnt[rip], eax
mov eax, 0
call __VERIFIER_atomic_end
mov eax, 0
call nondet_1@PLT
cdqe
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE3:
.size P0, .-P0
.globl P1
.type P1, @function
P1:
.LFB4:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov QWORD PTR -8[rbp], rdi
mov eax, 0
call __VERIFIER_atomic_begin
mov DWORD PTR x[rip], 1
mov eax, 0
call __VERIFIER_atomic_end
mov eax, 0
call __VERIFIER_atomic_begin
mov DWORD PTR x[rip], 2
mov eax, 0
call __VERIFIER_atomic_end
mov eax, 0
call __VERIFIER_atomic_begin
movzx eax, BYTE PTR x$w_buff0_used[rip]
test al, al
je .L59
movzx eax, BYTE PTR x$r_buff0_thd2[rip]
test al, al
jne .L60
.L59:
movzx eax, BYTE PTR x$w_buff1_used[rip]
test al, al
je .L61
movzx eax, BYTE PTR x$r_buff1_thd2[rip]
test al, al
je .L61
mov eax, DWORD PTR x$w_buff1[rip]
jmp .L63
.L61:
mov eax, DWORD PTR x[rip]
jmp .L63
.L60:
mov eax, DWORD PTR x$w_buff0[rip]
.L63:
mov DWORD PTR x[rip], eax
movzx eax, BYTE PTR x$w_buff0_used[rip]
test al, al
je .L64
movzx eax, BYTE PTR x$r_buff0_thd2[rip]
test al, al
jne .L65
.L64:
mov eax, 1
jmp .L66
.L65:
mov eax, 0
.L66:
and eax, 1
test al, al
je .L67
movzx eax, BYTE PTR x$w_buff0_used[rip]
movzx eax, al
test eax, eax
je .L67
mov eax, 1
jmp .L68
.L67:
mov eax, 0
.L68:
mov BYTE PTR x$w_buff0_used[rip], al
movzx eax, BYTE PTR x$w_buff0_used[rip]
test al, al
je .L69
movzx eax, BYTE PTR x$r_buff0_thd2[rip]
test al, al
jne .L70
.L69:
movzx eax, BYTE PTR x$w_buff1_used[rip]
test al, al
je .L71
movzx eax, BYTE PTR x$r_buff1_thd2[rip]
test al, al
jne .L70
.L71:
mov eax, 1
jmp .L72
.L70:
mov eax, 0
.L72:
and eax, 1
test al, al
je .L73
movzx eax, BYTE PTR x$w_buff1_used[rip]
movzx eax, al
test eax, eax
je .L73
mov eax, 1
jmp .L74
.L73:
mov eax, 0
.L74:
mov BYTE PTR x$w_buff1_used[rip], al
movzx eax, BYTE PTR x$w_buff0_used[rip]
test al, al
je .L75
movzx eax, BYTE PTR x$r_buff0_thd2[rip]
test al, al
jne .L76
.L75:
mov eax, 1
jmp .L77
.L76:
mov eax, 0
.L77:
and eax, 1
test al, al
je .L78
movzx eax, BYTE PTR x$r_buff0_thd2[rip]
movzx eax, al
test eax, eax
je .L78
mov eax, 1
jmp .L79
.L78:
mov eax, 0
.L79:
mov BYTE PTR x$r_buff0_thd2[rip], al
movzx eax, BYTE PTR x$w_buff0_used[rip]
test al, al
je .L80
movzx eax, BYTE PTR x$r_buff0_thd2[rip]
test al, al
jne .L81
.L80:
movzx eax, BYTE PTR x$w_buff1_used[rip]
test al, al
je .L82
movzx eax, BYTE PTR x$r_buff1_thd2[rip]
test al, al
jne .L81
.L82:
mov eax, 1
jmp .L83
.L81:
mov eax, 0
.L83:
and eax, 1
test al, al
je .L84
movzx eax, BYTE PTR x$r_buff1_thd2[rip]
movzx eax, al
test eax, eax
je .L84
mov eax, 1
jmp .L85
.L84:
mov eax, 0
.L85:
mov BYTE PTR x$r_buff1_thd2[rip], al
mov eax, 0
call __VERIFIER_atomic_end
mov eax, 0
call __VERIFIER_atomic_begin
mov eax, DWORD PTR __unbuffered_cnt[rip]
add eax, 1
mov DWORD PTR __unbuffered_cnt[rip], eax
mov eax, 0
call __VERIFIER_atomic_end
mov eax, 0
call nondet_1@PLT
cdqe
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE4:
.size P1, .-P1
.globl P2
.type P2, @function
P2:
.LFB5:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov QWORD PTR -8[rbp], rdi
mov eax, 0
call __VERIFIER_atomic_begin
mov eax, 0
call nondet_0@PLT
test eax, eax
setne al
mov BYTE PTR weak$$choice0[rip], al
mov eax, 0
call nondet_0@PLT
test eax, eax
setne al
mov BYTE PTR weak$$choice2[rip], al
movzx eax, BYTE PTR weak$$choice2[rip]
mov BYTE PTR x$flush_delayed[rip], al
mov eax, DWORD PTR x[rip]
mov DWORD PTR x$mem_tmp[rip], eax
movzx eax, BYTE PTR x$w_buff0_used[rip]
test al, al
je .L88
movzx eax, BYTE PTR x$r_buff0_thd3[rip]
test al, al
jne .L89
movzx eax, BYTE PTR x$w_buff1_used[rip]
test al, al
je .L88
.L89:
movzx eax, BYTE PTR x$r_buff0_thd3[rip]
test al, al
jne .L90
movzx eax, BYTE PTR x$r_buff1_thd3[rip]
test al, al
je .L88
.L90:
movzx eax, BYTE PTR x$w_buff0_used[rip]
test al, al
je .L91
movzx eax, BYTE PTR x$r_buff0_thd3[rip]
test al, al
je .L91
mov eax, DWORD PTR x$w_buff0[rip]
jmp .L93
.L91:
mov eax, DWORD PTR x$w_buff1[rip]
jmp .L93
.L88:
mov eax, DWORD PTR x[rip]
.L93:
mov DWORD PTR x[rip], eax
mov eax, DWORD PTR x$w_buff0[rip]
mov DWORD PTR x$w_buff0[rip], eax
mov eax, DWORD PTR x$w_buff1[rip]
mov DWORD PTR x$w_buff1[rip], eax
movzx eax, BYTE PTR weak$$choice2[rip]
test al, al
je .L94
movzx eax, BYTE PTR x$w_buff0_used[rip]
movzx eax, al
test eax, eax
setne al
jmp .L95
.L94:
movzx eax, BYTE PTR x$w_buff0_used[rip]
xor eax, 1
test al, al
jne .L96
movzx eax, BYTE PTR x$r_buff0_thd3[rip]
xor eax, 1
test al, al
je .L97
movzx eax, BYTE PTR x$w_buff1_used[rip]
xor eax, 1
test al, al
jne .L96
.L97:
movzx eax, BYTE PTR x$r_buff0_thd3[rip]
xor eax, 1
test al, al
je .L98
movzx eax, BYTE PTR x$r_buff1_thd3[rip]
xor eax, 1
test al, al
je .L98
.L96:
movzx eax, BYTE PTR x$w_buff0_used[rip]
movzx eax, al
test eax, eax
setne al
jmp .L95
.L98:
movzx eax, BYTE PTR x$w_buff0_used[rip]
test al, al
je .L100
movzx eax, BYTE PTR x$r_buff0_thd3[rip]
test al, al
jne .L101
.L100:
mov eax, 1
jmp .L102
.L101:
mov eax, 0
.L102:
and eax, 1
test al, al
je .L103
movzx eax, BYTE PTR x$w_buff0_used[rip]
movzx eax, al
test eax, eax
je .L103
mov eax, 1
jmp .L95
.L103:
mov eax, 0
.L95:
mov BYTE PTR x$w_buff0_used[rip], al
movzx eax, BYTE PTR weak$$choice2[rip]
test al, al
je .L105
movzx eax, BYTE PTR x$w_buff1_used[rip]
movzx eax, al
test eax, eax
setne al
jmp .L106
.L105:
movzx eax, BYTE PTR x$w_buff0_used[rip]
xor eax, 1
test al, al
jne .L107
movzx eax, BYTE PTR x$r_buff0_thd3[rip]
xor eax, 1
test al, al
je .L108
movzx eax, BYTE PTR x$w_buff1_used[rip]
xor eax, 1
test al, al
jne .L107
.L108:
movzx eax, BYTE PTR x$r_buff0_thd3[rip]
xor eax, 1
test al, al
je .L109
movzx eax, BYTE PTR x$r_buff1_thd3[rip]
xor eax, 1
test al, al
je .L109
.L107:
mov eax, 1
jmp .L110
.L109:
mov eax, 0
.L110:
and eax, 1
test al, al
je .L111
movzx eax, BYTE PTR x$w_buff1_used[rip]
movzx eax, al
test eax, eax
je .L111
mov eax, 1
jmp .L106
.L111:
mov eax, 0
.L106:
mov BYTE PTR x$w_buff1_used[rip], al
movzx eax, BYTE PTR weak$$choice2[rip]
test al, al
je .L113
movzx eax, BYTE PTR x$r_buff0_thd3[rip]
movzx eax, al
test eax, eax
setne al
jmp .L114
.L113:
movzx eax, BYTE PTR x$w_buff0_used[rip]
xor eax, 1
test al, al
jne .L115
movzx eax, BYTE PTR x$r_buff0_thd3[rip]
xor eax, 1
test al, al
je .L116
movzx eax, BYTE PTR x$w_buff1_used[rip]
xor eax, 1
test al, al
jne .L115
.L116:
movzx eax, BYTE PTR x$r_buff0_thd3[rip]
xor eax, 1
test al, al
je .L117
movzx eax, BYTE PTR x$r_buff1_thd3[rip]
xor eax, 1
test al, al
je .L117
.L115:
movzx eax, BYTE PTR x$r_buff0_thd3[rip]
movzx eax, al
test eax, eax
setne al
jmp .L114
.L117:
movzx eax, BYTE PTR x$w_buff0_used[rip]
test al, al
je .L119
movzx eax, BYTE PTR x$r_buff0_thd3[rip]
test al, al
jne .L120
.L119:
mov eax, 1
jmp .L121
.L120:
mov eax, 0
.L121:
and eax, 1
test al, al
je .L122
movzx eax, BYTE PTR x$r_buff0_thd3[rip]
movzx eax, al
test eax, eax
je .L122
mov eax, 1
jmp .L114
.L122:
mov eax, 0
.L114:
mov BYTE PTR x$r_buff0_thd3[rip], al
movzx eax, BYTE PTR weak$$choice2[rip]
test al, al
je .L124
movzx eax, BYTE PTR x$r_buff1_thd3[rip]
movzx eax, al
test eax, eax
setne al
jmp .L125
.L124:
movzx eax, BYTE PTR x$w_buff0_used[rip]
xor eax, 1
test al, al
jne .L126
movzx eax, BYTE PTR x$r_buff0_thd3[rip]
xor eax, 1
test al, al
je .L127
movzx eax, BYTE PTR x$w_buff1_used[rip]
xor eax, 1
test al, al
jne .L126
.L127:
movzx eax, BYTE PTR x$r_buff0_thd3[rip]
xor eax, 1
test al, al
je .L128
movzx eax, BYTE PTR x$r_buff1_thd3[rip]
xor eax, 1
test al, al
je .L128
.L126:
mov eax, 1
jmp .L129
.L128:
mov eax, 0
.L129:
and eax, 1
test al, al
je .L130
movzx eax, BYTE PTR x$r_buff1_thd3[rip]
movzx eax, al
test eax, eax
je .L130
mov eax, 1
jmp .L125
.L130:
mov eax, 0
.L125:
mov BYTE PTR x$r_buff1_thd3[rip], al
mov BYTE PTR __unbuffered_p2_EAX$read_delayed[rip], 1
lea rax, x[rip]
mov QWORD PTR __unbuffered_p2_EAX$read_delayed_var[rip], rax
mov eax, DWORD PTR x[rip]
mov DWORD PTR __unbuffered_p2_EAX[rip], eax
movzx eax, BYTE PTR x$flush_delayed[rip]
test al, al
je .L132
mov eax, DWORD PTR x$mem_tmp[rip]
jmp .L133
.L132:
mov eax, DWORD PTR x[rip]
.L133:
mov DWORD PTR x[rip], eax
mov BYTE PTR x$flush_delayed[rip], 0
mov eax, 0
call __VERIFIER_atomic_end
mov eax, 0
call __VERIFIER_atomic_begin
mov eax, DWORD PTR y[rip]
mov DWORD PTR __unbuffered_p2_EBX[rip], eax
mov eax, 0
call __VERIFIER_atomic_end
mov eax, 0
call __VERIFIER_atomic_begin
movzx eax, BYTE PTR x$w_buff0_used[rip]
test al, al
je .L134
movzx eax, BYTE PTR x$r_buff0_thd3[rip]
test al, al
jne .L135
.L134:
movzx eax, BYTE PTR x$w_buff1_used[rip]
test al, al
je .L136
movzx eax, BYTE PTR x$r_buff1_thd3[rip]
test al, al
je .L136
mov eax, DWORD PTR x$w_buff1[rip]
jmp .L138
.L136:
mov eax, DWORD PTR x[rip]
jmp .L138
.L135:
mov eax, DWORD PTR x$w_buff0[rip]
.L138:
mov DWORD PTR x[rip], eax
movzx eax, BYTE PTR x$w_buff0_used[rip]
test al, al
je .L139
movzx eax, BYTE PTR x$r_buff0_thd3[rip]
test al, al
jne .L140
.L139:
mov eax, 1
jmp .L141
.L140:
mov eax, 0
.L141:
and eax, 1
test al, al
je .L142
movzx eax, BYTE PTR x$w_buff0_used[rip]
movzx eax, al
test eax, eax
je .L142
mov eax, 1
jmp .L143
.L142:
mov eax, 0
.L143:
mov BYTE PTR x$w_buff0_used[rip], al
movzx eax, BYTE PTR x$w_buff0_used[rip]
test al, al
je .L144
movzx eax, BYTE PTR x$r_buff0_thd3[rip]
test al, al
jne .L145
.L144:
movzx eax, BYTE PTR x$w_buff1_used[rip]
test al, al
je .L146
movzx eax, BYTE PTR x$r_buff1_thd3[rip]
test al, al
jne .L145
.L146:
mov eax, 1
jmp .L147
.L145:
mov eax, 0
.L147:
and eax, 1
test al, al
je .L148
movzx eax, BYTE PTR x$w_buff1_used[rip]
movzx eax, al
test eax, eax
je .L148
mov eax, 1
jmp .L149
.L148:
mov eax, 0
.L149:
mov BYTE PTR x$w_buff1_used[rip], al
movzx eax, BYTE PTR x$w_buff0_used[rip]
test al, al
je .L150
movzx eax, BYTE PTR x$r_buff0_thd3[rip]
test al, al
jne .L151
.L150:
mov eax, 1
jmp .L152
.L151:
mov eax, 0
.L152:
and eax, 1
test al, al
je .L153
movzx eax, BYTE PTR x$r_buff0_thd3[rip]
movzx eax, al
test eax, eax
je .L153
mov eax, 1
jmp .L154
.L153:
mov eax, 0
.L154:
mov BYTE PTR x$r_buff0_thd3[rip], al
movzx eax, BYTE PTR x$w_buff0_used[rip]
test al, al
je .L155
movzx eax, BYTE PTR x$r_buff0_thd3[rip]
test al, al
jne .L156
.L155:
movzx eax, BYTE PTR x$w_buff1_used[rip]
test al, al
je .L157
movzx eax, BYTE PTR x$r_buff1_thd3[rip]
test al, al
jne .L156
.L157:
mov eax, 1
jmp .L158
.L156:
mov eax, 0
.L158:
and eax, 1
test al, al
je .L159
movzx eax, BYTE PTR x$r_buff1_thd3[rip]
movzx eax, al
test eax, eax
je .L159
mov eax, 1
jmp .L160
.L159:
mov eax, 0
.L160:
mov BYTE PTR x$r_buff1_thd3[rip], al
mov eax, 0
call __VERIFIER_atomic_end
mov eax, 0
call __VERIFIER_atomic_begin
mov eax, DWORD PTR __unbuffered_cnt[rip]
add eax, 1
mov DWORD PTR __unbuffered_cnt[rip], eax
mov eax, 0
call __VERIFIER_atomic_end
mov eax, 0
call nondet_1@PLT
cdqe
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE5:
.size P2, .-P2
.globl fence
.type fence, @function
fence:
.LFB6:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
nop
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size fence, .-fence
.globl isync
.type isync, @function
isync:
.LFB7:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
nop
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE7:
.size isync, .-isync
.globl lwfence
.type lwfence, @function
lwfence:
.LFB8:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
nop
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE8:
.size lwfence, .-lwfence
.globl main
.type main, @function
main:
.LFB9:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov ecx, 0
lea rdx, P0[rip]
mov esi, 0
mov edi, 0
call pthread_create@PLT
mov ecx, 0
lea rdx, P1[rip]
mov esi, 0
mov edi, 0
call pthread_create@PLT
mov ecx, 0
lea rdx, P2[rip]
mov esi, 0
mov edi, 0
call pthread_create@PLT
mov eax, 0
call __VERIFIER_atomic_begin
mov eax, DWORD PTR __unbuffered_cnt[rip]
cmp eax, 3
sete al
mov BYTE PTR main$tmp_guard0[rip], al
mov eax, 0
call __VERIFIER_atomic_end
movzx eax, BYTE PTR main$tmp_guard0[rip]
movzx eax, al
mov edi, eax
mov eax, 0
call __VERIFIER_assume@PLT
mov eax, 0
call __VERIFIER_atomic_begin
movzx eax, BYTE PTR x$w_buff0_used[rip]
test al, al
je .L166
movzx eax, BYTE PTR x$r_buff0_thd0[rip]
test al, al
jne .L167
.L166:
movzx eax, BYTE PTR x$w_buff1_used[rip]
test al, al
je .L168
movzx eax, BYTE PTR x$r_buff1_thd0[rip]
test al, al
je .L168
mov eax, DWORD PTR x$w_buff1[rip]
jmp .L170
.L168:
mov eax, DWORD PTR x[rip]
jmp .L170
.L167:
mov eax, DWORD PTR x$w_buff0[rip]
.L170:
mov DWORD PTR x[rip], eax
movzx eax, BYTE PTR x$w_buff0_used[rip]
test al, al
je .L171
movzx eax, BYTE PTR x$r_buff0_thd0[rip]
test al, al
jne .L172
.L171:
mov eax, 1
jmp .L173
.L172:
mov eax, 0
.L173:
and eax, 1
test al, al
je .L174
movzx eax, BYTE PTR x$w_buff0_used[rip]
movzx eax, al
test eax, eax
je .L174
mov eax, 1
jmp .L175
.L174:
mov eax, 0
.L175:
mov BYTE PTR x$w_buff0_used[rip], al
movzx eax, BYTE PTR x$w_buff0_used[rip]
test al, al
je .L176
movzx eax, BYTE PTR x$r_buff0_thd0[rip]
test al, al
jne .L177
.L176:
movzx eax, BYTE PTR x$w_buff1_used[rip]
test al, al
je .L178
movzx eax, BYTE PTR x$r_buff1_thd0[rip]
test al, al
jne .L177
.L178:
mov eax, 1
jmp .L179
.L177:
mov eax, 0
.L179:
and eax, 1
test al, al
je .L180
movzx eax, BYTE PTR x$w_buff1_used[rip]
movzx eax, al
test eax, eax
je .L180
mov eax, 1
jmp .L181
.L180:
mov eax, 0
.L181:
mov BYTE PTR x$w_buff1_used[rip], al
movzx eax, BYTE PTR x$w_buff0_used[rip]
test al, al
je .L182
movzx eax, BYTE PTR x$r_buff0_thd0[rip]
test al, al
jne .L183
.L182:
mov eax, 1
jmp .L184
.L183:
mov eax, 0
.L184:
and eax, 1
test al, al
je .L185
movzx eax, BYTE PTR x$r_buff0_thd0[rip]
movzx eax, al
test eax, eax
je .L185
mov eax, 1
jmp .L186
.L185:
mov eax, 0
.L186:
mov BYTE PTR x$r_buff0_thd0[rip], al
movzx eax, BYTE PTR x$w_buff0_used[rip]
test al, al
je .L187
movzx eax, BYTE PTR x$r_buff0_thd0[rip]
test al, al
jne .L188
.L187:
movzx eax, BYTE PTR x$w_buff1_used[rip]
test al, al
je .L189
movzx eax, BYTE PTR x$r_buff1_thd0[rip]
test al, al
jne .L188
.L189:
mov eax, 1
jmp .L190
.L188:
mov eax, 0
.L190:
and eax, 1
test al, al
je .L191
movzx eax, BYTE PTR x$r_buff1_thd0[rip]
movzx eax, al
test eax, eax
je .L191
mov eax, 1
jmp .L192
.L191:
mov eax, 0
.L192:
mov BYTE PTR x$r_buff1_thd0[rip], al
mov eax, 0
call __VERIFIER_atomic_end
mov eax, 0
call __VERIFIER_atomic_begin
mov eax, 0
call nondet_0@PLT
test eax, eax
setne al
mov BYTE PTR weak$$choice0[rip], al
mov eax, 0
call nondet_0@PLT
test eax, eax
setne al
mov BYTE PTR weak$$choice2[rip], al
movzx eax, BYTE PTR weak$$choice2[rip]
mov BYTE PTR x$flush_delayed[rip], al
mov eax, DWORD PTR x[rip]
mov DWORD PTR x$mem_tmp[rip], eax
movzx eax, BYTE PTR x$w_buff0_used[rip]
test al, al
je .L193
movzx eax, BYTE PTR x$r_buff0_thd0[rip]
test al, al
jne .L194
movzx eax, BYTE PTR x$w_buff1_used[rip]
test al, al
je .L193
.L194:
movzx eax, BYTE PTR x$r_buff0_thd0[rip]
test al, al
jne .L195
movzx eax, BYTE PTR x$r_buff1_thd0[rip]
test al, al
je .L193
.L195:
movzx eax, BYTE PTR x$w_buff0_used[rip]
test al, al
je .L196
movzx eax, BYTE PTR x$r_buff0_thd0[rip]
test al, al
je .L196
mov eax, DWORD PTR x$w_buff0[rip]
jmp .L198
.L196:
mov eax, DWORD PTR x$w_buff1[rip]
jmp .L198
.L193:
mov eax, DWORD PTR x[rip]
.L198:
mov DWORD PTR x[rip], eax
mov eax, DWORD PTR x$w_buff0[rip]
mov DWORD PTR x$w_buff0[rip], eax
mov eax, DWORD PTR x$w_buff1[rip]
mov DWORD PTR x$w_buff1[rip], eax
movzx eax, BYTE PTR weak$$choice2[rip]
test al, al
je .L199
movzx eax, BYTE PTR x$w_buff0_used[rip]
movzx eax, al
test eax, eax
setne al
jmp .L200
.L199:
movzx eax, BYTE PTR x$w_buff0_used[rip]
xor eax, 1
test al, al
jne .L201
movzx eax, BYTE PTR x$r_buff0_thd0[rip]
xor eax, 1
test al, al
je .L202
movzx eax, BYTE PTR x$w_buff1_used[rip]
xor eax, 1
test al, al
jne .L201
.L202:
movzx eax, BYTE PTR x$r_buff0_thd0[rip]
xor eax, 1
test al, al
je .L203
movzx eax, BYTE PTR x$r_buff1_thd0[rip]
xor eax, 1
test al, al
je .L203
.L201:
movzx eax, BYTE PTR x$w_buff0_used[rip]
movzx eax, al
test eax, eax
setne al
jmp .L200
.L203:
movzx eax, BYTE PTR x$w_buff0_used[rip]
test al, al
je .L205
movzx eax, BYTE PTR x$r_buff0_thd0[rip]
test al, al
jne .L206
.L205:
mov eax, 1
jmp .L207
.L206:
mov eax, 0
.L207:
and eax, 1
test al, al
je .L208
movzx eax, BYTE PTR x$w_buff0_used[rip]
movzx eax, al
test eax, eax
je .L208
mov eax, 1
jmp .L200
.L208:
mov eax, 0
.L200:
mov BYTE PTR x$w_buff0_used[rip], al
movzx eax, BYTE PTR weak$$choice2[rip]
test al, al
je .L210
movzx eax, BYTE PTR x$w_buff1_used[rip]
movzx eax, al
test eax, eax
setne al
jmp .L211
.L210:
movzx eax, BYTE PTR x$w_buff0_used[rip]
xor eax, 1
test al, al
jne .L212
movzx eax, BYTE PTR x$r_buff0_thd0[rip]
xor eax, 1
test al, al
je .L213
movzx eax, BYTE PTR x$w_buff1_used[rip]
xor eax, 1
test al, al
jne .L212
.L213:
movzx eax, BYTE PTR x$r_buff0_thd0[rip]
xor eax, 1
test al, al
je .L214
movzx eax, BYTE PTR x$r_buff1_thd0[rip]
xor eax, 1
test al, al
je .L214
.L212:
mov eax, 1
jmp .L215
.L214:
mov eax, 0
.L215:
and eax, 1
test al, al
je .L216
movzx eax, BYTE PTR x$w_buff1_used[rip]
movzx eax, al
test eax, eax
je .L216
mov eax, 1
jmp .L211
.L216:
mov eax, 0
.L211:
mov BYTE PTR x$w_buff1_used[rip], al
movzx eax, BYTE PTR weak$$choice2[rip]
test al, al
je .L218
movzx eax, BYTE PTR x$r_buff0_thd0[rip]
movzx eax, al
test eax, eax
setne al
jmp .L219
.L218:
movzx eax, BYTE PTR x$w_buff0_used[rip]
xor eax, 1
test al, al
jne .L220
movzx eax, BYTE PTR x$r_buff0_thd0[rip]
xor eax, 1
test al, al
je .L221
movzx eax, BYTE PTR x$w_buff1_used[rip]
xor eax, 1
test al, al
jne .L220
.L221:
movzx eax, BYTE PTR x$r_buff0_thd0[rip]
xor eax, 1
test al, al
je .L222
movzx eax, BYTE PTR x$r_buff1_thd0[rip]
xor eax, 1
test al, al
je .L222
.L220:
movzx eax, BYTE PTR x$r_buff0_thd0[rip]
movzx eax, al
test eax, eax
setne al
jmp .L219
.L222:
movzx eax, BYTE PTR x$w_buff0_used[rip]
test al, al
je .L224
movzx eax, BYTE PTR x$r_buff0_thd0[rip]
test al, al
jne .L225
.L224:
mov eax, 1
jmp .L226
.L225:
mov eax, 0
.L226:
and eax, 1
test al, al
je .L227
movzx eax, BYTE PTR x$r_buff0_thd0[rip]
movzx eax, al
test eax, eax
je .L227
mov eax, 1
jmp .L219
.L227:
mov eax, 0
.L219:
mov BYTE PTR x$r_buff0_thd0[rip], al
movzx eax, BYTE PTR weak$$choice2[rip]
test al, al
je .L229
movzx eax, BYTE PTR x$r_buff1_thd0[rip]
movzx eax, al
test eax, eax
setne al
jmp .L230
.L229:
movzx eax, BYTE PTR x$w_buff0_used[rip]
xor eax, 1
test al, al
jne .L231
movzx eax, BYTE PTR x$r_buff0_thd0[rip]
xor eax, 1
test al, al
je .L232
movzx eax, BYTE PTR x$w_buff1_used[rip]
xor eax, 1
test al, al
jne .L231
.L232:
movzx eax, BYTE PTR x$r_buff0_thd0[rip]
xor eax, 1
test al, al
je .L233
movzx eax, BYTE PTR x$r_buff1_thd0[rip]
xor eax, 1
test al, al
je .L233
.L231:
mov eax, 1
jmp .L234
.L233:
mov eax, 0
.L234:
and eax, 1
test al, al
je .L235
movzx eax, BYTE PTR x$r_buff1_thd0[rip]
movzx eax, al
test eax, eax
je .L235
mov eax, 1
jmp .L230
.L235:
mov eax, 0
.L230:
mov BYTE PTR x$r_buff1_thd0[rip], al
mov eax, 0
call nondet_0@PLT
test eax, eax
setne al
mov BYTE PTR weak$$choice1[rip], al
movzx eax, BYTE PTR __unbuffered_p2_EAX$read_delayed[rip]
test al, al
je .L237
movzx eax, BYTE PTR weak$$choice1[rip]
test al, al
je .L238
mov rax, QWORD PTR __unbuffered_p2_EAX$read_delayed_var[rip]
mov eax, DWORD PTR [rax]
jmp .L240
.L238:
mov eax, DWORD PTR __unbuffered_p2_EAX[rip]
jmp .L240
.L237:
mov eax, DWORD PTR __unbuffered_p2_EAX[rip]
.L240:
mov DWORD PTR __unbuffered_p2_EAX[rip], eax
mov eax, DWORD PTR x[rip]
cmp eax, 2
jne .L241
mov eax, DWORD PTR __unbuffered_p0_EAX[rip]
test eax, eax
jne .L241
mov eax, DWORD PTR __unbuffered_p2_EAX[rip]
cmp eax, 2
jne .L241
mov eax, DWORD PTR __unbuffered_p2_EBX[rip]
test eax, eax
je .L242
.L241:
mov eax, 1
jmp .L243
.L242:
mov eax, 0
.L243:
and eax, 1
mov BYTE PTR main$tmp_guard1[rip], al
movzx eax, BYTE PTR x$flush_delayed[rip]
test al, al
je .L244
mov eax, DWORD PTR x$mem_tmp[rip]
jmp .L245
.L244:
mov eax, DWORD PTR x[rip]
.L245:
mov DWORD PTR x[rip], eax
mov BYTE PTR x$flush_delayed[rip], 0
mov eax, 0
call __VERIFIER_atomic_end
movzx eax, BYTE PTR main$tmp_guard1[rip]
movzx eax, al
mov edi, eax
call __VERIFIER_assert
mov eax, 0
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE9:
.size main, .-main
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "714646.c"
.text
.align 2
.global __VERIFIER_assert
.syntax unified
.arm
.fpu softvfp
.type __VERIFIER_assert, %function
__VERIFIER_assert:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #8
str r0, [fp, #-8]
ldr r3, [fp, #-8]
cmp r3, #0
bne .L5
nop
.L3:
bl __VERIFIER_error
.L5:
nop
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.size __VERIFIER_assert, .-__VERIFIER_assert
.comm __global_lock,4,4
.align 2
.global __VERIFIER_atomic_begin
.syntax unified
.arm
.fpu softvfp
.type __VERIFIER_atomic_begin, %function
__VERIFIER_atomic_begin:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
ldr r3, .L8
ldr r3, [r3]
cmp r3, #0
moveq r3, #1
movne r3, #0
and r3, r3, #255
mov r0, r3
bl __VERIFIER_assume
ldr r3, .L8
mov r2, #1
str r2, [r3]
nop
pop {fp, pc}
.L9:
.align 2
.L8:
.word __global_lock
.size __VERIFIER_atomic_begin, .-__VERIFIER_atomic_begin
.align 2
.global __VERIFIER_atomic_end
.syntax unified
.arm
.fpu softvfp
.type __VERIFIER_atomic_end, %function
__VERIFIER_atomic_end:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
ldr r3, .L12
ldr r3, [r3]
cmp r3, #1
moveq r3, #1
movne r3, #0
and r3, r3, #255
mov r0, r3
bl __VERIFIER_assume
ldr r3, .L12
mov r2, #0
str r2, [r3]
nop
pop {fp, pc}
.L13:
.align 2
.L12:
.word __global_lock
.size __VERIFIER_atomic_end, .-__VERIFIER_atomic_end
.global __unbuffered_cnt
.bss
.align 2
.type __unbuffered_cnt, %object
.size __unbuffered_cnt, 4
__unbuffered_cnt:
.space 4
.global __unbuffered_p0_EAX
.align 2
.type __unbuffered_p0_EAX, %object
.size __unbuffered_p0_EAX, 4
__unbuffered_p0_EAX:
.space 4
.global __unbuffered_p2_EAX
.align 2
.type __unbuffered_p2_EAX, %object
.size __unbuffered_p2_EAX, 4
__unbuffered_p2_EAX:
.space 4
.comm __unbuffered_p2_EAX$flush_delayed,1,1
.comm __unbuffered_p2_EAX$mem_tmp,4,4
.comm __unbuffered_p2_EAX$r_buff0_thd0,1,1
.comm __unbuffered_p2_EAX$r_buff0_thd1,1,1
.comm __unbuffered_p2_EAX$r_buff0_thd2,1,1
.comm __unbuffered_p2_EAX$r_buff0_thd3,1,1
.comm __unbuffered_p2_EAX$r_buff1_thd0,1,1
.comm __unbuffered_p2_EAX$r_buff1_thd1,1,1
.comm __unbuffered_p2_EAX$r_buff1_thd2,1,1
.comm __unbuffered_p2_EAX$r_buff1_thd3,1,1
.comm __unbuffered_p2_EAX$read_delayed,1,1
.comm __unbuffered_p2_EAX$read_delayed_var,4,4
.comm __unbuffered_p2_EAX$w_buff0,4,4
.comm __unbuffered_p2_EAX$w_buff0_used,1,1
.comm __unbuffered_p2_EAX$w_buff1,4,4
.comm __unbuffered_p2_EAX$w_buff1_used,1,1
.global __unbuffered_p2_EBX
.align 2
.type __unbuffered_p2_EBX, %object
.size __unbuffered_p2_EBX, 4
__unbuffered_p2_EBX:
.space 4
.comm main$tmp_guard0,1,1
.comm main$tmp_guard1,1,1
.global x
.align 2
.type x, %object
.size x, 4
x:
.space 4
.comm x$flush_delayed,1,1
.comm x$mem_tmp,4,4
.comm x$r_buff0_thd0,1,1
.comm x$r_buff0_thd1,1,1
.comm x$r_buff0_thd2,1,1
.comm x$r_buff0_thd3,1,1
.comm x$r_buff1_thd0,1,1
.comm x$r_buff1_thd1,1,1
.comm x$r_buff1_thd2,1,1
.comm x$r_buff1_thd3,1,1
.comm x$read_delayed,1,1
.comm x$read_delayed_var,4,4
.comm x$w_buff0,4,4
.comm x$w_buff0_used,1,1
.comm x$w_buff1,4,4
.comm x$w_buff1_used,1,1
.global y
.align 2
.type y, %object
.size y, 4
y:
.space 4
.comm weak$$choice0,1,1
.comm weak$$choice1,1,1
.comm weak$$choice2,1,1
.text
.align 2
.global P0
.syntax unified
.arm
.fpu softvfp
.type P0, %function
P0:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #8
str r0, [fp, #-8]
bl __VERIFIER_atomic_begin
ldr r3, .L62
mov r2, #1
str r2, [r3]
bl __VERIFIER_atomic_end
bl __VERIFIER_atomic_begin
bl __VERIFIER_atomic_end
bl __VERIFIER_atomic_begin
bl nondet_0
mov r3, r0
cmp r3, #0
movne r3, #1
moveq r3, #0
and r2, r3, #255
ldr r3, .L62+4
strb r2, [r3]
bl nondet_0
mov r3, r0
cmp r3, #0
movne r3, #1
moveq r3, #0
and r2, r3, #255
ldr r3, .L62+8
strb r2, [r3]
ldr r3, .L62+8
ldrb r2, [r3] @ zero_extendqisi2
ldr r3, .L62+12
strb r2, [r3]
ldr r3, .L62+16
ldr r3, [r3]
ldr r2, .L62+20
str r3, [r2]
ldr r3, .L62+24
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L15
ldr r3, .L62+28
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
bne .L16
ldr r3, .L62+32
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L15
.L16:
ldr r3, .L62+28
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
bne .L17
ldr r3, .L62+36
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L15
.L17:
ldr r3, .L62+24
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L18
ldr r3, .L62+28
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L18
ldr r3, .L62+40
ldr r3, [r3]
b .L20
.L18:
ldr r3, .L62+44
ldr r3, [r3]
b .L20
.L15:
ldr r3, .L62+16
ldr r3, [r3]
.L20:
ldr r2, .L62+16
str r3, [r2]
ldr r3, .L62+40
ldr r3, [r3]
ldr r2, .L62+40
str r3, [r2]
ldr r3, .L62+44
ldr r3, [r3]
ldr r2, .L62+44
str r3, [r2]
ldr r3, .L62+8
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L21
ldr r3, .L62+24
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
movne r3, #1
moveq r3, #0
and r3, r3, #255
b .L22
.L21:
ldr r3, .L62+24
ldrb r3, [r3] @ zero_extendqisi2
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
bne .L23
ldr r3, .L62+28
ldrb r3, [r3] @ zero_extendqisi2
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L24
ldr r3, .L62+32
ldrb r3, [r3] @ zero_extendqisi2
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
bne .L23
.L24:
ldr r3, .L62+28
ldrb r3, [r3] @ zero_extendqisi2
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L25
ldr r3, .L62+36
ldrb r3, [r3] @ zero_extendqisi2
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L25
.L23:
ldr r3, .L62+24
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
movne r3, #1
moveq r3, #0
and r3, r3, #255
b .L22
.L25:
ldr r3, .L62+24
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L27
ldr r3, .L62+28
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
bne .L28
.L27:
mov r3, #1
b .L29
.L28:
mov r3, #0
.L29:
and r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L30
ldr r3, .L62+24
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L30
mov r3, #1
b .L22
.L30:
mov r3, #0
.L22:
ldr r2, .L62+24
strb r3, [r2]
ldr r3, .L62+8
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L32
ldr r3, .L62+32
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
movne r3, #1
moveq r3, #0
and r3, r3, #255
b .L33
.L32:
ldr r3, .L62+24
ldrb r3, [r3] @ zero_extendqisi2
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
bne .L34
ldr r3, .L62+28
ldrb r3, [r3] @ zero_extendqisi2
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L35
ldr r3, .L62+32
ldrb r3, [r3] @ zero_extendqisi2
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
bne .L34
.L35:
ldr r3, .L62+28
ldrb r3, [r3] @ zero_extendqisi2
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L36
ldr r3, .L62+36
ldrb r3, [r3] @ zero_extendqisi2
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L36
.L34:
mov r3, #1
b .L37
.L36:
mov r3, #0
.L37:
and r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L38
ldr r3, .L62+32
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L38
mov r3, #1
b .L33
.L38:
mov r3, #0
.L33:
ldr r2, .L62+32
strb r3, [r2]
ldr r3, .L62+8
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L40
ldr r3, .L62+28
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
movne r3, #1
moveq r3, #0
and r3, r3, #255
b .L41
.L40:
ldr r3, .L62+24
ldrb r3, [r3] @ zero_extendqisi2
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
bne .L42
ldr r3, .L62+28
ldrb r3, [r3] @ zero_extendqisi2
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L43
ldr r3, .L62+32
ldrb r3, [r3] @ zero_extendqisi2
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
bne .L42
.L43:
ldr r3, .L62+28
ldrb r3, [r3] @ zero_extendqisi2
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L44
ldr r3, .L62+36
ldrb r3, [r3] @ zero_extendqisi2
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L44
.L42:
ldr r3, .L62+28
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
movne r3, #1
moveq r3, #0
and r3, r3, #255
b .L41
.L44:
ldr r3, .L62+24
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L46
ldr r3, .L62+28
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
bne .L47
.L46:
mov r3, #1
b .L48
.L47:
mov r3, #0
.L48:
and r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L49
ldr r3, .L62+28
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L49
mov r3, #1
b .L41
.L49:
mov r3, #0
.L41:
ldr r2, .L62+28
strb r3, [r2]
ldr r3, .L62+8
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L51
ldr r3, .L62+36
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
movne r3, #1
moveq r3, #0
and r3, r3, #255
b .L52
.L51:
ldr r3, .L62+24
ldrb r3, [r3] @ zero_extendqisi2
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
bne .L53
ldr r3, .L62+28
ldrb r3, [r3] @ zero_extendqisi2
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L54
ldr r3, .L62+32
ldrb r3, [r3] @ zero_extendqisi2
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
bne .L53
.L54:
ldr r3, .L62+28
ldrb r3, [r3] @ zero_extendqisi2
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L55
ldr r3, .L62+36
ldrb r3, [r3] @ zero_extendqisi2
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L55
.L53:
mov r3, #1
b .L56
.L55:
mov r3, #0
.L56:
and r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L57
ldr r3, .L62+36
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L57
mov r3, #1
b .L52
.L57:
mov r3, #0
.L52:
ldr r2, .L62+36
strb r3, [r2]
ldr r3, .L62+16
ldr r3, [r3]
ldr r2, .L62+48
str r3, [r2]
ldr r3, .L62+12
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L59
ldr r3, .L62+20
ldr r3, [r3]
b .L60
.L59:
ldr r3, .L62+16
ldr r3, [r3]
.L60:
ldr r2, .L62+16
str r3, [r2]
ldr r3, .L62+12
mov r2, #0
strb r2, [r3]
bl __VERIFIER_atomic_end
bl __VERIFIER_atomic_begin
bl __VERIFIER_atomic_end
bl __VERIFIER_atomic_begin
ldr r3, .L62+52
ldr r3, [r3]
add r3, r3, #1
ldr r2, .L62+52
str r3, [r2]
bl __VERIFIER_atomic_end
bl nondet_1
mov r3, r0
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L63:
.align 2
.L62:
.word y
.word weak$$choice0
.word weak$$choice2
.word x$flush_delayed
.word x
.word x$mem_tmp
.word x$w_buff0_used
.word x$r_buff0_thd1
.word x$w_buff1_used
.word x$r_buff1_thd1
.word x$w_buff0
.word x$w_buff1
.word __unbuffered_p0_EAX
.word __unbuffered_cnt
.size P0, .-P0
.align 2
.global P1
.syntax unified
.arm
.fpu softvfp
.type P1, %function
P1:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #8
str r0, [fp, #-8]
bl __VERIFIER_atomic_begin
ldr r3, .L93
mov r2, #1
str r2, [r3]
bl __VERIFIER_atomic_end
bl __VERIFIER_atomic_begin
ldr r3, .L93
mov r2, #2
str r2, [r3]
bl __VERIFIER_atomic_end
bl __VERIFIER_atomic_begin
ldr r3, .L93+4
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L65
ldr r3, .L93+8
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
bne .L66
.L65:
ldr r3, .L93+12
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L67
ldr r3, .L93+16
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L67
ldr r3, .L93+20
ldr r3, [r3]
b .L69
.L67:
ldr r3, .L93
ldr r3, [r3]
b .L69
.L66:
ldr r3, .L93+24
ldr r3, [r3]
.L69:
ldr r2, .L93
str r3, [r2]
ldr r3, .L93+4
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L70
ldr r3, .L93+8
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
bne .L71
.L70:
mov r3, #1
b .L72
.L71:
mov r3, #0
.L72:
and r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L73
ldr r3, .L93+4
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L73
mov r2, #1
b .L74
.L73:
mov r2, #0
.L74:
ldr r3, .L93+4
strb r2, [r3]
ldr r3, .L93+4
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L75
ldr r3, .L93+8
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
bne .L76
.L75:
ldr r3, .L93+12
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L77
ldr r3, .L93+16
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
bne .L76
.L77:
mov r3, #1
b .L78
.L76:
mov r3, #0
.L78:
and r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L79
ldr r3, .L93+12
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L79
mov r2, #1
b .L80
.L79:
mov r2, #0
.L80:
ldr r3, .L93+12
strb r2, [r3]
ldr r3, .L93+4
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L81
ldr r3, .L93+8
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
bne .L82
.L81:
mov r3, #1
b .L83
.L82:
mov r3, #0
.L83:
and r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L84
ldr r3, .L93+8
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L84
mov r2, #1
b .L85
.L84:
mov r2, #0
.L85:
ldr r3, .L93+8
strb r2, [r3]
ldr r3, .L93+4
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L86
ldr r3, .L93+8
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
bne .L87
.L86:
ldr r3, .L93+12
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L88
ldr r3, .L93+16
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
bne .L87
.L88:
mov r3, #1
b .L89
.L87:
mov r3, #0
.L89:
and r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L90
ldr r3, .L93+16
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L90
mov r2, #1
b .L91
.L90:
mov r2, #0
.L91:
ldr r3, .L93+16
strb r2, [r3]
bl __VERIFIER_atomic_end
bl __VERIFIER_atomic_begin
ldr r3, .L93+28
ldr r3, [r3]
add r3, r3, #1
ldr r2, .L93+28
str r3, [r2]
bl __VERIFIER_atomic_end
bl nondet_1
mov r3, r0
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L94:
.align 2
.L93:
.word x
.word x$w_buff0_used
.word x$r_buff0_thd2
.word x$w_buff1_used
.word x$r_buff1_thd2
.word x$w_buff1
.word x$w_buff0
.word __unbuffered_cnt
.size P1, .-P1
.align 2
.global P2
.syntax unified
.arm
.fpu softvfp
.type P2, %function
P2:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #8
str r0, [fp, #-8]
bl __VERIFIER_atomic_begin
bl nondet_0
mov r3, r0
cmp r3, #0
movne r3, #1
moveq r3, #0
and r2, r3, #255
ldr r3, .L170
strb r2, [r3]
bl nondet_0
mov r3, r0
cmp r3, #0
movne r3, #1
moveq r3, #0
and r2, r3, #255
ldr r3, .L170+4
strb r2, [r3]
ldr r3, .L170+4
ldrb r2, [r3] @ zero_extendqisi2
ldr r3, .L170+8
strb r2, [r3]
ldr r3, .L170+12
ldr r3, [r3]
ldr r2, .L170+16
str r3, [r2]
ldr r3, .L170+20
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L96
ldr r3, .L170+24
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
bne .L97
ldr r3, .L170+28
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L96
.L97:
ldr r3, .L170+24
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
bne .L98
ldr r3, .L170+32
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L96
.L98:
ldr r3, .L170+20
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L99
ldr r3, .L170+24
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L99
ldr r3, .L170+36
ldr r3, [r3]
b .L101
.L99:
ldr r3, .L170+40
ldr r3, [r3]
b .L101
.L96:
ldr r3, .L170+12
ldr r3, [r3]
.L101:
ldr r2, .L170+12
str r3, [r2]
ldr r3, .L170+36
ldr r3, [r3]
ldr r2, .L170+36
str r3, [r2]
ldr r3, .L170+40
ldr r3, [r3]
ldr r2, .L170+40
str r3, [r2]
ldr r3, .L170+4
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L102
ldr r3, .L170+20
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
movne r3, #1
moveq r3, #0
and r3, r3, #255
b .L103
.L102:
ldr r3, .L170+20
ldrb r3, [r3] @ zero_extendqisi2
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
bne .L104
ldr r3, .L170+24
ldrb r3, [r3] @ zero_extendqisi2
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L105
ldr r3, .L170+28
ldrb r3, [r3] @ zero_extendqisi2
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
bne .L104
.L105:
ldr r3, .L170+24
ldrb r3, [r3] @ zero_extendqisi2
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L106
ldr r3, .L170+32
ldrb r3, [r3] @ zero_extendqisi2
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L106
.L104:
ldr r3, .L170+20
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
movne r3, #1
moveq r3, #0
and r3, r3, #255
b .L103
.L106:
ldr r3, .L170+20
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L108
ldr r3, .L170+24
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
bne .L109
.L108:
mov r3, #1
b .L110
.L109:
mov r3, #0
.L110:
and r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L111
ldr r3, .L170+20
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L111
mov r3, #1
b .L103
.L111:
mov r3, #0
.L103:
ldr r2, .L170+20
strb r3, [r2]
ldr r3, .L170+4
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L113
ldr r3, .L170+28
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
movne r3, #1
moveq r3, #0
and r3, r3, #255
b .L114
.L113:
ldr r3, .L170+20
ldrb r3, [r3] @ zero_extendqisi2
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
bne .L115
ldr r3, .L170+24
ldrb r3, [r3] @ zero_extendqisi2
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L116
ldr r3, .L170+28
ldrb r3, [r3] @ zero_extendqisi2
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
bne .L115
.L116:
ldr r3, .L170+24
ldrb r3, [r3] @ zero_extendqisi2
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L117
ldr r3, .L170+32
ldrb r3, [r3] @ zero_extendqisi2
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L117
.L115:
mov r3, #1
b .L118
.L117:
mov r3, #0
.L118:
and r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L119
ldr r3, .L170+28
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L119
mov r3, #1
b .L114
.L119:
mov r3, #0
.L114:
ldr r2, .L170+28
strb r3, [r2]
ldr r3, .L170+4
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L121
ldr r3, .L170+24
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
movne r3, #1
moveq r3, #0
and r3, r3, #255
b .L122
.L121:
ldr r3, .L170+20
ldrb r3, [r3] @ zero_extendqisi2
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
bne .L123
ldr r3, .L170+24
ldrb r3, [r3] @ zero_extendqisi2
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L124
ldr r3, .L170+28
ldrb r3, [r3] @ zero_extendqisi2
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
bne .L123
.L124:
ldr r3, .L170+24
ldrb r3, [r3] @ zero_extendqisi2
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L125
ldr r3, .L170+32
ldrb r3, [r3] @ zero_extendqisi2
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L125
.L123:
ldr r3, .L170+24
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
movne r3, #1
moveq r3, #0
and r3, r3, #255
b .L122
.L125:
ldr r3, .L170+20
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L127
ldr r3, .L170+24
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
bne .L128
.L127:
mov r3, #1
b .L129
.L128:
mov r3, #0
.L129:
and r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L130
ldr r3, .L170+24
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L130
mov r3, #1
b .L122
.L130:
mov r3, #0
.L122:
ldr r2, .L170+24
strb r3, [r2]
ldr r3, .L170+4
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L132
ldr r3, .L170+32
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
movne r3, #1
moveq r3, #0
and r3, r3, #255
b .L133
.L132:
ldr r3, .L170+20
ldrb r3, [r3] @ zero_extendqisi2
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
bne .L134
ldr r3, .L170+24
ldrb r3, [r3] @ zero_extendqisi2
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L135
ldr r3, .L170+28
ldrb r3, [r3] @ zero_extendqisi2
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
bne .L134
.L135:
ldr r3, .L170+24
ldrb r3, [r3] @ zero_extendqisi2
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L136
ldr r3, .L170+32
ldrb r3, [r3] @ zero_extendqisi2
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L136
.L134:
mov r3, #1
b .L137
.L136:
mov r3, #0
.L137:
and r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L138
ldr r3, .L170+32
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L138
mov r3, #1
b .L133
.L138:
mov r3, #0
.L133:
ldr r2, .L170+32
strb r3, [r2]
ldr r3, .L170+44
mov r2, #1
strb r2, [r3]
ldr r3, .L170+48
ldr r2, .L170+12
str r2, [r3]
ldr r3, .L170+12
ldr r3, [r3]
ldr r2, .L170+52
str r3, [r2]
ldr r3, .L170+8
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L140
ldr r3, .L170+16
ldr r3, [r3]
b .L141
.L140:
ldr r3, .L170+12
ldr r3, [r3]
.L141:
ldr r2, .L170+12
str r3, [r2]
ldr r3, .L170+8
mov r2, #0
strb r2, [r3]
bl __VERIFIER_atomic_end
bl __VERIFIER_atomic_begin
ldr r3, .L170+56
ldr r3, [r3]
ldr r2, .L170+60
str r3, [r2]
bl __VERIFIER_atomic_end
bl __VERIFIER_atomic_begin
ldr r3, .L170+20
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L142
ldr r3, .L170+24
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
bne .L143
.L142:
ldr r3, .L170+28
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L144
ldr r3, .L170+32
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L144
ldr r3, .L170+40
ldr r3, [r3]
b .L146
.L144:
ldr r3, .L170+12
ldr r3, [r3]
b .L146
.L143:
ldr r3, .L170+36
ldr r3, [r3]
.L146:
ldr r2, .L170+12
str r3, [r2]
ldr r3, .L170+20
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L147
ldr r3, .L170+24
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
bne .L148
.L147:
mov r3, #1
b .L149
.L148:
mov r3, #0
.L149:
and r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L150
ldr r3, .L170+20
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L150
mov r2, #1
b .L151
.L150:
mov r2, #0
.L151:
ldr r3, .L170+20
strb r2, [r3]
ldr r3, .L170+20
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L152
ldr r3, .L170+24
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
bne .L153
.L152:
ldr r3, .L170+28
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L154
ldr r3, .L170+32
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
bne .L153
.L154:
mov r3, #1
b .L155
.L153:
mov r3, #0
.L155:
and r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L156
ldr r3, .L170+28
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L156
mov r2, #1
b .L157
.L156:
mov r2, #0
.L157:
ldr r3, .L170+28
strb r2, [r3]
ldr r3, .L170+20
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L158
ldr r3, .L170+24
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
bne .L159
.L158:
mov r3, #1
b .L160
.L159:
mov r3, #0
.L160:
and r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L161
ldr r3, .L170+24
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L161
mov r2, #1
b .L162
.L161:
mov r2, #0
.L162:
ldr r3, .L170+24
strb r2, [r3]
ldr r3, .L170+20
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L163
ldr r3, .L170+24
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
bne .L164
.L163:
ldr r3, .L170+28
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L165
ldr r3, .L170+32
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
bne .L164
.L165:
mov r3, #1
b .L166
.L164:
mov r3, #0
.L166:
and r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L167
ldr r3, .L170+32
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L167
mov r2, #1
b .L168
.L167:
mov r2, #0
.L168:
ldr r3, .L170+32
strb r2, [r3]
bl __VERIFIER_atomic_end
bl __VERIFIER_atomic_begin
ldr r3, .L170+64
ldr r3, [r3]
add r3, r3, #1
ldr r2, .L170+64
str r3, [r2]
bl __VERIFIER_atomic_end
bl nondet_1
mov r3, r0
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L171:
.align 2
.L170:
.word weak$$choice0
.word weak$$choice2
.word x$flush_delayed
.word x
.word x$mem_tmp
.word x$w_buff0_used
.word x$r_buff0_thd3
.word x$w_buff1_used
.word x$r_buff1_thd3
.word x$w_buff0
.word x$w_buff1
.word __unbuffered_p2_EAX$read_delayed
.word __unbuffered_p2_EAX$read_delayed_var
.word __unbuffered_p2_EAX
.word y
.word __unbuffered_p2_EBX
.word __unbuffered_cnt
.size P2, .-P2
.align 2
.global fence
.syntax unified
.arm
.fpu softvfp
.type fence, %function
fence:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
nop
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size fence, .-fence
.align 2
.global isync
.syntax unified
.arm
.fpu softvfp
.type isync, %function
isync:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
nop
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size isync, .-isync
.align 2
.global lwfence
.syntax unified
.arm
.fpu softvfp
.type lwfence, %function
lwfence:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
nop
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size lwfence, .-lwfence
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
mov r3, #0
ldr r2, .L257
mov r1, #0
mov r0, #0
bl pthread_create
mov r3, #0
ldr r2, .L257+4
mov r1, #0
mov r0, #0
bl pthread_create
mov r3, #0
ldr r2, .L257+8
mov r1, #0
mov r0, #0
bl pthread_create
bl __VERIFIER_atomic_begin
ldr r3, .L257+12
ldr r3, [r3]
cmp r3, #3
moveq r3, #1
movne r3, #0
and r2, r3, #255
ldr r3, .L257+16
strb r2, [r3]
bl __VERIFIER_atomic_end
ldr r3, .L257+16
ldrb r3, [r3] @ zero_extendqisi2
mov r0, r3
bl __VERIFIER_assume
bl __VERIFIER_atomic_begin
ldr r3, .L257+20
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L176
ldr r3, .L257+24
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
bne .L177
.L176:
ldr r3, .L257+28
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L178
ldr r3, .L257+32
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L178
ldr r3, .L257+36
ldr r3, [r3]
b .L180
.L178:
ldr r3, .L257+40
ldr r3, [r3]
b .L180
.L177:
ldr r3, .L257+44
ldr r3, [r3]
.L180:
ldr r2, .L257+40
str r3, [r2]
ldr r3, .L257+20
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L181
ldr r3, .L257+24
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
bne .L182
.L181:
mov r3, #1
b .L183
.L182:
mov r3, #0
.L183:
and r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L184
ldr r3, .L257+20
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L184
mov r2, #1
b .L185
.L184:
mov r2, #0
.L185:
ldr r3, .L257+20
strb r2, [r3]
ldr r3, .L257+20
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L186
ldr r3, .L257+24
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
bne .L187
.L186:
ldr r3, .L257+28
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L188
ldr r3, .L257+32
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
bne .L187
.L188:
mov r3, #1
b .L189
.L187:
mov r3, #0
.L189:
and r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L190
ldr r3, .L257+28
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L190
mov r2, #1
b .L191
.L190:
mov r2, #0
.L191:
ldr r3, .L257+28
strb r2, [r3]
ldr r3, .L257+20
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L192
ldr r3, .L257+24
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
bne .L193
.L192:
mov r3, #1
b .L194
.L193:
mov r3, #0
.L194:
and r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L195
ldr r3, .L257+24
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L195
mov r2, #1
b .L196
.L195:
mov r2, #0
.L196:
ldr r3, .L257+24
strb r2, [r3]
ldr r3, .L257+20
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L197
ldr r3, .L257+24
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
bne .L198
.L197:
ldr r3, .L257+28
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L199
ldr r3, .L257+32
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
bne .L198
.L199:
mov r3, #1
b .L200
.L198:
mov r3, #0
.L200:
and r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L201
ldr r3, .L257+32
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L201
mov r2, #1
b .L202
.L201:
mov r2, #0
.L202:
ldr r3, .L257+32
strb r2, [r3]
bl __VERIFIER_atomic_end
bl __VERIFIER_atomic_begin
bl nondet_0
mov r3, r0
cmp r3, #0
movne r3, #1
moveq r3, #0
and r2, r3, #255
ldr r3, .L257+48
strb r2, [r3]
bl nondet_0
mov r3, r0
cmp r3, #0
movne r3, #1
moveq r3, #0
and r2, r3, #255
ldr r3, .L257+52
strb r2, [r3]
ldr r3, .L257+52
ldrb r2, [r3] @ zero_extendqisi2
ldr r3, .L257+56
strb r2, [r3]
ldr r3, .L257+40
ldr r3, [r3]
ldr r2, .L257+60
str r3, [r2]
ldr r3, .L257+20
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L203
ldr r3, .L257+24
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
bne .L204
ldr r3, .L257+28
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L203
.L204:
ldr r3, .L257+24
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
bne .L205
ldr r3, .L257+32
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L203
.L205:
ldr r3, .L257+20
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L206
ldr r3, .L257+24
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L206
ldr r3, .L257+44
ldr r3, [r3]
b .L208
.L206:
ldr r3, .L257+36
ldr r3, [r3]
b .L208
.L203:
ldr r3, .L257+40
ldr r3, [r3]
.L208:
ldr r2, .L257+40
str r3, [r2]
ldr r3, .L257+44
ldr r3, [r3]
ldr r2, .L257+44
str r3, [r2]
ldr r3, .L257+36
ldr r3, [r3]
ldr r2, .L257+36
str r3, [r2]
ldr r3, .L257+52
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L209
ldr r3, .L257+20
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
movne r3, #1
moveq r3, #0
and r3, r3, #255
b .L210
.L209:
ldr r3, .L257+20
ldrb r3, [r3] @ zero_extendqisi2
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
bne .L211
ldr r3, .L257+24
ldrb r3, [r3] @ zero_extendqisi2
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L212
ldr r3, .L257+28
ldrb r3, [r3] @ zero_extendqisi2
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
bne .L211
.L212:
ldr r3, .L257+24
ldrb r3, [r3] @ zero_extendqisi2
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L213
ldr r3, .L257+32
ldrb r3, [r3] @ zero_extendqisi2
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L213
.L211:
ldr r3, .L257+20
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
movne r3, #1
moveq r3, #0
and r3, r3, #255
b .L210
.L213:
ldr r3, .L257+20
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L215
ldr r3, .L257+24
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
bne .L216
.L215:
mov r3, #1
b .L217
.L216:
mov r3, #0
.L217:
and r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L218
ldr r3, .L257+20
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L218
mov r3, #1
b .L210
.L218:
mov r3, #0
.L210:
ldr r2, .L257+20
strb r3, [r2]
ldr r3, .L257+52
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L220
ldr r3, .L257+28
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
movne r3, #1
moveq r3, #0
and r3, r3, #255
b .L221
.L220:
ldr r3, .L257+20
ldrb r3, [r3] @ zero_extendqisi2
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
bne .L222
ldr r3, .L257+24
ldrb r3, [r3] @ zero_extendqisi2
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L223
ldr r3, .L257+28
ldrb r3, [r3] @ zero_extendqisi2
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
bne .L222
.L223:
ldr r3, .L257+24
ldrb r3, [r3] @ zero_extendqisi2
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L224
ldr r3, .L257+32
ldrb r3, [r3] @ zero_extendqisi2
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L224
.L222:
mov r3, #1
b .L225
.L224:
mov r3, #0
.L225:
and r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L226
ldr r3, .L257+28
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L226
mov r3, #1
b .L221
.L226:
mov r3, #0
.L221:
ldr r2, .L257+28
strb r3, [r2]
ldr r3, .L257+52
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L228
ldr r3, .L257+24
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
movne r3, #1
moveq r3, #0
and r3, r3, #255
b .L229
.L228:
ldr r3, .L257+20
ldrb r3, [r3] @ zero_extendqisi2
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
bne .L230
ldr r3, .L257+24
ldrb r3, [r3] @ zero_extendqisi2
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L231
ldr r3, .L257+28
ldrb r3, [r3] @ zero_extendqisi2
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
bne .L230
.L231:
ldr r3, .L257+24
ldrb r3, [r3] @ zero_extendqisi2
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L232
ldr r3, .L257+32
ldrb r3, [r3] @ zero_extendqisi2
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L232
.L230:
ldr r3, .L257+24
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
movne r3, #1
moveq r3, #0
and r3, r3, #255
b .L229
.L232:
ldr r3, .L257+20
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L234
ldr r3, .L257+24
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
bne .L235
.L234:
mov r3, #1
b .L236
.L235:
mov r3, #0
.L236:
and r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L237
ldr r3, .L257+24
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L237
mov r3, #1
b .L229
.L237:
mov r3, #0
.L229:
ldr r2, .L257+24
strb r3, [r2]
ldr r3, .L257+52
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L239
ldr r3, .L257+32
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
movne r3, #1
moveq r3, #0
and r3, r3, #255
b .L240
.L239:
ldr r3, .L257+20
ldrb r3, [r3] @ zero_extendqisi2
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
bne .L241
ldr r3, .L257+24
ldrb r3, [r3] @ zero_extendqisi2
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L242
ldr r3, .L257+28
ldrb r3, [r3] @ zero_extendqisi2
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
bne .L241
.L242:
ldr r3, .L257+24
ldrb r3, [r3] @ zero_extendqisi2
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L243
ldr r3, .L257+32
ldrb r3, [r3] @ zero_extendqisi2
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L243
.L241:
mov r3, #1
b .L244
.L243:
mov r3, #0
.L244:
and r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L245
ldr r3, .L257+32
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L245
mov r3, #1
b .L240
.L245:
mov r3, #0
.L240:
ldr r2, .L257+32
strb r3, [r2]
bl nondet_0
mov r3, r0
cmp r3, #0
movne r3, #1
moveq r3, #0
and r2, r3, #255
ldr r3, .L257+64
strb r2, [r3]
ldr r3, .L257+68
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L247
ldr r3, .L257+64
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L248
ldr r3, .L257+72
ldr r3, [r3]
ldr r3, [r3]
b .L250
.L248:
ldr r3, .L257+76
ldr r3, [r3]
b .L250
.L247:
ldr r3, .L257+76
ldr r3, [r3]
.L250:
ldr r2, .L257+76
str r3, [r2]
ldr r3, .L257+40
ldr r3, [r3]
cmp r3, #2
bne .L251
ldr r3, .L257+80
ldr r3, [r3]
cmp r3, #0
bne .L251
ldr r3, .L257+76
ldr r3, [r3]
cmp r3, #2
bne .L251
ldr r3, .L257+84
ldr r3, [r3]
cmp r3, #0
beq .L252
.L251:
mov r3, #1
b .L253
.L252:
mov r3, #0
.L253:
and r3, r3, #1
and r2, r3, #255
ldr r3, .L257+88
strb r2, [r3]
ldr r3, .L257+56
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L254
ldr r3, .L257+60
ldr r3, [r3]
b .L255
.L254:
ldr r3, .L257+40
ldr r3, [r3]
.L255:
ldr r2, .L257+40
str r3, [r2]
ldr r3, .L257+56
mov r2, #0
strb r2, [r3]
bl __VERIFIER_atomic_end
ldr r3, .L257+88
ldrb r3, [r3] @ zero_extendqisi2
mov r0, r3
bl __VERIFIER_assert
mov r3, #0
mov r0, r3
pop {fp, pc}
.L258:
.align 2
.L257:
.word P0
.word P1
.word P2
.word __unbuffered_cnt
.word main$tmp_guard0
.word x$w_buff0_used
.word x$r_buff0_thd0
.word x$w_buff1_used
.word x$r_buff1_thd0
.word x$w_buff1
.word x
.word x$w_buff0
.word weak$$choice0
.word weak$$choice2
.word x$flush_delayed
.word x$mem_tmp
.word weak$$choice1
.word __unbuffered_p2_EAX$read_delayed
.word __unbuffered_p2_EAX$read_delayed_var
.word __unbuffered_p2_EAX
.word __unbuffered_p0_EAX
.word __unbuffered_p2_EBX
.word main$tmp_guard1
.size main, .-main
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "554414.c"
.intel_syntax noprefix
.text
.section .rodata
.LC0:
.string "current path:%s\n"
.LC1:
.string "/home"
.LC2:
.string "new path:%s\n"
.text
.globl main
.type main, @function
main:
.LFB6:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 32
mov DWORD PTR -20[rbp], edi
mov QWORD PTR -32[rbp], rsi
mov esi, 128
mov edi, 0
mov eax, 0
call getcwd@PLT
cdqe
mov QWORD PTR -8[rbp], rax
mov rax, QWORD PTR -8[rbp]
mov rsi, rax
lea rdi, .LC0[rip]
mov eax, 0
call printf@PLT
mov rax, QWORD PTR -8[rbp]
mov rdi, rax
call free@PLT
lea rdi, .LC1[rip]
mov eax, 0
call chdir@PLT
mov eax, 0
call get_current_dir_name@PLT
mov esi, eax
lea rdi, .LC2[rip]
mov eax, 0
call printf@PLT
mov eax, 0
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size main, .-main
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "554414.c"
.text
.section .rodata
.align 2
.LC0:
.ascii "current path:%s\012\000"
.align 2
.LC1:
.ascii "/home\000"
.align 2
.LC2:
.ascii "new path:%s\012\000"
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #16
str r0, [fp, #-16]
str r1, [fp, #-20]
mov r1, #128
mov r0, #0
bl getcwd
mov r3, r0
str r3, [fp, #-8]
ldr r1, [fp, #-8]
ldr r0, .L3
bl printf
ldr r0, [fp, #-8]
bl free
ldr r0, .L3+4
bl chdir
bl get_current_dir_name
mov r3, r0
mov r1, r3
ldr r0, .L3+8
bl printf
mov r3, #0
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L4:
.align 2
.L3:
.word .LC0
.word .LC1
.word .LC2
.size main, .-main
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "819320.c"
.intel_syntax noprefix
.text
.globl functionToRun
.bss
.align 16
.type functionToRun, @object
.size functionToRun, 24
functionToRun:
.zero 24
.text
.globl factorial
.type factorial, @function
factorial:
.LFB6:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov DWORD PTR -20[rbp], edi
mov DWORD PTR -8[rbp], 1
mov DWORD PTR -4[rbp], 1
jmp .L2
.L3:
mov eax, DWORD PTR -8[rbp]
imul eax, DWORD PTR -4[rbp]
mov DWORD PTR -8[rbp], eax
add DWORD PTR -4[rbp], 1
.L2:
mov eax, DWORD PTR -4[rbp]
cmp eax, DWORD PTR -20[rbp]
jle .L3
mov eax, DWORD PTR -8[rbp]
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size factorial, .-factorial
.section .rodata
.LC0:
.string "Inverse found!"
.text
.globl inverseFactorial
.type inverseFactorial, @function
inverseFactorial:
.LFB7:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 32
mov DWORD PTR -20[rbp], edi
mov DWORD PTR -8[rbp], 1
mov DWORD PTR -4[rbp], 1
jmp .L6
.L7:
add DWORD PTR -4[rbp], 1
mov eax, DWORD PTR -8[rbp]
imul eax, DWORD PTR -4[rbp]
mov DWORD PTR -8[rbp], eax
.L6:
mov eax, DWORD PTR -8[rbp]
cmp eax, DWORD PTR -20[rbp]
jl .L7
lea rdi, .LC0[rip]
call puts@PLT
mov eax, DWORD PTR -4[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE7:
.size inverseFactorial, .-inverseFactorial
.section .rodata
.align 8
.LC1:
.string "Write the function to execute (1 for factorial, 2 for inverse of factorial) and pass the parameter n:"
.LC2:
.string "%d %d"
.LC3:
.string "factorial"
.LC4:
.string "inverse factorial"
.LC5:
.string "outside function"
.LC6:
.string "the_stack_data/819320.c"
.LC7:
.string "f == factorial"
.LC8:
.string "Factorial of %d is %d\n"
.LC9:
.string "f == inverseFactorial"
.LC10:
.string "(void*)f == exit"
.LC11:
.string "Exiting with code %d...\n"
.text
.globl main
.type main, @function
main:
.LFB8:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 64
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
lea rdi, .LC1[rip]
call puts@PLT
lea rdx, -52[rbp]
lea rax, -48[rbp]
mov rsi, rax
lea rdi, .LC2[rip]
mov eax, 0
call __isoc99_scanf@PLT
mov eax, DWORD PTR -48[rbp]
cmp eax, 1
jne .L10
mov DWORD PTR functionToRun[rip+16], 1
lea rax, .LC3[rip]
mov QWORD PTR functionToRun[rip], rax
lea rax, factorial[rip]
mov QWORD PTR functionToRun[rip+8], rax
jmp .L11
.L10:
mov eax, DWORD PTR -48[rbp]
cmp eax, 2
jne .L12
mov DWORD PTR functionToRun[rip+16], 2
lea rax, .LC4[rip]
mov QWORD PTR functionToRun[rip], rax
lea rax, inverseFactorial[rip]
mov QWORD PTR functionToRun[rip+8], rax
jmp .L11
.L12:
mov DWORD PTR functionToRun[rip+16], 3
lea rax, .LC5[rip]
mov QWORD PTR functionToRun[rip], rax
mov rax, QWORD PTR exit@GOTPCREL[rip]
mov QWORD PTR functionToRun[rip+8], rax
.L11:
mov eax, DWORD PTR functionToRun[rip+16]
cmp eax, 1
jne .L13
mov rax, QWORD PTR functionToRun[rip+8]
mov QWORD PTR -16[rbp], rax
lea rax, factorial[rip]
cmp QWORD PTR -16[rbp], rax
je .L14
lea rcx, __PRETTY_FUNCTION__.0[rip]
mov edx, 63
lea rsi, .LC6[rip]
lea rdi, .LC7[rip]
call __assert_fail@PLT
.L14:
mov eax, DWORD PTR -52[rbp]
mov rdx, QWORD PTR -16[rbp]
mov edi, eax
call rdx
mov DWORD PTR -36[rbp], eax
mov eax, DWORD PTR -52[rbp]
mov edx, DWORD PTR -36[rbp]
mov esi, eax
lea rdi, .LC8[rip]
mov eax, 0
call printf@PLT
jmp .L15
.L13:
mov eax, DWORD PTR functionToRun[rip+16]
cmp eax, 2
jne .L16
mov rax, QWORD PTR functionToRun[rip+8]
mov QWORD PTR -24[rbp], rax
lea rax, inverseFactorial[rip]
cmp QWORD PTR -24[rbp], rax
je .L17
lea rcx, __PRETTY_FUNCTION__.0[rip]
mov edx, 69
lea rsi, .LC6[rip]
lea rdi, .LC9[rip]
call __assert_fail@PLT
.L17:
mov eax, DWORD PTR -52[rbp]
mov rdx, QWORD PTR -24[rbp]
mov edi, eax
call rdx
mov DWORD PTR -40[rbp], eax
mov edx, DWORD PTR -52[rbp]
mov eax, DWORD PTR -40[rbp]
mov esi, eax
lea rdi, .LC8[rip]
mov eax, 0
call printf@PLT
jmp .L15
.L16:
mov rax, QWORD PTR functionToRun[rip+8]
mov QWORD PTR -32[rbp], rax
mov rax, QWORD PTR exit@GOTPCREL[rip]
cmp QWORD PTR -32[rbp], rax
je .L18
lea rcx, __PRETTY_FUNCTION__.0[rip]
mov edx, 74
lea rsi, .LC6[rip]
lea rdi, .LC10[rip]
call __assert_fail@PLT
.L18:
mov eax, DWORD PTR -52[rbp]
mov esi, eax
lea rdi, .LC11[rip]
mov eax, 0
call printf@PLT
mov eax, DWORD PTR -52[rbp]
mov rdx, QWORD PTR -32[rbp]
mov edi, eax
call rdx
mov DWORD PTR -44[rbp], eax
.L15:
mov eax, 0
mov rcx, QWORD PTR -8[rbp]
sub rcx, QWORD PTR fs:40
je .L20
call __stack_chk_fail@PLT
.L20:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE8:
.size main, .-main
.section .rodata
.type __PRETTY_FUNCTION__.0, @object
.size __PRETTY_FUNCTION__.0, 5
__PRETTY_FUNCTION__.0:
.string "main"
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "819320.c"
.text
.comm functionToRun,12,4
.align 2
.global factorial
.syntax unified
.arm
.fpu softvfp
.type factorial, %function
factorial:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #20
str r0, [fp, #-16]
mov r3, #1
str r3, [fp, #-12]
mov r3, #1
str r3, [fp, #-8]
b .L2
.L3:
ldr r3, [fp, #-12]
ldr r2, [fp, #-8]
mul r3, r2, r3
str r3, [fp, #-12]
ldr r3, [fp, #-8]
add r3, r3, #1
str r3, [fp, #-8]
.L2:
ldr r2, [fp, #-8]
ldr r3, [fp, #-16]
cmp r2, r3
ble .L3
ldr r3, [fp, #-12]
mov r0, r3
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size factorial, .-factorial
.section .rodata
.align 2
.LC0:
.ascii "Inverse found!\000"
.text
.align 2
.global inverseFactorial
.syntax unified
.arm
.fpu softvfp
.type inverseFactorial, %function
inverseFactorial:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #16
str r0, [fp, #-16]
mov r3, #1
str r3, [fp, #-12]
mov r3, #1
str r3, [fp, #-8]
b .L6
.L7:
ldr r3, [fp, #-8]
add r3, r3, #1
str r3, [fp, #-8]
ldr r3, [fp, #-12]
ldr r2, [fp, #-8]
mul r3, r2, r3
str r3, [fp, #-12]
.L6:
ldr r2, [fp, #-12]
ldr r3, [fp, #-16]
cmp r2, r3
blt .L7
ldr r0, .L9
bl puts
ldr r3, [fp, #-8]
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L10:
.align 2
.L9:
.word .LC0
.size inverseFactorial, .-inverseFactorial
.section .rodata
.align 2
.LC1:
.ascii "Write the function to execute (1 for factorial, 2 f"
.ascii "or inverse of factorial) and pass the parameter n:\000"
.align 2
.LC2:
.ascii "%d %d\000"
.align 2
.LC3:
.ascii "factorial\000"
.align 2
.LC4:
.ascii "inverse factorial\000"
.align 2
.LC5:
.ascii "outside function\000"
.align 2
.LC6:
.ascii "the_stack_data/819320.c\000"
.align 2
.LC7:
.ascii "f == factorial\000"
.align 2
.LC8:
.ascii "Factorial of %d is %d\012\000"
.align 2
.LC9:
.ascii "f == inverseFactorial\000"
.align 2
.LC10:
.ascii "(void*)f == exit\000"
.align 2
.LC11:
.ascii "Exiting with code %d...\012\000"
.align 2
.LC12:
.word __stack_chk_guard
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 40
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #40
ldr r3, .L23
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
ldr r0, .L23+4
bl puts
sub r2, fp, #40
sub r3, fp, #36
mov r1, r3
ldr r0, .L23+8
bl __isoc99_scanf
ldr r3, [fp, #-36]
cmp r3, #1
bne .L12
ldr r3, .L23+12
mov r2, #1
str r2, [r3, #8]
ldr r3, .L23+12
ldr r2, .L23+16
str r2, [r3]
ldr r3, .L23+12
ldr r2, .L23+20
str r2, [r3, #4]
b .L13
.L12:
ldr r3, [fp, #-36]
cmp r3, #2
bne .L14
ldr r3, .L23+12
mov r2, #2
str r2, [r3, #8]
ldr r3, .L23+12
ldr r2, .L23+24
str r2, [r3]
ldr r3, .L23+12
ldr r2, .L23+28
str r2, [r3, #4]
b .L13
.L14:
ldr r3, .L23+12
mov r2, #3
str r2, [r3, #8]
ldr r3, .L23+12
ldr r2, .L23+32
str r2, [r3]
ldr r3, .L23+12
ldr r2, .L23+36
str r2, [r3, #4]
.L13:
ldr r3, .L23+12
ldr r3, [r3, #8]
cmp r3, #1
bne .L15
ldr r3, .L23+12
ldr r3, [r3, #4]
str r3, [fp, #-16]
ldr r3, [fp, #-16]
ldr r2, .L23+20
cmp r3, r2
beq .L16
ldr r3, .L23+40
mov r2, #63
ldr r1, .L23+44
ldr r0, .L23+48
bl __assert_fail
.L16:
ldr r2, [fp, #-40]
ldr r3, [fp, #-16]
mov r0, r2
blx r3
str r0, [fp, #-12]
ldr r3, [fp, #-40]
ldr r2, [fp, #-12]
mov r1, r3
ldr r0, .L23+52
bl printf
b .L17
.L15:
ldr r3, .L23+12
ldr r3, [r3, #8]
cmp r3, #2
bne .L18
ldr r3, .L23+12
ldr r3, [r3, #4]
str r3, [fp, #-24]
ldr r3, [fp, #-24]
ldr r2, .L23+28
cmp r3, r2
beq .L19
ldr r3, .L23+40
mov r2, #69
ldr r1, .L23+44
ldr r0, .L23+56
bl __assert_fail
.L19:
ldr r2, [fp, #-40]
ldr r3, [fp, #-24]
mov r0, r2
blx r3
str r0, [fp, #-20]
ldr r3, [fp, #-40]
mov r2, r3
ldr r1, [fp, #-20]
ldr r0, .L23+52
bl printf
b .L17
.L18:
ldr r3, .L23+12
ldr r3, [r3, #4]
str r3, [fp, #-32]
ldr r3, [fp, #-32]
ldr r2, .L23+36
cmp r3, r2
beq .L20
ldr r3, .L23+40
mov r2, #74
ldr r1, .L23+44
ldr r0, .L23+60
bl __assert_fail
.L20:
ldr r3, [fp, #-40]
mov r1, r3
ldr r0, .L23+64
bl printf
ldr r2, [fp, #-40]
ldr r3, [fp, #-32]
mov r0, r2
blx r3
str r0, [fp, #-28]
.L17:
mov r3, #0
ldr r2, .L23
ldr r1, [r2]
ldr r2, [fp, #-8]
eors r1, r2, r1
mov r2, #0
beq .L22
bl __stack_chk_fail
.L22:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L24:
.align 2
.L23:
.word .LC12
.word .LC1
.word .LC2
.word functionToRun
.word .LC3
.word factorial
.word .LC4
.word inverseFactorial
.word .LC5
.word exit
.word __PRETTY_FUNCTION__.5337
.word .LC6
.word .LC7
.word .LC8
.word .LC9
.word .LC10
.word .LC11
.size main, .-main
.section .rodata
.align 2
.type __PRETTY_FUNCTION__.5337, %object
.size __PRETTY_FUNCTION__.5337, 5
__PRETTY_FUNCTION__.5337:
.ascii "main\000"
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "325864.c"
.intel_syntax noprefix
.text
.globl cadena
.data
.align 16
.type cadena, @object
.size cadena, 23
cadena:
.string "Atenci\303\263n: movb y code"
.globl password
.align 8
.type password, @object
.size password, 10
password:
.string "miss me?\n"
.globl passcode
.align 4
.type passcode, @object
.size passcode, 4
passcode:
.long 314
.section .rodata
.LC0:
.string "***************"
.LC1:
.string "*** BOOM (: ***"
.text
.globl boom
.type boom, @function
boom:
.LFB6:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
lea rdi, .LC0[rip]
call puts@PLT
lea rdi, .LC1[rip]
call puts@PLT
lea rdi, .LC0[rip]
call puts@PLT
mov edi, -1
call exit@PLT
.cfi_endproc
.LFE6:
.size boom, .-boom
.section .rodata
.align 8
.LC2:
.string "\302\267\302\267\302\267\302\267\302\267\302\267\302\267\302\267\302\267\302\267\302\267\302\267\302\267\302\267\302\267\302\267\302\267\302\267\302\267\302\267\302\267\302\267\302\267\302\267\302\267"
.align 8
.LC3:
.string "\302\267\302\267\302\267 Bomba desactivada \302\267\302\267\302\267"
.text
.globl defused
.type defused, @function
defused:
.LFB7:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
lea rdi, .LC2[rip]
call puts@PLT
lea rdi, .LC3[rip]
call puts@PLT
lea rdi, .LC2[rip]
call puts@PLT
mov edi, 0
call exit@PLT
.cfi_endproc
.LFE7:
.size defused, .-defused
.section .rodata
.LC4:
.string "%s"
.text
.globl pista
.type pista, @function
pista:
.LFB8:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
lea rsi, cadena[rip]
lea rdi, .LC4[rip]
mov eax, 0
call printf@PLT
nop
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE8:
.size pista, .-pista
.globl code
.type code, @function
code:
.LFB9:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov DWORD PTR -20[rbp], edi
mov eax, 1119299126
cdq
idiv DWORD PTR -20[rbp]
mov eax, edx
test eax, eax
jne .L5
mov eax, 188495978
cdq
idiv DWORD PTR -20[rbp]
mov eax, edx
test eax, eax
jne .L5
mov edx, DWORD PTR -20[rbp]
movsx rax, edx
imul rax, rax, 297930261
shr rax, 32
sar eax, 9
mov ecx, edx
sar ecx, 31
sub eax, ecx
imul ecx, eax, 7381
mov eax, edx
sub eax, ecx
test eax, eax
jne .L5
mov edx, DWORD PTR -20[rbp]
movsx rax, edx
imul rax, rax, 1276090675
shr rax, 32
sar eax, 11
mov ecx, edx
sar ecx, 31
sub eax, ecx
imul ecx, eax, 6893
mov eax, edx
sub eax, ecx
test eax, eax
jne .L5
mov eax, DWORD PTR -20[rbp]
and eax, 1
test eax, eax
jne .L5
mov DWORD PTR -4[rbp], 0
jmp .L6
.L5:
mov DWORD PTR -4[rbp], 1
.L6:
mov eax, DWORD PTR -4[rbp]
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE9:
.size code, .-code
.section .rodata
.LC5:
.string "Introduce la contrase\303\261a: "
.align 8
.LC6:
.string "Introduce el c\303\263digo (el cual es \303\272nico): "
.text
.globl main
.type main, @function
main:
.LFB10:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 144
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
lea rax, -144[rbp]
mov esi, 0
mov rdi, rax
call gettimeofday@PLT
lea rdi, .LC5[rip]
mov eax, 0
call printf@PLT
mov rdx, QWORD PTR stdin[rip]
lea rax, -112[rbp]
mov esi, 100
mov rdi, rax
call fgets@PLT
mov BYTE PTR password[rip+4], 38
lea rdi, password[rip]
call strlen@PLT
mov rdx, rax
lea rax, -112[rbp]
lea rsi, password[rip]
mov rdi, rax
call strncmp@PLT
test eax, eax
je .L9
mov eax, 0
call boom
.L9:
lea rax, -128[rbp]
mov esi, 0
mov rdi, rax
call gettimeofday@PLT
mov rax, QWORD PTR -128[rbp]
mov rdx, QWORD PTR -144[rbp]
sub rax, rdx
cmp rax, 7
jle .L10
mov eax, 0
call boom
.L10:
lea rdi, .LC6[rip]
mov eax, 0
call printf@PLT
lea rax, -112[rbp]
mov rsi, rax
lea rdi, .LC4[rip]
mov eax, 0
call __isoc99_scanf@PLT
lea rax, -112[rbp]
mov rdi, rax
call atoi@PLT
mov edi, eax
call code
cmp eax, 1
jne .L11
mov eax, 0
call boom
.L11:
lea rax, -144[rbp]
mov esi, 0
mov rdi, rax
call gettimeofday@PLT
mov rax, QWORD PTR -144[rbp]
mov rdx, QWORD PTR -128[rbp]
sub rax, rdx
cmp rax, 6
jg .L12
mov eax, 0
call boom
.L12:
mov eax, 0
call defused
mov eax, 0
call pista
mov eax, 0
mov rcx, QWORD PTR -8[rbp]
sub rcx, QWORD PTR fs:40
je .L14
call __stack_chk_fail@PLT
.L14:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE10:
.size main, .-main
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "325864.c"
.text
.global cadena
.data
.align 2
.type cadena, %object
.size cadena, 23
cadena:
.ascii "Atenci\303\263n: movb y code\000"
.global password
.align 2
.type password, %object
.size password, 10
password:
.ascii "miss me?\012\000"
.global passcode
.align 2
.type passcode, %object
.size passcode, 4
passcode:
.word 314
.section .rodata
.align 2
.LC0:
.ascii "***************\000"
.align 2
.LC1:
.ascii "*** BOOM (: ***\000"
.text
.align 2
.global boom
.syntax unified
.arm
.fpu softvfp
.type boom, %function
boom:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
ldr r0, .L2
bl puts
ldr r0, .L2+4
bl puts
ldr r0, .L2
bl puts
mvn r0, #0
bl exit
.L3:
.align 2
.L2:
.word .LC0
.word .LC1
.size boom, .-boom
.section .rodata
.align 2
.LC2:
.ascii "\302\267\302\267\302\267\302\267\302\267\302\267\302"
.ascii "\267\302\267\302\267\302\267\302\267\302\267\302\267"
.ascii "\302\267\302\267\302\267\302\267\302\267\302\267\302"
.ascii "\267\302\267\302\267\302\267\302\267\302\267\000"
.align 2
.LC3:
.ascii "\302\267\302\267\302\267 Bomba desactivada \302\267"
.ascii "\302\267\302\267\000"
.text
.align 2
.global defused
.syntax unified
.arm
.fpu softvfp
.type defused, %function
defused:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
ldr r0, .L5
bl puts
ldr r0, .L5+4
bl puts
ldr r0, .L5
bl puts
mov r0, #0
bl exit
.L6:
.align 2
.L5:
.word .LC2
.word .LC3
.size defused, .-defused
.section .rodata
.align 2
.LC4:
.ascii "%s\000"
.text
.align 2
.global pista
.syntax unified
.arm
.fpu softvfp
.type pista, %function
pista:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
ldr r1, .L8
ldr r0, .L8+4
bl printf
nop
pop {fp, pc}
.L9:
.align 2
.L8:
.word cadena
.word .LC4
.size pista, .-pista
.global __aeabi_idivmod
.align 2
.global code
.syntax unified
.arm
.fpu softvfp
.type code, %function
code:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #16
str r0, [fp, #-16]
ldr r3, .L14
ldr r1, [fp, #-16]
mov r0, r3
bl __aeabi_idivmod
mov r3, r1
cmp r3, #0
bne .L11
ldr r3, .L14+4
ldr r1, [fp, #-16]
mov r0, r3
bl __aeabi_idivmod
mov r3, r1
cmp r3, #0
bne .L11
ldr r0, [fp, #-16]
ldr r3, .L14+8
smull r2, r3, r0, r3
asr r2, r3, #9
asr r3, r0, #31
sub r1, r2, r3
mov r3, r1
lsl r3, r3, #5
sub r3, r3, r1
lsl r3, r3, #2
sub r3, r3, r1
lsl r2, r3, #4
sub r2, r2, r3
lsl r2, r2, #2
add r2, r2, r1
sub r1, r0, r2
cmp r1, #0
bne .L11
ldr r1, [fp, #-16]
ldr r3, .L14+12
smull r2, r3, r1, r3
asr r2, r3, #11
asr r3, r1, #31
sub r2, r2, r3
mov r3, r2
lsl r3, r3, #1
add r3, r3, r2
lsl r3, r3, #7
sub r3, r3, r2
lsl r0, r3, #3
add r3, r3, r0
lsl r3, r3, #1
sub r3, r3, r2
sub r2, r1, r3
cmp r2, #0
bne .L11
ldr r3, [fp, #-16]
and r3, r3, #1
cmp r3, #0
bne .L11
mov r3, #0
str r3, [fp, #-8]
b .L12
.L11:
mov r3, #1
str r3, [fp, #-8]
.L12:
ldr r3, [fp, #-8]
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L15:
.align 2
.L14:
.word 1119299126
.word 188495978
.word 297930261
.word 1276090675
.size code, .-code
.section .rodata
.align 2
.LC5:
.ascii "Introduce la contrase\303\261a: \000"
.align 2
.LC6:
.ascii "Introduce el c\303\263digo (el cual es \303\272nico"
.ascii "): \000"
.align 2
.LC7:
.word __stack_chk_guard
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 120
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #120
ldr r3, .L23
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
sub r3, fp, #124
mov r1, #0
mov r0, r3
bl gettimeofday
ldr r0, .L23+4
bl printf
ldr r3, .L23+8
ldr r2, [r3]
sub r3, fp, #108
mov r1, #100
mov r0, r3
bl fgets
ldr r3, .L23+12
mov r2, #38
strb r2, [r3, #4]
ldr r0, .L23+12
bl strlen
mov r2, r0
sub r3, fp, #108
ldr r1, .L23+12
mov r0, r3
bl strncmp
mov r3, r0
cmp r3, #0
beq .L17
bl boom
.L17:
sub r3, fp, #116
mov r1, #0
mov r0, r3
bl gettimeofday
ldr r2, [fp, #-116]
ldr r3, [fp, #-124]
sub r3, r2, r3
cmp r3, #7
ble .L18
bl boom
.L18:
ldr r0, .L23+16
bl printf
sub r3, fp, #108
mov r1, r3
ldr r0, .L23+20
bl __isoc99_scanf
sub r3, fp, #108
mov r0, r3
bl atoi
mov r3, r0
mov r0, r3
bl code
mov r3, r0
cmp r3, #1
bne .L19
bl boom
.L19:
sub r3, fp, #124
mov r1, #0
mov r0, r3
bl gettimeofday
ldr r2, [fp, #-124]
ldr r3, [fp, #-116]
sub r3, r2, r3
cmp r3, #6
bgt .L20
bl boom
.L20:
bl defused
bl pista
mov r3, #0
ldr r2, .L23
ldr r1, [r2]
ldr r2, [fp, #-8]
eors r1, r2, r1
mov r2, #0
beq .L22
bl __stack_chk_fail
.L22:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L24:
.align 2
.L23:
.word .LC7
.word .LC5
.word stdin
.word password
.word .LC6
.word .LC4
.size main, .-main
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "263515.c"
.intel_syntax noprefix
.text
.globl megaInit
.type megaInit, @function
megaInit:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
nop
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size megaInit, .-megaInit
.globl RandomFunc
.type RandomFunc, @function
RandomFunc:
.LFB1:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 32
mov QWORD PTR -24[rbp], rdi
mov QWORD PTR -32[rbp], rsi
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
mov BYTE PTR -9[rbp], 0
mov BYTE PTR -10[rbp], 0
jmp .L3
.L6:
movzx eax, BYTE PTR -9[rbp]
cmp BYTE PTR -10[rbp], al
jnb .L4
movzx eax, BYTE PTR -9[rbp]
movzx edx, al
movzx eax, BYTE PTR -10[rbp]
cdqe
movzx eax, BYTE PTR -9[rbp+rax]
shr al
movzx eax, al
and eax, 6
or eax, 1
mov ecx, eax
sal edx, cl
movzx eax, BYTE PTR -10[rbp]
cdqe
mov BYTE PTR -9[rbp+rax], dl
jmp .L5
.L4:
movzx eax, BYTE PTR -9[rbp]
movzx edx, al
movzx eax, BYTE PTR -10[rbp]
cdqe
movzx eax, BYTE PTR -9[rbp+rax]
shr al, 4
movzx eax, al
and eax, 6
or eax, 1
mov ecx, eax
sal edx, cl
movzx eax, BYTE PTR -10[rbp]
cdqe
mov BYTE PTR -9[rbp+rax], dl
.L5:
movzx eax, BYTE PTR -10[rbp]
add eax, 1
mov BYTE PTR -10[rbp], al
.L3:
mov rax, QWORD PTR -24[rbp]
add rax, 1
movzx eax, BYTE PTR [rax]
cmp BYTE PTR -10[rbp], al
jb .L6
movzx eax, BYTE PTR -9[rbp]
and eax, -78
xor eax, -21
mov edx, eax
mov rax, QWORD PTR -32[rbp]
mov BYTE PTR [rax], dl
nop
mov rax, QWORD PTR -8[rbp]
sub rax, QWORD PTR fs:40
je .L7
call __stack_chk_fail@PLT
.L7:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE1:
.size RandomFunc, .-RandomFunc
.section .rodata
.align 8
.LC0:
.string "Call this program with %i arguments\n"
.LC1:
.string "You win!"
.LC2:
.string "%u\n"
.text
.globl main
.type main, @function
main:
.LFB2:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 48
mov DWORD PTR -36[rbp], edi
mov QWORD PTR -48[rbp], rsi
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
call megaInit
cmp DWORD PTR -36[rbp], 2
je .L9
mov esi, 1
lea rdi, .LC0[rip]
mov eax, 0
call printf@PLT
mov edi, -1
call exit@PLT
.L9:
mov DWORD PTR -20[rbp], 0
jmp .L10
.L11:
mov eax, DWORD PTR -20[rbp]
cdqe
add rax, 1
lea rdx, 0[0+rax*8]
mov rax, QWORD PTR -48[rbp]
add rax, rdx
mov rax, QWORD PTR [rax]
mov edx, 10
mov esi, 0
mov rdi, rax
call strtoul@PLT
mov BYTE PTR -21[rbp], al
mov eax, DWORD PTR -20[rbp]
cdqe
movzx edx, BYTE PTR -21[rbp]
mov BYTE PTR -10[rbp+rax], dl
add DWORD PTR -20[rbp], 1
.L10:
cmp DWORD PTR -20[rbp], 0
jle .L11
lea rdx, -9[rbp]
lea rax, -10[rbp]
mov rsi, rdx
mov rdi, rax
call RandomFunc
movzx eax, BYTE PTR -9[rbp]
cmp al, -21
jne .L12
lea rdi, .LC1[rip]
call puts@PLT
.L12:
mov DWORD PTR -16[rbp], 0
jmp .L13
.L14:
mov eax, DWORD PTR -16[rbp]
cdqe
movzx eax, BYTE PTR -9[rbp+rax]
movzx eax, al
mov esi, eax
lea rdi, .LC2[rip]
mov eax, 0
call printf@PLT
add DWORD PTR -16[rbp], 1
.L13:
cmp DWORD PTR -16[rbp], 0
jle .L14
mov eax, 0
mov rcx, QWORD PTR -8[rbp]
sub rcx, QWORD PTR fs:40
je .L16
call __stack_chk_fail@PLT
.L16:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE2:
.size main, .-main
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "263515.c"
.text
.align 2
.global megaInit
.syntax unified
.arm
.fpu softvfp
.type megaInit, %function
megaInit:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
nop
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size megaInit, .-megaInit
.section .rodata
.align 2
.LC0:
.word __stack_chk_guard
.text
.align 2
.global RandomFunc
.syntax unified
.arm
.fpu softvfp
.type RandomFunc, %function
RandomFunc:
@ args = 0, pretend = 0, frame = 24
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #24
str r0, [fp, #-24]
str r1, [fp, #-28]
ldr r3, .L8
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
mov r3, #0
strb r3, [fp, #-12]
mov r3, #0
strb r3, [fp, #-13]
b .L3
.L6:
ldrb r3, [fp, #-12] @ zero_extendqisi2
ldrb r2, [fp, #-13] @ zero_extendqisi2
cmp r2, r3
bcs .L4
ldrb r3, [fp, #-12] @ zero_extendqisi2
mov r2, r3
ldrb r3, [fp, #-13] @ zero_extendqisi2
sub r1, fp, #4
add r3, r1, r3
ldrb r3, [r3, #-8] @ zero_extendqisi2
lsr r3, r3, #1
and r3, r3, #255
and r3, r3, #6
orr r3, r3, #1
lsl r2, r2, r3
ldrb r3, [fp, #-13] @ zero_extendqisi2
and r2, r2, #255
sub r1, fp, #4
add r3, r1, r3
strb r2, [r3, #-8]
b .L5
.L4:
ldrb r3, [fp, #-12] @ zero_extendqisi2
mov r2, r3
ldrb r3, [fp, #-13] @ zero_extendqisi2
sub r1, fp, #4
add r3, r1, r3
ldrb r3, [r3, #-8] @ zero_extendqisi2
lsr r3, r3, #4
and r3, r3, #255
and r3, r3, #6
orr r3, r3, #1
lsl r2, r2, r3
ldrb r3, [fp, #-13] @ zero_extendqisi2
and r2, r2, #255
sub r1, fp, #4
add r3, r1, r3
strb r2, [r3, #-8]
.L5:
ldrb r3, [fp, #-13] @ zero_extendqisi2
add r3, r3, #1
strb r3, [fp, #-13]
.L3:
ldr r3, [fp, #-24]
add r3, r3, #1
ldrb r3, [r3] @ zero_extendqisi2
ldrb r2, [fp, #-13] @ zero_extendqisi2
cmp r2, r3
bcc .L6
ldrb r3, [fp, #-12] @ zero_extendqisi2
bic r3, r3, #77
and r3, r3, #255
eor r3, r3, #20
mvn r3, r3
and r2, r3, #255
ldr r3, [fp, #-28]
strb r2, [r3]
nop
ldr r3, .L8
ldr r2, [r3]
ldr r3, [fp, #-8]
eors r2, r3, r2
mov r3, #0
beq .L7
bl __stack_chk_fail
.L7:
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L9:
.align 2
.L8:
.word .LC0
.size RandomFunc, .-RandomFunc
.section .rodata
.align 2
.LC1:
.ascii "Call this program with %i arguments\012\000"
.align 2
.LC2:
.ascii "You win!\000"
.align 2
.LC3:
.ascii "%u\012\000"
.align 2
.LC4:
.word __stack_chk_guard
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 32
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #32
str r0, [fp, #-32]
str r1, [fp, #-36]
ldr r3, .L19
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
bl megaInit
ldr r3, [fp, #-32]
cmp r3, #2
beq .L11
mov r1, #1
ldr r0, .L19+4
bl printf
mvn r0, #0
bl exit
.L11:
mov r3, #0
str r3, [fp, #-24]
b .L12
.L13:
ldr r3, [fp, #-24]
add r3, r3, #1
lsl r3, r3, #2
ldr r2, [fp, #-36]
add r3, r2, r3
ldr r3, [r3]
mov r2, #10
mov r1, #0
mov r0, r3
bl strtoul
mov r3, r0
strb r3, [fp, #-25]
sub r2, fp, #16
ldr r3, [fp, #-24]
add r3, r2, r3
ldrb r2, [fp, #-25]
strb r2, [r3]
ldr r3, [fp, #-24]
add r3, r3, #1
str r3, [fp, #-24]
.L12:
ldr r3, [fp, #-24]
cmp r3, #0
ble .L13
sub r2, fp, #12
sub r3, fp, #16
mov r1, r2
mov r0, r3
bl RandomFunc
ldrb r3, [fp, #-12] @ zero_extendqisi2
cmp r3, #235
bne .L14
ldr r0, .L19+8
bl puts
.L14:
mov r3, #0
str r3, [fp, #-20]
b .L15
.L16:
sub r2, fp, #12
ldr r3, [fp, #-20]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
mov r1, r3
ldr r0, .L19+12
bl printf
ldr r3, [fp, #-20]
add r3, r3, #1
str r3, [fp, #-20]
.L15:
ldr r3, [fp, #-20]
cmp r3, #0
ble .L16
mov r3, #0
ldr r2, .L19
ldr r1, [r2]
ldr r2, [fp, #-8]
eors r1, r2, r1
mov r2, #0
beq .L18
bl __stack_chk_fail
.L18:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L20:
.align 2
.L19:
.word .LC4
.word .LC1
.word .LC2
.word .LC3
.size main, .-main
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "705494.c"
.intel_syntax noprefix
.text
.globl fprintf
.type fprintf, @function
fprintf:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 240
mov QWORD PTR -232[rbp], rdi
mov QWORD PTR -240[rbp], rsi
mov QWORD PTR -160[rbp], rdx
mov QWORD PTR -152[rbp], rcx
mov QWORD PTR -144[rbp], r8
mov QWORD PTR -136[rbp], r9
test al, al
je .L2
movaps XMMWORD PTR -128[rbp], xmm0
movaps XMMWORD PTR -112[rbp], xmm1
movaps XMMWORD PTR -96[rbp], xmm2
movaps XMMWORD PTR -80[rbp], xmm3
movaps XMMWORD PTR -64[rbp], xmm4
movaps XMMWORD PTR -48[rbp], xmm5
movaps XMMWORD PTR -32[rbp], xmm6
movaps XMMWORD PTR -16[rbp], xmm7
.L2:
mov rax, QWORD PTR fs:40
mov QWORD PTR -184[rbp], rax
xor eax, eax
mov rdx, QWORD PTR -240[rbp]
lea rax, -208[rbp]
mov rsi, rdx
mov rdi, rax
mov eax, 0
call va_start@PLT
lea rdx, -208[rbp]
mov rcx, QWORD PTR -240[rbp]
mov rax, QWORD PTR -232[rbp]
mov rsi, rcx
mov rdi, rax
call vfprintf@PLT
mov DWORD PTR -212[rbp], eax
lea rax, -208[rbp]
mov rdi, rax
mov eax, 0
call va_end@PLT
mov eax, DWORD PTR -212[rbp]
mov rcx, QWORD PTR -184[rbp]
sub rcx, QWORD PTR fs:40
je .L4
call __stack_chk_fail@PLT
.L4:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size fprintf, .-fprintf
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "705494.c"
.text
.align 2
.global fprintf
.syntax unified
.arm
.fpu softvfp
.type fprintf, %function
fprintf:
@ args = 4, pretend = 12, frame = 16
@ frame_needed = 1, uses_anonymous_args = 1
push {r1, r2, r3}
push {fp, lr}
add fp, sp, #4
sub sp, sp, #20
str r0, [fp, #-20]
ldr r1, [fp, #4]
ldr r0, [fp, #-16]
bl va_start
ldr r2, [fp, #-16]
ldr r1, [fp, #4]
ldr r0, [fp, #-20]
bl vfprintf
str r0, [fp, #-12]
ldr r0, [fp, #-16]
bl va_end
ldr r3, [fp, #-12]
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, lr}
add sp, sp, #12
bx lr
.size fprintf, .-fprintf
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "861838.c"
.intel_syntax noprefix
.text
.section .rodata
.LC0:
.string "enter 5 numbers"
.LC1:
.string "%i %i %i %i %i"
.LC2:
.string " %i"
.LC3:
.string "%i is lowNum"
.LC4:
.string "the smallest number is %i\n"
.LC5:
.string "pause"
.text
.globl main
.type main, @function
main:
.LFB6:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 32
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
mov DWORD PTR -28[rbp], 0
mov DWORD PTR -24[rbp], 0
mov DWORD PTR -20[rbp], 0
mov DWORD PTR -16[rbp], 0
mov DWORD PTR -12[rbp], 0
lea rdi, .LC0[rip]
call puts@PLT
lea rdi, -28[rbp]
lea rsi, -12[rbp]
lea rcx, -16[rbp]
lea rdx, -24[rbp]
lea rax, -20[rbp]
mov r9, rdi
mov r8, rsi
mov rsi, rax
lea rdi, .LC1[rip]
mov eax, 0
call scanf_s@PLT
lea rax, -20[rbp]
mov rsi, rax
lea rdi, .LC2[rip]
mov eax, 0
call scanf_s@PLT
mov DWORD PTR -28[rbp], 0
mov eax, DWORD PTR -28[rbp]
cmp eax, 49
jne .L2
mov eax, DWORD PTR -20[rbp]
mov esi, eax
lea rdi, .LC3[rip]
mov eax, 0
call printf@PLT
nop
.L2:
mov eax, DWORD PTR -20[rbp]
mov esi, eax
lea rdi, .LC4[rip]
mov eax, 0
call printf@PLT
lea rdi, .LC5[rip]
call system@PLT
mov eax, 0
mov rdx, QWORD PTR -8[rbp]
sub rdx, QWORD PTR fs:40
je .L4
call __stack_chk_fail@PLT
.L4:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size main, .-main
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "861838.c"
.text
.section .rodata
.align 2
.LC0:
.ascii "enter 5 numbers\000"
.align 2
.LC1:
.ascii "%i %i %i %i %i\000"
.align 2
.LC2:
.ascii " %i\000"
.align 2
.LC3:
.ascii "%i is lowNum\000"
.align 2
.LC4:
.ascii "the smallest number is %i\012\000"
.align 2
.LC5:
.ascii "pause\000"
.align 2
.LC6:
.word __stack_chk_guard
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 24
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #32
ldr r3, .L5
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
mov r3, #0
str r3, [fp, #-28]
mov r3, #0
str r3, [fp, #-24]
mov r3, #0
str r3, [fp, #-20]
mov r3, #0
str r3, [fp, #-16]
mov r3, #0
str r3, [fp, #-12]
ldr r0, .L5+4
bl puts
sub r0, fp, #16
sub r2, fp, #24
sub r1, fp, #20
sub r3, fp, #28
str r3, [sp, #4]
sub r3, fp, #12
str r3, [sp]
mov r3, r0
ldr r0, .L5+8
bl scanf_s
sub r3, fp, #20
mov r1, r3
ldr r0, .L5+12
bl scanf_s
mov r3, #0
str r3, [fp, #-28]
ldr r3, [fp, #-28]
cmp r3, #49
bne .L2
ldr r3, [fp, #-20]
mov r1, r3
ldr r0, .L5+16
bl printf
nop
.L2:
ldr r3, [fp, #-20]
mov r1, r3
ldr r0, .L5+20
bl printf
ldr r0, .L5+24
bl system
mov r3, #0
ldr r2, .L5
ldr r1, [r2]
ldr r2, [fp, #-8]
eors r1, r2, r1
mov r2, #0
beq .L4
bl __stack_chk_fail
.L4:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L6:
.align 2
.L5:
.word .LC6
.word .LC0
.word .LC1
.word .LC2
.word .LC3
.word .LC4
.word .LC5
.size main, .-main
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "635163.c"
.intel_syntax noprefix
.text
.section .rodata
.LC0:
.string "Your String \n"
.LC1:
.string "Your String"
.text
.globl main
.type main, @function
main:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
lea rdi, .LC0[rip]
mov eax, 0
call printf@PLT
nop
.L2:
lea rdi, .LC0[rip]
mov eax, 0
call printf@PLT
test eax, eax
je .L2
lea rdi, .LC0[rip]
mov eax, 0
call printf@PLT
lea rdi, .LC1[rip]
mov eax, 0
call printf@PLT
mov eax, 0
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size main, .-main
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "635163.c"
.text
.section .rodata
.align 2
.LC0:
.ascii "Your String \012\000"
.align 2
.LC1:
.ascii "Your String\000"
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
ldr r0, .L4
bl printf
nop
.L2:
ldr r0, .L4
bl printf
mov r3, r0
cmp r3, #0
beq .L2
ldr r0, .L4
bl printf
ldr r0, .L4+4
bl printf
mov r3, #0
mov r0, r3
pop {fp, pc}
.L5:
.align 2
.L4:
.word .LC0
.word .LC1
.size main, .-main
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "63976.c"
.intel_syntax noprefix
.text
.section .rodata
.LC0:
.string "malloc error"
.text
.globl func
.type func, @function
func:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov QWORD PTR -8[rbp], rdi
mov edi, 4
call malloc@PLT
mov QWORD PTR -8[rbp], rax
cmp QWORD PTR -8[rbp], 0
jne .L2
lea rdi, .LC0[rip]
mov eax, 0
call printf@PLT
mov eax, 0
jmp .L3
.L2:
mov rax, QWORD PTR -8[rbp]
.L3:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size func, .-func
.section .rodata
.LC1:
.string "%d"
.text
.globl main
.type main, @function
main:
.LFB1:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 32
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
mov DWORD PTR -20[rbp], 1
lea rax, -20[rbp]
mov QWORD PTR -16[rbp], rax
mov rax, QWORD PTR -16[rbp]
mov rdi, rax
call func
mov QWORD PTR -16[rbp], rax
mov rax, QWORD PTR -16[rbp]
mov DWORD PTR [rax], 1
mov eax, DWORD PTR -20[rbp]
mov esi, eax
lea rdi, .LC1[rip]
mov eax, 0
call printf@PLT
mov eax, 0
mov rdx, QWORD PTR -8[rbp]
sub rdx, QWORD PTR fs:40
je .L6
call __stack_chk_fail@PLT
.L6:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE1:
.size main, .-main
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "63976.c"
.text
.section .rodata
.align 2
.LC0:
.ascii "malloc error\000"
.text
.align 2
.global func
.syntax unified
.arm
.fpu softvfp
.type func, %function
func:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #8
str r0, [fp, #-8]
mov r0, #4
bl malloc
mov r3, r0
str r3, [fp, #-8]
ldr r3, [fp, #-8]
cmp r3, #0
bne .L2
ldr r0, .L4
bl printf
mov r3, #0
b .L3
.L2:
ldr r3, [fp, #-8]
.L3:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L5:
.align 2
.L4:
.word .LC0
.size func, .-func
.section .rodata
.align 2
.LC1:
.ascii "%d\000"
.align 2
.LC2:
.word __stack_chk_guard
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #16
ldr r3, .L9
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
mov r3, #1
str r3, [fp, #-16]
sub r3, fp, #16
str r3, [fp, #-12]
ldr r0, [fp, #-12]
bl func
str r0, [fp, #-12]
ldr r3, [fp, #-12]
mov r2, #1
str r2, [r3]
ldr r3, [fp, #-16]
mov r1, r3
ldr r0, .L9+4
bl printf
mov r3, #0
ldr r2, .L9
ldr r1, [r2]
ldr r2, [fp, #-8]
eors r1, r2, r1
mov r2, #0
beq .L8
bl __stack_chk_fail
.L8:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L10:
.align 2
.L9:
.word .LC2
.word .LC1
.size main, .-main
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "698472.c"
.intel_syntax noprefix
.text
.globl mtx_unlock
.type mtx_unlock, @function
mtx_unlock:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov QWORD PTR -8[rbp], rdi
mov rax, QWORD PTR -8[rbp]
mov rdi, rax
call __pthread_mutex_unlock@PLT
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size mtx_unlock, .-mtx_unlock
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "698472.c"
.text
.align 2
.global mtx_unlock
.syntax unified
.arm
.fpu softvfp
.type mtx_unlock, %function
mtx_unlock:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #8
str r0, [fp, #-8]
ldr r0, [fp, #-8]
bl __pthread_mutex_unlock
mov r3, r0
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.size mtx_unlock, .-mtx_unlock
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "81163.c"
.intel_syntax noprefix
.text
.globl crcLookup
.section .rodata
.align 16
.type crcLookup, @object
.size crcLookup, 16
crcLookup:
.string ""
.ascii "\r\007\n\016\003\t\004\001\f\006\013\017\002\b\005"
.text
.globl calculateCRC
.type calculateCRC, @function
calculateCRC:
.LFB6:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov QWORD PTR -24[rbp], rdi
mov DWORD PTR -28[rbp], esi
mov BYTE PTR -2[rbp], 5
mov BYTE PTR -1[rbp], 0
jmp .L2
.L3:
movzx eax, BYTE PTR -2[rbp]
cdqe
lea rdx, crcLookup[rip]
movzx eax, BYTE PTR [rax+rdx]
mov BYTE PTR -2[rbp], al
movzx edx, BYTE PTR -1[rbp]
mov rax, QWORD PTR -24[rbp]
add rax, rdx
movzx eax, BYTE PTR [rax]
xor al, BYTE PTR -2[rbp]
and eax, 15
mov BYTE PTR -2[rbp], al
movzx eax, BYTE PTR -1[rbp]
add eax, 1
mov BYTE PTR -1[rbp], al
.L2:
movzx eax, BYTE PTR -1[rbp]
cmp DWORD PTR -28[rbp], eax
jg .L3
movzx eax, BYTE PTR -2[rbp]
cdqe
lea rdx, crcLookup[rip]
movzx eax, BYTE PTR [rax+rdx]
mov BYTE PTR -2[rbp], al
movzx eax, BYTE PTR -2[rbp]
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size calculateCRC, .-calculateCRC
.section .rodata
.align 8
.LC0:
.string "====Calculating frame from images...===="
.LC1:
.string "\tData1 CRC is: %i\n"
.LC2:
.string "\tData2 CRC is: %i\n"
.align 8
.LC3:
.string "====Some more frames to test...===="
.LC4:
.string "\tSample%i CRC is: %i\n"
.text
.globl main
.type main, @function
main:
.LFB7:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 96
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
mov DWORD PTR -26[rbp], 50594306
mov WORD PTR -22[rbp], 258
mov DWORD PTR -20[rbp], 34211087
mov WORD PTR -16[rbp], 8
mov DWORD PTR -14[rbp], 0
mov WORD PTR -10[rbp], 0
mov DWORD PTR -80[rbp], 50857732
mov WORD PTR -76[rbp], 1796
mov DWORD PTR -74[rbp], 50857732
mov WORD PTR -70[rbp], 772
mov DWORD PTR -68[rbp], 50857732
mov WORD PTR -64[rbp], 1284
mov DWORD PTR -62[rbp], 50857732
mov WORD PTR -58[rbp], 1028
mov DWORD PTR -56[rbp], 50792196
mov WORD PTR -52[rbp], 1284
mov DWORD PTR -50[rbp], 50923268
mov WORD PTR -46[rbp], 1284
mov DWORD PTR -44[rbp], 50923268
mov WORD PTR -40[rbp], 1540
mov DWORD PTR -38[rbp], 50792196
mov WORD PTR -34[rbp], 1796
lea rdi, .LC0[rip]
call puts@PLT
lea rax, -26[rbp]
mov esi, 6
mov rdi, rax
call calculateCRC
movzx eax, al
mov esi, eax
lea rdi, .LC1[rip]
mov eax, 0
call printf@PLT
lea rax, -20[rbp]
mov esi, 6
mov rdi, rax
call calculateCRC
movzx eax, al
mov esi, eax
lea rdi, .LC2[rip]
mov eax, 0
call printf@PLT
lea rdi, .LC3[rip]
call puts@PLT
mov DWORD PTR -88[rbp], 0
jmp .L6
.L9:
mov DWORD PTR -84[rbp], 0
jmp .L7
.L8:
mov eax, DWORD PTR -84[rbp]
movsx rcx, eax
mov eax, DWORD PTR -88[rbp]
movsx rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
add rax, rax
add rax, rbp
add rax, rcx
sub rax, 80
movzx edx, BYTE PTR [rax]
mov eax, DWORD PTR -84[rbp]
cdqe
mov BYTE PTR -14[rbp+rax], dl
add DWORD PTR -84[rbp], 1
.L7:
cmp DWORD PTR -84[rbp], 5
jle .L8
lea rax, -14[rbp]
mov esi, 6
mov rdi, rax
call calculateCRC
movzx edx, al
mov eax, DWORD PTR -88[rbp]
mov esi, eax
lea rdi, .LC4[rip]
mov eax, 0
call printf@PLT
add DWORD PTR -88[rbp], 1
.L6:
cmp DWORD PTR -88[rbp], 7
jle .L9
mov eax, 0
mov rcx, QWORD PTR -8[rbp]
sub rcx, QWORD PTR fs:40
je .L11
call __stack_chk_fail@PLT
.L11:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE7:
.size main, .-main
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "81163.c"
.text
.global crcLookup
.section .rodata
.align 2
.type crcLookup, %object
.size crcLookup, 16
crcLookup:
.ascii "\000\015\007\012\016\003\011\004\001\014\006\013\017"
.ascii "\002\010\005"
.text
.align 2
.global calculateCRC
.syntax unified
.arm
.fpu softvfp
.type calculateCRC, %function
calculateCRC:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #20
str r0, [fp, #-16]
str r1, [fp, #-20]
mov r3, #5
strb r3, [fp, #-6]
mov r3, #0
strb r3, [fp, #-5]
b .L2
.L3:
ldrb r3, [fp, #-6] @ zero_extendqisi2
ldr r2, .L5
ldrb r3, [r2, r3]
strb r3, [fp, #-6]
ldrb r3, [fp, #-5] @ zero_extendqisi2
ldr r2, [fp, #-16]
add r3, r2, r3
ldrb r2, [r3] @ zero_extendqisi2
ldrb r3, [fp, #-6]
eor r3, r3, r2
and r3, r3, #255
and r3, r3, #15
strb r3, [fp, #-6]
ldrb r3, [fp, #-5] @ zero_extendqisi2
add r3, r3, #1
strb r3, [fp, #-5]
.L2:
ldrb r3, [fp, #-5] @ zero_extendqisi2
ldr r2, [fp, #-20]
cmp r2, r3
bgt .L3
ldrb r3, [fp, #-6] @ zero_extendqisi2
ldr r2, .L5
ldrb r3, [r2, r3]
strb r3, [fp, #-6]
ldrb r3, [fp, #-6] @ zero_extendqisi2
mov r0, r3
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.L6:
.align 2
.L5:
.word crcLookup
.size calculateCRC, .-calculateCRC
.section .rodata
.align 2
.LC4:
.ascii "====Calculating frame from images...====\000"
.align 2
.LC5:
.ascii "\011Data1 CRC is: %i\012\000"
.align 2
.LC6:
.ascii "\011Data2 CRC is: %i\012\000"
.align 2
.LC7:
.ascii "====Some more frames to test...====\000"
.align 2
.LC8:
.ascii "\011Sample%i CRC is: %i\012\000"
.align 2
.LC1:
.ascii "\002\002\004\003\002\001"
.align 2
.LC2:
.ascii "\017\005\012\002\010\000"
.align 2
.LC3:
.ascii "\000\000\000\000\000\000"
.align 2
.LC0:
.ascii "\004\007\010\003\004\007"
.ascii "\004\007\010\003\004\003"
.ascii "\004\007\010\003\004\005"
.ascii "\004\007\010\003\004\004"
.ascii "\004\007\007\003\004\005"
.ascii "\004\007\011\003\004\005"
.ascii "\004\007\011\003\004\006"
.ascii "\004\007\007\003\004\007"
.align 2
.LC9:
.word __stack_chk_guard
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 88
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #88
ldr r3, .L14
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
ldr r2, .L14+4
sub r3, fp, #32
ldm r2, {r0, r1}
str r0, [r3]
add r3, r3, #4
strh r1, [r3] @ movhi
ldr r2, .L14+8
sub r3, fp, #24
ldm r2, {r0, r1}
str r0, [r3]
add r3, r3, #4
strh r1, [r3] @ movhi
ldr r2, .L14+12
sub r3, fp, #16
ldm r2, {r0, r1}
str r0, [r3]
add r3, r3, #4
strh r1, [r3] @ movhi
ldr r3, .L14+16
sub ip, fp, #80
mov lr, r3
ldmia lr!, {r0, r1, r2, r3}
stmia ip!, {r0, r1, r2, r3}
ldmia lr!, {r0, r1, r2, r3}
stmia ip!, {r0, r1, r2, r3}
ldm lr, {r0, r1, r2, r3}
stm ip, {r0, r1, r2, r3}
ldr r0, .L14+20
bl puts
sub r3, fp, #32
mov r1, #6
mov r0, r3
bl calculateCRC
mov r3, r0
mov r1, r3
ldr r0, .L14+24
bl printf
sub r3, fp, #24
mov r1, #6
mov r0, r3
bl calculateCRC
mov r3, r0
mov r1, r3
ldr r0, .L14+28
bl printf
ldr r0, .L14+32
bl puts
mov r3, #0
str r3, [fp, #-88]
b .L8
.L11:
mov r3, #0
str r3, [fp, #-84]
b .L9
.L10:
ldr r2, [fp, #-88]
mov r3, r2
lsl r3, r3, #1
add r3, r3, r2
lsl r3, r3, #1
sub r2, fp, #4
add r2, r2, r3
ldr r3, [fp, #-84]
add r3, r2, r3
sub r3, r3, #76
ldrb r1, [r3] @ zero_extendqisi2
sub r2, fp, #16
ldr r3, [fp, #-84]
add r3, r2, r3
mov r2, r1
strb r2, [r3]
ldr r3, [fp, #-84]
add r3, r3, #1
str r3, [fp, #-84]
.L9:
ldr r3, [fp, #-84]
cmp r3, #5
ble .L10
sub r3, fp, #16
mov r1, #6
mov r0, r3
bl calculateCRC
mov r3, r0
mov r2, r3
ldr r1, [fp, #-88]
ldr r0, .L14+36
bl printf
ldr r3, [fp, #-88]
add r3, r3, #1
str r3, [fp, #-88]
.L8:
ldr r3, [fp, #-88]
cmp r3, #7
ble .L11
mov r3, #0
ldr r2, .L14
ldr r1, [r2]
ldr r2, [fp, #-8]
eors r1, r2, r1
mov r2, #0
beq .L13
bl __stack_chk_fail
.L13:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L15:
.align 2
.L14:
.word .LC9
.word .LC1
.word .LC2
.word .LC3
.word .LC0
.word .LC4
.word .LC5
.word .LC6
.word .LC7
.word .LC8
.size main, .-main
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "273504.c"
.intel_syntax noprefix
.text
.section .rodata
.LC0:
.string "%s"
.text
.globl main
.type main, @function
main:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 32
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
movabs rax, 7205866522012442946
mov QWORD PTR -20[rbp], rax
mov DWORD PTR -12[rbp], 6845285
movabs rax, 7306071613721436482
mov QWORD PTR -31[rbp], rax
mov WORD PTR -23[rbp], 26739
mov BYTE PTR -21[rbp], 0
lea rax, -31[rbp]
mov rsi, rax
lea rdi, .LC0[rip]
mov eax, 0
call printf@PLT
mov eax, 0
mov rdx, QWORD PTR -8[rbp]
sub rdx, QWORD PTR fs:40
je .L3
call __stack_chk_fail@PLT
.L3:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size main, .-main
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "273504.c"
.text
.section .rodata
.align 2
.LC2:
.ascii "%s\000"
.align 2
.LC0:
.ascii "Bangla\000desh\000"
.align 2
.LC1:
.ascii "Bangladesh\000"
.align 2
.LC3:
.word __stack_chk_guard
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 32
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #32
ldr r3, .L4
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
ldr r2, .L4+4
sub r3, fp, #20
ldm r2, {r0, r1, r2}
stm r3, {r0, r1, r2}
ldr r2, .L4+8
sub r3, fp, #32
ldm r2, {r0, r1, r2}
stmia r3!, {r0, r1}
strh r2, [r3] @ movhi
add r3, r3, #2
lsr r2, r2, #16
strb r2, [r3]
sub r3, fp, #32
mov r1, r3
ldr r0, .L4+12
bl printf
mov r3, #0
ldr r2, .L4
ldr r1, [r2]
ldr r2, [fp, #-8]
eors r1, r2, r1
mov r2, #0
beq .L3
bl __stack_chk_fail
.L3:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L5:
.align 2
.L4:
.word .LC3
.word .LC0
.word .LC1
.word .LC2
.size main, .-main
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "150032.c"
.intel_syntax noprefix
.text
.data
.align 32
.type CRCTable, @object
.size CRCTable, 1024
CRCTable:
.long 0
.long 1996959894
.long -301047508
.long -1727442502
.long 124634137
.long 1886057615
.long -379345611
.long -1637575261
.long 249268274
.long 2044508324
.long -522852066
.long -1747789432
.long 162941995
.long 2125561021
.long -407360249
.long -1866523247
.long 498536548
.long 1789927666
.long -205950648
.long -2067906082
.long 450548861
.long 1843258603
.long -187386543
.long -2083289657
.long 325883990
.long 1684777152
.long -43845254
.long -1973040660
.long 335633487
.long 1661365465
.long -99664541
.long -1928851979
.long 997073096
.long 1281953886
.long -715111964
.long -1570279054
.long 1006888145
.long 1258607687
.long -770865667
.long -1526024853
.long 901097722
.long 1119000684
.long -608450090
.long -1396901568
.long 853044451
.long 1172266101
.long -589951537
.long -1412350631
.long 651767980
.long 1373503546
.long -925412992
.long -1076862698
.long 565507253
.long 1454621731
.long -809855591
.long -1195530993
.long 671266974
.long 1594198024
.long -972236366
.long -1324619484
.long 795835527
.long 1483230225
.long -1050600021
.long -1234817731
.long 1994146192
.long 31158534
.long -1731059524
.long -271249366
.long 1907459465
.long 112637215
.long -1614814043
.long -390540237
.long 2013776290
.long 251722036
.long -1777751922
.long -519137256
.long 2137656763
.long 141376813
.long -1855689577
.long -429695999
.long 1802195444
.long 476864866
.long -2056965928
.long -228458418
.long 1812370925
.long 453092731
.long -2113342271
.long -183516073
.long 1706088902
.long 314042704
.long -1950435094
.long -54949764
.long 1658658271
.long 366619977
.long -1932296973
.long -69972891
.long 1303535960
.long 984961486
.long -1547960204
.long -725929758
.long 1256170817
.long 1037604311
.long -1529756563
.long -740887301
.long 1131014506
.long 879679996
.long -1385723834
.long -631195440
.long 1141124467
.long 855842277
.long -1442165665
.long -586318647
.long 1342533948
.long 654459306
.long -1106571248
.long -921952122
.long 1466479909
.long 544179635
.long -1184443383
.long -832445281
.long 1591671054
.long 702138776
.long -1328506846
.long -942167884
.long 1504918807
.long 783551873
.long -1212326853
.long -1061524307
.long -306674912
.long -1698712650
.long 62317068
.long 1957810842
.long -355121351
.long -1647151185
.long 81470997
.long 1943803523
.long -480048366
.long -1805370492
.long 225274430
.long 2053790376
.long -468791541
.long -1828061283
.long 167816743
.long 2097651377
.long -267414716
.long -2029476910
.long 503444072
.long 1762050814
.long -144550051
.long -2140837941
.long 426522225
.long 1852507879
.long -19653770
.long -1982649376
.long 282753626
.long 1742555852
.long -105259153
.long -1900089351
.long 397917763
.long 1622183637
.long -690576408
.long -1580100738
.long 953729732
.long 1340076626
.long -776247311
.long -1497606297
.long 1068828381
.long 1219638859
.long -670225446
.long -1358292148
.long 906185462
.long 1090812512
.long -547295293
.long -1469587627
.long 829329135
.long 1181335161
.long -882789492
.long -1134132454
.long 628085408
.long 1382605366
.long -871598187
.long -1156888829
.long 570562233
.long 1426400815
.long -977650754
.long -1296233688
.long 733239954
.long 1555261956
.long -1026031705
.long -1244606671
.long 752459403
.long 1541320221
.long -1687895376
.long -328994266
.long 1969922972
.long 40735498
.long -1677130071
.long -351390145
.long 1913087877
.long 83908371
.long -1782625662
.long -491226604
.long 2075208622
.long 213261112
.long -1831694693
.long -438977011
.long 2094854071
.long 198958881
.long -2032938284
.long -237706686
.long 1759359992
.long 534414190
.long -2118248755
.long -155638181
.long 1873836001
.long 414664567
.long -2012718362
.long -15766928
.long 1711684554
.long 285281116
.long -1889165569
.long -127750551
.long 1634467795
.long 376229701
.long -1609899400
.long -686959890
.long 1308918612
.long 956543938
.long -1486412191
.long -799009033
.long 1231636301
.long 1047427035
.long -1362007478
.long -640263460
.long 1088359270
.long 936918000
.long -1447252397
.long -558129467
.long 1202900863
.long 817233897
.long -1111625188
.long -893730166
.long 1404277552
.long 615818150
.long -1160759803
.long -841546093
.long 1423857449
.long 601450431
.long -1285129682
.long -1000256840
.long 1567103746
.long 711928724
.long -1274298825
.long -1022587231
.long 1510334235
.long 755167117
.text
.globl ComputeCRC
.type ComputeCRC, @function
ComputeCRC:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov QWORD PTR -24[rbp], rdi
mov DWORD PTR -28[rbp], esi
mov DWORD PTR -4[rbp], -1
jmp .L2
.L3:
mov eax, DWORD PTR -4[rbp]
shr eax, 8
mov esi, eax
mov eax, DWORD PTR -4[rbp]
movzx ecx, al
mov rax, QWORD PTR -24[rbp]
lea rdx, 1[rax]
mov QWORD PTR -24[rbp], rdx
movzx eax, BYTE PTR [rax]
movzx eax, al
xor eax, ecx
mov eax, eax
lea rdx, 0[0+rax*4]
lea rax, CRCTable[rip]
mov eax, DWORD PTR [rdx+rax]
xor eax, esi
mov DWORD PTR -4[rbp], eax
.L2:
mov eax, DWORD PTR -28[rbp]
lea edx, -1[rax]
mov DWORD PTR -28[rbp], edx
test eax, eax
jne .L3
mov eax, DWORD PTR -4[rbp]
not eax
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ComputeCRC, .-ComputeCRC
.globl VerifyCRC
.type VerifyCRC, @function
VerifyCRC:
.LFB1:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov QWORD PTR -8[rbp], rdi
mov DWORD PTR -12[rbp], esi
mov DWORD PTR -16[rbp], edx
mov edx, DWORD PTR -12[rbp]
mov rax, QWORD PTR -8[rbp]
mov esi, edx
mov rdi, rax
call ComputeCRC
mov DWORD PTR -16[rbp], eax
mov eax, DWORD PTR -16[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE1:
.size VerifyCRC, .-VerifyCRC
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "150032.c"
.text
.data
.align 2
.type CRCTable, %object
.size CRCTable, 1024
CRCTable:
.word 0
.word 1996959894
.word -301047508
.word -1727442502
.word 124634137
.word 1886057615
.word -379345611
.word -1637575261
.word 249268274
.word 2044508324
.word -522852066
.word -1747789432
.word 162941995
.word 2125561021
.word -407360249
.word -1866523247
.word 498536548
.word 1789927666
.word -205950648
.word -2067906082
.word 450548861
.word 1843258603
.word -187386543
.word -2083289657
.word 325883990
.word 1684777152
.word -43845254
.word -1973040660
.word 335633487
.word 1661365465
.word -99664541
.word -1928851979
.word 997073096
.word 1281953886
.word -715111964
.word -1570279054
.word 1006888145
.word 1258607687
.word -770865667
.word -1526024853
.word 901097722
.word 1119000684
.word -608450090
.word -1396901568
.word 853044451
.word 1172266101
.word -589951537
.word -1412350631
.word 651767980
.word 1373503546
.word -925412992
.word -1076862698
.word 565507253
.word 1454621731
.word -809855591
.word -1195530993
.word 671266974
.word 1594198024
.word -972236366
.word -1324619484
.word 795835527
.word 1483230225
.word -1050600021
.word -1234817731
.word 1994146192
.word 31158534
.word -1731059524
.word -271249366
.word 1907459465
.word 112637215
.word -1614814043
.word -390540237
.word 2013776290
.word 251722036
.word -1777751922
.word -519137256
.word 2137656763
.word 141376813
.word -1855689577
.word -429695999
.word 1802195444
.word 476864866
.word -2056965928
.word -228458418
.word 1812370925
.word 453092731
.word -2113342271
.word -183516073
.word 1706088902
.word 314042704
.word -1950435094
.word -54949764
.word 1658658271
.word 366619977
.word -1932296973
.word -69972891
.word 1303535960
.word 984961486
.word -1547960204
.word -725929758
.word 1256170817
.word 1037604311
.word -1529756563
.word -740887301
.word 1131014506
.word 879679996
.word -1385723834
.word -631195440
.word 1141124467
.word 855842277
.word -1442165665
.word -586318647
.word 1342533948
.word 654459306
.word -1106571248
.word -921952122
.word 1466479909
.word 544179635
.word -1184443383
.word -832445281
.word 1591671054
.word 702138776
.word -1328506846
.word -942167884
.word 1504918807
.word 783551873
.word -1212326853
.word -1061524307
.word -306674912
.word -1698712650
.word 62317068
.word 1957810842
.word -355121351
.word -1647151185
.word 81470997
.word 1943803523
.word -480048366
.word -1805370492
.word 225274430
.word 2053790376
.word -468791541
.word -1828061283
.word 167816743
.word 2097651377
.word -267414716
.word -2029476910
.word 503444072
.word 1762050814
.word -144550051
.word -2140837941
.word 426522225
.word 1852507879
.word -19653770
.word -1982649376
.word 282753626
.word 1742555852
.word -105259153
.word -1900089351
.word 397917763
.word 1622183637
.word -690576408
.word -1580100738
.word 953729732
.word 1340076626
.word -776247311
.word -1497606297
.word 1068828381
.word 1219638859
.word -670225446
.word -1358292148
.word 906185462
.word 1090812512
.word -547295293
.word -1469587627
.word 829329135
.word 1181335161
.word -882789492
.word -1134132454
.word 628085408
.word 1382605366
.word -871598187
.word -1156888829
.word 570562233
.word 1426400815
.word -977650754
.word -1296233688
.word 733239954
.word 1555261956
.word -1026031705
.word -1244606671
.word 752459403
.word 1541320221
.word -1687895376
.word -328994266
.word 1969922972
.word 40735498
.word -1677130071
.word -351390145
.word 1913087877
.word 83908371
.word -1782625662
.word -491226604
.word 2075208622
.word 213261112
.word -1831694693
.word -438977011
.word 2094854071
.word 198958881
.word -2032938284
.word -237706686
.word 1759359992
.word 534414190
.word -2118248755
.word -155638181
.word 1873836001
.word 414664567
.word -2012718362
.word -15766928
.word 1711684554
.word 285281116
.word -1889165569
.word -127750551
.word 1634467795
.word 376229701
.word -1609899400
.word -686959890
.word 1308918612
.word 956543938
.word -1486412191
.word -799009033
.word 1231636301
.word 1047427035
.word -1362007478
.word -640263460
.word 1088359270
.word 936918000
.word -1447252397
.word -558129467
.word 1202900863
.word 817233897
.word -1111625188
.word -893730166
.word 1404277552
.word 615818150
.word -1160759803
.word -841546093
.word 1423857449
.word 601450431
.word -1285129682
.word -1000256840
.word 1567103746
.word 711928724
.word -1274298825
.word -1022587231
.word 1510334235
.word 755167117
.text
.align 2
.global ComputeCRC
.syntax unified
.arm
.fpu softvfp
.type ComputeCRC, %function
ComputeCRC:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #20
str r0, [fp, #-16]
str r1, [fp, #-20]
mvn r3, #0
str r3, [fp, #-8]
b .L2
.L3:
ldr r3, [fp, #-8]
lsr r2, r3, #8
ldr r3, [fp, #-8]
and r1, r3, #255
ldr r3, [fp, #-16]
add r0, r3, #1
str r0, [fp, #-16]
ldrb r3, [r3] @ zero_extendqisi2
eor r3, r3, r1
ldr r1, .L5
ldr r3, [r1, r3, lsl #2]
eor r3, r3, r2
str r3, [fp, #-8]
.L2:
ldr r3, [fp, #-20]
sub r2, r3, #1
str r2, [fp, #-20]
cmp r3, #0
bne .L3
ldr r3, [fp, #-8]
mvn r3, r3
mov r0, r3
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.L6:
.align 2
.L5:
.word CRCTable
.size ComputeCRC, .-ComputeCRC
.align 2
.global VerifyCRC
.syntax unified
.arm
.fpu softvfp
.type VerifyCRC, %function
VerifyCRC:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #16
str r0, [fp, #-8]
str r1, [fp, #-12]
str r2, [fp, #-16]
ldr r1, [fp, #-12]
ldr r0, [fp, #-8]
bl ComputeCRC
str r0, [fp, #-16]
ldr r3, [fp, #-16]
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.size VerifyCRC, .-VerifyCRC
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "698539.c"
.intel_syntax noprefix
.text
.section .rodata
.LC0:
.string "Enter number and digit: "
.LC2:
.string "%d"
.text
.globl main
.type main, @function
main:
.LFB6:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 32
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
mov DWORD PTR -16[rbp], 0
lea rdi, .LC0[rip]
mov eax, 0
call printf@PLT
lea rdx, -20[rbp]
lea rax, -24[rbp]
mov rsi, rdx
mov rdi, rax
call checkInput
mov eax, DWORD PTR -20[rbp]
sub eax, 1
mov DWORD PTR -12[rbp], eax
mov eax, DWORD PTR -24[rbp]
mov DWORD PTR -16[rbp], eax
jmp .L2
.L3:
pxor xmm0, xmm0
cvtsi2sd xmm0, DWORD PTR -16[rbp]
movsd xmm1, QWORD PTR .LC1[rip]
divsd xmm0, xmm1
cvttsd2si eax, xmm0
mov DWORD PTR -16[rbp], eax
sub DWORD PTR -12[rbp], 1
.L2:
cmp DWORD PTR -12[rbp], 0
jg .L3
mov edx, DWORD PTR -16[rbp]
movsx rax, edx
imul rax, rax, 1717986919
shr rax, 32
sar eax, 2
mov esi, edx
sar esi, 31
sub eax, esi
mov ecx, eax
mov eax, ecx
sal eax, 2
add eax, ecx
add eax, eax
sub edx, eax
mov DWORD PTR -16[rbp], edx
cmp DWORD PTR -16[rbp], 0
je .L4
mov eax, DWORD PTR -16[rbp]
mov esi, eax
lea rdi, .LC2[rip]
mov eax, 0
call printf@PLT
jmp .L5
.L4:
mov edi, 45
call putchar@PLT
.L5:
mov eax, 0
mov rcx, QWORD PTR -8[rbp]
sub rcx, QWORD PTR fs:40
je .L7
call __stack_chk_fail@PLT
.L7:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size main, .-main
.section .rodata
.LC3:
.string "%d%d"
.LC4:
.string "Wrong input values!"
.text
.globl checkInput
.type checkInput, @function
checkInput:
.LFB7:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov QWORD PTR -8[rbp], rdi
mov QWORD PTR -16[rbp], rsi
mov rdx, QWORD PTR -16[rbp]
mov rax, QWORD PTR -8[rbp]
mov rsi, rax
lea rdi, .LC3[rip]
mov eax, 0
call __isoc99_scanf@PLT
cmp eax, 2
je .L10
mov rax, QWORD PTR stderr[rip]
mov rcx, rax
mov edx, 19
mov esi, 1
lea rdi, .LC4[rip]
call fwrite@PLT
mov edi, 1
call exit@PLT
.L10:
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE7:
.size checkInput, .-checkInput
.section .rodata
.align 8
.LC1:
.long 0
.long 1076101120
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "698539.c"
.text
.section .rodata
.align 2
.LC0:
.ascii "Enter number and digit: \000"
.global __aeabi_i2d
.global __aeabi_ddiv
.global __aeabi_d2iz
.align 2
.LC1:
.ascii "%d\000"
.align 2
.LC2:
.word __stack_chk_guard
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 24
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #24
ldr r3, .L8
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
mov r3, #0
str r3, [fp, #-16]
ldr r0, .L8+4
bl printf
sub r2, fp, #20
sub r3, fp, #24
mov r1, r2
mov r0, r3
bl checkInput
ldr r3, [fp, #-20]
sub r3, r3, #1
str r3, [fp, #-12]
ldr r3, [fp, #-24]
str r3, [fp, #-16]
b .L2
.L3:
ldr r0, [fp, #-16]
bl __aeabi_i2d
mov r2, #0
ldr r3, .L8+8
bl __aeabi_ddiv
mov r2, r0
mov r3, r1
mov r0, r2
mov r1, r3
bl __aeabi_d2iz
mov r3, r0
str r3, [fp, #-16]
ldr r3, [fp, #-12]
sub r3, r3, #1
str r3, [fp, #-12]
.L2:
ldr r3, [fp, #-12]
cmp r3, #0
bgt .L3
ldr r2, [fp, #-16]
ldr r3, .L8+12
smull r1, r3, r2, r3
asr r1, r3, #2
asr r3, r2, #31
sub r1, r1, r3
mov r3, r1
lsl r3, r3, #2
add r3, r3, r1
lsl r3, r3, #1
sub r3, r2, r3
str r3, [fp, #-16]
ldr r3, [fp, #-16]
cmp r3, #0
beq .L4
ldr r1, [fp, #-16]
ldr r0, .L8+16
bl printf
b .L5
.L4:
mov r0, #45
bl putchar
.L5:
mov r3, #0
ldr r2, .L8
ldr r1, [r2]
ldr r2, [fp, #-8]
eors r1, r2, r1
mov r2, #0
beq .L7
bl __stack_chk_fail
.L7:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L9:
.align 2
.L8:
.word .LC2
.word .LC0
.word 1076101120
.word 1717986919
.word .LC1
.size main, .-main
.section .rodata
.align 2
.LC3:
.ascii "%d%d\000"
.align 2
.LC4:
.ascii "Wrong input values!\000"
.text
.align 2
.global checkInput
.syntax unified
.arm
.fpu softvfp
.type checkInput, %function
checkInput:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #8
str r0, [fp, #-8]
str r1, [fp, #-12]
ldr r2, [fp, #-12]
ldr r1, [fp, #-8]
ldr r0, .L13
bl __isoc99_scanf
mov r3, r0
cmp r3, #2
beq .L12
ldr r3, .L13+4
ldr r3, [r3]
mov r2, #19
mov r1, #1
ldr r0, .L13+8
bl fwrite
mov r0, #1
bl exit
.L12:
nop
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L14:
.align 2
.L13:
.word .LC3
.word stderr
.word .LC4
.size checkInput, .-checkInput
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "974691.c"
.intel_syntax noprefix
.text
.section .rodata
.LC0:
.string "%d"
.text
.globl main
.type main, @function
main:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
lea rax, -12[rbp]
mov rsi, rax
lea rdi, .LC0[rip]
mov eax, 0
call __isoc99_scanf@PLT
.L2:
mov eax, DWORD PTR -12[rbp]
add eax, 1
mov DWORD PTR -12[rbp], eax
mov eax, DWORD PTR -12[rbp]
mov edi, eax
call isPrime
cmp eax, 1
jne .L2
mov eax, DWORD PTR -12[rbp]
mov esi, eax
lea rdi, .LC0[rip]
mov eax, 0
call printf@PLT
mov eax, 0
mov rdx, QWORD PTR -8[rbp]
sub rdx, QWORD PTR fs:40
je .L4
call __stack_chk_fail@PLT
.L4:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size main, .-main
.globl isPrime
.type isPrime, @function
isPrime:
.LFB1:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 32
mov DWORD PTR -20[rbp], edi
mov DWORD PTR -4[rbp], 2
jmp .L6
.L9:
mov eax, DWORD PTR -20[rbp]
cdq
idiv DWORD PTR -4[rbp]
mov eax, edx
test eax, eax
jne .L7
mov eax, 0
jmp .L8
.L7:
add DWORD PTR -4[rbp], 1
.L6:
pxor xmm1, xmm1
cvtsi2sd xmm1, DWORD PTR -4[rbp]
movsd QWORD PTR -32[rbp], xmm1
pxor xmm2, xmm2
cvtsi2sd xmm2, DWORD PTR -20[rbp]
movq rax, xmm2
movq xmm0, rax
call sqrt@PLT
movq rax, xmm0
movq xmm3, rax
comisd xmm3, QWORD PTR -32[rbp]
jnb .L9
mov eax, 1
.L8:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE1:
.size isPrime, .-isPrime
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "974691.c"
.text
.section .rodata
.align 2
.LC0:
.ascii "%d\000"
.align 2
.LC1:
.word __stack_chk_guard
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #8
ldr r3, .L5
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
sub r3, fp, #12
mov r1, r3
ldr r0, .L5+4
bl __isoc99_scanf
.L2:
ldr r3, [fp, #-12]
add r3, r3, #1
str r3, [fp, #-12]
ldr r3, [fp, #-12]
mov r0, r3
bl isPrime
mov r3, r0
cmp r3, #1
bne .L2
ldr r3, [fp, #-12]
mov r1, r3
ldr r0, .L5+4
bl printf
mov r3, #0
ldr r2, .L5
ldr r1, [r2]
ldr r2, [fp, #-8]
eors r1, r2, r1
mov r2, #0
beq .L4
bl __stack_chk_fail
.L4:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L6:
.align 2
.L5:
.word .LC1
.word .LC0
.size main, .-main
.global __aeabi_idivmod
.global __aeabi_i2d
.global __aeabi_dcmple
.align 2
.global isPrime
.syntax unified
.arm
.fpu softvfp
.type isPrime, %function
isPrime:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
push {r4, r5, fp, lr}
add fp, sp, #12
sub sp, sp, #16
str r0, [fp, #-24]
mov r3, #2
str r3, [fp, #-16]
b .L8
.L11:
ldr r3, [fp, #-24]
ldr r1, [fp, #-16]
mov r0, r3
bl __aeabi_idivmod
mov r3, r1
cmp r3, #0
bne .L9
mov r3, #0
b .L10
.L9:
ldr r3, [fp, #-16]
add r3, r3, #1
str r3, [fp, #-16]
.L8:
ldr r0, [fp, #-16]
bl __aeabi_i2d
mov r4, r0
mov r5, r1
ldr r0, [fp, #-24]
bl __aeabi_i2d
mov r2, r0
mov r3, r1
mov r0, r2
mov r1, r3
bl sqrt
mov r2, r0
mov r3, r1
mov r0, r4
mov r1, r5
bl __aeabi_dcmple
mov r3, r0
cmp r3, #0
bne .L11
mov r3, #1
.L10:
mov r0, r3
sub sp, fp, #12
@ sp needed
pop {r4, r5, fp, pc}
.size isPrime, .-isPrime
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "687475.c"
.intel_syntax noprefix
.text
.globl icudt57l_ibm_1101_P100_2003_cnv
.section .rodata
.align 32
.type icudt57l_ibm_1101_P100_2003_cnv, @object
.size icudt57l_ibm_1101_P100_2003_cnv, 2424
icudt57l_ibm_1101_P100_2003_cnv:
.long 0
.long 0
.string "\200"
.string "\332'\024"
.string ""
.string ""
.string ""
.string ""
.string "\002"
.string "cnvt\006\002"
.string ""
.string "9\001"
.string ""
.string " Copyright (C) 2016, International Business Machines Corporation and others. All Rights Reserved. "
.string ""
.string ""
.string ""
.string ""
.string ""
.string "d"
.string ""
.string ""
.string "ibm-1101_P100-2003"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "M\004"
.string ""
.string ""
.string "\002\001\001\032"
.string ""
.string ""
.string "\001"
.string "\001"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\004\004\037"
.string "\001"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string " \004"
.string ""
.string " \004"
.string ""
.string "\300\005"
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\300\002"
.string ""
.string ""
.string ""
.string ""
.string "\200\001"
.string ""
.string "\200\002"
.string ""
.string "\200\003"
.string ""
.string "\200\004"
.string ""
.string "\200\005"
.string ""
.string "\200\006"
.string ""
.string "\200\007"
.string ""
.string "\200\b"
.string ""
.string "\200\t"
.string ""
.string "\200\n"
.string ""
.string "\200\013"
.string ""
.string "\200\f"
.string ""
.string "\200\r"
.string ""
.string "\200\016"
.string ""
.string "\200\017"
.string ""
.string "\200\020"
.string ""
.string "\200\021"
.string ""
.string "\200\022"
.string ""
.string "\200\023"
.string ""
.string "\200\024"
.string ""
.string "\200\025"
.string ""
.string "\200\026"
.string ""
.string "\200\027"
.string ""
.string "\200\030"
.string ""
.string "\200\031"
.string ""
.string "\200\032"
.string ""
.string "\200\033"
.string ""
.string "\200\034"
.string ""
.string "\200\035"
.string ""
.string "\200\036"
.string ""
.string "\200\037"
.string ""
.string "\200 "
.string ""
.string "\200!"
.string ""
.string "\200\""
.string ""
.string "\200\243"
.string ""
.string "\200$"
.string ""
.string "\200%"
.string ""
.string "\200&"
.string ""
.string "\200'"
.string ""
.string "\200("
.string ""
.string "\200)"
.string ""
.string "\200*"
.string ""
.string "\200+"
.string ""
.string "\200,"
.string ""
.string "\200-"
.string ""
.string "\200."
.string ""
.string "\200/"
.string ""
.string "\2000"
.string ""
.string "\2001"
.string ""
.string "\2002"
.string ""
.string "\2003"
.string ""
.string "\2004"
.string ""
.string "\2005"
.string ""
.string "\2006"
.string ""
.string "\2007"
.string ""
.string "\2008"
.string ""
.string "\2009"
.string ""
.string "\200:"
.string ""
.string "\200;"
.string ""
.string "\200<"
.string ""
.string "\200="
.string ""
.string "\200>"
.string ""
.string "\200?"
.string ""
.string "\200@"
.string ""
.string "\200A"
.string ""
.string "\200B"
.string ""
.string "\200C"
.string ""
.string "\200D"
.string ""
.string "\200E"
.string ""
.string "\200F"
.string ""
.string "\200G"
.string ""
.string "\200H"
.string ""
.string "\200I"
.string ""
.string "\200J"
.string ""
.string "\200K"
.string ""
.string "\200L"
.string ""
.string "\200M"
.string ""
.string "\200N"
.string ""
.string "\200O"
.string ""
.string "\200P"
.string ""
.string "\200Q"
.string ""
.string "\200R"
.string ""
.string "\200S"
.string ""
.string "\200T"
.string ""
.string "\200U"
.string ""
.string "\200V"
.string ""
.string "\200W"
.string ""
.string "\200X"
.string ""
.string "\200Y"
.string ""
.string "\200Z"
.string ""
.string "\200["
.string ""
.string "\200\\"
.string ""
.string "\200]"
.string ""
.string "\200^"
.string ""
.string "\200_"
.string ""
.string "\200`"
.string ""
.string "\200a"
.string ""
.string "\200b"
.string ""
.string "\200c"
.string ""
.string "\200d"
.string ""
.string "\200e"
.string ""
.string "\200f"
.string ""
.string "\200g"
.string ""
.string "\200h"
.string ""
.string "\200i"
.string ""
.string "\200j"
.string ""
.string "\200k"
.string ""
.string "\200l"
.string ""
.string "\200m"
.string ""
.string "\200n"
.string ""
.string "\200o"
.string ""
.string "\200p"
.string ""
.string "\200q"
.string ""
.string "\200r"
.string ""
.string "\200s"
.string ""
.string "\200t"
.string ""
.string "\200u"
.string ""
.string "\200v"
.string ""
.string "\200w"
.string ""
.string "\200x"
.string ""
.string "\200y"
.string ""
.string "\200z"
.string ""
.string "\200{"
.string ""
.string "\200|"
.string ""
.string "\200}"
.string ""
.string "\200~"
.string ""
.string "\200\177"
.string ""
.ascii "\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377"
.ascii "\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200"
.ascii "\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377"
.ascii "p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377"
.ascii "\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200"
.ascii "\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377"
.ascii "p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377"
.ascii "\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200"
.ascii "\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377"
.ascii "p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377"
.ascii "\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200"
.ascii "\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377"
.ascii "p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377"
.ascii "\377p\200\377\377p\200\377\377p\200\377\377p\200\377"
.string "\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\377\377p\200\200"
.string "@"
.string "@"
.string "@"
.string "@"
.string "@"
.string "@"
.string "@"
.string "@"
.string "@"
.string "@"
.string "@"
.string "@"
.string "@"
.string "@"
.string "@"
.string "@"
.string "@"
.string "@"
.string "@"
.string "@"
.string "@"
.string "@"
.string "@"
.string "@"
.string "@"
.string "@"
.string "@"
.string "@"
.string "@"
.string "@"
.string "@"
.string "@"
.string "@"
.string "@"
.string "@"
.string "@"
.string "@"
.string "@"
.string "@"
.string "@"
.string "@"
.string "@"
.string "@"
.string "@"
.string "@"
.string "@"
.string "@"
.string "@"
.string "@"
.string "@"
.string "@"
.string "@"
.string "@"
.string "@"
.string "@"
.string "@"
.string "@"
.string "@"
.string "@"
.string "@"
.string "@"
.string "@"
.string "\220"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "@"
.string "P"
.string "`"
.string "p"
.string "\200"
.string "\220"
.string "\240"
.string "\260"
.string "\300"
.string "\320"
.string "\340"
.string "\360"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\377"
.string "\017\001\037\001/\001?\001O\001"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\017\001\017\002\017\003\017\004\017\005\017\006\017\007\017\b\017\t\017\n\017\013\017\f\017\r\017\016\017\017\017\020\017\021\017\022\017\023\017\024\017\025\017\026\017\027\017\030\017\031\017\032\017\033\017\034\017\035\017\036\017\037\017 \017!\017\"\017"
.string ""
.ascii "$\017%\017&\017'\017(\017)\017*\017+\017,\017-\017.\017/\017"
.ascii "0\0171\0172\0173\0174\0175\0176\0177\0178\0179\017:\017;\017"
.ascii "<\017=\017>\017?\017@\017A\017B\017C\017D\017E\017F\017G\017"
.ascii "H\017I\017J\017K\017L\017M\017N\017O\017P\017Q\017R\017S\017"
.ascii "T\017U\017"
.string "V\017W\017X\017Y\017Z\017[\017\\\017]\017^\017_\017`\017a\017b\017c\017d\017e\017f\017g\017h\017i\017j\017k\017l\017m\017n\017o\017p\017q\017r\017s\017t\017u\017v\017w\017x\017y\017z\017{\017|\017}\017~\017\177\017"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "#\017"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "!\b\"\b"
.string ""
.string "$\b%\b&\b'\b(\b)\b*\b+\b,\b-\b.\b/\b0\b1\b2\b3\b4\b5\b6\b7\b8\b9\b:\b;\b<\b=\b>\b?\b@\bA\bB\bC\bD\bE\bF\bG\bH\bI\bJ\bK\bL\bM\bN\bO\bP\bQ\bR\bS\bT\bU\bV\bW\bX\bY\bZ\b[\b\\\b]\b^\b_\b`\ba\bb\bc\bd\be\bf\bg\bh\bi\bj\bk\bl\bm\bn\bo\bp\bq\br\bs\bt\bu\bv\bw\bx\by\bz\b{\b|\b}\b~\b"
.string ""
.string ""
.string ""
.ascii "\252\252\252\252\252\252\252\252\252\252\252\252"
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "687475.c"
.text
.global icudt57l_ibm_1101_P100_2003_cnv
.section .rodata
.align 3
.type icudt57l_ibm_1101_P100_2003_cnv, %object
.size icudt57l_ibm_1101_P100_2003_cnv, 2424
icudt57l_ibm_1101_P100_2003_cnv:
.word 0
.word 0
.ascii "\200\000\332'\024\000\000\000\000\000\002\000cnvt\006"
.ascii "\002\000\0009\001\000\000 Copyright (C) 2016, Inter"
.ascii "national Business Machines Corporation and others. "
.ascii "All Rights Reserved. \000\000\000\000\000\000d\000\000"
.ascii "\000ibm-1101_P100-2003\000\000\000\000\000\000\000\000"
.ascii "\000\000\000\000\000\000\000\000\000\000\000\000\000"
.ascii "\000\000\000\000\000\000\000\000\000\000\000\000\000"
.ascii "\000\000\000\000\000\000\000\000M\004\000\000\000\002"
.ascii "\001\001\032\000\000\000\001\000\001\000\000\000\000"
.ascii "\000\000\000\000\000\000\000\000\000\000\000\000\000"
.ascii "\000\000\000\000\004\004\037\000\001\000\000\000\000"
.ascii "\000\000\000 \004\000\000 \004\000\000\300\005\000\000"
.ascii "\000\000\000\000\300\002\000\000\000\000\000\200\001"
.ascii "\000\000\200\002\000\000\200\003\000\000\200\004\000"
.ascii "\000\200\005\000\000\200\006\000\000\200\007\000\000"
.ascii "\200\010\000\000\200\011\000\000\200\012\000\000\200"
.ascii "\013\000\000\200\014\000\000\200\015\000\000\200\016"
.ascii "\000\000\200\017\000\000\200\020\000\000\200\021\000"
.ascii "\000\200\022\000\000\200\023\000\000\200\024\000\000"
.ascii "\200\025\000\000\200\026\000\000\200\027\000\000\200"
.ascii "\030\000\000\200\031\000\000\200\032\000\000\200\033"
.ascii "\000\000\200\034\000\000\200\035\000\000\200\036\000"
.ascii "\000\200\037\000\000\200 \000\000\200!\000\000\200\""
.ascii "\000\000\200\243\000\000\200$\000\000\200%\000\000\200"
.ascii "&\000\000\200'\000\000\200(\000\000\200)\000\000\200"
.ascii "*\000\000\200+\000\000\200,\000\000\200-\000\000\200"
.ascii ".\000\000\200/\000\000\2000\000\000\2001\000\000\200"
.ascii "2\000\000\2003\000\000\2004\000\000\2005\000\000\200"
.ascii "6\000\000\2007\000\000\2008\000\000\2009\000\000\200"
.ascii ":\000\000\200;\000\000\200<\000\000\200=\000\000\200"
.ascii ">\000\000\200?\000\000\200@\000\000\200A\000\000\200"
.ascii "B\000\000\200C\000\000\200D\000\000\200E\000\000\200"
.ascii "F\000\000\200G\000\000\200H\000\000\200I\000\000\200"
.ascii "J\000\000\200K\000\000\200L\000\000\200M\000\000\200"
.ascii "N\000\000\200O\000\000\200P\000\000\200Q\000\000\200"
.ascii "R\000\000\200S\000\000\200T\000\000\200U\000\000\200"
.ascii "V\000\000\200W\000\000\200X\000\000\200Y\000\000\200"
.ascii "Z\000\000\200[\000\000\200\\\000\000\200]\000\000\200"
.ascii "^\000\000\200_\000\000\200`\000\000\200a\000\000\200"
.ascii "b\000\000\200c\000\000\200d\000\000\200e\000\000\200"
.ascii "f\000\000\200g\000\000\200h\000\000\200i\000\000\200"
.ascii "j\000\000\200k\000\000\200l\000\000\200m\000\000\200"
.ascii "n\000\000\200o\000\000\200p\000\000\200q\000\000\200"
.ascii "r\000\000\200s\000\000\200t\000\000\200u\000\000\200"
.ascii "v\000\000\200w\000\000\200x\000\000\200y\000\000\200"
.ascii "z\000\000\200{\000\000\200|\000\000\200}\000\000\200"
.ascii "~\000\000\200\177\000\000\200\377\377p\200\377\377p"
.ascii "\200\377\377p\200\377\377p\200\377\377p\200\377\377"
.ascii "p\200\377\377p\200\377\377p\200\377\377p\200\377\377"
.ascii "p\200\377\377p\200\377\377p\200\377\377p\200\377\377"
.ascii "p\200\377\377p\200\377\377p\200\377\377p\200\377\377"
.ascii "p\200\377\377p\200\377\377p\200\377\377p\200\377\377"
.ascii "p\200\377\377p\200\377\377p\200\377\377p\200\377\377"
.ascii "p\200\377\377p\200\377\377p\200\377\377p\200\377\377"
.ascii "p\200\377\377p\200\377\377p\200\377\377p\200\377\377"
.ascii "p\200\377\377p\200\377\377p\200\377\377p\200\377\377"
.ascii "p\200\377\377p\200\377\377p\200\377\377p\200\377\377"
.ascii "p\200\377\377p\200\377\377p\200\377\377p\200\377\377"
.ascii "p\200\377\377p\200\377\377p\200\377\377p\200\377\377"
.ascii "p\200\377\377p\200\377\377p\200\377\377p\200\377\377"
.ascii "p\200\377\377p\200\377\377p\200\377\377p\200\377\377"
.ascii "p\200\377\377p\200\377\377p\200\377\377p\200\377\377"
.ascii "p\200\377\377p\200\377\377p\200\377\377p\200\377\377"
.ascii "p\200\377\377p\200\377\377p\200\377\377p\200\377\377"
.ascii "p\200\377\377p\200\377\377p\200\377\377p\200\377\377"
.ascii "p\200\377\377p\200\377\377p\200\377\377p\200\377\377"
.ascii "p\200\377\377p\200\377\377p\200\377\377p\200\377\377"
.ascii "p\200\377\377p\200\377\377p\200\377\377p\200\377\377"
.ascii "p\200\377\377p\200\377\377p\200\377\377p\200\377\377"
.ascii "p\200\377\377p\200\377\377p\200\377\377p\200\377\377"
.ascii "p\200\377\377p\200\377\377p\200\377\377p\200\377\377"
.ascii "p\200\377\377p\200\377\377p\200\377\377p\200\377\377"
.ascii "p\200\377\377p\200\377\377p\200\377\377p\200\377\377"
.ascii "p\200\377\377p\200\377\377p\200\377\377p\200\377\377"
.ascii "p\200\377\377p\200\377\377p\200\377\377p\200\377\377"
.ascii "p\200\377\377p\200\377\377p\200\377\377p\200\377\377"
.ascii "p\200\377\377p\200\377\377p\200\377\377p\200\377\377"
.ascii "p\200\377\377p\200\377\377p\200\377\377p\200\377\377"
.ascii "p\200\377\377p\200\377\377p\200\200\000@\000@\000@\000"
.ascii "@\000@\000@\000@\000@\000@\000@\000@\000@\000@\000@"
.ascii "\000@\000@\000@\000@\000@\000@\000@\000@\000@\000@\000"
.ascii "@\000@\000@\000@\000@\000@\000@\000@\000@\000@\000@"
.ascii "\000@\000@\000@\000@\000@\000@\000@\000@\000@\000@\000"
.ascii "@\000@\000@\000@\000@\000@\000@\000@\000@\000@\000@"
.ascii "\000@\000@\000@\000@\000@\000@\000\220\000\000\000\000"
.ascii "\000\000\000\000\000\000\000\000\000\000\000\000\000"
.ascii "\000\000\000\000\000\000\000\000\000\000\000\000\000"
.ascii "\000\000\000\000\000\000\000\000\000\000\000\000\000"
.ascii "\000\000\000\000\000\000\000\000\000\000\000\000\000"
.ascii "\000\000\000\000\000\000\000\000\000\000\000\000\000"
.ascii "\000\000\000\000\000\000\000\000\000\000\000\000\000"
.ascii "\000\000\000\000\000\000\000\000\000\000\000\000\000"
.ascii "\000\000\000\000\000\000\000\000\000\000\000\000\000"
.ascii "\000\000\000\000\000\000\000\000\000\000\000\000\000"
.ascii "\000\000\000\000\000\000\000\000@\000P\000`\000p\000"
.ascii "\200\000\220\000\240\000\260\000\300\000\320\000\340"
.ascii "\000\360\000\000\000\000\000\000\000\000\000\000\000"
.ascii "\000\000\000\000\000\000\000\000\000\000\000\000\000"
.ascii "\000\000\000\000\000\000\000\000\000\000\000\000\000"
.ascii "\000\000\000\000\000\000\000\000\000\000\000\000\000"
.ascii "\000\000\000\000\000\000\000\000\000\000\000\000\000"
.ascii "\000\000\000\000\000\000\000\000\000\000\000\000\000"
.ascii "\000\000\000\000\000\000\000\000\000\000\000\000\000"
.ascii "\000\000\000\000\000\000\000\000\000\000\000\000\000"
.ascii "\000\000\000\377\000\017\001\037\001/\001?\001O\001"
.ascii "\000\000\000\000\000\000\000\000\000\000\000\000\000"
.ascii "\000\000\000\000\000\000\000\000\000\000\000\000\000"
.ascii "\000\000\000\000\000\000\000\000\000\000\000\000\000"
.ascii "\000\000\000\000\000\000\000\000\000\000\000\000\000"
.ascii "\000\000\000\000\000\000\000\000\000\000\000\000\000"
.ascii "\000\000\000\000\000\000\000\000\000\000\000\000\000"
.ascii "\000\000\000\000\000\000\000\000\000\000\000\000\000"
.ascii "\000\000\000\000\000\000\000\000\000\000\000\000\000"
.ascii "\000\000\000\000\000\000\000\000\000\000\000\000\000"
.ascii "\000\000\000\000\000\000\000\000\000\000\000\000\000"
.ascii "\000\000\000\000\000\000\000\000\000\000\000\000\000"
.ascii "\000\000\000\000\000\000\017\001\017\002\017\003\017"
.ascii "\004\017\005\017\006\017\007\017\010\017\011\017\012"
.ascii "\017\013\017\014\017\015\017\016\017\017\017\020\017"
.ascii "\021\017\022\017\023\017\024\017\025\017\026\017\027"
.ascii "\017\030\017\031\017\032\017\033\017\034\017\035\017"
.ascii "\036\017\037\017 \017!\017\"\017\000\000$\017%\017&"
.ascii "\017'\017(\017)\017*\017+\017,\017-\017.\017/\0170\017"
.ascii "1\0172\0173\0174\0175\0176\0177\0178\0179\017:\017;"
.ascii "\017<\017=\017>\017?\017@\017A\017B\017C\017D\017E\017"
.ascii "F\017G\017H\017I\017J\017K\017L\017M\017N\017O\017P"
.ascii "\017Q\017R\017S\017T\017U\017"
.ascii "V\017W\017X\017Y\017Z\017[\017\\\017]\017^\017_\017"
.ascii "`\017a\017b\017c\017d\017e\017f\017g\017h\017i\017j"
.ascii "\017k\017l\017m\017n\017o\017p\017q\017r\017s\017t\017"
.ascii "u\017v\017w\017x\017y\017z\017{\017|\017}\017~\017\177"
.ascii "\017\000\000\000\000\000\000\000\000\000\000\000\000"
.ascii "\000\000\000\000\000\000\000\000\000\000\000\000\000"
.ascii "\000\000\000\000\000\000\000\000\000\000\000\000\000"
.ascii "\000\000\000\000\000\000\000\000\000\000\000\000\000"
.ascii "\000\000\000\000\000\000\000\000\000\000\000\000\000"
.ascii "\000\000\000\000\000\000#\017\000\000\000\000\000\000"
.ascii "\000\000\000\000\000\000\000\000\000\000\000\000\000"
.ascii "\000\000\000\000\000\000\000\000\000\000\000\000\000"
.ascii "\000\000\000\000\000\000\000\000\000\000\000\000\000"
.ascii "\000\000\000\000\000\000\000\000\000\000\000!\010\""
.ascii "\010\000\000$\010%\010&\010'\010(\010)\010*\010+\010"
.ascii ",\010-\010.\010/\0100\0101\0102\0103\0104\0105\0106"
.ascii "\0107\0108\0109\010:\010;\010<\010=\010>\010?\010@\010"
.ascii "A\010B\010C\010D\010E\010F\010G\010H\010I\010J\010K"
.ascii "\010L\010M\010N\010O\010P\010Q\010R\010S\010T\010U\010"
.ascii "V\010W\010X\010Y\010Z\010[\010\\\010]\010^\010_\010"
.ascii "`\010a\010b\010c\010d\010e\010f\010g\010h\010i\010j"
.ascii "\010k\010l\010m\010n\010o\010p\010q\010r\010s\010t\010"
.ascii "u\010v\010w\010x\010y\010z\010{\010|\010}\010~\010\000"
.ascii "\000\000\000\252\252\252\252\252\252\252\252\252\252"
.ascii "\252\252"
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "91172.c"
.intel_syntax noprefix
.text
.section .rodata
.LC0:
.string "%d"
.LC1:
.string "STDIN is bad."
.LC2:
.string "input invalid integer."
.LC3:
.string "%d "
.LC4:
.string "\"%d\" "
.LC5:
.string "\"%d-->%d\" "
.LC6:
.string "\"%d\""
.LC7:
.string "\"%d-->%d\""
.LC8:
.string "]"
.text
.globl main
.type main, @function
main:
.LFB6:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 80
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
mov DWORD PTR -68[rbp], 100
mov DWORD PTR -64[rbp], 0
mov eax, DWORD PTR -68[rbp]
cdqe
sal rax, 2
mov rdi, rax
call malloc@PLT
mov QWORD PTR -32[rbp], rax
mov eax, DWORD PTR -68[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -32[rbp]
mov esi, 0
mov rdi, rax
call memset@PLT
.L7:
lea rax, -72[rbp]
mov rsi, rax
lea rdi, .LC0[rip]
mov eax, 0
call __isoc99_scanf@PLT
mov DWORD PTR -48[rbp], eax
cmp DWORD PTR -48[rbp], -1
jne .L2
lea rdi, .LC1[rip]
call puts@PLT
jmp .L3
.L2:
cmp DWORD PTR -48[rbp], 0
jne .L4
lea rdi, .LC2[rip]
call puts@PLT
jmp .L3
.L4:
mov eax, DWORD PTR -64[rbp]
cmp eax, DWORD PTR -68[rbp]
jge .L5
mov eax, DWORD PTR -64[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -32[rbp]
add rdx, rax
mov eax, DWORD PTR -72[rbp]
mov DWORD PTR [rdx], eax
add DWORD PTR -64[rbp], 1
jmp .L7
.L5:
sal DWORD PTR -68[rbp]
mov eax, DWORD PTR -68[rbp]
cdqe
sal rax, 2
mov rdi, rax
call malloc@PLT
mov QWORD PTR -24[rbp], rax
mov eax, DWORD PTR -68[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -24[rbp]
mov esi, 0
mov rdi, rax
call memset@PLT
mov eax, DWORD PTR -68[rbp]
cdqe
sal rax, 2
shr rax
mov rdx, rax
mov rcx, QWORD PTR -32[rbp]
mov rax, QWORD PTR -24[rbp]
mov rsi, rcx
mov rdi, rax
call memcpy@PLT
mov rax, QWORD PTR -32[rbp]
mov rdi, rax
call free@PLT
mov rax, QWORD PTR -24[rbp]
mov QWORD PTR -32[rbp], rax
mov eax, DWORD PTR -64[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -32[rbp]
add rdx, rax
mov eax, DWORD PTR -72[rbp]
mov DWORD PTR [rdx], eax
add DWORD PTR -64[rbp], 1
jmp .L7
.L3:
mov rax, QWORD PTR -32[rbp]
mov eax, DWORD PTR [rax]
mov DWORD PTR -44[rbp], eax
mov eax, DWORD PTR -64[rbp]
cdqe
sal rax, 2
lea rdx, -4[rax]
mov rax, QWORD PTR -32[rbp]
add rax, rdx
mov eax, DWORD PTR [rax]
mov DWORD PTR -40[rbp], eax
mov DWORD PTR -60[rbp], 0
mov DWORD PTR -56[rbp], 0
cmp DWORD PTR -44[rbp], 0
jns .L8
mov eax, DWORD PTR -44[rbp]
neg eax
mov DWORD PTR -60[rbp], eax
jmp .L9
.L8:
mov DWORD PTR -60[rbp], 0
.L9:
cmp DWORD PTR -40[rbp], 0
jns .L10
mov DWORD PTR -56[rbp], 0
jmp .L11
.L10:
mov eax, DWORD PTR -40[rbp]
mov DWORD PTR -56[rbp], eax
.L11:
mov edx, DWORD PTR -60[rbp]
mov eax, DWORD PTR -56[rbp]
add eax, edx
add eax, 1
mov DWORD PTR -36[rbp], eax
mov eax, DWORD PTR -36[rbp]
cdqe
sal rax, 2
mov rdi, rax
call malloc@PLT
mov QWORD PTR -16[rbp], rax
mov eax, DWORD PTR -36[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -16[rbp]
mov esi, 0
mov rdi, rax
call memset@PLT
mov DWORD PTR -52[rbp], 0
mov DWORD PTR -52[rbp], 0
jmp .L12
.L15:
mov eax, DWORD PTR -52[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -32[rbp]
add rax, rdx
mov eax, DWORD PTR [rax]
mov esi, eax
lea rdi, .LC3[rip]
mov eax, 0
call printf@PLT
cmp DWORD PTR -44[rbp], 0
jns .L13
mov eax, DWORD PTR -52[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -32[rbp]
add rax, rdx
mov eax, DWORD PTR [rax]
sub eax, DWORD PTR -44[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -16[rbp]
add rax, rdx
mov DWORD PTR [rax], 1
jmp .L14
.L13:
mov eax, DWORD PTR -52[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -32[rbp]
add rax, rdx
mov eax, DWORD PTR [rax]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -16[rbp]
add rax, rdx
mov DWORD PTR [rax], 1
.L14:
add DWORD PTR -52[rbp], 1
.L12:
mov eax, DWORD PTR -52[rbp]
cmp eax, DWORD PTR -64[rbp]
jl .L15
mov edi, 10
call putchar@PLT
mov DWORD PTR -52[rbp], 0
jmp .L16
.L17:
mov eax, DWORD PTR -52[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -16[rbp]
add rax, rdx
mov eax, DWORD PTR [rax]
mov esi, eax
lea rdi, .LC3[rip]
mov eax, 0
call printf@PLT
add DWORD PTR -52[rbp], 1
.L16:
mov eax, DWORD PTR -52[rbp]
cmp eax, DWORD PTR -36[rbp]
jl .L17
mov edi, 10
call putchar@PLT
mov DWORD PTR -56[rbp], -1
mov eax, DWORD PTR -56[rbp]
mov DWORD PTR -60[rbp], eax
mov edi, 91
call putchar@PLT
mov DWORD PTR -52[rbp], 0
jmp .L18
.L29:
mov eax, DWORD PTR -52[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -16[rbp]
add rax, rdx
mov eax, DWORD PTR [rax]
cmp eax, 1
jne .L19
cmp DWORD PTR -60[rbp], -1
jne .L19
mov eax, DWORD PTR -52[rbp]
mov DWORD PTR -60[rbp], eax
.L19:
mov eax, DWORD PTR -52[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -16[rbp]
add rax, rdx
mov eax, DWORD PTR [rax]
test eax, eax
jne .L20
cmp DWORD PTR -60[rbp], -1
je .L20
mov eax, DWORD PTR -52[rbp]
sub eax, 1
mov DWORD PTR -56[rbp], eax
mov eax, DWORD PTR -60[rbp]
cmp eax, DWORD PTR -56[rbp]
jne .L21
cmp DWORD PTR -44[rbp], 0
jns .L22
mov edx, DWORD PTR -60[rbp]
mov eax, DWORD PTR -44[rbp]
add eax, edx
mov esi, eax
lea rdi, .LC4[rip]
mov eax, 0
call printf@PLT
jmp .L23
.L22:
mov eax, DWORD PTR -60[rbp]
mov esi, eax
lea rdi, .LC4[rip]
mov eax, 0
call printf@PLT
jmp .L23
.L21:
cmp DWORD PTR -44[rbp], 0
jns .L24
mov edx, DWORD PTR -56[rbp]
mov eax, DWORD PTR -44[rbp]
add edx, eax
mov ecx, DWORD PTR -60[rbp]
mov eax, DWORD PTR -44[rbp]
add eax, ecx
mov esi, eax
lea rdi, .LC5[rip]
mov eax, 0
call printf@PLT
jmp .L23
.L24:
mov edx, DWORD PTR -56[rbp]
mov eax, DWORD PTR -60[rbp]
mov esi, eax
lea rdi, .LC5[rip]
mov eax, 0
call printf@PLT
.L23:
mov DWORD PTR -56[rbp], -1
mov eax, DWORD PTR -56[rbp]
mov DWORD PTR -60[rbp], eax
.L20:
mov eax, DWORD PTR -36[rbp]
sub eax, 1
cmp DWORD PTR -52[rbp], eax
jne .L25
mov eax, DWORD PTR -52[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -16[rbp]
add rax, rdx
mov eax, DWORD PTR [rax]
cmp eax, 1
jne .L25
mov eax, DWORD PTR -52[rbp]
mov DWORD PTR -56[rbp], eax
mov eax, DWORD PTR -60[rbp]
cmp eax, DWORD PTR -56[rbp]
jne .L26
cmp DWORD PTR -44[rbp], 0
jns .L27
mov edx, DWORD PTR -60[rbp]
mov eax, DWORD PTR -44[rbp]
add eax, edx
mov esi, eax
lea rdi, .LC6[rip]
mov eax, 0
call printf@PLT
jmp .L25
.L27:
mov eax, DWORD PTR -60[rbp]
mov esi, eax
lea rdi, .LC6[rip]
mov eax, 0
call printf@PLT
jmp .L25
.L26:
cmp DWORD PTR -44[rbp], 0
jns .L28
mov edx, DWORD PTR -56[rbp]
mov eax, DWORD PTR -44[rbp]
add edx, eax
mov ecx, DWORD PTR -60[rbp]
mov eax, DWORD PTR -44[rbp]
add eax, ecx
mov esi, eax
lea rdi, .LC7[rip]
mov eax, 0
call printf@PLT
jmp .L25
.L28:
mov edx, DWORD PTR -56[rbp]
mov eax, DWORD PTR -60[rbp]
mov esi, eax
lea rdi, .LC7[rip]
mov eax, 0
call printf@PLT
.L25:
add DWORD PTR -52[rbp], 1
.L18:
mov eax, DWORD PTR -52[rbp]
cmp eax, DWORD PTR -36[rbp]
jl .L29
lea rdi, .LC8[rip]
call puts@PLT
mov rax, QWORD PTR -16[rbp]
mov rdi, rax
call free@PLT
mov eax, 0
mov rcx, QWORD PTR -8[rbp]
sub rcx, QWORD PTR fs:40
je .L31
call __stack_chk_fail@PLT
.L31:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size main, .-main
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "91172.c"
.text
.section .rodata
.align 2
.LC0:
.ascii "%d\000"
.align 2
.LC1:
.ascii "STDIN is bad.\000"
.align 2
.LC2:
.ascii "input invalid integer.\000"
.align 2
.LC3:
.ascii "%d \000"
.align 2
.LC4:
.ascii "\"%d\" \000"
.align 2
.LC5:
.ascii "\"%d-->%d\" \000"
.align 2
.LC6:
.ascii "\"%d\"\000"
.align 2
.LC7:
.ascii "\"%d-->%d\"\000"
.align 2
.LC8:
.ascii "]\000"
.align 2
.LC9:
.word __stack_chk_guard
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 56
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #56
ldr r3, .L32
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
mov r3, #100
str r3, [fp, #-56]
mov r3, #0
str r3, [fp, #-52]
ldr r3, [fp, #-56]
lsl r3, r3, #2
mov r0, r3
bl malloc
mov r3, r0
str r3, [fp, #-48]
ldr r3, [fp, #-56]
lsl r3, r3, #2
mov r2, r3
mov r1, #0
ldr r0, [fp, #-48]
bl memset
.L7:
sub r3, fp, #60
mov r1, r3
ldr r0, .L32+4
bl __isoc99_scanf
str r0, [fp, #-32]
ldr r3, [fp, #-32]
cmn r3, #1
bne .L2
ldr r0, .L32+8
bl puts
b .L3
.L2:
ldr r3, [fp, #-32]
cmp r3, #0
bne .L4
ldr r0, .L32+12
bl puts
b .L3
.L4:
ldr r2, [fp, #-52]
ldr r3, [fp, #-56]
cmp r2, r3
bge .L5
ldr r3, [fp, #-52]
lsl r3, r3, #2
ldr r2, [fp, #-48]
add r3, r2, r3
ldr r2, [fp, #-60]
str r2, [r3]
ldr r3, [fp, #-52]
add r3, r3, #1
str r3, [fp, #-52]
b .L7
.L5:
ldr r3, [fp, #-56]
lsl r3, r3, #1
str r3, [fp, #-56]
ldr r3, [fp, #-56]
lsl r3, r3, #2
mov r0, r3
bl malloc
mov r3, r0
str r3, [fp, #-28]
ldr r3, [fp, #-56]
lsl r3, r3, #2
mov r2, r3
mov r1, #0
ldr r0, [fp, #-28]
bl memset
ldr r3, [fp, #-56]
lsl r3, r3, #2
lsr r3, r3, #1
mov r2, r3
ldr r1, [fp, #-48]
ldr r0, [fp, #-28]
bl memcpy
ldr r0, [fp, #-48]
bl free
ldr r3, [fp, #-28]
str r3, [fp, #-48]
ldr r3, [fp, #-52]
lsl r3, r3, #2
ldr r2, [fp, #-48]
add r3, r2, r3
ldr r2, [fp, #-60]
str r2, [r3]
ldr r3, [fp, #-52]
add r3, r3, #1
str r3, [fp, #-52]
b .L7
.L3:
ldr r3, [fp, #-48]
ldr r3, [r3]
str r3, [fp, #-24]
ldr r3, [fp, #-52]
sub r3, r3, #-1073741823
lsl r3, r3, #2
ldr r2, [fp, #-48]
add r3, r2, r3
ldr r3, [r3]
str r3, [fp, #-20]
mov r3, #0
str r3, [fp, #-44]
mov r3, #0
str r3, [fp, #-40]
ldr r3, [fp, #-24]
cmp r3, #0
bge .L8
ldr r3, [fp, #-24]
rsb r3, r3, #0
str r3, [fp, #-44]
b .L9
.L8:
mov r3, #0
str r3, [fp, #-44]
.L9:
ldr r3, [fp, #-20]
cmp r3, #0
bge .L10
mov r3, #0
str r3, [fp, #-40]
b .L11
.L10:
ldr r3, [fp, #-20]
str r3, [fp, #-40]
.L11:
ldr r2, [fp, #-44]
ldr r3, [fp, #-40]
add r3, r2, r3
add r3, r3, #1
str r3, [fp, #-16]
ldr r3, [fp, #-16]
lsl r3, r3, #2
mov r0, r3
bl malloc
mov r3, r0
str r3, [fp, #-12]
ldr r3, [fp, #-16]
lsl r3, r3, #2
mov r2, r3
mov r1, #0
ldr r0, [fp, #-12]
bl memset
mov r3, #0
str r3, [fp, #-36]
mov r3, #0
str r3, [fp, #-36]
b .L12
.L15:
ldr r3, [fp, #-36]
lsl r3, r3, #2
ldr r2, [fp, #-48]
add r3, r2, r3
ldr r3, [r3]
mov r1, r3
ldr r0, .L32+16
bl printf
ldr r3, [fp, #-24]
cmp r3, #0
bge .L13
ldr r3, [fp, #-36]
lsl r3, r3, #2
ldr r2, [fp, #-48]
add r3, r2, r3
ldr r2, [r3]
ldr r3, [fp, #-24]
sub r3, r2, r3
lsl r3, r3, #2
ldr r2, [fp, #-12]
add r3, r2, r3
mov r2, #1
str r2, [r3]
b .L14
.L13:
ldr r3, [fp, #-36]
lsl r3, r3, #2
ldr r2, [fp, #-48]
add r3, r2, r3
ldr r3, [r3]
lsl r3, r3, #2
ldr r2, [fp, #-12]
add r3, r2, r3
mov r2, #1
str r2, [r3]
.L14:
ldr r3, [fp, #-36]
add r3, r3, #1
str r3, [fp, #-36]
.L12:
ldr r2, [fp, #-36]
ldr r3, [fp, #-52]
cmp r2, r3
blt .L15
mov r0, #10
bl putchar
mov r3, #0
str r3, [fp, #-36]
b .L16
.L17:
ldr r3, [fp, #-36]
lsl r3, r3, #2
ldr r2, [fp, #-12]
add r3, r2, r3
ldr r3, [r3]
mov r1, r3
ldr r0, .L32+16
bl printf
ldr r3, [fp, #-36]
add r3, r3, #1
str r3, [fp, #-36]
.L16:
ldr r2, [fp, #-36]
ldr r3, [fp, #-16]
cmp r2, r3
blt .L17
mov r0, #10
bl putchar
mvn r3, #0
str r3, [fp, #-40]
ldr r3, [fp, #-40]
str r3, [fp, #-44]
mov r0, #91
bl putchar
mov r3, #0
str r3, [fp, #-36]
b .L18
.L29:
ldr r3, [fp, #-36]
lsl r3, r3, #2
ldr r2, [fp, #-12]
add r3, r2, r3
ldr r3, [r3]
cmp r3, #1
bne .L19
ldr r3, [fp, #-44]
cmn r3, #1
bne .L19
ldr r3, [fp, #-36]
str r3, [fp, #-44]
.L19:
ldr r3, [fp, #-36]
lsl r3, r3, #2
ldr r2, [fp, #-12]
add r3, r2, r3
ldr r3, [r3]
cmp r3, #0
bne .L20
ldr r3, [fp, #-44]
cmn r3, #1
beq .L20
ldr r3, [fp, #-36]
sub r3, r3, #1
str r3, [fp, #-40]
ldr r2, [fp, #-44]
ldr r3, [fp, #-40]
cmp r2, r3
bne .L21
ldr r3, [fp, #-24]
cmp r3, #0
bge .L22
ldr r2, [fp, #-44]
ldr r3, [fp, #-24]
add r3, r2, r3
mov r1, r3
ldr r0, .L32+20
bl printf
b .L23
.L22:
ldr r1, [fp, #-44]
ldr r0, .L32+20
bl printf
b .L23
.L21:
ldr r3, [fp, #-24]
cmp r3, #0
bge .L24
ldr r2, [fp, #-44]
ldr r3, [fp, #-24]
add r1, r2, r3
ldr r2, [fp, #-40]
ldr r3, [fp, #-24]
add r3, r2, r3
mov r2, r3
ldr r0, .L32+24
bl printf
b .L23
.L24:
ldr r2, [fp, #-40]
ldr r1, [fp, #-44]
ldr r0, .L32+24
bl printf
.L23:
mvn r3, #0
str r3, [fp, #-40]
ldr r3, [fp, #-40]
str r3, [fp, #-44]
.L20:
ldr r3, [fp, #-16]
sub r3, r3, #1
ldr r2, [fp, #-36]
cmp r2, r3
bne .L25
ldr r3, [fp, #-36]
lsl r3, r3, #2
ldr r2, [fp, #-12]
add r3, r2, r3
ldr r3, [r3]
cmp r3, #1
bne .L25
ldr r3, [fp, #-36]
str r3, [fp, #-40]
ldr r2, [fp, #-44]
ldr r3, [fp, #-40]
cmp r2, r3
bne .L26
ldr r3, [fp, #-24]
cmp r3, #0
bge .L27
ldr r2, [fp, #-44]
ldr r3, [fp, #-24]
add r3, r2, r3
mov r1, r3
ldr r0, .L32+28
bl printf
b .L25
.L27:
ldr r1, [fp, #-44]
ldr r0, .L32+28
bl printf
b .L25
.L26:
ldr r3, [fp, #-24]
cmp r3, #0
bge .L28
ldr r2, [fp, #-44]
ldr r3, [fp, #-24]
add r1, r2, r3
ldr r2, [fp, #-40]
ldr r3, [fp, #-24]
add r3, r2, r3
mov r2, r3
ldr r0, .L32+32
bl printf
b .L25
.L28:
ldr r2, [fp, #-40]
ldr r1, [fp, #-44]
ldr r0, .L32+32
bl printf
.L25:
ldr r3, [fp, #-36]
add r3, r3, #1
str r3, [fp, #-36]
.L18:
ldr r2, [fp, #-36]
ldr r3, [fp, #-16]
cmp r2, r3
blt .L29
ldr r0, .L32+36
bl puts
ldr r0, [fp, #-12]
bl free
mov r3, #0
ldr r2, .L32
ldr r1, [r2]
ldr r2, [fp, #-8]
eors r1, r2, r1
mov r2, #0
beq .L31
bl __stack_chk_fail
.L31:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L33:
.align 2
.L32:
.word .LC9
.word .LC0
.word .LC1
.word .LC2
.word .LC3
.word .LC4
.word .LC5
.word .LC6
.word .LC7
.word .LC8
.size main, .-main
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "506444.c"
.intel_syntax noprefix
.text
.section .rodata
.LC0:
.string "Memory failed to allocate!"
.align 8
.LC1:
.string "Memory failed to contain correct data after many allocations (beginning of segment)!"
.align 8
.LC2:
.string "Memory failed to contain correct data after many allocations (end of segment)!"
.align 8
.LC3:
.string "Memory failed to contain correct data after many allocations (mid segment or reused segment)!"
.align 8
.LC4:
.string "Memory was allocated and freed!"
.text
.globl main
.type main, @function
main:
.LFB6:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 64
mov edi, 1
call malloc@PLT
mov QWORD PTR -48[rbp], 0
mov edi, 3200000
call malloc@PLT
mov QWORD PTR -24[rbp], rax
mov edi, 1600000
call malloc@PLT
mov QWORD PTR -16[rbp], rax
mov DWORD PTR -60[rbp], 0
mov DWORD PTR -56[rbp], 0
mov DWORD PTR -64[rbp], 0
jmp .L2
.L11:
call rand@PLT
movsx rdx, eax
imul rdx, rdx, 1374698305
shr rdx, 32
sar edx, 15
mov ecx, eax
sar ecx, 31
sub edx, ecx
imul ecx, edx, 102377
sub eax, ecx
mov edx, eax
lea eax, 24[rdx]
mov DWORD PTR -52[rbp], eax
cmp QWORD PTR -48[rbp], 0
jne .L3
mov eax, DWORD PTR -52[rbp]
cdqe
mov rdi, rax
call malloc@PLT
mov QWORD PTR -40[rbp], rax
mov DWORD PTR -56[rbp], 0
jmp .L4
.L3:
mov eax, DWORD PTR -52[rbp]
movsx rdx, eax
mov rax, QWORD PTR -48[rbp]
mov rsi, rdx
mov rdi, rax
call realloc@PLT
mov QWORD PTR -40[rbp], rax
mov QWORD PTR -48[rbp], 0
.L4:
cmp QWORD PTR -40[rbp], 0
jne .L5
lea rdi, .LC0[rip]
call puts@PLT
mov eax, 1
jmp .L6
.L5:
call rand@PLT
movsx rdx, eax
imul rdx, rdx, 1374389535
shr rdx, 32
sar edx, 5
mov ecx, eax
sar ecx, 31
sub edx, ecx
imul ecx, edx, 100
sub eax, ecx
mov edx, eax
cmp edx, 94
jg .L7
mov rax, QWORD PTR -40[rbp]
mov rdi, rax
call free@PLT
jmp .L8
.L7:
cmp DWORD PTR -56[rbp], 0
jne .L9
mov eax, DWORD PTR -60[rbp]
cdqe
lea rdx, 0[0+rax*8]
mov rax, QWORD PTR -24[rbp]
add rdx, rax
mov rax, QWORD PTR -40[rbp]
mov QWORD PTR [rax], rdx
mov DWORD PTR -56[rbp], 1
.L9:
call rand@PLT
movsx rdx, eax
imul rdx, rdx, 1374389535
shr rdx, 32
sar edx, 5
mov ecx, eax
sar ecx, 31
sub edx, ecx
imul ecx, edx, 100
sub eax, ecx
mov edx, eax
cmp edx, 49
jg .L10
mov rax, QWORD PTR -40[rbp]
mov QWORD PTR -48[rbp], rax
jmp .L8
.L10:
mov eax, DWORD PTR -60[rbp]
cdqe
lea rcx, 0[0+rax*8]
mov eax, DWORD PTR -52[rbp]
cdqe
lea rdx, -8[rax]
mov rax, QWORD PTR -40[rbp]
add rax, rdx
mov rdx, QWORD PTR -24[rbp]
add rdx, rcx
mov QWORD PTR [rax], rdx
mov eax, DWORD PTR -60[rbp]
cdqe
lea rdx, 0[0+rax*8]
mov rax, QWORD PTR -24[rbp]
add rdx, rax
mov rax, QWORD PTR -40[rbp]
mov QWORD PTR [rdx], rax
mov eax, DWORD PTR -60[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -16[rbp]
add rdx, rax
mov eax, DWORD PTR -52[rbp]
mov DWORD PTR [rdx], eax
add DWORD PTR -60[rbp], 1
.L8:
add DWORD PTR -64[rbp], 1
.L2:
cmp DWORD PTR -64[rbp], 399999
jle .L11
mov eax, DWORD PTR -60[rbp]
sub eax, 1
mov DWORD PTR -64[rbp], eax
jmp .L12
.L18:
mov eax, DWORD PTR -64[rbp]
cdqe
lea rdx, 0[0+rax*8]
mov rax, QWORD PTR -24[rbp]
add rax, rdx
mov rax, QWORD PTR [rax]
mov rax, QWORD PTR [rax]
mov edx, DWORD PTR -64[rbp]
movsx rdx, edx
lea rcx, 0[0+rdx*8]
mov rdx, QWORD PTR -24[rbp]
add rdx, rcx
cmp rax, rdx
je .L13
lea rdi, .LC1[rip]
call puts@PLT
mov eax, 100
jmp .L6
.L13:
mov eax, DWORD PTR -64[rbp]
cdqe
lea rdx, 0[0+rax*8]
mov rax, QWORD PTR -24[rbp]
add rax, rdx
mov rdx, QWORD PTR [rax]
mov eax, DWORD PTR -64[rbp]
cdqe
lea rcx, 0[0+rax*4]
mov rax, QWORD PTR -16[rbp]
add rax, rcx
mov eax, DWORD PTR [rax]
cdqe
sub rax, 8
add rax, rdx
mov rax, QWORD PTR [rax]
mov edx, DWORD PTR -64[rbp]
movsx rdx, edx
lea rcx, 0[0+rdx*8]
mov rdx, QWORD PTR -24[rbp]
add rdx, rcx
cmp rax, rdx
je .L14
lea rdi, .LC2[rip]
call puts@PLT
mov eax, 101
jmp .L6
.L14:
mov eax, DWORD PTR -64[rbp]
cdqe
lea rdx, 0[0+rax*8]
mov rax, QWORD PTR -24[rbp]
add rax, rdx
mov rax, QWORD PTR [rax]
add rax, 8
mov QWORD PTR -32[rbp], rax
mov eax, DWORD PTR -64[rbp]
cdqe
lea rdx, 0[0+rax*8]
mov rax, QWORD PTR -24[rbp]
add rax, rdx
mov rdx, QWORD PTR [rax]
mov eax, DWORD PTR -64[rbp]
cdqe
lea rcx, 0[0+rax*4]
mov rax, QWORD PTR -16[rbp]
add rax, rcx
mov eax, DWORD PTR [rax]
cdqe
sub rax, 9
add rax, rdx
mov QWORD PTR -8[rbp], rax
jmp .L15
.L17:
mov rax, QWORD PTR -32[rbp]
movzx eax, BYTE PTR [rax]
test al, al
je .L16
lea rdi, .LC3[rip]
call puts@PLT
mov eax, 102
jmp .L6
.L16:
mov rax, QWORD PTR -32[rbp]
mov BYTE PTR [rax], 1
add QWORD PTR -32[rbp], 1
.L15:
mov rax, QWORD PTR -32[rbp]
cmp rax, QWORD PTR -8[rbp]
ja .L17
mov eax, DWORD PTR -64[rbp]
cdqe
lea rdx, 0[0+rax*8]
mov rax, QWORD PTR -24[rbp]
add rax, rdx
mov rax, QWORD PTR [rax]
mov rdi, rax
call free@PLT
sub DWORD PTR -64[rbp], 1
.L12:
cmp DWORD PTR -64[rbp], 0
jns .L18
lea rdi, .LC4[rip]
call puts@PLT
mov eax, 0
.L6:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size main, .-main
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "506444.c"
.text
.section .rodata
.align 2
.LC0:
.ascii "Memory failed to allocate!\000"
.align 2
.LC1:
.ascii "Memory failed to contain correct data after many al"
.ascii "locations (beginning of segment)!\000"
.align 2
.LC2:
.ascii "Memory failed to contain correct data after many al"
.ascii "locations (end of segment)!\000"
.align 2
.LC3:
.ascii "Memory failed to contain correct data after many al"
.ascii "locations (mid segment or reused segment)!\000"
.align 2
.LC4:
.ascii "Memory was allocated and freed!\000"
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 40
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #40
mov r0, #1
bl malloc
mov r3, #0
str r3, [fp, #-40]
ldr r0, .L19
bl malloc
mov r3, r0
str r3, [fp, #-20]
ldr r0, .L19
bl malloc
mov r3, r0
str r3, [fp, #-16]
mov r3, #0
str r3, [fp, #-36]
mov r3, #0
str r3, [fp, #-32]
mov r3, #0
str r3, [fp, #-44]
b .L2
.L11:
bl rand
mov r2, r0
ldr r3, .L19+4
smull r1, r3, r2, r3
asr r1, r3, #15
asr r3, r2, #31
sub r3, r1, r3
ldr r1, .L19+8
mul r3, r1, r3
sub r3, r2, r3
add r3, r3, #24
str r3, [fp, #-8]
ldr r3, [fp, #-40]
cmp r3, #0
bne .L3
ldr r3, [fp, #-8]
mov r0, r3
bl malloc
mov r3, r0
str r3, [fp, #-28]
mov r3, #0
str r3, [fp, #-32]
b .L4
.L3:
ldr r3, [fp, #-8]
mov r1, r3
ldr r0, [fp, #-40]
bl realloc
str r0, [fp, #-28]
mov r3, #0
str r3, [fp, #-40]
.L4:
ldr r3, [fp, #-28]
cmp r3, #0
bne .L5
ldr r0, .L19+12
bl puts
mov r3, #1
b .L6
.L5:
bl rand
mov r1, r0
ldr r3, .L19+16
smull r2, r3, r1, r3
asr r2, r3, #5
asr r3, r1, #31
sub r2, r2, r3
mov r3, r2
lsl r3, r3, #2
add r3, r3, r2
lsl r2, r3, #2
add r3, r3, r2
lsl r3, r3, #2
sub r2, r1, r3
cmp r2, #94
bgt .L7
ldr r0, [fp, #-28]
bl free
b .L8
.L7:
ldr r3, [fp, #-32]
cmp r3, #0
bne .L9
ldr r3, [fp, #-36]
lsl r3, r3, #2
ldr r2, [fp, #-20]
add r2, r2, r3
ldr r3, [fp, #-28]
str r2, [r3]
mov r3, #1
str r3, [fp, #-32]
.L9:
bl rand
mov r1, r0
ldr r3, .L19+16
smull r2, r3, r1, r3
asr r2, r3, #5
asr r3, r1, #31
sub r2, r2, r3
mov r3, r2
lsl r3, r3, #2
add r3, r3, r2
lsl r2, r3, #2
add r3, r3, r2
lsl r3, r3, #2
sub r2, r1, r3
cmp r2, #49
bgt .L10
ldr r3, [fp, #-28]
str r3, [fp, #-40]
b .L8
.L10:
ldr r3, [fp, #-36]
lsl r2, r3, #2
ldr r3, [fp, #-8]
sub r3, r3, #4
ldr r1, [fp, #-28]
add r3, r1, r3
ldr r1, [fp, #-20]
add r2, r1, r2
str r2, [r3]
ldr r3, [fp, #-36]
lsl r3, r3, #2
ldr r2, [fp, #-20]
add r3, r2, r3
ldr r2, [fp, #-28]
str r2, [r3]
ldr r3, [fp, #-36]
lsl r3, r3, #2
ldr r2, [fp, #-16]
add r3, r2, r3
ldr r2, [fp, #-8]
str r2, [r3]
ldr r3, [fp, #-36]
add r3, r3, #1
str r3, [fp, #-36]
.L8:
ldr r3, [fp, #-44]
add r3, r3, #1
str r3, [fp, #-44]
.L2:
ldr r3, [fp, #-44]
ldr r2, .L19+20
cmp r3, r2
blt .L11
ldr r3, [fp, #-36]
sub r3, r3, #1
str r3, [fp, #-44]
b .L12
.L18:
ldr r3, [fp, #-44]
lsl r3, r3, #2
ldr r2, [fp, #-20]
add r3, r2, r3
ldr r3, [r3]
ldr r2, [r3]
ldr r3, [fp, #-44]
lsl r3, r3, #2
ldr r1, [fp, #-20]
add r3, r1, r3
cmp r2, r3
beq .L13
ldr r0, .L19+24
bl puts
mov r3, #100
b .L6
.L13:
ldr r3, [fp, #-44]
lsl r3, r3, #2
ldr r2, [fp, #-20]
add r3, r2, r3
ldr r2, [r3]
ldr r3, [fp, #-44]
lsl r3, r3, #2
ldr r1, [fp, #-16]
add r3, r1, r3
ldr r3, [r3]
sub r3, r3, #4
add r3, r2, r3
ldr r2, [r3]
ldr r3, [fp, #-44]
lsl r3, r3, #2
ldr r1, [fp, #-20]
add r3, r1, r3
cmp r2, r3
beq .L14
ldr r0, .L19+28
bl puts
mov r3, #101
b .L6
.L14:
ldr r3, [fp, #-44]
lsl r3, r3, #2
ldr r2, [fp, #-20]
add r3, r2, r3
ldr r3, [r3]
add r3, r3, #4
str r3, [fp, #-24]
ldr r3, [fp, #-44]
lsl r3, r3, #2
ldr r2, [fp, #-20]
add r3, r2, r3
ldr r2, [r3]
ldr r3, [fp, #-44]
lsl r3, r3, #2
ldr r1, [fp, #-16]
add r3, r1, r3
ldr r3, [r3]
sub r3, r3, #5
add r3, r2, r3
str r3, [fp, #-12]
b .L15
.L17:
ldr r3, [fp, #-24]
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L16
ldr r0, .L19+32
bl puts
mov r3, #102
b .L6
.L16:
ldr r3, [fp, #-24]
mov r2, #1
strb r2, [r3]
ldr r3, [fp, #-24]
add r3, r3, #1
str r3, [fp, #-24]
.L15:
ldr r2, [fp, #-24]
ldr r3, [fp, #-12]
cmp r2, r3
bhi .L17
ldr r3, [fp, #-44]
lsl r3, r3, #2
ldr r2, [fp, #-20]
add r3, r2, r3
ldr r3, [r3]
mov r0, r3
bl free
ldr r3, [fp, #-44]
sub r3, r3, #1
str r3, [fp, #-44]
.L12:
ldr r3, [fp, #-44]
cmp r3, #0
bge .L18
ldr r0, .L19+36
bl puts
mov r3, #0
.L6:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L20:
.align 2
.L19:
.word 1600000
.word 1374698305
.word 102377
.word .LC0
.word 1374389535
.word 400000
.word .LC1
.word .LC2
.word .LC3
.word .LC4
.size main, .-main
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "590984.c"
.intel_syntax noprefix
.text
.globl v_hddown
.section .rodata
.align 8
.LC0:
.string "@(#)hddown.c 1.02 22-Apr-2003 [email protected]"
.section .data.rel.local,"aw"
.align 8
.type v_hddown, @object
.size v_hddown, 8
v_hddown:
.quad .LC0
.section .rodata
.LC1:
.string "/proc/ide"
.LC2:
.string "hd"
.LC3:
.string "/proc/ide/%s/media"
.LC4:
.string "r"
.LC5:
.string "disk\n"
.LC6:
.string "/dev/%s"
.text
.type find_idedisks, @function
find_idedisks:
.LFB6:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
push rbx
sub rsp, 328
.cfi_offset 3, -24
mov QWORD PTR -328[rbp], rdi
mov DWORD PTR -332[rbp], esi
mov rax, QWORD PTR fs:40
mov QWORD PTR -24[rbp], rax
xor eax, eax
mov DWORD PTR -316[rbp], 0
lea rdi, .LC1[rip]
call opendir@PLT
mov QWORD PTR -312[rbp], rax
cmp QWORD PTR -312[rbp], 0
jne .L4
mov eax, -1
jmp .L12
.L10:
mov rax, QWORD PTR -304[rbp]
add rax, 19
mov edx, 2
lea rsi, .LC2[rip]
mov rdi, rax
call strncmp@PLT
test eax, eax
je .L5
jmp .L4
.L5:
mov BYTE PTR -288[rbp], 0
mov rax, QWORD PTR -304[rbp]
lea rdx, 19[rax]
lea rax, -288[rbp]
mov rcx, rdx
lea rdx, .LC3[rip]
mov esi, 256
mov rdi, rax
mov eax, 0
call snprintf@PLT
lea rax, -288[rbp]
lea rsi, .LC4[rip]
mov rdi, rax
call fopen@PLT
mov QWORD PTR -296[rbp], rax
cmp QWORD PTR -296[rbp], 0
jne .L6
jmp .L4
.L6:
mov rdx, QWORD PTR -296[rbp]
lea rax, -288[rbp]
mov esi, 256
mov rdi, rax
call fgets@PLT
test rax, rax
je .L7
lea rax, -288[rbp]
lea rsi, .LC5[rip]
mov rdi, rax
call strcmp@PLT
test eax, eax
je .L8
.L7:
mov rax, QWORD PTR -296[rbp]
mov rdi, rax
call fclose@PLT
jmp .L4
.L8:
mov rax, QWORD PTR -296[rbp]
mov rdi, rax
call fclose@PLT
mov rax, QWORD PTR -304[rbp]
lea rdx, 19[rax]
lea rax, -288[rbp]
mov rcx, rdx
lea rdx, .LC6[rip]
mov esi, 256
mov rdi, rax
mov eax, 0
call snprintf@PLT
mov eax, DWORD PTR -316[rbp]
lea edx, 1[rax]
mov DWORD PTR -316[rbp], edx
cdqe
lea rdx, 0[0+rax*8]
mov rax, QWORD PTR -328[rbp]
lea rbx, [rdx+rax]
lea rax, -288[rbp]
mov rdi, rax
call strdup@PLT
mov QWORD PTR [rbx], rax
mov eax, DWORD PTR -316[rbp]
cmp eax, DWORD PTR -332[rbp]
jge .L14
.L4:
mov rax, QWORD PTR -312[rbp]
mov rdi, rax
call readdir@PLT
mov QWORD PTR -304[rbp], rax
cmp QWORD PTR -304[rbp], 0
jne .L10
jmp .L9
.L14:
nop
.L9:
mov rax, QWORD PTR -312[rbp]
mov rdi, rax
call closedir@PLT
mov eax, DWORD PTR -316[rbp]
cmp eax, DWORD PTR -332[rbp]
jge .L11
mov eax, DWORD PTR -316[rbp]
cdqe
lea rdx, 0[0+rax*8]
mov rax, QWORD PTR -328[rbp]
add rax, rdx
mov QWORD PTR [rax], 0
.L11:
mov eax, 0
.L12:
mov rcx, QWORD PTR -24[rbp]
sub rcx, QWORD PTR fs:40
je .L13
call __stack_chk_fail@PLT
.L13:
mov rbx, QWORD PTR -8[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size find_idedisks, .-find_idedisks
.type do_standby_idedisk, @function
do_standby_idedisk:
.LFB7:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 48
mov QWORD PTR -40[rbp], rdi
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
mov DWORD PTR -16[rbp], 224
mov DWORD PTR -12[rbp], 148
mov rax, QWORD PTR -40[rbp]
mov esi, 2
mov rdi, rax
mov eax, 0
call open@PLT
mov DWORD PTR -20[rbp], eax
cmp DWORD PTR -20[rbp], 0
jns .L16
mov eax, -1
jmp .L19
.L16:
lea rdx, -16[rbp]
mov eax, DWORD PTR -20[rbp]
mov esi, 799
mov edi, eax
mov eax, 0
call ioctl@PLT
test eax, eax
je .L18
lea rdx, -12[rbp]
mov eax, DWORD PTR -20[rbp]
mov esi, 799
mov edi, eax
mov eax, 0
call ioctl@PLT
test eax, eax
je .L18
mov eax, -1
jmp .L19
.L18:
mov eax, 0
.L19:
mov rcx, QWORD PTR -8[rbp]
sub rcx, QWORD PTR fs:40
je .L20
call __stack_chk_fail@PLT
.L20:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE7:
.size do_standby_idedisk, .-do_standby_idedisk
.globl hddown
.type hddown, @function
hddown:
.LFB8:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 544
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
lea rax, -528[rbp]
mov esi, 64
mov rdi, rax
call find_idedisks
test eax, eax
jns .L22
mov eax, -1
jmp .L27
.L22:
mov DWORD PTR -532[rbp], 0
jmp .L24
.L26:
mov eax, DWORD PTR -532[rbp]
cdqe
mov rax, QWORD PTR -528[rbp+rax*8]
mov rdi, rax
call do_standby_idedisk
add DWORD PTR -532[rbp], 1
.L24:
mov eax, DWORD PTR -532[rbp]
cdqe
mov rax, QWORD PTR -528[rbp+rax*8]
test rax, rax
je .L25
cmp DWORD PTR -532[rbp], 63
jle .L26
.L25:
mov eax, 0
.L27:
mov rdx, QWORD PTR -8[rbp]
sub rdx, QWORD PTR fs:40
je .L28
call __stack_chk_fail@PLT
.L28:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE8:
.size hddown, .-hddown
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "590984.c"
.text
.global v_hddown
.section .rodata
.align 2
.LC0:
.ascii "@(#)hddown.c 1.02 22-Apr-2003 [email protected]"
.ascii "\000"
.data
.align 2
.type v_hddown, %object
.size v_hddown, 4
v_hddown:
.word .LC0
.section .rodata
.align 2
.LC1:
.ascii "/proc/ide\000"
.align 2
.LC2:
.ascii "hd\000"
.align 2
.LC3:
.ascii "/proc/ide/%s/media\000"
.align 2
.LC4:
.ascii "r\000"
.align 2
.LC5:
.ascii "disk\012\000"
.align 2
.LC6:
.ascii "/dev/%s\000"
.align 2
.LC7:
.word __stack_chk_guard
.text
.align 2
.syntax unified
.arm
.fpu softvfp
.type find_idedisks, %function
find_idedisks:
@ args = 0, pretend = 0, frame = 288
@ frame_needed = 1, uses_anonymous_args = 0
push {r4, fp, lr}
add fp, sp, #8
sub sp, sp, #292
str r0, [fp, #-296]
str r1, [fp, #-300]
ldr r3, .L15
ldr r3, [r3]
str r3, [fp, #-16]
mov r3,#0
mov r3, #0
str r3, [fp, #-288]
ldr r0, .L15+4
bl opendir
str r0, [fp, #-284]
ldr r3, [fp, #-284]
cmp r3, #0
bne .L4
mvn r3, #0
b .L12
.L10:
ldr r3, [fp, #-280]
add r3, r3, #11
mov r2, #2
ldr r1, .L15+8
mov r0, r3
bl strncmp
mov r3, r0
cmp r3, #0
beq .L5
b .L4
.L5:
mov r3, #0
strb r3, [fp, #-272]
ldr r3, [fp, #-280]
add r3, r3, #11
sub r0, fp, #272
ldr r2, .L15+12
mov r1, #256
bl snprintf
sub r3, fp, #272
ldr r1, .L15+16
mov r0, r3
bl fopen
str r0, [fp, #-276]
ldr r3, [fp, #-276]
cmp r3, #0
bne .L6
b .L4
.L6:
sub r3, fp, #272
ldr r2, [fp, #-276]
mov r1, #256
mov r0, r3
bl fgets
mov r3, r0
cmp r3, #0
beq .L7
sub r3, fp, #272
ldr r1, .L15+20
mov r0, r3
bl strcmp
mov r3, r0
cmp r3, #0
beq .L8
.L7:
ldr r0, [fp, #-276]
bl fclose
b .L4
.L8:
ldr r0, [fp, #-276]
bl fclose
ldr r3, [fp, #-280]
add r3, r3, #11
sub r0, fp, #272
ldr r2, .L15+24
mov r1, #256
bl snprintf
ldr r3, [fp, #-288]
add r2, r3, #1
str r2, [fp, #-288]
lsl r3, r3, #2
ldr r2, [fp, #-296]
add r4, r2, r3
sub r3, fp, #272
mov r0, r3
bl strdup
mov r3, r0
str r3, [r4]
ldr r2, [fp, #-288]
ldr r3, [fp, #-300]
cmp r2, r3
bge .L14
.L4:
ldr r0, [fp, #-284]
bl readdir
str r0, [fp, #-280]
ldr r3, [fp, #-280]
cmp r3, #0
bne .L10
b .L9
.L14:
nop
.L9:
ldr r0, [fp, #-284]
bl closedir
ldr r2, [fp, #-288]
ldr r3, [fp, #-300]
cmp r2, r3
bge .L11
ldr r3, [fp, #-288]
lsl r3, r3, #2
ldr r2, [fp, #-296]
add r3, r2, r3
mov r2, #0
str r2, [r3]
.L11:
mov r3, #0
.L12:
ldr r2, .L15
ldr r1, [r2]
ldr r2, [fp, #-16]
eors r1, r2, r1
mov r2, #0
beq .L13
bl __stack_chk_fail
.L13:
mov r0, r3
sub sp, fp, #8
@ sp needed
pop {r4, fp, pc}
.L16:
.align 2
.L15:
.word .LC7
.word .LC1
.word .LC2
.word .LC3
.word .LC4
.word .LC5
.word .LC6
.size find_idedisks, .-find_idedisks
.section .rodata
.align 2
.LC8:
.word __stack_chk_guard
.text
.align 2
.syntax unified
.arm
.fpu softvfp
.type do_standby_idedisk, %function
do_standby_idedisk:
@ args = 0, pretend = 0, frame = 24
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #24
str r0, [fp, #-24]
ldr r3, .L23
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
mov r3, #224
str r3, [fp, #-16]
mov r3, #148
str r3, [fp, #-12]
mov r1, #2
ldr r0, [fp, #-24]
bl open
str r0, [fp, #-20]
ldr r3, [fp, #-20]
cmp r3, #0
bge .L18
mvn r3, #0
b .L21
.L18:
sub r3, fp, #16
mov r2, r3
ldr r1, .L23+4
ldr r0, [fp, #-20]
bl ioctl
mov r3, r0
cmp r3, #0
beq .L20
sub r3, fp, #12
mov r2, r3
ldr r1, .L23+4
ldr r0, [fp, #-20]
bl ioctl
mov r3, r0
cmp r3, #0
beq .L20
mvn r3, #0
b .L21
.L20:
mov r3, #0
.L21:
ldr r2, .L23
ldr r1, [r2]
ldr r2, [fp, #-8]
eors r1, r2, r1
mov r2, #0
beq .L22
bl __stack_chk_fail
.L22:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L24:
.align 2
.L23:
.word .LC8
.word 799
.size do_standby_idedisk, .-do_standby_idedisk
.section .rodata
.align 2
.LC9:
.word __stack_chk_guard
.text
.align 2
.global hddown
.syntax unified
.arm
.fpu softvfp
.type hddown, %function
hddown:
@ args = 0, pretend = 0, frame = 272
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #272
ldr r3, .L33
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
sub r3, fp, #268
mov r1, #64
mov r0, r3
bl find_idedisks
mov r3, r0
cmp r3, #0
bge .L26
mvn r3, #0
b .L31
.L26:
mov r3, #0
str r3, [fp, #-272]
b .L28
.L30:
ldr r3, [fp, #-272]
lsl r3, r3, #2
sub r2, fp, #4
add r3, r2, r3
ldr r3, [r3, #-264]
mov r0, r3
bl do_standby_idedisk
ldr r3, [fp, #-272]
add r3, r3, #1
str r3, [fp, #-272]
.L28:
ldr r3, [fp, #-272]
lsl r3, r3, #2
sub r2, fp, #4
add r3, r2, r3
ldr r3, [r3, #-264]
cmp r3, #0
beq .L29
ldr r3, [fp, #-272]
cmp r3, #63
ble .L30
.L29:
mov r3, #0
.L31:
ldr r2, .L33
ldr r1, [r2]
ldr r2, [fp, #-8]
eors r1, r2, r1
mov r2, #0
beq .L32
bl __stack_chk_fail
.L32:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L34:
.align 2
.L33:
.word .LC9
.size hddown, .-hddown
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "178762.c"
.intel_syntax noprefix
.text
.globl N
.bss
.align 4
.type N, @object
.size N, 4
N:
.zero 4
.globl T
.align 4
.type T, @object
.size T, 4
T:
.zero 4
.globl array
.align 32
.type array, @object
.size array, 120
array:
.zero 120
.text
.globl groupSum
.type groupSum, @function
groupSum:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 32
mov DWORD PTR -20[rbp], edi
mov DWORD PTR -24[rbp], esi
cmp DWORD PTR -24[rbp], 0
jne .L2
mov eax, 1
jmp .L3
.L2:
mov eax, DWORD PTR N[rip]
cmp DWORD PTR -20[rbp], eax
jl .L4
mov eax, 0
jmp .L3
.L4:
mov DWORD PTR -4[rbp], 0
mov eax, DWORD PTR -20[rbp]
cdqe
lea rdx, 0[0+rax*4]
lea rax, array[rip]
mov eax, DWORD PTR [rdx+rax]
cmp DWORD PTR -24[rbp], eax
jl .L5
mov eax, DWORD PTR -20[rbp]
cdqe
lea rdx, 0[0+rax*4]
lea rax, array[rip]
mov ecx, DWORD PTR [rdx+rax]
mov eax, DWORD PTR -24[rbp]
sub eax, ecx
mov edx, eax
mov eax, DWORD PTR -20[rbp]
add eax, 1
mov esi, edx
mov edi, eax
call groupSum
mov DWORD PTR -4[rbp], eax
.L5:
mov eax, DWORD PTR -20[rbp]
lea edx, 1[rax]
mov eax, DWORD PTR -24[rbp]
mov esi, eax
mov edi, edx
call groupSum
test eax, eax
jne .L6
cmp DWORD PTR -4[rbp], 0
je .L7
.L6:
mov eax, 1
jmp .L3
.L7:
mov eax, 0
.L3:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size groupSum, .-groupSum
.section .rodata
.LC0:
.string "%d %d"
.LC1:
.string "%d "
.LC2:
.string "YES"
.LC3:
.string "NO"
.text
.globl main
.type main, @function
main:
.LFB1:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
lea rdx, T[rip]
lea rsi, N[rip]
lea rdi, .LC0[rip]
mov eax, 0
call __isoc99_scanf@PLT
mov DWORD PTR -4[rbp], 0
jmp .L10
.L11:
mov eax, DWORD PTR -4[rbp]
cdqe
lea rdx, 0[0+rax*4]
lea rax, array[rip]
add rax, rdx
mov rsi, rax
lea rdi, .LC1[rip]
mov eax, 0
call __isoc99_scanf@PLT
add DWORD PTR -4[rbp], 1
.L10:
mov eax, DWORD PTR N[rip]
cmp DWORD PTR -4[rbp], eax
jl .L11
mov eax, DWORD PTR T[rip]
mov esi, eax
mov edi, 0
call groupSum
cmp eax, 1
jne .L12
lea rax, .LC2[rip]
jmp .L13
.L12:
lea rax, .LC3[rip]
.L13:
mov rdi, rax
call puts@PLT
mov eax, 0
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE1:
.size main, .-main
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "178762.c"
.text
.comm N,4,4
.comm T,4,4
.comm array,120,4
.align 2
.global groupSum
.syntax unified
.arm
.fpu softvfp
.type groupSum, %function
groupSum:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #16
str r0, [fp, #-16]
str r1, [fp, #-20]
ldr r3, [fp, #-20]
cmp r3, #0
bne .L2
mov r3, #1
b .L3
.L2:
ldr r3, .L9
ldr r3, [r3]
ldr r2, [fp, #-16]
cmp r2, r3
blt .L4
mov r3, #0
b .L3
.L4:
mov r3, #0
str r3, [fp, #-8]
ldr r2, .L9+4
ldr r3, [fp, #-16]
ldr r3, [r2, r3, lsl #2]
ldr r2, [fp, #-20]
cmp r2, r3
blt .L5
ldr r3, [fp, #-16]
add r0, r3, #1
ldr r2, .L9+4
ldr r3, [fp, #-16]
ldr r3, [r2, r3, lsl #2]
ldr r2, [fp, #-20]
sub r3, r2, r3
mov r1, r3
bl groupSum
str r0, [fp, #-8]
.L5:
ldr r3, [fp, #-16]
add r3, r3, #1
ldr r1, [fp, #-20]
mov r0, r3
bl groupSum
mov r3, r0
cmp r3, #0
bne .L6
ldr r3, [fp, #-8]
cmp r3, #0
beq .L7
.L6:
mov r3, #1
b .L3
.L7:
mov r3, #0
.L3:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L10:
.align 2
.L9:
.word N
.word array
.size groupSum, .-groupSum
.section .rodata
.align 2
.LC0:
.ascii "%d %d\000"
.align 2
.LC1:
.ascii "%d \000"
.align 2
.LC2:
.ascii "YES\000"
.align 2
.LC3:
.ascii "NO\000"
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #8
ldr r2, .L17
ldr r1, .L17+4
ldr r0, .L17+8
bl __isoc99_scanf
mov r3, #0
str r3, [fp, #-8]
b .L12
.L13:
ldr r3, [fp, #-8]
lsl r3, r3, #2
ldr r2, .L17+12
add r3, r3, r2
mov r1, r3
ldr r0, .L17+16
bl __isoc99_scanf
ldr r3, [fp, #-8]
add r3, r3, #1
str r3, [fp, #-8]
.L12:
ldr r3, .L17+4
ldr r3, [r3]
ldr r2, [fp, #-8]
cmp r2, r3
blt .L13
ldr r3, .L17
ldr r3, [r3]
mov r1, r3
mov r0, #0
bl groupSum
mov r3, r0
cmp r3, #1
bne .L14
ldr r3, .L17+20
b .L15
.L14:
ldr r3, .L17+24
.L15:
mov r0, r3
bl puts
mov r3, #0
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L18:
.align 2
.L17:
.word T
.word N
.word .LC0
.word array
.word .LC1
.word .LC2
.word .LC3
.size main, .-main
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "821461.c"
.intel_syntax noprefix
.text
.globl main
.type main, @function
main:
.LFB6:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov eax, 1
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size main, .-main
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "821461.c"
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
mov r3, #1
mov r0, r3
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size main, .-main
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "282290.c"
.intel_syntax noprefix
.text
.globl isEmpty
.type isEmpty, @function
isEmpty:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov eax, DWORD PTR 36[rbp]
cmp eax, -1
jne .L2
mov eax, 1
jmp .L3
.L2:
mov eax, 0
.L3:
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size isEmpty, .-isEmpty
.globl isFull
.type isFull, @function
isFull:
.LFB1:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov eax, DWORD PTR 36[rbp]
cmp eax, 4
jne .L5
mov eax, 1
jmp .L6
.L5:
mov eax, 0
.L6:
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE1:
.size isFull, .-isFull
.section .rodata
.align 8
.LC0:
.string "\nStack Overflow, can't push %d "
.text
.globl push
.type push, @function
push:
.LFB2:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov QWORD PTR -8[rbp], rdi
mov DWORD PTR -12[rbp], esi
mov rcx, QWORD PTR -8[rbp]
sub rsp, 24
mov rsi, rsp
mov rax, QWORD PTR [rcx]
mov rdx, QWORD PTR 8[rcx]
mov QWORD PTR [rsi], rax
mov QWORD PTR 8[rsi], rdx
mov rax, QWORD PTR 16[rcx]
mov QWORD PTR 16[rsi], rax
call isFull
add rsp, 24
test eax, eax
je .L8
mov eax, DWORD PTR -12[rbp]
mov esi, eax
lea rdi, .LC0[rip]
mov eax, 0
call printf@PLT
mov eax, 0
jmp .L9
.L8:
mov rax, QWORD PTR -8[rbp]
mov eax, DWORD PTR 20[rax]
lea edx, 1[rax]
mov rax, QWORD PTR -8[rbp]
mov DWORD PTR 20[rax], edx
mov rax, QWORD PTR -8[rbp]
mov edx, DWORD PTR 20[rax]
mov rax, QWORD PTR -8[rbp]
movsx rdx, edx
mov ecx, DWORD PTR -12[rbp]
mov DWORD PTR [rax+rdx*4], ecx
mov eax, 1
.L9:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE2:
.size push, .-push
.section .rodata
.LC1:
.string "\nStack Underflow"
.text
.globl pop
.type pop, @function
pop:
.LFB3:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 32
mov QWORD PTR -24[rbp], rdi
mov rcx, QWORD PTR -24[rbp]
sub rsp, 24
mov rsi, rsp
mov rax, QWORD PTR [rcx]
mov rdx, QWORD PTR 8[rcx]
mov QWORD PTR [rsi], rax
mov QWORD PTR 8[rsi], rdx
mov rax, QWORD PTR 16[rcx]
mov QWORD PTR 16[rsi], rax
call isEmpty
add rsp, 24
test eax, eax
je .L11
lea rdi, .LC1[rip]
mov eax, 0
call printf@PLT
mov eax, -1
jmp .L12
.L11:
mov rax, QWORD PTR -24[rbp]
mov edx, DWORD PTR 20[rax]
mov rax, QWORD PTR -24[rbp]
movsx rdx, edx
mov eax, DWORD PTR [rax+rdx*4]
mov DWORD PTR -4[rbp], eax
mov rax, QWORD PTR -24[rbp]
mov eax, DWORD PTR 20[rax]
lea edx, -1[rax]
mov rax, QWORD PTR -24[rbp]
mov DWORD PTR 20[rax], edx
mov eax, DWORD PTR -4[rbp]
.L12:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE3:
.size pop, .-pop
.globl peek
.type peek, @function
peek:
.LFB4:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
push QWORD PTR 32[rbp]
push QWORD PTR 24[rbp]
push QWORD PTR 16[rbp]
call isEmpty
add rsp, 24
test eax, eax
je .L14
mov eax, -1
jmp .L15
.L14:
mov eax, DWORD PTR 36[rbp]
cdqe
mov eax, DWORD PTR 16[rbp+rax*4]
.L15:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE4:
.size peek, .-peek
.section .rodata
.align 8
.LC2:
.string "\nQueue Overflow .. can't add %d to Queue"
.text
.globl enqueue
.type enqueue, @function
enqueue:
.LFB5:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov QWORD PTR -8[rbp], rdi
mov DWORD PTR -12[rbp], esi
mov rcx, QWORD PTR -8[rbp]
sub rsp, 24
mov rsi, rsp
mov rax, QWORD PTR [rcx]
mov rdx, QWORD PTR 8[rcx]
mov QWORD PTR [rsi], rax
mov QWORD PTR 8[rsi], rdx
mov rax, QWORD PTR 16[rcx]
mov QWORD PTR 16[rsi], rax
call isFull
add rsp, 24
test eax, eax
jne .L17
mov rax, QWORD PTR -8[rbp]
mov edx, DWORD PTR -12[rbp]
mov esi, edx
mov rdi, rax
call push
jmp .L18
.L17:
mov eax, DWORD PTR -12[rbp]
mov esi, eax
lea rdi, .LC2[rip]
mov eax, 0
call printf@PLT
.L18:
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE5:
.size enqueue, .-enqueue
.section .rodata
.LC3:
.string "\nUnderflow .."
.text
.globl dequeue
.type dequeue, @function
dequeue:
.LFB6:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 32
mov QWORD PTR -24[rbp], rdi
mov rcx, QWORD PTR -24[rbp]
sub rsp, 24
mov rsi, rsp
mov rax, QWORD PTR [rcx]
mov rdx, QWORD PTR 8[rcx]
mov QWORD PTR [rsi], rax
mov QWORD PTR 8[rsi], rdx
mov rax, QWORD PTR 16[rcx]
mov QWORD PTR 16[rsi], rax
call isEmpty
add rsp, 24
test eax, eax
je .L22
lea rdi, .LC3[rip]
mov eax, 0
call printf@PLT
mov eax, -1
jmp .L21
.L23:
mov rax, QWORD PTR -24[rbp]
mov rdi, rax
call pop
mov DWORD PTR -4[rbp], eax
mov rax, QWORD PTR -24[rbp]
lea rdx, 24[rax]
mov eax, DWORD PTR -4[rbp]
mov esi, eax
mov rdi, rdx
call push
.L22:
sub rsp, 8
mov rcx, QWORD PTR -24[rbp]
sub rsp, 24
mov rsi, rsp
mov rax, QWORD PTR [rcx]
mov rdx, QWORD PTR 8[rcx]
mov QWORD PTR [rsi], rax
mov QWORD PTR 8[rsi], rdx
mov rax, QWORD PTR 16[rcx]
mov QWORD PTR 16[rsi], rax
call isEmpty
add rsp, 32
test eax, eax
je .L23
mov rax, QWORD PTR -24[rbp]
add rax, 24
mov rdi, rax
call pop
mov DWORD PTR -12[rbp], eax
jmp .L24
.L25:
mov rax, QWORD PTR -24[rbp]
add rax, 24
mov rdi, rax
call pop
mov DWORD PTR -8[rbp], eax
mov rax, QWORD PTR -24[rbp]
mov edx, DWORD PTR -8[rbp]
mov esi, edx
mov rdi, rax
call push
.L24:
sub rsp, 8
mov rcx, QWORD PTR -24[rbp]
sub rsp, 24
mov rsi, rsp
mov rax, QWORD PTR 24[rcx]
mov rdx, QWORD PTR 32[rcx]
mov QWORD PTR [rsi], rax
mov QWORD PTR 8[rsi], rdx
mov rax, QWORD PTR 40[rcx]
mov QWORD PTR 16[rsi], rax
call isEmpty
add rsp, 32
test eax, eax
je .L25
mov eax, DWORD PTR -12[rbp]
.L21:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size dequeue, .-dequeue
.section .rodata
.LC4:
.string "\n Dequeue return value %d "
.text
.globl main
.type main, @function
main:
.LFB7:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 64
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
mov DWORD PTR -44[rbp], -1
mov DWORD PTR -20[rbp], -1
lea rax, -64[rbp]
mov rdi, rax
call dequeue
mov esi, eax
lea rdi, .LC4[rip]
mov eax, 0
call printf@PLT
lea rax, -64[rbp]
mov esi, 100
mov rdi, rax
call enqueue
lea rax, -64[rbp]
mov esi, 200
mov rdi, rax
call enqueue
lea rax, -64[rbp]
mov esi, 300
mov rdi, rax
call enqueue
lea rax, -64[rbp]
mov esi, 400
mov rdi, rax
call enqueue
lea rax, -64[rbp]
mov rdi, rax
call dequeue
mov esi, eax
lea rdi, .LC4[rip]
mov eax, 0
call printf@PLT
lea rax, -64[rbp]
mov rdi, rax
call dequeue
mov esi, eax
lea rdi, .LC4[rip]
mov eax, 0
call printf@PLT
lea rax, -64[rbp]
mov esi, 500
mov rdi, rax
call enqueue
lea rax, -64[rbp]
mov esi, 600
mov rdi, rax
call enqueue
lea rax, -64[rbp]
mov esi, 700
mov rdi, rax
call enqueue
lea rax, -64[rbp]
mov esi, 800
mov rdi, rax
call enqueue
lea rax, -64[rbp]
mov rdi, rax
call dequeue
mov esi, eax
lea rdi, .LC4[rip]
mov eax, 0
call printf@PLT
nop
mov rax, QWORD PTR -8[rbp]
sub rax, QWORD PTR fs:40
je .L27
call __stack_chk_fail@PLT
.L27:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE7:
.size main, .-main
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "282290.c"
.text
.align 2
.global isEmpty
.syntax unified
.arm
.fpu softvfp
.type isEmpty, %function
isEmpty:
@ args = 24, pretend = 16, frame = 0
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
sub sp, sp, #16
str fp, [sp, #-4]!
add fp, sp, #0
add ip, fp, #4
stm ip, {r0, r1, r2, r3}
ldr r3, [fp, #24]
cmn r3, #1
bne .L2
mov r3, #1
b .L3
.L2:
mov r3, #0
.L3:
mov r0, r3
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
add sp, sp, #16
bx lr
.size isEmpty, .-isEmpty
.align 2
.global isFull
.syntax unified
.arm
.fpu softvfp
.type isFull, %function
isFull:
@ args = 24, pretend = 16, frame = 0
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
sub sp, sp, #16
str fp, [sp, #-4]!
add fp, sp, #0
add ip, fp, #4
stm ip, {r0, r1, r2, r3}
ldr r3, [fp, #24]
cmp r3, #4
bne .L5
mov r3, #1
b .L6
.L5:
mov r3, #0
.L6:
mov r0, r3
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
add sp, sp, #16
bx lr
.size isFull, .-isFull
.section .rodata
.align 2
.LC0:
.ascii "\012Stack Overflow, can't push %d \000"
.text
.align 2
.global push
.syntax unified
.arm
.fpu softvfp
.type push, %function
push:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #16
str r0, [fp, #-8]
str r1, [fp, #-12]
ldr r3, [fp, #-8]
mov ip, sp
add r2, r3, #16
ldm r2, {r0, r1}
stm ip, {r0, r1}
ldm r3, {r0, r1, r2, r3}
bl isFull
mov r3, r0
cmp r3, #0
beq .L8
ldr r1, [fp, #-12]
ldr r0, .L10
bl printf
mov r3, #0
b .L9
.L8:
ldr r3, [fp, #-8]
ldr r3, [r3, #20]
add r2, r3, #1
ldr r3, [fp, #-8]
str r2, [r3, #20]
ldr r3, [fp, #-8]
ldr r2, [r3, #20]
ldr r3, [fp, #-8]
ldr r1, [fp, #-12]
str r1, [r3, r2, lsl #2]
mov r3, #1
.L9:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L11:
.align 2
.L10:
.word .LC0
.size push, .-push
.section .rodata
.align 2
.LC1:
.ascii "\012Stack Underflow\000"
.text
.align 2
.global pop
.syntax unified
.arm
.fpu softvfp
.type pop, %function
pop:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #24
str r0, [fp, #-16]
ldr r3, [fp, #-16]
mov ip, sp
add r2, r3, #16
ldm r2, {r0, r1}
stm ip, {r0, r1}
ldm r3, {r0, r1, r2, r3}
bl isEmpty
mov r3, r0
cmp r3, #0
beq .L13
ldr r0, .L15
bl printf
mvn r3, #0
b .L14
.L13:
ldr r3, [fp, #-16]
ldr r2, [r3, #20]
ldr r3, [fp, #-16]
ldr r3, [r3, r2, lsl #2]
str r3, [fp, #-8]
ldr r3, [fp, #-16]
ldr r3, [r3, #20]
sub r2, r3, #1
ldr r3, [fp, #-16]
str r2, [r3, #20]
ldr r3, [fp, #-8]
.L14:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L16:
.align 2
.L15:
.word .LC1
.size pop, .-pop
.align 2
.global peek
.syntax unified
.arm
.fpu softvfp
.type peek, %function
peek:
@ args = 24, pretend = 16, frame = 0
@ frame_needed = 1, uses_anonymous_args = 0
sub sp, sp, #16
push {fp, lr}
add fp, sp, #4
sub sp, sp, #8
add ip, fp, #4
stm ip, {r0, r1, r2, r3}
mov r2, sp
add r3, fp, #20
ldm r3, {r0, r1}
stm r2, {r0, r1}
add r3, fp, #4
ldm r3, {r0, r1, r2, r3}
bl isEmpty
mov r3, r0
cmp r3, #0
beq .L18
mvn r3, #0
b .L19
.L18:
ldr r3, [fp, #24]
lsl r3, r3, #2
add r3, fp, r3
ldr r3, [r3, #4]
.L19:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, lr}
add sp, sp, #16
bx lr
.size peek, .-peek
.section .rodata
.align 2
.LC2:
.ascii "\012Queue Overflow .. can't add %d to Queue\000"
.text
.align 2
.global enqueue
.syntax unified
.arm
.fpu softvfp
.type enqueue, %function
enqueue:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #16
str r0, [fp, #-8]
str r1, [fp, #-12]
ldr r3, [fp, #-8]
mov ip, sp
add r2, r3, #16
ldm r2, {r0, r1}
stm ip, {r0, r1}
ldm r3, {r0, r1, r2, r3}
bl isFull
mov r3, r0
cmp r3, #0
bne .L21
ldr r3, [fp, #-8]
ldr r1, [fp, #-12]
mov r0, r3
bl push
b .L22
.L21:
ldr r1, [fp, #-12]
ldr r0, .L23
bl printf
.L22:
nop
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L24:
.align 2
.L23:
.word .LC2
.size enqueue, .-enqueue
.section .rodata
.align 2
.LC3:
.ascii "\012Underflow ..\000"
.text
.align 2
.global dequeue
.syntax unified
.arm
.fpu softvfp
.type dequeue, %function
dequeue:
@ args = 0, pretend = 0, frame = 24
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #32
str r0, [fp, #-24]
ldr r3, [fp, #-24]
mov ip, sp
add r2, r3, #16
ldm r2, {r0, r1}
stm ip, {r0, r1}
ldm r3, {r0, r1, r2, r3}
bl isEmpty
mov r3, r0
cmp r3, #0
beq .L28
ldr r0, .L32
bl printf
mvn r3, #0
b .L27
.L29:
ldr r3, [fp, #-24]
mov r0, r3
bl pop
str r0, [fp, #-8]
ldr r3, [fp, #-24]
add r3, r3, #24
ldr r1, [fp, #-8]
mov r0, r3
bl push
.L28:
ldr r3, [fp, #-24]
mov ip, sp
add r2, r3, #16
ldm r2, {r0, r1}
stm ip, {r0, r1}
ldm r3, {r0, r1, r2, r3}
bl isEmpty
mov r3, r0
cmp r3, #0
beq .L29
ldr r3, [fp, #-24]
add r3, r3, #24
mov r0, r3
bl pop
str r0, [fp, #-16]
b .L30
.L31:
ldr r3, [fp, #-24]
add r3, r3, #24
mov r0, r3
bl pop
str r0, [fp, #-12]
ldr r3, [fp, #-24]
ldr r1, [fp, #-12]
mov r0, r3
bl push
.L30:
ldr r3, [fp, #-24]
mov ip, sp
add r2, r3, #40
ldm r2, {r0, r1}
stm ip, {r0, r1}
add r3, r3, #24
ldm r3, {r0, r1, r2, r3}
bl isEmpty
mov r3, r0
cmp r3, #0
beq .L31
ldr r3, [fp, #-16]
.L27:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L33:
.align 2
.L32:
.word .LC3
.size dequeue, .-dequeue
.section .rodata
.align 2
.LC4:
.ascii "\012 Dequeue return value %d \000"
.align 2
.LC5:
.word __stack_chk_guard
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 56
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #56
ldr r3, .L36
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
mvn r3, #0
str r3, [fp, #-36]
mvn r3, #0
str r3, [fp, #-12]
sub r3, fp, #56
mov r0, r3
bl dequeue
mov r3, r0
mov r1, r3
ldr r0, .L36+4
bl printf
sub r3, fp, #56
mov r1, #100
mov r0, r3
bl enqueue
sub r3, fp, #56
mov r1, #200
mov r0, r3
bl enqueue
sub r3, fp, #56
mov r1, #300
mov r0, r3
bl enqueue
sub r3, fp, #56
mov r1, #400
mov r0, r3
bl enqueue
sub r3, fp, #56
mov r0, r3
bl dequeue
mov r3, r0
mov r1, r3
ldr r0, .L36+4
bl printf
sub r3, fp, #56
mov r0, r3
bl dequeue
mov r3, r0
mov r1, r3
ldr r0, .L36+4
bl printf
sub r3, fp, #56
mov r1, #500
mov r0, r3
bl enqueue
sub r3, fp, #56
mov r1, #600
mov r0, r3
bl enqueue
sub r3, fp, #56
mov r1, #700
mov r0, r3
bl enqueue
sub r3, fp, #56
mov r1, #800
mov r0, r3
bl enqueue
sub r3, fp, #56
mov r0, r3
bl dequeue
mov r3, r0
mov r1, r3
ldr r0, .L36+4
bl printf
nop
ldr r3, .L36
ldr r2, [r3]
ldr r3, [fp, #-8]
eors r2, r3, r2
mov r3, #0
beq .L35
bl __stack_chk_fail
.L35:
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L37:
.align 2
.L36:
.word .LC5
.word .LC4
.size main, .-main
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "485666.c"
.intel_syntax noprefix
.text
.section .rodata
.LC0:
.string "%d "
.text
.globl rational
.type rational, @function
rational:
.LFB6:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov DWORD PTR -4[rbp], edi
mov DWORD PTR -8[rbp], esi
mov eax, DWORD PTR -4[rbp]
cdq
idiv DWORD PTR -8[rbp]
mov eax, edx
test eax, eax
jne .L2
mov eax, DWORD PTR -4[rbp]
sub eax, 1
mov esi, eax
lea rdi, .LC0[rip]
mov eax, 0
call printf@PLT
jmp .L1
.L2:
mov eax, DWORD PTR -4[rbp]
cdq
idiv DWORD PTR -8[rbp]
mov esi, eax
lea rdi, .LC0[rip]
mov eax, 0
call printf@PLT
mov eax, DWORD PTR -4[rbp]
cdq
idiv DWORD PTR -8[rbp]
mov eax, DWORD PTR -8[rbp]
mov esi, edx
mov edi, eax
call rational
.L1:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size rational, .-rational
.section .rodata
.LC1:
.string "%d %d"
.LC2:
.string "PAUSE"
.text
.globl main
.type main, @function
main:
.LFB7:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
lea rdx, -12[rbp]
lea rax, -16[rbp]
mov rsi, rax
lea rdi, .LC1[rip]
mov eax, 0
call __isoc99_scanf@PLT
mov edx, DWORD PTR -12[rbp]
mov eax, DWORD PTR -16[rbp]
mov esi, edx
mov edi, eax
call rational
lea rdi, .LC2[rip]
call system@PLT
mov eax, 0
mov rcx, QWORD PTR -8[rbp]
sub rcx, QWORD PTR fs:40
je .L6
call __stack_chk_fail@PLT
.L6:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE7:
.size main, .-main
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "485666.c"
.text
.global __aeabi_idivmod
.section .rodata
.align 2
.LC0:
.ascii "%d \000"
.global __aeabi_idiv
.text
.align 2
.global rational
.syntax unified
.arm
.fpu softvfp
.type rational, %function
rational:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #8
str r0, [fp, #-8]
str r1, [fp, #-12]
ldr r3, [fp, #-8]
ldr r1, [fp, #-12]
mov r0, r3
bl __aeabi_idivmod
mov r3, r1
cmp r3, #0
bne .L2
ldr r3, [fp, #-8]
sub r3, r3, #1
mov r1, r3
ldr r0, .L4
bl printf
b .L1
.L2:
ldr r1, [fp, #-12]
ldr r0, [fp, #-8]
bl __aeabi_idiv
mov r3, r0
mov r1, r3
ldr r0, .L4
bl printf
ldr r3, [fp, #-8]
ldr r1, [fp, #-12]
mov r0, r3
bl __aeabi_idivmod
mov r3, r1
mov r1, r3
ldr r0, [fp, #-12]
bl rational
.L1:
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L5:
.align 2
.L4:
.word .LC0
.size rational, .-rational
.section .rodata
.align 2
.LC1:
.ascii "%d %d\000"
.align 2
.LC2:
.ascii "PAUSE\000"
.align 2
.LC3:
.word __stack_chk_guard
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #16
ldr r3, .L9
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
sub r2, fp, #12
sub r3, fp, #16
mov r1, r3
ldr r0, .L9+4
bl __isoc99_scanf
ldr r3, [fp, #-16]
ldr r2, [fp, #-12]
mov r1, r2
mov r0, r3
bl rational
ldr r0, .L9+8
bl system
mov r3, #0
ldr r2, .L9
ldr r1, [r2]
ldr r2, [fp, #-8]
eors r1, r2, r1
mov r2, #0
beq .L8
bl __stack_chk_fail
.L8:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L10:
.align 2
.L9:
.word .LC3
.word .LC1
.word .LC2
.size main, .-main
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "245090.c"
.intel_syntax noprefix
.text
.section .rodata
.LC0:
.string "%s: %d\n"
.text
.globl debugint
.type debugint, @function
debugint:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov DWORD PTR -4[rbp], edi
mov QWORD PTR -16[rbp], rsi
mov edx, DWORD PTR -4[rbp]
mov rax, QWORD PTR -16[rbp]
mov rsi, rax
lea rdi, .LC0[rip]
mov eax, 0
call printf@PLT
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size debugint, .-debugint
.section .rodata
.LC1:
.string "%s: %s\n"
.text
.globl debugstr
.type debugstr, @function
debugstr:
.LFB1:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov QWORD PTR -8[rbp], rdi
mov QWORD PTR -16[rbp], rsi
mov rdx, QWORD PTR -8[rbp]
mov rax, QWORD PTR -16[rbp]
mov rsi, rax
lea rdi, .LC1[rip]
mov eax, 0
call printf@PLT
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE1:
.size debugstr, .-debugstr
.section .rodata
.LC2:
.string "Please enter a number: "
.LC3:
.string "%s"
.align 8
.LC4:
.string "Please enter the initial base (2-10, 16): "
.LC5:
.string "%d"
.align 8
.LC6:
.string "Please enter the final base (2-10, 16): "
.LC7:
.string "%s in base %d = "
.LC8:
.string "num"
.LC9:
.string "b1"
.LC10:
.string "b2"
.LC11:
.string "num[0]"
.LC12:
.string "num[1]"
.LC13:
.string "num[2]"
.LC14:
.string "num[3]"
.LC15:
.string "num[4]"
.LC16:
.string "num[5]"
.LC17:
.string "pre[0]"
.LC18:
.string "num[i]"
.LC19:
.string "pre[1]"
.LC20:
.string "pre[2]"
.LC21:
.string "pre[3]"
.LC22:
.string "pre[4]"
.LC23:
.string "i"
.LC24:
.string "-----------"
.LC25:
.string "times"
.LC27:
.string "pow"
.LC28:
.string "add"
.LC29:
.string "total"
.LC30:
.string "pen[0]"
.LC31:
.string "pen[1]"
.LC32:
.string "pen[2]"
.LC33:
.string "pen[3]"
.LC34:
.string "pen[4]"
.LC35:
.string "end[0]"
.LC36:
.string "end[1]"
.LC37:
.string "end[2]"
.LC38:
.string "end[3]"
.LC39:
.string "end[4]"
.LC40:
.string "%s in base %d"
.text
.globl main
.type main, @function
main:
.LFB2:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 4096
or QWORD PTR [rsp], 0
sub rsp, 4096
or QWORD PTR [rsp], 0
sub rsp, 1872
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
mov DWORD PTR -10036[rbp], 0
mov DWORD PTR -10032[rbp], 0
mov DWORD PTR -10028[rbp], 0
mov DWORD PTR -10024[rbp], 0
lea rdi, .LC2[rip]
mov eax, 0
call printf@PLT
lea rax, -2016[rbp]
mov rsi, rax
lea rdi, .LC3[rip]
mov eax, 0
call __isoc99_scanf@PLT
jmp .L4
.L5:
lea rdi, .LC4[rip]
mov eax, 0
call printf@PLT
lea rax, -10036[rbp]
mov rsi, rax
lea rdi, .LC5[rip]
mov eax, 0
call __isoc99_scanf@PLT
.L4:
mov eax, DWORD PTR -10036[rbp]
cmp eax, 1
jle .L5
mov eax, DWORD PTR -10036[rbp]
cmp eax, 10
jle .L7
mov eax, DWORD PTR -10036[rbp]
cmp eax, 16
jne .L5
jmp .L7
.L8:
lea rdi, .LC6[rip]
mov eax, 0
call printf@PLT
lea rax, -10032[rbp]
mov rsi, rax
lea rdi, .LC5[rip]
mov eax, 0
call __isoc99_scanf@PLT
.L7:
mov eax, DWORD PTR -10032[rbp]
cmp eax, 1
jle .L8
mov eax, DWORD PTR -10032[rbp]
cmp eax, 10
jle .L9
mov eax, DWORD PTR -10032[rbp]
cmp eax, 16
jne .L8
.L9:
mov edx, DWORD PTR -10036[rbp]
lea rax, -2016[rbp]
mov rsi, rax
lea rdi, .LC7[rip]
mov eax, 0
call printf@PLT
lea rax, -2016[rbp]
lea rsi, .LC8[rip]
mov rdi, rax
call debugstr
mov eax, DWORD PTR -10036[rbp]
lea rsi, .LC9[rip]
mov edi, eax
call debugint
mov eax, DWORD PTR -10032[rbp]
lea rsi, .LC10[rip]
mov edi, eax
call debugint
movzx eax, BYTE PTR -2016[rbp]
movsx eax, al
lea rsi, .LC11[rip]
mov edi, eax
call debugint
movzx eax, BYTE PTR -2015[rbp]
movsx eax, al
lea rsi, .LC12[rip]
mov edi, eax
call debugint
movzx eax, BYTE PTR -2014[rbp]
movsx eax, al
lea rsi, .LC13[rip]
mov edi, eax
call debugint
movzx eax, BYTE PTR -2013[rbp]
movsx eax, al
lea rsi, .LC14[rip]
mov edi, eax
call debugint
movzx eax, BYTE PTR -2012[rbp]
movsx eax, al
lea rsi, .LC15[rip]
mov edi, eax
call debugint
movzx eax, BYTE PTR -2011[rbp]
movsx eax, al
lea rsi, .LC16[rip]
mov edi, eax
call debugint
mov eax, DWORD PTR -10016[rbp]
lea rsi, .LC17[rip]
mov edi, eax
call debugint
jmp .L10
.L30:
mov eax, DWORD PTR -10024[rbp]
cdqe
movzx eax, BYTE PTR -2016[rbp+rax]
movsx eax, al
lea rsi, .LC18[rip]
mov edi, eax
call debugint
mov eax, DWORD PTR -10024[rbp]
cdqe
movzx eax, BYTE PTR -2016[rbp+rax]
movsx eax, al
sub eax, 48
cmp eax, 22
ja .L58
mov eax, eax
lea rdx, 0[0+rax*4]
lea rax, .L13[rip]
mov eax, DWORD PTR [rdx+rax]
cdqe
lea rdx, .L13[rip]
add rax, rdx
notrack jmp rax
.section .rodata
.align 4
.align 4
.L13:
.long .L28-.L13
.long .L27-.L13
.long .L26-.L13
.long .L25-.L13
.long .L24-.L13
.long .L23-.L13
.long .L22-.L13
.long .L21-.L13
.long .L20-.L13
.long .L19-.L13
.long .L58-.L13
.long .L58-.L13
.long .L58-.L13
.long .L58-.L13
.long .L58-.L13
.long .L58-.L13
.long .L58-.L13
.long .L18-.L13
.long .L17-.L13
.long .L16-.L13
.long .L15-.L13
.long .L14-.L13
.long .L12-.L13
.text
.L28:
mov eax, DWORD PTR -10024[rbp]
cdqe
mov DWORD PTR -10016[rbp+rax*4], 79
jmp .L29
.L27:
mov eax, DWORD PTR -10024[rbp]
cdqe
mov DWORD PTR -10016[rbp+rax*4], 1
jmp .L29
.L26:
mov eax, DWORD PTR -10024[rbp]
cdqe
mov DWORD PTR -10016[rbp+rax*4], 2
jmp .L29
.L25:
mov eax, DWORD PTR -10024[rbp]
cdqe
mov DWORD PTR -10016[rbp+rax*4], 3
jmp .L29
.L24:
mov eax, DWORD PTR -10024[rbp]
cdqe
mov DWORD PTR -10016[rbp+rax*4], 4
jmp .L29
.L23:
mov eax, DWORD PTR -10024[rbp]
cdqe
mov DWORD PTR -10016[rbp+rax*4], 5
jmp .L29
.L22:
mov eax, DWORD PTR -10024[rbp]
cdqe
mov DWORD PTR -10016[rbp+rax*4], 6
jmp .L29
.L21:
mov eax, DWORD PTR -10024[rbp]
cdqe
mov DWORD PTR -10016[rbp+rax*4], 7
jmp .L29
.L20:
mov eax, DWORD PTR -10024[rbp]
cdqe
mov DWORD PTR -10016[rbp+rax*4], 8
jmp .L29
.L19:
mov eax, DWORD PTR -10024[rbp]
cdqe
mov DWORD PTR -10016[rbp+rax*4], 9
jmp .L29
.L18:
mov eax, DWORD PTR -10024[rbp]
cdqe
mov DWORD PTR -10016[rbp+rax*4], 10
jmp .L29
.L17:
mov eax, DWORD PTR -10024[rbp]
cdqe
mov DWORD PTR -10016[rbp+rax*4], 11
jmp .L29
.L16:
mov eax, DWORD PTR -10024[rbp]
cdqe
mov DWORD PTR -10016[rbp+rax*4], 12
jmp .L29
.L15:
mov eax, DWORD PTR -10024[rbp]
cdqe
mov DWORD PTR -10016[rbp+rax*4], 13
jmp .L29
.L14:
mov eax, DWORD PTR -10024[rbp]
cdqe
mov DWORD PTR -10016[rbp+rax*4], 14
jmp .L29
.L12:
mov eax, DWORD PTR -10024[rbp]
cdqe
mov DWORD PTR -10016[rbp+rax*4], 15
jmp .L29
.L58:
nop
.L29:
add DWORD PTR -10024[rbp], 1
.L10:
mov eax, DWORD PTR -10024[rbp]
cdqe
movzx eax, BYTE PTR -2016[rbp+rax]
test al, al
jne .L30
mov eax, DWORD PTR -10016[rbp]
lea rsi, .LC17[rip]
mov edi, eax
call debugint
mov eax, DWORD PTR -10012[rbp]
lea rsi, .LC19[rip]
mov edi, eax
call debugint
mov eax, DWORD PTR -10008[rbp]
lea rsi, .LC20[rip]
mov edi, eax
call debugint
mov eax, DWORD PTR -10004[rbp]
lea rsi, .LC21[rip]
mov edi, eax
call debugint
mov eax, DWORD PTR -10000[rbp]
lea rsi, .LC22[rip]
mov edi, eax
call debugint
mov eax, DWORD PTR -10024[rbp]
lea rsi, .LC23[rip]
mov edi, eax
call debugint
mov DWORD PTR -10020[rbp], 0
jmp .L31
.L33:
mov eax, DWORD PTR -10020[rbp]
cdqe
mov eax, DWORD PTR -10016[rbp+rax*4]
cmp eax, 79
jne .L32
mov eax, DWORD PTR -10020[rbp]
cdqe
mov DWORD PTR -10016[rbp+rax*4], 0
.L32:
pxor xmm2, xmm2
cvtsi2sd xmm2, DWORD PTR -10028[rbp]
movsd QWORD PTR -10056[rbp], xmm2
mov eax, DWORD PTR -10020[rbp]
cdqe
mov eax, DWORD PTR -10016[rbp+rax*4]
pxor xmm3, xmm3
cvtsi2sd xmm3, eax
movsd QWORD PTR -10064[rbp], xmm3
mov eax, DWORD PTR -10024[rbp]
sub eax, 1
sub eax, DWORD PTR -10020[rbp]
pxor xmm0, xmm0
cvtsi2sd xmm0, eax
mov eax, DWORD PTR -10036[rbp]
pxor xmm4, xmm4
cvtsi2sd xmm4, eax
movq rax, xmm4
movapd xmm1, xmm0
movq xmm0, rax
call pow@PLT
mulsd xmm0, QWORD PTR -10064[rbp]
addsd xmm0, QWORD PTR -10056[rbp]
cvttsd2si eax, xmm0
mov DWORD PTR -10028[rbp], eax
lea rdi, .LC24[rip]
call puts@PLT
mov eax, DWORD PTR -10024[rbp]
sub eax, 1
sub eax, DWORD PTR -10020[rbp]
lea rsi, .LC25[rip]
mov edi, eax
call debugint
mov eax, DWORD PTR -10024[rbp]
sub eax, 1
sub eax, DWORD PTR -10020[rbp]
pxor xmm0, xmm0
cvtsi2sd xmm0, eax
mov rax, QWORD PTR .LC26[rip]
movapd xmm1, xmm0
movq xmm0, rax
call pow@PLT
cvttsd2si eax, xmm0
lea rsi, .LC27[rip]
mov edi, eax
call debugint
mov eax, DWORD PTR -10020[rbp]
cdqe
mov eax, DWORD PTR -10016[rbp+rax*4]
pxor xmm5, xmm5
cvtsi2sd xmm5, eax
movsd QWORD PTR -10056[rbp], xmm5
mov eax, DWORD PTR -10024[rbp]
sub eax, 1
sub eax, DWORD PTR -10020[rbp]
pxor xmm0, xmm0
cvtsi2sd xmm0, eax
mov rax, QWORD PTR .LC26[rip]
movapd xmm1, xmm0
movq xmm0, rax
call pow@PLT
mulsd xmm0, QWORD PTR -10056[rbp]
cvttsd2si eax, xmm0
lea rsi, .LC28[rip]
mov edi, eax
call debugint
add DWORD PTR -10020[rbp], 1
.L31:
mov eax, DWORD PTR -10020[rbp]
cdqe
mov eax, DWORD PTR -10016[rbp+rax*4]
test eax, eax
jne .L33
mov eax, DWORD PTR -10028[rbp]
lea rsi, .LC29[rip]
mov edi, eax
call debugint
mov DWORD PTR -10024[rbp], 0
mov DWORD PTR -10020[rbp], 0
jmp .L34
.L35:
mov ecx, DWORD PTR -10032[rbp]
mov eax, DWORD PTR -10028[rbp]
cdq
idiv ecx
mov eax, DWORD PTR -10024[rbp]
cdqe
mov DWORD PTR -6016[rbp+rax*4], edx
mov ecx, DWORD PTR -10032[rbp]
mov eax, DWORD PTR -10028[rbp]
cdq
idiv ecx
mov DWORD PTR -10028[rbp], eax
add DWORD PTR -10024[rbp], 1
.L34:
cmp DWORD PTR -10028[rbp], 0
jg .L35
mov eax, DWORD PTR -6016[rbp]
lea rsi, .LC30[rip]
mov edi, eax
call debugint
mov eax, DWORD PTR -6012[rbp]
lea rsi, .LC31[rip]
mov edi, eax
call debugint
mov eax, DWORD PTR -6008[rbp]
lea rsi, .LC32[rip]
mov edi, eax
call debugint
mov eax, DWORD PTR -6004[rbp]
lea rsi, .LC33[rip]
mov edi, eax
call debugint
mov eax, DWORD PTR -6000[rbp]
lea rsi, .LC34[rip]
mov edi, eax
call debugint
mov eax, DWORD PTR -10024[rbp]
lea rsi, .LC23[rip]
mov edi, eax
call debugint
jmp .L36
.L56:
sub DWORD PTR -10024[rbp], 1
mov eax, DWORD PTR -10024[rbp]
cdqe
mov eax, DWORD PTR -6016[rbp+rax*4]
cmp eax, 15
ja .L59
mov eax, eax
lea rdx, 0[0+rax*4]
lea rax, .L39[rip]
mov eax, DWORD PTR [rdx+rax]
cdqe
lea rdx, .L39[rip]
add rax, rdx
notrack jmp rax
.section .rodata
.align 4
.align 4
.L39:
.long .L54-.L39
.long .L53-.L39
.long .L52-.L39
.long .L51-.L39
.long .L50-.L39
.long .L49-.L39
.long .L48-.L39
.long .L47-.L39
.long .L46-.L39
.long .L45-.L39
.long .L44-.L39
.long .L43-.L39
.long .L42-.L39
.long .L41-.L39
.long .L40-.L39
.long .L38-.L39
.text
.L38:
mov eax, DWORD PTR -10020[rbp]
cdqe
mov BYTE PTR -1008[rbp+rax], 70
jmp .L55
.L40:
mov eax, DWORD PTR -10020[rbp]
cdqe
mov BYTE PTR -1008[rbp+rax], 69
jmp .L55
.L41:
mov eax, DWORD PTR -10020[rbp]
cdqe
mov BYTE PTR -1008[rbp+rax], 68
jmp .L55
.L42:
mov eax, DWORD PTR -10020[rbp]
cdqe
mov BYTE PTR -1008[rbp+rax], 67
jmp .L55
.L43:
mov eax, DWORD PTR -10020[rbp]
cdqe
mov BYTE PTR -1008[rbp+rax], 66
jmp .L55
.L44:
mov eax, DWORD PTR -10020[rbp]
cdqe
mov BYTE PTR -1008[rbp+rax], 65
jmp .L55
.L45:
mov eax, DWORD PTR -10020[rbp]
cdqe
mov BYTE PTR -1008[rbp+rax], 57
jmp .L55
.L46:
mov eax, DWORD PTR -10020[rbp]
cdqe
mov BYTE PTR -1008[rbp+rax], 56
jmp .L55
.L47:
mov eax, DWORD PTR -10020[rbp]
cdqe
mov BYTE PTR -1008[rbp+rax], 55
jmp .L55
.L48:
mov eax, DWORD PTR -10020[rbp]
cdqe
mov BYTE PTR -1008[rbp+rax], 54
jmp .L55
.L49:
mov eax, DWORD PTR -10020[rbp]
cdqe
mov BYTE PTR -1008[rbp+rax], 53
jmp .L55
.L50:
mov eax, DWORD PTR -10020[rbp]
cdqe
mov BYTE PTR -1008[rbp+rax], 52
jmp .L55
.L51:
mov eax, DWORD PTR -10020[rbp]
cdqe
mov BYTE PTR -1008[rbp+rax], 51
jmp .L55
.L52:
mov eax, DWORD PTR -10020[rbp]
cdqe
mov BYTE PTR -1008[rbp+rax], 50
jmp .L55
.L53:
mov eax, DWORD PTR -10020[rbp]
cdqe
mov BYTE PTR -1008[rbp+rax], 49
jmp .L55
.L54:
mov eax, DWORD PTR -10020[rbp]
cdqe
mov BYTE PTR -1008[rbp+rax], 48
jmp .L55
.L59:
nop
.L55:
add DWORD PTR -10020[rbp], 1
.L36:
cmp DWORD PTR -10024[rbp], 0
jg .L56
movzx eax, BYTE PTR -1008[rbp]
movsx eax, al
lea rsi, .LC35[rip]
mov edi, eax
call debugint
movzx eax, BYTE PTR -1007[rbp]
movsx eax, al
lea rsi, .LC36[rip]
mov edi, eax
call debugint
movzx eax, BYTE PTR -1006[rbp]
movsx eax, al
lea rsi, .LC37[rip]
mov edi, eax
call debugint
movzx eax, BYTE PTR -1005[rbp]
movsx eax, al
lea rsi, .LC38[rip]
mov edi, eax
call debugint
movzx eax, BYTE PTR -1004[rbp]
movsx eax, al
lea rsi, .LC39[rip]
mov edi, eax
call debugint
mov edx, DWORD PTR -10032[rbp]
lea rax, -1008[rbp]
mov rsi, rax
lea rdi, .LC40[rip]
mov eax, 0
call printf@PLT
nop
mov rax, QWORD PTR -8[rbp]
sub rax, QWORD PTR fs:40
je .L57
call __stack_chk_fail@PLT
.L57:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE2:
.size main, .-main
.section .rodata
.align 8
.LC26:
.long 0
.long 1076101120
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "245090.c"
.text
.section .rodata
.align 2
.LC0:
.ascii "%s: %d\012\000"
.text
.align 2
.global debugint
.syntax unified
.arm
.fpu softvfp
.type debugint, %function
debugint:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #8
str r0, [fp, #-8]
str r1, [fp, #-12]
ldr r2, [fp, #-8]
ldr r1, [fp, #-12]
ldr r0, .L2
bl printf
nop
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L3:
.align 2
.L2:
.word .LC0
.size debugint, .-debugint
.section .rodata
.align 2
.LC1:
.ascii "%s: %s\012\000"
.text
.align 2
.global debugstr
.syntax unified
.arm
.fpu softvfp
.type debugstr, %function
debugstr:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #8
str r0, [fp, #-8]
str r1, [fp, #-12]
ldr r2, [fp, #-8]
ldr r1, [fp, #-12]
ldr r0, .L5
bl printf
nop
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L6:
.align 2
.L5:
.word .LC1
.size debugstr, .-debugstr
.section .rodata
.align 2
.LC2:
.ascii "Please enter a number: \000"
.align 2
.LC3:
.ascii "%s\000"
.align 2
.LC4:
.ascii "Please enter the initial base (2-10, 16): \000"
.align 2
.LC5:
.ascii "%d\000"
.align 2
.LC6:
.ascii "Please enter the final base (2-10, 16): \000"
.align 2
.LC7:
.ascii "%s in base %d = \000"
.align 2
.LC8:
.ascii "num\000"
.align 2
.LC9:
.ascii "b1\000"
.align 2
.LC10:
.ascii "b2\000"
.align 2
.LC11:
.ascii "num[0]\000"
.align 2
.LC12:
.ascii "num[1]\000"
.align 2
.LC13:
.ascii "num[2]\000"
.align 2
.LC14:
.ascii "num[3]\000"
.align 2
.LC15:
.ascii "num[4]\000"
.align 2
.LC16:
.ascii "num[5]\000"
.align 2
.LC17:
.ascii "pre[0]\000"
.align 2
.LC18:
.ascii "num[i]\000"
.align 2
.LC19:
.ascii "pre[1]\000"
.align 2
.LC20:
.ascii "pre[2]\000"
.align 2
.LC21:
.ascii "pre[3]\000"
.align 2
.LC22:
.ascii "pre[4]\000"
.align 2
.LC23:
.ascii "i\000"
.global __aeabi_i2d
.global __aeabi_dmul
.global __aeabi_dadd
.global __aeabi_d2iz
.align 2
.LC24:
.ascii "-----------\000"
.align 2
.LC25:
.ascii "times\000"
.align 2
.LC26:
.ascii "pow\000"
.align 2
.LC27:
.ascii "add\000"
.align 2
.LC28:
.ascii "total\000"
.global __aeabi_idivmod
.global __aeabi_idiv
.align 2
.LC29:
.ascii "pen[0]\000"
.align 2
.LC30:
.ascii "pen[1]\000"
.align 2
.LC31:
.ascii "pen[2]\000"
.align 2
.LC32:
.ascii "pen[3]\000"
.align 2
.LC33:
.ascii "pen[4]\000"
.align 2
.LC34:
.ascii "end[0]\000"
.align 2
.LC35:
.ascii "end[1]\000"
.align 2
.LC36:
.ascii "end[2]\000"
.align 2
.LC37:
.ascii "end[3]\000"
.align 2
.LC38:
.ascii "end[4]\000"
.align 2
.LC39:
.ascii "%s in base %d\000"
.align 2
.LC40:
.word __stack_chk_guard
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 10024
@ frame_needed = 1, uses_anonymous_args = 0
push {r4, r5, r6, r7, r8, r9, fp, lr}
add fp, sp, #28
sub sp, sp, #9984
sub sp, sp, #40
ldr r3, .L64
ldr r3, [r3]
str r3, [fp, #-32]
mov r3,#0
sub r3, fp, #8192
sub r3, r3, #28
mov r2, r3
mov r3, #0
str r3, [r2, #-1832]
sub r3, fp, #8192
sub r3, r3, #28
mov r2, r3
mov r3, #0
str r3, [r2, #-1828]
sub r3, fp, #8192
sub r3, r3, #28
mov r2, r3
mov r3, #0
str r3, [r2, #-1824]
sub r3, fp, #8192
sub r3, r3, #28
mov r2, r3
mov r3, #0
str r3, [r2, #-1820]
ldr r0, .L64+4
bl printf
sub r3, fp, #2016
sub r3, r3, #12
sub r3, r3, #4
mov r1, r3
ldr r0, .L64+8
bl __isoc99_scanf
b .L8
.L9:
ldr r0, .L64+12
bl printf
sub r3, fp, #9984
sub r3, r3, #28
sub r3, r3, #40
mov r1, r3
ldr r0, .L64+16
bl __isoc99_scanf
.L8:
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1832]
cmp r3, #1
ble .L9
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1832]
cmp r3, #10
ble .L11
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1832]
cmp r3, #16
bne .L9
b .L11
.L12:
ldr r0, .L64+20
bl printf
sub r3, fp, #9984
sub r3, r3, #28
sub r3, r3, #36
mov r1, r3
ldr r0, .L64+16
bl __isoc99_scanf
.L11:
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1828]
cmp r3, #1
ble .L12
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1828]
cmp r3, #10
ble .L13
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1828]
cmp r3, #16
bne .L12
.L13:
sub r3, fp, #8192
sub r3, r3, #28
ldr r2, [r3, #-1832]
sub r3, fp, #2016
sub r3, r3, #12
sub r3, r3, #4
mov r1, r3
ldr r0, .L64+24
bl printf
sub r3, fp, #2016
sub r3, r3, #12
sub r3, r3, #4
ldr r1, .L64+28
mov r0, r3
bl debugstr
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1832]
ldr r1, .L64+32
mov r0, r3
bl debugint
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1828]
ldr r1, .L64+36
mov r0, r3
bl debugint
ldrb r3, [fp, #-2032] @ zero_extendqisi2
ldr r1, .L64+40
mov r0, r3
bl debugint
ldrb r3, [fp, #-2031] @ zero_extendqisi2
ldr r1, .L64+44
mov r0, r3
bl debugint
ldrb r3, [fp, #-2030] @ zero_extendqisi2
ldr r1, .L64+48
mov r0, r3
bl debugint
ldrb r3, [fp, #-2029] @ zero_extendqisi2
ldr r1, .L64+52
mov r0, r3
bl debugint
ldrb r3, [fp, #-2028] @ zero_extendqisi2
ldr r1, .L64+56
mov r0, r3
bl debugint
ldrb r3, [fp, #-2027] @ zero_extendqisi2
ldr r1, .L64+60
mov r0, r3
bl debugint
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1812]
ldr r1, .L64+64
mov r0, r3
bl debugint
b .L14
.L34:
sub r3, fp, #2016
sub r3, r3, #12
sub r3, r3, #4
sub r2, fp, #8192
sub r2, r2, #28
ldr r2, [r2, #-1820]
add r3, r3, r2
ldrb r3, [r3] @ zero_extendqisi2
ldr r1, .L64+68
mov r0, r3
bl debugint
sub r3, fp, #2016
sub r3, r3, #12
sub r3, r3, #4
sub r2, fp, #8192
sub r2, r2, #28
ldr r2, [r2, #-1820]
add r3, r3, r2
ldrb r3, [r3] @ zero_extendqisi2
sub r3, r3, #48
cmp r3, #22
ldrls pc, [pc, r3, asl #2]
b .L62
.L17:
.word .L32
.word .L31
.word .L30
.word .L29
.word .L28
.word .L27
.word .L26
.word .L25
.word .L24
.word .L23
.word .L62
.word .L62
.word .L62
.word .L62
.word .L62
.word .L62
.word .L62
.word .L22
.word .L21
.word .L20
.word .L19
.word .L18
.word .L16
.L32:
sub r3, fp, #8192
sub r3, r3, #28
mov r2, r3
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1820]
lsl r3, r3, #2
add r3, r2, r3
mov r2, #79
str r2, [r3, #-1812]
b .L33
.L31:
sub r3, fp, #8192
sub r3, r3, #28
mov r2, r3
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1820]
lsl r3, r3, #2
add r3, r2, r3
mov r2, #1
str r2, [r3, #-1812]
b .L33
.L30:
sub r3, fp, #8192
sub r3, r3, #28
mov r2, r3
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1820]
lsl r3, r3, #2
add r3, r2, r3
mov r2, #2
str r2, [r3, #-1812]
b .L33
.L29:
sub r3, fp, #8192
sub r3, r3, #28
mov r2, r3
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1820]
lsl r3, r3, #2
add r3, r2, r3
mov r2, #3
str r2, [r3, #-1812]
b .L33
.L28:
sub r3, fp, #8192
sub r3, r3, #28
mov r2, r3
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1820]
lsl r3, r3, #2
add r3, r2, r3
mov r2, #4
str r2, [r3, #-1812]
b .L33
.L27:
sub r3, fp, #8192
sub r3, r3, #28
mov r2, r3
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1820]
lsl r3, r3, #2
add r3, r2, r3
mov r2, #5
str r2, [r3, #-1812]
b .L33
.L26:
sub r3, fp, #8192
sub r3, r3, #28
mov r2, r3
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1820]
lsl r3, r3, #2
add r3, r2, r3
mov r2, #6
str r2, [r3, #-1812]
b .L33
.L25:
sub r3, fp, #8192
sub r3, r3, #28
mov r2, r3
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1820]
lsl r3, r3, #2
add r3, r2, r3
mov r2, #7
str r2, [r3, #-1812]
b .L33
.L24:
sub r3, fp, #8192
sub r3, r3, #28
mov r2, r3
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1820]
lsl r3, r3, #2
add r3, r2, r3
mov r2, #8
str r2, [r3, #-1812]
b .L33
.L23:
sub r3, fp, #8192
sub r3, r3, #28
mov r2, r3
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1820]
lsl r3, r3, #2
add r3, r2, r3
mov r2, #9
str r2, [r3, #-1812]
b .L33
.L22:
sub r3, fp, #8192
sub r3, r3, #28
mov r2, r3
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1820]
lsl r3, r3, #2
add r3, r2, r3
mov r2, #10
str r2, [r3, #-1812]
b .L33
.L21:
sub r3, fp, #8192
sub r3, r3, #28
mov r2, r3
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1820]
lsl r3, r3, #2
add r3, r2, r3
mov r2, #11
str r2, [r3, #-1812]
b .L33
.L20:
sub r3, fp, #8192
sub r3, r3, #28
mov r2, r3
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1820]
lsl r3, r3, #2
add r3, r2, r3
mov r2, #12
str r2, [r3, #-1812]
b .L33
.L19:
sub r3, fp, #8192
sub r3, r3, #28
mov r2, r3
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1820]
lsl r3, r3, #2
add r3, r2, r3
mov r2, #13
str r2, [r3, #-1812]
b .L33
.L18:
sub r3, fp, #8192
sub r3, r3, #28
mov r2, r3
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1820]
lsl r3, r3, #2
add r3, r2, r3
mov r2, #14
str r2, [r3, #-1812]
b .L33
.L16:
sub r3, fp, #8192
sub r3, r3, #28
mov r2, r3
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1820]
lsl r3, r3, #2
add r3, r2, r3
mov r2, #15
str r2, [r3, #-1812]
b .L33
.L62:
nop
.L33:
sub r3, fp, #8192
sub r3, r3, #28
mov r2, r3
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1820]
add r3, r3, #1
str r3, [r2, #-1820]
.L14:
sub r3, fp, #2016
sub r3, r3, #12
sub r3, r3, #4
sub r2, fp, #8192
sub r2, r2, #28
ldr r2, [r2, #-1820]
add r3, r3, r2
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
bne .L34
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1812]
ldr r1, .L64+64
mov r0, r3
bl debugint
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1808]
ldr r1, .L64+72
mov r0, r3
bl debugint
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1804]
ldr r1, .L64+76
mov r0, r3
bl debugint
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1800]
ldr r1, .L64+80
mov r0, r3
bl debugint
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1796]
ldr r1, .L64+84
mov r0, r3
bl debugint
sub r3, fp, #8192
sub r3, r3, #28
ldr r1, .L64+88
ldr r0, [r3, #-1820]
bl debugint
sub r3, fp, #8192
sub r3, r3, #28
mov r2, r3
mov r3, #0
str r3, [r2, #-1816]
b .L35
.L37:
sub r3, fp, #8192
sub r3, r3, #28
mov r2, r3
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1816]
lsl r3, r3, #2
add r3, r2, r3
ldr r3, [r3, #-1812]
cmp r3, #79
bne .L36
sub r3, fp, #8192
sub r3, r3, #28
mov r2, r3
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1816]
lsl r3, r3, #2
add r3, r2, r3
mov r2, #0
str r2, [r3, #-1812]
.L36:
sub r3, fp, #8192
sub r3, r3, #28
ldr r0, [r3, #-1824]
bl __aeabi_i2d
mov r4, r0
mov r5, r1
sub r3, fp, #8192
sub r3, r3, #28
mov r2, r3
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1816]
lsl r3, r3, #2
add r3, r2, r3
ldr r3, [r3, #-1812]
mov r0, r3
bl __aeabi_i2d
mov r6, r0
mov r7, r1
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1832]
mov r0, r3
bl __aeabi_i2d
mov r8, r0
mov r9, r1
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1820]
sub r2, r3, #1
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1816]
sub r3, r2, r3
mov r0, r3
bl __aeabi_i2d
mov r2, r0
mov r3, r1
mov r0, r8
mov r1, r9
bl pow
mov r2, r0
mov r3, r1
mov r0, r6
mov r1, r7
bl __aeabi_dmul
mov r2, r0
mov r3, r1
mov r0, r4
mov r1, r5
bl __aeabi_dadd
mov r2, r0
mov r3, r1
sub r1, fp, #8192
sub r1, r1, #28
mov r4, r1
mov r0, r2
mov r1, r3
bl __aeabi_d2iz
mov r3, r0
str r3, [r4, #-1824]
ldr r0, .L64+92
bl puts
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1820]
sub r2, r3, #1
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1816]
sub r3, r2, r3
ldr r1, .L64+96
mov r0, r3
bl debugint
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1820]
sub r2, r3, #1
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1816]
sub r3, r2, r3
mov r0, r3
bl __aeabi_i2d
mov r2, r0
mov r3, r1
mov r0, #0
ldr r1, .L64+100
bl pow
mov r2, r0
mov r3, r1
mov r0, r2
mov r1, r3
bl __aeabi_d2iz
mov r3, r0
ldr r1, .L64+104
mov r0, r3
bl debugint
sub r3, fp, #8192
sub r3, r3, #28
mov r2, r3
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1816]
lsl r3, r3, #2
add r3, r2, r3
ldr r3, [r3, #-1812]
mov r0, r3
bl __aeabi_i2d
mov r4, r0
mov r5, r1
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1820]
sub r2, r3, #1
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1816]
sub r3, r2, r3
mov r0, r3
bl __aeabi_i2d
mov r2, r0
mov r3, r1
mov r0, #0
ldr r1, .L64+100
bl pow
mov r2, r0
mov r3, r1
mov r0, r4
mov r1, r5
bl __aeabi_dmul
mov r2, r0
mov r3, r1
mov r0, r2
mov r1, r3
bl __aeabi_d2iz
mov r3, r0
ldr r1, .L64+108
mov r0, r3
bl debugint
sub r3, fp, #8192
sub r3, r3, #28
mov r2, r3
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1816]
add r3, r3, #1
str r3, [r2, #-1816]
.L35:
sub r3, fp, #8192
sub r3, r3, #28
mov r2, r3
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1816]
lsl r3, r3, #2
add r3, r2, r3
ldr r3, [r3, #-1812]
cmp r3, #0
bne .L37
sub r3, fp, #8192
sub r3, r3, #28
ldr r1, .L64+112
ldr r0, [r3, #-1824]
bl debugint
sub r3, fp, #8192
sub r3, r3, #28
mov r2, r3
mov r3, #0
str r3, [r2, #-1820]
sub r3, fp, #8192
sub r3, r3, #28
mov r2, r3
mov r3, #0
str r3, [r2, #-1816]
b .L38
.L39:
sub r3, fp, #8192
sub r3, r3, #28
ldr r2, [r3, #-1828]
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1824]
mov r1, r2
mov r0, r3
bl __aeabi_idivmod
mov r3, r1
mov r2, r3
sub r3, fp, #4096
sub r3, r3, #28
mov r1, r3
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1820]
lsl r3, r3, #2
add r3, r1, r3
str r2, [r3, #-1908]
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1828]
sub r2, fp, #8192
sub r2, r2, #28
mov r4, r2
sub r2, fp, #8192
sub r2, r2, #28
mov r1, r3
ldr r0, [r2, #-1824]
bl __aeabi_idiv
mov r3, r0
str r3, [r4, #-1824]
sub r3, fp, #8192
sub r3, r3, #28
mov r2, r3
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1820]
add r3, r3, #1
str r3, [r2, #-1820]
.L38:
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1824]
cmp r3, #0
bgt .L39
sub r3, fp, #4096
sub r3, r3, #28
ldr r3, [r3, #-1908]
ldr r1, .L64+116
mov r0, r3
bl debugint
sub r3, fp, #4096
sub r3, r3, #28
ldr r3, [r3, #-1904]
ldr r1, .L64+120
mov r0, r3
bl debugint
sub r3, fp, #4096
sub r3, r3, #28
ldr r3, [r3, #-1900]
ldr r1, .L64+124
mov r0, r3
bl debugint
sub r3, fp, #4096
sub r3, r3, #28
ldr r3, [r3, #-1896]
ldr r1, .L64+128
mov r0, r3
bl debugint
sub r3, fp, #4096
sub r3, r3, #28
ldr r3, [r3, #-1892]
ldr r1, .L64+132
mov r0, r3
bl debugint
sub r3, fp, #8192
sub r3, r3, #28
ldr r1, .L64+88
ldr r0, [r3, #-1820]
bl debugint
b .L40
.L60:
sub r3, fp, #8192
sub r3, r3, #28
mov r2, r3
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1820]
sub r3, r3, #1
str r3, [r2, #-1820]
sub r3, fp, #4096
sub r3, r3, #28
mov r2, r3
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1820]
lsl r3, r3, #2
add r3, r2, r3
ldr r3, [r3, #-1908]
cmp r3, #15
ldrls pc, [pc, r3, asl #2]
b .L63
.L43:
.word .L58
.word .L57
.word .L56
.word .L55
.word .L54
.word .L53
.word .L52
.word .L51
.word .L50
.word .L49
.word .L48
.word .L47
.word .L46
.word .L45
.word .L44
.word .L42
.L42:
sub r2, fp, #1024
sub r2, r2, #8
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1816]
add r3, r2, r3
mov r2, #70
strb r2, [r3]
b .L59
.L44:
sub r2, fp, #1024
sub r2, r2, #8
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1816]
add r3, r2, r3
mov r2, #69
strb r2, [r3]
b .L59
.L45:
sub r2, fp, #1024
sub r2, r2, #8
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1816]
add r3, r2, r3
mov r2, #68
strb r2, [r3]
b .L59
.L46:
sub r2, fp, #1024
sub r2, r2, #8
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1816]
add r3, r2, r3
mov r2, #67
strb r2, [r3]
b .L59
.L47:
sub r2, fp, #1024
sub r2, r2, #8
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1816]
add r3, r2, r3
mov r2, #66
strb r2, [r3]
b .L59
.L48:
sub r2, fp, #1024
sub r2, r2, #8
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1816]
add r3, r2, r3
mov r2, #65
strb r2, [r3]
b .L59
.L49:
sub r2, fp, #1024
sub r2, r2, #8
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1816]
add r3, r2, r3
mov r2, #57
strb r2, [r3]
b .L59
.L50:
sub r2, fp, #1024
sub r2, r2, #8
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1816]
add r3, r2, r3
mov r2, #56
strb r2, [r3]
b .L59
.L51:
sub r2, fp, #1024
sub r2, r2, #8
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1816]
add r3, r2, r3
mov r2, #55
strb r2, [r3]
b .L59
.L52:
sub r2, fp, #1024
sub r2, r2, #8
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1816]
add r3, r2, r3
mov r2, #54
strb r2, [r3]
b .L59
.L53:
sub r2, fp, #1024
sub r2, r2, #8
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1816]
add r3, r2, r3
mov r2, #53
strb r2, [r3]
b .L59
.L54:
sub r2, fp, #1024
sub r2, r2, #8
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1816]
add r3, r2, r3
mov r2, #52
strb r2, [r3]
b .L59
.L55:
sub r2, fp, #1024
sub r2, r2, #8
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1816]
add r3, r2, r3
mov r2, #51
strb r2, [r3]
b .L59
.L56:
sub r2, fp, #1024
sub r2, r2, #8
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1816]
add r3, r2, r3
mov r2, #50
strb r2, [r3]
b .L59
.L57:
sub r2, fp, #1024
sub r2, r2, #8
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1816]
add r3, r2, r3
mov r2, #49
strb r2, [r3]
b .L59
.L58:
sub r2, fp, #1024
sub r2, r2, #8
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1816]
add r3, r2, r3
mov r2, #48
strb r2, [r3]
b .L59
.L63:
nop
.L59:
sub r3, fp, #8192
sub r3, r3, #28
mov r2, r3
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1816]
add r3, r3, #1
str r3, [r2, #-1816]
.L40:
sub r3, fp, #8192
sub r3, r3, #28
ldr r3, [r3, #-1820]
cmp r3, #0
bgt .L60
ldrb r3, [fp, #-1032] @ zero_extendqisi2
ldr r1, .L64+136
mov r0, r3
bl debugint
ldrb r3, [fp, #-1031] @ zero_extendqisi2
ldr r1, .L64+140
mov r0, r3
bl debugint
ldrb r3, [fp, #-1030] @ zero_extendqisi2
ldr r1, .L64+144
mov r0, r3
bl debugint
ldrb r3, [fp, #-1029] @ zero_extendqisi2
ldr r1, .L64+148
mov r0, r3
bl debugint
ldrb r3, [fp, #-1028] @ zero_extendqisi2
ldr r1, .L64+152
mov r0, r3
bl debugint
sub r3, fp, #8192
sub r3, r3, #28
ldr r2, [r3, #-1828]
sub r3, fp, #1024
sub r3, r3, #8
mov r1, r3
ldr r0, .L64+156
bl printf
nop
ldr r3, .L64
ldr r2, [r3]
ldr r3, [fp, #-32]
eors r2, r3, r2
mov r3, #0
beq .L61
bl __stack_chk_fail
.L61:
sub sp, fp, #28
@ sp needed
pop {r4, r5, r6, r7, r8, r9, fp, pc}
.L65:
.align 2
.L64:
.word .LC40
.word .LC2
.word .LC3
.word .LC4
.word .LC5
.word .LC6
.word .LC7
.word .LC8
.word .LC9
.word .LC10
.word .LC11
.word .LC12
.word .LC13
.word .LC14
.word .LC15
.word .LC16
.word .LC17
.word .LC18
.word .LC19
.word .LC20
.word .LC21
.word .LC22
.word .LC23
.word .LC24
.word .LC25
.word 1076101120
.word .LC26
.word .LC27
.word .LC28
.word .LC29
.word .LC30
.word .LC31
.word .LC32
.word .LC33
.word .LC34
.word .LC35
.word .LC36
.word .LC37
.word .LC38
.word .LC39
.size main, .-main
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "73967.c"
.intel_syntax noprefix
.text
.globl checkForSorted
.type checkForSorted, @function
checkForSorted:
.LFB6:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov QWORD PTR -24[rbp], rdi
mov DWORD PTR -28[rbp], esi
mov DWORD PTR -4[rbp], 0
jmp .L2
.L5:
mov eax, DWORD PTR -4[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -24[rbp]
add rax, rdx
mov edx, DWORD PTR [rax]
mov eax, DWORD PTR -4[rbp]
cdqe
add rax, 1
lea rcx, 0[0+rax*4]
mov rax, QWORD PTR -24[rbp]
add rax, rcx
mov eax, DWORD PTR [rax]
cmp edx, eax
jle .L3
mov eax, 1
jmp .L4
.L3:
add DWORD PTR -4[rbp], 1
.L2:
mov eax, DWORD PTR -28[rbp]
sub eax, 1
cmp DWORD PTR -4[rbp], eax
jl .L5
mov eax, 0
.L4:
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size checkForSorted, .-checkForSorted
.globl arrayInitializationOnlyPositive
.type arrayInitializationOnlyPositive, @function
arrayInitializationOnlyPositive:
.LFB7:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 32
mov QWORD PTR -24[rbp], rdi
mov DWORD PTR -28[rbp], esi
mov DWORD PTR -4[rbp], 0
jmp .L7
.L8:
call rand@PLT
mov edx, DWORD PTR -4[rbp]
movsx rdx, edx
lea rcx, 0[0+rdx*4]
mov rdx, QWORD PTR -24[rbp]
add rcx, rdx
movsx rdx, eax
imul rdx, rdx, 1374389535
shr rdx, 32
sar edx, 5
mov esi, eax
sar esi, 31
sub edx, esi
imul esi, edx, 100
sub eax, esi
mov edx, eax
mov DWORD PTR [rcx], edx
add DWORD PTR -4[rbp], 1
.L7:
mov eax, DWORD PTR -4[rbp]
cmp eax, DWORD PTR -28[rbp]
jl .L8
nop
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE7:
.size arrayInitializationOnlyPositive, .-arrayInitializationOnlyPositive
.globl arrayInitialization
.type arrayInitialization, @function
arrayInitialization:
.LFB8:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 32
mov QWORD PTR -24[rbp], rdi
mov DWORD PTR -28[rbp], esi
mov DWORD PTR -4[rbp], 0
jmp .L10
.L11:
call rand@PLT
imul edx, eax, 2000
movsx rcx, edx
mov rax, rcx
sal rax, 30
add rax, rcx
shr rax, 32
sar eax, 29
sar edx, 31
mov ecx, edx
sub eax, ecx
mov edx, eax
mov eax, DWORD PTR -4[rbp]
cdqe
lea rcx, 0[0+rax*4]
mov rax, QWORD PTR -24[rbp]
add rax, rcx
sub edx, 1000
mov DWORD PTR [rax], edx
add DWORD PTR -4[rbp], 1
.L10:
mov eax, DWORD PTR -4[rbp]
cmp eax, DWORD PTR -28[rbp]
jl .L11
nop
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE8:
.size arrayInitialization, .-arrayInitialization
.globl insertionSort
.type insertionSort, @function
insertionSort:
.LFB9:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov QWORD PTR -24[rbp], rdi
mov DWORD PTR -28[rbp], esi
mov DWORD PTR -32[rbp], edx
mov eax, DWORD PTR -28[rbp]
add eax, 1
mov DWORD PTR -12[rbp], eax
jmp .L13
.L17:
mov eax, DWORD PTR -12[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -24[rbp]
add rax, rdx
mov eax, DWORD PTR [rax]
mov DWORD PTR -4[rbp], eax
mov eax, DWORD PTR -12[rbp]
sub eax, 1
mov DWORD PTR -8[rbp], eax
jmp .L14
.L16:
mov eax, DWORD PTR -8[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -24[rbp]
add rax, rdx
mov edx, DWORD PTR -8[rbp]
movsx rdx, edx
add rdx, 1
lea rcx, 0[0+rdx*4]
mov rdx, QWORD PTR -24[rbp]
add rdx, rcx
mov eax, DWORD PTR [rax]
mov DWORD PTR [rdx], eax
sub DWORD PTR -8[rbp], 1
.L14:
cmp DWORD PTR -8[rbp], 0
js .L15
mov eax, DWORD PTR -8[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -24[rbp]
add rax, rdx
mov eax, DWORD PTR [rax]
cmp DWORD PTR -4[rbp], eax
jl .L16
.L15:
mov eax, DWORD PTR -8[rbp]
cdqe
add rax, 1
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -24[rbp]
add rdx, rax
mov eax, DWORD PTR -4[rbp]
mov DWORD PTR [rdx], eax
add DWORD PTR -12[rbp], 1
.L13:
mov eax, DWORD PTR -12[rbp]
cmp eax, DWORD PTR -32[rbp]
jle .L17
nop
nop
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE9:
.size insertionSort, .-insertionSort
.globl partition
.type partition, @function
partition:
.LFB10:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov QWORD PTR -24[rbp], rdi
mov DWORD PTR -28[rbp], esi
mov DWORD PTR -32[rbp], edx
mov eax, DWORD PTR -28[rbp]
mov DWORD PTR -16[rbp], eax
mov eax, DWORD PTR -28[rbp]
mov DWORD PTR -12[rbp], eax
jmp .L19
.L21:
mov eax, DWORD PTR -12[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -24[rbp]
add rax, rdx
mov edx, DWORD PTR [rax]
mov eax, DWORD PTR -32[rbp]
cdqe
lea rcx, 0[0+rax*4]
mov rax, QWORD PTR -24[rbp]
add rax, rcx
mov eax, DWORD PTR [rax]
cmp edx, eax
jge .L20
mov eax, DWORD PTR -16[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -24[rbp]
add rax, rdx
mov eax, DWORD PTR [rax]
mov DWORD PTR -4[rbp], eax
mov eax, DWORD PTR -12[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -24[rbp]
add rax, rdx
mov edx, DWORD PTR -16[rbp]
movsx rdx, edx
lea rcx, 0[0+rdx*4]
mov rdx, QWORD PTR -24[rbp]
add rdx, rcx
mov eax, DWORD PTR [rax]
mov DWORD PTR [rdx], eax
mov eax, DWORD PTR -12[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -24[rbp]
add rdx, rax
mov eax, DWORD PTR -4[rbp]
mov DWORD PTR [rdx], eax
add DWORD PTR -16[rbp], 1
.L20:
add DWORD PTR -12[rbp], 1
.L19:
mov eax, DWORD PTR -12[rbp]
cmp eax, DWORD PTR -32[rbp]
jl .L21
mov eax, DWORD PTR -32[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -24[rbp]
add rax, rdx
mov eax, DWORD PTR [rax]
mov DWORD PTR -8[rbp], eax
mov eax, DWORD PTR -16[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -24[rbp]
add rax, rdx
mov edx, DWORD PTR -32[rbp]
movsx rdx, edx
lea rcx, 0[0+rdx*4]
mov rdx, QWORD PTR -24[rbp]
add rdx, rcx
mov eax, DWORD PTR [rax]
mov DWORD PTR [rdx], eax
mov eax, DWORD PTR -16[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -24[rbp]
add rdx, rax
mov eax, DWORD PTR -8[rbp]
mov DWORD PTR [rdx], eax
mov eax, DWORD PTR -16[rbp]
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE10:
.size partition, .-partition
.globl quickSort
.type quickSort, @function
quickSort:
.LFB11:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 32
mov QWORD PTR -24[rbp], rdi
mov DWORD PTR -28[rbp], esi
mov DWORD PTR -32[rbp], edx
mov eax, DWORD PTR -32[rbp]
sub eax, DWORD PTR -28[rbp]
cmp eax, 9
jg .L24
mov edx, DWORD PTR -32[rbp]
mov ecx, DWORD PTR -28[rbp]
mov rax, QWORD PTR -24[rbp]
mov esi, ecx
mov rdi, rax
call insertionSort
mov eax, 0
jmp .L25
.L24:
mov edx, DWORD PTR -32[rbp]
mov ecx, DWORD PTR -28[rbp]
mov rax, QWORD PTR -24[rbp]
mov esi, ecx
mov rdi, rax
call partition
mov DWORD PTR -4[rbp], eax
mov eax, DWORD PTR -4[rbp]
lea edx, -1[rax]
mov ecx, DWORD PTR -28[rbp]
mov rax, QWORD PTR -24[rbp]
mov esi, ecx
mov rdi, rax
call quickSort
mov eax, DWORD PTR -4[rbp]
lea ecx, 1[rax]
mov edx, DWORD PTR -32[rbp]
mov rax, QWORD PTR -24[rbp]
mov esi, ecx
mov rdi, rax
call quickSort
mov eax, 0
.L25:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE11:
.size quickSort, .-quickSort
.section .rodata
.LC0:
.string "\320\242\320\265\321\201\321\202 1 \320\277\321\200\320\276\320\262\320\260\320\273\320\265\320\275"
.text
.globl testSortOnlyPositiveNums
.type testSortOnlyPositiveNums, @function
testSortOnlyPositiveNums:
.LFB12:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 4016
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
lea rax, -4016[rbp]
mov esi, 1000
mov rdi, rax
call arrayInitializationOnlyPositive
lea rax, -4016[rbp]
mov edx, 999
mov esi, 0
mov rdi, rax
call quickSort
lea rax, -4016[rbp]
mov esi, 1000
mov rdi, rax
call checkForSorted
test eax, eax
je .L27
lea rdi, .LC0[rip]
call puts@PLT
mov eax, 1
jmp .L29
.L27:
mov eax, 0
.L29:
mov rcx, QWORD PTR -8[rbp]
sub rcx, QWORD PTR fs:40
je .L30
call __stack_chk_fail@PLT
.L30:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE12:
.size testSortOnlyPositiveNums, .-testSortOnlyPositiveNums
.section .rodata
.LC1:
.string "\320\242\320\265\321\201\321\202 2 \320\277\321\200\320\276\320\262\320\260\320\273\320\265\320\275"
.text
.globl testSortAllTheSame
.type testSortAllTheSame, @function
testSortAllTheSame:
.LFB13:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 4032
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
mov DWORD PTR -4020[rbp], 0
jmp .L32
.L33:
mov eax, DWORD PTR -4020[rbp]
cdqe
mov DWORD PTR -4016[rbp+rax*4], 1
add DWORD PTR -4020[rbp], 1
.L32:
cmp DWORD PTR -4020[rbp], 999
jle .L33
lea rax, -4016[rbp]
mov edx, 999
mov esi, 0
mov rdi, rax
call quickSort
lea rax, -4016[rbp]
mov esi, 1000
mov rdi, rax
call checkForSorted
test eax, eax
je .L34
lea rdi, .LC1[rip]
call puts@PLT
mov eax, 1
jmp .L36
.L34:
mov eax, 0
.L36:
mov rcx, QWORD PTR -8[rbp]
sub rcx, QWORD PTR fs:40
je .L37
call __stack_chk_fail@PLT
.L37:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE13:
.size testSortAllTheSame, .-testSortAllTheSame
.section .rodata
.LC2:
.string "\320\242\320\265\321\201\321\202 3 \320\277\321\200\320\276\320\262\320\260\320\273\320\265\320\275"
.text
.globl testSortWithNegativePositiveNums
.type testSortWithNegativePositiveNums, @function
testSortWithNegativePositiveNums:
.LFB14:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
lea r11, -36864[rsp]
.LPSRL0:
sub rsp, 4096
or DWORD PTR [rsp], 0
cmp rsp, r11
jne .LPSRL0
sub rsp, 3152
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
lea rax, -40016[rbp]
mov esi, 10000
mov rdi, rax
call arrayInitialization
lea rax, -40016[rbp]
mov edx, 9999
mov esi, 0
mov rdi, rax
call quickSort
lea rax, -40016[rbp]
mov esi, 10000
mov rdi, rax
call checkForSorted
test eax, eax
je .L39
lea rdi, .LC2[rip]
call puts@PLT
mov eax, 1
jmp .L41
.L39:
mov eax, 0
.L41:
mov rcx, QWORD PTR -8[rbp]
sub rcx, QWORD PTR fs:40
je .L42
call __stack_chk_fail@PLT
.L42:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE14:
.size testSortWithNegativePositiveNums, .-testSortWithNegativePositiveNums
.globl tests
.type tests, @function
tests:
.LFB15:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov DWORD PTR -4[rbp], 0
mov eax, 0
call testSortOnlyPositiveNums
add DWORD PTR -4[rbp], eax
mov eax, 0
call testSortAllTheSame
add DWORD PTR -4[rbp], eax
mov eax, 0
call testSortWithNegativePositiveNums
add DWORD PTR -4[rbp], eax
mov eax, DWORD PTR -4[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE15:
.size tests, .-tests
.section .rodata
.LC3:
.string "rus"
.align 8
.LC4:
.string "\320\222\321\201\320\265 \321\202\320\265\321\201\321\202\321\213 \320\262\321\213\320\277\320\276\320\273\320\275\320\265\320\275\321\213 \321\203\321\201\320\277\320\265\321\210\320\275\320\276"
.LC5:
.string "%i "
.text
.globl main
.type main, @function
main:
.LFB16:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 112
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
lea rsi, .LC3[rip]
mov edi, 6
call setlocale@PLT
mov eax, 0
call tests
test eax, eax
je .L46
mov eax, 1
jmp .L47
.L46:
lea rdi, .LC4[rip]
call puts@PLT
lea rax, -96[rbp]
mov esi, 20
mov rdi, rax
call arrayInitializationOnlyPositive
lea rax, -96[rbp]
mov edx, 19
mov esi, 0
mov rdi, rax
call quickSort
mov DWORD PTR -100[rbp], 0
jmp .L48
.L49:
mov eax, DWORD PTR -100[rbp]
cdqe
mov eax, DWORD PTR -96[rbp+rax*4]
mov esi, eax
lea rdi, .LC5[rip]
mov eax, 0
call printf@PLT
add DWORD PTR -100[rbp], 1
.L48:
cmp DWORD PTR -100[rbp], 19
jle .L49
mov eax, 0
.L47:
mov rcx, QWORD PTR -8[rbp]
sub rcx, QWORD PTR fs:40
je .L50
call __stack_chk_fail@PLT
.L50:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE16:
.size main, .-main
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "73967.c"
.text
.align 2
.global checkForSorted
.syntax unified
.arm
.fpu softvfp
.type checkForSorted, %function
checkForSorted:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #20
str r0, [fp, #-16]
str r1, [fp, #-20]
mov r3, #0
str r3, [fp, #-8]
b .L2
.L5:
ldr r3, [fp, #-8]
lsl r3, r3, #2
ldr r2, [fp, #-16]
add r3, r2, r3
ldr r2, [r3]
ldr r3, [fp, #-8]
add r3, r3, #1
lsl r3, r3, #2
ldr r1, [fp, #-16]
add r3, r1, r3
ldr r3, [r3]
cmp r2, r3
ble .L3
mov r3, #1
b .L4
.L3:
ldr r3, [fp, #-8]
add r3, r3, #1
str r3, [fp, #-8]
.L2:
ldr r3, [fp, #-20]
sub r3, r3, #1
ldr r2, [fp, #-8]
cmp r2, r3
blt .L5
mov r3, #0
.L4:
mov r0, r3
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size checkForSorted, .-checkForSorted
.align 2
.global arrayInitializationOnlyPositive
.syntax unified
.arm
.fpu softvfp
.type arrayInitializationOnlyPositive, %function
arrayInitializationOnlyPositive:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #16
str r0, [fp, #-16]
str r1, [fp, #-20]
mov r3, #0
str r3, [fp, #-8]
b .L7
.L8:
bl rand
mov r1, r0
ldr r3, [fp, #-8]
lsl r3, r3, #2
ldr r2, [fp, #-16]
add r0, r2, r3
ldr r3, .L9
smull r2, r3, r1, r3
asr r2, r3, #5
asr r3, r1, #31
sub r2, r2, r3
mov r3, r2
lsl r3, r3, #2
add r3, r3, r2
lsl r2, r3, #2
add r3, r3, r2
lsl r3, r3, #2
sub r2, r1, r3
str r2, [r0]
ldr r3, [fp, #-8]
add r3, r3, #1
str r3, [fp, #-8]
.L7:
ldr r2, [fp, #-8]
ldr r3, [fp, #-20]
cmp r2, r3
blt .L8
nop
nop
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L10:
.align 2
.L9:
.word 1374389535
.size arrayInitializationOnlyPositive, .-arrayInitializationOnlyPositive
.align 2
.global arrayInitialization
.syntax unified
.arm
.fpu softvfp
.type arrayInitialization, %function
arrayInitialization:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #16
str r0, [fp, #-16]
str r1, [fp, #-20]
mov r3, #0
str r3, [fp, #-8]
b .L12
.L13:
bl rand
mov r2, r0
mov r3, r2
lsl r3, r3, #5
sub r3, r3, r2
lsl r3, r3, #2
add r3, r3, r2
lsl r3, r3, #4
mov r2, #1073741825
smull r1, r2, r3, r2
asr r2, r2, #29
asr r3, r3, #31
sub r2, r2, r3
ldr r3, [fp, #-8]
lsl r3, r3, #2
ldr r1, [fp, #-16]
add r3, r1, r3
sub r2, r2, #1000
str r2, [r3]
ldr r3, [fp, #-8]
add r3, r3, #1
str r3, [fp, #-8]
.L12:
ldr r2, [fp, #-8]
ldr r3, [fp, #-20]
cmp r2, r3
blt .L13
nop
nop
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.size arrayInitialization, .-arrayInitialization
.align 2
.global insertionSort
.syntax unified
.arm
.fpu softvfp
.type insertionSort, %function
insertionSort:
@ args = 0, pretend = 0, frame = 32
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #36
str r0, [fp, #-24]
str r1, [fp, #-28]
str r2, [fp, #-32]
ldr r3, [fp, #-28]
add r3, r3, #1
str r3, [fp, #-16]
b .L15
.L19:
ldr r3, [fp, #-16]
lsl r3, r3, #2
ldr r2, [fp, #-24]
add r3, r2, r3
ldr r3, [r3]
str r3, [fp, #-8]
ldr r3, [fp, #-16]
sub r3, r3, #1
str r3, [fp, #-12]
b .L16
.L18:
ldr r3, [fp, #-12]
lsl r3, r3, #2
ldr r2, [fp, #-24]
add r2, r2, r3
ldr r3, [fp, #-12]
add r3, r3, #1
lsl r3, r3, #2
ldr r1, [fp, #-24]
add r3, r1, r3
ldr r2, [r2]
str r2, [r3]
ldr r3, [fp, #-12]
sub r3, r3, #1
str r3, [fp, #-12]
.L16:
ldr r3, [fp, #-12]
cmp r3, #0
blt .L17
ldr r3, [fp, #-12]
lsl r3, r3, #2
ldr r2, [fp, #-24]
add r3, r2, r3
ldr r3, [r3]
ldr r2, [fp, #-8]
cmp r2, r3
blt .L18
.L17:
ldr r3, [fp, #-12]
add r3, r3, #1
lsl r3, r3, #2
ldr r2, [fp, #-24]
add r3, r2, r3
ldr r2, [fp, #-8]
str r2, [r3]
ldr r3, [fp, #-16]
add r3, r3, #1
str r3, [fp, #-16]
.L15:
ldr r2, [fp, #-16]
ldr r3, [fp, #-32]
cmp r2, r3
ble .L19
nop
nop
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size insertionSort, .-insertionSort
.align 2
.global partition
.syntax unified
.arm
.fpu softvfp
.type partition, %function
partition:
@ args = 0, pretend = 0, frame = 32
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #36
str r0, [fp, #-24]
str r1, [fp, #-28]
str r2, [fp, #-32]
ldr r3, [fp, #-28]
str r3, [fp, #-20]
ldr r3, [fp, #-28]
str r3, [fp, #-16]
b .L21
.L23:
ldr r3, [fp, #-16]
lsl r3, r3, #2
ldr r2, [fp, #-24]
add r3, r2, r3
ldr r2, [r3]
ldr r3, [fp, #-32]
lsl r3, r3, #2
ldr r1, [fp, #-24]
add r3, r1, r3
ldr r3, [r3]
cmp r2, r3
bge .L22
ldr r3, [fp, #-20]
lsl r3, r3, #2
ldr r2, [fp, #-24]
add r3, r2, r3
ldr r3, [r3]
str r3, [fp, #-8]
ldr r3, [fp, #-16]
lsl r3, r3, #2
ldr r2, [fp, #-24]
add r2, r2, r3
ldr r3, [fp, #-20]
lsl r3, r3, #2
ldr r1, [fp, #-24]
add r3, r1, r3
ldr r2, [r2]
str r2, [r3]
ldr r3, [fp, #-16]
lsl r3, r3, #2
ldr r2, [fp, #-24]
add r3, r2, r3
ldr r2, [fp, #-8]
str r2, [r3]
ldr r3, [fp, #-20]
add r3, r3, #1
str r3, [fp, #-20]
.L22:
ldr r3, [fp, #-16]
add r3, r3, #1
str r3, [fp, #-16]
.L21:
ldr r2, [fp, #-16]
ldr r3, [fp, #-32]
cmp r2, r3
blt .L23
ldr r3, [fp, #-32]
lsl r3, r3, #2
ldr r2, [fp, #-24]
add r3, r2, r3
ldr r3, [r3]
str r3, [fp, #-12]
ldr r3, [fp, #-20]
lsl r3, r3, #2
ldr r2, [fp, #-24]
add r2, r2, r3
ldr r3, [fp, #-32]
lsl r3, r3, #2
ldr r1, [fp, #-24]
add r3, r1, r3
ldr r2, [r2]
str r2, [r3]
ldr r3, [fp, #-20]
lsl r3, r3, #2
ldr r2, [fp, #-24]
add r3, r2, r3
ldr r2, [fp, #-12]
str r2, [r3]
ldr r3, [fp, #-20]
mov r0, r3
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size partition, .-partition
.align 2
.global quickSort
.syntax unified
.arm
.fpu softvfp
.type quickSort, %function
quickSort:
@ args = 0, pretend = 0, frame = 24
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #24
str r0, [fp, #-16]
str r1, [fp, #-20]
str r2, [fp, #-24]
ldr r2, [fp, #-24]
ldr r3, [fp, #-20]
sub r3, r2, r3
cmp r3, #9
bgt .L26
ldr r2, [fp, #-24]
ldr r1, [fp, #-20]
ldr r0, [fp, #-16]
bl insertionSort
mov r3, #0
b .L27
.L26:
ldr r2, [fp, #-24]
ldr r1, [fp, #-20]
ldr r0, [fp, #-16]
bl partition
str r0, [fp, #-8]
ldr r3, [fp, #-8]
sub r3, r3, #1
mov r2, r3
ldr r1, [fp, #-20]
ldr r0, [fp, #-16]
bl quickSort
ldr r3, [fp, #-8]
add r3, r3, #1
ldr r2, [fp, #-24]
mov r1, r3
ldr r0, [fp, #-16]
bl quickSort
mov r3, #0
.L27:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.size quickSort, .-quickSort
.section .rodata
.align 2
.LC0:
.ascii "\320\242\320\265\321\201\321\202 1 \320\277\321\200"
.ascii "\320\276\320\262\320\260\320\273\320\265\320\275\000"
.align 2
.LC1:
.word __stack_chk_guard
.text
.align 2
.global testSortOnlyPositiveNums
.syntax unified
.arm
.fpu softvfp
.type testSortOnlyPositiveNums, %function
testSortOnlyPositiveNums:
@ args = 0, pretend = 0, frame = 4008
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #4000
sub sp, sp, #8
ldr r3, .L33
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
sub r3, fp, #4000
sub r3, r3, #4
sub r3, r3, #4
mov r1, #1000
mov r0, r3
bl arrayInitializationOnlyPositive
sub r3, fp, #4000
sub r3, r3, #4
sub r3, r3, #4
ldr r2, .L33+4
mov r1, #0
mov r0, r3
bl quickSort
sub r3, fp, #4000
sub r3, r3, #4
sub r3, r3, #4
mov r1, #1000
mov r0, r3
bl checkForSorted
mov r3, r0
cmp r3, #0
beq .L29
ldr r0, .L33+8
bl puts
mov r3, #1
b .L31
.L29:
mov r3, #0
.L31:
ldr r2, .L33
ldr r1, [r2]
ldr r2, [fp, #-8]
eors r1, r2, r1
mov r2, #0
beq .L32
bl __stack_chk_fail
.L32:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L34:
.align 2
.L33:
.word .LC1
.word 999
.word .LC0
.size testSortOnlyPositiveNums, .-testSortOnlyPositiveNums
.section .rodata
.align 2
.LC2:
.ascii "\320\242\320\265\321\201\321\202 2 \320\277\321\200"
.ascii "\320\276\320\262\320\260\320\273\320\265\320\275\000"
.align 2
.LC3:
.word __stack_chk_guard
.text
.align 2
.global testSortAllTheSame
.syntax unified
.arm
.fpu softvfp
.type testSortAllTheSame, %function
testSortAllTheSame:
@ args = 0, pretend = 0, frame = 4008
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #4000
sub sp, sp, #8
ldr r3, .L42
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
mov r3, #0
str r3, [fp, #-4012]
b .L36
.L37:
ldr r3, [fp, #-4012]
lsl r3, r3, #2
sub r2, fp, #4
add r3, r2, r3
mov r2, #1
str r2, [r3, #-4004]
ldr r3, [fp, #-4012]
add r3, r3, #1
str r3, [fp, #-4012]
.L36:
ldr r3, [fp, #-4012]
cmp r3, #1000
blt .L37
sub r3, fp, #4000
sub r3, r3, #4
sub r3, r3, #4
ldr r2, .L42+4
mov r1, #0
mov r0, r3
bl quickSort
sub r3, fp, #4000
sub r3, r3, #4
sub r3, r3, #4
mov r1, #1000
mov r0, r3
bl checkForSorted
mov r3, r0
cmp r3, #0
beq .L38
ldr r0, .L42+8
bl puts
mov r3, #1
b .L40
.L38:
mov r3, #0
.L40:
ldr r2, .L42
ldr r1, [r2]
ldr r2, [fp, #-8]
eors r1, r2, r1
mov r2, #0
beq .L41
bl __stack_chk_fail
.L41:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L43:
.align 2
.L42:
.word .LC3
.word 999
.word .LC2
.size testSortAllTheSame, .-testSortAllTheSame
.section .rodata
.align 2
.LC4:
.ascii "\320\242\320\265\321\201\321\202 3 \320\277\321\200"
.ascii "\320\276\320\262\320\260\320\273\320\265\320\275\000"
.align 2
.LC5:
.word __stack_chk_guard
.text
.align 2
.global testSortWithNegativePositiveNums
.syntax unified
.arm
.fpu softvfp
.type testSortWithNegativePositiveNums, %function
testSortWithNegativePositiveNums:
@ args = 0, pretend = 0, frame = 40008
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #39936
sub sp, sp, #72
ldr r3, .L49
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
sub r3, fp, #39936
sub r3, r3, #4
sub r3, r3, #68
ldr r1, .L49+4
mov r0, r3
bl arrayInitialization
sub r3, fp, #39936
sub r3, r3, #4
sub r3, r3, #68
ldr r2, .L49+8
mov r1, #0
mov r0, r3
bl quickSort
sub r3, fp, #39936
sub r3, r3, #4
sub r3, r3, #68
ldr r1, .L49+4
mov r0, r3
bl checkForSorted
mov r3, r0
cmp r3, #0
beq .L45
ldr r0, .L49+12
bl puts
mov r3, #1
b .L47
.L45:
mov r3, #0
.L47:
ldr r2, .L49
ldr r1, [r2]
ldr r2, [fp, #-8]
eors r1, r2, r1
mov r2, #0
beq .L48
bl __stack_chk_fail
.L48:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L50:
.align 2
.L49:
.word .LC5
.word 10000
.word 9999
.word .LC4
.size testSortWithNegativePositiveNums, .-testSortWithNegativePositiveNums
.align 2
.global tests
.syntax unified
.arm
.fpu softvfp
.type tests, %function
tests:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #8
mov r3, #0
str r3, [fp, #-8]
bl testSortOnlyPositiveNums
mov r2, r0
ldr r3, [fp, #-8]
add r3, r3, r2
str r3, [fp, #-8]
bl testSortAllTheSame
mov r2, r0
ldr r3, [fp, #-8]
add r3, r3, r2
str r3, [fp, #-8]
bl testSortWithNegativePositiveNums
mov r2, r0
ldr r3, [fp, #-8]
add r3, r3, r2
str r3, [fp, #-8]
ldr r3, [fp, #-8]
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.size tests, .-tests
.section .rodata
.align 2
.LC6:
.ascii "rus\000"
.align 2
.LC7:
.ascii "\320\222\321\201\320\265 \321\202\320\265\321\201\321"
.ascii "\202\321\213 \320\262\321\213\320\277\320\276\320\273"
.ascii "\320\275\320\265\320\275\321\213 \321\203\321\201\320"
.ascii "\277\320\265\321\210\320\275\320\276\000"
.align 2
.LC8:
.ascii "%i \000"
.align 2
.LC9:
.word __stack_chk_guard
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 88
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #88
ldr r3, .L59
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
ldr r1, .L59+4
mov r0, #6
bl setlocale
bl tests
mov r3, r0
cmp r3, #0
beq .L54
mov r3, #1
b .L55
.L54:
ldr r0, .L59+8
bl puts
sub r3, fp, #88
mov r1, #20
mov r0, r3
bl arrayInitializationOnlyPositive
sub r3, fp, #88
mov r2, #19
mov r1, #0
mov r0, r3
bl quickSort
mov r3, #0
str r3, [fp, #-92]
b .L56
.L57:
ldr r3, [fp, #-92]
lsl r3, r3, #2
sub r2, fp, #4
add r3, r2, r3
ldr r3, [r3, #-84]
mov r1, r3
ldr r0, .L59+12
bl printf
ldr r3, [fp, #-92]
add r3, r3, #1
str r3, [fp, #-92]
.L56:
ldr r3, [fp, #-92]
cmp r3, #19
ble .L57
mov r3, #0
.L55:
ldr r2, .L59
ldr r1, [r2]
ldr r2, [fp, #-8]
eors r1, r2, r1
mov r2, #0
beq .L58
bl __stack_chk_fail
.L58:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L60:
.align 2
.L59:
.word .LC9
.word .LC6
.word .LC7
.word .LC8
.size main, .-main
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "118704.c"
.intel_syntax noprefix
.text
.globl merge_sorted_arrays
.type merge_sorted_arrays, @function
merge_sorted_arrays:
.LFB6:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 64
mov QWORD PTR -40[rbp], rdi
mov QWORD PTR -48[rbp], rsi
mov QWORD PTR -56[rbp], rdx
mov QWORD PTR -64[rbp], rcx
mov QWORD PTR -32[rbp], 0
mov QWORD PTR -24[rbp], 0
mov QWORD PTR -16[rbp], 0
mov rdx, QWORD PTR -48[rbp]
mov rax, QWORD PTR -64[rbp]
add rax, rdx
mov esi, 4
mov rdi, rax
call calloc@PLT
mov QWORD PTR -8[rbp], rax
jmp .L2
.L6:
mov rax, QWORD PTR -32[rbp]
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -40[rbp]
add rax, rdx
mov edx, DWORD PTR [rax]
mov rax, QWORD PTR -24[rbp]
lea rcx, 0[0+rax*4]
mov rax, QWORD PTR -56[rbp]
add rax, rcx
mov eax, DWORD PTR [rax]
cmp edx, eax
jg .L3
mov rax, QWORD PTR -32[rbp]
lea rdx, 1[rax]
mov QWORD PTR -32[rbp], rdx
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -40[rbp]
add rax, rdx
mov eax, DWORD PTR [rax]
jmp .L4
.L3:
mov rax, QWORD PTR -24[rbp]
lea rdx, 1[rax]
mov QWORD PTR -24[rbp], rdx
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -56[rbp]
add rax, rdx
mov eax, DWORD PTR [rax]
.L4:
mov rdx, QWORD PTR -16[rbp]
lea rcx, 1[rdx]
mov QWORD PTR -16[rbp], rcx
lea rcx, 0[0+rdx*4]
mov rdx, QWORD PTR -8[rbp]
add rdx, rcx
mov DWORD PTR [rdx], eax
.L2:
mov rax, QWORD PTR -32[rbp]
cmp rax, QWORD PTR -48[rbp]
jnb .L7
mov rax, QWORD PTR -24[rbp]
cmp rax, QWORD PTR -64[rbp]
jb .L6
jmp .L7
.L8:
mov rax, QWORD PTR -32[rbp]
lea rdx, 1[rax]
mov QWORD PTR -32[rbp], rdx
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -40[rbp]
lea rcx, [rdx+rax]
mov rax, QWORD PTR -16[rbp]
lea rdx, 1[rax]
mov QWORD PTR -16[rbp], rdx
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -8[rbp]
add rdx, rax
mov eax, DWORD PTR [rcx]
mov DWORD PTR [rdx], eax
.L7:
mov rax, QWORD PTR -32[rbp]
cmp rax, QWORD PTR -48[rbp]
jb .L8
jmp .L9
.L10:
mov rax, QWORD PTR -24[rbp]
lea rdx, 1[rax]
mov QWORD PTR -24[rbp], rdx
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -56[rbp]
lea rcx, [rdx+rax]
mov rax, QWORD PTR -16[rbp]
lea rdx, 1[rax]
mov QWORD PTR -16[rbp], rdx
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -8[rbp]
add rdx, rax
mov eax, DWORD PTR [rcx]
mov DWORD PTR [rdx], eax
.L9:
mov rax, QWORD PTR -24[rbp]
cmp rax, QWORD PTR -64[rbp]
jb .L10
mov rax, QWORD PTR -8[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size merge_sorted_arrays, .-merge_sorted_arrays
.section .rodata
.align 8
.LC0:
.string "\n The new array after merging the two arrays is ..."
.LC1:
.string "%d "
.text
.globl main
.type main, @function
main:
.LFB7:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 80
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
mov DWORD PTR -32[rbp], 2
mov DWORD PTR -28[rbp], 7
mov DWORD PTR -24[rbp], 8
mov DWORD PTR -20[rbp], 12
mov DWORD PTR -44[rbp], -1
mov DWORD PTR -40[rbp], 0
mov DWORD PTR -36[rbp], 10
lea rax, -44[rbp]
mov QWORD PTR -72[rbp], rax
lea rax, -32[rbp]
mov QWORD PTR -64[rbp], rax
mov rdx, QWORD PTR -64[rbp]
mov rax, QWORD PTR -72[rbp]
mov ecx, 4
mov esi, 3
mov rdi, rax
call merge_sorted_arrays
mov QWORD PTR -56[rbp], rax
lea rdi, .LC0[rip]
call puts@PLT
mov QWORD PTR -80[rbp], 0
jmp .L13
.L14:
mov rax, QWORD PTR -80[rbp]
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -56[rbp]
add rax, rdx
mov eax, DWORD PTR [rax]
mov esi, eax
lea rdi, .LC1[rip]
mov eax, 0
call printf@PLT
add QWORD PTR -80[rbp], 1
.L13:
cmp QWORD PTR -80[rbp], 6
jbe .L14
mov eax, 0
mov rcx, QWORD PTR -8[rbp]
sub rcx, QWORD PTR fs:40
je .L16
call __stack_chk_fail@PLT
.L16:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE7:
.size main, .-main
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "118704.c"
.text
.align 2
.global merge_sorted_arrays
.syntax unified
.arm
.fpu softvfp
.type merge_sorted_arrays, %function
merge_sorted_arrays:
@ args = 0, pretend = 0, frame = 32
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #32
str r0, [fp, #-24]
str r1, [fp, #-28]
str r2, [fp, #-32]
str r3, [fp, #-36]
mov r3, #0
str r3, [fp, #-20]
mov r3, #0
str r3, [fp, #-16]
mov r3, #0
str r3, [fp, #-12]
ldr r2, [fp, #-28]
ldr r3, [fp, #-36]
add r3, r2, r3
mov r1, #4
mov r0, r3
bl calloc
mov r3, r0
str r3, [fp, #-8]
b .L2
.L6:
ldr r3, [fp, #-20]
lsl r3, r3, #2
ldr r2, [fp, #-24]
add r3, r2, r3
ldr r2, [r3]
ldr r3, [fp, #-16]
lsl r3, r3, #2
ldr r1, [fp, #-32]
add r3, r1, r3
ldr r3, [r3]
cmp r2, r3
bgt .L3
ldr r3, [fp, #-20]
add r2, r3, #1
str r2, [fp, #-20]
lsl r3, r3, #2
ldr r2, [fp, #-24]
add r3, r2, r3
ldr r3, [r3]
b .L4
.L3:
ldr r3, [fp, #-16]
add r2, r3, #1
str r2, [fp, #-16]
lsl r3, r3, #2
ldr r2, [fp, #-32]
add r3, r2, r3
ldr r3, [r3]
.L4:
ldr r2, [fp, #-12]
add r1, r2, #1
str r1, [fp, #-12]
lsl r2, r2, #2
ldr r1, [fp, #-8]
add r2, r1, r2
str r3, [r2]
.L2:
ldr r2, [fp, #-20]
ldr r3, [fp, #-28]
cmp r2, r3
bcs .L7
ldr r2, [fp, #-16]
ldr r3, [fp, #-36]
cmp r2, r3
bcc .L6
b .L7
.L8:
ldr r3, [fp, #-20]
add r2, r3, #1
str r2, [fp, #-20]
lsl r3, r3, #2
ldr r2, [fp, #-24]
add r2, r2, r3
ldr r3, [fp, #-12]
add r1, r3, #1
str r1, [fp, #-12]
lsl r3, r3, #2
ldr r1, [fp, #-8]
add r3, r1, r3
ldr r2, [r2]
str r2, [r3]
.L7:
ldr r2, [fp, #-20]
ldr r3, [fp, #-28]
cmp r2, r3
bcc .L8
b .L9
.L10:
ldr r3, [fp, #-16]
add r2, r3, #1
str r2, [fp, #-16]
lsl r3, r3, #2
ldr r2, [fp, #-32]
add r2, r2, r3
ldr r3, [fp, #-12]
add r1, r3, #1
str r1, [fp, #-12]
lsl r3, r3, #2
ldr r1, [fp, #-8]
add r3, r1, r3
ldr r2, [r2]
str r2, [r3]
.L9:
ldr r2, [fp, #-16]
ldr r3, [fp, #-36]
cmp r2, r3
bcc .L10
ldr r3, [fp, #-8]
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.size merge_sorted_arrays, .-merge_sorted_arrays
.section .rodata
.align 2
.LC2:
.ascii "\012 The new array after merging the two arrays is "
.ascii "...\000"
.align 2
.LC3:
.ascii "%d \000"
.align 2
.LC0:
.word 2
.word 7
.word 8
.word 12
.align 2
.LC1:
.word -1
.word 0
.word 10
.align 2
.LC4:
.word __stack_chk_guard
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 48
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #48
ldr r3, .L17
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
ldr r3, .L17+4
sub ip, fp, #24
ldm r3, {r0, r1, r2, r3}
stm ip, {r0, r1, r2, r3}
ldr r2, .L17+8
sub r3, fp, #36
ldm r2, {r0, r1, r2}
stm r3, {r0, r1, r2}
sub r3, fp, #36
str r3, [fp, #-48]
sub r3, fp, #24
str r3, [fp, #-44]
mov r3, #4
ldr r2, [fp, #-44]
mov r1, #3
ldr r0, [fp, #-48]
bl merge_sorted_arrays
str r0, [fp, #-40]
ldr r0, .L17+12
bl puts
mov r3, #0
str r3, [fp, #-52]
b .L13
.L14:
ldr r3, [fp, #-52]
lsl r3, r3, #2
ldr r2, [fp, #-40]
add r3, r2, r3
ldr r3, [r3]
mov r1, r3
ldr r0, .L17+16
bl printf
ldr r3, [fp, #-52]
add r3, r3, #1
str r3, [fp, #-52]
.L13:
ldr r3, [fp, #-52]
cmp r3, #6
bls .L14
mov r3, #0
ldr r2, .L17
ldr r1, [r2]
ldr r2, [fp, #-8]
eors r1, r2, r1
mov r2, #0
beq .L16
bl __stack_chk_fail
.L16:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L18:
.align 2
.L17:
.word .LC4
.word .LC0
.word .LC1
.word .LC2
.word .LC3
.size main, .-main
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "121286.c"
.intel_syntax noprefix
.text
.globl __VERIFIER_assert
.type __VERIFIER_assert, @function
__VERIFIER_assert:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov DWORD PTR -4[rbp], edi
cmp DWORD PTR -4[rbp], 0
jne .L4
nop
.L3:
mov eax, 0
call __VERIFIER_error@PLT
.L4:
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size __VERIFIER_assert, .-__VERIFIER_assert
.globl main
.type main, @function
main:
.LFB1:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 1024
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
mov DWORD PTR -1020[rbp], 0
mov DWORD PTR -1016[rbp], 0
jmp .L6
.L8:
mov eax, DWORD PTR -1016[rbp]
cdqe
mov eax, DWORD PTR -1008[rbp+rax*4]
cmp DWORD PTR -1020[rbp], eax
jge .L7
mov eax, DWORD PTR -1016[rbp]
cdqe
mov eax, DWORD PTR -1008[rbp+rax*4]
mov DWORD PTR -1020[rbp], eax
.L7:
add DWORD PTR -1016[rbp], 1
.L6:
cmp DWORD PTR -1016[rbp], 249
jle .L8
mov DWORD PTR -1012[rbp], 0
jmp .L9
.L10:
mov eax, DWORD PTR -1012[rbp]
cdqe
mov eax, DWORD PTR -1008[rbp+rax*4]
cmp DWORD PTR -1020[rbp], eax
setge al
movzx eax, al
mov edi, eax
call __VERIFIER_assert
add DWORD PTR -1012[rbp], 1
.L9:
cmp DWORD PTR -1012[rbp], 249
jle .L10
mov eax, 0
mov rdx, QWORD PTR -8[rbp]
sub rdx, QWORD PTR fs:40
je .L12
call __stack_chk_fail@PLT
.L12:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE1:
.size main, .-main
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "121286.c"
.text
.align 2
.global __VERIFIER_assert
.syntax unified
.arm
.fpu softvfp
.type __VERIFIER_assert, %function
__VERIFIER_assert:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #8
str r0, [fp, #-8]
ldr r3, [fp, #-8]
cmp r3, #0
bne .L4
nop
.L3:
bl __VERIFIER_error
.L4:
nop
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.size __VERIFIER_assert, .-__VERIFIER_assert
.section .rodata
.align 2
.LC0:
.word __stack_chk_guard
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 1016
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #1016
ldr r3, .L13
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
mov r3, #0
str r3, [fp, #-1020]
mov r3, #0
str r3, [fp, #-1016]
b .L6
.L8:
ldr r3, [fp, #-1016]
lsl r3, r3, #2
sub r2, fp, #4
add r3, r2, r3
ldr r3, [r3, #-1004]
ldr r2, [fp, #-1020]
cmp r2, r3
bge .L7
ldr r3, [fp, #-1016]
lsl r3, r3, #2
sub r2, fp, #4
add r3, r2, r3
ldr r3, [r3, #-1004]
str r3, [fp, #-1020]
.L7:
ldr r3, [fp, #-1016]
add r3, r3, #1
str r3, [fp, #-1016]
.L6:
ldr r3, [fp, #-1016]
cmp r3, #249
ble .L8
mov r3, #0
str r3, [fp, #-1012]
b .L9
.L10:
ldr r3, [fp, #-1012]
lsl r3, r3, #2
sub r2, fp, #4
add r3, r2, r3
ldr r3, [r3, #-1004]
ldr r2, [fp, #-1020]
cmp r2, r3
movge r3, #1
movlt r3, #0
and r3, r3, #255
mov r0, r3
bl __VERIFIER_assert
ldr r3, [fp, #-1012]
add r3, r3, #1
str r3, [fp, #-1012]
.L9:
ldr r3, [fp, #-1012]
cmp r3, #249
ble .L10
mov r3, #0
ldr r2, .L13
ldr r1, [r2]
ldr r2, [fp, #-8]
eors r1, r2, r1
mov r2, #0
beq .L12
bl __stack_chk_fail
.L12:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L14:
.align 2
.L13:
.word .LC0
.size main, .-main
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "566422.c"
.intel_syntax noprefix
.text
.section .rodata
.align 8
.LC0:
.string "\345\234\250\344\275\215\347\275\256\344\270\272 %d \347\232\204\345\234\260\346\226\271\347\232\204\345\210\273\345\272\246\351\253\230\345\272\246\344\270\272 %d\n"
.text
.globl mark
.type mark, @function
mark:
.LFB6:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov DWORD PTR -4[rbp], edi
mov DWORD PTR -8[rbp], esi
mov edx, DWORD PTR -8[rbp]
mov eax, DWORD PTR -4[rbp]
mov esi, eax
lea rdi, .LC0[rip]
mov eax, 0
call printf@PLT
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size mark, .-mark
.globl rule1
.type rule1, @function
rule1:
.LFB7:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 32
mov DWORD PTR -20[rbp], edi
mov DWORD PTR -24[rbp], esi
mov DWORD PTR -28[rbp], edx
mov DWORD PTR -4[rbp], 1
mov DWORD PTR -8[rbp], 1
jmp .L3
.L6:
mov DWORD PTR -12[rbp], 0
jmp .L4
.L5:
mov edx, DWORD PTR -20[rbp]
mov eax, DWORD PTR -8[rbp]
add edx, eax
mov eax, DWORD PTR -12[rbp]
add edx, eax
mov eax, DWORD PTR -4[rbp]
mov esi, eax
mov edi, edx
call mark
mov eax, DWORD PTR -8[rbp]
add eax, eax
add DWORD PTR -12[rbp], eax
.L4:
mov edx, DWORD PTR -20[rbp]
mov eax, DWORD PTR -8[rbp]
add edx, eax
mov eax, DWORD PTR -12[rbp]
add eax, edx
cmp DWORD PTR -24[rbp], eax
jge .L5
sal DWORD PTR -8[rbp]
add DWORD PTR -4[rbp], 1
.L3:
mov eax, DWORD PTR -4[rbp]
cmp eax, DWORD PTR -28[rbp]
jle .L6
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE7:
.size rule1, .-rule1
.globl rule2
.type rule2, @function
rule2:
.LFB8:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 32
mov DWORD PTR -20[rbp], edi
mov DWORD PTR -24[rbp], esi
mov DWORD PTR -16[rbp], 1
jmp .L8
.L11:
mov eax, DWORD PTR -16[rbp]
sub eax, 1
pxor xmm0, xmm0
cvtsi2sd xmm0, eax
mov rax, QWORD PTR .LC1[rip]
movapd xmm1, xmm0
movq xmm0, rax
call pow@PLT
cvttsd2si eax, xmm0
mov DWORD PTR -8[rbp], eax
pxor xmm0, xmm0
cvtsi2sd xmm0, DWORD PTR -16[rbp]
mov rax, QWORD PTR .LC1[rip]
movapd xmm1, xmm0
movq xmm0, rax
call pow@PLT
cvttsd2si eax, xmm0
mov DWORD PTR -4[rbp], eax
mov eax, DWORD PTR -8[rbp]
mov DWORD PTR -12[rbp], eax
jmp .L9
.L10:
mov edx, DWORD PTR -16[rbp]
mov eax, DWORD PTR -12[rbp]
mov esi, edx
mov edi, eax
call mark
mov eax, DWORD PTR -4[rbp]
add DWORD PTR -12[rbp], eax
.L9:
mov eax, DWORD PTR -12[rbp]
cmp eax, DWORD PTR -20[rbp]
jl .L10
add DWORD PTR -16[rbp], 1
.L8:
mov eax, DWORD PTR -16[rbp]
cmp eax, DWORD PTR -24[rbp]
jle .L11
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE8:
.size rule2, .-rule2
.section .rodata
.LC2:
.string "\n"
.text
.globl main
.type main, @function
main:
.LFB9:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov rax, QWORD PTR stdout[rip]
mov esi, 0
mov rdi, rax
call setbuf@PLT
mov edx, 3
mov esi, 8
mov edi, 0
call rule1
lea rdi, .LC2[rip]
call puts@PLT
mov esi, 3
mov edi, 8
call rule2
mov eax, 0
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE9:
.size main, .-main
.section .rodata
.align 8
.LC1:
.long 0
.long 1073741824
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "566422.c"
.text
.section .rodata
.align 2
.LC0:
.ascii "\345\234\250\344\275\215\347\275\256\344\270\272 %d"
.ascii " \347\232\204\345\234\260\346\226\271\347\232\204\345"
.ascii "\210\273\345\272\246\351\253\230\345\272\246\344\270"
.ascii "\272 %d\012\000"
.text
.align 2
.global mark
.syntax unified
.arm
.fpu softvfp
.type mark, %function
mark:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #8
str r0, [fp, #-8]
str r1, [fp, #-12]
ldr r2, [fp, #-12]
ldr r1, [fp, #-8]
ldr r0, .L2
bl printf
nop
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L3:
.align 2
.L2:
.word .LC0
.size mark, .-mark
.align 2
.global rule1
.syntax unified
.arm
.fpu softvfp
.type rule1, %function
rule1:
@ args = 0, pretend = 0, frame = 32
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #32
str r0, [fp, #-24]
str r1, [fp, #-28]
str r2, [fp, #-32]
mov r3, #1
str r3, [fp, #-8]
mov r3, #1
str r3, [fp, #-12]
b .L5
.L8:
mov r3, #0
str r3, [fp, #-16]
b .L6
.L7:
ldr r2, [fp, #-24]
ldr r3, [fp, #-12]
add r2, r2, r3
ldr r3, [fp, #-16]
add r3, r2, r3
ldr r1, [fp, #-8]
mov r0, r3
bl mark
ldr r3, [fp, #-12]
lsl r3, r3, #1
ldr r2, [fp, #-16]
add r3, r2, r3
str r3, [fp, #-16]
.L6:
ldr r2, [fp, #-24]
ldr r3, [fp, #-12]
add r2, r2, r3
ldr r3, [fp, #-16]
add r3, r2, r3
ldr r2, [fp, #-28]
cmp r2, r3
bge .L7
ldr r3, [fp, #-12]
lsl r3, r3, #1
str r3, [fp, #-12]
ldr r3, [fp, #-8]
add r3, r3, #1
str r3, [fp, #-8]
.L5:
ldr r2, [fp, #-8]
ldr r3, [fp, #-32]
cmp r2, r3
ble .L8
nop
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.size rule1, .-rule1
.global __aeabi_i2d
.global __aeabi_d2iz
.align 2
.global rule2
.syntax unified
.arm
.fpu softvfp
.type rule2, %function
rule2:
@ args = 0, pretend = 0, frame = 24
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #24
str r0, [fp, #-24]
str r1, [fp, #-28]
mov r3, #1
str r3, [fp, #-20]
b .L10
.L13:
ldr r3, [fp, #-20]
sub r3, r3, #1
mov r0, r3
bl __aeabi_i2d
mov r2, r0
mov r3, r1
mov r0, #0
mov r1, #1073741824
bl pow
mov r2, r0
mov r3, r1
mov r0, r2
mov r1, r3
bl __aeabi_d2iz
mov r3, r0
str r3, [fp, #-12]
ldr r0, [fp, #-20]
bl __aeabi_i2d
mov r2, r0
mov r3, r1
mov r0, #0
mov r1, #1073741824
bl pow
mov r2, r0
mov r3, r1
mov r0, r2
mov r1, r3
bl __aeabi_d2iz
mov r3, r0
str r3, [fp, #-8]
ldr r3, [fp, #-12]
str r3, [fp, #-16]
b .L11
.L12:
ldr r1, [fp, #-20]
ldr r0, [fp, #-16]
bl mark
ldr r2, [fp, #-16]
ldr r3, [fp, #-8]
add r3, r2, r3
str r3, [fp, #-16]
.L11:
ldr r2, [fp, #-16]
ldr r3, [fp, #-24]
cmp r2, r3
blt .L12
ldr r3, [fp, #-20]
add r3, r3, #1
str r3, [fp, #-20]
.L10:
ldr r2, [fp, #-20]
ldr r3, [fp, #-28]
cmp r2, r3
ble .L13
nop
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.size rule2, .-rule2
.section .rodata
.align 2
.LC1:
.ascii "\012\000"
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
ldr r3, .L16
ldr r3, [r3]
mov r1, #0
mov r0, r3
bl setbuf
mov r2, #3
mov r1, #8
mov r0, #0
bl rule1
ldr r0, .L16+4
bl puts
mov r1, #3
mov r0, #8
bl rule2
mov r3, #0
mov r0, r3
pop {fp, pc}
.L17:
.align 2
.L16:
.word stdout
.word .LC1
.size main, .-main
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "104893.c"
.intel_syntax noprefix
.text
.globl main
.type main, @function
main:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov DWORD PTR -8[rbp], 1
mov DWORD PTR -4[rbp], 0
jmp .L2
.L3:
mov eax, DWORD PTR -4[rbp]
add DWORD PTR -8[rbp], eax
add DWORD PTR -4[rbp], 1
.L2:
call nd@PLT
test eax, eax
jne .L3
mov eax, DWORD PTR -8[rbp]
cmp eax, DWORD PTR -4[rbp]
jge .L4
call __VERIFIER_error@PLT
.L4:
mov eax, 0
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size main, .-main
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "104893.c"
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #8
mov r3, #1
str r3, [fp, #-12]
mov r3, #0
str r3, [fp, #-8]
b .L2
.L3:
ldr r2, [fp, #-12]
ldr r3, [fp, #-8]
add r3, r2, r3
str r3, [fp, #-12]
ldr r3, [fp, #-8]
add r3, r3, #1
str r3, [fp, #-8]
.L2:
bl nd
mov r3, r0
cmp r3, #0
bne .L3
ldr r2, [fp, #-12]
ldr r3, [fp, #-8]
cmp r2, r3
bge .L4
bl __VERIFIER_error
.L4:
mov r3, #0
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.size main, .-main
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "662652.c"
.intel_syntax noprefix
.text
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "662652.c"
.text
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "13901.c"
.intel_syntax noprefix
.text
.globl foo
.type foo, @function
foo:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
nop
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size foo, .-foo
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "13901.c"
.text
.align 2
.global foo
.syntax unified
.arm
.fpu softvfp
.type foo, %function
foo:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
nop
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size foo, .-foo
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "534539.c"
.intel_syntax noprefix
.text
.globl main
.type main, @function
main:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov DWORD PTR -4[rbp], -1
add DWORD PTR -4[rbp], 1
mov eax, 0
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size main, .-main
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "534539.c"
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #12
mvn r3, #0
str r3, [fp, #-8]
ldr r3, [fp, #-8]
add r3, r3, #1
str r3, [fp, #-8]
mov r3, #0
mov r0, r3
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size main, .-main
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "633992.c"
.intel_syntax noprefix
.text
.globl score
.bss
.align 4
.type score, @object
.size score, 4
score:
.zero 4
.globl continue_game
.data
.align 4
.type continue_game, @object
.size continue_game, 4
continue_game:
.long 1
.text
.globl catch_signal
.type catch_signal, @function
catch_signal:
.LFB6:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 176
mov DWORD PTR -164[rbp], edi
mov QWORD PTR -176[rbp], rsi
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
mov rax, QWORD PTR -176[rbp]
mov QWORD PTR -160[rbp], rax
lea rax, -160[rbp]
add rax, 8
mov rdi, rax
call sigemptyset@PLT
mov DWORD PTR -24[rbp], 0
lea rcx, -160[rbp]
mov eax, DWORD PTR -164[rbp]
mov edx, 0
mov rsi, rcx
mov edi, eax
call sigaction@PLT
mov rdx, QWORD PTR -8[rbp]
sub rdx, QWORD PTR fs:40
je .L3
call __stack_chk_fail@PLT
.L3:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size catch_signal, .-catch_signal
.section .rodata
.LC0:
.string "\nFinal score: %i\n"
.text
.globl end_game
.type end_game, @function
end_game:
.LFB7:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov DWORD PTR -4[rbp], edi
mov eax, DWORD PTR score[rip]
mov esi, eax
lea rdi, .LC0[rip]
mov eax, 0
call printf@PLT
mov edi, 0
call exit@PLT
.cfi_endproc
.LFE7:
.size end_game, .-end_game
.section .rodata
.LC1:
.string "\nTIME'S UP!"
.text
.globl times_up
.type times_up, @function
times_up:
.LFB8:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov DWORD PTR -4[rbp], edi
lea rdi, .LC1[rip]
call puts@PLT
mov DWORD PTR continue_game[rip], 0
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE8:
.size times_up, .-times_up
.section .rodata
.LC2:
.string "\nWhat is %d times %d? "
.LC3:
.string "\nRight!"
.LC4:
.string "\nWrong!"
.LC5:
.string "Score: %i\n"
.text
.globl main
.type main, @function
main:
.LFB9:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 48
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
lea rsi, times_up[rip]
mov edi, 14
call catch_signal
lea rsi, end_game[rip]
mov edi, 2
call catch_signal
mov edi, 0
call time@PLT
mov edi, eax
call srandom@PLT
jmp .L7
.L11:
call rand@PLT
mov edx, eax
movsx rax, edx
imul rax, rax, 780903145
shr rax, 32
sar eax
mov ecx, edx
sar ecx, 31
sub eax, ecx
mov DWORD PTR -44[rbp], eax
mov ecx, DWORD PTR -44[rbp]
mov eax, ecx
sal eax, 2
add eax, ecx
add eax, eax
add eax, ecx
sub edx, eax
mov DWORD PTR -44[rbp], edx
call rand@PLT
mov edx, eax
movsx rax, edx
imul rax, rax, 780903145
shr rax, 32
sar eax
mov ecx, edx
sar ecx, 31
sub eax, ecx
mov DWORD PTR -40[rbp], eax
mov ecx, DWORD PTR -40[rbp]
mov eax, ecx
sal eax, 2
add eax, ecx
add eax, eax
add eax, ecx
sub edx, eax
mov DWORD PTR -40[rbp], edx
mov edx, DWORD PTR -40[rbp]
mov eax, DWORD PTR -44[rbp]
mov esi, eax
lea rdi, .LC2[rip]
mov eax, 0
call printf@PLT
mov edi, 5
call alarm@PLT
mov rdx, QWORD PTR stdin[rip]
lea rax, -12[rbp]
mov esi, 4
mov rdi, rax
call fgets@PLT
mov QWORD PTR -32[rbp], rax
cmp QWORD PTR -32[rbp], 0
jne .L8
call __errno_location@PLT
mov eax, DWORD PTR [rax]
test eax, eax
je .L8
mov rdx, QWORD PTR stdin[rip]
lea rax, -12[rbp]
mov esi, 4
mov rdi, rax
call fgets@PLT
mov QWORD PTR -24[rbp], rax
.L8:
lea rax, -12[rbp]
mov rdi, rax
call atoi@PLT
mov DWORD PTR -36[rbp], eax
mov eax, DWORD PTR -44[rbp]
imul eax, DWORD PTR -40[rbp]
cmp DWORD PTR -36[rbp], eax
jne .L9
lea rdi, .LC3[rip]
call puts@PLT
mov eax, DWORD PTR score[rip]
add eax, 1
mov DWORD PTR score[rip], eax
jmp .L10
.L9:
lea rdi, .LC4[rip]
call puts@PLT
.L10:
mov eax, DWORD PTR score[rip]
mov esi, eax
lea rdi, .LC5[rip]
mov eax, 0
call printf@PLT
.L7:
mov eax, DWORD PTR continue_game[rip]
test eax, eax
jne .L11
mov eax, 0
mov rsi, QWORD PTR -8[rbp]
sub rsi, QWORD PTR fs:40
je .L13
call __stack_chk_fail@PLT
.L13:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE9:
.size main, .-main
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "633992.c"
.text
.global score
.bss
.align 2
.type score, %object
.size score, 4
score:
.space 4
.global continue_game
.data
.align 2
.type continue_game, %object
.size continue_game, 4
continue_game:
.word 1
.section .rodata
.align 2
.LC0:
.word __stack_chk_guard
.text
.align 2
.global catch_signal
.syntax unified
.arm
.fpu softvfp
.type catch_signal, %function
catch_signal:
@ args = 0, pretend = 0, frame = 152
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #152
str r0, [fp, #-152]
str r1, [fp, #-156]
ldr r3, .L4
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
ldr r3, [fp, #-156]
str r3, [fp, #-148]
sub r3, fp, #148
add r3, r3, #4
mov r0, r3
bl sigemptyset
mov r3, #0
str r3, [fp, #-16]
sub r3, fp, #148
mov r2, #0
mov r1, r3
ldr r0, [fp, #-152]
bl sigaction
mov r3, r0
ldr r2, .L4
ldr r1, [r2]
ldr r2, [fp, #-8]
eors r1, r2, r1
mov r2, #0
beq .L3
bl __stack_chk_fail
.L3:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L5:
.align 2
.L4:
.word .LC0
.size catch_signal, .-catch_signal
.section .rodata
.align 2
.LC1:
.ascii "\012Final score: %i\012\000"
.text
.align 2
.global end_game
.syntax unified
.arm
.fpu softvfp
.type end_game, %function
end_game:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #8
str r0, [fp, #-8]
ldr r3, .L7
ldr r3, [r3]
mov r1, r3
ldr r0, .L7+4
bl printf
mov r0, #0
bl exit
.L8:
.align 2
.L7:
.word score
.word .LC1
.size end_game, .-end_game
.section .rodata
.align 2
.LC2:
.ascii "\012TIME'S UP!\000"
.text
.align 2
.global times_up
.syntax unified
.arm
.fpu softvfp
.type times_up, %function
times_up:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #8
str r0, [fp, #-8]
ldr r0, .L10
bl puts
ldr r3, .L10+4
mov r2, #0
str r2, [r3]
nop
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L11:
.align 2
.L10:
.word .LC2
.word continue_game
.size times_up, .-times_up
.section .rodata
.align 2
.LC3:
.ascii "\012What is %d times %d? \000"
.align 2
.LC4:
.ascii "\012Right!\000"
.align 2
.LC5:
.ascii "\012Wrong!\000"
.align 2
.LC6:
.ascii "Score: %i\012\000"
.align 2
.LC7:
.word __stack_chk_guard
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 32
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #32
ldr r3, .L20
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
ldr r1, .L20+4
mov r0, #14
bl catch_signal
ldr r1, .L20+8
mov r0, #2
bl catch_signal
mov r0, #0
bl time
mov r3, r0
mov r0, r3
bl srandom
b .L13
.L17:
bl rand
mov r2, r0
ldr r3, .L20+12
smull r1, r3, r2, r3
asr r1, r3, #1
asr r3, r2, #31
sub r1, r1, r3
mov r3, r1
lsl r3, r3, #2
add r3, r3, r1
lsl r3, r3, #1
add r3, r3, r1
sub r3, r2, r3
str r3, [fp, #-32]
bl rand
mov r2, r0
ldr r3, .L20+12
smull r1, r3, r2, r3
asr r1, r3, #1
asr r3, r2, #31
sub r1, r1, r3
mov r3, r1
lsl r3, r3, #2
add r3, r3, r1
lsl r3, r3, #1
add r3, r3, r1
sub r3, r2, r3
str r3, [fp, #-28]
ldr r2, [fp, #-28]
ldr r1, [fp, #-32]
ldr r0, .L20+16
bl printf
mov r0, #5
bl alarm
ldr r3, .L20+20
ldr r2, [r3]
sub r3, fp, #12
mov r1, #4
mov r0, r3
bl fgets
str r0, [fp, #-24]
ldr r3, [fp, #-24]
cmp r3, #0
bne .L14
bl __errno_location
mov r3, r0
ldr r3, [r3]
cmp r3, #0
beq .L14
ldr r3, .L20+20
ldr r2, [r3]
sub r3, fp, #12
mov r1, #4
mov r0, r3
bl fgets
str r0, [fp, #-20]
.L14:
sub r3, fp, #12
mov r0, r3
bl atoi
str r0, [fp, #-16]
ldr r3, [fp, #-32]
ldr r2, [fp, #-28]
mul r3, r2, r3
ldr r2, [fp, #-16]
cmp r2, r3
bne .L15
ldr r0, .L20+24
bl puts
ldr r3, .L20+28
ldr r3, [r3]
add r3, r3, #1
ldr r2, .L20+28
str r3, [r2]
b .L16
.L15:
ldr r0, .L20+32
bl puts
.L16:
ldr r3, .L20+28
ldr r3, [r3]
mov r1, r3
ldr r0, .L20+36
bl printf
.L13:
ldr r3, .L20+40
ldr r3, [r3]
cmp r3, #0
bne .L17
mov r3, #0
ldr r2, .L20
ldr r1, [r2]
ldr r2, [fp, #-8]
eors r1, r2, r1
mov r2, #0
beq .L19
bl __stack_chk_fail
.L19:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L21:
.align 2
.L20:
.word .LC7
.word times_up
.word end_game
.word 780903145
.word .LC3
.word stdin
.word .LC4
.word score
.word .LC5
.word .LC6
.word continue_game
.size main, .-main
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "155753.c"
.intel_syntax noprefix
.text
.section .rodata
.LC0:
.string "usage : %s <shellcode>"
.text
.globl main
.type main, @function
main:
.LFB6:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 32
mov DWORD PTR -20[rbp], edi
mov QWORD PTR -32[rbp], rsi
cmp DWORD PTR -20[rbp], 1
jg .L2
mov rax, QWORD PTR -32[rbp]
mov rax, QWORD PTR [rax]
mov rsi, rax
lea rdi, .LC0[rip]
mov eax, 0
call printf@PLT
mov edi, 1
call exit@PLT
.L2:
mov rax, QWORD PTR -32[rbp]
add rax, 8
mov rax, QWORD PTR [rax]
mov QWORD PTR -8[rbp], rax
mov rdx, QWORD PTR -8[rbp]
mov eax, 0
call rdx
mov eax, 0
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size main, .-main
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "155753.c"
.text
.section .rodata
.align 2
.LC0:
.ascii "usage : %s <shellcode>\000"
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #16
str r0, [fp, #-16]
str r1, [fp, #-20]
ldr r3, [fp, #-16]
cmp r3, #1
bgt .L2
ldr r3, [fp, #-20]
ldr r3, [r3]
mov r1, r3
ldr r0, .L4
bl printf
mov r0, #1
bl exit
.L2:
ldr r3, [fp, #-20]
add r3, r3, #4
ldr r3, [r3]
str r3, [fp, #-8]
ldr r3, [fp, #-8]
blx r3
mov r3, #0
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L5:
.align 2
.L4:
.word .LC0
.size main, .-main
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "743177.c"
.intel_syntax noprefix
.text
.section .rodata
.align 8
.LC0:
.string "Please enter a positive integer. "
.LC1:
.string "%d"
.align 8
.LC3:
.string "The binary representation is %d."
.text
.globl main
.type main, @function
main:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 64
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
mov DWORD PTR -40[rbp], 0
mov DWORD PTR -16[rbp], 0
mov DWORD PTR -36[rbp], 0
mov DWORD PTR -12[rbp], 0
mov DWORD PTR -32[rbp], 0
mov DWORD PTR -28[rbp], 0
mov DWORD PTR -24[rbp], 0
mov DWORD PTR -20[rbp], 0
lea rdi, .LC0[rip]
call puts@PLT
lea rax, -40[rbp]
mov rsi, rax
lea rdi, .LC1[rip]
mov eax, 0
call __isoc99_scanf@PLT
jmp .L2
.L3:
mov eax, DWORD PTR -40[rbp]
cdq
shr edx, 31
add eax, edx
and eax, 1
sub eax, edx
mov DWORD PTR -16[rbp], eax
mov eax, DWORD PTR -40[rbp]
mov edx, eax
shr edx, 31
add eax, edx
sar eax
mov DWORD PTR -40[rbp], eax
add DWORD PTR -36[rbp], 1
mov edx, DWORD PTR -32[rbp]
mov eax, edx
sal eax, 2
add eax, edx
add eax, eax
mov edx, eax
mov eax, DWORD PTR -16[rbp]
add eax, edx
mov DWORD PTR -32[rbp], eax
.L2:
mov eax, DWORD PTR -40[rbp]
test eax, eax
jne .L3
mov eax, DWORD PTR -32[rbp]
mov DWORD PTR -20[rbp], eax
jmp .L4
.L5:
mov eax, DWORD PTR -32[rbp]
movsx rdx, eax
imul rdx, rdx, 1717986919
shr rdx, 32
sar edx, 2
sar eax, 31
mov ecx, eax
mov eax, edx
sub eax, ecx
mov DWORD PTR -32[rbp], eax
add DWORD PTR -28[rbp], 1
.L4:
cmp DWORD PTR -32[rbp], 0
jne .L5
mov eax, DWORD PTR -36[rbp]
sub eax, DWORD PTR -28[rbp]
mov DWORD PTR -12[rbp], eax
jmp .L6
.L7:
mov edx, DWORD PTR -20[rbp]
movsx rax, edx
imul rax, rax, 1717986919
shr rax, 32
sar eax, 2
mov esi, edx
sar esi, 31
sub eax, esi
mov ecx, eax
mov eax, ecx
sal eax, 2
add eax, ecx
add eax, eax
sub edx, eax
mov DWORD PTR -16[rbp], edx
mov eax, DWORD PTR -20[rbp]
movsx rdx, eax
imul rdx, rdx, 1717986919
shr rdx, 32
sar edx, 2
sar eax, 31
mov ecx, eax
mov eax, edx
sub eax, ecx
mov DWORD PTR -20[rbp], eax
mov edx, DWORD PTR -24[rbp]
mov eax, edx
sal eax, 2
add eax, edx
add eax, eax
mov edx, eax
mov eax, DWORD PTR -16[rbp]
add eax, edx
mov DWORD PTR -24[rbp], eax
.L6:
cmp DWORD PTR -20[rbp], 0
jne .L7
pxor xmm2, xmm2
cvtsi2sd xmm2, DWORD PTR -24[rbp]
movsd QWORD PTR -56[rbp], xmm2
pxor xmm0, xmm0
cvtsi2sd xmm0, DWORD PTR -12[rbp]
mov rax, QWORD PTR .LC2[rip]
movapd xmm1, xmm0
movq xmm0, rax
call pow@PLT
mulsd xmm0, QWORD PTR -56[rbp]
cvttsd2si eax, xmm0
mov DWORD PTR -24[rbp], eax
mov eax, DWORD PTR -24[rbp]
mov esi, eax
lea rdi, .LC3[rip]
mov eax, 0
call printf@PLT
mov eax, 0
mov rdi, QWORD PTR -8[rbp]
sub rdi, QWORD PTR fs:40
je .L9
call __stack_chk_fail@PLT
.L9:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size main, .-main
.section .rodata
.align 8
.LC2:
.long 0
.long 1076101120
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "743177.c"
.text
.section .rodata
.align 2
.LC0:
.ascii "Please enter a positive integer. \000"
.align 2
.LC1:
.ascii "%d\000"
.global __aeabi_i2d
.global __aeabi_dmul
.global __aeabi_d2iz
.align 2
.LC2:
.ascii "The binary representation is %d.\000"
.align 2
.LC3:
.word __stack_chk_guard
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 40
@ frame_needed = 1, uses_anonymous_args = 0
push {r4, r5, fp, lr}
add fp, sp, #12
sub sp, sp, #40
ldr r3, .L10
ldr r3, [r3]
str r3, [fp, #-16]
mov r3,#0
mov r3, #0
str r3, [fp, #-48]
mov r3, #0
str r3, [fp, #-24]
mov r3, #0
str r3, [fp, #-44]
mov r3, #0
str r3, [fp, #-20]
mov r3, #0
str r3, [fp, #-40]
mov r3, #0
str r3, [fp, #-36]
mov r3, #0
str r3, [fp, #-32]
mov r3, #0
str r3, [fp, #-28]
ldr r0, .L10+4
bl puts
sub r3, fp, #48
mov r1, r3
ldr r0, .L10+8
bl __isoc99_scanf
b .L2
.L3:
ldr r3, [fp, #-48]
cmp r3, #0
and r3, r3, #1
rsblt r3, r3, #0
str r3, [fp, #-24]
ldr r3, [fp, #-48]
lsr r2, r3, #31
add r3, r2, r3
asr r3, r3, #1
str r3, [fp, #-48]
ldr r3, [fp, #-44]
add r3, r3, #1
str r3, [fp, #-44]
ldr r2, [fp, #-40]
mov r3, r2
lsl r3, r3, #2
add r3, r3, r2
lsl r3, r3, #1
mov r2, r3
ldr r3, [fp, #-24]
add r3, r3, r2
str r3, [fp, #-40]
.L2:
ldr r3, [fp, #-48]
cmp r3, #0
bne .L3
ldr r3, [fp, #-40]
str r3, [fp, #-28]
b .L4
.L5:
ldr r3, [fp, #-40]
ldr r2, .L10+12
smull r1, r2, r3, r2
asr r2, r2, #2
asr r3, r3, #31
sub r3, r2, r3
str r3, [fp, #-40]
ldr r3, [fp, #-36]
add r3, r3, #1
str r3, [fp, #-36]
.L4:
ldr r3, [fp, #-40]
cmp r3, #0
bne .L5
ldr r2, [fp, #-44]
ldr r3, [fp, #-36]
sub r3, r2, r3
str r3, [fp, #-20]
b .L6
.L7:
ldr r2, [fp, #-28]
ldr r3, .L10+12
smull r1, r3, r2, r3
asr r1, r3, #2
asr r3, r2, #31
sub r1, r1, r3
mov r3, r1
lsl r3, r3, #2
add r3, r3, r1
lsl r3, r3, #1
sub r3, r2, r3
str r3, [fp, #-24]
ldr r3, [fp, #-28]
ldr r2, .L10+12
smull r1, r2, r3, r2
asr r2, r2, #2
asr r3, r3, #31
sub r3, r2, r3
str r3, [fp, #-28]
ldr r2, [fp, #-32]
mov r3, r2
lsl r3, r3, #2
add r3, r3, r2
lsl r3, r3, #1
mov r2, r3
ldr r3, [fp, #-24]
add r3, r3, r2
str r3, [fp, #-32]
.L6:
ldr r3, [fp, #-28]
cmp r3, #0
bne .L7
ldr r0, [fp, #-32]
bl __aeabi_i2d
mov r4, r0
mov r5, r1
ldr r0, [fp, #-20]
bl __aeabi_i2d
mov r2, r0
mov r3, r1
mov r0, #0
ldr r1, .L10+16
bl pow
mov r2, r0
mov r3, r1
mov r0, r4
mov r1, r5
bl __aeabi_dmul
mov r2, r0
mov r3, r1
mov r0, r2
mov r1, r3
bl __aeabi_d2iz
mov r3, r0
str r3, [fp, #-32]
ldr r1, [fp, #-32]
ldr r0, .L10+20
bl printf
mov r3, #0
ldr r2, .L10
ldr r1, [r2]
ldr r2, [fp, #-16]
eors r1, r2, r1
mov r2, #0
beq .L9
bl __stack_chk_fail
.L9:
mov r0, r3
sub sp, fp, #12
@ sp needed
pop {r4, r5, fp, pc}
.L11:
.align 2
.L10:
.word .LC3
.word .LC0
.word .LC1
.word 1717986919
.word 1076101120
.word .LC2
.size main, .-main
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "183781.c"
.intel_syntax noprefix
.text
.section .rodata
.LC0:
.string "%d%d%d"
.LC1:
.string "%d"
.text
.globl main
.type main, @function
main:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 32
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
lea rcx, -20[rbp]
lea rdx, -24[rbp]
lea rax, -28[rbp]
mov rsi, rax
lea rdi, .LC0[rip]
mov eax, 0
call __isoc99_scanf@PLT
mov DWORD PTR -16[rbp], 1
jmp .L2
.L12:
cmp DWORD PTR -16[rbp], 1
je .L3
mov eax, DWORD PTR -20[rbp]
cmp DWORD PTR -16[rbp], eax
jne .L4
.L3:
mov DWORD PTR -12[rbp], 1
jmp .L5
.L6:
mov eax, DWORD PTR -28[rbp]
mov esi, eax
lea rdi, .LC1[rip]
mov eax, 0
call printf@PLT
add DWORD PTR -12[rbp], 1
.L5:
mov eax, DWORD PTR -24[rbp]
cmp DWORD PTR -12[rbp], eax
jle .L6
jmp .L7
.L4:
mov DWORD PTR -12[rbp], 1
jmp .L8
.L11:
mov eax, DWORD PTR -12[rbp]
and eax, 1
test eax, eax
jne .L9
mov edi, 32
call putchar@PLT
jmp .L10
.L9:
mov eax, DWORD PTR -28[rbp]
mov esi, eax
lea rdi, .LC1[rip]
mov eax, 0
call printf@PLT
.L10:
add DWORD PTR -12[rbp], 1
.L8:
mov eax, DWORD PTR -24[rbp]
cmp DWORD PTR -12[rbp], eax
jle .L11
.L7:
mov edi, 10
call putchar@PLT
add DWORD PTR -16[rbp], 1
.L2:
mov eax, DWORD PTR -20[rbp]
cmp DWORD PTR -16[rbp], eax
jle .L12
mov eax, 0
mov rdx, QWORD PTR -8[rbp]
sub rdx, QWORD PTR fs:40
je .L14
call __stack_chk_fail@PLT
.L14:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size main, .-main
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "183781.c"
.text
.section .rodata
.align 2
.LC0:
.ascii "%d%d%d\000"
.align 2
.LC1:
.ascii "%d\000"
.align 2
.LC2:
.word __stack_chk_guard
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 24
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #24
ldr r3, .L15
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
sub r3, fp, #20
sub r2, fp, #24
sub r1, fp, #28
ldr r0, .L15+4
bl __isoc99_scanf
mov r3, #1
str r3, [fp, #-16]
b .L2
.L12:
ldr r3, [fp, #-16]
cmp r3, #1
beq .L3
ldr r3, [fp, #-20]
ldr r2, [fp, #-16]
cmp r2, r3
bne .L4
.L3:
mov r3, #1
str r3, [fp, #-12]
b .L5
.L6:
ldr r3, [fp, #-28]
mov r1, r3
ldr r0, .L15+8
bl printf
ldr r3, [fp, #-12]
add r3, r3, #1
str r3, [fp, #-12]
.L5:
ldr r3, [fp, #-24]
ldr r2, [fp, #-12]
cmp r2, r3
ble .L6
b .L7
.L4:
mov r3, #1
str r3, [fp, #-12]
b .L8
.L11:
ldr r3, [fp, #-12]
and r3, r3, #1
cmp r3, #0
bne .L9
mov r0, #32
bl putchar
b .L10
.L9:
ldr r3, [fp, #-28]
mov r1, r3
ldr r0, .L15+8
bl printf
.L10:
ldr r3, [fp, #-12]
add r3, r3, #1
str r3, [fp, #-12]
.L8:
ldr r3, [fp, #-24]
ldr r2, [fp, #-12]
cmp r2, r3
ble .L11
.L7:
mov r0, #10
bl putchar
ldr r3, [fp, #-16]
add r3, r3, #1
str r3, [fp, #-16]
.L2:
ldr r3, [fp, #-20]
ldr r2, [fp, #-16]
cmp r2, r3
ble .L12
mov r3, #0
ldr r2, .L15
ldr r1, [r2]
ldr r2, [fp, #-8]
eors r1, r2, r1
mov r2, #0
beq .L14
bl __stack_chk_fail
.L14:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L16:
.align 2
.L15:
.word .LC2
.word .LC0
.word .LC1
.size main, .-main
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "39302.c"
.intel_syntax noprefix
.text
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "39302.c"
.text
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "307908.c"
.intel_syntax noprefix
.text
.local icky_global_program_name
.comm icky_global_program_name,8,8
.section .rodata
.LC0:
.string "addr2line -f -p -e %.256s %p"
.text
.globl addr2line
.type addr2line, @function
addr2line:
.LFB6:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 544
mov QWORD PTR -536[rbp], rdi
mov QWORD PTR -544[rbp], rsi
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
mov QWORD PTR -528[rbp], 0
mov QWORD PTR -520[rbp], 0
lea rdx, -512[rbp]
mov eax, 0
mov ecx, 62
mov rdi, rdx
rep stosq
mov rcx, QWORD PTR -544[rbp]
mov rdx, QWORD PTR -536[rbp]
lea rax, -528[rbp]
lea rsi, .LC0[rip]
mov rdi, rax
mov eax, 0
call sprintf@PLT
lea rax, -528[rbp]
mov rdi, rax
call system@PLT
mov rsi, QWORD PTR -8[rbp]
sub rsi, QWORD PTR fs:40
je .L3
call __stack_chk_fail@PLT
.L3:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size addr2line, .-addr2line
.local stack_traces
.comm stack_traces,512,32
.section .rodata
.align 8
.LC1:
.string " error determining line # for: %s\n"
.text
.globl posix_print_stack_trace
.type posix_print_stack_trace, @function
posix_print_stack_trace:
.LFB7:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov DWORD PTR -12[rbp], 0
mov QWORD PTR -8[rbp], 0
mov esi, 64
lea rdi, stack_traces[rip]
call backtrace@PLT
mov DWORD PTR -12[rbp], eax
mov eax, DWORD PTR -12[rbp]
mov esi, eax
lea rdi, stack_traces[rip]
call backtrace_symbols@PLT
mov QWORD PTR -8[rbp], rax
mov DWORD PTR -16[rbp], 3
jmp .L5
.L7:
mov eax, DWORD PTR -16[rbp]
cdqe
lea rdx, 0[0+rax*8]
lea rax, stack_traces[rip]
mov rdx, QWORD PTR [rdx+rax]
mov rax, QWORD PTR icky_global_program_name[rip]
mov rsi, rdx
mov rdi, rax
call addr2line
test eax, eax
je .L6
mov eax, DWORD PTR -16[rbp]
cdqe
lea rdx, 0[0+rax*8]
mov rax, QWORD PTR -8[rbp]
add rax, rdx
mov rax, QWORD PTR [rax]
mov rsi, rax
lea rdi, .LC1[rip]
mov eax, 0
call printf@PLT
.L6:
add DWORD PTR -16[rbp], 1
.L5:
mov eax, DWORD PTR -12[rbp]
sub eax, 1
cmp DWORD PTR -16[rbp], eax
jl .L7
cmp QWORD PTR -8[rbp], 0
je .L9
mov rax, QWORD PTR -8[rbp]
mov rdi, rax
call free@PLT
.L9:
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE7:
.size posix_print_stack_trace, .-posix_print_stack_trace
.section .rodata
.align 8
.LC2:
.string "Caught SIGSEGV: Segmentation Fault\n"
.align 8
.LC3:
.string "Caught SIGINT: Interactive attention signal, (usually ctrl+c)\n"
.align 8
.LC4:
.string "Caught SIGFPE: (integer divide by zero)\n"
.align 8
.LC5:
.string "Caught SIGFPE: (integer overflow)\n"
.align 8
.LC6:
.string "Caught SIGFPE: (floating-point divide by zero)\n"
.align 8
.LC7:
.string "Caught SIGFPE: (floating-point overflow)\n"
.align 8
.LC8:
.string "Caught SIGFPE: (floating-point underflow)\n"
.align 8
.LC9:
.string "Caught SIGFPE: (floating-point inexact result)\n"
.align 8
.LC10:
.string "Caught SIGFPE: (floating-point invalid operation)\n"
.align 8
.LC11:
.string "Caught SIGFPE: (subscript out of range)\n"
.align 8
.LC12:
.string "Caught SIGFPE: Arithmetic Exception\n"
.align 8
.LC13:
.string "Caught SIGILL: (illegal opcode)\n"
.align 8
.LC14:
.string "Caught SIGILL: (illegal operand)\n"
.align 8
.LC15:
.string "Caught SIGILL: (illegal addressing mode)\n"
.align 8
.LC16:
.string "Caught SIGILL: (illegal trap)\n"
.align 8
.LC17:
.string "Caught SIGILL: (privileged opcode)\n"
.align 8
.LC18:
.string "Caught SIGILL: (privileged register)\n"
.align 8
.LC19:
.string "Caught SIGILL: (coprocessor error)\n"
.align 8
.LC20:
.string "Caught SIGILL: (internal stack error)\n"
.align 8
.LC21:
.string "Caught SIGILL: Illegal Instruction\n"
.align 8
.LC22:
.string "Caught SIGTERM: a termination request was sent to the program\n"
.align 8
.LC23:
.string "Caught SIGABRT: usually caused by an abort() or assert()\n"
.text
.globl posix_signal_handler
.type posix_signal_handler, @function
posix_signal_handler:
.LFB8:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 32
mov DWORD PTR -4[rbp], edi
mov QWORD PTR -16[rbp], rsi
mov QWORD PTR -24[rbp], rdx
cmp DWORD PTR -4[rbp], 15
ja .L41
mov eax, DWORD PTR -4[rbp]
lea rdx, 0[0+rax*4]
lea rax, .L13[rip]
mov eax, DWORD PTR [rdx+rax]
cdqe
lea rdx, .L13[rip]
add rax, rdx
notrack jmp rax
.section .rodata
.align 4
.align 4
.L13:
.long .L41-.L13
.long .L41-.L13
.long .L18-.L13
.long .L41-.L13
.long .L17-.L13
.long .L41-.L13
.long .L16-.L13
.long .L41-.L13
.long .L15-.L13
.long .L41-.L13
.long .L41-.L13
.long .L14-.L13
.long .L41-.L13
.long .L41-.L13
.long .L41-.L13
.long .L12-.L13
.text
.L14:
mov rax, QWORD PTR stderr[rip]
mov rcx, rax
mov edx, 35
mov esi, 1
lea rdi, .LC2[rip]
call fwrite@PLT
jmp .L19
.L18:
mov rax, QWORD PTR stderr[rip]
mov rcx, rax
mov edx, 62
mov esi, 1
lea rdi, .LC3[rip]
call fwrite@PLT
jmp .L19
.L15:
mov rax, QWORD PTR -16[rbp]
mov eax, DWORD PTR 8[rax]
cmp eax, 8
ja .L20
mov eax, eax
lea rdx, 0[0+rax*4]
lea rax, .L22[rip]
mov eax, DWORD PTR [rdx+rax]
cdqe
lea rdx, .L22[rip]
add rax, rdx
notrack jmp rax
.section .rodata
.align 4
.align 4
.L22:
.long .L20-.L22
.long .L29-.L22
.long .L28-.L22
.long .L27-.L22
.long .L26-.L22
.long .L25-.L22
.long .L24-.L22
.long .L23-.L22
.long .L21-.L22
.text
.L29:
mov rax, QWORD PTR stderr[rip]
mov rcx, rax
mov edx, 40
mov esi, 1
lea rdi, .LC4[rip]
call fwrite@PLT
jmp .L17
.L28:
mov rax, QWORD PTR stderr[rip]
mov rcx, rax
mov edx, 34
mov esi, 1
lea rdi, .LC5[rip]
call fwrite@PLT
jmp .L17
.L27:
mov rax, QWORD PTR stderr[rip]
mov rcx, rax
mov edx, 47
mov esi, 1
lea rdi, .LC6[rip]
call fwrite@PLT
jmp .L17
.L26:
mov rax, QWORD PTR stderr[rip]
mov rcx, rax
mov edx, 41
mov esi, 1
lea rdi, .LC7[rip]
call fwrite@PLT
jmp .L17
.L25:
mov rax, QWORD PTR stderr[rip]
mov rcx, rax
mov edx, 42
mov esi, 1
lea rdi, .LC8[rip]
call fwrite@PLT
jmp .L17
.L24:
mov rax, QWORD PTR stderr[rip]
mov rcx, rax
mov edx, 47
mov esi, 1
lea rdi, .LC9[rip]
call fwrite@PLT
jmp .L17
.L23:
mov rax, QWORD PTR stderr[rip]
mov rcx, rax
mov edx, 50
mov esi, 1
lea rdi, .LC10[rip]
call fwrite@PLT
jmp .L17
.L21:
mov rax, QWORD PTR stderr[rip]
mov rcx, rax
mov edx, 40
mov esi, 1
lea rdi, .LC11[rip]
call fwrite@PLT
jmp .L17
.L20:
mov rax, QWORD PTR stderr[rip]
mov rcx, rax
mov edx, 36
mov esi, 1
lea rdi, .LC12[rip]
call fwrite@PLT
nop
.L17:
mov rax, QWORD PTR -16[rbp]
mov eax, DWORD PTR 8[rax]
cmp eax, 8
ja .L30
mov eax, eax
lea rdx, 0[0+rax*4]
lea rax, .L32[rip]
mov eax, DWORD PTR [rdx+rax]
cdqe
lea rdx, .L32[rip]
add rax, rdx
notrack jmp rax
.section .rodata
.align 4
.align 4
.L32:
.long .L30-.L32
.long .L39-.L32
.long .L38-.L32
.long .L37-.L32
.long .L36-.L32
.long .L35-.L32
.long .L34-.L32
.long .L33-.L32
.long .L31-.L32
.text
.L39:
mov rax, QWORD PTR stderr[rip]
mov rcx, rax
mov edx, 32
mov esi, 1
lea rdi, .LC13[rip]
call fwrite@PLT
jmp .L40
.L38:
mov rax, QWORD PTR stderr[rip]
mov rcx, rax
mov edx, 33
mov esi, 1
lea rdi, .LC14[rip]
call fwrite@PLT
jmp .L40
.L37:
mov rax, QWORD PTR stderr[rip]
mov rcx, rax
mov edx, 41
mov esi, 1
lea rdi, .LC15[rip]
call fwrite@PLT
jmp .L40
.L36:
mov rax, QWORD PTR stderr[rip]
mov rcx, rax
mov edx, 30
mov esi, 1
lea rdi, .LC16[rip]
call fwrite@PLT
jmp .L40
.L35:
mov rax, QWORD PTR stderr[rip]
mov rcx, rax
mov edx, 35
mov esi, 1
lea rdi, .LC17[rip]
call fwrite@PLT
jmp .L40
.L34:
mov rax, QWORD PTR stderr[rip]
mov rcx, rax
mov edx, 37
mov esi, 1
lea rdi, .LC18[rip]
call fwrite@PLT
jmp .L40
.L33:
mov rax, QWORD PTR stderr[rip]
mov rcx, rax
mov edx, 35
mov esi, 1
lea rdi, .LC19[rip]
call fwrite@PLT
jmp .L40
.L31:
mov rax, QWORD PTR stderr[rip]
mov rcx, rax
mov edx, 38
mov esi, 1
lea rdi, .LC20[rip]
call fwrite@PLT
jmp .L40
.L30:
mov rax, QWORD PTR stderr[rip]
mov rcx, rax
mov edx, 35
mov esi, 1
lea rdi, .LC21[rip]
call fwrite@PLT
nop
.L40:
jmp .L19
.L12:
mov rax, QWORD PTR stderr[rip]
mov rcx, rax
mov edx, 62
mov esi, 1
lea rdi, .LC22[rip]
call fwrite@PLT
jmp .L19
.L16:
mov rax, QWORD PTR stderr[rip]
mov rcx, rax
mov edx, 57
mov esi, 1
lea rdi, .LC23[rip]
call fwrite@PLT
jmp .L19
.L41:
nop
.L19:
mov eax, 0
call posix_print_stack_trace
mov edi, 1
call _Exit@PLT
.cfi_endproc
.LFE8:
.size posix_signal_handler, .-posix_signal_handler
.local alternate_stack
.comm alternate_stack,8192,32
.section .rodata
.LC24:
.string "sigaltstack"
.LC25:
.string "sigaction"
.text
.globl set_signal_handler
.type set_signal_handler, @function
set_signal_handler:
.LFB9:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 192
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
mov QWORD PTR -192[rbp], 0
mov QWORD PTR -184[rbp], 0
mov QWORD PTR -176[rbp], 0
lea rax, alternate_stack[rip]
mov QWORD PTR -192[rbp], rax
mov QWORD PTR -176[rbp], 8192
mov DWORD PTR -184[rbp], 0
lea rax, -192[rbp]
mov esi, 0
mov rdi, rax
call sigaltstack@PLT
test eax, eax
je .L43
lea rsi, .LC24[rip]
mov edi, 1
mov eax, 0
call err@PLT
.L43:
lea rdx, -160[rbp]
mov eax, 0
mov ecx, 19
mov rdi, rdx
rep stosq
lea rax, posix_signal_handler[rip]
mov QWORD PTR -160[rbp], rax
lea rax, -160[rbp]
add rax, 8
mov rdi, rax
call sigemptyset@PLT
mov DWORD PTR -24[rbp], 134217732
lea rax, -160[rbp]
mov edx, 0
mov rsi, rax
mov edi, 11
call sigaction@PLT
test eax, eax
je .L44
lea rsi, .LC25[rip]
mov edi, 1
mov eax, 0
call err@PLT
.L44:
lea rax, -160[rbp]
mov edx, 0
mov rsi, rax
mov edi, 8
call sigaction@PLT
test eax, eax
je .L45
lea rsi, .LC25[rip]
mov edi, 1
mov eax, 0
call err@PLT
.L45:
lea rax, -160[rbp]
mov edx, 0
mov rsi, rax
mov edi, 2
call sigaction@PLT
test eax, eax
je .L46
lea rsi, .LC25[rip]
mov edi, 1
mov eax, 0
call err@PLT
.L46:
lea rax, -160[rbp]
mov edx, 0
mov rsi, rax
mov edi, 4
call sigaction@PLT
test eax, eax
je .L47
lea rsi, .LC25[rip]
mov edi, 1
mov eax, 0
call err@PLT
.L47:
lea rax, -160[rbp]
mov edx, 0
mov rsi, rax
mov edi, 15
call sigaction@PLT
test eax, eax
je .L48
lea rsi, .LC25[rip]
mov edi, 1
mov eax, 0
call err@PLT
.L48:
lea rax, -160[rbp]
mov edx, 0
mov rsi, rax
mov edi, 6
call sigaction@PLT
test eax, eax
je .L51
lea rsi, .LC25[rip]
mov edi, 1
mov eax, 0
call err@PLT
.L51:
nop
mov rax, QWORD PTR -8[rbp]
sub rax, QWORD PTR fs:40
je .L50
call __stack_chk_fail@PLT
.L50:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE9:
.size set_signal_handler, .-set_signal_handler
.section .rodata
.LC26:
.string "OMG! Nothing bad happend!"
.text
.globl main
.type main, @function
main:
.LFB10:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov DWORD PTR -4[rbp], edi
mov QWORD PTR -16[rbp], rsi
mov rax, QWORD PTR -16[rbp]
mov rax, QWORD PTR [rax]
mov QWORD PTR icky_global_program_name[rip], rax
mov eax, 0
call set_signal_handler
mov eax, 0
call cause_calamity
lea rdi, .LC26[rip]
call puts@PLT
mov eax, 0
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE10:
.size main, .-main
.globl cause_calamity
.type cause_calamity, @function
cause_calamity:
.LFB11:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov eax, 0
call infinite_loop
nop
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE11:
.size cause_calamity, .-cause_calamity
.globl divide_by_zero
.type divide_by_zero, @function
divide_by_zero:
.LFB12:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov DWORD PTR -8[rbp], 1
mov DWORD PTR -4[rbp], 0
mov eax, DWORD PTR -8[rbp]
cdq
idiv DWORD PTR -4[rbp]
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE12:
.size divide_by_zero, .-divide_by_zero
.globl cause_segfault
.type cause_segfault, @function
cause_segfault:
.LFB13:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov QWORD PTR -8[rbp], 305419896
mov rax, QWORD PTR -8[rbp]
mov DWORD PTR [rax], 0
nop
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE13:
.size cause_segfault, .-cause_segfault
.globl stack_overflow
.type stack_overflow, @function
stack_overflow:
.LFB14:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 4016
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
mov eax, 0
call stack_overflow
nop
mov rax, QWORD PTR -8[rbp]
sub rax, QWORD PTR fs:40
je .L59
call __stack_chk_fail@PLT
.L59:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE14:
.size stack_overflow, .-stack_overflow
.globl infinite_loop
.type infinite_loop, @function
infinite_loop:
.LFB15:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
.L61:
jmp .L61
.cfi_endproc
.LFE15:
.size infinite_loop, .-infinite_loop
.globl illegal_instruction
.type illegal_instruction, @function
illegal_instruction:
.LFB16:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov edi, 4
call raise@PLT
nop
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE16:
.size illegal_instruction, .-illegal_instruction
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "307908.c"
.text
.local icky_global_program_name
.comm icky_global_program_name,4,4
.section .rodata
.align 2
.LC0:
.ascii "addr2line -f -p -e %.256s %p\000"
.align 2
.LC1:
.word __stack_chk_guard
.text
.align 2
.global addr2line
.syntax unified
.arm
.fpu softvfp
.type addr2line, %function
addr2line:
@ args = 0, pretend = 0, frame = 528
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #528
str r0, [fp, #-528]
str r1, [fp, #-532]
ldr r3, .L4
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
mov r3, #0
str r3, [fp, #-520]
sub r3, fp, #516
mov r2, #508
mov r1, #0
mov r0, r3
bl memset
sub r0, fp, #520
ldr r3, [fp, #-532]
ldr r2, [fp, #-528]
ldr r1, .L4+4
bl sprintf
sub r3, fp, #520
mov r0, r3
bl system
mov r3, r0
ldr r2, .L4
ldr r1, [r2]
ldr r2, [fp, #-8]
eors r1, r2, r1
mov r2, #0
beq .L3
bl __stack_chk_fail
.L3:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L5:
.align 2
.L4:
.word .LC1
.word .LC0
.size addr2line, .-addr2line
.local stack_traces
.comm stack_traces,256,4
.section .rodata
.align 2
.LC2:
.ascii " error determining line # for: %s\012\000"
.text
.align 2
.global posix_print_stack_trace
.syntax unified
.arm
.fpu softvfp
.type posix_print_stack_trace, %function
posix_print_stack_trace:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #16
mov r3, #0
str r3, [fp, #-12]
mov r3, #0
str r3, [fp, #-8]
mov r1, #64
ldr r0, .L12
bl backtrace
str r0, [fp, #-12]
ldr r1, [fp, #-12]
ldr r0, .L12
bl backtrace_symbols
str r0, [fp, #-8]
mov r3, #3
str r3, [fp, #-16]
b .L7
.L9:
ldr r3, .L12+4
ldr r2, [r3]
ldr r1, .L12
ldr r3, [fp, #-16]
ldr r3, [r1, r3, lsl #2]
mov r1, r3
mov r0, r2
bl addr2line
mov r3, r0
cmp r3, #0
beq .L8
ldr r3, [fp, #-16]
lsl r3, r3, #2
ldr r2, [fp, #-8]
add r3, r2, r3
ldr r3, [r3]
mov r1, r3
ldr r0, .L12+8
bl printf
.L8:
ldr r3, [fp, #-16]
add r3, r3, #1
str r3, [fp, #-16]
.L7:
ldr r3, [fp, #-12]
sub r3, r3, #1
ldr r2, [fp, #-16]
cmp r2, r3
blt .L9
ldr r3, [fp, #-8]
cmp r3, #0
beq .L11
ldr r0, [fp, #-8]
bl free
.L11:
nop
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L13:
.align 2
.L12:
.word stack_traces
.word icky_global_program_name
.word .LC2
.size posix_print_stack_trace, .-posix_print_stack_trace
.section .rodata
.align 2
.LC3:
.ascii "Caught SIGSEGV: Segmentation Fault\012\000"
.align 2
.LC4:
.ascii "Caught SIGINT: Interactive attention signal, (usual"
.ascii "ly ctrl+c)\012\000"
.align 2
.LC5:
.ascii "Caught SIGFPE: (integer divide by zero)\012\000"
.align 2
.LC6:
.ascii "Caught SIGFPE: (integer overflow)\012\000"
.align 2
.LC7:
.ascii "Caught SIGFPE: (floating-point divide by zero)\012\000"
.align 2
.LC8:
.ascii "Caught SIGFPE: (floating-point overflow)\012\000"
.align 2
.LC9:
.ascii "Caught SIGFPE: (floating-point underflow)\012\000"
.align 2
.LC10:
.ascii "Caught SIGFPE: (floating-point inexact result)\012\000"
.align 2
.LC11:
.ascii "Caught SIGFPE: (floating-point invalid operation)\012"
.ascii "\000"
.align 2
.LC12:
.ascii "Caught SIGFPE: (subscript out of range)\012\000"
.align 2
.LC13:
.ascii "Caught SIGFPE: Arithmetic Exception\012\000"
.align 2
.LC14:
.ascii "Caught SIGILL: (illegal opcode)\012\000"
.align 2
.LC15:
.ascii "Caught SIGILL: (illegal operand)\012\000"
.align 2
.LC16:
.ascii "Caught SIGILL: (illegal addressing mode)\012\000"
.align 2
.LC17:
.ascii "Caught SIGILL: (illegal trap)\012\000"
.align 2
.LC18:
.ascii "Caught SIGILL: (privileged opcode)\012\000"
.align 2
.LC19:
.ascii "Caught SIGILL: (privileged register)\012\000"
.align 2
.LC20:
.ascii "Caught SIGILL: (coprocessor error)\012\000"
.align 2
.LC21:
.ascii "Caught SIGILL: (internal stack error)\012\000"
.align 2
.LC22:
.ascii "Caught SIGILL: Illegal Instruction\012\000"
.align 2
.LC23:
.ascii "Caught SIGTERM: a termination request was sent to t"
.ascii "he program\012\000"
.align 2
.LC24:
.ascii "Caught SIGABRT: usually caused by an abort() or ass"
.ascii "ert()\012\000"
.text
.align 2
.global posix_signal_handler
.syntax unified
.arm
.fpu softvfp
.type posix_signal_handler, %function
posix_signal_handler:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #16
str r0, [fp, #-8]
str r1, [fp, #-12]
str r2, [fp, #-16]
ldr r3, [fp, #-8]
sub r3, r3, #2
cmp r3, #13
ldrls pc, [pc, r3, asl #2]
b .L45
.L17:
.word .L22
.word .L45
.word .L21
.word .L45
.word .L20
.word .L45
.word .L19
.word .L45
.word .L45
.word .L18
.word .L45
.word .L45
.word .L45
.word .L16
.L18:
ldr r3, .L46
ldr r3, [r3]
mov r2, #35
mov r1, #1
ldr r0, .L46+4
bl fwrite
b .L23
.L22:
ldr r3, .L46
ldr r3, [r3]
mov r2, #62
mov r1, #1
ldr r0, .L46+8
bl fwrite
b .L23
.L19:
ldr r3, [fp, #-12]
ldr r3, [r3, #8]
sub r3, r3, #1
cmp r3, #7
ldrls pc, [pc, r3, asl #2]
b .L24
.L26:
.word .L33
.word .L32
.word .L31
.word .L30
.word .L29
.word .L28
.word .L27
.word .L25
.L33:
ldr r3, .L46
ldr r3, [r3]
mov r2, #40
mov r1, #1
ldr r0, .L46+12
bl fwrite
b .L21
.L32:
ldr r3, .L46
ldr r3, [r3]
mov r2, #34
mov r1, #1
ldr r0, .L46+16
bl fwrite
b .L21
.L31:
ldr r3, .L46
ldr r3, [r3]
mov r2, #47
mov r1, #1
ldr r0, .L46+20
bl fwrite
b .L21
.L30:
ldr r3, .L46
ldr r3, [r3]
mov r2, #41
mov r1, #1
ldr r0, .L46+24
bl fwrite
b .L21
.L29:
ldr r3, .L46
ldr r3, [r3]
mov r2, #42
mov r1, #1
ldr r0, .L46+28
bl fwrite
b .L21
.L28:
ldr r3, .L46
ldr r3, [r3]
mov r2, #47
mov r1, #1
ldr r0, .L46+32
bl fwrite
b .L21
.L27:
ldr r3, .L46
ldr r3, [r3]
mov r2, #50
mov r1, #1
ldr r0, .L46+36
bl fwrite
b .L21
.L25:
ldr r3, .L46
ldr r3, [r3]
mov r2, #40
mov r1, #1
ldr r0, .L46+40
bl fwrite
b .L21
.L24:
ldr r3, .L46
ldr r3, [r3]
mov r2, #36
mov r1, #1
ldr r0, .L46+44
bl fwrite
nop
.L21:
ldr r3, [fp, #-12]
ldr r3, [r3, #8]
sub r3, r3, #1
cmp r3, #7
ldrls pc, [pc, r3, asl #2]
b .L34
.L36:
.word .L43
.word .L42
.word .L41
.word .L40
.word .L39
.word .L38
.word .L37
.word .L35
.L43:
ldr r3, .L46
ldr r3, [r3]
mov r2, #32
mov r1, #1
ldr r0, .L46+48
bl fwrite
b .L44
.L42:
ldr r3, .L46
ldr r3, [r3]
mov r2, #33
mov r1, #1
ldr r0, .L46+52
bl fwrite
b .L44
.L41:
ldr r3, .L46
ldr r3, [r3]
mov r2, #41
mov r1, #1
ldr r0, .L46+56
bl fwrite
b .L44
.L40:
ldr r3, .L46
ldr r3, [r3]
mov r2, #30
mov r1, #1
ldr r0, .L46+60
bl fwrite
b .L44
.L39:
ldr r3, .L46
ldr r3, [r3]
mov r2, #35
mov r1, #1
ldr r0, .L46+64
bl fwrite
b .L44
.L38:
ldr r3, .L46
ldr r3, [r3]
mov r2, #37
mov r1, #1
ldr r0, .L46+68
bl fwrite
b .L44
.L37:
ldr r3, .L46
ldr r3, [r3]
mov r2, #35
mov r1, #1
ldr r0, .L46+72
bl fwrite
b .L44
.L35:
ldr r3, .L46
ldr r3, [r3]
mov r2, #38
mov r1, #1
ldr r0, .L46+76
bl fwrite
b .L44
.L34:
ldr r3, .L46
ldr r3, [r3]
mov r2, #35
mov r1, #1
ldr r0, .L46+80
bl fwrite
nop
.L44:
b .L23
.L16:
ldr r3, .L46
ldr r3, [r3]
mov r2, #62
mov r1, #1
ldr r0, .L46+84
bl fwrite
b .L23
.L20:
ldr r3, .L46
ldr r3, [r3]
mov r2, #57
mov r1, #1
ldr r0, .L46+88
bl fwrite
b .L23
.L45:
nop
.L23:
bl posix_print_stack_trace
mov r0, #1
bl _Exit
.L47:
.align 2
.L46:
.word stderr
.word .LC3
.word .LC4
.word .LC5
.word .LC6
.word .LC7
.word .LC8
.word .LC9
.word .LC10
.word .LC11
.word .LC12
.word .LC13
.word .LC14
.word .LC15
.word .LC16
.word .LC17
.word .LC18
.word .LC19
.word .LC20
.word .LC21
.word .LC22
.word .LC23
.word .LC24
.size posix_signal_handler, .-posix_signal_handler
.local alternate_stack
.comm alternate_stack,8192,4
.section .rodata
.align 2
.LC25:
.ascii "sigaltstack\000"
.align 2
.LC26:
.ascii "sigaction\000"
.align 2
.LC27:
.word __stack_chk_guard
.text
.align 2
.global set_signal_handler
.syntax unified
.arm
.fpu softvfp
.type set_signal_handler, %function
set_signal_handler:
@ args = 0, pretend = 0, frame = 160
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #160
ldr r3, .L58
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
sub r3, fp, #160
mov r2, #0
str r2, [r3]
str r2, [r3, #4]
str r2, [r3, #8]
ldr r3, .L58+4
str r3, [fp, #-160]
mov r3, #8192
str r3, [fp, #-152]
mov r3, #0
str r3, [fp, #-156]
sub r3, fp, #160
mov r1, #0
mov r0, r3
bl sigaltstack
mov r3, r0
cmp r3, #0
beq .L49
ldr r1, .L58+8
mov r0, #1
bl err
.L49:
sub r3, fp, #148
mov r2, #140
mov r1, #0
mov r0, r3
bl memset
ldr r3, .L58+12
str r3, [fp, #-148]
sub r3, fp, #148
add r3, r3, #4
mov r0, r3
bl sigemptyset
ldr r3, .L58+16
str r3, [fp, #-16]
sub r3, fp, #148
mov r2, #0
mov r1, r3
mov r0, #11
bl sigaction
mov r3, r0
cmp r3, #0
beq .L50
ldr r1, .L58+20
mov r0, #1
bl err
.L50:
sub r3, fp, #148
mov r2, #0
mov r1, r3
mov r0, #8
bl sigaction
mov r3, r0
cmp r3, #0
beq .L51
ldr r1, .L58+20
mov r0, #1
bl err
.L51:
sub r3, fp, #148
mov r2, #0
mov r1, r3
mov r0, #2
bl sigaction
mov r3, r0
cmp r3, #0
beq .L52
ldr r1, .L58+20
mov r0, #1
bl err
.L52:
sub r3, fp, #148
mov r2, #0
mov r1, r3
mov r0, #4
bl sigaction
mov r3, r0
cmp r3, #0
beq .L53
ldr r1, .L58+20
mov r0, #1
bl err
.L53:
sub r3, fp, #148
mov r2, #0
mov r1, r3
mov r0, #15
bl sigaction
mov r3, r0
cmp r3, #0
beq .L54
ldr r1, .L58+20
mov r0, #1
bl err
.L54:
sub r3, fp, #148
mov r2, #0
mov r1, r3
mov r0, #6
bl sigaction
mov r3, r0
cmp r3, #0
beq .L57
ldr r1, .L58+20
mov r0, #1
bl err
.L57:
nop
ldr r3, .L58
ldr r2, [r3]
ldr r3, [fp, #-8]
eors r2, r3, r2
mov r3, #0
beq .L56
bl __stack_chk_fail
.L56:
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L59:
.align 2
.L58:
.word .LC27
.word alternate_stack
.word .LC25
.word posix_signal_handler
.word 134217732
.word .LC26
.size set_signal_handler, .-set_signal_handler
.section .rodata
.align 2
.LC28:
.ascii "OMG! Nothing bad happend!\000"
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #8
str r0, [fp, #-8]
str r1, [fp, #-12]
ldr r3, [fp, #-12]
ldr r3, [r3]
ldr r2, .L62
str r3, [r2]
bl set_signal_handler
bl cause_calamity
ldr r0, .L62+4
bl puts
mov r3, #0
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L63:
.align 2
.L62:
.word icky_global_program_name
.word .LC28
.size main, .-main
.align 2
.global cause_calamity
.syntax unified
.arm
.fpu softvfp
.type cause_calamity, %function
cause_calamity:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
bl infinite_loop
nop
pop {fp, pc}
.size cause_calamity, .-cause_calamity
.global __aeabi_idiv
.align 2
.global divide_by_zero
.syntax unified
.arm
.fpu softvfp
.type divide_by_zero, %function
divide_by_zero:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #8
mov r3, #1
str r3, [fp, #-12]
mov r3, #0
str r3, [fp, #-8]
ldr r1, [fp, #-8]
ldr r0, [fp, #-12]
bl __aeabi_idiv
mov r3, r0
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.size divide_by_zero, .-divide_by_zero
.align 2
.global cause_segfault
.syntax unified
.arm
.fpu softvfp
.type cause_segfault, %function
cause_segfault:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #12
ldr r3, .L68
str r3, [fp, #-8]
ldr r3, [fp, #-8]
mov r2, #0
str r2, [r3]
nop
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.L69:
.align 2
.L68:
.word 305419896
.size cause_segfault, .-cause_segfault
.section .rodata
.align 2
.LC29:
.word __stack_chk_guard
.text
.align 2
.global stack_overflow
.syntax unified
.arm
.fpu softvfp
.type stack_overflow, %function
stack_overflow:
@ args = 0, pretend = 0, frame = 4008
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #4000
sub sp, sp, #8
ldr r3, .L72
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
bl stack_overflow
nop
ldr r3, .L72
ldr r2, [r3]
ldr r3, [fp, #-8]
eors r2, r3, r2
mov r3, #0
beq .L71
bl __stack_chk_fail
.L71:
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L73:
.align 2
.L72:
.word .LC29
.size stack_overflow, .-stack_overflow
.align 2
.global infinite_loop
.syntax unified
.arm
.fpu softvfp
.type infinite_loop, %function
infinite_loop:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
.L75:
b .L75
.size infinite_loop, .-infinite_loop
.align 2
.global illegal_instruction
.syntax unified
.arm
.fpu softvfp
.type illegal_instruction, %function
illegal_instruction:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
mov r0, #4
bl raise
nop
pop {fp, pc}
.size illegal_instruction, .-illegal_instruction
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "286679.c"
.intel_syntax noprefix
.text
.globl __VERIFIER_assert
.type __VERIFIER_assert, @function
__VERIFIER_assert:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov DWORD PTR -4[rbp], edi
cmp DWORD PTR -4[rbp], 0
jne .L4
nop
.L3:
mov eax, 0
call __VERIFIER_error@PLT
.L4:
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size __VERIFIER_assert, .-__VERIFIER_assert
.globl N
.bss
.align 4
.type N, @object
.size N, 4
N:
.zero 4
.text
.globl main
.type main, @function
main:
.LFB1:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
push r15
push r14
push r13
push r12
push rbx
sub rsp, 56
.cfi_offset 15, -24
.cfi_offset 14, -32
.cfi_offset 13, -40
.cfi_offset 12, -48
.cfi_offset 3, -56
mov rax, QWORD PTR fs:40
mov QWORD PTR -56[rbp], rax
xor eax, eax
mov rax, rsp
mov rbx, rax
call __VERIFIER_nondet_int@PLT
mov DWORD PTR N[rip], eax
mov eax, DWORD PTR N[rip]
test eax, eax
jg .L6
mov eax, 1
jmp .L7
.L6:
mov eax, DWORD PTR N[rip]
movsx rdx, eax
sub rdx, 1
mov QWORD PTR -80[rbp], rdx
movsx rdx, eax
mov r14, rdx
mov r15d, 0
movsx rdx, eax
mov r12, rdx
mov r13d, 0
cdqe
lea rdx, 0[0+rax*4]
mov eax, 16
sub rax, 1
add rax, rdx
mov esi, 16
mov edx, 0
div rsi
imul rax, rax, 16
mov rcx, rax
and rcx, -4096
mov rdx, rsp
sub rdx, rcx
.L8:
cmp rsp, rdx
je .L9
sub rsp, 4096
or QWORD PTR 4088[rsp], 0
jmp .L8
.L9:
mov rdx, rax
and edx, 4095
sub rsp, rdx
mov rdx, rax
and edx, 4095
test rdx, rdx
je .L10
and eax, 4095
sub rax, 8
add rax, rsp
or QWORD PTR [rax], 0
.L10:
mov rax, rsp
add rax, 3
shr rax, 2
sal rax, 2
mov QWORD PTR -72[rbp], rax
mov DWORD PTR -84[rbp], 0
jmp .L11
.L12:
mov eax, DWORD PTR -84[rbp]
cdq
shr edx, 30
add eax, edx
and eax, 3
sub eax, edx
mov ecx, eax
mov rax, QWORD PTR -72[rbp]
mov edx, DWORD PTR -84[rbp]
movsx rdx, edx
mov DWORD PTR [rax+rdx*4], ecx
add DWORD PTR -84[rbp], 1
.L11:
mov eax, DWORD PTR N[rip]
cmp DWORD PTR -84[rbp], eax
jl .L12
mov DWORD PTR -84[rbp], 0
jmp .L13
.L16:
cmp DWORD PTR -84[rbp], 0
jne .L14
mov DWORD PTR -60[rbp], 0
jmp .L15
.L14:
mov ecx, DWORD PTR -60[rbp]
mov rax, QWORD PTR -72[rbp]
mov edx, DWORD PTR -84[rbp]
movsx rdx, edx
mov eax, DWORD PTR [rax+rdx*4]
add eax, ecx
mov DWORD PTR -60[rbp], eax
.L15:
add DWORD PTR -84[rbp], 1
.L13:
mov eax, DWORD PTR N[rip]
cmp DWORD PTR -84[rbp], eax
jl .L16
mov ecx, DWORD PTR -60[rbp]
mov edx, DWORD PTR N[rip]
mov eax, edx
add eax, eax
add eax, edx
cmp ecx, eax
setg al
movzx eax, al
mov edi, eax
call __VERIFIER_assert
mov eax, 1
.L7:
mov rsp, rbx
mov rsi, QWORD PTR -56[rbp]
sub rsi, QWORD PTR fs:40
je .L18
call __stack_chk_fail@PLT
.L18:
lea rsp, -40[rbp]
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE1:
.size main, .-main
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "286679.c"
.text
.align 2
.global __VERIFIER_assert
.syntax unified
.arm
.fpu softvfp
.type __VERIFIER_assert, %function
__VERIFIER_assert:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #8
str r0, [fp, #-8]
ldr r3, [fp, #-8]
cmp r3, #0
bne .L4
nop
.L3:
bl __VERIFIER_error
.L4:
nop
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.size __VERIFIER_assert, .-__VERIFIER_assert
.comm N,4,4
.section .rodata
.align 2
.LC0:
.word __stack_chk_guard
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 24
@ frame_needed = 1, uses_anonymous_args = 0
push {r4, fp, lr}
add fp, sp, #8
sub sp, sp, #28
ldr r3, .L16
ldr r3, [r3]
str r3, [fp, #-16]
mov r3,#0
mov r3, sp
mov r4, r3
bl __VERIFIER_nondet_int
mov r3, r0
ldr r2, .L16+4
str r3, [r2]
ldr r3, .L16+4
ldr r3, [r3]
cmp r3, #0
bgt .L6
mov r3, #1
b .L7
.L6:
ldr r3, .L16+4
ldr ip, [r3]
sub r3, ip, #1
str r3, [fp, #-28]
mov r3, ip
mov r0, r3
mov r1, #0
mov r2, #0
mov r3, #0
lsl r3, r1, #5
orr r3, r3, r0, lsr #27
lsl r2, r0, #5
mov r3, ip
mov r0, r3
mov r1, #0
mov r2, #0
mov r3, #0
lsl r3, r1, #5
orr r3, r3, r0, lsr #27
lsl r2, r0, #5
mov r3, ip
lsl r3, r3, #2
add r3, r3, #7
lsr r3, r3, #3
lsl r3, r3, #3
sub sp, sp, r3
mov r3, sp
add r3, r3, #3
lsr r3, r3, #2
lsl r3, r3, #2
str r3, [fp, #-24]
mov r3, #0
str r3, [fp, #-32]
b .L8
.L9:
ldr r3, [fp, #-32]
rsbs r2, r3, #0
and r3, r3, #3
and r2, r2, #3
rsbpl r3, r2, #0
ldr r2, [fp, #-24]
ldr r1, [fp, #-32]
str r3, [r2, r1, lsl #2]
ldr r3, [fp, #-32]
add r3, r3, #1
str r3, [fp, #-32]
.L8:
ldr r3, .L16+4
ldr r3, [r3]
ldr r2, [fp, #-32]
cmp r2, r3
blt .L9
mov r3, #0
str r3, [fp, #-32]
b .L10
.L13:
ldr r3, [fp, #-32]
cmp r3, #0
bne .L11
mov r3, #0
str r3, [fp, #-20]
b .L12
.L11:
ldr r2, [fp, #-20]
ldr r3, [fp, #-24]
ldr r1, [fp, #-32]
ldr r3, [r3, r1, lsl #2]
add r3, r2, r3
str r3, [fp, #-20]
.L12:
ldr r3, [fp, #-32]
add r3, r3, #1
str r3, [fp, #-32]
.L10:
ldr r3, .L16+4
ldr r3, [r3]
ldr r2, [fp, #-32]
cmp r2, r3
blt .L13
ldr r1, [fp, #-20]
ldr r3, .L16+4
ldr r2, [r3]
mov r3, r2
lsl r3, r3, #1
add r3, r3, r2
cmp r1, r3
movgt r3, #1
movle r3, #0
and r3, r3, #255
mov r0, r3
bl __VERIFIER_assert
mov r3, #1
.L7:
mov sp, r4
ldr r2, .L16
ldr r1, [r2]
ldr r2, [fp, #-16]
eors r1, r2, r1
mov r2, #0
beq .L15
bl __stack_chk_fail
.L15:
mov r0, r3
sub sp, fp, #8
@ sp needed
pop {r4, fp, pc}
.L17:
.align 2
.L16:
.word .LC0
.word N
.size main, .-main
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "370206.c"
.intel_syntax noprefix
.text
.globl main
.type main, @function
main:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov eax, 0
call example1
mov eax, 0
call example2
mov eax, 0
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size main, .-main
.globl example1
.type example1, @function
example1:
.LFB1:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 432
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
mov DWORD PTR -424[rbp], 0
mov DWORD PTR -420[rbp], 0
jmp .L4
.L7:
mov DWORD PTR -420[rbp], 0
jmp .L5
.L6:
mov eax, DWORD PTR -420[rbp]
movsx rcx, eax
mov eax, DWORD PTR -424[rbp]
movsx rdx, eax
mov rax, rdx
sal rax, 2
add rax, rdx
add rax, rax
add rax, rcx
mov DWORD PTR -416[rbp+rax*4], 42
add DWORD PTR -420[rbp], 1
.L5:
cmp DWORD PTR -420[rbp], 9
jle .L6
mov eax, DWORD PTR -424[rbp]
movsx rdx, eax
mov rax, rdx
sal rax, 2
add rax, rdx
sal rax, 3
add rax, rbp
sub rax, 416
mov eax, DWORD PTR [rax]
cmp eax, 42
sete al
movzx eax, al
mov edi, eax
mov eax, 0
call assert@PLT
mov eax, DWORD PTR -424[rbp]
movsx rdx, eax
mov rax, rdx
sal rax, 2
add rax, rdx
sal rax, 3
add rax, rbp
sub rax, 380
mov eax, DWORD PTR [rax]
cmp eax, 42
sete al
movzx eax, al
mov edi, eax
mov eax, 0
call assert@PLT
mov eax, DWORD PTR -260[rbp]
cmp eax, 42
sete al
movzx eax, al
mov edi, eax
mov eax, 0
call assert@PLT
add DWORD PTR -424[rbp], 1
.L4:
cmp DWORD PTR -424[rbp], 8
jle .L7
mov eax, DWORD PTR -416[rbp]
cmp eax, 42
sete al
movzx eax, al
mov edi, eax
mov eax, 0
call assert@PLT
mov eax, DWORD PTR -316[rbp]
cmp eax, 42
sete al
movzx eax, al
mov edi, eax
mov eax, 0
call assert@PLT
mov eax, DWORD PTR -60[rbp]
cmp eax, 42
sete al
movzx eax, al
mov edi, eax
mov eax, 0
call assert@PLT
mov eax, DWORD PTR -268[rbp]
cmp eax, 42
sete al
movzx eax, al
mov edi, eax
mov eax, 0
call assert@PLT
mov eax, DWORD PTR -20[rbp]
cmp eax, 42
sete al
movzx eax, al
mov edi, eax
mov eax, 0
call assert@PLT
mov eax, DWORD PTR -48[rbp]
cmp eax, 42
sete al
movzx eax, al
mov edi, eax
mov eax, 0
call assert@PLT
nop
mov rax, QWORD PTR -8[rbp]
sub rax, QWORD PTR fs:40
je .L8
call __stack_chk_fail@PLT
.L8:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE1:
.size example1, .-example1
.globl example2
.type example2, @function
example2:
.LFB2:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 432
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
mov DWORD PTR -424[rbp], 9
jmp .L10
.L13:
mov DWORD PTR -420[rbp], 0
jmp .L11
.L12:
mov eax, DWORD PTR -420[rbp]
movsx rcx, eax
mov eax, DWORD PTR -424[rbp]
movsx rdx, eax
mov rax, rdx
sal rax, 2
add rax, rdx
add rax, rax
add rax, rcx
mov DWORD PTR -416[rbp+rax*4], 4711
mov eax, DWORD PTR -424[rbp]
lea edx, -1[rax]
mov eax, DWORD PTR -420[rbp]
add eax, 1
movsx rcx, eax
movsx rdx, edx
mov rax, rdx
sal rax, 2
add rax, rdx
add rax, rax
add rax, rcx
mov eax, DWORD PTR -416[rbp+rax*4]
cmp eax, 4711
sete al
movzx eax, al
mov edi, eax
mov eax, 0
call assert@PLT
add DWORD PTR -420[rbp], 1
.L11:
cmp DWORD PTR -420[rbp], 9
jle .L12
sub DWORD PTR -424[rbp], 1
.L10:
cmp DWORD PTR -424[rbp], 0
jns .L13
mov eax, DWORD PTR -324[rbp]
cmp eax, 4711
sete al
movzx eax, al
mov edi, eax
mov eax, 0
call assert@PLT
mov eax, DWORD PTR -380[rbp]
cmp eax, 4711
sete al
movzx eax, al
mov edi, eax
mov eax, 0
call assert@PLT
mov eax, DWORD PTR -76[rbp]
cmp eax, 4711
sete al
movzx eax, al
mov edi, eax
mov eax, 0
call assert@PLT
mov eax, DWORD PTR -332[rbp]
cmp eax, 4711
sete al
movzx eax, al
mov edi, eax
mov eax, 0
call assert@PLT
mov eax, DWORD PTR -416[rbp]
cmp eax, 4711
sete al
movzx eax, al
mov edi, eax
mov eax, 0
call assert@PLT
mov eax, DWORD PTR -116[rbp]
cmp eax, 4711
sete al
movzx eax, al
mov edi, eax
mov eax, 0
call assert@PLT
nop
mov rax, QWORD PTR -8[rbp]
sub rax, QWORD PTR fs:40
je .L14
call __stack_chk_fail@PLT
.L14:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE2:
.size example2, .-example2
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "370206.c"
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
bl example1
bl example2
mov r3, #0
mov r0, r3
pop {fp, pc}
.size main, .-main
.section .rodata
.align 2
.LC0:
.word __stack_chk_guard
.text
.align 2
.global example1
.syntax unified
.arm
.fpu softvfp
.type example1, %function
example1:
@ args = 0, pretend = 0, frame = 416
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #416
ldr r3, .L9
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
mov r3, #0
str r3, [fp, #-416]
mov r3, #0
str r3, [fp, #-412]
b .L4
.L7:
mov r3, #0
str r3, [fp, #-412]
b .L5
.L6:
ldr r2, [fp, #-416]
mov r3, r2
lsl r3, r3, #2
add r3, r3, r2
lsl r3, r3, #1
ldr r2, [fp, #-412]
add r3, r3, r2
lsl r3, r3, #2
sub r2, fp, #4
add r3, r2, r3
mov r2, #42
str r2, [r3, #-404]
ldr r3, [fp, #-412]
add r3, r3, #1
str r3, [fp, #-412]
.L5:
ldr r3, [fp, #-412]
cmp r3, #9
ble .L6
ldr r2, [fp, #-416]
mov r3, r2
lsl r3, r3, #2
add r3, r3, r2
lsl r3, r3, #3
sub r2, fp, #4
add r3, r2, r3
sub r3, r3, #404
ldr r3, [r3]
cmp r3, #42
moveq r3, #1
movne r3, #0
and r3, r3, #255
mov r0, r3
bl assert
ldr r2, [fp, #-416]
mov r3, r2
lsl r3, r3, #2
add r3, r3, r2
lsl r3, r3, #3
sub r2, fp, #4
add r3, r2, r3
sub r3, r3, #368
ldr r3, [r3]
cmp r3, #42
moveq r3, #1
movne r3, #0
and r3, r3, #255
mov r0, r3
bl assert
ldr r3, [fp, #-252]
cmp r3, #42
moveq r3, #1
movne r3, #0
and r3, r3, #255
mov r0, r3
bl assert
ldr r3, [fp, #-416]
add r3, r3, #1
str r3, [fp, #-416]
.L4:
ldr r3, [fp, #-416]
cmp r3, #8
ble .L7
ldr r3, [fp, #-408]
cmp r3, #42
moveq r3, #1
movne r3, #0
and r3, r3, #255
mov r0, r3
bl assert
ldr r3, [fp, #-308]
cmp r3, #42
moveq r3, #1
movne r3, #0
and r3, r3, #255
mov r0, r3
bl assert
ldr r3, [fp, #-52]
cmp r3, #42
moveq r3, #1
movne r3, #0
and r3, r3, #255
mov r0, r3
bl assert
ldr r3, [fp, #-260]
cmp r3, #42
moveq r3, #1
movne r3, #0
and r3, r3, #255
mov r0, r3
bl assert
ldr r3, [fp, #-12]
cmp r3, #42
moveq r3, #1
movne r3, #0
and r3, r3, #255
mov r0, r3
bl assert
ldr r3, [fp, #-40]
cmp r3, #42
moveq r3, #1
movne r3, #0
and r3, r3, #255
mov r0, r3
bl assert
nop
ldr r3, .L9
ldr r2, [r3]
ldr r3, [fp, #-8]
eors r2, r3, r2
mov r3, #0
beq .L8
bl __stack_chk_fail
.L8:
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L10:
.align 2
.L9:
.word .LC0
.size example1, .-example1
.section .rodata
.align 2
.LC1:
.word __stack_chk_guard
.text
.align 2
.global example2
.syntax unified
.arm
.fpu softvfp
.type example2, %function
example2:
@ args = 0, pretend = 0, frame = 416
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #416
ldr r3, .L17
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
mov r3, #9
str r3, [fp, #-416]
b .L12
.L15:
mov r3, #0
str r3, [fp, #-412]
b .L13
.L14:
ldr r2, [fp, #-416]
mov r3, r2
lsl r3, r3, #2
add r3, r3, r2
lsl r3, r3, #1
ldr r2, [fp, #-412]
add r3, r3, r2
lsl r3, r3, #2
sub r2, fp, #4
add r3, r2, r3
ldr r2, .L17+4
str r2, [r3, #-404]
ldr r3, [fp, #-416]
sub r2, r3, #1
ldr r3, [fp, #-412]
add r1, r3, #1
mov r3, r2
lsl r3, r3, #2
add r3, r3, r2
lsl r3, r3, #1
add r3, r3, r1
lsl r3, r3, #2
sub r2, fp, #4
add r3, r2, r3
ldr r3, [r3, #-404]
ldr r2, .L17+4
cmp r3, r2
moveq r3, #1
movne r3, #0
and r3, r3, #255
mov r0, r3
bl assert
ldr r3, [fp, #-412]
add r3, r3, #1
str r3, [fp, #-412]
.L13:
ldr r3, [fp, #-412]
cmp r3, #9
ble .L14
ldr r3, [fp, #-416]
sub r3, r3, #1
str r3, [fp, #-416]
.L12:
ldr r3, [fp, #-416]
cmp r3, #0
bge .L15
ldr r3, [fp, #-316]
ldr r2, .L17+4
cmp r3, r2
moveq r3, #1
movne r3, #0
and r3, r3, #255
mov r0, r3
bl assert
ldr r3, [fp, #-372]
ldr r2, .L17+4
cmp r3, r2
moveq r3, #1
movne r3, #0
and r3, r3, #255
mov r0, r3
bl assert
ldr r3, [fp, #-68]
ldr r2, .L17+4
cmp r3, r2
moveq r3, #1
movne r3, #0
and r3, r3, #255
mov r0, r3
bl assert
ldr r3, [fp, #-324]
ldr r2, .L17+4
cmp r3, r2
moveq r3, #1
movne r3, #0
and r3, r3, #255
mov r0, r3
bl assert
ldr r3, [fp, #-408]
ldr r2, .L17+4
cmp r3, r2
moveq r3, #1
movne r3, #0
and r3, r3, #255
mov r0, r3
bl assert
ldr r3, [fp, #-108]
ldr r2, .L17+4
cmp r3, r2
moveq r3, #1
movne r3, #0
and r3, r3, #255
mov r0, r3
bl assert
nop
ldr r3, .L17
ldr r2, [r3]
ldr r3, [fp, #-8]
eors r2, r3, r2
mov r3, #0
beq .L16
bl __stack_chk_fail
.L16:
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L18:
.align 2
.L17:
.word .LC1
.word 4711
.size example2, .-example2
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "824300.c"
.intel_syntax noprefix
.text
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "824300.c"
.text
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "672643.c"
.intel_syntax noprefix
.text
.globl randRange
.type randRange, @function
randRange:
.LFB6:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov DWORD PTR -4[rbp], edi
mov DWORD PTR -8[rbp], esi
call rand@PLT
mov edx, DWORD PTR -8[rbp]
mov ecx, edx
sub ecx, DWORD PTR -4[rbp]
cdq
idiv ecx
mov eax, DWORD PTR -4[rbp]
add eax, edx
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size randRange, .-randRange
.globl getSeed
.type getSeed, @function
getSeed:
.LFB7:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
mov QWORD PTR -16[rbp], 0
lea rax, -16[rbp]
mov rdi, rax
call time@PLT
mov rdx, QWORD PTR -8[rbp]
sub rdx, QWORD PTR fs:40
je .L5
call __stack_chk_fail@PLT
.L5:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE7:
.size getSeed, .-getSeed
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "672643.c"
.text
.global __aeabi_idivmod
.align 2
.global randRange
.syntax unified
.arm
.fpu softvfp
.type randRange, %function
randRange:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #8
str r0, [fp, #-8]
str r1, [fp, #-12]
bl rand
ldr r2, [fp, #-12]
ldr r3, [fp, #-8]
sub r3, r2, r3
mov r1, r3
bl __aeabi_idivmod
mov r3, r1
mov r2, r3
ldr r3, [fp, #-8]
add r3, r2, r3
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.size randRange, .-randRange
.section .rodata
.align 2
.LC0:
.word __stack_chk_guard
.text
.align 2
.global getSeed
.syntax unified
.arm
.fpu softvfp
.type getSeed, %function
getSeed:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #8
ldr r3, .L6
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
mov r3, #0
str r3, [fp, #-12]
sub r3, fp, #12
mov r0, r3
bl time
mov r3, r0
ldr r2, .L6
ldr r1, [r2]
ldr r2, [fp, #-8]
eors r1, r2, r1
mov r2, #0
beq .L5
bl __stack_chk_fail
.L5:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L7:
.align 2
.L6:
.word .LC0
.size getSeed, .-getSeed
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "960269.c"
.intel_syntax noprefix
.text
.section .rodata
.LC0:
.string "usage: %s source destination\n"
.LC1:
.string "Cannot open "
.LC2:
.string "Cannot creat"
.LC3:
.string "Write error to "
.LC4:
.string "Read error from "
.LC5:
.string ""
.LC6:
.string "Error closing files"
.text
.globl main
.type main, @function
main:
.LFB6:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 4096
or QWORD PTR [rsp], 0
sub rsp, 48
mov DWORD PTR -4132[rbp], edi
mov QWORD PTR -4144[rbp], rsi
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
cmp DWORD PTR -4132[rbp], 3
je .L2
mov rax, QWORD PTR -4144[rbp]
mov rdx, QWORD PTR [rax]
mov rax, QWORD PTR stderr[rip]
lea rsi, .LC0[rip]
mov rdi, rax
mov eax, 0
call fprintf@PLT
mov edi, 1
call exit@PLT
.L2:
mov rax, QWORD PTR -4144[rbp]
add rax, 8
mov rax, QWORD PTR [rax]
mov esi, 0
mov rdi, rax
mov eax, 0
call open@PLT
cmp eax, -1
sete al
movzx eax, al
mov DWORD PTR -4124[rbp], eax
cmp DWORD PTR -4124[rbp], 0
je .L3
mov rax, QWORD PTR -4144[rbp]
add rax, 8
mov rax, QWORD PTR [rax]
mov rsi, rax
lea rdi, .LC1[rip]
call oops
.L3:
mov rax, QWORD PTR -4144[rbp]
add rax, 16
mov rax, QWORD PTR [rax]
mov esi, 420
mov rdi, rax
call creat@PLT
mov DWORD PTR -4120[rbp], eax
cmp DWORD PTR -4120[rbp], -1
jne .L5
mov rax, QWORD PTR -4144[rbp]
add rax, 16
mov rax, QWORD PTR [rax]
mov rsi, rax
lea rdi, .LC2[rip]
call oops
jmp .L5
.L6:
mov eax, DWORD PTR -4116[rbp]
movsx rdx, eax
lea rcx, -4112[rbp]
mov eax, DWORD PTR -4120[rbp]
mov rsi, rcx
mov edi, eax
call write@PLT
mov edx, DWORD PTR -4116[rbp]
movsx rdx, edx
cmp rax, rdx
je .L5
mov rax, QWORD PTR -4144[rbp]
add rax, 16
mov rax, QWORD PTR [rax]
mov rsi, rax
lea rdi, .LC3[rip]
call oops
.L5:
lea rcx, -4112[rbp]
mov eax, DWORD PTR -4124[rbp]
mov edx, 4096
mov rsi, rcx
mov edi, eax
call read@PLT
mov DWORD PTR -4116[rbp], eax
cmp DWORD PTR -4116[rbp], 0
jg .L6
cmp DWORD PTR -4116[rbp], -1
jne .L7
mov rax, QWORD PTR -4144[rbp]
add rax, 8
mov rax, QWORD PTR [rax]
mov rsi, rax
lea rdi, .LC4[rip]
call oops
.L7:
mov eax, DWORD PTR -4124[rbp]
mov edi, eax
call close@PLT
cmp eax, -1
je .L8
mov eax, DWORD PTR -4120[rbp]
mov edi, eax
call close@PLT
cmp eax, -1
jne .L9
.L8:
lea rsi, .LC5[rip]
lea rdi, .LC6[rip]
call oops
.L9:
mov eax, 0
mov rcx, QWORD PTR -8[rbp]
sub rcx, QWORD PTR fs:40
je .L11
call __stack_chk_fail@PLT
.L11:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size main, .-main
.section .rodata
.LC7:
.string "Error: %s "
.text
.globl oops
.type oops, @function
oops:
.LFB7:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov QWORD PTR -8[rbp], rdi
mov QWORD PTR -16[rbp], rsi
mov rax, QWORD PTR stderr[rip]
mov rdx, QWORD PTR -8[rbp]
lea rsi, .LC7[rip]
mov rdi, rax
mov eax, 0
call fprintf@PLT
mov rax, QWORD PTR -16[rbp]
mov rdi, rax
call perror@PLT
mov edi, 1
call exit@PLT
.cfi_endproc
.LFE7:
.size oops, .-oops
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "960269.c"
.text
.section .rodata
.align 2
.LC0:
.ascii "usage: %s source destination\012\000"
.align 2
.LC1:
.ascii "Cannot open \000"
.align 2
.LC2:
.ascii "Cannot creat\000"
.align 2
.LC3:
.ascii "Write error to \000"
.align 2
.LC4:
.ascii "Read error from \000"
.align 2
.LC5:
.ascii "\000"
.align 2
.LC6:
.ascii "Error closing files\000"
.align 2
.LC7:
.word __stack_chk_guard
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 4120
@ frame_needed = 1, uses_anonymous_args = 0
push {r4, fp, lr}
add fp, sp, #8
sub sp, sp, #4096
sub sp, sp, #28
sub r3, fp, #4096
sub r3, r3, #12
str r0, [r3, #-20]
sub r3, fp, #4096
sub r3, r3, #12
str r1, [r3, #-24]
ldr r3, .L12
ldr r3, [r3]
str r3, [fp, #-16]
mov r3,#0
sub r3, fp, #4096
sub r3, r3, #12
ldr r3, [r3, #-20]
cmp r3, #3
beq .L2
ldr r3, .L12+4
ldr r0, [r3]
sub r3, fp, #4096
sub r3, r3, #12
ldr r3, [r3, #-24]
ldr r3, [r3]
mov r2, r3
ldr r1, .L12+8
bl fprintf
mov r0, #1
bl exit
.L2:
sub r3, fp, #4096
sub r3, r3, #12
ldr r3, [r3, #-24]
add r3, r3, #4
ldr r3, [r3]
mov r1, #0
mov r0, r3
bl open
mov r3, r0
cmn r3, #1
moveq r3, #1
movne r3, #0
and r3, r3, #255
sub r2, fp, #4096
sub r2, r2, #12
str r3, [r2, #-16]
sub r3, fp, #4096
sub r3, r3, #12
ldr r3, [r3, #-16]
cmp r3, #0
beq .L3
sub r3, fp, #4096
sub r3, r3, #12
ldr r3, [r3, #-24]
add r3, r3, #4
ldr r3, [r3]
mov r1, r3
ldr r0, .L12+12
bl oops
.L3:
sub r3, fp, #4096
sub r3, r3, #12
ldr r3, [r3, #-24]
add r3, r3, #8
ldr r3, [r3]
sub r2, fp, #4096
sub r2, r2, #12
mov r4, r2
mov r1, #420
mov r0, r3
bl creat
str r0, [r4, #-12]
sub r3, fp, #4096
sub r3, r3, #12
ldr r3, [r3, #-12]
cmn r3, #1
bne .L5
sub r3, fp, #4096
sub r3, r3, #12
ldr r3, [r3, #-24]
add r3, r3, #8
ldr r3, [r3]
mov r1, r3
ldr r0, .L12+16
bl oops
b .L5
.L6:
sub r3, fp, #4096
sub r3, r3, #12
ldr r2, [r3, #-8]
sub r3, fp, #4096
sub r3, r3, #12
sub r3, r3, #4
sub r1, fp, #4096
sub r1, r1, #12
mov r0, r1
mov r1, r3
ldr r0, [r0, #-12]
bl write
mov r2, r0
sub r3, fp, #4096
sub r3, r3, #12
ldr r3, [r3, #-8]
cmp r3, r2
beq .L5
sub r3, fp, #4096
sub r3, r3, #12
ldr r3, [r3, #-24]
add r3, r3, #8
ldr r3, [r3]
mov r1, r3
ldr r0, .L12+20
bl oops
.L5:
sub r3, fp, #4096
sub r3, r3, #12
mov r4, r3
sub r3, fp, #4096
sub r3, r3, #12
sub r3, r3, #4
sub r2, fp, #4096
sub r2, r2, #12
mov r0, r2
mov r2, #4096
mov r1, r3
ldr r0, [r0, #-16]
bl read
str r0, [r4, #-8]
sub r3, fp, #4096
sub r3, r3, #12
ldr r3, [r3, #-8]
cmp r3, #0
bgt .L6
sub r3, fp, #4096
sub r3, r3, #12
ldr r3, [r3, #-8]
cmn r3, #1
bne .L7
sub r3, fp, #4096
sub r3, r3, #12
ldr r3, [r3, #-24]
add r3, r3, #4
ldr r3, [r3]
mov r1, r3
ldr r0, .L12+24
bl oops
.L7:
sub r3, fp, #4096
sub r3, r3, #12
ldr r0, [r3, #-16]
bl close
mov r3, r0
cmn r3, #1
beq .L8
sub r3, fp, #4096
sub r3, r3, #12
ldr r0, [r3, #-12]
bl close
mov r3, r0
cmn r3, #1
bne .L9
.L8:
ldr r1, .L12+28
ldr r0, .L12+32
bl oops
.L9:
mov r3, #0
ldr r2, .L12
ldr r1, [r2]
ldr r2, [fp, #-16]
eors r1, r2, r1
mov r2, #0
beq .L11
bl __stack_chk_fail
.L11:
mov r0, r3
sub sp, fp, #8
@ sp needed
pop {r4, fp, pc}
.L13:
.align 2
.L12:
.word .LC7
.word stderr
.word .LC0
.word .LC1
.word .LC2
.word .LC3
.word .LC4
.word .LC5
.word .LC6
.size main, .-main
.section .rodata
.align 2
.LC8:
.ascii "Error: %s \000"
.text
.align 2
.global oops
.syntax unified
.arm
.fpu softvfp
.type oops, %function
oops:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #8
str r0, [fp, #-8]
str r1, [fp, #-12]
ldr r3, .L15
ldr r3, [r3]
ldr r2, [fp, #-8]
ldr r1, .L15+4
mov r0, r3
bl fprintf
ldr r0, [fp, #-12]
bl perror
mov r0, #1
bl exit
.L16:
.align 2
.L15:
.word stderr
.word .LC8
.size oops, .-oops
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "574960.c"
.intel_syntax noprefix
.text
.globl degistir_ptr
.type degistir_ptr, @function
degistir_ptr:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov QWORD PTR -8[rbp], rdi
mov rax, QWORD PTR -8[rbp]
mov DWORD PTR [rax], 20
nop
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size degistir_ptr, .-degistir_ptr
.globl degistir
.type degistir, @function
degistir:
.LFB1:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov DWORD PTR -4[rbp], edi
mov DWORD PTR -4[rbp], 20
nop
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE1:
.size degistir, .-degistir
.section .rodata
.LC0:
.string "A: %d\n"
.LC1:
.string "A'yi arttiriyoruz: %d\n"
.LC2:
.string "B: %d\n"
.align 8
.LC3:
.string "B'yi arttirmayi deniyoruz: %d\n"
.text
.globl main
.type main, @function
main:
.LFB2:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
mov DWORD PTR -16[rbp], 50
mov DWORD PTR -12[rbp], 60
mov eax, DWORD PTR -16[rbp]
mov esi, eax
lea rdi, .LC0[rip]
mov eax, 0
call printf@PLT
lea rax, -16[rbp]
mov rdi, rax
call degistir_ptr
mov eax, DWORD PTR -16[rbp]
mov esi, eax
lea rdi, .LC1[rip]
mov eax, 0
call printf@PLT
mov eax, DWORD PTR -12[rbp]
mov esi, eax
lea rdi, .LC2[rip]
mov eax, 0
call printf@PLT
mov eax, DWORD PTR -12[rbp]
mov edi, eax
call degistir
mov eax, DWORD PTR -12[rbp]
mov esi, eax
lea rdi, .LC3[rip]
mov eax, 0
call printf@PLT
mov eax, 0
mov rdx, QWORD PTR -8[rbp]
sub rdx, QWORD PTR fs:40
je .L5
call __stack_chk_fail@PLT
.L5:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE2:
.size main, .-main
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "574960.c"
.text
.align 2
.global degistir_ptr
.syntax unified
.arm
.fpu softvfp
.type degistir_ptr, %function
degistir_ptr:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #12
str r0, [fp, #-8]
ldr r3, [fp, #-8]
mov r2, #20
str r2, [r3]
nop
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size degistir_ptr, .-degistir_ptr
.align 2
.global degistir
.syntax unified
.arm
.fpu softvfp
.type degistir, %function
degistir:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #12
str r0, [fp, #-8]
mov r3, #20
str r3, [fp, #-8]
nop
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size degistir, .-degistir
.section .rodata
.align 2
.LC0:
.ascii "A: %d\012\000"
.align 2
.LC1:
.ascii "A'yi arttiriyoruz: %d\012\000"
.align 2
.LC2:
.ascii "B: %d\012\000"
.align 2
.LC3:
.ascii "B'yi arttirmayi deniyoruz: %d\012\000"
.align 2
.LC4:
.word __stack_chk_guard
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #16
ldr r3, .L6
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
mov r3, #50
str r3, [fp, #-16]
mov r3, #60
str r3, [fp, #-12]
ldr r3, [fp, #-16]
mov r1, r3
ldr r0, .L6+4
bl printf
sub r3, fp, #16
mov r0, r3
bl degistir_ptr
ldr r3, [fp, #-16]
mov r1, r3
ldr r0, .L6+8
bl printf
ldr r1, [fp, #-12]
ldr r0, .L6+12
bl printf
ldr r0, [fp, #-12]
bl degistir
ldr r1, [fp, #-12]
ldr r0, .L6+16
bl printf
mov r3, #0
ldr r2, .L6
ldr r1, [r2]
ldr r2, [fp, #-8]
eors r1, r2, r1
mov r2, #0
beq .L5
bl __stack_chk_fail
.L5:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L7:
.align 2
.L6:
.word .LC4
.word .LC0
.word .LC1
.word .LC2
.word .LC3
.size main, .-main
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "53558.c"
.intel_syntax noprefix
.text
.globl parent
.type parent, @function
parent:
.LFB6:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov DWORD PTR -4[rbp], edi
mov eax, DWORD PTR -4[rbp]
sub eax, 1
mov edx, eax
shr edx, 31
add eax, edx
sar eax
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size parent, .-parent
.globl lchild
.type lchild, @function
lchild:
.LFB7:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov DWORD PTR -4[rbp], edi
mov eax, DWORD PTR -4[rbp]
add eax, eax
add eax, 1
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE7:
.size lchild, .-lchild
.globl rchild
.type rchild, @function
rchild:
.LFB8:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov DWORD PTR -4[rbp], edi
mov eax, DWORD PTR -4[rbp]
add eax, 1
add eax, eax
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE8:
.size rchild, .-rchild
.section .rodata
.LC0:
.string "the_stack_data/53558.c"
.LC1:
.string "aHeap != NULL"
.LC2:
.string "%d "
.text
.globl printHeap
.type printHeap, @function
printHeap:
.LFB9:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 32
mov QWORD PTR -24[rbp], rdi
cmp QWORD PTR -24[rbp], 0
jne .L8
lea rcx, __PRETTY_FUNCTION__.6[rip]
mov edx, 50
lea rsi, .LC0[rip]
lea rdi, .LC1[rip]
call __assert_fail@PLT
.L8:
mov DWORD PTR -4[rbp], 0
jmp .L9
.L10:
mov rax, QWORD PTR -24[rbp]
mov rdx, QWORD PTR 8[rax]
mov eax, DWORD PTR -4[rbp]
cdqe
sal rax, 2
add rax, rdx
mov eax, DWORD PTR [rax]
mov esi, eax
lea rdi, .LC2[rip]
mov eax, 0
call printf@PLT
add DWORD PTR -4[rbp], 1
.L9:
mov rax, QWORD PTR -24[rbp]
mov eax, DWORD PTR [rax]
cmp DWORD PTR -4[rbp], eax
jl .L10
mov edi, 10
call putchar@PLT
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE9:
.size printHeap, .-printHeap
.section .rodata
.LC3:
.string "maxSize > 0"
.text
.globl newHeap
.type newHeap, @function
newHeap:
.LFB10:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 32
mov DWORD PTR -20[rbp], edi
cmp DWORD PTR -20[rbp], 0
jg .L12
lea rcx, __PRETTY_FUNCTION__.5[rip]
mov edx, 61
lea rsi, .LC0[rip]
lea rdi, .LC3[rip]
call __assert_fail@PLT
.L12:
mov edi, 16
call malloc@PLT
mov QWORD PTR -8[rbp], rax
mov rax, QWORD PTR -8[rbp]
mov DWORD PTR [rax], 0
mov rax, QWORD PTR -8[rbp]
mov edx, DWORD PTR -20[rbp]
mov DWORD PTR 4[rax], edx
mov rax, QWORD PTR -8[rbp]
mov eax, DWORD PTR 4[rax]
cdqe
sal rax, 2
mov rdi, rax
call malloc@PLT
mov rdx, rax
mov rax, QWORD PTR -8[rbp]
mov QWORD PTR 8[rax], rdx
mov rax, QWORD PTR -8[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE10:
.size newHeap, .-newHeap
.section .rodata
.LC4:
.string "aHeap->array != NULL"
.text
.globl deleteHeap
.type deleteHeap, @function
deleteHeap:
.LFB11:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov QWORD PTR -8[rbp], rdi
cmp QWORD PTR -8[rbp], 0
jne .L15
lea rcx, __PRETTY_FUNCTION__.4[rip]
mov edx, 73
lea rsi, .LC0[rip]
lea rdi, .LC1[rip]
call __assert_fail@PLT
.L15:
mov rax, QWORD PTR -8[rbp]
mov rax, QWORD PTR 8[rax]
test rax, rax
jne .L16
lea rcx, __PRETTY_FUNCTION__.4[rip]
mov edx, 74
lea rsi, .LC0[rip]
lea rdi, .LC4[rip]
call __assert_fail@PLT
.L16:
mov rax, QWORD PTR -8[rbp]
mov rax, QWORD PTR 8[rax]
mov rdi, rax
call free@PLT
mov rax, QWORD PTR -8[rbp]
mov rdi, rax
call free@PLT
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE11:
.size deleteHeap, .-deleteHeap
.globl isFullHeap
.type isFullHeap, @function
isFullHeap:
.LFB12:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov QWORD PTR -8[rbp], rdi
cmp QWORD PTR -8[rbp], 0
jne .L18
lea rcx, __PRETTY_FUNCTION__.3[rip]
mov edx, 82
lea rsi, .LC0[rip]
lea rdi, .LC1[rip]
call __assert_fail@PLT
.L18:
mov rax, QWORD PTR -8[rbp]
mov edx, DWORD PTR [rax]
mov rax, QWORD PTR -8[rbp]
mov eax, DWORD PTR 4[rax]
cmp edx, eax
jne .L19
mov eax, 1
jmp .L20
.L19:
mov eax, 0
.L20:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE12:
.size isFullHeap, .-isFullHeap
.globl isEmptyHeap
.type isEmptyHeap, @function
isEmptyHeap:
.LFB13:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov QWORD PTR -8[rbp], rdi
cmp QWORD PTR -8[rbp], 0
jne .L22
lea rcx, __PRETTY_FUNCTION__.2[rip]
mov edx, 92
lea rsi, .LC0[rip]
lea rdi, .LC1[rip]
call __assert_fail@PLT
.L22:
mov rax, QWORD PTR -8[rbp]
mov eax, DWORD PTR [rax]
test eax, eax
jne .L23
mov eax, 1
jmp .L24
.L23:
mov eax, 0
.L24:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE13:
.size isEmptyHeap, .-isEmptyHeap
.section .rodata
.LC5:
.string "aHeap->size < aHeap->maxSize"
.text
.globl insertHeap
.type insertHeap, @function
insertHeap:
.LFB14:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
push rbx
sub rsp, 40
.cfi_offset 3, -24
mov QWORD PTR -40[rbp], rdi
mov DWORD PTR -44[rbp], esi
cmp QWORD PTR -40[rbp], 0
jne .L26
lea rcx, __PRETTY_FUNCTION__.1[rip]
mov edx, 104
lea rsi, .LC0[rip]
lea rdi, .LC1[rip]
call __assert_fail@PLT
.L26:
mov rax, QWORD PTR -40[rbp]
mov edx, DWORD PTR [rax]
mov rax, QWORD PTR -40[rbp]
mov eax, DWORD PTR 4[rax]
cmp edx, eax
jl .L27
lea rcx, __PRETTY_FUNCTION__.1[rip]
mov edx, 105
lea rsi, .LC0[rip]
lea rdi, .LC5[rip]
call __assert_fail@PLT
.L27:
mov rax, QWORD PTR -40[rbp]
mov rdx, QWORD PTR 8[rax]
mov rax, QWORD PTR -40[rbp]
mov eax, DWORD PTR [rax]
cdqe
sal rax, 2
add rdx, rax
mov eax, DWORD PTR -44[rbp]
mov DWORD PTR [rdx], eax
mov rax, QWORD PTR -40[rbp]
mov eax, DWORD PTR [rax]
mov DWORD PTR -24[rbp], eax
jmp .L28
.L30:
mov rax, QWORD PTR -40[rbp]
mov rdx, QWORD PTR 8[rax]
mov eax, DWORD PTR -24[rbp]
cdqe
sal rax, 2
add rax, rdx
mov eax, DWORD PTR [rax]
mov DWORD PTR -20[rbp], eax
mov rax, QWORD PTR -40[rbp]
mov rbx, QWORD PTR 8[rax]
mov eax, DWORD PTR -24[rbp]
mov edi, eax
call parent
cdqe
sal rax, 2
lea rcx, [rbx+rax]
mov rax, QWORD PTR -40[rbp]
mov rdx, QWORD PTR 8[rax]
mov eax, DWORD PTR -24[rbp]
cdqe
sal rax, 2
add rdx, rax
mov eax, DWORD PTR [rcx]
mov DWORD PTR [rdx], eax
mov rax, QWORD PTR -40[rbp]
mov rbx, QWORD PTR 8[rax]
mov eax, DWORD PTR -24[rbp]
mov edi, eax
call parent
cdqe
sal rax, 2
lea rdx, [rbx+rax]
mov eax, DWORD PTR -20[rbp]
mov DWORD PTR [rdx], eax
mov eax, DWORD PTR -24[rbp]
mov edi, eax
call parent
mov DWORD PTR -24[rbp], eax
.L28:
mov rax, QWORD PTR -40[rbp]
mov rbx, QWORD PTR 8[rax]
mov eax, DWORD PTR -24[rbp]
mov edi, eax
call parent
cdqe
sal rax, 2
add rax, rbx
mov eax, DWORD PTR [rax]
cmp DWORD PTR -44[rbp], eax
jle .L29
cmp DWORD PTR -24[rbp], 0
jne .L30
.L29:
mov rax, QWORD PTR -40[rbp]
mov eax, DWORD PTR [rax]
lea edx, 1[rax]
mov rax, QWORD PTR -40[rbp]
mov DWORD PTR [rax], edx
nop
mov rbx, QWORD PTR -8[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE14:
.size insertHeap, .-insertHeap
.section .rodata
.LC6:
.string "aHeap->size > 0"
.text
.globl removeHeap
.type removeHeap, @function
removeHeap:
.LFB15:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 48
mov QWORD PTR -40[rbp], rdi
cmp QWORD PTR -40[rbp], 0
jne .L32
lea rcx, __PRETTY_FUNCTION__.0[rip]
mov edx, 124
lea rsi, .LC0[rip]
lea rdi, .LC1[rip]
call __assert_fail@PLT
.L32:
mov rax, QWORD PTR -40[rbp]
mov eax, DWORD PTR [rax]
test eax, eax
jg .L33
lea rcx, __PRETTY_FUNCTION__.0[rip]
mov edx, 125
lea rsi, .LC0[rip]
lea rdi, .LC6[rip]
call __assert_fail@PLT
.L33:
mov rax, QWORD PTR -40[rbp]
mov eax, DWORD PTR [rax]
lea edx, -1[rax]
mov rax, QWORD PTR -40[rbp]
mov DWORD PTR [rax], edx
mov rax, QWORD PTR -40[rbp]
mov rax, QWORD PTR 8[rax]
mov eax, DWORD PTR [rax]
mov DWORD PTR -16[rbp], eax
mov rax, QWORD PTR -40[rbp]
mov rdx, QWORD PTR 8[rax]
mov rax, QWORD PTR -40[rbp]
mov eax, DWORD PTR [rax]
cdqe
sal rax, 2
add rdx, rax
mov rax, QWORD PTR -40[rbp]
mov rax, QWORD PTR 8[rax]
mov edx, DWORD PTR [rdx]
mov DWORD PTR [rax], edx
mov DWORD PTR -24[rbp], 0
.L38:
mov eax, DWORD PTR -24[rbp]
mov edi, eax
call lchild
mov DWORD PTR -12[rbp], eax
mov eax, DWORD PTR -24[rbp]
mov edi, eax
call rchild
mov DWORD PTR -8[rbp], eax
mov eax, DWORD PTR -24[rbp]
mov DWORD PTR -20[rbp], eax
mov rax, QWORD PTR -40[rbp]
mov eax, DWORD PTR [rax]
cmp DWORD PTR -12[rbp], eax
jge .L34
mov rax, QWORD PTR -40[rbp]
mov rdx, QWORD PTR 8[rax]
mov eax, DWORD PTR -12[rbp]
cdqe
sal rax, 2
add rax, rdx
mov edx, DWORD PTR [rax]
mov rax, QWORD PTR -40[rbp]
mov rcx, QWORD PTR 8[rax]
mov eax, DWORD PTR -20[rbp]
cdqe
sal rax, 2
add rax, rcx
mov eax, DWORD PTR [rax]
cmp edx, eax
jle .L34
mov eax, DWORD PTR -12[rbp]
mov DWORD PTR -20[rbp], eax
.L34:
mov rax, QWORD PTR -40[rbp]
mov eax, DWORD PTR [rax]
cmp DWORD PTR -8[rbp], eax
jge .L35
mov rax, QWORD PTR -40[rbp]
mov rdx, QWORD PTR 8[rax]
mov eax, DWORD PTR -8[rbp]
cdqe
sal rax, 2
add rax, rdx
mov edx, DWORD PTR [rax]
mov rax, QWORD PTR -40[rbp]
mov rcx, QWORD PTR 8[rax]
mov eax, DWORD PTR -20[rbp]
cdqe
sal rax, 2
add rax, rcx
mov eax, DWORD PTR [rax]
cmp edx, eax
jle .L35
mov eax, DWORD PTR -8[rbp]
mov DWORD PTR -20[rbp], eax
.L35:
mov eax, DWORD PTR -20[rbp]
cmp eax, DWORD PTR -24[rbp]
je .L41
mov rax, QWORD PTR -40[rbp]
mov rdx, QWORD PTR 8[rax]
mov eax, DWORD PTR -24[rbp]
cdqe
sal rax, 2
add rax, rdx
mov eax, DWORD PTR [rax]
mov DWORD PTR -4[rbp], eax
mov rax, QWORD PTR -40[rbp]
mov rdx, QWORD PTR 8[rax]
mov eax, DWORD PTR -20[rbp]
cdqe
sal rax, 2
lea rcx, [rdx+rax]
mov rax, QWORD PTR -40[rbp]
mov rdx, QWORD PTR 8[rax]
mov eax, DWORD PTR -24[rbp]
cdqe
sal rax, 2
add rdx, rax
mov eax, DWORD PTR [rcx]
mov DWORD PTR [rdx], eax
mov rax, QWORD PTR -40[rbp]
mov rdx, QWORD PTR 8[rax]
mov eax, DWORD PTR -20[rbp]
cdqe
sal rax, 2
add rdx, rax
mov eax, DWORD PTR -4[rbp]
mov DWORD PTR [rdx], eax
mov eax, DWORD PTR -20[rbp]
mov DWORD PTR -24[rbp], eax
jmp .L38
.L41:
nop
mov eax, DWORD PTR -16[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE15:
.size removeHeap, .-removeHeap
.section .rodata
.LC7:
.string "Wrong arguments"
.LC8:
.string "rt"
.LC9:
.string "%d\n"
.text
.globl main
.type main, @function
main:
.LFB16:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 336
mov DWORD PTR -324[rbp], edi
mov QWORD PTR -336[rbp], rsi
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
cmp DWORD PTR -324[rbp], 1
jg .L43
lea rdi, .LC7[rip]
call puts@PLT
mov eax, 1
jmp .L44
.L43:
mov rax, QWORD PTR -336[rbp]
add rax, 8
mov rax, QWORD PTR [rax]
mov rdi, rax
call atoi@PLT
mov DWORD PTR -308[rbp], eax
mov rax, QWORD PTR -336[rbp]
mov rax, QWORD PTR 16[rax]
mov QWORD PTR -296[rbp], rax
mov eax, DWORD PTR -308[rbp]
mov edi, eax
call newHeap
mov QWORD PTR -288[rbp], rax
mov rax, QWORD PTR -296[rbp]
lea rsi, .LC8[rip]
mov rdi, rax
call fopen@PLT
mov QWORD PTR -280[rbp], rax
jmp .L45
.L49:
mov rdx, QWORD PTR -280[rbp]
lea rax, -272[rbp]
mov esi, 256
mov rdi, rax
call fgets@PLT
mov rax, QWORD PTR -280[rbp]
mov rdi, rax
call feof@PLT
test eax, eax
jne .L53
lea rax, -272[rbp]
mov rdi, rax
call atoi@PLT
mov DWORD PTR -304[rbp], eax
mov edx, DWORD PTR -304[rbp]
mov rax, QWORD PTR -288[rbp]
mov esi, edx
mov rdi, rax
call insertHeap
mov rax, QWORD PTR -288[rbp]
mov rdi, rax
call isFullHeap
test al, al
je .L45
mov rax, QWORD PTR -288[rbp]
mov rdi, rax
call removeHeap
.L45:
mov rax, QWORD PTR -280[rbp]
mov rdi, rax
call feof@PLT
test eax, eax
je .L49
jmp .L50
.L53:
nop
jmp .L50
.L51:
mov rax, QWORD PTR -288[rbp]
mov rdi, rax
call removeHeap
mov DWORD PTR -300[rbp], eax
mov eax, DWORD PTR -300[rbp]
mov esi, eax
lea rdi, .LC9[rip]
mov eax, 0
call printf@PLT
.L50:
mov rax, QWORD PTR -288[rbp]
mov rdi, rax
call isEmptyHeap
xor eax, 1
test al, al
jne .L51
mov rax, QWORD PTR -288[rbp]
mov rdi, rax
call deleteHeap
mov eax, 0
.L44:
mov rcx, QWORD PTR -8[rbp]
sub rcx, QWORD PTR fs:40
je .L52
call __stack_chk_fail@PLT
.L52:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE16:
.size main, .-main
.section .rodata
.align 8
.type __PRETTY_FUNCTION__.6, @object
.size __PRETTY_FUNCTION__.6, 10
__PRETTY_FUNCTION__.6:
.string "printHeap"
.align 8
.type __PRETTY_FUNCTION__.5, @object
.size __PRETTY_FUNCTION__.5, 8
__PRETTY_FUNCTION__.5:
.string "newHeap"
.align 8
.type __PRETTY_FUNCTION__.4, @object
.size __PRETTY_FUNCTION__.4, 11
__PRETTY_FUNCTION__.4:
.string "deleteHeap"
.align 8
.type __PRETTY_FUNCTION__.3, @object
.size __PRETTY_FUNCTION__.3, 11
__PRETTY_FUNCTION__.3:
.string "isFullHeap"
.align 8
.type __PRETTY_FUNCTION__.2, @object
.size __PRETTY_FUNCTION__.2, 12
__PRETTY_FUNCTION__.2:
.string "isEmptyHeap"
.align 8
.type __PRETTY_FUNCTION__.1, @object
.size __PRETTY_FUNCTION__.1, 11
__PRETTY_FUNCTION__.1:
.string "insertHeap"
.align 8
.type __PRETTY_FUNCTION__.0, @object
.size __PRETTY_FUNCTION__.0, 11
__PRETTY_FUNCTION__.0:
.string "removeHeap"
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "53558.c"
.text
.align 2
.global parent
.syntax unified
.arm
.fpu softvfp
.type parent, %function
parent:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #12
str r0, [fp, #-8]
ldr r3, [fp, #-8]
sub r3, r3, #1
lsr r2, r3, #31
add r3, r2, r3
asr r3, r3, #1
mov r0, r3
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size parent, .-parent
.align 2
.global lchild
.syntax unified
.arm
.fpu softvfp
.type lchild, %function
lchild:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #12
str r0, [fp, #-8]
ldr r3, [fp, #-8]
lsl r3, r3, #1
add r3, r3, #1
mov r0, r3
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size lchild, .-lchild
.align 2
.global rchild
.syntax unified
.arm
.fpu softvfp
.type rchild, %function
rchild:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #12
str r0, [fp, #-8]
ldr r3, [fp, #-8]
add r3, r3, #1
lsl r3, r3, #1
mov r0, r3
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size rchild, .-rchild
.section .rodata
.align 2
.LC0:
.ascii "the_stack_data/53558.c\000"
.align 2
.LC1:
.ascii "aHeap != NULL\000"
.align 2
.LC2:
.ascii "%d \000"
.text
.align 2
.global printHeap
.syntax unified
.arm
.fpu softvfp
.type printHeap, %function
printHeap:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #16
str r0, [fp, #-16]
ldr r3, [fp, #-16]
cmp r3, #0
bne .L8
ldr r3, .L11
mov r2, #50
ldr r1, .L11+4
ldr r0, .L11+8
bl __assert_fail
.L8:
mov r3, #0
str r3, [fp, #-8]
b .L9
.L10:
ldr r3, [fp, #-16]
ldr r2, [r3, #8]
ldr r3, [fp, #-8]
lsl r3, r3, #2
add r3, r2, r3
ldr r3, [r3]
mov r1, r3
ldr r0, .L11+12
bl printf
ldr r3, [fp, #-8]
add r3, r3, #1
str r3, [fp, #-8]
.L9:
ldr r3, [fp, #-16]
ldr r3, [r3]
ldr r2, [fp, #-8]
cmp r2, r3
blt .L10
mov r0, #10
bl putchar
nop
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L12:
.align 2
.L11:
.word __PRETTY_FUNCTION__.5146
.word .LC0
.word .LC1
.word .LC2
.size printHeap, .-printHeap
.section .rodata
.align 2
.LC3:
.ascii "maxSize > 0\000"
.text
.align 2
.global newHeap
.syntax unified
.arm
.fpu softvfp
.type newHeap, %function
newHeap:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #16
str r0, [fp, #-16]
ldr r3, [fp, #-16]
cmp r3, #0
bgt .L14
ldr r3, .L16
mov r2, #61
ldr r1, .L16+4
ldr r0, .L16+8
bl __assert_fail
.L14:
mov r0, #12
bl malloc
mov r3, r0
str r3, [fp, #-8]
ldr r3, [fp, #-8]
mov r2, #0
str r2, [r3]
ldr r3, [fp, #-8]
ldr r2, [fp, #-16]
str r2, [r3, #4]
ldr r3, [fp, #-8]
ldr r3, [r3, #4]
lsl r3, r3, #2
mov r0, r3
bl malloc
mov r3, r0
mov r2, r3
ldr r3, [fp, #-8]
str r2, [r3, #8]
ldr r3, [fp, #-8]
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L17:
.align 2
.L16:
.word __PRETTY_FUNCTION__.5154
.word .LC0
.word .LC3
.size newHeap, .-newHeap
.section .rodata
.align 2
.LC4:
.ascii "aHeap->array != NULL\000"
.text
.align 2
.global deleteHeap
.syntax unified
.arm
.fpu softvfp
.type deleteHeap, %function
deleteHeap:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #8
str r0, [fp, #-8]
ldr r3, [fp, #-8]
cmp r3, #0
bne .L19
ldr r3, .L21
mov r2, #73
ldr r1, .L21+4
ldr r0, .L21+8
bl __assert_fail
.L19:
ldr r3, [fp, #-8]
ldr r3, [r3, #8]
cmp r3, #0
bne .L20
ldr r3, .L21
mov r2, #74
ldr r1, .L21+4
ldr r0, .L21+12
bl __assert_fail
.L20:
ldr r3, [fp, #-8]
ldr r3, [r3, #8]
mov r0, r3
bl free
ldr r0, [fp, #-8]
bl free
nop
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L22:
.align 2
.L21:
.word __PRETTY_FUNCTION__.5159
.word .LC0
.word .LC1
.word .LC4
.size deleteHeap, .-deleteHeap
.align 2
.global isFullHeap
.syntax unified
.arm
.fpu softvfp
.type isFullHeap, %function
isFullHeap:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #8
str r0, [fp, #-8]
ldr r3, [fp, #-8]
cmp r3, #0
bne .L24
ldr r3, .L27
mov r2, #82
ldr r1, .L27+4
ldr r0, .L27+8
bl __assert_fail
.L24:
ldr r3, [fp, #-8]
ldr r2, [r3]
ldr r3, [fp, #-8]
ldr r3, [r3, #4]
cmp r2, r3
bne .L25
mov r3, #1
b .L26
.L25:
mov r3, #0
.L26:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L28:
.align 2
.L27:
.word __PRETTY_FUNCTION__.5163
.word .LC0
.word .LC1
.size isFullHeap, .-isFullHeap
.align 2
.global isEmptyHeap
.syntax unified
.arm
.fpu softvfp
.type isEmptyHeap, %function
isEmptyHeap:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #8
str r0, [fp, #-8]
ldr r3, [fp, #-8]
cmp r3, #0
bne .L30
ldr r3, .L33
mov r2, #92
ldr r1, .L33+4
ldr r0, .L33+8
bl __assert_fail
.L30:
ldr r3, [fp, #-8]
ldr r3, [r3]
cmp r3, #0
bne .L31
mov r3, #1
b .L32
.L31:
mov r3, #0
.L32:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L34:
.align 2
.L33:
.word __PRETTY_FUNCTION__.5167
.word .LC0
.word .LC1
.size isEmptyHeap, .-isEmptyHeap
.section .rodata
.align 2
.LC5:
.ascii "aHeap->size < aHeap->maxSize\000"
.text
.align 2
.global insertHeap
.syntax unified
.arm
.fpu softvfp
.type insertHeap, %function
insertHeap:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
push {r4, fp, lr}
add fp, sp, #8
sub sp, sp, #20
str r0, [fp, #-24]
str r1, [fp, #-28]
ldr r3, [fp, #-24]
cmp r3, #0
bne .L36
ldr r3, .L41
mov r2, #104
ldr r1, .L41+4
ldr r0, .L41+8
bl __assert_fail
.L36:
ldr r3, [fp, #-24]
ldr r2, [r3]
ldr r3, [fp, #-24]
ldr r3, [r3, #4]
cmp r2, r3
blt .L37
ldr r3, .L41
mov r2, #105
ldr r1, .L41+4
ldr r0, .L41+12
bl __assert_fail
.L37:
ldr r3, [fp, #-24]
ldr r2, [r3, #8]
ldr r3, [fp, #-24]
ldr r3, [r3]
lsl r3, r3, #2
add r3, r2, r3
ldr r2, [fp, #-28]
str r2, [r3]
ldr r3, [fp, #-24]
ldr r3, [r3]
str r3, [fp, #-20]
b .L38
.L40:
ldr r3, [fp, #-24]
ldr r2, [r3, #8]
ldr r3, [fp, #-20]
lsl r3, r3, #2
add r3, r2, r3
ldr r3, [r3]
str r3, [fp, #-16]
ldr r3, [fp, #-24]
ldr r4, [r3, #8]
ldr r0, [fp, #-20]
bl parent
mov r3, r0
lsl r3, r3, #2
add r2, r4, r3
ldr r3, [fp, #-24]
ldr r1, [r3, #8]
ldr r3, [fp, #-20]
lsl r3, r3, #2
add r3, r1, r3
ldr r2, [r2]
str r2, [r3]
ldr r3, [fp, #-24]
ldr r4, [r3, #8]
ldr r0, [fp, #-20]
bl parent
mov r3, r0
lsl r3, r3, #2
add r3, r4, r3
ldr r2, [fp, #-16]
str r2, [r3]
ldr r0, [fp, #-20]
bl parent
str r0, [fp, #-20]
.L38:
ldr r3, [fp, #-24]
ldr r4, [r3, #8]
ldr r0, [fp, #-20]
bl parent
mov r3, r0
lsl r3, r3, #2
add r3, r4, r3
ldr r3, [r3]
ldr r2, [fp, #-28]
cmp r2, r3
ble .L39
ldr r3, [fp, #-20]
cmp r3, #0
bne .L40
.L39:
ldr r3, [fp, #-24]
ldr r3, [r3]
add r2, r3, #1
ldr r3, [fp, #-24]
str r2, [r3]
nop
sub sp, fp, #8
@ sp needed
pop {r4, fp, pc}
.L42:
.align 2
.L41:
.word __PRETTY_FUNCTION__.5172
.word .LC0
.word .LC1
.word .LC5
.size insertHeap, .-insertHeap
.section .rodata
.align 2
.LC6:
.ascii "aHeap->size > 0\000"
.text
.align 2
.global removeHeap
.syntax unified
.arm
.fpu softvfp
.type removeHeap, %function
removeHeap:
@ args = 0, pretend = 0, frame = 32
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #32
str r0, [fp, #-32]
ldr r3, [fp, #-32]
cmp r3, #0
bne .L44
ldr r3, .L54
mov r2, #124
ldr r1, .L54+4
ldr r0, .L54+8
bl __assert_fail
.L44:
ldr r3, [fp, #-32]
ldr r3, [r3]
cmp r3, #0
bgt .L45
ldr r3, .L54
mov r2, #125
ldr r1, .L54+4
ldr r0, .L54+12
bl __assert_fail
.L45:
ldr r3, [fp, #-32]
ldr r3, [r3]
sub r2, r3, #1
ldr r3, [fp, #-32]
str r2, [r3]
ldr r3, [fp, #-32]
ldr r3, [r3, #8]
ldr r3, [r3]
str r3, [fp, #-20]
ldr r3, [fp, #-32]
ldr r2, [r3, #8]
ldr r3, [fp, #-32]
ldr r3, [r3]
lsl r3, r3, #2
add r2, r2, r3
ldr r3, [fp, #-32]
ldr r3, [r3, #8]
ldr r2, [r2]
str r2, [r3]
mov r3, #0
str r3, [fp, #-28]
.L50:
ldr r0, [fp, #-28]
bl lchild
str r0, [fp, #-16]
ldr r0, [fp, #-28]
bl rchild
str r0, [fp, #-12]
ldr r3, [fp, #-28]
str r3, [fp, #-24]
ldr r3, [fp, #-32]
ldr r3, [r3]
ldr r2, [fp, #-16]
cmp r2, r3
bge .L46
ldr r3, [fp, #-32]
ldr r2, [r3, #8]
ldr r3, [fp, #-16]
lsl r3, r3, #2
add r3, r2, r3
ldr r2, [r3]
ldr r3, [fp, #-32]
ldr r1, [r3, #8]
ldr r3, [fp, #-24]
lsl r3, r3, #2
add r3, r1, r3
ldr r3, [r3]
cmp r2, r3
ble .L46
ldr r3, [fp, #-16]
str r3, [fp, #-24]
.L46:
ldr r3, [fp, #-32]
ldr r3, [r3]
ldr r2, [fp, #-12]
cmp r2, r3
bge .L47
ldr r3, [fp, #-32]
ldr r2, [r3, #8]
ldr r3, [fp, #-12]
lsl r3, r3, #2
add r3, r2, r3
ldr r2, [r3]
ldr r3, [fp, #-32]
ldr r1, [r3, #8]
ldr r3, [fp, #-24]
lsl r3, r3, #2
add r3, r1, r3
ldr r3, [r3]
cmp r2, r3
ble .L47
ldr r3, [fp, #-12]
str r3, [fp, #-24]
.L47:
ldr r2, [fp, #-24]
ldr r3, [fp, #-28]
cmp r2, r3
beq .L53
ldr r3, [fp, #-32]
ldr r2, [r3, #8]
ldr r3, [fp, #-28]
lsl r3, r3, #2
add r3, r2, r3
ldr r3, [r3]
str r3, [fp, #-8]
ldr r3, [fp, #-32]
ldr r2, [r3, #8]
ldr r3, [fp, #-24]
lsl r3, r3, #2
add r2, r2, r3
ldr r3, [fp, #-32]
ldr r1, [r3, #8]
ldr r3, [fp, #-28]
lsl r3, r3, #2
add r3, r1, r3
ldr r2, [r2]
str r2, [r3]
ldr r3, [fp, #-32]
ldr r2, [r3, #8]
ldr r3, [fp, #-24]
lsl r3, r3, #2
add r3, r2, r3
ldr r2, [fp, #-8]
str r2, [r3]
ldr r3, [fp, #-24]
str r3, [fp, #-28]
b .L50
.L53:
nop
ldr r3, [fp, #-20]
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L55:
.align 2
.L54:
.word __PRETTY_FUNCTION__.5181
.word .LC0
.word .LC1
.word .LC6
.size removeHeap, .-removeHeap
.section .rodata
.align 2
.LC7:
.ascii "Wrong arguments\000"
.align 2
.LC8:
.ascii "rt\000"
.align 2
.LC9:
.ascii "%d\012\000"
.align 2
.LC10:
.word __stack_chk_guard
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 296
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #296
str r0, [fp, #-296]
str r1, [fp, #-300]
ldr r3, .L68
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
ldr r3, [fp, #-296]
cmp r3, #1
bgt .L57
ldr r0, .L68+4
bl puts
mov r3, #1
b .L58
.L57:
ldr r3, [fp, #-300]
add r3, r3, #4
ldr r3, [r3]
mov r0, r3
bl atoi
str r0, [fp, #-288]
ldr r3, [fp, #-300]
ldr r3, [r3, #8]
str r3, [fp, #-284]
ldr r0, [fp, #-288]
bl newHeap
str r0, [fp, #-280]
ldr r1, .L68+8
ldr r0, [fp, #-284]
bl fopen
str r0, [fp, #-276]
b .L59
.L63:
sub r3, fp, #264
ldr r2, [fp, #-276]
mov r1, #256
mov r0, r3
bl fgets
ldr r0, [fp, #-276]
bl feof
mov r3, r0
cmp r3, #0
bne .L67
sub r3, fp, #264
mov r0, r3
bl atoi
str r0, [fp, #-272]
ldr r1, [fp, #-272]
ldr r0, [fp, #-280]
bl insertHeap
ldr r0, [fp, #-280]
bl isFullHeap
mov r3, r0
cmp r3, #0
beq .L59
ldr r0, [fp, #-280]
bl removeHeap
.L59:
ldr r0, [fp, #-276]
bl feof
mov r3, r0
cmp r3, #0
beq .L63
b .L64
.L67:
nop
b .L64
.L65:
ldr r0, [fp, #-280]
bl removeHeap
str r0, [fp, #-268]
ldr r1, [fp, #-268]
ldr r0, .L68+12
bl printf
.L64:
ldr r0, [fp, #-280]
bl isEmptyHeap
mov r3, r0
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
bne .L65
ldr r0, [fp, #-280]
bl deleteHeap
mov r3, #0
.L58:
ldr r2, .L68
ldr r1, [r2]
ldr r2, [fp, #-8]
eors r1, r2, r1
mov r2, #0
beq .L66
bl __stack_chk_fail
.L66:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L69:
.align 2
.L68:
.word .LC10
.word .LC7
.word .LC8
.word .LC9
.size main, .-main
.section .rodata
.align 2
.type __PRETTY_FUNCTION__.5146, %object
.size __PRETTY_FUNCTION__.5146, 10
__PRETTY_FUNCTION__.5146:
.ascii "printHeap\000"
.align 2
.type __PRETTY_FUNCTION__.5154, %object
.size __PRETTY_FUNCTION__.5154, 8
__PRETTY_FUNCTION__.5154:
.ascii "newHeap\000"
.align 2
.type __PRETTY_FUNCTION__.5159, %object
.size __PRETTY_FUNCTION__.5159, 11
__PRETTY_FUNCTION__.5159:
.ascii "deleteHeap\000"
.align 2
.type __PRETTY_FUNCTION__.5163, %object
.size __PRETTY_FUNCTION__.5163, 11
__PRETTY_FUNCTION__.5163:
.ascii "isFullHeap\000"
.align 2
.type __PRETTY_FUNCTION__.5167, %object
.size __PRETTY_FUNCTION__.5167, 12
__PRETTY_FUNCTION__.5167:
.ascii "isEmptyHeap\000"
.align 2
.type __PRETTY_FUNCTION__.5172, %object
.size __PRETTY_FUNCTION__.5172, 11
__PRETTY_FUNCTION__.5172:
.ascii "insertHeap\000"
.align 2
.type __PRETTY_FUNCTION__.5181, %object
.size __PRETTY_FUNCTION__.5181, 11
__PRETTY_FUNCTION__.5181:
.ascii "removeHeap\000"
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "853945.c"
.intel_syntax noprefix
.text
.section .rodata
.align 8
.LC0:
.string "call %s with filename without extension\n"
.align 8
.LC1:
.string "given filename exeeds internal limits (%s)\n"
.LC2:
.string "r"
.LC3:
.string "could not read %s\n"
.LC4:
.string "w"
.LC5:
.string "could not create %s\n"
.LC6:
.string "!!!!! BEGIN"
.LC7:
.string "!!!!! END"
.LC8:
.string "expected carrot in line %s"
.LC9:
.string "%s:%d:%d: %s"
.align 8
.LC10:
.string "last error-clause not completed\n"
.text
.globl main
.type main, @function
main:
.LFB6:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 1312
mov DWORD PTR -1300[rbp], edi
mov QWORD PTR -1312[rbp], rsi
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
mov DWORD PTR -1292[rbp], 0
mov QWORD PTR -208[rbp], 0
mov QWORD PTR -200[rbp], 0
mov QWORD PTR -192[rbp], 0
mov QWORD PTR -184[rbp], 0
mov QWORD PTR -176[rbp], 0
mov QWORD PTR -168[rbp], 0
mov QWORD PTR -160[rbp], 0
mov QWORD PTR -152[rbp], 0
mov QWORD PTR -144[rbp], 0
mov QWORD PTR -136[rbp], 0
mov QWORD PTR -128[rbp], 0
mov QWORD PTR -120[rbp], 0
mov QWORD PTR -112[rbp], 0
mov QWORD PTR -104[rbp], 0
mov QWORD PTR -96[rbp], 0
mov QWORD PTR -88[rbp], 0
mov QWORD PTR -80[rbp], 0
mov QWORD PTR -72[rbp], 0
mov QWORD PTR -64[rbp], 0
mov QWORD PTR -56[rbp], 0
mov QWORD PTR -48[rbp], 0
mov QWORD PTR -40[rbp], 0
mov QWORD PTR -32[rbp], 0
mov QWORD PTR -24[rbp], 0
mov QWORD PTR -16[rbp], 0
mov DWORD PTR -1284[rbp], 0
cmp DWORD PTR -1300[rbp], 2
je .L2
mov rax, QWORD PTR -1312[rbp]
mov rdx, QWORD PTR [rax]
mov rax, QWORD PTR stderr[rip]
lea rsi, .LC0[rip]
mov rdi, rax
mov eax, 0
call fprintf@PLT
mov edi, -11
call exit@PLT
.L2:
mov rax, QWORD PTR -1312[rbp]
add rax, 8
mov rax, QWORD PTR [rax]
mov rdi, rax
call strlen@PLT
cmp rax, 80
jbe .L3
mov rax, QWORD PTR -1312[rbp]
add rax, 8
mov rdx, QWORD PTR [rax]
mov rax, QWORD PTR stderr[rip]
lea rsi, .LC1[rip]
mov rdi, rax
mov eax, 0
call fprintf@PLT
mov edi, -11
call exit@PLT
.L3:
mov rax, QWORD PTR -1312[rbp]
add rax, 8
mov rdx, QWORD PTR [rax]
lea rax, -1040[rbp]
mov rsi, rdx
mov rdi, rax
call strcpy@PLT
lea rax, -1040[rbp]
mov rdi, rax
call strlen@PLT
mov rdx, rax
lea rax, -1040[rbp]
add rax, rdx
mov DWORD PTR [rax], 1819439150
mov BYTE PTR 4[rax], 0
mov rax, QWORD PTR -1312[rbp]
add rax, 8
mov rdx, QWORD PTR [rax]
lea rax, -1248[rbp]
mov rsi, rdx
mov rdi, rax
call strcpy@PLT
lea rax, -1248[rbp]
mov rdi, rax
call strlen@PLT
mov rdx, rax
lea rax, -1248[rbp]
add rax, rdx
mov DWORD PTR [rax], 1701339950
mov WORD PTR 4[rax], 27491
mov BYTE PTR 6[rax], 0
mov rax, QWORD PTR -1312[rbp]
add rax, 8
mov rdx, QWORD PTR [rax]
lea rax, -832[rbp]
mov rsi, rdx
mov rdi, rax
call strcpy@PLT
lea rax, -832[rbp]
mov rdi, rax
call strlen@PLT
mov rdx, rax
lea rax, -832[rbp]
add rax, rdx
movabs rcx, 32760384628221230
mov QWORD PTR [rax], rcx
lea rax, -1248[rbp]
lea rsi, .LC2[rip]
mov rdi, rax
call fopen@PLT
mov QWORD PTR -1280[rbp], rax
cmp QWORD PTR -1280[rbp], 0
jne .L4
mov rax, QWORD PTR stderr[rip]
lea rdx, -1248[rbp]
lea rsi, .LC3[rip]
mov rdi, rax
mov eax, 0
call fprintf@PLT
mov edi, -1
call exit@PLT
.L4:
lea rax, -1040[rbp]
lea rsi, .LC4[rip]
mov rdi, rax
call fopen@PLT
mov QWORD PTR -1272[rbp], rax
cmp QWORD PTR -1272[rbp], 0
jne .L5
mov rax, QWORD PTR stderr[rip]
lea rdx, -1040[rbp]
lea rsi, .LC5[rip]
mov rdi, rax
mov eax, 0
call fprintf@PLT
mov edi, -1
call exit@PLT
.L5:
lea rax, -832[rbp]
lea rsi, .LC4[rip]
mov rdi, rax
call fopen@PLT
mov QWORD PTR -1264[rbp], rax
cmp QWORD PTR -1264[rbp], 0
jne .L7
mov rax, QWORD PTR stderr[rip]
lea rdx, -832[rbp]
lea rsi, .LC5[rip]
mov rdi, rax
mov eax, 0
call fprintf@PLT
mov edi, -1
call exit@PLT
.L14:
mov rdx, QWORD PTR -1280[rbp]
lea rax, -416[rbp]
mov esi, 200
mov rdi, rax
call fgets@PLT
mov QWORD PTR -1256[rbp], rax
cmp QWORD PTR -1256[rbp], 0
je .L7
lea rax, -416[rbp]
mov edx, 11
lea rsi, .LC6[rip]
mov rdi, rax
call strncmp@PLT
test eax, eax
jne .L8
mov DWORD PTR -1284[rbp], 1
jmp .L7
.L8:
lea rax, -416[rbp]
mov edx, 9
lea rsi, .LC7[rip]
mov rdi, rax
call strncmp@PLT
test eax, eax
jne .L9
mov DWORD PTR -1284[rbp], 0
jmp .L7
.L9:
cmp DWORD PTR -1284[rbp], 1
jne .L10
lea rax, -416[rbp]
mov esi, 94
mov rdi, rax
call strchr@PLT
test rax, rax
jne .L11
mov rax, QWORD PTR stderr[rip]
lea rdx, -416[rbp]
lea rsi, .LC8[rip]
mov rdi, rax
mov eax, 0
call fprintf@PLT
mov edi, -1
call exit@PLT
.L11:
lea rax, -416[rbp]
mov esi, 94
mov rdi, rax
call strchr@PLT
lea rdx, -416[rbp]
sub rax, rdx
add eax, 1
mov DWORD PTR -1288[rbp], eax
lea rdx, -416[rbp]
lea rax, -624[rbp]
mov rsi, rdx
mov rdi, rax
call strcpy@PLT
mov DWORD PTR -1284[rbp], 2
jmp .L12
.L10:
cmp DWORD PTR -1284[rbp], 2
jne .L13
lea rdi, -416[rbp]
mov esi, DWORD PTR -1288[rbp]
mov ecx, DWORD PTR -1292[rbp]
lea rdx, -1040[rbp]
mov rax, QWORD PTR -1264[rbp]
mov r9, rdi
mov r8d, esi
lea rsi, .LC9[rip]
mov rdi, rax
mov eax, 0
call fprintf@PLT
lea rax, -208[rbp]
mov rdi, rax
call strlen@PLT
mov rsi, rax
mov rdx, QWORD PTR -1264[rbp]
lea rax, -208[rbp]
mov rcx, rdx
mov rdx, rsi
mov esi, 1
mov rdi, rax
call fwrite@PLT
lea rax, -624[rbp]
mov rdi, rax
call strlen@PLT
mov rsi, rax
mov rdx, QWORD PTR -1264[rbp]
lea rax, -624[rbp]
mov rcx, rdx
mov rdx, rsi
mov esi, 1
mov rdi, rax
call fwrite@PLT
jmp .L12
.L13:
cmp DWORD PTR -1284[rbp], 3
jne .L12
lea rax, -416[rbp]
mov rdi, rax
call strlen@PLT
mov rsi, rax
mov rdx, QWORD PTR -1264[rbp]
lea rax, -416[rbp]
mov rcx, rdx
mov rdx, rsi
mov esi, 1
mov rdi, rax
call fwrite@PLT
.L12:
cmp DWORD PTR -1284[rbp], 0
jne .L7
add DWORD PTR -1292[rbp], 1
lea rax, -416[rbp]
mov rdi, rax
call strlen@PLT
mov rsi, rax
mov rdx, QWORD PTR -1272[rbp]
lea rax, -416[rbp]
mov rcx, rdx
mov rdx, rsi
mov esi, 1
mov rdi, rax
call fwrite@PLT
lea rdx, -416[rbp]
lea rax, -208[rbp]
mov rsi, rdx
mov rdi, rax
call strcpy@PLT
.L7:
mov rax, QWORD PTR -1280[rbp]
mov rdi, rax
call feof@PLT
test eax, eax
je .L14
cmp DWORD PTR -1284[rbp], 0
je .L15
mov rax, QWORD PTR stderr[rip]
mov rcx, rax
mov edx, 32
mov esi, 1
lea rdi, .LC10[rip]
call fwrite@PLT
mov edi, -1
call exit@PLT
.L15:
mov rax, QWORD PTR -1280[rbp]
mov rdi, rax
call fclose@PLT
mov rax, QWORD PTR -1272[rbp]
mov rdi, rax
call fclose@PLT
mov rax, QWORD PTR -1264[rbp]
mov rdi, rax
call fclose@PLT
mov eax, 0
mov rcx, QWORD PTR -8[rbp]
sub rcx, QWORD PTR fs:40
je .L17
call __stack_chk_fail@PLT
.L17:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size main, .-main
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "853945.c"
.text
.section .rodata
.align 2
.LC0:
.ascii "call %s with filename without extension\012\000"
.align 2
.LC1:
.ascii "given filename exeeds internal limits (%s)\012\000"
.align 2
.LC2:
.ascii ".prl\000"
.align 2
.LC3:
.ascii ".check\000"
.align 2
.LC4:
.ascii ".expect\000"
.align 2
.LC5:
.ascii "r\000"
.align 2
.LC6:
.ascii "could not read %s\012\000"
.align 2
.LC7:
.ascii "w\000"
.align 2
.LC8:
.ascii "could not create %s\012\000"
.align 2
.LC9:
.ascii "!!!!! BEGIN\000"
.align 2
.LC10:
.ascii "!!!!! END\000"
.align 2
.LC11:
.ascii "expected carrot in line %s\000"
.align 2
.LC12:
.ascii "%s:%d:%d: %s\000"
.align 2
.LC13:
.ascii "last error-clause not completed\012\000"
.align 2
.LC14:
.word __stack_chk_guard
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 1240
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #1248
str r0, [fp, #-1240]
str r1, [fp, #-1244]
ldr r3, .L18
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
mov r3, #0
str r3, [fp, #-1236]
mov r3, #0
str r3, [fp, #-208]
sub r3, fp, #204
mov r2, #196
mov r1, #0
mov r0, r3
bl memset
mov r3, #0
str r3, [fp, #-1228]
ldr r3, [fp, #-1240]
cmp r3, #2
beq .L2
ldr r3, .L18+4
ldr r0, [r3]
ldr r3, [fp, #-1244]
ldr r3, [r3]
mov r2, r3
ldr r1, .L18+8
bl fprintf
mvn r0, #10
bl exit
.L2:
ldr r3, [fp, #-1244]
add r3, r3, #4
ldr r3, [r3]
mov r0, r3
bl strlen
mov r3, r0
cmp r3, #80
bls .L3
ldr r3, .L18+4
ldr r0, [r3]
ldr r3, [fp, #-1244]
add r3, r3, #4
ldr r3, [r3]
mov r2, r3
ldr r1, .L18+12
bl fprintf
mvn r0, #10
bl exit
.L3:
ldr r3, [fp, #-1244]
add r3, r3, #4
ldr r2, [r3]
sub r3, fp, #1008
mov r1, r2
mov r0, r3
bl strcpy
sub r3, fp, #1008
mov r0, r3
bl strlen
mov r3, r0
mov r2, r3
sub r3, fp, #1008
add r3, r3, r2
ldr r2, .L18+16
mov r0, r3
mov r1, r2
mov r3, #5
mov r2, r3
bl memcpy
ldr r3, [fp, #-1244]
add r3, r3, #4
ldr r2, [r3]
sub r3, fp, #1200
sub r3, r3, #4
sub r3, r3, #4
mov r1, r2
mov r0, r3
bl strcpy
sub r3, fp, #1200
sub r3, r3, #4
sub r3, r3, #4
mov r0, r3
bl strlen
mov r3, r0
mov r2, r3
sub r3, fp, #1200
sub r3, r3, #4
sub r3, r3, #4
add r3, r3, r2
ldr r2, .L18+20
mov r0, r3
mov r1, r2
mov r3, #7
mov r2, r3
bl memcpy
ldr r3, [fp, #-1244]
add r3, r3, #4
ldr r2, [r3]
sub r3, fp, #808
mov r1, r2
mov r0, r3
bl strcpy
sub r3, fp, #808
mov r0, r3
bl strlen
mov r3, r0
mov r2, r3
sub r3, fp, #808
add r3, r3, r2
ldr r2, .L18+24
mov r0, r3
mov r1, r2
mov r3, #8
mov r2, r3
bl memcpy
sub r3, fp, #1200
sub r3, r3, #4
sub r3, r3, #4
ldr r1, .L18+28
mov r0, r3
bl fopen
str r0, [fp, #-1224]
ldr r3, [fp, #-1224]
cmp r3, #0
bne .L4
ldr r3, .L18+4
ldr r0, [r3]
sub r3, fp, #1200
sub r3, r3, #4
sub r3, r3, #4
mov r2, r3
ldr r1, .L18+32
bl fprintf
mvn r0, #0
bl exit
.L4:
sub r3, fp, #1008
ldr r1, .L18+36
mov r0, r3
bl fopen
str r0, [fp, #-1220]
ldr r3, [fp, #-1220]
cmp r3, #0
bne .L5
ldr r3, .L18+4
ldr r3, [r3]
sub r2, fp, #1008
ldr r1, .L18+40
mov r0, r3
bl fprintf
mvn r0, #0
bl exit
.L5:
sub r3, fp, #808
ldr r1, .L18+36
mov r0, r3
bl fopen
str r0, [fp, #-1216]
ldr r3, [fp, #-1216]
cmp r3, #0
bne .L7
ldr r3, .L18+4
ldr r3, [r3]
sub r2, fp, #808
ldr r1, .L18+40
mov r0, r3
bl fprintf
mvn r0, #0
bl exit
.L14:
sub r3, fp, #408
ldr r2, [fp, #-1224]
mov r1, #200
mov r0, r3
bl fgets
str r0, [fp, #-1212]
ldr r3, [fp, #-1212]
cmp r3, #0
beq .L7
sub r3, fp, #408
mov r2, #11
ldr r1, .L18+44
mov r0, r3
bl strncmp
mov r3, r0
cmp r3, #0
bne .L8
mov r3, #1
str r3, [fp, #-1228]
b .L7
.L8:
sub r3, fp, #408
mov r2, #9
ldr r1, .L18+48
mov r0, r3
bl strncmp
mov r3, r0
cmp r3, #0
bne .L9
mov r3, #0
str r3, [fp, #-1228]
b .L7
.L9:
ldr r3, [fp, #-1228]
cmp r3, #1
bne .L10
sub r3, fp, #408
mov r1, #94
mov r0, r3
bl strchr
mov r3, r0
cmp r3, #0
bne .L11
ldr r3, .L18+4
ldr r3, [r3]
sub r2, fp, #408
ldr r1, .L18+52
mov r0, r3
bl fprintf
mvn r0, #0
bl exit
.L11:
sub r3, fp, #408
mov r1, #94
mov r0, r3
bl strchr
mov r2, r0
sub r3, fp, #408
sub r3, r2, r3
add r3, r3, #1
str r3, [fp, #-1232]
sub r2, fp, #408
sub r3, fp, #608
mov r1, r2
mov r0, r3
bl strcpy
mov r3, #2
str r3, [fp, #-1228]
b .L12
.L10:
ldr r3, [fp, #-1228]
cmp r3, #2
bne .L13
sub r2, fp, #1008
sub r3, fp, #408
str r3, [sp, #4]
ldr r3, [fp, #-1232]
str r3, [sp]
ldr r3, [fp, #-1236]
ldr r1, .L18+56
ldr r0, [fp, #-1216]
bl fprintf
sub r3, fp, #208
mov r0, r3
bl strlen
mov r2, r0
sub r0, fp, #208
ldr r3, [fp, #-1216]
mov r1, #1
bl fwrite
sub r3, fp, #608
mov r0, r3
bl strlen
mov r2, r0
sub r0, fp, #608
ldr r3, [fp, #-1216]
mov r1, #1
bl fwrite
b .L12
.L13:
ldr r3, [fp, #-1228]
cmp r3, #3
bne .L12
sub r3, fp, #408
mov r0, r3
bl strlen
mov r2, r0
sub r0, fp, #408
ldr r3, [fp, #-1216]
mov r1, #1
bl fwrite
.L12:
ldr r3, [fp, #-1228]
cmp r3, #0
bne .L7
ldr r3, [fp, #-1236]
add r3, r3, #1
str r3, [fp, #-1236]
sub r3, fp, #408
mov r0, r3
bl strlen
mov r2, r0
sub r0, fp, #408
ldr r3, [fp, #-1220]
mov r1, #1
bl fwrite
sub r2, fp, #408
sub r3, fp, #208
mov r1, r2
mov r0, r3
bl strcpy
.L7:
ldr r0, [fp, #-1224]
bl feof
mov r3, r0
cmp r3, #0
beq .L14
ldr r3, [fp, #-1228]
cmp r3, #0
beq .L15
ldr r3, .L18+4
ldr r3, [r3]
mov r2, #32
mov r1, #1
ldr r0, .L18+60
bl fwrite
mvn r0, #0
bl exit
.L15:
ldr r0, [fp, #-1224]
bl fclose
ldr r0, [fp, #-1220]
bl fclose
ldr r0, [fp, #-1216]
bl fclose
mov r3, #0
ldr r2, .L18
ldr r1, [r2]
ldr r2, [fp, #-8]
eors r1, r2, r1
mov r2, #0
beq .L17
bl __stack_chk_fail
.L17:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L19:
.align 2
.L18:
.word .LC14
.word stderr
.word .LC0
.word .LC1
.word .LC2
.word .LC3
.word .LC4
.word .LC5
.word .LC6
.word .LC7
.word .LC8
.word .LC9
.word .LC10
.word .LC11
.word .LC12
.word .LC13
.size main, .-main
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "459088.c"
.intel_syntax noprefix
.text
.section .rodata
.align 8
.LC0:
.string "create socket error: %s(errno: %d)\n"
.align 8
.LC1:
.string "setsockopt port to reuse failed"
.align 8
.LC2:
.string "bind socket error: %s(errno: %d)\n"
.text
.type create_and_bind, @function
create_and_bind:
.LFB6:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
push rbx
sub rsp, 56
.cfi_offset 3, -24
mov rax, QWORD PTR fs:40
mov QWORD PTR -24[rbp], rax
xor eax, eax
mov edx, 0
mov esi, 2049
mov edi, 2
call socket@PLT
mov DWORD PTR -56[rbp], eax
cmp DWORD PTR -56[rbp], 0
jns .L2
call __errno_location@PLT
mov ebx, DWORD PTR [rax]
call __errno_location@PLT
mov eax, DWORD PTR [rax]
mov edi, eax
call strerror@PLT
mov edx, ebx
mov rsi, rax
lea rdi, .LC0[rip]
mov eax, 0
call printf@PLT
mov eax, -1
jmp .L6
.L2:
lea rax, -48[rbp]
mov edx, 16
mov esi, 0
mov rdi, rax
call memset@PLT
mov WORD PTR -48[rbp], 2
mov edi, 0
call htonl@PLT
mov DWORD PTR -44[rbp], eax
mov edi, 6667
call htons@PLT
mov WORD PTR -46[rbp], ax
mov DWORD PTR -60[rbp], 1
lea rdx, -60[rbp]
mov eax, DWORD PTR -56[rbp]
mov r8d, 4
mov rcx, rdx
mov edx, 2
mov esi, 1
mov edi, eax
call setsockopt@PLT
test eax, eax
jns .L4
lea rdi, .LC1[rip]
call perror@PLT
.L4:
lea rcx, -48[rbp]
mov eax, DWORD PTR -56[rbp]
mov edx, 16
mov rsi, rcx
mov edi, eax
call bind@PLT
mov DWORD PTR -52[rbp], eax
cmp DWORD PTR -52[rbp], 0
jns .L5
call __errno_location@PLT
mov ebx, DWORD PTR [rax]
call __errno_location@PLT
mov eax, DWORD PTR [rax]
mov edi, eax
call strerror@PLT
mov edx, ebx
mov rsi, rax
lea rdi, .LC2[rip]
mov eax, 0
call printf@PLT
mov eax, -1
jmp .L6
.L5:
mov eax, DWORD PTR -56[rbp]
.L6:
mov rcx, QWORD PTR -24[rbp]
sub rcx, QWORD PTR fs:40
je .L7
call __stack_chk_fail@PLT
.L7:
mov rbx, QWORD PTR -8[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size create_and_bind, .-create_and_bind
.section .rodata
.LC3:
.string "listen"
.LC4:
.string "epoll_create"
.LC5:
.string "epoll_ctl"
.LC6:
.string "client"
.LC7:
.string "127.0.0.1"
.LC8:
.string "6667"
.LC9:
.string "/bin/client"
.align 8
.LC10:
.string "spawn client process error: %s(errno: %d), %d process(es) spawned\n"
.align 8
.LC11:
.string "no client is successfully spawned"
.LC12:
.string "epoll error\n"
.LC13:
.string "accept"
.align 8
.LC14:
.string "Accepted connection on descriptor %d (host=%s, port=%s)\n"
.LC15:
.string "read"
.LC16:
.string "write"
.align 8
.LC17:
.string "Closed connection on descriptor %d\n"
.text
.globl main
.type main, @function
main:
.LFB7:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
push rbx
sub rsp, 1240
.cfi_offset 3, -24
mov DWORD PTR -1236[rbp], edi
mov QWORD PTR -1248[rbp], rsi
mov rax, QWORD PTR fs:40
mov QWORD PTR -24[rbp], rax
xor eax, eax
mov eax, 0
call create_and_bind
mov DWORD PTR -1192[rbp], eax
mov eax, DWORD PTR -1192[rbp]
mov esi, 4096
mov edi, eax
call listen@PLT
mov DWORD PTR -1188[rbp], eax
cmp DWORD PTR -1188[rbp], -1
jne .L9
lea rdi, .LC3[rip]
call perror@PLT
mov eax, -1
jmp .L37
.L9:
mov edi, 0
call epoll_create1@PLT
mov DWORD PTR -1184[rbp], eax
cmp DWORD PTR -1184[rbp], -1
jne .L11
lea rdi, .LC4[rip]
call perror@PLT
mov eax, -1
jmp .L37
.L11:
mov eax, DWORD PTR -1192[rbp]
mov DWORD PTR -1144[rbp], eax
mov DWORD PTR -1148[rbp], -2147483647
lea rcx, -1148[rbp]
mov edx, DWORD PTR -1192[rbp]
mov eax, DWORD PTR -1184[rbp]
mov esi, 1
mov edi, eax
call epoll_ctl@PLT
mov DWORD PTR -1188[rbp], eax
cmp DWORD PTR -1188[rbp], -1
jne .L12
lea rdi, .LC5[rip]
call perror@PLT
mov eax, -1
jmp .L37
.L12:
mov esi, 12
mov edi, 64
call calloc@PLT
mov QWORD PTR -1168[rbp], rax
mov DWORD PTR -1212[rbp], 3
lea rax, .LC6[rip]
mov QWORD PTR -1120[rbp], rax
lea rax, .LC7[rip]
mov QWORD PTR -1112[rbp], rax
lea rax, .LC8[rip]
mov QWORD PTR -1104[rbp], rax
mov QWORD PTR -1096[rbp], 0
mov DWORD PTR -1208[rbp], 0
jmp .L13
.L17:
lea rdx, -1120[rbp]
lea rax, -1220[rbp]
mov r9d, 0
mov r8, rdx
mov ecx, 0
mov edx, 0
lea rsi, .LC9[rip]
mov rdi, rax
call posix_spawn@PLT
mov DWORD PTR -1180[rbp], eax
cmp DWORD PTR -1180[rbp], 0
jns .L14
call __errno_location@PLT
mov ebx, DWORD PTR [rax]
call __errno_location@PLT
mov eax, DWORD PTR [rax]
mov edi, eax
call strerror@PLT
mov rsi, rax
mov eax, DWORD PTR -1208[rbp]
mov ecx, eax
mov edx, ebx
lea rdi, .LC10[rip]
mov eax, 0
call printf@PLT
cmp DWORD PTR -1208[rbp], 0
jne .L15
lea rdi, .LC11[rip]
call perror@PLT
mov eax, -1
jmp .L37
.L15:
mov eax, DWORD PTR -1208[rbp]
mov DWORD PTR -1212[rbp], eax
jmp .L16
.L14:
add DWORD PTR -1208[rbp], 1
.L13:
cmp DWORD PTR -1208[rbp], 2
jle .L17
.L16:
mov DWORD PTR -1204[rbp], 0
jmp .L18
.L36:
mov rsi, QWORD PTR -1168[rbp]
mov eax, DWORD PTR -1184[rbp]
mov r8d, 0
mov ecx, -1
mov edx, 64
mov edi, eax
call epoll_pwait@PLT
mov DWORD PTR -1176[rbp], eax
mov DWORD PTR -1200[rbp], 0
jmp .L19
.L35:
mov eax, DWORD PTR -1200[rbp]
movsx rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
sal rax, 2
mov rdx, rax
mov rax, QWORD PTR -1168[rbp]
add rax, rdx
mov eax, DWORD PTR [rax]
and eax, 8
test eax, eax
jne .L20
mov eax, DWORD PTR -1200[rbp]
movsx rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
sal rax, 2
mov rdx, rax
mov rax, QWORD PTR -1168[rbp]
add rax, rdx
mov eax, DWORD PTR [rax]
and eax, 16
test eax, eax
jne .L20
mov eax, DWORD PTR -1200[rbp]
movsx rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
sal rax, 2
mov rdx, rax
mov rax, QWORD PTR -1168[rbp]
add rax, rdx
mov eax, DWORD PTR [rax]
and eax, 1
test eax, eax
jne .L21
.L20:
mov rax, QWORD PTR stderr[rip]
mov rcx, rax
mov edx, 12
mov esi, 1
lea rdi, .LC12[rip]
call fwrite@PLT
mov eax, DWORD PTR -1200[rbp]
movsx rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
sal rax, 2
mov rdx, rax
mov rax, QWORD PTR -1168[rbp]
add rax, rdx
mov eax, DWORD PTR 4[rax]
mov edi, eax
call close@PLT
jmp .L22
.L21:
mov eax, DWORD PTR -1200[rbp]
movsx rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
sal rax, 2
mov rdx, rax
mov rax, QWORD PTR -1168[rbp]
add rax, rdx
mov eax, DWORD PTR 4[rax]
cmp DWORD PTR -1192[rbp], eax
jne .L23
.L28:
mov DWORD PTR -1216[rbp], 16
lea rdx, -1216[rbp]
lea rsi, -1136[rbp]
mov eax, DWORD PTR -1192[rbp]
mov ecx, 2048
mov edi, eax
mov eax, 0
call accept4@PLT
mov DWORD PTR -1172[rbp], eax
cmp DWORD PTR -1172[rbp], -1
jne .L24
call __errno_location@PLT
mov eax, DWORD PTR [rax]
cmp eax, 11
je .L39
call __errno_location@PLT
mov eax, DWORD PTR [rax]
cmp eax, 11
je .L39
lea rdi, .LC13[rip]
call perror@PLT
nop
jmp .L39
.L24:
mov esi, DWORD PTR -1216[rbp]
lea rcx, -1088[rbp]
lea rdx, -1056[rbp]
lea rax, -1136[rbp]
sub rsp, 8
push 3
mov r9d, 32
mov r8, rcx
mov ecx, 1025
mov rdi, rax
call getnameinfo@PLT
add rsp, 16
mov DWORD PTR -1188[rbp], eax
cmp DWORD PTR -1188[rbp], 0
jne .L26
lea rcx, -1088[rbp]
lea rdx, -1056[rbp]
mov eax, DWORD PTR -1172[rbp]
mov esi, eax
lea rdi, .LC14[rip]
mov eax, 0
call printf@PLT
.L26:
mov eax, DWORD PTR -1172[rbp]
mov DWORD PTR -1144[rbp], eax
mov DWORD PTR -1148[rbp], -2147483647
lea rcx, -1148[rbp]
mov edx, DWORD PTR -1172[rbp]
mov eax, DWORD PTR -1184[rbp]
mov esi, 1
mov edi, eax
call epoll_ctl@PLT
mov DWORD PTR -1188[rbp], eax
cmp DWORD PTR -1188[rbp], -1
jne .L28
lea rdi, .LC5[rip]
call perror@PLT
mov eax, -1
jmp .L37
.L23:
mov DWORD PTR -1196[rbp], 0
.L34:
mov eax, DWORD PTR -1200[rbp]
movsx rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
sal rax, 2
mov rdx, rax
mov rax, QWORD PTR -1168[rbp]
add rax, rdx
mov eax, DWORD PTR 4[rax]
lea rcx, -1056[rbp]
mov edx, 512
mov rsi, rcx
mov edi, eax
call read@PLT
mov QWORD PTR -1160[rbp], rax
cmp QWORD PTR -1160[rbp], -1
jne .L29
call __errno_location@PLT
mov eax, DWORD PTR [rax]
cmp eax, 11
je .L40
lea rdi, .LC15[rip]
call perror@PLT
mov DWORD PTR -1196[rbp], 1
jmp .L40
.L29:
cmp QWORD PTR -1160[rbp], 0
jne .L32
mov DWORD PTR -1196[rbp], 1
jmp .L31
.L32:
mov rdx, QWORD PTR -1160[rbp]
lea rax, -1056[rbp]
mov rsi, rax
mov edi, 1
call write@PLT
mov DWORD PTR -1188[rbp], eax
cmp DWORD PTR -1188[rbp], -1
jne .L34
lea rdi, .LC16[rip]
call perror@PLT
mov eax, -1
jmp .L37
.L40:
nop
.L31:
cmp DWORD PTR -1196[rbp], 0
je .L22
mov eax, DWORD PTR -1200[rbp]
movsx rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
sal rax, 2
mov rdx, rax
mov rax, QWORD PTR -1168[rbp]
add rax, rdx
mov eax, DWORD PTR 4[rax]
mov esi, eax
lea rdi, .LC17[rip]
mov eax, 0
call printf@PLT
mov eax, DWORD PTR -1200[rbp]
movsx rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
sal rax, 2
mov rdx, rax
mov rax, QWORD PTR -1168[rbp]
add rax, rdx
mov eax, DWORD PTR 4[rax]
mov edi, eax
call close@PLT
add DWORD PTR -1204[rbp], 1
jmp .L22
.L39:
nop
.L22:
add DWORD PTR -1200[rbp], 1
.L19:
mov eax, DWORD PTR -1200[rbp]
cmp eax, DWORD PTR -1176[rbp]
jl .L35
.L18:
mov eax, DWORD PTR -1204[rbp]
cmp eax, DWORD PTR -1212[rbp]
jl .L36
mov rax, QWORD PTR -1168[rbp]
mov rdi, rax
call free@PLT
mov eax, DWORD PTR -1192[rbp]
mov edi, eax
call close@PLT
mov eax, 0
.L37:
mov rbx, QWORD PTR -24[rbp]
sub rbx, QWORD PTR fs:40
je .L38
call __stack_chk_fail@PLT
.L38:
mov rbx, QWORD PTR -8[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE7:
.size main, .-main
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "459088.c"
.section .rodata
.align 2
.LC0:
.ascii "client\000"
.align 2
.LC1:
.ascii "127.0.0.1\000"
.align 2
.LC2:
.ascii "6667\000"
.text
.section .rodata
.align 2
.LC4:
.ascii "create socket error: %s(errno: %d)\012\000"
.align 2
.LC5:
.ascii "setsockopt port to reuse failed\000"
.align 2
.LC6:
.ascii "bind socket error: %s(errno: %d)\012\000"
.align 2
.LC7:
.word __stack_chk_guard
.text
.align 2
.syntax unified
.arm
.fpu softvfp
.type create_and_bind, %function
create_and_bind:
@ args = 0, pretend = 0, frame = 32
@ frame_needed = 1, uses_anonymous_args = 0
push {r4, fp, lr}
add fp, sp, #8
sub sp, sp, #44
ldr r3, .L8
ldr r3, [r3]
str r3, [fp, #-16]
mov r3,#0
mov r2, #0
ldr r1, .L8+4
mov r0, #2
bl socket
str r0, [fp, #-40]
ldr r3, [fp, #-40]
cmp r3, #0
bge .L2
bl __errno_location
mov r3, r0
ldr r3, [r3]
mov r0, r3
bl strerror
mov r4, r0
bl __errno_location
mov r3, r0
ldr r3, [r3]
mov r2, r3
mov r1, r4
ldr r0, .L8+8
bl printf
mvn r3, #0
b .L6
.L2:
sub r3, fp, #32
mov r2, #16
mov r1, #0
mov r0, r3
bl memset
mov r3, #2
strh r3, [fp, #-32] @ movhi
mov r0, #0
bl htonl
mov r3, r0
str r3, [fp, #-28]
ldr r0, .L8+12
bl htons
mov r3, r0
strh r3, [fp, #-30] @ movhi
mov r3, #1
str r3, [fp, #-44]
sub r3, fp, #44
mov r2, #4
str r2, [sp]
mov r2, #2
mov r1, #1
ldr r0, [fp, #-40]
bl setsockopt
mov r3, r0
cmp r3, #0
bge .L4
ldr r0, .L8+16
bl perror
.L4:
sub r3, fp, #32
mov r2, #16
mov r1, r3
ldr r0, [fp, #-40]
bl bind
str r0, [fp, #-36]
ldr r3, [fp, #-36]
cmp r3, #0
bge .L5
bl __errno_location
mov r3, r0
ldr r3, [r3]
mov r0, r3
bl strerror
mov r4, r0
bl __errno_location
mov r3, r0
ldr r3, [r3]
mov r2, r3
mov r1, r4
ldr r0, .L8+20
bl printf
mvn r3, #0
b .L6
.L5:
ldr r3, [fp, #-40]
.L6:
ldr r2, .L8
ldr r1, [r2]
ldr r2, [fp, #-16]
eors r1, r2, r1
mov r2, #0
beq .L7
bl __stack_chk_fail
.L7:
mov r0, r3
sub sp, fp, #8
@ sp needed
pop {r4, fp, pc}
.L9:
.align 2
.L8:
.word .LC7
.word 2049
.word .LC4
.word 6667
.word .LC5
.word .LC6
.size create_and_bind, .-create_and_bind
.section .rodata
.align 2
.LC8:
.ascii "listen\000"
.align 2
.LC9:
.ascii "epoll_create\000"
.align 2
.LC10:
.ascii "epoll_ctl\000"
.align 2
.LC12:
.ascii "/bin/client\000"
.align 2
.LC13:
.ascii "spawn client process error: %s(errno: %d), %d proce"
.ascii "ss(es) spawned\012\000"
.align 2
.LC14:
.ascii "no client is successfully spawned\000"
.align 2
.LC15:
.ascii "epoll error\012\000"
.align 2
.LC16:
.ascii "accept\000"
.align 2
.LC17:
.ascii "Accepted connection on descriptor %d (host=%s, port"
.ascii "=%s)\012\000"
.align 2
.LC18:
.ascii "read\000"
.align 2
.LC19:
.ascii "write\000"
.align 2
.LC20:
.ascii "Closed connection on descriptor %d\012\000"
.align 2
.LC11:
.word .LC0
.word .LC1
.word .LC2
.word 0
.align 2
.LC21:
.word __stack_chk_guard
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 1184
@ frame_needed = 1, uses_anonymous_args = 0
push {r4, fp, lr}
add fp, sp, #8
sub sp, sp, #1200
sub sp, sp, #4
str r0, [fp, #-1192]
str r1, [fp, #-1196]
ldr r3, .L43
ldr r3, [r3]
str r3, [fp, #-16]
mov r3,#0
bl create_and_bind
str r0, [fp, #-1156]
mov r1, #4096
ldr r0, [fp, #-1156]
bl listen
str r0, [fp, #-1152]
ldr r3, [fp, #-1152]
cmn r3, #1
bne .L11
ldr r0, .L43+4
bl perror
mvn r3, #0
b .L39
.L11:
mov r0, #0
bl epoll_create1
str r0, [fp, #-1148]
ldr r3, [fp, #-1148]
cmn r3, #1
bne .L13
ldr r0, .L43+8
bl perror
mvn r3, #0
b .L39
.L13:
ldr r3, [fp, #-1156]
str r3, [fp, #-1116]
mov r3, #-2147483647
str r3, [fp, #-1124]
sub r3, fp, #1104
sub r3, r3, #12
sub r3, r3, #8
ldr r2, [fp, #-1156]
mov r1, #1
ldr r0, [fp, #-1148]
bl epoll_ctl
str r0, [fp, #-1152]
ldr r3, [fp, #-1152]
cmn r3, #1
bne .L14
ldr r0, .L43+12
bl perror
mvn r3, #0
b .L39
.L14:
mov r1, #16
mov r0, #64
bl calloc
mov r3, r0
str r3, [fp, #-1144]
mov r3, #3
str r3, [fp, #-1176]
ldr r3, .L43+16
sub ip, fp, #1088
sub ip, ip, #12
sub ip, ip, #8
ldm r3, {r0, r1, r2, r3}
stm ip, {r0, r1, r2, r3}
mov r3, #0
str r3, [fp, #-1172]
b .L15
.L19:
sub r0, fp, #1168
sub r0, r0, #12
sub r0, r0, #4
mov r3, #0
str r3, [sp, #4]
sub r3, fp, #1088
sub r3, r3, #12
sub r3, r3, #8
str r3, [sp]
mov r3, #0
mov r2, #0
ldr r1, .L43+20
bl posix_spawn
str r0, [fp, #-1140]
ldr r3, [fp, #-1140]
cmp r3, #0
bge .L16
bl __errno_location
mov r3, r0
ldr r3, [r3]
mov r0, r3
bl strerror
mov r4, r0
bl __errno_location
mov r3, r0
ldr r2, [r3]
ldr r3, [fp, #-1172]
mov r1, r4
ldr r0, .L43+24
bl printf
ldr r3, [fp, #-1172]
cmp r3, #0
bne .L17
ldr r0, .L43+28
bl perror
mvn r3, #0
b .L39
.L17:
ldr r3, [fp, #-1172]
str r3, [fp, #-1176]
b .L18
.L16:
ldr r3, [fp, #-1172]
add r3, r3, #1
str r3, [fp, #-1172]
.L15:
ldr r3, [fp, #-1172]
cmp r3, #2
ble .L19
.L18:
mov r3, #0
str r3, [fp, #-1168]
b .L20
.L38:
mov r3, #0
str r3, [sp]
mvn r3, #0
mov r2, #64
ldr r1, [fp, #-1144]
ldr r0, [fp, #-1148]
bl epoll_pwait
str r0, [fp, #-1136]
mov r3, #0
str r3, [fp, #-1164]
b .L21
.L37:
ldr r3, [fp, #-1164]
lsl r3, r3, #4
ldr r2, [fp, #-1144]
add r3, r2, r3
ldr r3, [r3]
and r3, r3, #8
cmp r3, #0
bne .L22
ldr r3, [fp, #-1164]
lsl r3, r3, #4
ldr r2, [fp, #-1144]
add r3, r2, r3
ldr r3, [r3]
and r3, r3, #16
cmp r3, #0
bne .L22
ldr r3, [fp, #-1164]
lsl r3, r3, #4
ldr r2, [fp, #-1144]
add r3, r2, r3
ldr r3, [r3]
and r3, r3, #1
cmp r3, #0
bne .L23
.L22:
ldr r3, .L43+32
ldr r3, [r3]
mov r2, #12
mov r1, #1
ldr r0, .L43+36
bl fwrite
ldr r3, [fp, #-1164]
lsl r3, r3, #4
ldr r2, [fp, #-1144]
add r3, r2, r3
ldr r3, [r3, #8]
mov r0, r3
bl close
b .L24
.L23:
ldr r3, [fp, #-1164]
lsl r3, r3, #4
ldr r2, [fp, #-1144]
add r3, r2, r3
ldr r3, [r3, #8]
ldr r2, [fp, #-1156]
cmp r2, r3
bne .L25
.L30:
mov r3, #16
str r3, [fp, #-1180]
sub r2, fp, #1168
sub r2, r2, #12
sub r1, fp, #1072
sub r1, r1, #12
sub r1, r1, #8
mov r3, #2048
ldr r0, [fp, #-1156]
bl accept4
str r0, [fp, #-1128]
ldr r3, [fp, #-1128]
cmn r3, #1
bne .L26
bl __errno_location
mov r3, r0
ldr r3, [r3]
cmp r3, #11
beq .L41
bl __errno_location
mov r3, r0
ldr r3, [r3]
cmp r3, #11
beq .L41
ldr r0, .L43+40
bl perror
nop
b .L41
.L26:
ldr r1, [fp, #-1180]
sub r2, fp, #1024
sub r2, r2, #12
sub r2, r2, #8
sub r0, fp, #1072
sub r0, r0, #12
sub r0, r0, #8
mov r3, #3
str r3, [sp, #8]
mov r3, #32
str r3, [sp, #4]
sub r3, fp, #1056
sub r3, r3, #12
sub r3, r3, #8
str r3, [sp]
ldr r3, .L43+44
bl getnameinfo
str r0, [fp, #-1152]
ldr r3, [fp, #-1152]
cmp r3, #0
bne .L28
sub r3, fp, #1056
sub r3, r3, #12
sub r3, r3, #8
sub r2, fp, #1024
sub r2, r2, #12
sub r2, r2, #8
ldr r1, [fp, #-1128]
ldr r0, .L43+48
bl printf
.L28:
ldr r3, [fp, #-1128]
str r3, [fp, #-1116]
mov r3, #-2147483647
str r3, [fp, #-1124]
sub r3, fp, #1104
sub r3, r3, #12
sub r3, r3, #8
ldr r2, [fp, #-1128]
mov r1, #1
ldr r0, [fp, #-1148]
bl epoll_ctl
str r0, [fp, #-1152]
ldr r3, [fp, #-1152]
cmn r3, #1
bne .L30
ldr r0, .L43+12
bl perror
mvn r3, #0
b .L39
.L25:
mov r3, #0
str r3, [fp, #-1160]
.L36:
ldr r3, [fp, #-1164]
lsl r3, r3, #4
ldr r2, [fp, #-1144]
add r3, r2, r3
ldr r0, [r3, #8]
sub r3, fp, #1024
sub r3, r3, #12
sub r3, r3, #8
mov r2, #512
mov r1, r3
bl read
str r0, [fp, #-1132]
ldr r3, [fp, #-1132]
cmn r3, #1
bne .L31
bl __errno_location
mov r3, r0
ldr r3, [r3]
cmp r3, #11
beq .L42
ldr r0, .L43+52
bl perror
mov r3, #1
str r3, [fp, #-1160]
b .L42
.L31:
ldr r3, [fp, #-1132]
cmp r3, #0
bne .L34
mov r3, #1
str r3, [fp, #-1160]
b .L33
.L34:
ldr r2, [fp, #-1132]
sub r3, fp, #1024
sub r3, r3, #12
sub r3, r3, #8
mov r1, r3
mov r0, #1
bl write
str r0, [fp, #-1152]
ldr r3, [fp, #-1152]
cmn r3, #1
bne .L36
ldr r0, .L43+56
bl perror
mvn r3, #0
b .L39
.L42:
nop
.L33:
ldr r3, [fp, #-1160]
cmp r3, #0
beq .L24
ldr r3, [fp, #-1164]
lsl r3, r3, #4
ldr r2, [fp, #-1144]
add r3, r2, r3
ldr r3, [r3, #8]
mov r1, r3
ldr r0, .L43+60
bl printf
ldr r3, [fp, #-1164]
lsl r3, r3, #4
ldr r2, [fp, #-1144]
add r3, r2, r3
ldr r3, [r3, #8]
mov r0, r3
bl close
ldr r3, [fp, #-1168]
add r3, r3, #1
str r3, [fp, #-1168]
b .L24
.L41:
nop
.L24:
ldr r3, [fp, #-1164]
add r3, r3, #1
str r3, [fp, #-1164]
.L21:
ldr r2, [fp, #-1164]
ldr r3, [fp, #-1136]
cmp r2, r3
blt .L37
.L20:
ldr r2, [fp, #-1168]
ldr r3, [fp, #-1176]
cmp r2, r3
blt .L38
ldr r0, [fp, #-1144]
bl free
ldr r0, [fp, #-1156]
bl close
mov r3, #0
.L39:
ldr r2, .L43
ldr r1, [r2]
ldr r2, [fp, #-16]
eors r1, r2, r1
mov r2, #0
beq .L40
bl __stack_chk_fail
.L40:
mov r0, r3
sub sp, fp, #8
@ sp needed
pop {r4, fp, pc}
.L44:
.align 2
.L43:
.word .LC21
.word .LC8
.word .LC9
.word .LC10
.word .LC11
.word .LC12
.word .LC13
.word .LC14
.word stderr
.word .LC15
.word .LC16
.word 1025
.word .LC17
.word .LC18
.word .LC19
.word .LC20
.size main, .-main
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "576433.c"
.intel_syntax noprefix
.text
.section .rodata
.LC0:
.string "%d"
.text
.globl main
.type main, @function
main:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 112
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
mov DWORD PTR -100[rbp], 0
mov DWORD PTR -108[rbp], 0
jmp .L2
.L3:
lea rax, -112[rbp]
mov rsi, rax
lea rdi, .LC0[rip]
mov eax, 0
call __isoc99_scanf@PLT
mov edx, DWORD PTR -112[rbp]
movsx rax, edx
imul rax, rax, 818089009
shr rax, 32
sar eax, 3
mov ecx, edx
sar ecx, 31
sub eax, ecx
imul ecx, eax, 42
mov eax, edx
sub eax, ecx
mov edx, DWORD PTR -108[rbp]
movsx rdx, edx
mov DWORD PTR -96[rbp+rdx*4], eax
mov eax, DWORD PTR -108[rbp]
cdqe
mov DWORD PTR -48[rbp+rax*4], -1
add DWORD PTR -108[rbp], 1
.L2:
cmp DWORD PTR -108[rbp], 9
jle .L3
mov DWORD PTR -108[rbp], 0
jmp .L4
.L10:
mov DWORD PTR -104[rbp], 0
mov DWORD PTR -112[rbp], 0
jmp .L5
.L8:
mov eax, DWORD PTR -108[rbp]
cdqe
mov edx, DWORD PTR -96[rbp+rax*4]
mov eax, DWORD PTR -104[rbp]
cdqe
mov eax, DWORD PTR -48[rbp+rax*4]
cmp edx, eax
jne .L6
mov DWORD PTR -112[rbp], 1
jmp .L7
.L6:
add DWORD PTR -104[rbp], 1
.L5:
cmp DWORD PTR -104[rbp], 9
jle .L8
.L7:
mov eax, DWORD PTR -112[rbp]
test eax, eax
jne .L9
mov eax, DWORD PTR -108[rbp]
cdqe
mov edx, DWORD PTR -96[rbp+rax*4]
mov eax, DWORD PTR -108[rbp]
cdqe
mov DWORD PTR -48[rbp+rax*4], edx
add DWORD PTR -100[rbp], 1
.L9:
add DWORD PTR -108[rbp], 1
.L4:
cmp DWORD PTR -108[rbp], 9
jle .L10
mov eax, DWORD PTR -100[rbp]
mov esi, eax
lea rdi, .LC0[rip]
mov eax, 0
call printf@PLT
mov eax, 0
mov rsi, QWORD PTR -8[rbp]
sub rsi, QWORD PTR fs:40
je .L12
call __stack_chk_fail@PLT
.L12:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size main, .-main
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "576433.c"
.text
.section .rodata
.align 2
.LC0:
.ascii "%d\000"
.align 2
.LC1:
.word __stack_chk_guard
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 104
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #104
ldr r3, .L13
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
mov r3, #0
str r3, [fp, #-92]
mov r3, #0
str r3, [fp, #-100]
b .L2
.L3:
sub r3, fp, #104
mov r1, r3
ldr r0, .L13+4
bl __isoc99_scanf
ldr r1, [fp, #-104]
ldr r3, .L13+8
smull r2, r3, r1, r3
asr r2, r3, #3
asr r3, r1, #31
sub r2, r2, r3
mov r3, r2
lsl r3, r3, #1
add r3, r3, r2
lsl r2, r3, #3
sub r2, r2, r3
lsl r3, r2, #1
mov r2, r3
sub r2, r1, r2
ldr r3, [fp, #-100]
lsl r3, r3, #2
sub r1, fp, #4
add r3, r1, r3
str r2, [r3, #-84]
ldr r3, [fp, #-100]
lsl r3, r3, #2
sub r2, fp, #4
add r3, r2, r3
mvn r2, #0
str r2, [r3, #-44]
ldr r3, [fp, #-100]
add r3, r3, #1
str r3, [fp, #-100]
.L2:
ldr r3, [fp, #-100]
cmp r3, #9
ble .L3
mov r3, #0
str r3, [fp, #-100]
b .L4
.L10:
mov r3, #0
str r3, [fp, #-96]
mov r3, #0
str r3, [fp, #-104]
b .L5
.L8:
ldr r3, [fp, #-100]
lsl r3, r3, #2
sub r2, fp, #4
add r3, r2, r3
ldr r2, [r3, #-84]
ldr r3, [fp, #-96]
lsl r3, r3, #2
sub r1, fp, #4
add r3, r1, r3
ldr r3, [r3, #-44]
cmp r2, r3
bne .L6
mov r3, #1
str r3, [fp, #-104]
b .L7
.L6:
ldr r3, [fp, #-96]
add r3, r3, #1
str r3, [fp, #-96]
.L5:
ldr r3, [fp, #-96]
cmp r3, #9
ble .L8
.L7:
ldr r3, [fp, #-104]
cmp r3, #0
bne .L9
ldr r3, [fp, #-100]
lsl r3, r3, #2
sub r2, fp, #4
add r3, r2, r3
ldr r2, [r3, #-84]
ldr r3, [fp, #-100]
lsl r3, r3, #2
sub r1, fp, #4
add r3, r1, r3
str r2, [r3, #-44]
ldr r3, [fp, #-92]
add r3, r3, #1
str r3, [fp, #-92]
.L9:
ldr r3, [fp, #-100]
add r3, r3, #1
str r3, [fp, #-100]
.L4:
ldr r3, [fp, #-100]
cmp r3, #9
ble .L10
ldr r1, [fp, #-92]
ldr r0, .L13+4
bl printf
mov r3, #0
ldr r2, .L13
ldr r1, [r2]
ldr r2, [fp, #-8]
eors r1, r2, r1
mov r2, #0
beq .L12
bl __stack_chk_fail
.L12:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L14:
.align 2
.L13:
.word .LC1
.word .LC0
.word 818089009
.size main, .-main
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "630602.c"
.intel_syntax noprefix
.text
.globl CXB30040
.type CXB30040, @function
CXB30040:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov DWORD PTR -20[rbp], edi
mov BYTE PTR -1[rbp], 59
cmp DWORD PTR -20[rbp], 32
ja .L2
mov eax, DWORD PTR -20[rbp]
lea rdx, 0[0+rax*4]
lea rax, .L4[rip]
mov eax, DWORD PTR [rdx+rax]
cdqe
lea rdx, .L4[rip]
add rax, rdx
notrack jmp rax
.section .rodata
.align 4
.align 4
.L4:
.long .L36-.L4
.long .L35-.L4
.long .L34-.L4
.long .L33-.L4
.long .L32-.L4
.long .L31-.L4
.long .L30-.L4
.long .L29-.L4
.long .L28-.L4
.long .L27-.L4
.long .L26-.L4
.long .L25-.L4
.long .L24-.L4
.long .L23-.L4
.long .L22-.L4
.long .L21-.L4
.long .L20-.L4
.long .L19-.L4
.long .L18-.L4
.long .L17-.L4
.long .L16-.L4
.long .L15-.L4
.long .L14-.L4
.long .L13-.L4
.long .L12-.L4
.long .L11-.L4
.long .L10-.L4
.long .L9-.L4
.long .L8-.L4
.long .L7-.L4
.long .L6-.L4
.long .L5-.L4
.long .L3-.L4
.text
.L36:
mov BYTE PTR -1[rbp], 48
jmp .L2
.L35:
mov BYTE PTR -1[rbp], 49
jmp .L2
.L34:
mov BYTE PTR -1[rbp], 50
jmp .L2
.L33:
mov BYTE PTR -1[rbp], 51
jmp .L2
.L32:
mov BYTE PTR -1[rbp], 52
jmp .L2
.L31:
mov BYTE PTR -1[rbp], 53
jmp .L2
.L30:
mov BYTE PTR -1[rbp], 54
jmp .L2
.L29:
mov BYTE PTR -1[rbp], 55
jmp .L2
.L28:
mov BYTE PTR -1[rbp], 56
jmp .L2
.L27:
mov BYTE PTR -1[rbp], 57
jmp .L2
.L26:
mov BYTE PTR -1[rbp], 65
jmp .L2
.L25:
mov BYTE PTR -1[rbp], 66
jmp .L2
.L24:
mov BYTE PTR -1[rbp], 67
jmp .L2
.L23:
mov BYTE PTR -1[rbp], 68
jmp .L2
.L22:
mov BYTE PTR -1[rbp], 69
jmp .L2
.L21:
mov BYTE PTR -1[rbp], 70
jmp .L2
.L20:
mov BYTE PTR -1[rbp], 71
jmp .L2
.L19:
mov BYTE PTR -1[rbp], 72
jmp .L2
.L18:
mov BYTE PTR -1[rbp], 73
jmp .L2
.L17:
mov BYTE PTR -1[rbp], 74
jmp .L2
.L16:
mov BYTE PTR -1[rbp], 107
jmp .L2
.L15:
mov BYTE PTR -1[rbp], 108
jmp .L2
.L14:
mov BYTE PTR -1[rbp], 109
jmp .L2
.L13:
mov BYTE PTR -1[rbp], 110
jmp .L2
.L12:
mov BYTE PTR -1[rbp], 111
jmp .L2
.L11:
mov BYTE PTR -1[rbp], 112
jmp .L2
.L10:
mov BYTE PTR -1[rbp], 113
jmp .L2
.L9:
mov BYTE PTR -1[rbp], 114
jmp .L2
.L8:
mov BYTE PTR -1[rbp], 115
jmp .L2
.L7:
mov BYTE PTR -1[rbp], 116
jmp .L2
.L6:
mov BYTE PTR -1[rbp], 32
jmp .L2
.L5:
mov BYTE PTR -1[rbp], 46
jmp .L2
.L3:
mov BYTE PTR -1[rbp], 44
nop
.L2:
movzx eax, BYTE PTR -1[rbp]
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size CXB30040, .-CXB30040
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "630602.c"
.text
.align 2
.global CXB30040
.syntax unified
.arm
.fpu softvfp
.type CXB30040, %function
CXB30040:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #20
str r0, [fp, #-16]
mov r3, #59
strb r3, [fp, #-5]
ldr r3, [fp, #-16]
cmp r3, #32
ldrls pc, [pc, r3, asl #2]
b .L2
.L4:
.word .L36
.word .L35
.word .L34
.word .L33
.word .L32
.word .L31
.word .L30
.word .L29
.word .L28
.word .L27
.word .L26
.word .L25
.word .L24
.word .L23
.word .L22
.word .L21
.word .L20
.word .L19
.word .L18
.word .L17
.word .L16
.word .L15
.word .L14
.word .L13
.word .L12
.word .L11
.word .L10
.word .L9
.word .L8
.word .L7
.word .L6
.word .L5
.word .L3
.L36:
mov r3, #48
strb r3, [fp, #-5]
b .L2
.L35:
mov r3, #49
strb r3, [fp, #-5]
b .L2
.L34:
mov r3, #50
strb r3, [fp, #-5]
b .L2
.L33:
mov r3, #51
strb r3, [fp, #-5]
b .L2
.L32:
mov r3, #52
strb r3, [fp, #-5]
b .L2
.L31:
mov r3, #53
strb r3, [fp, #-5]
b .L2
.L30:
mov r3, #54
strb r3, [fp, #-5]
b .L2
.L29:
mov r3, #55
strb r3, [fp, #-5]
b .L2
.L28:
mov r3, #56
strb r3, [fp, #-5]
b .L2
.L27:
mov r3, #57
strb r3, [fp, #-5]
b .L2
.L26:
mov r3, #65
strb r3, [fp, #-5]
b .L2
.L25:
mov r3, #66
strb r3, [fp, #-5]
b .L2
.L24:
mov r3, #67
strb r3, [fp, #-5]
b .L2
.L23:
mov r3, #68
strb r3, [fp, #-5]
b .L2
.L22:
mov r3, #69
strb r3, [fp, #-5]
b .L2
.L21:
mov r3, #70
strb r3, [fp, #-5]
b .L2
.L20:
mov r3, #71
strb r3, [fp, #-5]
b .L2
.L19:
mov r3, #72
strb r3, [fp, #-5]
b .L2
.L18:
mov r3, #73
strb r3, [fp, #-5]
b .L2
.L17:
mov r3, #74
strb r3, [fp, #-5]
b .L2
.L16:
mov r3, #107
strb r3, [fp, #-5]
b .L2
.L15:
mov r3, #108
strb r3, [fp, #-5]
b .L2
.L14:
mov r3, #109
strb r3, [fp, #-5]
b .L2
.L13:
mov r3, #110
strb r3, [fp, #-5]
b .L2
.L12:
mov r3, #111
strb r3, [fp, #-5]
b .L2
.L11:
mov r3, #112
strb r3, [fp, #-5]
b .L2
.L10:
mov r3, #113
strb r3, [fp, #-5]
b .L2
.L9:
mov r3, #114
strb r3, [fp, #-5]
b .L2
.L8:
mov r3, #115
strb r3, [fp, #-5]
b .L2
.L7:
mov r3, #116
strb r3, [fp, #-5]
b .L2
.L6:
mov r3, #32
strb r3, [fp, #-5]
b .L2
.L5:
mov r3, #46
strb r3, [fp, #-5]
b .L2
.L3:
mov r3, #44
strb r3, [fp, #-5]
nop
.L2:
ldrb r3, [fp, #-5] @ zero_extendqisi2
mov r0, r3
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size CXB30040, .-CXB30040
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "608008.c"
.intel_syntax noprefix
.text
.section .rodata
.align 8
.LC0:
.string "Choisir une heure de d\303\251part (format: hms): "
.LC1:
.string "%d"
.align 8
.LC2:
.string "Choisir un temps de trajet (format: hms): "
.LC3:
.string "Heure d'arriv\303\251e: %d:%d:%d"
.text
.globl main
.type main, @function
main:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 64
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
lea rdi, .LC0[rip]
mov eax, 0
call printf@PLT
lea rax, -52[rbp]
mov rsi, rax
lea rdi, .LC1[rip]
mov eax, 0
call __isoc99_scanf@PLT
lea rdi, .LC2[rip]
mov eax, 0
call printf@PLT
lea rax, -48[rbp]
mov rsi, rax
lea rdi, .LC1[rip]
mov eax, 0
call __isoc99_scanf@PLT
mov eax, DWORD PTR -52[rbp]
movsx rdx, eax
imul rdx, rdx, 1374389535
shr rdx, 32
sar edx, 5
mov ecx, eax
sar ecx, 31
sub edx, ecx
mov DWORD PTR -44[rbp], edx
mov edx, DWORD PTR -44[rbp]
imul edx, edx, 100
sub eax, edx
mov DWORD PTR -44[rbp], eax
mov eax, DWORD PTR -52[rbp]
movsx rdx, eax
imul rdx, rdx, 1374389535
shr rdx, 32
sar edx, 5
sar eax, 31
mov ecx, eax
mov eax, edx
sub eax, ecx
movsx rdx, eax
imul rdx, rdx, 1374389535
shr rdx, 32
sar edx, 5
mov ecx, eax
sar ecx, 31
sub edx, ecx
mov DWORD PTR -40[rbp], edx
mov edx, DWORD PTR -40[rbp]
imul edx, edx, 100
sub eax, edx
mov DWORD PTR -40[rbp], eax
mov eax, DWORD PTR -52[rbp]
movsx rdx, eax
imul rdx, rdx, 1759218605
shr rdx, 32
sar edx, 12
sar eax, 31
mov ecx, eax
mov eax, edx
sub eax, ecx
mov DWORD PTR -36[rbp], eax
mov eax, DWORD PTR -48[rbp]
movsx rdx, eax
imul rdx, rdx, 1374389535
shr rdx, 32
sar edx, 5
mov ecx, eax
sar ecx, 31
sub edx, ecx
mov DWORD PTR -32[rbp], edx
mov edx, DWORD PTR -32[rbp]
imul edx, edx, 100
sub eax, edx
mov DWORD PTR -32[rbp], eax
mov eax, DWORD PTR -48[rbp]
movsx rdx, eax
imul rdx, rdx, 1374389535
shr rdx, 32
sar edx, 5
sar eax, 31
mov ecx, eax
mov eax, edx
sub eax, ecx
movsx rdx, eax
imul rdx, rdx, 1374389535
shr rdx, 32
sar edx, 5
mov ecx, eax
sar ecx, 31
sub edx, ecx
mov DWORD PTR -28[rbp], edx
mov edx, DWORD PTR -28[rbp]
imul edx, edx, 100
sub eax, edx
mov DWORD PTR -28[rbp], eax
mov eax, DWORD PTR -48[rbp]
movsx rdx, eax
imul rdx, rdx, 1759218605
shr rdx, 32
sar edx, 12
sar eax, 31
mov ecx, eax
mov eax, edx
sub eax, ecx
mov DWORD PTR -24[rbp], eax
mov edx, DWORD PTR -44[rbp]
mov eax, DWORD PTR -32[rbp]
add eax, edx
movsx rdx, eax
imul rdx, rdx, -2004318071
shr rdx, 32
add edx, eax
sar edx, 5
mov ecx, eax
sar ecx, 31
sub edx, ecx
mov DWORD PTR -20[rbp], edx
mov edx, DWORD PTR -20[rbp]
imul edx, edx, 60
sub eax, edx
mov DWORD PTR -20[rbp], eax
mov edx, DWORD PTR -40[rbp]
mov eax, DWORD PTR -28[rbp]
add eax, edx
movsx rdx, eax
imul rdx, rdx, -2004318071
shr rdx, 32
add edx, eax
sar edx, 5
mov ecx, eax
sar ecx, 31
sub edx, ecx
imul ecx, edx, 60
sub eax, ecx
mov edx, eax
mov ecx, DWORD PTR -44[rbp]
mov eax, DWORD PTR -32[rbp]
add eax, ecx
add eax, edx
sub eax, DWORD PTR -20[rbp]
mov DWORD PTR -16[rbp], eax
mov edx, DWORD PTR -36[rbp]
mov eax, DWORD PTR -24[rbp]
add edx, eax
movsx rax, edx
imul rax, rax, 715827883
shr rax, 32
sar eax, 2
mov ecx, edx
sar ecx, 31
sub eax, ecx
mov DWORD PTR -12[rbp], eax
mov ecx, DWORD PTR -12[rbp]
mov eax, ecx
add eax, eax
add eax, ecx
sal eax, 3
sub edx, eax
mov DWORD PTR -12[rbp], edx
mov ecx, DWORD PTR -20[rbp]
mov edx, DWORD PTR -16[rbp]
mov eax, DWORD PTR -12[rbp]
mov esi, eax
lea rdi, .LC3[rip]
mov eax, 0
call printf@PLT
mov eax, 0
mov rsi, QWORD PTR -8[rbp]
sub rsi, QWORD PTR fs:40
je .L3
call __stack_chk_fail@PLT
.L3:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size main, .-main
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "608008.c"
.text
.section .rodata
.align 2
.LC0:
.ascii "Choisir une heure de d\303\251part (format: hms): \000"
.align 2
.LC1:
.ascii "%d\000"
.align 2
.LC2:
.ascii "Choisir un temps de trajet (format: hms): \000"
.align 2
.LC3:
.ascii "Heure d'arriv\303\251e: %d:%d:%d\000"
.align 2
.LC4:
.word __stack_chk_guard
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 48
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #48
ldr r3, .L4
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
ldr r0, .L4+4
bl printf
sub r3, fp, #52
mov r1, r3
ldr r0, .L4+8
bl __isoc99_scanf
ldr r0, .L4+12
bl printf
sub r3, fp, #48
mov r1, r3
ldr r0, .L4+8
bl __isoc99_scanf
ldr r2, [fp, #-52]
ldr r3, .L4+16
smull r1, r3, r2, r3
asr r1, r3, #5
asr r3, r2, #31
sub r1, r1, r3
mov r3, r1
lsl r3, r3, #2
add r3, r3, r1
lsl r1, r3, #2
add r3, r3, r1
lsl r3, r3, #2
sub r3, r2, r3
str r3, [fp, #-44]
ldr r3, [fp, #-52]
ldr r2, .L4+16
smull r1, r2, r3, r2
asr r2, r2, #5
asr r3, r3, #31
sub r2, r2, r3
ldr r3, .L4+16
smull r1, r3, r2, r3
asr r1, r3, #5
asr r3, r2, #31
sub r1, r1, r3
mov r3, r1
lsl r3, r3, #2
add r3, r3, r1
lsl r1, r3, #2
add r3, r3, r1
lsl r3, r3, #2
sub r3, r2, r3
str r3, [fp, #-40]
ldr r3, [fp, #-52]
ldr r2, .L4+20
smull r1, r2, r3, r2
asr r2, r2, #12
asr r3, r3, #31
sub r3, r2, r3
str r3, [fp, #-36]
ldr r2, [fp, #-48]
ldr r3, .L4+16
smull r1, r3, r2, r3
asr r1, r3, #5
asr r3, r2, #31
sub r1, r1, r3
mov r3, r1
lsl r3, r3, #2
add r3, r3, r1
lsl r1, r3, #2
add r3, r3, r1
lsl r3, r3, #2
sub r3, r2, r3
str r3, [fp, #-32]
ldr r3, [fp, #-48]
ldr r2, .L4+16
smull r1, r2, r3, r2
asr r2, r2, #5
asr r3, r3, #31
sub r2, r2, r3
ldr r3, .L4+16
smull r1, r3, r2, r3
asr r1, r3, #5
asr r3, r2, #31
sub r1, r1, r3
mov r3, r1
lsl r3, r3, #2
add r3, r3, r1
lsl r1, r3, #2
add r3, r3, r1
lsl r3, r3, #2
sub r3, r2, r3
str r3, [fp, #-28]
ldr r3, [fp, #-48]
ldr r2, .L4+20
smull r1, r2, r3, r2
asr r2, r2, #12
asr r3, r3, #31
sub r3, r2, r3
str r3, [fp, #-24]
ldr r2, [fp, #-44]
ldr r3, [fp, #-32]
add r2, r2, r3
ldr r3, .L4+24
smull r1, r3, r2, r3
add r3, r3, r2
asr r1, r3, #5
asr r3, r2, #31
sub r1, r1, r3
mov r3, r1
lsl r3, r3, #4
sub r3, r3, r1
lsl r3, r3, #2
sub r3, r2, r3
str r3, [fp, #-20]
ldr r2, [fp, #-40]
ldr r3, [fp, #-28]
add r2, r2, r3
ldr r3, .L4+24
smull r1, r3, r2, r3
add r3, r3, r2
asr r1, r3, #5
asr r3, r2, #31
sub r1, r1, r3
mov r3, r1
lsl r3, r3, #4
sub r3, r3, r1
lsl r3, r3, #2
sub r1, r2, r3
ldr r2, [fp, #-44]
ldr r3, [fp, #-32]
add r3, r2, r3
add r2, r1, r3
ldr r3, [fp, #-20]
sub r3, r2, r3
str r3, [fp, #-16]
ldr r2, [fp, #-36]
ldr r3, [fp, #-24]
add r2, r2, r3
ldr r3, .L4+28
smull r1, r3, r2, r3
asr r1, r3, #2
asr r3, r2, #31
sub r1, r1, r3
mov r3, r1
lsl r3, r3, #1
add r3, r3, r1
lsl r3, r3, #3
sub r3, r2, r3
str r3, [fp, #-12]
ldr r3, [fp, #-20]
ldr r2, [fp, #-16]
ldr r1, [fp, #-12]
ldr r0, .L4+32
bl printf
mov r3, #0
ldr r2, .L4
ldr r1, [r2]
ldr r2, [fp, #-8]
eors r1, r2, r1
mov r2, #0
beq .L3
bl __stack_chk_fail
.L3:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L5:
.align 2
.L4:
.word .LC4
.word .LC0
.word .LC1
.word .LC2
.word 1374389535
.word 1759218605
.word -2004318071
.word 715827883
.word .LC3
.size main, .-main
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "203573.c"
.intel_syntax noprefix
.text
.globl error
.type error, @function
error:
.LFB6:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov QWORD PTR -8[rbp], rdi
mov rax, QWORD PTR -8[rbp]
mov rdi, rax
call perror@PLT
mov edi, 1
call exit@PLT
.cfi_endproc
.LFE6:
.size error, .-error
.section .rodata
.LC0:
.string "Error! No port provided"
.LC1:
.string "Error opening socket"
.LC2:
.string "Error on binding"
.LC3:
.string "Error on accept"
.align 8
.LC4:
.string "New client connected from port no. %d and IP %s \n"
.LC5:
.string "Error reading from socket"
.LC6:
.string "Here is the message: %s\n"
.LC7:
.string "I got your message"
.LC8:
.string "Error writing to socket "
.text
.globl main
.type main, @function
main:
.LFB7:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
push rbx
sub rsp, 344
.cfi_offset 3, -24
mov DWORD PTR -340[rbp], edi
mov QWORD PTR -352[rbp], rsi
mov rax, QWORD PTR fs:40
mov QWORD PTR -24[rbp], rax
xor eax, eax
cmp DWORD PTR -340[rbp], 1
jg .L3
mov rax, QWORD PTR stderr[rip]
mov rcx, rax
mov edx, 23
mov esi, 1
lea rdi, .LC0[rip]
call fwrite@PLT
mov edi, 1
call exit@PLT
.L3:
mov edx, 0
mov esi, 1
mov edi, 2
call socket@PLT
mov DWORD PTR -332[rbp], eax
cmp DWORD PTR -332[rbp], 0
jns .L4
lea rdi, .LC1[rip]
call error
.L4:
lea rax, -320[rbp]
mov QWORD PTR [rax], 0
mov QWORD PTR 8[rax], 0
mov WORD PTR -320[rbp], 2
mov DWORD PTR -316[rbp], 0
mov rax, QWORD PTR -352[rbp]
add rax, 8
mov rax, QWORD PTR [rax]
mov rdi, rax
call atoi@PLT
movzx eax, ax
mov edi, eax
call htons@PLT
mov WORD PTR -318[rbp], ax
lea rcx, -320[rbp]
mov eax, DWORD PTR -332[rbp]
mov edx, 16
mov rsi, rcx
mov edi, eax
call bind@PLT
test eax, eax
jns .L5
lea rdi, .LC2[rip]
call error
.L5:
mov eax, DWORD PTR -332[rbp]
mov esi, 5
mov edi, eax
call listen@PLT
.L9:
mov DWORD PTR -336[rbp], 16
lea rdx, -336[rbp]
lea rcx, -304[rbp]
mov eax, DWORD PTR -332[rbp]
mov rsi, rcx
mov edi, eax
call accept@PLT
mov DWORD PTR -328[rbp], eax
cmp DWORD PTR -328[rbp], 0
jns .L6
lea rdi, .LC3[rip]
call error
.L6:
mov eax, DWORD PTR -300[rbp]
mov edi, eax
call inet_ntoa@PLT
mov rbx, rax
movzx eax, WORD PTR -302[rbp]
movzx eax, ax
mov edi, eax
call ntohs@PLT
movzx eax, ax
mov rdx, rbx
mov esi, eax
lea rdi, .LC4[rip]
mov eax, 0
call printf@PLT
lea rax, -288[rbp]
mov rsi, rax
mov eax, 0
mov edx, 32
mov rdi, rsi
mov rcx, rdx
rep stosq
lea rcx, -288[rbp]
mov eax, DWORD PTR -328[rbp]
mov edx, 255
mov rsi, rcx
mov edi, eax
call read@PLT
mov DWORD PTR -324[rbp], eax
cmp DWORD PTR -324[rbp], 0
jns .L7
lea rdi, .LC5[rip]
call error
.L7:
lea rax, -288[rbp]
mov rsi, rax
lea rdi, .LC6[rip]
mov eax, 0
call printf@PLT
mov eax, DWORD PTR -328[rbp]
mov edx, 18
lea rsi, .LC7[rip]
mov edi, eax
call write@PLT
mov DWORD PTR -324[rbp], eax
cmp DWORD PTR -324[rbp], 0
jns .L9
lea rdi, .LC8[rip]
call error
jmp .L9
.cfi_endproc
.LFE7:
.size main, .-main
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "203573.c"
.text
.align 2
.global error
.syntax unified
.arm
.fpu softvfp
.type error, %function
error:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #8
str r0, [fp, #-8]
ldr r0, [fp, #-8]
bl perror
mov r0, #1
bl exit
.size error, .-error
.section .rodata
.align 2
.LC0:
.ascii "Error! No port provided\000"
.align 2
.LC1:
.ascii "Error opening socket\000"
.align 2
.LC2:
.ascii "Error on binding\000"
.align 2
.LC3:
.ascii "Error on accept\000"
.align 2
.LC4:
.ascii "New client connected from port no. %d and IP %s \012"
.ascii "\000"
.align 2
.LC5:
.ascii "Error reading from socket\000"
.align 2
.LC6:
.ascii "Here is the message: %s\012\000"
.align 2
.LC7:
.ascii "I got your message\000"
.align 2
.LC8:
.ascii "Error writing to socket \000"
.align 2
.LC9:
.word __stack_chk_guard
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 320
@ frame_needed = 1, uses_anonymous_args = 0
push {r4, fp, lr}
add fp, sp, #8
sub sp, sp, #324
str r0, [fp, #-328]
str r1, [fp, #-332]
ldr r3, .L11
ldr r3, [r3]
str r3, [fp, #-16]
mov r3,#0
ldr r3, [fp, #-328]
cmp r3, #1
bgt .L3
ldr r3, .L11+4
ldr r3, [r3]
mov r2, #23
mov r1, #1
ldr r0, .L11+8
bl fwrite
mov r0, #1
bl exit
.L3:
mov r2, #0
mov r1, #1
mov r0, #2
bl socket
str r0, [fp, #-316]
ldr r3, [fp, #-316]
cmp r3, #0
bge .L4
ldr r0, .L11+12
bl error
.L4:
sub r3, fp, #304
mov r2, r3
mov r3, #0
str r3, [r2]
str r3, [r2, #4]
str r3, [r2, #8]
str r3, [r2, #12]
sub r3, fp, #12
sub r3, r3, #292
mov r2, #2
strh r2, [r3] @ movhi
mov r3, #0
str r3, [fp, #-300]
ldr r3, [fp, #-332]
add r3, r3, #4
ldr r3, [r3]
mov r0, r3
bl atoi
mov r3, r0
lsl r3, r3, #16
lsr r3, r3, #16
mov r0, r3
bl htons
mov r3, r0
mov r2, r3
sub r3, fp, #12
sub r3, r3, #292
strh r2, [r3, #2] @ movhi
sub r3, fp, #304
mov r2, #16
mov r1, r3
ldr r0, [fp, #-316]
bl bind
mov r3, r0
cmp r3, #0
bge .L5
ldr r0, .L11+16
bl error
.L5:
mov r1, #5
ldr r0, [fp, #-316]
bl listen
.L9:
mov r3, #16
str r3, [fp, #-320]
sub r2, fp, #320
sub r3, fp, #288
mov r1, r3
ldr r0, [fp, #-316]
bl accept
str r0, [fp, #-312]
ldr r3, [fp, #-312]
cmp r3, #0
bge .L6
ldr r0, .L11+20
bl error
.L6:
sub r3, fp, #12
sub r3, r3, #276
ldrh r3, [r3, #2]
mov r0, r3
bl ntohs
mov r3, r0
mov r4, r3
ldr r0, [fp, #-284]
bl inet_ntoa
mov r3, r0
mov r2, r3
mov r1, r4
ldr r0, .L11+24
bl printf
sub r3, fp, #272
mov r0, r3
mov r3, #256
mov r2, r3
mov r1, #0
bl memset
sub r3, fp, #272
mov r2, #255
mov r1, r3
ldr r0, [fp, #-312]
bl read
str r0, [fp, #-308]
ldr r3, [fp, #-308]
cmp r3, #0
bge .L7
ldr r0, .L11+28
bl error
.L7:
sub r3, fp, #272
mov r1, r3
ldr r0, .L11+32
bl printf
mov r2, #18
ldr r1, .L11+36
ldr r0, [fp, #-312]
bl write
str r0, [fp, #-308]
ldr r3, [fp, #-308]
cmp r3, #0
bge .L9
ldr r0, .L11+40
bl error
b .L9
.L12:
.align 2
.L11:
.word .LC9
.word stderr
.word .LC0
.word .LC1
.word .LC2
.word .LC3
.word .LC4
.word .LC5
.word .LC6
.word .LC7
.word .LC8
.size main, .-main
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "23879.c"
.intel_syntax noprefix
.text
.section .rodata
.align 8
.LC0:
.string "Digite o n\303\272mero total de processos (m\303\241ximo 20)"
.LC1:
.string "%d"
.align 8
.LC2:
.string "\nInsira o tempo de interrup\303\247\303\243o do processo"
.LC3:
.string "P[%d]:"
.align 8
.LC4:
.string "\nProcessos\t\tTempo de interupcao\tTempo de espera\tTempo de resposta"
.LC5:
.string "\nP[%d]\t\t%d\t\t%d\t\t%d"
.LC6:
.string "\n\nTempo M\303\251dio de Espera:%d"
.LC7:
.string "\nTempo M\303\251dio de Retorno:%d"
.text
.globl main
.type main, @function
main:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 288
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
mov DWORD PTR -272[rbp], 0
mov DWORD PTR -268[rbp], 0
lea rdi, .LC0[rip]
mov eax, 0
call printf@PLT
lea rax, -276[rbp]
mov rsi, rax
lea rdi, .LC1[rip]
mov eax, 0
call __isoc99_scanf@PLT
lea rdi, .LC2[rip]
call puts@PLT
mov DWORD PTR -264[rbp], 0
jmp .L2
.L3:
mov eax, DWORD PTR -264[rbp]
add eax, 1
mov esi, eax
lea rdi, .LC3[rip]
mov eax, 0
call printf@PLT
lea rdx, -256[rbp]
mov eax, DWORD PTR -264[rbp]
cdqe
sal rax, 2
add rax, rdx
mov rsi, rax
lea rdi, .LC1[rip]
mov eax, 0
call __isoc99_scanf@PLT
add DWORD PTR -264[rbp], 1
.L2:
mov eax, DWORD PTR -276[rbp]
cmp DWORD PTR -264[rbp], eax
jl .L3
mov DWORD PTR -176[rbp], 0
mov DWORD PTR -264[rbp], 1
jmp .L4
.L7:
mov eax, DWORD PTR -264[rbp]
cdqe
mov DWORD PTR -176[rbp+rax*4], 0
mov DWORD PTR -260[rbp], 0
jmp .L5
.L6:
mov eax, DWORD PTR -264[rbp]
cdqe
mov edx, DWORD PTR -176[rbp+rax*4]
mov eax, DWORD PTR -260[rbp]
cdqe
mov eax, DWORD PTR -256[rbp+rax*4]
add edx, eax
mov eax, DWORD PTR -264[rbp]
cdqe
mov DWORD PTR -176[rbp+rax*4], edx
add DWORD PTR -260[rbp], 1
.L5:
mov eax, DWORD PTR -260[rbp]
cmp eax, DWORD PTR -264[rbp]
jl .L6
add DWORD PTR -264[rbp], 1
.L4:
mov eax, DWORD PTR -276[rbp]
cmp DWORD PTR -264[rbp], eax
jl .L7
lea rdi, .LC4[rip]
mov eax, 0
call printf@PLT
mov DWORD PTR -264[rbp], 0
jmp .L8
.L9:
mov eax, DWORD PTR -264[rbp]
cdqe
mov edx, DWORD PTR -256[rbp+rax*4]
mov eax, DWORD PTR -264[rbp]
cdqe
mov eax, DWORD PTR -176[rbp+rax*4]
add edx, eax
mov eax, DWORD PTR -264[rbp]
cdqe
mov DWORD PTR -96[rbp+rax*4], edx
mov eax, DWORD PTR -264[rbp]
cdqe
mov eax, DWORD PTR -176[rbp+rax*4]
add DWORD PTR -272[rbp], eax
mov eax, DWORD PTR -264[rbp]
cdqe
mov eax, DWORD PTR -96[rbp+rax*4]
add DWORD PTR -268[rbp], eax
mov eax, DWORD PTR -264[rbp]
cdqe
mov edi, DWORD PTR -96[rbp+rax*4]
mov eax, DWORD PTR -264[rbp]
cdqe
mov edx, DWORD PTR -176[rbp+rax*4]
mov eax, DWORD PTR -264[rbp]
cdqe
mov eax, DWORD PTR -256[rbp+rax*4]
mov ecx, DWORD PTR -264[rbp]
lea esi, 1[rcx]
mov r8d, edi
mov ecx, edx
mov edx, eax
lea rdi, .LC5[rip]
mov eax, 0
call printf@PLT
add DWORD PTR -264[rbp], 1
.L8:
mov eax, DWORD PTR -276[rbp]
cmp DWORD PTR -264[rbp], eax
jl .L9
mov eax, DWORD PTR -272[rbp]
cdq
idiv DWORD PTR -264[rbp]
mov DWORD PTR -272[rbp], eax
mov eax, DWORD PTR -268[rbp]
cdq
idiv DWORD PTR -264[rbp]
mov DWORD PTR -268[rbp], eax
mov eax, DWORD PTR -272[rbp]
mov esi, eax
lea rdi, .LC6[rip]
mov eax, 0
call printf@PLT
mov eax, DWORD PTR -268[rbp]
mov esi, eax
lea rdi, .LC7[rip]
mov eax, 0
call printf@PLT
mov eax, 0
mov rcx, QWORD PTR -8[rbp]
sub rcx, QWORD PTR fs:40
je .L11
call __stack_chk_fail@PLT
.L11:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size main, .-main
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "23879.c"
.text
.section .rodata
.align 2
.LC0:
.ascii "Digite o n\303\272mero total de processos (m\303\241"
.ascii "ximo 20)\000"
.align 2
.LC1:
.ascii "%d\000"
.align 2
.LC2:
.ascii "\012Insira o tempo de interrup\303\247\303\243o do "
.ascii "processo\000"
.align 2
.LC3:
.ascii "P[%d]:\000"
.align 2
.LC4:
.ascii "\012Processos\011\011Tempo de interupcao\011Tempo d"
.ascii "e espera\011Tempo de resposta\000"
.align 2
.LC5:
.ascii "\012P[%d]\011\011%d\011\011%d\011\011%d\000"
.global __aeabi_idiv
.align 2
.LC6:
.ascii "\012\012Tempo M\303\251dio de Espera:%d\000"
.align 2
.LC7:
.ascii "\012Tempo M\303\251dio de Retorno:%d\000"
.align 2
.LC8:
.word __stack_chk_guard
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 264
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #272
ldr r3, .L12
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
mov r3, #0
str r3, [fp, #-264]
mov r3, #0
str r3, [fp, #-260]
ldr r0, .L12+4
bl printf
sub r3, fp, #268
mov r1, r3
ldr r0, .L12+8
bl __isoc99_scanf
ldr r0, .L12+12
bl puts
mov r3, #0
str r3, [fp, #-256]
b .L2
.L3:
ldr r3, [fp, #-256]
add r3, r3, #1
mov r1, r3
ldr r0, .L12+16
bl printf
sub r2, fp, #248
ldr r3, [fp, #-256]
lsl r3, r3, #2
add r3, r2, r3
mov r1, r3
ldr r0, .L12+8
bl __isoc99_scanf
ldr r3, [fp, #-256]
add r3, r3, #1
str r3, [fp, #-256]
.L2:
ldr r3, [fp, #-268]
ldr r2, [fp, #-256]
cmp r2, r3
blt .L3
mov r3, #0
str r3, [fp, #-168]
mov r3, #1
str r3, [fp, #-256]
b .L4
.L7:
ldr r3, [fp, #-256]
lsl r3, r3, #2
sub r2, fp, #4
add r3, r2, r3
mov r2, #0
str r2, [r3, #-164]
mov r3, #0
str r3, [fp, #-252]
b .L5
.L6:
ldr r3, [fp, #-256]
lsl r3, r3, #2
sub r2, fp, #4
add r3, r2, r3
ldr r2, [r3, #-164]
ldr r3, [fp, #-252]
lsl r3, r3, #2
sub r1, fp, #4
add r3, r1, r3
ldr r3, [r3, #-244]
add r2, r2, r3
ldr r3, [fp, #-256]
lsl r3, r3, #2
sub r1, fp, #4
add r3, r1, r3
str r2, [r3, #-164]
ldr r3, [fp, #-252]
add r3, r3, #1
str r3, [fp, #-252]
.L5:
ldr r2, [fp, #-252]
ldr r3, [fp, #-256]
cmp r2, r3
blt .L6
ldr r3, [fp, #-256]
add r3, r3, #1
str r3, [fp, #-256]
.L4:
ldr r3, [fp, #-268]
ldr r2, [fp, #-256]
cmp r2, r3
blt .L7
ldr r0, .L12+20
bl printf
mov r3, #0
str r3, [fp, #-256]
b .L8
.L9:
ldr r3, [fp, #-256]
lsl r3, r3, #2
sub r2, fp, #4
add r3, r2, r3
ldr r2, [r3, #-244]
ldr r3, [fp, #-256]
lsl r3, r3, #2
sub r1, fp, #4
add r3, r1, r3
ldr r3, [r3, #-164]
add r2, r2, r3
ldr r3, [fp, #-256]
lsl r3, r3, #2
sub r1, fp, #4
add r3, r1, r3
str r2, [r3, #-84]
ldr r3, [fp, #-256]
lsl r3, r3, #2
sub r2, fp, #4
add r3, r2, r3
ldr r3, [r3, #-164]
ldr r2, [fp, #-264]
add r3, r2, r3
str r3, [fp, #-264]
ldr r3, [fp, #-256]
lsl r3, r3, #2
sub r2, fp, #4
add r3, r2, r3
ldr r3, [r3, #-84]
ldr r2, [fp, #-260]
add r3, r2, r3
str r3, [fp, #-260]
ldr r3, [fp, #-256]
add r1, r3, #1
ldr r3, [fp, #-256]
lsl r3, r3, #2
sub r2, fp, #4
add r3, r2, r3
ldr r2, [r3, #-244]
ldr r3, [fp, #-256]
lsl r3, r3, #2
sub r0, fp, #4
add r3, r0, r3
ldr r0, [r3, #-164]
ldr r3, [fp, #-256]
lsl r3, r3, #2
sub ip, fp, #4
add r3, ip, r3
ldr r3, [r3, #-84]
str r3, [sp]
mov r3, r0
ldr r0, .L12+24
bl printf
ldr r3, [fp, #-256]
add r3, r3, #1
str r3, [fp, #-256]
.L8:
ldr r3, [fp, #-268]
ldr r2, [fp, #-256]
cmp r2, r3
blt .L9
ldr r1, [fp, #-256]
ldr r0, [fp, #-264]
bl __aeabi_idiv
mov r3, r0
str r3, [fp, #-264]
ldr r1, [fp, #-256]
ldr r0, [fp, #-260]
bl __aeabi_idiv
mov r3, r0
str r3, [fp, #-260]
ldr r1, [fp, #-264]
ldr r0, .L12+28
bl printf
ldr r1, [fp, #-260]
ldr r0, .L12+32
bl printf
mov r3, #0
ldr r2, .L12
ldr r1, [r2]
ldr r2, [fp, #-8]
eors r1, r2, r1
mov r2, #0
beq .L11
bl __stack_chk_fail
.L11:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L13:
.align 2
.L12:
.word .LC8
.word .LC0
.word .LC1
.word .LC2
.word .LC3
.word .LC4
.word .LC5
.word .LC6
.word .LC7
.size main, .-main
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "388168.c"
.intel_syntax noprefix
.text
.globl column_metadata_helper
.type column_metadata_helper, @function
column_metadata_helper:
.LFB6:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 64
mov QWORD PTR -40[rbp], rdi
mov QWORD PTR -48[rbp], rsi
mov DWORD PTR -52[rbp], edx
mov QWORD PTR -64[rbp], rcx
mov DWORD PTR -20[rbp], 0
mov rax, QWORD PTR -64[rbp]
mov DWORD PTR [rax], 0
mov rax, QWORD PTR -64[rbp]
mov DWORD PTR 4[rax], 0
mov rax, QWORD PTR -64[rbp]
mov DWORD PTR 8[rax], 0
mov edx, DWORD PTR -52[rbp]
mov rax, QWORD PTR -48[rbp]
mov esi, edx
mov rdi, rax
call sqlite3_column_table_name@PLT
mov QWORD PTR -16[rbp], rax
mov edx, DWORD PTR -52[rbp]
mov rax, QWORD PTR -48[rbp]
mov esi, edx
mov rdi, rax
call sqlite3_column_name@PLT
mov QWORD PTR -8[rbp], rax
cmp QWORD PTR -16[rbp], 0
je .L2
cmp QWORD PTR -8[rbp], 0
je .L2
mov rax, QWORD PTR -64[rbp]
lea r8, 8[rax]
mov rax, QWORD PTR -64[rbp]
lea rdi, 4[rax]
mov rsi, QWORD PTR -64[rbp]
mov rcx, QWORD PTR -8[rbp]
mov rdx, QWORD PTR -16[rbp]
mov rax, QWORD PTR -40[rbp]
sub rsp, 8
push r8
push rdi
push rsi
mov r9d, 0
mov r8d, 0
mov esi, 0
mov rdi, rax
call sqlite3_table_column_metadata@PLT
add rsp, 32
mov DWORD PTR -20[rbp], eax
.L2:
mov eax, DWORD PTR -20[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size column_metadata_helper, .-column_metadata_helper
.globl xFunc_helper
.type xFunc_helper, @function
xFunc_helper:
.LFB7:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 32
mov QWORD PTR -8[rbp], rdi
mov DWORD PTR -12[rbp], esi
mov QWORD PTR -24[rbp], rdx
mov rax, QWORD PTR -24[rbp]
mov edx, eax
mov rax, QWORD PTR -8[rbp]
mov esi, eax
mov eax, DWORD PTR -12[rbp]
mov ecx, edx
mov edx, eax
mov edi, 1
call _call_java@PLT
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE7:
.size xFunc_helper, .-xFunc_helper
.globl xStep_helper
.type xStep_helper, @function
xStep_helper:
.LFB8:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 32
mov QWORD PTR -8[rbp], rdi
mov DWORD PTR -12[rbp], esi
mov QWORD PTR -24[rbp], rdx
mov rax, QWORD PTR -24[rbp]
mov edx, eax
mov rax, QWORD PTR -8[rbp]
mov esi, eax
mov eax, DWORD PTR -12[rbp]
mov ecx, edx
mov edx, eax
mov edi, 2
call _call_java@PLT
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE8:
.size xStep_helper, .-xStep_helper
.globl xFinal_helper
.type xFinal_helper, @function
xFinal_helper:
.LFB9:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov QWORD PTR -8[rbp], rdi
mov rax, QWORD PTR -8[rbp]
mov ecx, 0
mov edx, 0
mov esi, eax
mov edi, 3
call _call_java@PLT
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE9:
.size xFinal_helper, .-xFinal_helper
.globl create_function_helper
.type create_function_helper, @function
create_function_helper:
.LFB10:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 32
mov QWORD PTR -8[rbp], rdi
mov QWORD PTR -16[rbp], rsi
mov DWORD PTR -20[rbp], edx
mov DWORD PTR -24[rbp], ecx
cmp DWORD PTR -20[rbp], 0
js .L8
cmp DWORD PTR -24[rbp], 0
je .L8
lea rcx, xFinal_helper[rip]
jmp .L9
.L8:
mov ecx, 0
.L9:
cmp DWORD PTR -20[rbp], 0
js .L10
cmp DWORD PTR -24[rbp], 0
je .L10
lea rdx, xStep_helper[rip]
jmp .L11
.L10:
mov edx, 0
.L11:
cmp DWORD PTR -20[rbp], 0
js .L12
cmp DWORD PTR -24[rbp], 0
jne .L12
lea rdi, xFunc_helper[rip]
jmp .L13
.L12:
mov edi, 0
.L13:
mov eax, DWORD PTR -20[rbp]
cdqe
mov r8, rax
mov rsi, QWORD PTR -16[rbp]
mov rax, QWORD PTR -8[rbp]
push rcx
push rdx
mov r9, rdi
mov ecx, 5
mov edx, -1
mov rdi, rax
call sqlite3_create_function@PLT
add rsp, 16
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE10:
.size create_function_helper, .-create_function_helper
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "388168.c"
.text
.align 2
.global column_metadata_helper
.syntax unified
.arm
.fpu softvfp
.type column_metadata_helper, %function
column_metadata_helper:
@ args = 0, pretend = 0, frame = 32
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #56
str r0, [fp, #-24]
str r1, [fp, #-28]
str r2, [fp, #-32]
str r3, [fp, #-36]
mov r3, #0
str r3, [fp, #-16]
ldr r3, [fp, #-36]
mov r2, #0
str r2, [r3]
ldr r3, [fp, #-36]
mov r2, #0
str r2, [r3, #4]
ldr r3, [fp, #-36]
mov r2, #0
str r2, [r3, #8]
ldr r1, [fp, #-32]
ldr r0, [fp, #-28]
bl sqlite3_column_table_name
str r0, [fp, #-12]
ldr r1, [fp, #-32]
ldr r0, [fp, #-28]
bl sqlite3_column_name
str r0, [fp, #-8]
ldr r3, [fp, #-12]
cmp r3, #0
beq .L2
ldr r3, [fp, #-8]
cmp r3, #0
beq .L2
ldr r3, [fp, #-36]
ldr r2, [fp, #-36]
add r2, r2, #4
ldr r1, [fp, #-36]
add r1, r1, #8
str r1, [sp, #16]
str r2, [sp, #12]
str r3, [sp, #8]
mov r3, #0
str r3, [sp, #4]
mov r3, #0
str r3, [sp]
ldr r3, [fp, #-8]
ldr r2, [fp, #-12]
mov r1, #0
ldr r0, [fp, #-24]
bl sqlite3_table_column_metadata
str r0, [fp, #-16]
.L2:
ldr r3, [fp, #-16]
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.size column_metadata_helper, .-column_metadata_helper
.align 2
.global xFunc_helper
.syntax unified
.arm
.fpu softvfp
.type xFunc_helper, %function
xFunc_helper:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #16
str r0, [fp, #-8]
str r1, [fp, #-12]
str r2, [fp, #-16]
ldr r1, [fp, #-8]
ldr r3, [fp, #-16]
ldr r2, [fp, #-12]
mov r0, #1
bl _call_java
nop
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.size xFunc_helper, .-xFunc_helper
.align 2
.global xStep_helper
.syntax unified
.arm
.fpu softvfp
.type xStep_helper, %function
xStep_helper:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #16
str r0, [fp, #-8]
str r1, [fp, #-12]
str r2, [fp, #-16]
ldr r1, [fp, #-8]
ldr r3, [fp, #-16]
ldr r2, [fp, #-12]
mov r0, #2
bl _call_java
nop
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.size xStep_helper, .-xStep_helper
.align 2
.global xFinal_helper
.syntax unified
.arm
.fpu softvfp
.type xFinal_helper, %function
xFinal_helper:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #8
str r0, [fp, #-8]
ldr r1, [fp, #-8]
mov r3, #0
mov r2, #0
mov r0, #3
bl _call_java
nop
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.size xFinal_helper, .-xFinal_helper
.align 2
.global create_function_helper
.syntax unified
.arm
.fpu softvfp
.type create_function_helper, %function
create_function_helper:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #32
str r0, [fp, #-8]
str r1, [fp, #-12]
str r2, [fp, #-16]
str r3, [fp, #-20]
ldr r3, [fp, #-16]
ldr r2, [fp, #-16]
cmp r2, #0
blt .L8
ldr r2, [fp, #-20]
cmp r2, #0
bne .L8
ldr r2, .L15
b .L9
.L8:
mov r2, #0
.L9:
ldr r1, [fp, #-16]
cmp r1, #0
blt .L10
ldr r1, [fp, #-20]
cmp r1, #0
beq .L10
ldr r1, .L15+4
b .L11
.L10:
mov r1, #0
.L11:
ldr r0, [fp, #-16]
cmp r0, #0
blt .L12
ldr r0, [fp, #-20]
cmp r0, #0
beq .L12
ldr r0, .L15+8
b .L13
.L12:
mov r0, #0
.L13:
str r0, [sp, #12]
str r1, [sp, #8]
str r2, [sp, #4]
str r3, [sp]
mov r3, #5
mvn r2, #0
ldr r1, [fp, #-12]
ldr r0, [fp, #-8]
bl sqlite3_create_function
mov r3, r0
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L16:
.align 2
.L15:
.word xFunc_helper
.word xStep_helper
.word xFinal_helper
.size create_function_helper, .-create_function_helper
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "397024.c"
.intel_syntax noprefix
.text
.globl ft_strcpy
.type ft_strcpy, @function
ft_strcpy:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov QWORD PTR -24[rbp], rdi
mov QWORD PTR -32[rbp], rsi
mov DWORD PTR -4[rbp], 0
jmp .L2
.L3:
mov eax, DWORD PTR -4[rbp]
movsx rdx, eax
mov rax, QWORD PTR -32[rbp]
add rax, rdx
mov edx, DWORD PTR -4[rbp]
movsx rcx, edx
mov rdx, QWORD PTR -24[rbp]
add rdx, rcx
movzx eax, BYTE PTR [rax]
mov BYTE PTR [rdx], al
add DWORD PTR -4[rbp], 1
.L2:
mov eax, DWORD PTR -4[rbp]
movsx rdx, eax
mov rax, QWORD PTR -32[rbp]
add rax, rdx
movzx eax, BYTE PTR [rax]
test al, al
jne .L3
mov eax, DWORD PTR -4[rbp]
movsx rdx, eax
mov rax, QWORD PTR -32[rbp]
add rax, rdx
mov edx, DWORD PTR -4[rbp]
movsx rcx, edx
mov rdx, QWORD PTR -24[rbp]
add rdx, rcx
movzx eax, BYTE PTR [rax]
mov BYTE PTR [rdx], al
mov rax, QWORD PTR -24[rbp]
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ft_strcpy, .-ft_strcpy
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "397024.c"
.text
.align 2
.global ft_strcpy
.syntax unified
.arm
.fpu softvfp
.type ft_strcpy, %function
ft_strcpy:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #20
str r0, [fp, #-16]
str r1, [fp, #-20]
mov r3, #0
str r3, [fp, #-8]
b .L2
.L3:
ldr r3, [fp, #-8]
ldr r2, [fp, #-20]
add r2, r2, r3
ldr r3, [fp, #-8]
ldr r1, [fp, #-16]
add r3, r1, r3
ldrb r2, [r2] @ zero_extendqisi2
strb r2, [r3]
ldr r3, [fp, #-8]
add r3, r3, #1
str r3, [fp, #-8]
.L2:
ldr r3, [fp, #-8]
ldr r2, [fp, #-20]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
bne .L3
ldr r3, [fp, #-8]
ldr r2, [fp, #-20]
add r2, r2, r3
ldr r3, [fp, #-8]
ldr r1, [fp, #-16]
add r3, r1, r3
ldrb r2, [r2] @ zero_extendqisi2
strb r2, [r3]
ldr r3, [fp, #-16]
mov r0, r3
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size ft_strcpy, .-ft_strcpy
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "758984.c"
.intel_syntax noprefix
.text
.globl http_test
.type http_test, @function
http_test:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
call http_cookie_test@PLT
call http_request_test@PLT
call http_header_host_test@PLT
call http_header_expires_test@PLT
call http_header_content_type_test@PLT
call http_header_range_test@PLT
call http_parser_test@PLT
call http_client_test3@PLT
call http_client_test@PLT
call http_client_test2@PLT
call http_client_test3@PLT
nop
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size http_test, .-http_test
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "758984.c"
.text
.align 2
.global http_test
.syntax unified
.arm
.fpu softvfp
.type http_test, %function
http_test:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
bl http_cookie_test
bl http_request_test
bl http_header_host_test
bl http_header_expires_test
bl http_header_content_type_test
bl http_header_range_test
bl http_parser_test
bl http_client_test3
bl http_client_test
bl http_client_test2
bl http_client_test3
nop
pop {fp, pc}
.size http_test, .-http_test
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "478269.c"
.intel_syntax noprefix
.text
.globl incr_u64_ptr_byte
.type incr_u64_ptr_byte, @function
incr_u64_ptr_byte:
.LFB6:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov QWORD PTR -24[rbp], rdi
mov rax, QWORD PTR -24[rbp]
mov QWORD PTR -8[rbp], rax
mov rax, QWORD PTR -8[rbp]
movzx eax, BYTE PTR [rax]
lea edx, 1[rax]
mov rax, QWORD PTR -8[rbp]
mov BYTE PTR [rax], dl
nop
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size incr_u64_ptr_byte, .-incr_u64_ptr_byte
.globl alloc_padded_struct
.type alloc_padded_struct, @function
alloc_padded_struct:
.LFB7:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov edi, 32
call malloc@PLT
mov QWORD PTR -8[rbp], rax
mov rax, QWORD PTR -8[rbp]
mov QWORD PTR [rax], 0
mov rax, QWORD PTR -8[rbp]
mov BYTE PTR 8[rax], 0
mov rax, QWORD PTR -8[rbp]
mov QWORD PTR 16[rax], 0
mov rax, QWORD PTR -8[rbp]
mov BYTE PTR 24[rax], 0
mov rax, QWORD PTR -8[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE7:
.size alloc_padded_struct, .-alloc_padded_struct
.globl padded_struct_incr_all
.type padded_struct_incr_all, @function
padded_struct_incr_all:
.LFB8:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov QWORD PTR -8[rbp], rdi
mov rax, QWORD PTR -8[rbp]
mov rax, QWORD PTR [rax]
lea rdx, 1[rax]
mov rax, QWORD PTR -8[rbp]
mov QWORD PTR [rax], rdx
mov rax, QWORD PTR -8[rbp]
movzx eax, BYTE PTR 8[rax]
lea edx, 1[rax]
mov rax, QWORD PTR -8[rbp]
mov BYTE PTR 8[rax], dl
mov rax, QWORD PTR -8[rbp]
mov rax, QWORD PTR 16[rax]
lea rdx, 1[rax]
mov rax, QWORD PTR -8[rbp]
mov QWORD PTR 16[rax], rdx
mov rax, QWORD PTR -8[rbp]
movzx eax, BYTE PTR 24[rax]
lea edx, 1[rax]
mov rax, QWORD PTR -8[rbp]
mov BYTE PTR 24[rax], dl
nop
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE8:
.size padded_struct_incr_all, .-padded_struct_incr_all
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "478269.c"
.text
.align 2
.global incr_u64_ptr_byte
.syntax unified
.arm
.fpu softvfp
.type incr_u64_ptr_byte, %function
incr_u64_ptr_byte:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #20
str r0, [fp, #-16]
ldr r3, [fp, #-16]
str r3, [fp, #-8]
ldr r3, [fp, #-8]
ldrb r3, [r3] @ zero_extendqisi2
add r3, r3, #1
and r2, r3, #255
ldr r3, [fp, #-8]
strb r2, [r3]
nop
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size incr_u64_ptr_byte, .-incr_u64_ptr_byte
.align 2
.global alloc_padded_struct
.syntax unified
.arm
.fpu softvfp
.type alloc_padded_struct, %function
alloc_padded_struct:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #8
mov r0, #32
bl malloc
mov r3, r0
str r3, [fp, #-8]
ldr r1, [fp, #-8]
mov r2, #0
mov r3, #0
stm r1, {r2-r3}
ldr r3, [fp, #-8]
mov r2, #0
strb r2, [r3, #8]
ldr r1, [fp, #-8]
mov r2, #0
mov r3, #0
str r2, [r1, #16]
str r3, [r1, #20]
ldr r3, [fp, #-8]
mov r2, #0
strb r2, [r3, #24]
ldr r3, [fp, #-8]
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.size alloc_padded_struct, .-alloc_padded_struct
.align 2
.global padded_struct_incr_all
.syntax unified
.arm
.fpu softvfp
.type padded_struct_incr_all, %function
padded_struct_incr_all:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
push {r4, r5, r6, r7, fp}
add fp, sp, #16
sub sp, sp, #12
str r0, [fp, #-24]
ldr r3, [fp, #-24]
ldmia r3, {r2-r3}
adds r6, r2, #1
adc r7, r3, #0
ldr r3, [fp, #-24]
stm r3, {r6-r7}
ldr r3, [fp, #-24]
ldrb r3, [r3, #8] @ zero_extendqisi2
add r3, r3, #1
and r2, r3, #255
ldr r3, [fp, #-24]
strb r2, [r3, #8]
ldr r3, [fp, #-24]
add r3, r3, #16
ldmia r3, {r2-r3}
adds r4, r2, #1
adc r5, r3, #0
ldr r3, [fp, #-24]
str r4, [r3, #16]
str r5, [r3, #20]
ldr r3, [fp, #-24]
ldrb r3, [r3, #24] @ zero_extendqisi2
add r3, r3, #1
and r2, r3, #255
ldr r3, [fp, #-24]
strb r2, [r3, #24]
nop
sub sp, fp, #16
@ sp needed
pop {r4, r5, r6, r7, fp}
bx lr
.size padded_struct_incr_all, .-padded_struct_incr_all
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "270689.c"
.intel_syntax noprefix
.text
.section .rodata
.LC0:
.string "r"
.LC1:
.string "snacks.csv"
.LC2:
.string "input.txt"
.align 8
.LC3:
.string "Error: unable to open file %s\n"
.LC5:
.string ","
.LC6:
.string "Read data: %s $%.2f\n"
.text
.globl main
.type main, @function
main:
.LFB6:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 1584
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
mov QWORD PTR -1568[rbp], 0
lea rsi, .LC0[rip]
lea rdi, .LC1[rip]
call fopen@PLT
mov QWORD PTR -1568[rbp], rax
cmp QWORD PTR -1568[rbp], 0
jne .L3
lea rsi, .LC2[rip]
lea rdi, .LC3[rip]
mov eax, 0
call printf@PLT
mov edi, 1
call exit@PLT
.L6:
pxor xmm0, xmm0
movss DWORD PTR -1572[rbp], xmm0
lea rax, -1040[rbp]
lea rsi, .LC5[rip]
mov rdi, rax
call strtok@PLT
mov QWORD PTR -1560[rbp], rax
cmp QWORD PTR -1560[rbp], 0
je .L4
mov rdx, QWORD PTR -1560[rbp]
lea rax, -1552[rbp]
mov rsi, rdx
mov rdi, rax
call strcpy@PLT
.L4:
lea rsi, .LC5[rip]
mov edi, 0
call strtok@PLT
mov QWORD PTR -1560[rbp], rax
cmp QWORD PTR -1560[rbp], 0
je .L5
mov rax, QWORD PTR -1560[rbp]
mov rdi, rax
call atof@PLT
cvtsd2ss xmm0, xmm0
movss DWORD PTR -1572[rbp], xmm0
.L5:
pxor xmm1, xmm1
cvtss2sd xmm1, DWORD PTR -1572[rbp]
movq rdx, xmm1
lea rax, -1552[rbp]
movq xmm0, rdx
mov rsi, rax
lea rdi, .LC6[rip]
mov eax, 1
call printf@PLT
.L3:
mov rdx, QWORD PTR -1568[rbp]
lea rax, -1040[rbp]
mov esi, 1024
mov rdi, rax
call fgets@PLT
test rax, rax
jne .L6
mov rax, QWORD PTR -1568[rbp]
mov rdi, rax
call fclose@PLT
mov eax, 0
mov rcx, QWORD PTR -8[rbp]
sub rcx, QWORD PTR fs:40
je .L8
call __stack_chk_fail@PLT
.L8:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size main, .-main
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "270689.c"
.text
.section .rodata
.align 2
.LC0:
.ascii "r\000"
.align 2
.LC1:
.ascii "snacks.csv\000"
.align 2
.LC2:
.ascii "input.txt\000"
.align 2
.LC3:
.ascii "Error: unable to open file %s\012\000"
.align 2
.LC4:
.ascii ",\000"
.global __aeabi_d2f
.global __aeabi_f2d
.align 2
.LC5:
.ascii "Read data: %s $%.2f\012\000"
.align 2
.LC6:
.word __stack_chk_guard
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 1552
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #1552
ldr r3, .L9
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
mov r3, #0
str r3, [fp, #-1552]
ldr r1, .L9+4
ldr r0, .L9+8
bl fopen
str r0, [fp, #-1552]
ldr r3, [fp, #-1552]
cmp r3, #0
bne .L3
ldr r1, .L9+12
ldr r0, .L9+16
bl printf
mov r0, #1
bl exit
.L6:
mov r3, #0
str r3, [fp, #-1556] @ float
sub r3, fp, #1024
sub r3, r3, #4
sub r3, r3, #4
ldr r1, .L9+20
mov r0, r3
bl strtok
str r0, [fp, #-1548]
ldr r3, [fp, #-1548]
cmp r3, #0
beq .L4
sub r3, fp, #1536
sub r3, r3, #4
sub r3, r3, #4
ldr r1, [fp, #-1548]
mov r0, r3
bl strcpy
.L4:
ldr r1, .L9+20
mov r0, #0
bl strtok
str r0, [fp, #-1548]
ldr r3, [fp, #-1548]
cmp r3, #0
beq .L5
ldr r0, [fp, #-1548]
bl atof
mov r2, r0
mov r3, r1
mov r0, r2
mov r1, r3
bl __aeabi_d2f
mov r3, r0
str r3, [fp, #-1556] @ float
.L5:
ldr r0, [fp, #-1556] @ float
bl __aeabi_f2d
mov r2, r0
mov r3, r1
sub r1, fp, #1536
sub r1, r1, #4
sub r1, r1, #4
ldr r0, .L9+24
bl printf
.L3:
sub r3, fp, #1024
sub r3, r3, #4
sub r3, r3, #4
ldr r2, [fp, #-1552]
mov r1, #1024
mov r0, r3
bl fgets
mov r3, r0
cmp r3, #0
bne .L6
ldr r0, [fp, #-1552]
bl fclose
mov r3, #0
ldr r2, .L9
ldr r1, [r2]
ldr r2, [fp, #-8]
eors r1, r2, r1
mov r2, #0
beq .L8
bl __stack_chk_fail
.L8:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L10:
.align 2
.L9:
.word .LC6
.word .LC0
.word .LC1
.word .LC2
.word .LC3
.word .LC4
.word .LC5
.size main, .-main
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "31470.c"
.intel_syntax noprefix
.text
.section .rodata
.align 8
.LC0:
.string "Cannot get handle to own object"
.LC1:
.string "main"
.LC2:
.string "called dlsym() to get main"
.text
.globl constr
.type constr, @function
constr:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov esi, 2
mov edi, 0
call dlopen@PLT
mov QWORD PTR -16[rbp], rax
cmp QWORD PTR -16[rbp], 0
jne .L2
lea rdi, .LC0[rip]
call puts@PLT
jmp .L1
.L2:
mov rax, QWORD PTR -16[rbp]
lea rsi, .LC1[rip]
mov rdi, rax
call dlsym@PLT
mov QWORD PTR -8[rbp], rax
lea rdi, .LC2[rip]
call puts@PLT
mov rax, QWORD PTR -16[rbp]
mov rdi, rax
call dlclose@PLT
.L1:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size constr, .-constr
.section .init_array,"aw"
.align 8
.quad constr
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "31470.c"
.text
.section .rodata
.align 2
.LC0:
.ascii "Cannot get handle to own object\000"
.align 2
.LC1:
.ascii "main\000"
.align 2
.LC2:
.ascii "called dlsym() to get main\000"
.text
.align 2
.global constr
.syntax unified
.arm
.fpu softvfp
.type constr, %function
constr:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #8
mov r1, #2
mov r0, #0
bl dlopen
str r0, [fp, #-12]
ldr r3, [fp, #-12]
cmp r3, #0
bne .L2
ldr r0, .L4
bl puts
b .L1
.L2:
ldr r1, .L4+4
ldr r0, [fp, #-12]
bl dlsym
str r0, [fp, #-8]
ldr r0, .L4+8
bl puts
ldr r0, [fp, #-12]
bl dlclose
.L1:
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L5:
.align 2
.L4:
.word .LC0
.word .LC1
.word .LC2
.size constr, .-constr
.section .init_array,"aw",%init_array
.align 2
.word constr(target1)
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "580588.c"
.intel_syntax noprefix
.text
.globl foo
.type foo, @function
foo:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
fld TBYTE PTR 16[rbp]
fmul st, st(0)
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size foo, .-foo
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "580588.c"
.text
.global __aeabi_dmul
.align 2
.global foo
.syntax unified
.arm
.fpu softvfp
.type foo, %function
foo:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #8
str r0, [fp, #-12]
str r1, [fp, #-8]
sub r3, fp, #12
ldmia r3, {r2-r3}
sub r1, fp, #12
ldmia r1, {r0-r1}
bl __aeabi_dmul
mov r2, r0
mov r3, r1
mov r0, r2
mov r1, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.size foo, .-foo
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "687923.c"
.intel_syntax noprefix
.text
.section .rodata
.align 8
.LC0:
.string "O resultado da combinacao dos seguintes"
.align 8
.LC1:
.string "usando o operador AND sobre bits & e"
.align 8
.LC2:
.string "\nO resultado da combinacao dos seguintes"
.align 8
.LC3:
.string "usando o operador OR inclusivo sobre bits e"
.align 8
.LC4:
.string "usando o operador OR exclusivo sobre bits e"
.LC5:
.string "\nO complemento de um"
.LC6:
.string "e"
.text
.globl main
.type main, @function
main:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov DWORD PTR -16[rbp], 65535
mov DWORD PTR -12[rbp], 1
lea rdi, .LC0[rip]
call puts@PLT
mov eax, DWORD PTR -16[rbp]
mov edi, eax
call displayBits
mov eax, DWORD PTR -12[rbp]
mov edi, eax
call displayBits
lea rdi, .LC1[rip]
call puts@PLT
mov eax, DWORD PTR -16[rbp]
and eax, DWORD PTR -12[rbp]
mov edi, eax
call displayBits
mov DWORD PTR -16[rbp], 15
mov DWORD PTR -8[rbp], 241
lea rdi, .LC2[rip]
call puts@PLT
mov eax, DWORD PTR -16[rbp]
mov edi, eax
call displayBits
mov eax, DWORD PTR -8[rbp]
mov edi, eax
call displayBits
lea rdi, .LC3[rip]
call puts@PLT
mov eax, DWORD PTR -16[rbp]
or eax, DWORD PTR -8[rbp]
mov edi, eax
call displayBits
mov DWORD PTR -16[rbp], 139
mov DWORD PTR -4[rbp], 199
lea rdi, .LC2[rip]
call puts@PLT
mov eax, DWORD PTR -16[rbp]
mov edi, eax
call displayBits
mov eax, DWORD PTR -4[rbp]
mov edi, eax
call displayBits
lea rdi, .LC4[rip]
call puts@PLT
mov eax, DWORD PTR -16[rbp]
xor eax, DWORD PTR -4[rbp]
mov edi, eax
call displayBits
mov DWORD PTR -16[rbp], 7
lea rdi, .LC5[rip]
call puts@PLT
mov eax, DWORD PTR -16[rbp]
mov edi, eax
call displayBits
lea rdi, .LC6[rip]
call puts@PLT
mov eax, DWORD PTR -16[rbp]
not eax
mov edi, eax
call displayBits
mov eax, 0
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size main, .-main
.section .rodata
.LC7:
.string "%10u"
.text
.globl displayBits
.type displayBits, @function
displayBits:
.LFB1:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 32
mov DWORD PTR -20[rbp], edi
mov DWORD PTR -4[rbp], -2147483648
mov eax, DWORD PTR -20[rbp]
mov esi, eax
lea rdi, .LC7[rip]
mov eax, 0
call printf@PLT
mov DWORD PTR -8[rbp], 1
jmp .L4
.L8:
mov eax, DWORD PTR -20[rbp]
and eax, DWORD PTR -4[rbp]
test eax, eax
je .L5
mov eax, 49
jmp .L6
.L5:
mov eax, 48
.L6:
mov edi, eax
call putchar@PLT
sal DWORD PTR -20[rbp]
mov eax, DWORD PTR -8[rbp]
and eax, 7
test eax, eax
jne .L7
mov edi, 32
call putchar@PLT
.L7:
add DWORD PTR -8[rbp], 1
.L4:
cmp DWORD PTR -8[rbp], 32
jbe .L8
nop
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE1:
.size displayBits, .-displayBits
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "687923.c"
.text
.section .rodata
.align 2
.LC0:
.ascii "O resultado da combinacao dos seguintes\000"
.align 2
.LC1:
.ascii "usando o operador AND sobre bits & e\000"
.align 2
.LC2:
.ascii "\012O resultado da combinacao dos seguintes\000"
.align 2
.LC3:
.ascii "usando o operador OR inclusivo sobre bits e\000"
.align 2
.LC4:
.ascii "usando o operador OR exclusivo sobre bits e\000"
.align 2
.LC5:
.ascii "\012O complemento de um\000"
.align 2
.LC6:
.ascii "e\000"
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #16
ldr r3, .L3
str r3, [fp, #-20]
mov r3, #1
str r3, [fp, #-16]
ldr r0, .L3+4
bl puts
ldr r0, [fp, #-20]
bl displayBits
ldr r0, [fp, #-16]
bl displayBits
ldr r0, .L3+8
bl puts
ldr r2, [fp, #-20]
ldr r3, [fp, #-16]
and r3, r3, r2
mov r0, r3
bl displayBits
mov r3, #15
str r3, [fp, #-20]
mov r3, #241
str r3, [fp, #-12]
ldr r0, .L3+12
bl puts
ldr r0, [fp, #-20]
bl displayBits
ldr r0, [fp, #-12]
bl displayBits
ldr r0, .L3+16
bl puts
ldr r2, [fp, #-20]
ldr r3, [fp, #-12]
orr r3, r2, r3
mov r0, r3
bl displayBits
mov r3, #139
str r3, [fp, #-20]
mov r3, #199
str r3, [fp, #-8]
ldr r0, .L3+12
bl puts
ldr r0, [fp, #-20]
bl displayBits
ldr r0, [fp, #-8]
bl displayBits
ldr r0, .L3+20
bl puts
ldr r2, [fp, #-20]
ldr r3, [fp, #-8]
eor r3, r3, r2
mov r0, r3
bl displayBits
mov r3, #7
str r3, [fp, #-20]
ldr r0, .L3+24
bl puts
ldr r0, [fp, #-20]
bl displayBits
ldr r0, .L3+28
bl puts
ldr r3, [fp, #-20]
mvn r3, r3
mov r0, r3
bl displayBits
mov r3, #0
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L4:
.align 2
.L3:
.word 65535
.word .LC0
.word .LC1
.word .LC2
.word .LC3
.word .LC4
.word .LC5
.word .LC6
.size main, .-main
.section .rodata
.align 2
.LC7:
.ascii "%10u\000"
.text
.align 2
.global displayBits
.syntax unified
.arm
.fpu softvfp
.type displayBits, %function
displayBits:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #16
str r0, [fp, #-16]
mov r3, #-2147483648
str r3, [fp, #-8]
ldr r1, [fp, #-16]
ldr r0, .L11
bl printf
mov r3, #1
str r3, [fp, #-12]
b .L6
.L10:
ldr r2, [fp, #-16]
ldr r3, [fp, #-8]
and r3, r3, r2
cmp r3, #0
beq .L7
mov r3, #49
b .L8
.L7:
mov r3, #48
.L8:
mov r0, r3
bl putchar
ldr r3, [fp, #-16]
lsl r3, r3, #1
str r3, [fp, #-16]
ldr r3, [fp, #-12]
and r3, r3, #7
cmp r3, #0
bne .L9
mov r0, #32
bl putchar
.L9:
ldr r3, [fp, #-12]
add r3, r3, #1
str r3, [fp, #-12]
.L6:
ldr r3, [fp, #-12]
cmp r3, #32
bls .L10
nop
nop
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L12:
.align 2
.L11:
.word .LC7
.size displayBits, .-displayBits
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "628161.c"
.intel_syntax noprefix
.text
.section .rodata
.align 32
.type _1x1, @object
.size _1x1, 108
_1x1:
.long 327
.long 328
.long 248
.long 335
.long 343
.long 345
.long 346
.long 273
.long 274
.long 291
.long 292
.long 293
.long 367
.long 368
.long 294
.long 295
.long 296
.long 377
.long 674
.long 675
.long 676
.long 677
.long 678
.long 679
.long 680
.long 681
.long 682
.align 4
.type _1x2, @object
.size _1x2, 4
_1x2:
.long -1
.align 4
.type _1x3, @object
.size _1x3, 4
_1x3:
.long -1
.align 4
.type _1x4, @object
.size _1x4, 4
_1x4:
.long -1
.align 4
.type _1x5, @object
.size _1x5, 4
_1x5:
.long -1
.align 4
.type _1x6, @object
.size _1x6, 4
_1x6:
.long -1
.align 32
.type _2x1, @object
.size _2x1, 72
_2x1:
.long 333
.long 334
.long 340
.long 341
.long 342
.long 344
.long 350
.long 351
.long 364
.long 365
.long 366
.long 376
.long 665
.long 666
.long 667
.long 668
.long 672
.long 673
.align 4
.type _2x2, @object
.size _2x2, 4
_2x2:
.long 332
.align 4
.type _2x3, @object
.size _2x3, 4
_2x3:
.long -1
.align 4
.type _2x4, @object
.size _2x4, 4
_2x4:
.long -1
.align 4
.type _2x5, @object
.size _2x5, 4
_2x5:
.long -1
.align 4
.type _2x6, @object
.size _2x6, 4
_2x6:
.long -1
.align 32
.type _3x1, @object
.size _3x1, 32
_3x1:
.long 336
.long 337
.long 338
.long 339
.long 349
.long 375
.long 663
.long 664
.align 32
.type _3x2, @object
.size _3x2, 80
_3x2:
.long 329
.long 237
.long 238
.long 239
.long 354
.long 355
.long 356
.long 359
.long 360
.long 361
.long 362
.long 363
.long 275
.long 276
.long 277
.long 278
.long 369
.long 370
.long 371
.long 372
.align 16
.type _3x3, @object
.size _3x3, 28
_3x3:
.long 240
.long 241
.long 331
.long 279
.long 280
.long 373
.long 374
.align 4
.type _3x4, @object
.size _3x4, 4
_3x4:
.long -1
.align 4
.type _3x5, @object
.size _3x5, 4
_3x5:
.long -1
.align 4
.type _3x6, @object
.size _3x6, 4
_3x6:
.long -1
.align 4
.type _4x1, @object
.size _4x1, 4
_4x1:
.long -1
.align 8
.type _4x2, @object
.size _4x2, 8
_4x2:
.long 330
.long 348
.align 4
.type _4x3, @object
.size _4x3, 4
_4x3:
.long -1
.align 4
.type _4x4, @object
.size _4x4, 4
_4x4:
.long -1
.align 4
.type _4x5, @object
.size _4x5, 4
_4x5:
.long -1
.align 4
.type _4x6, @object
.size _4x6, 4
_4x6:
.long -1
.align 4
.type _5x1, @object
.size _5x1, 4
_5x1:
.long -1
.align 4
.type _5x2, @object
.size _5x2, 4
_5x2:
.long -1
.align 16
.type _5x3, @object
.size _5x3, 20
_5x3:
.long 347
.long 352
.long 353
.long 357
.long 358
.align 4
.type _5x4, @object
.size _5x4, 4
_5x4:
.long -1
.align 4
.type _5x5, @object
.size _5x5, 4
_5x5:
.long -1
.align 4
.type _5x6, @object
.size _5x6, 4
_5x6:
.long -1
.align 4
.type _6x1, @object
.size _6x1, 4
_6x1:
.long -1
.align 4
.type _6x2, @object
.size _6x2, 4
_6x2:
.long -1
.align 4
.type _6x3, @object
.size _6x3, 4
_6x3:
.long -1
.align 4
.type _6x4, @object
.size _6x4, 4
_6x4:
.long -1
.align 4
.type _6x5, @object
.size _6x5, 4
_6x5:
.long -1
.align 4
.type _6x6, @object
.size _6x6, 4
_6x6:
.long -1
.align 4
.type _7x1, @object
.size _7x1, 4
_7x1:
.long -1
.align 4
.type _7x2, @object
.size _7x2, 4
_7x2:
.long -1
.align 4
.type _7x3, @object
.size _7x3, 4
_7x3:
.long -1
.align 4
.type _7x4, @object
.size _7x4, 4
_7x4:
.long -1
.align 4
.type _7x5, @object
.size _7x5, 4
_7x5:
.long -1
.align 4
.type _7x6, @object
.size _7x6, 4
_7x6:
.long -1
.align 4
.type _8x1, @object
.size _8x1, 4
_8x1:
.long -1
.align 4
.type _8x2, @object
.size _8x2, 4
_8x2:
.long -1
.align 4
.type _8x3, @object
.size _8x3, 4
_8x3:
.long -1
.align 4
.type _8x4, @object
.size _8x4, 4
_8x4:
.long -1
.align 4
.type _8x5, @object
.size _8x5, 4
_8x5:
.long -1
.align 4
.type _8x6, @object
.size _8x6, 4
_8x6:
.long -1
.align 32
.type table_sizes, @object
.size table_sizes, 192
table_sizes:
.long 27
.long 18
.long 8
.long -1
.long -1
.long -1
.long -1
.long -1
.long -1
.long 1
.long 20
.long 2
.long -1
.long -1
.long -1
.long -1
.long -1
.long -1
.long 7
.long -1
.long 5
.long -1
.long -1
.long -1
.long -1
.long -1
.long -1
.long -1
.long -1
.long -1
.long -1
.long -1
.long -1
.long -1
.long -1
.long -1
.long -1
.long -1
.long -1
.long -1
.long -1
.long -1
.long -1
.long -1
.long -1
.long -1
.long -1
.long -1
.section .data.rel.local,"aw"
.align 32
.type table, @object
.size table, 384
table:
.quad _1x1
.quad _2x1
.quad _3x1
.quad _4x1
.quad _5x1
.quad _6x1
.quad _7x1
.quad _8x1
.quad _1x2
.quad _2x2
.quad _3x2
.quad _4x2
.quad _5x2
.quad _6x2
.quad _7x2
.quad _8x2
.quad _1x3
.quad _2x3
.quad _3x3
.quad _4x3
.quad _5x3
.quad _6x3
.quad _7x3
.quad _8x3
.quad _1x4
.quad _2x4
.quad _3x4
.quad _4x4
.quad _5x4
.quad _6x4
.quad _7x4
.quad _8x4
.quad _1x5
.quad _2x5
.quad _3x5
.quad _4x5
.quad _5x5
.quad _6x5
.quad _7x5
.quad _8x5
.quad _1x6
.quad _2x6
.quad _3x6
.quad _4x6
.quad _5x6
.quad _6x6
.quad _7x6
.quad _8x6
.text
.globl rand_impassable_GRASS
.type rand_impassable_GRASS, @function
rand_impassable_GRASS:
.LFB6:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
push rbx
sub rsp, 40
.cfi_offset 3, -24
mov DWORD PTR -36[rbp], edi
mov DWORD PTR -40[rbp], esi
mov eax, DWORD PTR -40[rbp]
lea edx, -1[rax]
mov eax, DWORD PTR -36[rbp]
sub eax, 1
movsx rcx, eax
movsx rax, edx
sal rax, 3
add rax, rcx
lea rdx, 0[0+rax*4]
lea rax, table_sizes[rip]
mov eax, DWORD PTR [rdx+rax]
mov DWORD PTR -20[rbp], eax
cmp DWORD PTR -20[rbp], -1
je .L2
mov eax, DWORD PTR -40[rbp]
lea edx, -1[rax]
mov eax, DWORD PTR -36[rbp]
sub eax, 1
movsx rcx, eax
movsx rax, edx
sal rax, 3
add rax, rcx
lea rdx, 0[0+rax*8]
lea rax, table[rip]
mov rbx, QWORD PTR [rdx+rax]
call rand@PLT
add eax, 1
cdq
idiv DWORD PTR -20[rbp]
mov eax, edx
cdqe
sal rax, 2
add rax, rbx
mov eax, DWORD PTR [rax]
jmp .L4
.L2:
mov eax, -1
.L4:
mov rbx, QWORD PTR -8[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size rand_impassable_GRASS, .-rand_impassable_GRASS
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "628161.c"
.text
.section .rodata
.align 2
.type _1x1, %object
.size _1x1, 108
_1x1:
.word 327
.word 328
.word 248
.word 335
.word 343
.word 345
.word 346
.word 273
.word 274
.word 291
.word 292
.word 293
.word 367
.word 368
.word 294
.word 295
.word 296
.word 377
.word 674
.word 675
.word 676
.word 677
.word 678
.word 679
.word 680
.word 681
.word 682
.align 2
.type _1x2, %object
.size _1x2, 4
_1x2:
.word -1
.align 2
.type _1x3, %object
.size _1x3, 4
_1x3:
.word -1
.align 2
.type _1x4, %object
.size _1x4, 4
_1x4:
.word -1
.align 2
.type _1x5, %object
.size _1x5, 4
_1x5:
.word -1
.align 2
.type _1x6, %object
.size _1x6, 4
_1x6:
.word -1
.align 2
.type _2x1, %object
.size _2x1, 72
_2x1:
.word 333
.word 334
.word 340
.word 341
.word 342
.word 344
.word 350
.word 351
.word 364
.word 365
.word 366
.word 376
.word 665
.word 666
.word 667
.word 668
.word 672
.word 673
.align 2
.type _2x2, %object
.size _2x2, 4
_2x2:
.word 332
.align 2
.type _2x3, %object
.size _2x3, 4
_2x3:
.word -1
.align 2
.type _2x4, %object
.size _2x4, 4
_2x4:
.word -1
.align 2
.type _2x5, %object
.size _2x5, 4
_2x5:
.word -1
.align 2
.type _2x6, %object
.size _2x6, 4
_2x6:
.word -1
.align 2
.type _3x1, %object
.size _3x1, 32
_3x1:
.word 336
.word 337
.word 338
.word 339
.word 349
.word 375
.word 663
.word 664
.align 2
.type _3x2, %object
.size _3x2, 80
_3x2:
.word 329
.word 237
.word 238
.word 239
.word 354
.word 355
.word 356
.word 359
.word 360
.word 361
.word 362
.word 363
.word 275
.word 276
.word 277
.word 278
.word 369
.word 370
.word 371
.word 372
.align 2
.type _3x3, %object
.size _3x3, 28
_3x3:
.word 240
.word 241
.word 331
.word 279
.word 280
.word 373
.word 374
.align 2
.type _3x4, %object
.size _3x4, 4
_3x4:
.word -1
.align 2
.type _3x5, %object
.size _3x5, 4
_3x5:
.word -1
.align 2
.type _3x6, %object
.size _3x6, 4
_3x6:
.word -1
.align 2
.type _4x1, %object
.size _4x1, 4
_4x1:
.word -1
.align 2
.type _4x2, %object
.size _4x2, 8
_4x2:
.word 330
.word 348
.align 2
.type _4x3, %object
.size _4x3, 4
_4x3:
.word -1
.align 2
.type _4x4, %object
.size _4x4, 4
_4x4:
.word -1
.align 2
.type _4x5, %object
.size _4x5, 4
_4x5:
.word -1
.align 2
.type _4x6, %object
.size _4x6, 4
_4x6:
.word -1
.align 2
.type _5x1, %object
.size _5x1, 4
_5x1:
.word -1
.align 2
.type _5x2, %object
.size _5x2, 4
_5x2:
.word -1
.align 2
.type _5x3, %object
.size _5x3, 20
_5x3:
.word 347
.word 352
.word 353
.word 357
.word 358
.align 2
.type _5x4, %object
.size _5x4, 4
_5x4:
.word -1
.align 2
.type _5x5, %object
.size _5x5, 4
_5x5:
.word -1
.align 2
.type _5x6, %object
.size _5x6, 4
_5x6:
.word -1
.align 2
.type _6x1, %object
.size _6x1, 4
_6x1:
.word -1
.align 2
.type _6x2, %object
.size _6x2, 4
_6x2:
.word -1
.align 2
.type _6x3, %object
.size _6x3, 4
_6x3:
.word -1
.align 2
.type _6x4, %object
.size _6x4, 4
_6x4:
.word -1
.align 2
.type _6x5, %object
.size _6x5, 4
_6x5:
.word -1
.align 2
.type _6x6, %object
.size _6x6, 4
_6x6:
.word -1
.align 2
.type _7x1, %object
.size _7x1, 4
_7x1:
.word -1
.align 2
.type _7x2, %object
.size _7x2, 4
_7x2:
.word -1
.align 2
.type _7x3, %object
.size _7x3, 4
_7x3:
.word -1
.align 2
.type _7x4, %object
.size _7x4, 4
_7x4:
.word -1
.align 2
.type _7x5, %object
.size _7x5, 4
_7x5:
.word -1
.align 2
.type _7x6, %object
.size _7x6, 4
_7x6:
.word -1
.align 2
.type _8x1, %object
.size _8x1, 4
_8x1:
.word -1
.align 2
.type _8x2, %object
.size _8x2, 4
_8x2:
.word -1
.align 2
.type _8x3, %object
.size _8x3, 4
_8x3:
.word -1
.align 2
.type _8x4, %object
.size _8x4, 4
_8x4:
.word -1
.align 2
.type _8x5, %object
.size _8x5, 4
_8x5:
.word -1
.align 2
.type _8x6, %object
.size _8x6, 4
_8x6:
.word -1
.align 2
.type table_sizes, %object
.size table_sizes, 192
table_sizes:
.word 27
.word 18
.word 8
.word -1
.word -1
.word -1
.word -1
.word -1
.word -1
.word 1
.word 20
.word 2
.word -1
.word -1
.word -1
.word -1
.word -1
.word -1
.word 7
.word -1
.word 5
.word -1
.word -1
.word -1
.word -1
.word -1
.word -1
.word -1
.word -1
.word -1
.word -1
.word -1
.word -1
.word -1
.word -1
.word -1
.word -1
.word -1
.word -1
.word -1
.word -1
.word -1
.word -1
.word -1
.word -1
.word -1
.word -1
.word -1
.data
.align 2
.type table, %object
.size table, 192
table:
.word _1x1
.word _2x1
.word _3x1
.word _4x1
.word _5x1
.word _6x1
.word _7x1
.word _8x1
.word _1x2
.word _2x2
.word _3x2
.word _4x2
.word _5x2
.word _6x2
.word _7x2
.word _8x2
.word _1x3
.word _2x3
.word _3x3
.word _4x3
.word _5x3
.word _6x3
.word _7x3
.word _8x3
.word _1x4
.word _2x4
.word _3x4
.word _4x4
.word _5x4
.word _6x4
.word _7x4
.word _8x4
.word _1x5
.word _2x5
.word _3x5
.word _4x5
.word _5x5
.word _6x5
.word _7x5
.word _8x5
.word _1x6
.word _2x6
.word _3x6
.word _4x6
.word _5x6
.word _6x6
.word _7x6
.word _8x6
.global __aeabi_idivmod
.text
.align 2
.global rand_impassable_GRASS
.syntax unified
.arm
.fpu softvfp
.type rand_impassable_GRASS, %function
rand_impassable_GRASS:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
push {r4, fp, lr}
add fp, sp, #8
sub sp, sp, #20
str r0, [fp, #-24]
str r1, [fp, #-28]
ldr r3, [fp, #-28]
sub r2, r3, #1
ldr r3, [fp, #-24]
sub r3, r3, #1
ldr r1, .L5
lsl r2, r2, #3
add r3, r2, r3
ldr r3, [r1, r3, lsl #2]
str r3, [fp, #-16]
ldr r3, [fp, #-16]
cmn r3, #1
beq .L2
ldr r3, [fp, #-28]
sub r2, r3, #1
ldr r3, [fp, #-24]
sub r3, r3, #1
ldr r1, .L5+4
lsl r2, r2, #3
add r3, r2, r3
ldr r4, [r1, r3, lsl #2]
bl rand
mov r3, r0
add r3, r3, #1
ldr r1, [fp, #-16]
mov r0, r3
bl __aeabi_idivmod
mov r3, r1
lsl r3, r3, #2
add r3, r4, r3
ldr r3, [r3]
b .L4
.L2:
mvn r3, #0
.L4:
mov r0, r3
sub sp, fp, #8
@ sp needed
pop {r4, fp, pc}
.L6:
.align 2
.L5:
.word table_sizes
.word table
.size rand_impassable_GRASS, .-rand_impassable_GRASS
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "581600.c"
.intel_syntax noprefix
.text
.section .rodata
.LC0:
.string "%ld\n"
.text
.globl main
.type main, @function
main:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
lea r11, -32768[rsp]
.LPSRL0:
sub rsp, 4096
or DWORD PTR [rsp], 0
cmp rsp, r11
jne .LPSRL0
sub rsp, 64
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
lea rax, -32784[rbp]
mov edx, 32768
mov esi, 0
mov rdi, rax
call memset@PLT
mov QWORD PTR -32784[rbp], 2
mov QWORD PTR -32832[rbp], 1
jmp .L2
.L3:
mov rax, QWORD PTR -32832[rbp]
mov QWORD PTR -32784[rbp+rax*8], 0
add QWORD PTR -32832[rbp], 1
.L2:
cmp QWORD PTR -32832[rbp], 4095
jle .L3
mov QWORD PTR -32824[rbp], 2
jmp .L4
.L9:
mov QWORD PTR -32816[rbp], 0
jmp .L5
.L6:
mov rax, QWORD PTR -32816[rbp]
mov rax, QWORD PTR -32784[rbp+rax*8]
lea rdx, [rax+rax]
mov rax, QWORD PTR -32816[rbp]
mov QWORD PTR -32784[rbp+rax*8], rdx
add QWORD PTR -32816[rbp], 1
.L5:
cmp QWORD PTR -32816[rbp], 4095
jle .L6
mov QWORD PTR -32808[rbp], 0
jmp .L7
.L8:
mov rax, QWORD PTR -32808[rbp]
add rax, 1
mov rsi, QWORD PTR -32784[rbp+rax*8]
mov rax, QWORD PTR -32808[rbp]
mov rcx, QWORD PTR -32784[rbp+rax*8]
movabs rdx, 7378697629483820647
mov rax, rcx
imul rdx
mov rax, rdx
sar rax, 2
sar rcx, 63
sub rax, rcx
mov rdx, rax
mov rax, QWORD PTR -32808[rbp]
add rax, 1
add rdx, rsi
mov QWORD PTR -32784[rbp+rax*8], rdx
mov rax, QWORD PTR -32808[rbp]
mov rcx, QWORD PTR -32784[rbp+rax*8]
movabs rdx, 7378697629483820647
mov rax, rcx
imul rdx
mov rax, rdx
sar rax, 2
mov rsi, rcx
sar rsi, 63
sub rax, rsi
mov rdx, rax
mov rax, rdx
sal rax, 2
add rax, rdx
add rax, rax
sub rcx, rax
mov rdx, rcx
mov rax, QWORD PTR -32808[rbp]
mov QWORD PTR -32784[rbp+rax*8], rdx
add QWORD PTR -32808[rbp], 1
.L7:
cmp QWORD PTR -32808[rbp], 4094
jle .L8
add QWORD PTR -32824[rbp], 1
.L4:
cmp QWORD PTR -32824[rbp], 1000
jle .L9
mov QWORD PTR -32800[rbp], 0
mov QWORD PTR -32792[rbp], 0
jmp .L10
.L11:
mov rax, QWORD PTR -32792[rbp]
mov rax, QWORD PTR -32784[rbp+rax*8]
add QWORD PTR -32800[rbp], rax
add QWORD PTR -32792[rbp], 1
.L10:
cmp QWORD PTR -32792[rbp], 4095
jle .L11
mov rax, QWORD PTR -32800[rbp]
mov rsi, rax
lea rdi, .LC0[rip]
mov eax, 0
call printf@PLT
mov eax, 0
mov rdi, QWORD PTR -8[rbp]
sub rdi, QWORD PTR fs:40
je .L13
call __stack_chk_fail@PLT
.L13:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size main, .-main
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "581600.c"
.text
.global __aeabi_ldivmod
.section .rodata
.align 2
.LC0:
.ascii "%lld\012\000"
.align 2
.LC1:
.word __stack_chk_guard
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 32880
@ frame_needed = 1, uses_anonymous_args = 0
push {r4, r5, r6, r7, r8, r9, fp, lr}
add fp, sp, #28
sub sp, sp, #32768
sub sp, sp, #112
ldr r3, .L14
ldr r3, [r3]
str r3, [fp, #-32]
mov r3,#0
sub r3, fp, #32768
sub r3, r3, #28
sub r0, r3, #8
mov r3, #32768
mov r2, r3
mov r1, #0
bl memset
sub r3, fp, #32768
sub r3, r3, #28
mov r1, r3
mov r2, #2
mov r3, #0
stmdb r1, {r2-r3}
sub r3, fp, #32768
sub r3, r3, #28
sub r3, r3, #48
mov r1, r3
mov r2, #1
mov r3, #0
stmdb r1, {r2-r3}
b .L2
.L3:
sub r3, fp, #32768
sub r3, r3, #28
mov r2, r3
sub r3, fp, #32768
sub r3, r3, #28
sub r3, r3, #48
ldr r3, [r3, #-8]
lsl r3, r3, #3
add r3, r2, r3
sub r1, r3, #8
mov r2, #0
mov r3, #0
stm r1, {r2-r3}
sub r3, fp, #32768
sub r3, r3, #28
sub r3, r3, #48
mov r1, r3
sub r3, fp, #32768
sub r3, r3, #28
sub r3, r3, #48
ldmdb r3, {r2-r3}
adds r4, r2, #1
adc r5, r3, #0
stmdb r1, {r4-r5}
.L2:
sub r3, fp, #32768
sub r3, r3, #28
sub r3, r3, #48
ldmdb r3, {r2-r3}
cmp r2, #4096
sbcs r3, r3, #0
blt .L3
sub r3, fp, #32768
sub r3, r3, #28
sub r3, r3, #48
mov r1, r3
mov r2, #2
mov r3, #0
stm r1, {r2-r3}
b .L4
.L9:
sub r3, fp, #32768
sub r3, r3, #28
sub r3, r3, #32
mov r1, r3
mov r2, #0
mov r3, #0
stmdb r1, {r2-r3}
b .L5
.L6:
sub r3, fp, #32768
sub r3, r3, #28
mov r2, r3
sub r3, fp, #32768
sub r3, r3, #28
sub r3, r3, #32
ldr r3, [r3, #-8]
lsl r3, r3, #3
add r3, r2, r3
sub r3, r3, #8
ldmia r3, {r2-r3}
adds r1, r2, r2
sub r0, fp, #32768
sub r0, r0, #116
str r1, [r0]
adc r3, r3, r3
sub r2, fp, #32768
sub r2, r2, #112
str r3, [r2]
sub r3, fp, #32768
sub r3, r3, #116
ldmia r3, {r0-r1}
sub r3, fp, #32768
sub r3, r3, #28
mov r2, r3
sub r3, fp, #32768
sub r3, r3, #28
sub r3, r3, #32
ldr r3, [r3, #-8]
lsl r3, r3, #3
add r3, r2, r3
sub r3, r3, #8
stm r3, {r0-r1}
sub r3, fp, #32768
sub r3, r3, #28
sub r3, r3, #32
mov r1, r3
sub r3, fp, #32768
sub r3, r3, #28
sub r3, r3, #32
ldmdb r3, {r2-r3}
adds r0, r2, #1
sub ip, fp, #32768
sub ip, ip, #124
str r0, [ip]
adc r3, r3, #0
sub r2, fp, #32768
sub r2, r2, #120
str r3, [r2]
sub r3, fp, #32768
sub r3, r3, #124
ldmia r3, {r3-r4}
stmdb r1, {r3-r4}
.L5:
sub r3, fp, #32768
sub r3, r3, #28
sub r3, r3, #32
ldmdb r3, {r2-r3}
cmp r2, #4096
sbcs r3, r3, #0
blt .L6
sub r3, fp, #32768
sub r3, r3, #28
sub r3, r3, #32
mov r1, r3
mov r2, #0
mov r3, #0
stm r1, {r2-r3}
b .L7
.L8:
sub r3, fp, #32768
sub r3, r3, #28
sub r3, r3, #32
ldmia r3, {r2-r3}
adds r1, r2, #1
sub r0, fp, #32768
sub r0, r0, #92
str r1, [r0]
adc r3, r3, #0
sub r2, fp, #32768
sub r2, r2, #88
str r3, [r2]
sub r3, fp, #32768
sub r3, r3, #28
mov r2, r3
sub r3, fp, #32768
sub r3, r3, #92
ldr r3, [r3]
lsl r3, r3, #3
add r3, r2, r3
sub r3, r3, #8
ldmia r3, {r4-r5}
sub r3, fp, #32768
sub r3, r3, #28
mov r2, r3
sub r3, fp, #32768
sub r3, r3, #28
sub r3, r3, #32
ldr r3, [r3]
lsl r3, r3, #3
add r3, r2, r3
sub r3, r3, #8
ldmia r3, {r0-r1}
mov r2, #10
mov r3, #0
bl __aeabi_ldivmod
mov r2, r0
mov r3, r1
mov r0, r2
mov r1, r3
sub r3, fp, #32768
sub r3, r3, #28
sub r3, r3, #32
ldmia r3, {r2-r3}
adds ip, r2, #1
sub lr, fp, #32768
sub lr, lr, #100
str ip, [lr]
adc r3, r3, #0
sub r2, fp, #32768
sub r2, r2, #96
str r3, [r2]
adds r3, r4, r0
sub r2, fp, #32768
sub r2, r2, #108
str r3, [r2]
adc r3, r5, r1
sub r2, fp, #32768
sub r2, r2, #104
str r3, [r2]
sub r3, fp, #32768
sub r3, r3, #28
mov r2, r3
sub r3, fp, #32768
sub r3, r3, #100
ldr r3, [r3]
lsl r3, r3, #3
add r3, r2, r3
sub r3, r3, #8
sub r2, fp, #32768
sub r2, r2, #108
ldmia r2, {r1-r2}
stm r3, {r1-r2}
sub r3, fp, #32768
sub r3, r3, #28
mov r2, r3
sub r3, fp, #32768
sub r3, r3, #28
sub r3, r3, #32
ldr r3, [r3]
lsl r3, r3, #3
add r3, r2, r3
sub r3, r3, #8
ldmia r3, {r0-r1}
mov r2, #10
mov r3, #0
bl __aeabi_ldivmod
mov r0, r2
mov r1, r3
sub r3, fp, #32768
sub r3, r3, #28
mov r2, r3
sub r3, fp, #32768
sub r3, r3, #28
sub r3, r3, #32
ldr r3, [r3]
lsl r3, r3, #3
add r3, r2, r3
sub r3, r3, #8
stm r3, {r0-r1}
sub r3, fp, #32768
sub r3, r3, #28
sub r3, r3, #32
mov r1, r3
sub r3, fp, #32768
sub r3, r3, #28
sub r3, r3, #32
ldmia r3, {r2-r3}
adds r0, r2, #1
sub ip, fp, #32768
sub ip, ip, #132
str r0, [ip]
adc r3, r3, #0
sub r2, fp, #32768
sub r2, r2, #128
str r3, [r2]
sub r3, fp, #32768
sub r3, r3, #132
ldmia r3, {r3-r4}
stm r1, {r3-r4}
.L7:
sub r3, fp, #32768
sub r3, r3, #28
sub r3, r3, #32
ldmia r3, {r0-r1}
ldr r2, .L14+4
mov r3, #0
cmp r2, r0
sbcs r3, r3, r1
bge .L8
sub r3, fp, #32768
sub r3, r3, #28
sub r3, r3, #48
mov r1, r3
sub r3, fp, #32768
sub r3, r3, #28
sub r3, r3, #48
ldmia r3, {r2-r3}
adds r0, r2, #1
sub ip, fp, #32768
sub ip, ip, #140
str r0, [ip]
adc r3, r3, #0
sub r2, fp, #32768
sub r2, r2, #136
str r3, [r2]
sub r3, fp, #32768
sub r3, r3, #140
ldmia r3, {r3-r4}
stm r1, {r3-r4}
.L4:
sub r3, fp, #32768
sub r3, r3, #28
sub r3, r3, #48
ldmia r3, {r0-r1}
mov r2, #1000
mov r3, #0
cmp r2, r0
sbcs r3, r3, r1
bge .L9
sub r3, fp, #32768
sub r3, r3, #28
sub r3, r3, #16
mov r1, r3
mov r2, #0
mov r3, #0
stmdb r1, {r2-r3}
sub r3, fp, #32768
sub r3, r3, #28
sub r3, r3, #16
mov r1, r3
mov r2, #0
mov r3, #0
stm r1, {r2-r3}
b .L10
.L11:
sub r3, fp, #32768
sub r3, r3, #28
mov r2, r3
sub r3, fp, #32768
sub r3, r3, #28
sub r3, r3, #16
ldr r3, [r3]
lsl r3, r3, #3
add r3, r2, r3
sub r3, r3, #8
ldmia r3, {r2-r3}
sub r1, fp, #32768
sub r1, r1, #28
sub r1, r1, #16
mov ip, r1
sub r1, fp, #32768
sub r1, r1, #28
sub r1, r1, #16
ldmdb r1, {r0-r1}
adds r6, r0, r2
adc r7, r1, r3
stmdb ip, {r6-r7}
sub r3, fp, #32768
sub r3, r3, #28
sub r3, r3, #16
mov r1, r3
sub r3, fp, #32768
sub r3, r3, #28
sub r3, r3, #16
ldmia r3, {r2-r3}
adds r8, r2, #1
adc r9, r3, #0
stm r1, {r8-r9}
.L10:
sub r3, fp, #32768
sub r3, r3, #28
sub r3, r3, #16
ldmia r3, {r2-r3}
cmp r2, #4096
sbcs r3, r3, #0
blt .L11
sub r3, fp, #32768
sub r3, r3, #28
sub r3, r3, #16
ldmdb r3, {r2-r3}
ldr r0, .L14+8
bl printf
mov r3, #0
ldr r2, .L14
ldr r1, [r2]
ldr r2, [fp, #-32]
eors r1, r2, r1
mov r2, #0
beq .L13
bl __stack_chk_fail
.L13:
mov r0, r3
sub sp, fp, #28
@ sp needed
pop {r4, r5, r6, r7, r8, r9, fp, pc}
.L15:
.align 2
.L14:
.word .LC1
.word 4094
.word .LC0
.size main, .-main
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "927954.c"
.intel_syntax noprefix
.text
.globl parse_options
.type parse_options, @function
parse_options:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov DWORD PTR -4[rbp], edi
mov QWORD PTR -16[rbp], rsi
mov eax, 0
call __coverity_panic__@PLT
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size parse_options, .-parse_options
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "927954.c"
.text
.align 2
.global parse_options
.syntax unified
.arm
.fpu softvfp
.type parse_options, %function
parse_options:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #8
str r0, [fp, #-8]
str r1, [fp, #-12]
bl __coverity_panic__
nop
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.size parse_options, .-parse_options
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "988116.c"
.intel_syntax noprefix
.text
.globl System_header
.bss
.align 32
.type System_header, @object
.size System_header, 72
System_header:
.zero 72
.globl User_header
.align 32
.type User_header, @object
.size User_header, 72
User_header:
.zero 72
.globl Init_header
.align 32
.type Init_header, @object
.size Init_header, 72
Init_header:
.zero 72
.globl System
.section .data.rel.local,"aw"
.align 8
.type System, @object
.size System, 8
System:
.quad System_header
.globl User
.align 8
.type User, @object
.size User, 8
User:
.quad User_header
.globl Init
.align 8
.type Init, @object
.size Init, 8
Init:
.quad Init_header
.globl R1
.bss
.align 8
.type R1, @object
.size R1, 8
R1:
.zero 8
.globl R2
.align 8
.type R2, @object
.size R2, 8
R2:
.zero 8
.globl R3
.align 8
.type R3, @object
.size R3, 8
R3:
.zero 8
.globl R4
.align 8
.type R4, @object
.size R4, 8
R4:
.zero 8
.globl CURRENT_RUNNING_PCB
.align 8
.type CURRENT_RUNNING_PCB, @object
.size CURRENT_RUNNING_PCB, 8
CURRENT_RUNNING_PCB:
.zero 8
.text
.globl parser
.type parser, @function
parser:
.LFB6:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 32
mov QWORD PTR -24[rbp], rdi
mov QWORD PTR -32[rbp], rsi
mov rax, QWORD PTR -32[rbp]
mov QWORD PTR -8[rbp], rax
mov DWORD PTR -12[rbp], 0
nop
.L3:
mov rax, QWORD PTR -8[rbp]
movzx eax, BYTE PTR [rax]
cmp al, 32
jne .L4
mov rax, QWORD PTR -8[rbp]
lea rdx, 1[rax]
mov QWORD PTR -8[rbp], rdx
movzx eax, BYTE PTR [rax]
cmp al, 10
jne .L3
jmp .L4
.L6:
add DWORD PTR -12[rbp], 1
.L4:
mov rax, QWORD PTR -8[rbp]
movzx eax, BYTE PTR [rax]
cmp al, 10
je .L5
mov rax, QWORD PTR -8[rbp]
lea rdx, 1[rax]
mov QWORD PTR -8[rbp], rdx
movzx eax, BYTE PTR [rax]
cmp al, 32
jne .L6
.L5:
mov eax, DWORD PTR -12[rbp]
movsx rdx, eax
mov rcx, QWORD PTR -32[rbp]
mov rax, QWORD PTR -24[rbp]
mov rsi, rcx
mov rdi, rax
call strncpy@PLT
mov rax, QWORD PTR -8[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size parser, .-parser
.section .rodata
.LC0:
.string "cr"
.LC1:
.string "de"
.LC2:
.string "req"
.LC3:
.string "rel"
.LC4:
.string "to"
.LC5:
.string "ls"
.text
.globl cmd_type
.type cmd_type, @function
cmd_type:
.LFB7:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov QWORD PTR -8[rbp], rdi
mov rax, QWORD PTR -8[rbp]
lea rsi, .LC0[rip]
mov rdi, rax
call strcmp@PLT
test eax, eax
jne .L9
mov eax, 0
jmp .L10
.L9:
mov rax, QWORD PTR -8[rbp]
lea rsi, .LC1[rip]
mov rdi, rax
call strcmp@PLT
test eax, eax
jne .L11
mov eax, 1
jmp .L10
.L11:
mov rax, QWORD PTR -8[rbp]
lea rsi, .LC2[rip]
mov rdi, rax
call strcmp@PLT
test eax, eax
jne .L12
mov eax, 2
jmp .L10
.L12:
mov rax, QWORD PTR -8[rbp]
lea rsi, .LC3[rip]
mov rdi, rax
call strcmp@PLT
test eax, eax
jne .L13
mov eax, 3
jmp .L10
.L13:
mov rax, QWORD PTR -8[rbp]
lea rsi, .LC4[rip]
mov rdi, rax
call strcmp@PLT
test eax, eax
jne .L14
mov eax, 4
jmp .L10
.L14:
mov rax, QWORD PTR -8[rbp]
lea rsi, .LC5[rip]
mov rdi, rax
call strcmp@PLT
test eax, eax
jne .L15
mov eax, 5
jmp .L10
.L15:
mov eax, 1000
.L10:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE7:
.size cmd_type, .-cmd_type
.globl Insert
.type Insert, @function
Insert:
.LFB8:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
push rbx
sub rsp, 40
.cfi_offset 3, -24
mov QWORD PTR -40[rbp], rdi
mov QWORD PTR -48[rbp], rsi
mov rax, QWORD PTR -40[rbp]
mov QWORD PTR -32[rbp], rax
jmp .L17
.L18:
mov rax, QWORD PTR -32[rbp]
mov rax, QWORD PTR 64[rax]
mov QWORD PTR -32[rbp], rax
.L17:
mov rax, QWORD PTR -32[rbp]
mov rax, QWORD PTR 64[rax]
test rax, rax
jne .L18
mov edi, 72
call malloc@PLT
mov QWORD PTR -24[rbp], rax
mov rax, QWORD PTR -24[rbp]
mov rdx, QWORD PTR -48[rbp]
mov rcx, QWORD PTR [rdx]
mov rbx, QWORD PTR 8[rdx]
mov QWORD PTR [rax], rcx
mov QWORD PTR 8[rax], rbx
mov rcx, QWORD PTR 16[rdx]
mov rbx, QWORD PTR 24[rdx]
mov QWORD PTR 16[rax], rcx
mov QWORD PTR 24[rax], rbx
mov rcx, QWORD PTR 32[rdx]
mov rbx, QWORD PTR 40[rdx]
mov QWORD PTR 32[rax], rcx
mov QWORD PTR 40[rax], rbx
mov rcx, QWORD PTR 48[rdx]
mov rbx, QWORD PTR 56[rdx]
mov QWORD PTR 48[rax], rcx
mov QWORD PTR 56[rax], rbx
mov rax, QWORD PTR -24[rbp]
mov QWORD PTR 64[rax], 0
mov rax, QWORD PTR -32[rbp]
mov rdx, QWORD PTR -24[rbp]
mov QWORD PTR 64[rax], rdx
mov eax, 1
mov rbx, QWORD PTR -8[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE8:
.size Insert, .-Insert
.globl Insert_Priority
.type Insert_Priority, @function
Insert_Priority:
.LFB9:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov QWORD PTR -8[rbp], rdi
mov rax, QWORD PTR -8[rbp]
mov eax, DWORD PTR 16[rax]
cmp eax, 2
jne .L21
mov rax, QWORD PTR System[rip]
mov rdx, QWORD PTR -8[rbp]
mov rsi, rdx
mov rdi, rax
call Insert
jmp .L24
.L21:
mov rax, QWORD PTR -8[rbp]
mov eax, DWORD PTR 16[rax]
cmp eax, 1
jne .L23
mov rax, QWORD PTR User[rip]
mov rdx, QWORD PTR -8[rbp]
mov rsi, rdx
mov rdi, rax
call Insert
jmp .L24
.L23:
mov rax, QWORD PTR -8[rbp]
mov eax, DWORD PTR 16[rax]
test eax, eax
jne .L24
mov rax, QWORD PTR Init[rip]
mov rdx, QWORD PTR -8[rbp]
mov rsi, rdx
mov rdi, rax
call Insert
.L24:
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE9:
.size Insert_Priority, .-Insert_Priority
.globl Resource_Alloc
.type Resource_Alloc, @function
Resource_Alloc:
.LFB10:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 32
mov QWORD PTR -24[rbp], rdi
mov QWORD PTR -32[rbp], rsi
mov edi, 24
call malloc@PLT
mov QWORD PTR -8[rbp], rax
mov rcx, QWORD PTR -8[rbp]
mov rax, QWORD PTR -24[rbp]
mov rdx, QWORD PTR 8[rax]
mov rax, QWORD PTR [rax]
mov QWORD PTR [rcx], rax
mov QWORD PTR 8[rcx], rdx
mov rax, QWORD PTR -8[rbp]
mov QWORD PTR 16[rax], 0
mov rax, QWORD PTR -32[rbp]
mov rax, QWORD PTR 56[rax]
mov QWORD PTR -16[rbp], rax
jmp .L26
.L27:
mov rax, QWORD PTR -16[rbp]
mov rax, QWORD PTR 16[rax]
mov QWORD PTR -16[rbp], rax
.L26:
mov rax, QWORD PTR -16[rbp]
mov rax, QWORD PTR 16[rax]
test rax, rax
jne .L27
mov rax, QWORD PTR -16[rbp]
mov rdx, QWORD PTR -8[rbp]
mov QWORD PTR 16[rax], rdx
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE10:
.size Resource_Alloc, .-Resource_Alloc
.globl Resource_Free
.type Resource_Free, @function
Resource_Free:
.LFB11:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov QWORD PTR -8[rbp], rdi
mov QWORD PTR -16[rbp], rsi
mov DWORD PTR -20[rbp], edx
nop
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE11:
.size Resource_Free, .-Resource_Free
.globl Remove_Ready_Single
.type Remove_Ready_Single, @function
Remove_Ready_Single:
.LFB12:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
push rbx
sub rsp, 120
.cfi_offset 3, -24
mov QWORD PTR -120[rbp], rdi
mov QWORD PTR -128[rbp], rsi
mov rax, QWORD PTR fs:40
mov QWORD PTR -24[rbp], rax
xor eax, eax
mov rax, QWORD PTR -120[rbp]
mov QWORD PTR -112[rbp], rax
mov rax, QWORD PTR -112[rbp]
mov rax, QWORD PTR 64[rax]
mov QWORD PTR -104[rbp], rax
mov rax, QWORD PTR -104[rbp]
mov rcx, QWORD PTR [rax]
mov rbx, QWORD PTR 8[rax]
mov QWORD PTR -96[rbp], rcx
mov QWORD PTR -88[rbp], rbx
mov rcx, QWORD PTR 16[rax]
mov rbx, QWORD PTR 24[rax]
mov QWORD PTR -80[rbp], rcx
mov QWORD PTR -72[rbp], rbx
mov rcx, QWORD PTR 32[rax]
mov rbx, QWORD PTR 40[rax]
mov QWORD PTR -64[rbp], rcx
mov QWORD PTR -56[rbp], rbx
mov rdx, QWORD PTR 56[rax]
mov rax, QWORD PTR 48[rax]
mov QWORD PTR -48[rbp], rax
mov QWORD PTR -40[rbp], rdx
jmp .L30
.L32:
mov rax, QWORD PTR -104[rbp]
mov QWORD PTR -112[rbp], rax
mov rax, QWORD PTR -104[rbp]
mov rax, QWORD PTR 64[rax]
mov QWORD PTR -104[rbp], rax
mov rax, QWORD PTR -104[rbp]
mov rcx, QWORD PTR [rax]
mov rbx, QWORD PTR 8[rax]
mov QWORD PTR -96[rbp], rcx
mov QWORD PTR -88[rbp], rbx
mov rcx, QWORD PTR 16[rax]
mov rbx, QWORD PTR 24[rax]
mov QWORD PTR -80[rbp], rcx
mov QWORD PTR -72[rbp], rbx
mov rcx, QWORD PTR 32[rax]
mov rbx, QWORD PTR 40[rax]
mov QWORD PTR -64[rbp], rcx
mov QWORD PTR -56[rbp], rbx
mov rdx, QWORD PTR 56[rax]
mov rax, QWORD PTR 48[rax]
mov QWORD PTR -48[rbp], rax
mov QWORD PTR -40[rbp], rdx
.L30:
cmp QWORD PTR -104[rbp], 0
je .L31
mov rdx, QWORD PTR -128[rbp]
lea rax, -96[rbp]
mov rsi, rdx
mov rdi, rax
call strcmp@PLT
test eax, eax
jne .L32
.L31:
mov rax, QWORD PTR -104[rbp]
mov rdx, QWORD PTR 64[rax]
mov rax, QWORD PTR -112[rbp]
mov QWORD PTR 64[rax], rdx
mov rax, QWORD PTR -104[rbp]
mov QWORD PTR 64[rax], 0
nop
mov rax, QWORD PTR -24[rbp]
sub rax, QWORD PTR fs:40
je .L33
call __stack_chk_fail@PLT
.L33:
mov rbx, QWORD PTR -8[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE12:
.size Remove_Ready_Single, .-Remove_Ready_Single
.globl Remove_Ready
.type Remove_Ready, @function
Remove_Ready:
.LFB13:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov QWORD PTR -8[rbp], rdi
mov rax, QWORD PTR -8[rbp]
mov eax, DWORD PTR 16[rax]
cmp eax, 2
jne .L35
mov rax, QWORD PTR System[rip]
mov rdx, QWORD PTR -8[rbp]
mov rsi, rdx
mov rdi, rax
call Remove_Ready_Single
jmp .L38
.L35:
mov rax, QWORD PTR -8[rbp]
mov eax, DWORD PTR 16[rax]
cmp eax, 1
jne .L37
mov rax, QWORD PTR User[rip]
mov rdx, QWORD PTR -8[rbp]
mov rsi, rdx
mov rdi, rax
call Remove_Ready_Single
jmp .L38
.L37:
mov rax, QWORD PTR -8[rbp]
mov eax, DWORD PTR 16[rax]
test eax, eax
jne .L38
mov rax, QWORD PTR Init[rip]
mov rdx, QWORD PTR -8[rbp]
mov rsi, rdx
mov rdi, rax
call Remove_Ready_Single
.L38:
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE13:
.size Remove_Ready, .-Remove_Ready
.globl Remove_Waiting
.type Remove_Waiting, @function
Remove_Waiting:
.LFB14:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov QWORD PTR -24[rbp], rdi
mov rax, QWORD PTR -24[rbp]
mov rax, QWORD PTR 64[rax]
test rax, rax
jne .L40
mov eax, 0
jmp .L41
.L40:
mov rax, QWORD PTR -24[rbp]
mov rax, QWORD PTR 64[rax]
mov QWORD PTR -8[rbp], rax
mov rax, QWORD PTR -8[rbp]
.L41:
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE14:
.size Remove_Waiting, .-Remove_Waiting
.globl Find_PCB
.type Find_PCB, @function
Find_PCB:
.LFB15:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov rax, QWORD PTR System[rip]
mov rax, QWORD PTR 64[rax]
mov QWORD PTR -8[rbp], rax
cmp QWORD PTR -8[rbp], 0
je .L43
mov rax, QWORD PTR -8[rbp]
jmp .L44
.L43:
mov rax, QWORD PTR User[rip]
mov rax, QWORD PTR 64[rax]
mov QWORD PTR -8[rbp], rax
cmp QWORD PTR -8[rbp], 0
je .L45
mov rax, QWORD PTR -8[rbp]
jmp .L44
.L45:
mov rax, QWORD PTR Init[rip]
mov rax, QWORD PTR 64[rax]
mov QWORD PTR -8[rbp], rax
cmp QWORD PTR -8[rbp], 0
je .L46
mov rax, QWORD PTR -8[rbp]
jmp .L44
.L46:
mov eax, 0
.L44:
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE15:
.size Find_PCB, .-Find_PCB
.globl Create
.type Create, @function
Create:
.LFB16:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 48
mov QWORD PTR -40[rbp], rdi
mov QWORD PTR -48[rbp], rsi
mov edi, 64
call malloc@PLT
mov QWORD PTR -24[rbp], rax
mov rax, QWORD PTR -24[rbp]
mov rdx, QWORD PTR -40[rbp]
mov rsi, rdx
mov rdi, rax
call strcpy@PLT
mov rax, QWORD PTR -48[rbp]
movzx eax, BYTE PTR [rax]
movsx eax, al
lea edx, -48[rax]
mov rax, QWORD PTR -24[rbp]
mov DWORD PTR 16[rax], edx
mov rax, QWORD PTR -24[rbp]
mov DWORD PTR 20[rax], 1
mov rax, QWORD PTR -24[rbp]
mov QWORD PTR 24[rax], 0
mov rax, QWORD PTR -24[rbp]
mov DWORD PTR 32[rax], 0
mov edi, 24
call malloc@PLT
mov QWORD PTR -16[rbp], rax
mov rax, QWORD PTR -16[rbp]
mov QWORD PTR 16[rax], 0
mov rax, QWORD PTR -24[rbp]
mov rdx, QWORD PTR -16[rbp]
mov QWORD PTR 56[rax], rdx
mov edi, 72
call malloc@PLT
mov QWORD PTR -8[rbp], rax
mov rax, QWORD PTR -24[rbp]
mov rdx, QWORD PTR -8[rbp]
mov QWORD PTR 48[rax], rdx
mov rdx, QWORD PTR CURRENT_RUNNING_PCB[rip]
mov rax, QWORD PTR -24[rbp]
mov QWORD PTR 40[rax], rdx
mov rax, QWORD PTR -24[rbp]
mov rdi, rax
call Insert_Priority
mov eax, 0
call Scheduler
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE16:
.size Create, .-Create
.section .rodata
.align 8
.LC6:
.string "pid %s request %s for %d but ony have %d\n"
.text
.globl Request
.type Request, @function
Request:
.LFB17:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 48
mov QWORD PTR -24[rbp], rdi
mov QWORD PTR -32[rbp], rsi
mov DWORD PTR -36[rbp], edx
mov rax, QWORD PTR -24[rbp]
mov eax, DWORD PTR 4[rax]
sub eax, DWORD PTR -36[rbp]
test eax, eax
js .L49
mov rax, QWORD PTR -24[rbp]
mov eax, DWORD PTR 4[rax]
sub eax, DWORD PTR -36[rbp]
mov edx, eax
mov rax, QWORD PTR -24[rbp]
mov DWORD PTR 4[rax], edx
mov eax, DWORD PTR -36[rbp]
mov DWORD PTR -4[rbp], eax
jmp .L50
.L51:
mov rdx, QWORD PTR -32[rbp]
mov rax, QWORD PTR -24[rbp]
mov rsi, rdx
mov rdi, rax
call Resource_Alloc
.L50:
mov eax, DWORD PTR -4[rbp]
lea edx, -1[rax]
mov DWORD PTR -4[rbp], edx
test eax, eax
jg .L51
jmp .L54
.L49:
mov rax, QWORD PTR -24[rbp]
mov eax, DWORD PTR [rax]
cmp DWORD PTR -36[rbp], eax
jle .L53
mov rax, QWORD PTR -24[rbp]
mov edi, DWORD PTR [rax]
mov rax, QWORD PTR -24[rbp]
mov ecx, DWORD PTR [rax]
mov rdx, QWORD PTR -32[rbp]
mov rax, QWORD PTR stderr[rip]
mov esi, DWORD PTR -36[rbp]
mov r9d, edi
mov r8d, esi
lea rsi, .LC6[rip]
mov rdi, rax
mov eax, 0
call fprintf@PLT
mov edi, 0
call exit@PLT
.L53:
mov rax, QWORD PTR -32[rbp]
mov DWORD PTR 20[rax], 2
mov rax, QWORD PTR -32[rbp]
mov rdx, QWORD PTR -24[rbp]
mov QWORD PTR 24[rax], rdx
mov rax, QWORD PTR -32[rbp]
mov edx, DWORD PTR -36[rbp]
mov DWORD PTR 32[rax], edx
mov rax, QWORD PTR -32[rbp]
mov rdi, rax
call Remove_Ready
mov rax, QWORD PTR -24[rbp]
mov rax, QWORD PTR 8[rax]
mov rdx, QWORD PTR -32[rbp]
mov rsi, rdx
mov rdi, rax
call Insert
mov eax, 0
call Scheduler
.L54:
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE17:
.size Request, .-Request
.globl Release
.type Release, @function
Release:
.LFB18:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 64
mov QWORD PTR -40[rbp], rdi
mov QWORD PTR -48[rbp], rsi
mov DWORD PTR -52[rbp], edx
mov edx, DWORD PTR -52[rbp]
mov rcx, QWORD PTR -48[rbp]
mov rax, QWORD PTR -40[rbp]
mov rsi, rcx
mov rdi, rax
call Resource_Free
mov rax, QWORD PTR -40[rbp]
mov edx, DWORD PTR 4[rax]
mov eax, DWORD PTR -52[rbp]
add edx, eax
mov rax, QWORD PTR -40[rbp]
mov DWORD PTR 4[rax], edx
mov rax, QWORD PTR -40[rbp]
mov rax, QWORD PTR 8[rax]
mov rax, QWORD PTR 64[rax]
mov QWORD PTR -16[rbp], rax
jmp .L56
.L60:
mov rax, QWORD PTR -40[rbp]
mov edx, DWORD PTR 4[rax]
mov rax, QWORD PTR -16[rbp]
mov eax, DWORD PTR 32[rax]
sub edx, eax
mov rax, QWORD PTR -40[rbp]
mov DWORD PTR 4[rax], edx
mov rax, QWORD PTR -40[rbp]
mov rax, QWORD PTR 8[rax]
mov rdi, rax
call Remove_Waiting
mov QWORD PTR -8[rbp], rax
mov rax, QWORD PTR -8[rbp]
mov DWORD PTR 20[rax], 1
mov rax, QWORD PTR -16[rbp]
mov eax, DWORD PTR 32[rax]
mov DWORD PTR -20[rbp], eax
jmp .L57
.L58:
mov rdx, QWORD PTR -48[rbp]
mov rax, QWORD PTR -40[rbp]
mov rsi, rdx
mov rdi, rax
call Resource_Alloc
.L57:
mov eax, DWORD PTR -20[rbp]
lea edx, -1[rax]
mov DWORD PTR -20[rbp], edx
test eax, eax
jg .L58
mov rax, QWORD PTR -48[rbp]
mov rdi, rax
call Insert_Priority
mov eax, 0
call Scheduler
mov rax, QWORD PTR -16[rbp]
mov rax, QWORD PTR 64[rax]
mov QWORD PTR -16[rbp], rax
.L56:
cmp QWORD PTR -16[rbp], 0
je .L61
mov rax, QWORD PTR -40[rbp]
mov edx, DWORD PTR 4[rax]
mov rax, QWORD PTR -16[rbp]
mov eax, DWORD PTR 32[rax]
cmp edx, eax
jge .L60
.L61:
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE18:
.size Release, .-Release
.globl Scheduler
.type Scheduler, @function
Scheduler:
.LFB19:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 32
mov eax, 0
call Find_PCB
mov QWORD PTR -24[rbp], rax
mov rax, QWORD PTR -24[rbp]
mov QWORD PTR -16[rbp], rax
mov rax, QWORD PTR CURRENT_RUNNING_PCB[rip]
mov QWORD PTR -8[rbp], rax
mov rax, QWORD PTR -8[rbp]
mov edx, DWORD PTR 16[rax]
mov rax, QWORD PTR -16[rbp]
mov eax, DWORD PTR 16[rax]
cmp edx, eax
jl .L63
mov rax, QWORD PTR -8[rbp]
mov eax, DWORD PTR 20[rax]
cmp eax, 3
jne .L63
cmp QWORD PTR -8[rbp], 0
jne .L64
.L63:
mov rax, QWORD PTR -8[rbp]
mov DWORD PTR 20[rax], 1
mov rax, QWORD PTR -16[rbp]
mov rdi, rax
mov eax, 0
call preempt
nop
jmp .L67
.L64:
mov rax, QWORD PTR -8[rbp]
mov eax, DWORD PTR 20[rax]
cmp eax, 3
jne .L66
cmp QWORD PTR -8[rbp], 0
jne .L67
.L66:
mov rax, QWORD PTR -16[rbp]
mov rdi, rax
mov eax, 0
call preempt
.L67:
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE19:
.size Scheduler, .-Scheduler
.section .rodata
.align 8
.LC7:
.string "PID %s Running at Priority %d \n"
.LC8:
.string "Occupied Resource :"
.LC9:
.string "None"
.LC10:
.string "%d Left: %d"
.text
.globl preempt
.type preempt, @function
preempt:
.LFB20:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 32
mov QWORD PTR -24[rbp], rdi
mov rax, QWORD PTR -24[rbp]
mov QWORD PTR CURRENT_RUNNING_PCB[rip], rax
mov rax, QWORD PTR -24[rbp]
mov edx, DWORD PTR 16[rax]
mov rax, QWORD PTR -24[rbp]
mov rsi, rax
lea rdi, .LC7[rip]
mov eax, 0
call printf@PLT
lea rdi, .LC8[rip]
mov eax, 0
call printf@PLT
mov rax, QWORD PTR -24[rbp]
mov rax, QWORD PTR 56[rax]
mov QWORD PTR -8[rbp], rax
mov rax, QWORD PTR -8[rbp]
mov rax, QWORD PTR 16[rax]
mov QWORD PTR -8[rbp], rax
cmp QWORD PTR -8[rbp], 0
jne .L71
lea rdi, .LC9[rip]
call puts@PLT
jmp .L73
.L72:
mov rax, QWORD PTR -8[rbp]
mov edx, DWORD PTR 4[rax]
mov rax, QWORD PTR -8[rbp]
mov eax, DWORD PTR [rax]
mov esi, eax
lea rdi, .LC10[rip]
mov eax, 0
call printf@PLT
mov rax, QWORD PTR -8[rbp]
mov rax, QWORD PTR 16[rax]
mov QWORD PTR -8[rbp], rax
.L71:
cmp QWORD PTR -8[rbp], 0
jne .L72
mov edi, 10
call putchar@PLT
.L73:
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE20:
.size preempt, .-preempt
.globl init_resource
.type init_resource, @function
init_resource:
.LFB21:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 32
mov edi, 16
call malloc@PLT
mov QWORD PTR R1[rip], rax
mov rax, QWORD PTR R1[rip]
mov DWORD PTR [rax], 1
mov rax, QWORD PTR R1[rip]
mov DWORD PTR 4[rax], 1
mov edi, 72
call malloc@PLT
mov QWORD PTR -32[rbp], rax
mov rax, QWORD PTR R1[rip]
mov rdx, QWORD PTR -32[rbp]
mov QWORD PTR 8[rax], rdx
mov edi, 16
call malloc@PLT
mov QWORD PTR R2[rip], rax
mov rax, QWORD PTR R2[rip]
mov DWORD PTR [rax], 2
mov rax, QWORD PTR R2[rip]
mov DWORD PTR 4[rax], 2
mov edi, 72
call malloc@PLT
mov QWORD PTR -24[rbp], rax
mov rax, QWORD PTR R2[rip]
mov rdx, QWORD PTR -24[rbp]
mov QWORD PTR 8[rax], rdx
mov edi, 16
call malloc@PLT
mov QWORD PTR R3[rip], rax
mov rax, QWORD PTR R3[rip]
mov DWORD PTR [rax], 3
mov rax, QWORD PTR R3[rip]
mov DWORD PTR 4[rax], 3
mov edi, 72
call malloc@PLT
mov QWORD PTR -16[rbp], rax
mov rax, QWORD PTR R3[rip]
mov rdx, QWORD PTR -16[rbp]
mov QWORD PTR 8[rax], rdx
mov edi, 16
call malloc@PLT
mov QWORD PTR R4[rip], rax
mov rax, QWORD PTR R4[rip]
mov DWORD PTR [rax], 4
mov rax, QWORD PTR R4[rip]
mov DWORD PTR 4[rax], 4
mov edi, 72
call malloc@PLT
mov QWORD PTR -8[rbp], rax
mov rax, QWORD PTR R4[rip]
mov rdx, QWORD PTR -8[rbp]
mov QWORD PTR 8[rax], rdx
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE21:
.size init_resource, .-init_resource
.section .rodata
.LC11:
.string "init"
.text
.globl init_process
.type init_process, @function
init_process:
.LFB22:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 32
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
lea rax, .LC11[rip]
mov QWORD PTR -16[rbp], rax
mov BYTE PTR -17[rbp], 48
lea rdx, -17[rbp]
mov rax, QWORD PTR -16[rbp]
mov rsi, rdx
mov rdi, rax
call Create
nop
mov rax, QWORD PTR -8[rbp]
sub rax, QWORD PTR fs:40
je .L76
call __stack_chk_fail@PLT
.L76:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE22:
.size init_process, .-init_process
.globl Time_Out
.type Time_Out, @function
Time_Out:
.LFB23:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov rax, QWORD PTR CURRENT_RUNNING_PCB[rip]
mov QWORD PTR -8[rbp], rax
mov rax, QWORD PTR -8[rbp]
mov rdi, rax
call Remove_Ready
mov rax, QWORD PTR -8[rbp]
mov DWORD PTR 20[rax], 1
mov rax, QWORD PTR -8[rbp]
mov rdi, rax
call Insert_Priority
mov eax, 0
call Scheduler
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE23:
.size Time_Out, .-Time_Out
.section .rodata
.LC12:
.string "Command is %s\ntype: %d\n"
.align 8
.LC13:
.string "commd is %s Name is %s, Pri : %s\n"
.LC14:
.string "res is %s\n"
.text
.globl main
.type main, @function
main:
.LFB24:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 64
mov eax, 0
call init_resource
mov eax, 0
call init_process
mov edi, 64
call malloc@PLT
mov QWORD PTR -48[rbp], rax
jmp .L79
.L81:
mov edi, 4
call malloc@PLT
mov QWORD PTR -40[rbp], rax
mov rdx, QWORD PTR -48[rbp]
mov rax, QWORD PTR -40[rbp]
mov rsi, rdx
mov rdi, rax
call parser
mov QWORD PTR -32[rbp], rax
mov rax, QWORD PTR -40[rbp]
mov rdi, rax
call cmd_type
mov edx, eax
mov rax, QWORD PTR -40[rbp]
mov rsi, rax
lea rdi, .LC12[rip]
mov eax, 0
call printf@PLT
mov rax, QWORD PTR -40[rbp]
mov rdi, rax
call cmd_type
mov DWORD PTR -52[rbp], eax
cmp DWORD PTR -52[rbp], 0
jne .L80
mov edi, 16
call malloc@PLT
mov QWORD PTR -16[rbp], rax
mov rdx, QWORD PTR -32[rbp]
mov rax, QWORD PTR -16[rbp]
mov rsi, rdx
mov rdi, rax
call parser
mov QWORD PTR -32[rbp], rax
mov edi, 1
call malloc@PLT
mov QWORD PTR -8[rbp], rax
mov rdx, QWORD PTR -32[rbp]
mov rax, QWORD PTR -8[rbp]
mov rsi, rdx
mov rdi, rax
call parser
mov rcx, QWORD PTR -8[rbp]
mov rdx, QWORD PTR -16[rbp]
mov rax, QWORD PTR -40[rbp]
mov rsi, rax
lea rdi, .LC13[rip]
mov eax, 0
call printf@PLT
mov rdx, QWORD PTR -8[rbp]
mov rax, QWORD PTR -16[rbp]
mov rsi, rdx
mov rdi, rax
call Create
jmp .L79
.L80:
cmp DWORD PTR -52[rbp], 2
jne .L79
mov edi, 4
call malloc@PLT
mov QWORD PTR -24[rbp], rax
mov rdx, QWORD PTR -32[rbp]
mov rax, QWORD PTR -24[rbp]
mov rsi, rdx
mov rdi, rax
call parser
mov QWORD PTR -32[rbp], rax
mov rax, QWORD PTR -24[rbp]
mov rsi, rax
lea rdi, .LC14[rip]
mov eax, 0
call printf@PLT
.L79:
mov rdx, QWORD PTR stdin[rip]
mov rax, QWORD PTR -48[rbp]
mov esi, 64
mov rdi, rax
call fgets@PLT
test rax, rax
jne .L81
mov rax, QWORD PTR -48[rbp]
mov rdi, rax
call free@PLT
mov eax, 0
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE24:
.size main, .-main
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "988116.c"
.text
.comm System_header,48,4
.comm User_header,48,4
.comm Init_header,48,4
.global System
.data
.align 2
.type System, %object
.size System, 4
System:
.word System_header
.global User
.align 2
.type User, %object
.size User, 4
User:
.word User_header
.global Init
.align 2
.type Init, %object
.size Init, 4
Init:
.word Init_header
.comm R1,4,4
.comm R2,4,4
.comm R3,4,4
.comm R4,4,4
.global CURRENT_RUNNING_PCB
.bss
.align 2
.type CURRENT_RUNNING_PCB, %object
.size CURRENT_RUNNING_PCB, 4
CURRENT_RUNNING_PCB:
.space 4
.text
.align 2
.global parser
.syntax unified
.arm
.fpu softvfp
.type parser, %function
parser:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #16
str r0, [fp, #-16]
str r1, [fp, #-20]
ldr r3, [fp, #-20]
str r3, [fp, #-12]
mov r3, #0
str r3, [fp, #-8]
nop
.L3:
ldr r3, [fp, #-12]
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #32
bne .L4
ldr r3, [fp, #-12]
add r2, r3, #1
str r2, [fp, #-12]
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #10
bne .L3
b .L4
.L6:
ldr r3, [fp, #-8]
add r3, r3, #1
str r3, [fp, #-8]
.L4:
ldr r3, [fp, #-12]
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #10
beq .L5
ldr r3, [fp, #-12]
add r2, r3, #1
str r2, [fp, #-12]
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #32
bne .L6
.L5:
ldr r3, [fp, #-8]
mov r2, r3
ldr r1, [fp, #-20]
ldr r0, [fp, #-16]
bl strncpy
ldr r3, [fp, #-12]
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.size parser, .-parser
.section .rodata
.align 2
.LC0:
.ascii "cr\000"
.align 2
.LC1:
.ascii "de\000"
.align 2
.LC2:
.ascii "req\000"
.align 2
.LC3:
.ascii "rel\000"
.align 2
.LC4:
.ascii "to\000"
.align 2
.LC5:
.ascii "ls\000"
.text
.align 2
.global cmd_type
.syntax unified
.arm
.fpu softvfp
.type cmd_type, %function
cmd_type:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #8
str r0, [fp, #-8]
ldr r1, .L16
ldr r0, [fp, #-8]
bl strcmp
mov r3, r0
cmp r3, #0
bne .L9
mov r3, #0
b .L10
.L9:
ldr r1, .L16+4
ldr r0, [fp, #-8]
bl strcmp
mov r3, r0
cmp r3, #0
bne .L11
mov r3, #1
b .L10
.L11:
ldr r1, .L16+8
ldr r0, [fp, #-8]
bl strcmp
mov r3, r0
cmp r3, #0
bne .L12
mov r3, #2
b .L10
.L12:
ldr r1, .L16+12
ldr r0, [fp, #-8]
bl strcmp
mov r3, r0
cmp r3, #0
bne .L13
mov r3, #3
b .L10
.L13:
ldr r1, .L16+16
ldr r0, [fp, #-8]
bl strcmp
mov r3, r0
cmp r3, #0
bne .L14
mov r3, #4
b .L10
.L14:
ldr r1, .L16+20
ldr r0, [fp, #-8]
bl strcmp
mov r3, r0
cmp r3, #0
bne .L15
mov r3, #5
b .L10
.L15:
mov r3, #1000
.L10:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L17:
.align 2
.L16:
.word .LC0
.word .LC1
.word .LC2
.word .LC3
.word .LC4
.word .LC5
.size cmd_type, .-cmd_type
.align 2
.global Insert
.syntax unified
.arm
.fpu softvfp
.type Insert, %function
Insert:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #16
str r0, [fp, #-16]
str r1, [fp, #-20]
ldr r3, [fp, #-16]
str r3, [fp, #-12]
b .L19
.L20:
ldr r3, [fp, #-12]
ldr r3, [r3, #44]
str r3, [fp, #-12]
.L19:
ldr r3, [fp, #-12]
ldr r3, [r3, #44]
cmp r3, #0
bne .L20
mov r0, #48
bl malloc
mov r3, r0
str r3, [fp, #-8]
ldr r2, [fp, #-8]
ldr r3, [fp, #-20]
mov ip, r2
mov lr, r3
ldmia lr!, {r0, r1, r2, r3}
stmia ip!, {r0, r1, r2, r3}
ldmia lr!, {r0, r1, r2, r3}
stmia ip!, {r0, r1, r2, r3}
ldm lr, {r0, r1, r2}
stm ip, {r0, r1, r2}
ldr r3, [fp, #-8]
mov r2, #0
str r2, [r3, #44]
ldr r3, [fp, #-12]
ldr r2, [fp, #-8]
str r2, [r3, #44]
mov r3, #1
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.size Insert, .-Insert
.align 2
.global Insert_Priority
.syntax unified
.arm
.fpu softvfp
.type Insert_Priority, %function
Insert_Priority:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #8
str r0, [fp, #-8]
ldr r3, [fp, #-8]
ldr r3, [r3, #16]
cmp r3, #2
bne .L23
ldr r3, .L27
ldr r3, [r3]
ldr r1, [fp, #-8]
mov r0, r3
bl Insert
b .L26
.L23:
ldr r3, [fp, #-8]
ldr r3, [r3, #16]
cmp r3, #1
bne .L25
ldr r3, .L27+4
ldr r3, [r3]
ldr r1, [fp, #-8]
mov r0, r3
bl Insert
b .L26
.L25:
ldr r3, [fp, #-8]
ldr r3, [r3, #16]
cmp r3, #0
bne .L26
ldr r3, .L27+8
ldr r3, [r3]
ldr r1, [fp, #-8]
mov r0, r3
bl Insert
.L26:
nop
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L28:
.align 2
.L27:
.word System
.word User
.word Init
.size Insert_Priority, .-Insert_Priority
.align 2
.global Resource_Alloc
.syntax unified
.arm
.fpu softvfp
.type Resource_Alloc, %function
Resource_Alloc:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #16
str r0, [fp, #-16]
str r1, [fp, #-20]
mov r0, #16
bl malloc
mov r3, r0
str r3, [fp, #-8]
ldr r3, [fp, #-8]
ldr r2, [fp, #-16]
ldm r2, {r0, r1, r2}
stm r3, {r0, r1, r2}
ldr r3, [fp, #-8]
mov r2, #0
str r2, [r3, #12]
ldr r3, [fp, #-20]
ldr r3, [r3, #40]
str r3, [fp, #-12]
b .L30
.L31:
ldr r3, [fp, #-12]
ldr r3, [r3, #12]
str r3, [fp, #-12]
.L30:
ldr r3, [fp, #-12]
ldr r3, [r3, #12]
cmp r3, #0
bne .L31
ldr r3, [fp, #-12]
ldr r2, [fp, #-8]
str r2, [r3, #12]
nop
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.size Resource_Alloc, .-Resource_Alloc
.align 2
.global Resource_Free
.syntax unified
.arm
.fpu softvfp
.type Resource_Free, %function
Resource_Free:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #20
str r0, [fp, #-8]
str r1, [fp, #-12]
str r2, [fp, #-16]
nop
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size Resource_Free, .-Resource_Free
.section .rodata
.align 2
.LC6:
.word __stack_chk_guard
.text
.align 2
.global Remove_Ready_Single
.syntax unified
.arm
.fpu softvfp
.type Remove_Ready_Single, %function
Remove_Ready_Single:
@ args = 0, pretend = 0, frame = 64
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #64
str r0, [fp, #-64]
str r1, [fp, #-68]
ldr r3, .L38
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
ldr r3, [fp, #-64]
str r3, [fp, #-60]
ldr r3, [fp, #-60]
ldr r3, [r3, #44]
str r3, [fp, #-56]
ldr r3, [fp, #-56]
sub ip, fp, #52
mov lr, r3
ldmia lr!, {r0, r1, r2, r3}
stmia ip!, {r0, r1, r2, r3}
ldmia lr!, {r0, r1, r2, r3}
stmia ip!, {r0, r1, r2, r3}
ldm lr, {r0, r1, r2}
stm ip, {r0, r1, r2}
b .L34
.L36:
ldr r3, [fp, #-56]
str r3, [fp, #-60]
ldr r3, [fp, #-56]
ldr r3, [r3, #44]
str r3, [fp, #-56]
ldr r3, [fp, #-56]
sub ip, fp, #52
mov lr, r3
ldmia lr!, {r0, r1, r2, r3}
stmia ip!, {r0, r1, r2, r3}
ldmia lr!, {r0, r1, r2, r3}
stmia ip!, {r0, r1, r2, r3}
ldm lr, {r0, r1, r2}
stm ip, {r0, r1, r2}
.L34:
ldr r3, [fp, #-56]
cmp r3, #0
beq .L35
ldr r2, [fp, #-68]
sub r3, fp, #52
mov r1, r2
mov r0, r3
bl strcmp
mov r3, r0
cmp r3, #0
bne .L36
.L35:
ldr r3, [fp, #-56]
ldr r2, [r3, #44]
ldr r3, [fp, #-60]
str r2, [r3, #44]
ldr r3, [fp, #-56]
mov r2, #0
str r2, [r3, #44]
nop
ldr r3, .L38
ldr r2, [r3]
ldr r3, [fp, #-8]
eors r2, r3, r2
mov r3, #0
beq .L37
bl __stack_chk_fail
.L37:
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L39:
.align 2
.L38:
.word .LC6
.size Remove_Ready_Single, .-Remove_Ready_Single
.align 2
.global Remove_Ready
.syntax unified
.arm
.fpu softvfp
.type Remove_Ready, %function
Remove_Ready:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #8
str r0, [fp, #-8]
ldr r3, [fp, #-8]
ldr r3, [r3, #16]
cmp r3, #2
bne .L41
ldr r3, .L45
ldr r3, [r3]
ldr r1, [fp, #-8]
mov r0, r3
bl Remove_Ready_Single
b .L44
.L41:
ldr r3, [fp, #-8]
ldr r3, [r3, #16]
cmp r3, #1
bne .L43
ldr r3, .L45+4
ldr r3, [r3]
ldr r1, [fp, #-8]
mov r0, r3
bl Remove_Ready_Single
b .L44
.L43:
ldr r3, [fp, #-8]
ldr r3, [r3, #16]
cmp r3, #0
bne .L44
ldr r3, .L45+8
ldr r3, [r3]
ldr r1, [fp, #-8]
mov r0, r3
bl Remove_Ready_Single
.L44:
nop
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L46:
.align 2
.L45:
.word System
.word User
.word Init
.size Remove_Ready, .-Remove_Ready
.align 2
.global Remove_Waiting
.syntax unified
.arm
.fpu softvfp
.type Remove_Waiting, %function
Remove_Waiting:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #20
str r0, [fp, #-16]
ldr r3, [fp, #-16]
ldr r3, [r3, #44]
cmp r3, #0
bne .L48
mov r3, #0
b .L49
.L48:
ldr r3, [fp, #-16]
ldr r3, [r3, #44]
str r3, [fp, #-8]
ldr r3, [fp, #-8]
.L49:
mov r0, r3
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size Remove_Waiting, .-Remove_Waiting
.align 2
.global Find_PCB
.syntax unified
.arm
.fpu softvfp
.type Find_PCB, %function
Find_PCB:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #12
ldr r3, .L55
ldr r3, [r3]
ldr r3, [r3, #44]
str r3, [fp, #-8]
ldr r3, [fp, #-8]
cmp r3, #0
beq .L51
ldr r3, [fp, #-8]
b .L52
.L51:
ldr r3, .L55+4
ldr r3, [r3]
ldr r3, [r3, #44]
str r3, [fp, #-8]
ldr r3, [fp, #-8]
cmp r3, #0
beq .L53
ldr r3, [fp, #-8]
b .L52
.L53:
ldr r3, .L55+8
ldr r3, [r3]
ldr r3, [r3, #44]
str r3, [fp, #-8]
ldr r3, [fp, #-8]
cmp r3, #0
beq .L54
ldr r3, [fp, #-8]
b .L52
.L54:
mov r3, #0
.L52:
mov r0, r3
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.L56:
.align 2
.L55:
.word System
.word User
.word Init
.size Find_PCB, .-Find_PCB
.align 2
.global Create
.syntax unified
.arm
.fpu softvfp
.type Create, %function
Create:
@ args = 0, pretend = 0, frame = 24
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #24
str r0, [fp, #-24]
str r1, [fp, #-28]
mov r0, #44
bl malloc
mov r3, r0
str r3, [fp, #-16]
ldr r3, [fp, #-16]
ldr r1, [fp, #-24]
mov r0, r3
bl strcpy
ldr r3, [fp, #-28]
ldrb r3, [r3] @ zero_extendqisi2
sub r2, r3, #48
ldr r3, [fp, #-16]
str r2, [r3, #16]
ldr r3, [fp, #-16]
mov r2, #1
str r2, [r3, #20]
ldr r3, [fp, #-16]
mov r2, #0
str r2, [r3, #24]
ldr r3, [fp, #-16]
mov r2, #0
str r2, [r3, #28]
mov r0, #16
bl malloc
mov r3, r0
str r3, [fp, #-12]
ldr r3, [fp, #-12]
mov r2, #0
str r2, [r3, #12]
ldr r3, [fp, #-16]
ldr r2, [fp, #-12]
str r2, [r3, #40]
mov r0, #48
bl malloc
mov r3, r0
str r3, [fp, #-8]
ldr r3, [fp, #-16]
ldr r2, [fp, #-8]
str r2, [r3, #36]
ldr r3, .L58
ldr r2, [r3]
ldr r3, [fp, #-16]
str r2, [r3, #32]
ldr r0, [fp, #-16]
bl Insert_Priority
bl Scheduler
nop
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L59:
.align 2
.L58:
.word CURRENT_RUNNING_PCB
.size Create, .-Create
.section .rodata
.align 2
.LC7:
.ascii "pid %s request %s for %d but ony have %d\012\000"
.text
.align 2
.global Request
.syntax unified
.arm
.fpu softvfp
.type Request, %function
Request:
@ args = 0, pretend = 0, frame = 24
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #32
str r0, [fp, #-16]
str r1, [fp, #-20]
str r2, [fp, #-24]
ldr r3, [fp, #-16]
ldr r2, [r3, #4]
ldr r3, [fp, #-24]
sub r3, r2, r3
cmp r3, #0
blt .L61
ldr r3, [fp, #-16]
ldr r2, [r3, #4]
ldr r3, [fp, #-24]
sub r2, r2, r3
ldr r3, [fp, #-16]
str r2, [r3, #4]
ldr r3, [fp, #-24]
str r3, [fp, #-8]
b .L62
.L63:
ldr r1, [fp, #-20]
ldr r0, [fp, #-16]
bl Resource_Alloc
.L62:
ldr r3, [fp, #-8]
sub r2, r3, #1
str r2, [fp, #-8]
cmp r3, #0
bgt .L63
b .L66
.L61:
ldr r3, [fp, #-16]
ldr r3, [r3]
ldr r2, [fp, #-24]
cmp r2, r3
ble .L65
ldr r3, .L67
ldr r0, [r3]
ldr r2, [fp, #-20]
ldr r3, [fp, #-16]
ldr r1, [r3]
ldr r3, [fp, #-16]
ldr r3, [r3]
str r3, [sp, #4]
ldr r3, [fp, #-24]
str r3, [sp]
mov r3, r1
ldr r1, .L67+4
bl fprintf
mov r0, #0
bl exit
.L65:
ldr r3, [fp, #-20]
mov r2, #2
str r2, [r3, #20]
ldr r3, [fp, #-20]
ldr r2, [fp, #-16]
str r2, [r3, #24]
ldr r3, [fp, #-20]
ldr r2, [fp, #-24]
str r2, [r3, #28]
ldr r0, [fp, #-20]
bl Remove_Ready
ldr r3, [fp, #-16]
ldr r3, [r3, #8]
ldr r1, [fp, #-20]
mov r0, r3
bl Insert
bl Scheduler
.L66:
nop
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L68:
.align 2
.L67:
.word stderr
.word .LC7
.size Request, .-Request
.align 2
.global Release
.syntax unified
.arm
.fpu softvfp
.type Release, %function
Release:
@ args = 0, pretend = 0, frame = 32
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #32
str r0, [fp, #-24]
str r1, [fp, #-28]
str r2, [fp, #-32]
ldr r2, [fp, #-32]
ldr r1, [fp, #-28]
ldr r0, [fp, #-24]
bl Resource_Free
ldr r3, [fp, #-24]
ldr r2, [r3, #4]
ldr r3, [fp, #-32]
add r2, r2, r3
ldr r3, [fp, #-24]
str r2, [r3, #4]
ldr r3, [fp, #-24]
ldr r3, [r3, #8]
ldr r3, [r3, #44]
str r3, [fp, #-16]
b .L70
.L74:
ldr r3, [fp, #-24]
ldr r2, [r3, #4]
ldr r3, [fp, #-16]
ldr r3, [r3, #28]
sub r2, r2, r3
ldr r3, [fp, #-24]
str r2, [r3, #4]
ldr r3, [fp, #-24]
ldr r3, [r3, #8]
mov r0, r3
bl Remove_Waiting
str r0, [fp, #-8]
ldr r3, [fp, #-8]
mov r2, #1
str r2, [r3, #20]
ldr r3, [fp, #-16]
ldr r3, [r3, #28]
str r3, [fp, #-12]
b .L71
.L72:
ldr r1, [fp, #-28]
ldr r0, [fp, #-24]
bl Resource_Alloc
.L71:
ldr r3, [fp, #-12]
sub r2, r3, #1
str r2, [fp, #-12]
cmp r3, #0
bgt .L72
ldr r0, [fp, #-28]
bl Insert_Priority
bl Scheduler
ldr r3, [fp, #-16]
ldr r3, [r3, #44]
str r3, [fp, #-16]
.L70:
ldr r3, [fp, #-16]
cmp r3, #0
beq .L75
ldr r3, [fp, #-24]
ldr r2, [r3, #4]
ldr r3, [fp, #-16]
ldr r3, [r3, #28]
cmp r2, r3
bge .L74
.L75:
nop
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.size Release, .-Release
.align 2
.global Scheduler
.syntax unified
.arm
.fpu softvfp
.type Scheduler, %function
Scheduler:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #16
bl Find_PCB
str r0, [fp, #-16]
ldr r3, [fp, #-16]
str r3, [fp, #-12]
ldr r3, .L82
ldr r3, [r3]
str r3, [fp, #-8]
ldr r3, [fp, #-8]
ldr r2, [r3, #16]
ldr r3, [fp, #-12]
ldr r3, [r3, #16]
cmp r2, r3
blt .L77
ldr r3, [fp, #-8]
ldr r3, [r3, #20]
cmp r3, #3
bne .L77
ldr r3, [fp, #-8]
cmp r3, #0
bne .L78
.L77:
ldr r3, [fp, #-8]
mov r2, #1
str r2, [r3, #20]
ldr r0, [fp, #-12]
bl preempt
nop
b .L81
.L78:
ldr r3, [fp, #-8]
ldr r3, [r3, #20]
cmp r3, #3
bne .L80
ldr r3, [fp, #-8]
cmp r3, #0
bne .L81
.L80:
ldr r0, [fp, #-12]
bl preempt
.L81:
nop
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L83:
.align 2
.L82:
.word CURRENT_RUNNING_PCB
.size Scheduler, .-Scheduler
.section .rodata
.align 2
.LC8:
.ascii "PID %s Running at Priority %d \012\000"
.align 2
.LC9:
.ascii "Occupied Resource :\000"
.align 2
.LC10:
.ascii "None\000"
.align 2
.LC11:
.ascii "%d Left: %d\000"
.text
.align 2
.global preempt
.syntax unified
.arm
.fpu softvfp
.type preempt, %function
preempt:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #16
str r0, [fp, #-16]
ldr r2, .L90
ldr r3, [fp, #-16]
str r3, [r2]
ldr r1, [fp, #-16]
ldr r3, [fp, #-16]
ldr r3, [r3, #16]
mov r2, r3
ldr r0, .L90+4
bl printf
ldr r0, .L90+8
bl printf
ldr r3, [fp, #-16]
ldr r3, [r3, #40]
str r3, [fp, #-8]
ldr r3, [fp, #-8]
ldr r3, [r3, #12]
str r3, [fp, #-8]
ldr r3, [fp, #-8]
cmp r3, #0
bne .L87
ldr r0, .L90+12
bl puts
b .L89
.L88:
ldr r3, [fp, #-8]
ldr r1, [r3]
ldr r3, [fp, #-8]
ldr r3, [r3, #4]
mov r2, r3
ldr r0, .L90+16
bl printf
ldr r3, [fp, #-8]
ldr r3, [r3, #12]
str r3, [fp, #-8]
.L87:
ldr r3, [fp, #-8]
cmp r3, #0
bne .L88
mov r0, #10
bl putchar
.L89:
nop
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L91:
.align 2
.L90:
.word CURRENT_RUNNING_PCB
.word .LC8
.word .LC9
.word .LC10
.word .LC11
.size preempt, .-preempt
.align 2
.global init_resource
.syntax unified
.arm
.fpu softvfp
.type init_resource, %function
init_resource:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #16
mov r0, #12
bl malloc
mov r3, r0
mov r2, r3
ldr r3, .L93
str r2, [r3]
ldr r3, .L93
ldr r3, [r3]
mov r2, #1
str r2, [r3]
ldr r3, .L93
ldr r3, [r3]
mov r2, #1
str r2, [r3, #4]
mov r0, #48
bl malloc
mov r3, r0
str r3, [fp, #-20]
ldr r3, .L93
ldr r3, [r3]
ldr r2, [fp, #-20]
str r2, [r3, #8]
mov r0, #12
bl malloc
mov r3, r0
mov r2, r3
ldr r3, .L93+4
str r2, [r3]
ldr r3, .L93+4
ldr r3, [r3]
mov r2, #2
str r2, [r3]
ldr r3, .L93+4
ldr r3, [r3]
mov r2, #2
str r2, [r3, #4]
mov r0, #48
bl malloc
mov r3, r0
str r3, [fp, #-16]
ldr r3, .L93+4
ldr r3, [r3]
ldr r2, [fp, #-16]
str r2, [r3, #8]
mov r0, #12
bl malloc
mov r3, r0
mov r2, r3
ldr r3, .L93+8
str r2, [r3]
ldr r3, .L93+8
ldr r3, [r3]
mov r2, #3
str r2, [r3]
ldr r3, .L93+8
ldr r3, [r3]
mov r2, #3
str r2, [r3, #4]
mov r0, #48
bl malloc
mov r3, r0
str r3, [fp, #-12]
ldr r3, .L93+8
ldr r3, [r3]
ldr r2, [fp, #-12]
str r2, [r3, #8]
mov r0, #12
bl malloc
mov r3, r0
mov r2, r3
ldr r3, .L93+12
str r2, [r3]
ldr r3, .L93+12
ldr r3, [r3]
mov r2, #4
str r2, [r3]
ldr r3, .L93+12
ldr r3, [r3]
mov r2, #4
str r2, [r3, #4]
mov r0, #48
bl malloc
mov r3, r0
str r3, [fp, #-8]
ldr r3, .L93+12
ldr r3, [r3]
ldr r2, [fp, #-8]
str r2, [r3, #8]
nop
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L94:
.align 2
.L93:
.word R1
.word R2
.word R3
.word R4
.size init_resource, .-init_resource
.section .rodata
.align 2
.LC12:
.ascii "init\000"
.align 2
.LC13:
.word __stack_chk_guard
.text
.align 2
.global init_process
.syntax unified
.arm
.fpu softvfp
.type init_process, %function
init_process:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #16
ldr r3, .L97
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
ldr r3, .L97+4
str r3, [fp, #-12]
mov r3, #48
strb r3, [fp, #-13]
sub r3, fp, #13
mov r1, r3
ldr r0, [fp, #-12]
bl Create
nop
ldr r3, .L97
ldr r2, [r3]
ldr r3, [fp, #-8]
eors r2, r3, r2
mov r3, #0
beq .L96
bl __stack_chk_fail
.L96:
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L98:
.align 2
.L97:
.word .LC13
.word .LC12
.size init_process, .-init_process
.align 2
.global Time_Out
.syntax unified
.arm
.fpu softvfp
.type Time_Out, %function
Time_Out:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #8
ldr r3, .L100
ldr r3, [r3]
str r3, [fp, #-8]
ldr r0, [fp, #-8]
bl Remove_Ready
ldr r3, [fp, #-8]
mov r2, #1
str r2, [r3, #20]
ldr r0, [fp, #-8]
bl Insert_Priority
bl Scheduler
nop
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L101:
.align 2
.L100:
.word CURRENT_RUNNING_PCB
.size Time_Out, .-Time_Out
.section .rodata
.align 2
.LC14:
.ascii "Command is %s\012type: %d\012\000"
.align 2
.LC15:
.ascii "commd is %s Name is %s, Pri : %s\012\000"
.align 2
.LC16:
.ascii "res is %s\012\000"
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 32
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #32
bl init_resource
bl init_process
mov r0, #64
bl malloc
mov r3, r0
str r3, [fp, #-32]
b .L103
.L105:
mov r0, #4
bl malloc
mov r3, r0
str r3, [fp, #-28]
ldr r1, [fp, #-32]
ldr r0, [fp, #-28]
bl parser
str r0, [fp, #-24]
ldr r0, [fp, #-28]
bl cmd_type
mov r3, r0
mov r2, r3
ldr r1, [fp, #-28]
ldr r0, .L107
bl printf
ldr r0, [fp, #-28]
bl cmd_type
str r0, [fp, #-20]
ldr r3, [fp, #-20]
cmp r3, #0
bne .L104
mov r0, #16
bl malloc
mov r3, r0
str r3, [fp, #-12]
ldr r1, [fp, #-24]
ldr r0, [fp, #-12]
bl parser
str r0, [fp, #-24]
mov r0, #1
bl malloc
mov r3, r0
str r3, [fp, #-8]
ldr r1, [fp, #-24]
ldr r0, [fp, #-8]
bl parser
ldr r3, [fp, #-8]
ldr r2, [fp, #-12]
ldr r1, [fp, #-28]
ldr r0, .L107+4
bl printf
ldr r1, [fp, #-8]
ldr r0, [fp, #-12]
bl Create
b .L103
.L104:
ldr r3, [fp, #-20]
cmp r3, #2
bne .L103
mov r0, #4
bl malloc
mov r3, r0
str r3, [fp, #-16]
ldr r1, [fp, #-24]
ldr r0, [fp, #-16]
bl parser
str r0, [fp, #-24]
ldr r1, [fp, #-16]
ldr r0, .L107+8
bl printf
.L103:
ldr r3, .L107+12
ldr r3, [r3]
mov r2, r3
mov r1, #64
ldr r0, [fp, #-32]
bl fgets
mov r3, r0
cmp r3, #0
bne .L105
ldr r0, [fp, #-32]
bl free
mov r3, #0
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L108:
.align 2
.L107:
.word .LC14
.word .LC15
.word .LC16
.word stdin
.size main, .-main
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "175771.c"
.intel_syntax noprefix
.text
.globl wmemchr
.type wmemchr, @function
wmemchr:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov QWORD PTR -8[rbp], rdi
mov DWORD PTR -12[rbp], esi
mov QWORD PTR -24[rbp], rdx
jmp .L2
.L8:
mov rax, QWORD PTR -8[rbp]
mov eax, DWORD PTR [rax]
cmp DWORD PTR -12[rbp], eax
jne .L3
mov rax, QWORD PTR -8[rbp]
jmp .L4
.L3:
mov rax, QWORD PTR -8[rbp]
add rax, 4
mov eax, DWORD PTR [rax]
cmp DWORD PTR -12[rbp], eax
jne .L5
mov rax, QWORD PTR -8[rbp]
add rax, 4
jmp .L4
.L5:
mov rax, QWORD PTR -8[rbp]
add rax, 8
mov eax, DWORD PTR [rax]
cmp DWORD PTR -12[rbp], eax
jne .L6
mov rax, QWORD PTR -8[rbp]
add rax, 8
jmp .L4
.L6:
mov rax, QWORD PTR -8[rbp]
add rax, 12
mov eax, DWORD PTR [rax]
cmp DWORD PTR -12[rbp], eax
jne .L7
mov rax, QWORD PTR -8[rbp]
add rax, 12
jmp .L4
.L7:
add QWORD PTR -8[rbp], 16
sub QWORD PTR -24[rbp], 4
.L2:
cmp QWORD PTR -24[rbp], 3
ja .L8
cmp QWORD PTR -24[rbp], 0
je .L9
mov rax, QWORD PTR -8[rbp]
mov eax, DWORD PTR [rax]
cmp DWORD PTR -12[rbp], eax
jne .L10
mov rax, QWORD PTR -8[rbp]
jmp .L4
.L10:
add QWORD PTR -8[rbp], 4
sub QWORD PTR -24[rbp], 1
.L9:
cmp QWORD PTR -24[rbp], 0
je .L11
mov rax, QWORD PTR -8[rbp]
mov eax, DWORD PTR [rax]
cmp DWORD PTR -12[rbp], eax
jne .L12
mov rax, QWORD PTR -8[rbp]
jmp .L4
.L12:
add QWORD PTR -8[rbp], 4
sub QWORD PTR -24[rbp], 1
.L11:
cmp QWORD PTR -24[rbp], 0
je .L13
mov rax, QWORD PTR -8[rbp]
mov eax, DWORD PTR [rax]
cmp DWORD PTR -12[rbp], eax
jne .L13
mov rax, QWORD PTR -8[rbp]
jmp .L4
.L13:
mov eax, 0
.L4:
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size wmemchr, .-wmemchr
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "175771.c"
.text
.align 2
.global wmemchr
.syntax unified
.arm
.fpu softvfp
.type wmemchr, %function
wmemchr:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #20
str r0, [fp, #-8]
str r1, [fp, #-12]
str r2, [fp, #-16]
b .L2
.L8:
ldr r3, [fp, #-8]
ldr r3, [r3]
ldr r2, [fp, #-12]
cmp r2, r3
bne .L3
ldr r3, [fp, #-8]
b .L4
.L3:
ldr r3, [fp, #-8]
add r3, r3, #4
ldr r3, [r3]
ldr r2, [fp, #-12]
cmp r2, r3
bne .L5
ldr r3, [fp, #-8]
add r3, r3, #4
b .L4
.L5:
ldr r3, [fp, #-8]
add r3, r3, #8
ldr r3, [r3]
ldr r2, [fp, #-12]
cmp r2, r3
bne .L6
ldr r3, [fp, #-8]
add r3, r3, #8
b .L4
.L6:
ldr r3, [fp, #-8]
add r3, r3, #12
ldr r3, [r3]
ldr r2, [fp, #-12]
cmp r2, r3
bne .L7
ldr r3, [fp, #-8]
add r3, r3, #12
b .L4
.L7:
ldr r3, [fp, #-8]
add r3, r3, #16
str r3, [fp, #-8]
ldr r3, [fp, #-16]
sub r3, r3, #4
str r3, [fp, #-16]
.L2:
ldr r3, [fp, #-16]
cmp r3, #3
bhi .L8
ldr r3, [fp, #-16]
cmp r3, #0
beq .L9
ldr r3, [fp, #-8]
ldr r3, [r3]
ldr r2, [fp, #-12]
cmp r2, r3
bne .L10
ldr r3, [fp, #-8]
b .L4
.L10:
ldr r3, [fp, #-8]
add r3, r3, #4
str r3, [fp, #-8]
ldr r3, [fp, #-16]
sub r3, r3, #1
str r3, [fp, #-16]
.L9:
ldr r3, [fp, #-16]
cmp r3, #0
beq .L11
ldr r3, [fp, #-8]
ldr r3, [r3]
ldr r2, [fp, #-12]
cmp r2, r3
bne .L12
ldr r3, [fp, #-8]
b .L4
.L12:
ldr r3, [fp, #-8]
add r3, r3, #4
str r3, [fp, #-8]
ldr r3, [fp, #-16]
sub r3, r3, #1
str r3, [fp, #-16]
.L11:
ldr r3, [fp, #-16]
cmp r3, #0
beq .L13
ldr r3, [fp, #-8]
ldr r3, [r3]
ldr r2, [fp, #-12]
cmp r2, r3
bne .L13
ldr r3, [fp, #-8]
b .L4
.L13:
mov r3, #0
.L4:
mov r0, r3
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size wmemchr, .-wmemchr
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "152037.c"
.intel_syntax noprefix
.text
.section .rodata
.LC0:
.string "Can not fork\n"
.LC1:
.string "New process\n"
.LC2:
.string "Forked child %d\n"
.text
.globl main
.type main, @function
main:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
call fork@PLT
mov DWORD PTR -4[rbp], eax
cmp DWORD PTR -4[rbp], 0
jns .L2
mov rax, QWORD PTR stdout[rip]
mov rcx, rax
mov edx, 13
mov esi, 1
lea rdi, .LC0[rip]
call fwrite@PLT
mov eax, 1
jmp .L3
.L2:
cmp DWORD PTR -4[rbp], 0
jne .L4
mov rax, QWORD PTR stdout[rip]
mov rcx, rax
mov edx, 12
mov esi, 1
lea rdi, .LC1[rip]
call fwrite@PLT
jmp .L5
.L4:
mov rax, QWORD PTR stdout[rip]
mov edx, DWORD PTR -4[rbp]
lea rsi, .LC2[rip]
mov rdi, rax
mov eax, 0
call fprintf@PLT
.L5:
mov eax, 0
.L3:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size main, .-main
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "152037.c"
.text
.section .rodata
.align 2
.LC0:
.ascii "Can not fork\012\000"
.align 2
.LC1:
.ascii "New process\012\000"
.align 2
.LC2:
.ascii "Forked child %d\012\000"
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #8
bl fork
mov r3, r0
str r3, [fp, #-8]
ldr r3, [fp, #-8]
cmp r3, #0
bge .L2
ldr r3, .L6
ldr r3, [r3]
mov r2, #13
mov r1, #1
ldr r0, .L6+4
bl fwrite
mov r3, #1
b .L3
.L2:
ldr r3, [fp, #-8]
cmp r3, #0
bne .L4
ldr r3, .L6
ldr r3, [r3]
mov r2, #12
mov r1, #1
ldr r0, .L6+8
bl fwrite
b .L5
.L4:
ldr r3, .L6
ldr r3, [r3]
ldr r2, [fp, #-8]
ldr r1, .L6+12
mov r0, r3
bl fprintf
.L5:
mov r3, #0
.L3:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L7:
.align 2
.L6:
.word stdout
.word .LC0
.word .LC1
.word .LC2
.size main, .-main
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "257084.c"
.intel_syntax noprefix
.text
.section .rodata
.LC0:
.string "%d"
.text
.globl main
.type main, @function
main:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 32
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
lea rax, -20[rbp]
mov rsi, rax
lea rdi, .LC0[rip]
mov eax, 0
call __isoc99_scanf@PLT
mov eax, DWORD PTR -20[rbp]
mov DWORD PTR -16[rbp], eax
jmp .L2
.L7:
mov DWORD PTR -12[rbp], 0
jmp .L3
.L4:
mov edi, 32
call putchar@PLT
add DWORD PTR -12[rbp], 1
.L3:
mov eax, DWORD PTR -20[rbp]
sub eax, DWORD PTR -16[rbp]
cmp DWORD PTR -12[rbp], eax
jl .L4
mov DWORD PTR -12[rbp], 0
jmp .L5
.L6:
mov edi, 42
call putchar@PLT
add DWORD PTR -12[rbp], 1
.L5:
mov eax, DWORD PTR -12[rbp]
cmp eax, DWORD PTR -16[rbp]
jl .L6
mov edi, 10
call putchar@PLT
sub DWORD PTR -16[rbp], 1
.L2:
cmp DWORD PTR -16[rbp], 0
jg .L7
mov eax, 0
mov rdx, QWORD PTR -8[rbp]
sub rdx, QWORD PTR fs:40
je .L9
call __stack_chk_fail@PLT
.L9:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size main, .-main
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "257084.c"
.text
.section .rodata
.align 2
.LC0:
.ascii "%d\000"
.align 2
.LC1:
.word __stack_chk_guard
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #16
ldr r3, .L10
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
sub r3, fp, #20
mov r1, r3
ldr r0, .L10+4
bl __isoc99_scanf
ldr r3, [fp, #-20]
str r3, [fp, #-16]
b .L2
.L7:
mov r3, #0
str r3, [fp, #-12]
b .L3
.L4:
mov r0, #32
bl putchar
ldr r3, [fp, #-12]
add r3, r3, #1
str r3, [fp, #-12]
.L3:
ldr r2, [fp, #-20]
ldr r3, [fp, #-16]
sub r3, r2, r3
ldr r2, [fp, #-12]
cmp r2, r3
blt .L4
mov r3, #0
str r3, [fp, #-12]
b .L5
.L6:
mov r0, #42
bl putchar
ldr r3, [fp, #-12]
add r3, r3, #1
str r3, [fp, #-12]
.L5:
ldr r2, [fp, #-12]
ldr r3, [fp, #-16]
cmp r2, r3
blt .L6
mov r0, #10
bl putchar
ldr r3, [fp, #-16]
sub r3, r3, #1
str r3, [fp, #-16]
.L2:
ldr r3, [fp, #-16]
cmp r3, #0
bgt .L7
mov r3, #0
ldr r2, .L10
ldr r1, [r2]
ldr r2, [fp, #-8]
eors r1, r2, r1
mov r2, #0
beq .L9
bl __stack_chk_fail
.L9:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L11:
.align 2
.L10:
.word .LC1
.word .LC0
.size main, .-main
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "637166.c"
.intel_syntax noprefix
.text
.section .rodata
.LC0:
.string "Dummy test"
.text
.globl main
.type main, @function
main:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
lea rdi, .LC0[rip]
call puts@PLT
mov eax, 0
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size main, .-main
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "637166.c"
.text
.section .rodata
.align 2
.LC0:
.ascii "Dummy test\000"
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
ldr r0, .L3
bl puts
mov r3, #0
mov r0, r3
pop {fp, pc}
.L4:
.align 2
.L3:
.word .LC0
.size main, .-main
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "950311.c"
.intel_syntax noprefix
.text
.globl main
.type main, @function
main:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov DWORD PTR -4[rbp], 0
jmp .L2
.L3:
mov rdx, QWORD PTR environ[rip]
mov eax, DWORD PTR -4[rbp]
cdqe
sal rax, 3
add rax, rdx
mov rax, QWORD PTR [rax]
mov rdi, rax
call puts@PLT
add DWORD PTR -4[rbp], 1
.L2:
mov rdx, QWORD PTR environ[rip]
mov eax, DWORD PTR -4[rbp]
cdqe
sal rax, 3
add rax, rdx
mov rax, QWORD PTR [rax]
test rax, rax
jne .L3
call getchar@PLT
mov eax, 0
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size main, .-main
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "950311.c"
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #8
mov r3, #0
str r3, [fp, #-8]
b .L2
.L3:
ldr r3, .L5
ldr r2, [r3]
ldr r3, [fp, #-8]
lsl r3, r3, #2
add r3, r2, r3
ldr r3, [r3]
mov r0, r3
bl puts
ldr r3, [fp, #-8]
add r3, r3, #1
str r3, [fp, #-8]
.L2:
ldr r3, .L5
ldr r2, [r3]
ldr r3, [fp, #-8]
lsl r3, r3, #2
add r3, r2, r3
ldr r3, [r3]
cmp r3, #0
bne .L3
bl getchar
mov r3, #0
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L6:
.align 2
.L5:
.word environ
.size main, .-main
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "754602.c"
.intel_syntax noprefix
.text
.globl ft_isspace
.type ft_isspace, @function
ft_isspace:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov DWORD PTR -4[rbp], edi
cmp DWORD PTR -4[rbp], 32
je .L2
cmp DWORD PTR -4[rbp], 8
jle .L3
cmp DWORD PTR -4[rbp], 13
jg .L3
.L2:
mov eax, 1
jmp .L4
.L3:
mov eax, 0
.L4:
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ft_isspace, .-ft_isspace
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "754602.c"
.text
.align 2
.global ft_isspace
.syntax unified
.arm
.fpu softvfp
.type ft_isspace, %function
ft_isspace:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #12
str r0, [fp, #-8]
ldr r3, [fp, #-8]
cmp r3, #32
beq .L2
ldr r3, [fp, #-8]
cmp r3, #8
ble .L3
ldr r3, [fp, #-8]
cmp r3, #13
bgt .L3
.L2:
mov r3, #1
b .L4
.L3:
mov r3, #0
.L4:
mov r0, r3
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size ft_isspace, .-ft_isspace
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "793402.c"
.intel_syntax noprefix
.text
.section .rodata
.align 8
.LC0:
.ascii "sta"
.string "tic bool find_embedded_file(const std::string &name, std::string &data) {\n const struct embedded_file *p;\n for (p = embedded_files; p->name != NULL; p++) {\n if (*p->name == name) {\n data = *p->data;\n return true;\n }\n }\n return false;\n}\n"
.section .data.rel.local,"aw"
.align 8
.type code, @object
.size code, 8
code:
.quad .LC0
.section .rodata
.LC1:
.string "w"
.LC2:
.string "translation_files.h"
.LC3:
.string "#ifndef TRANSLATION_FILES_H\n"
.LC4:
.string "#define TRANSLATION_FILES_H\n\n"
.LC5:
.string "#include <string>\n\n"
.LC6:
.string "rb"
.align 8
.LC7:
.string "static const std::string translation_file_name_%d = \"%s\";\n"
.align 8
.LC8:
.string "static const std::string translation_file_data_%d = std::string("
.LC9:
.string "\n \""
.LC10:
.string "\\x%02x"
.LC11:
.string "\",\n %d);\n\n"
.align 8
.LC12:
.string "static const struct embedded_file {\n"
.LC13:
.string " const std::string *name;\n"
.LC14:
.string " const std::string *data;\n"
.LC15:
.string "} embedded_files[] = {\n"
.align 8
.LC16:
.string " {&translation_file_name_%d, &translation_file_data_%d},\n"
.LC17:
.string " {NULL, NULL}\n"
.LC18:
.string "};\n\n"
.LC19:
.string "%s\n"
.align 8
.LC20:
.string "#endif /* TRANSLATION_FILES_H */\n"
.text
.globl main
.type main, @function
main:
.LFB6:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 48
mov DWORD PTR -36[rbp], edi
mov QWORD PTR -48[rbp], rsi
lea rsi, .LC1[rip]
lea rdi, .LC2[rip]
call fopen@PLT
mov QWORD PTR -16[rbp], rax
cmp QWORD PTR -16[rbp], 0
jne .L2
mov edi, 1
call exit@PLT
.L2:
mov rax, QWORD PTR -16[rbp]
mov rcx, rax
mov edx, 28
mov esi, 1
lea rdi, .LC3[rip]
call fwrite@PLT
mov rax, QWORD PTR -16[rbp]
mov rcx, rax
mov edx, 29
mov esi, 1
lea rdi, .LC4[rip]
call fwrite@PLT
mov rax, QWORD PTR -16[rbp]
mov rcx, rax
mov edx, 19
mov esi, 1
lea rdi, .LC5[rip]
call fwrite@PLT
mov DWORD PTR -28[rbp], 1
jmp .L3
.L9:
mov eax, DWORD PTR -28[rbp]
cdqe
lea rdx, 0[0+rax*8]
mov rax, QWORD PTR -48[rbp]
add rax, rdx
mov rax, QWORD PTR [rax]
lea rsi, .LC6[rip]
mov rdi, rax
call fopen@PLT
mov QWORD PTR -8[rbp], rax
cmp QWORD PTR -8[rbp], 0
jne .L4
mov rax, QWORD PTR -16[rbp]
mov rdi, rax
call fclose@PLT
mov edi, 1
call exit@PLT
.L4:
mov eax, DWORD PTR -28[rbp]
cdqe
lea rdx, 0[0+rax*8]
mov rax, QWORD PTR -48[rbp]
add rax, rdx
mov rcx, QWORD PTR [rax]
mov edx, DWORD PTR -28[rbp]
mov rax, QWORD PTR -16[rbp]
lea rsi, .LC7[rip]
mov rdi, rax
mov eax, 0
call fprintf@PLT
mov edx, DWORD PTR -28[rbp]
mov rax, QWORD PTR -16[rbp]
lea rsi, .LC8[rip]
mov rdi, rax
mov eax, 0
call fprintf@PLT
mov DWORD PTR -24[rbp], 0
jmp .L5
.L8:
mov eax, DWORD PTR -24[rbp]
and eax, 15
test eax, eax
jne .L6
cmp DWORD PTR -24[rbp], 0
jle .L7
mov rax, QWORD PTR -16[rbp]
mov rsi, rax
mov edi, 34
call fputc@PLT
.L7:
mov rax, QWORD PTR -16[rbp]
mov rcx, rax
mov edx, 4
mov esi, 1
lea rdi, .LC9[rip]
call fwrite@PLT
.L6:
mov edx, DWORD PTR -20[rbp]
mov rax, QWORD PTR -16[rbp]
lea rsi, .LC10[rip]
mov rdi, rax
mov eax, 0
call fprintf@PLT
add DWORD PTR -24[rbp], 1
.L5:
mov rax, QWORD PTR -8[rbp]
mov rdi, rax
call fgetc@PLT
mov DWORD PTR -20[rbp], eax
cmp DWORD PTR -20[rbp], -1
jne .L8
mov edx, DWORD PTR -24[rbp]
mov rax, QWORD PTR -16[rbp]
lea rsi, .LC11[rip]
mov rdi, rax
mov eax, 0
call fprintf@PLT
mov rax, QWORD PTR -8[rbp]
mov rdi, rax
call fclose@PLT
add DWORD PTR -28[rbp], 1
.L3:
mov eax, DWORD PTR -28[rbp]
cmp eax, DWORD PTR -36[rbp]
jl .L9
mov rax, QWORD PTR -16[rbp]
mov rcx, rax
mov edx, 36
mov esi, 1
lea rdi, .LC12[rip]
call fwrite@PLT
mov rax, QWORD PTR -16[rbp]
mov rcx, rax
mov edx, 27
mov esi, 1
lea rdi, .LC13[rip]
call fwrite@PLT
mov rax, QWORD PTR -16[rbp]
mov rcx, rax
mov edx, 27
mov esi, 1
lea rdi, .LC14[rip]
call fwrite@PLT
mov rax, QWORD PTR -16[rbp]
mov rcx, rax
mov edx, 23
mov esi, 1
lea rdi, .LC15[rip]
call fwrite@PLT
mov DWORD PTR -28[rbp], 1
jmp .L10
.L11:
mov ecx, DWORD PTR -28[rbp]
mov edx, DWORD PTR -28[rbp]
mov rax, QWORD PTR -16[rbp]
lea rsi, .LC16[rip]
mov rdi, rax
mov eax, 0
call fprintf@PLT
add DWORD PTR -28[rbp], 1
.L10:
mov eax, DWORD PTR -28[rbp]
cmp eax, DWORD PTR -36[rbp]
jl .L11
mov rax, QWORD PTR -16[rbp]
mov rcx, rax
mov edx, 15
mov esi, 1
lea rdi, .LC17[rip]
call fwrite@PLT
mov rax, QWORD PTR -16[rbp]
mov rcx, rax
mov edx, 4
mov esi, 1
lea rdi, .LC18[rip]
call fwrite@PLT
mov rdx, QWORD PTR code[rip]
mov rax, QWORD PTR -16[rbp]
lea rsi, .LC19[rip]
mov rdi, rax
mov eax, 0
call fprintf@PLT
mov rax, QWORD PTR -16[rbp]
mov rcx, rax
mov edx, 33
mov esi, 1
lea rdi, .LC20[rip]
call fwrite@PLT
mov rax, QWORD PTR -16[rbp]
mov rdi, rax
call fclose@PLT
mov eax, 0
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size main, .-main
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "793402.c"
.text
.section .rodata
.align 2
.LC0:
.ascii "static bool find_embedded_file(const std::string &n"
.ascii "ame, std::string &data) {\012 const struct embedde"
.ascii "d_file *p;\012 for (p = embedded_files; p->name !="
.ascii " NULL; p++) {\012 if (*p->name == name) {\012 "
.ascii " data = *p->data;\012 return true;\012 }\012"
.ascii " }\012 return false;\012}\012\000"
.data
.align 2
.type code, %object
.size code, 4
code:
.word .LC0
.section .rodata
.align 2
.LC1:
.ascii "w\000"
.align 2
.LC2:
.ascii "translation_files.h\000"
.align 2
.LC3:
.ascii "#ifndef TRANSLATION_FILES_H\012\000"
.align 2
.LC4:
.ascii "#define TRANSLATION_FILES_H\012\012\000"
.align 2
.LC5:
.ascii "#include <string>\012\012\000"
.align 2
.LC6:
.ascii "rb\000"
.align 2
.LC7:
.ascii "static const std::string translation_file_name_%d ="
.ascii " \"%s\";\012\000"
.align 2
.LC8:
.ascii "static const std::string translation_file_data_%d ="
.ascii " std::string(\000"
.align 2
.LC9:
.ascii "\012 \"\000"
.align 2
.LC10:
.ascii "\\x%02x\000"
.align 2
.LC11:
.ascii "\",\012 %d);\012\012\000"
.align 2
.LC12:
.ascii "static const struct embedded_file {\012\000"
.align 2
.LC13:
.ascii " const std::string *name;\012\000"
.align 2
.LC14:
.ascii " const std::string *data;\012\000"
.align 2
.LC15:
.ascii "} embedded_files[] = {\012\000"
.align 2
.LC16:
.ascii " {&translation_file_name_%d, &translation_file_dat"
.ascii "a_%d},\012\000"
.align 2
.LC17:
.ascii " {NULL, NULL}\012\000"
.align 2
.LC18:
.ascii "};\012\012\000"
.align 2
.LC19:
.ascii "%s\012\000"
.align 2
.LC20:
.ascii "#endif /* TRANSLATION_FILES_H */\012\000"
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 32
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #32
str r0, [fp, #-32]
str r1, [fp, #-36]
ldr r1, .L13
ldr r0, .L13+4
bl fopen
str r0, [fp, #-16]
ldr r3, [fp, #-16]
cmp r3, #0
bne .L2
mov r0, #1
bl exit
.L2:
ldr r3, [fp, #-16]
mov r2, #28
mov r1, #1
ldr r0, .L13+8
bl fwrite
ldr r3, [fp, #-16]
mov r2, #29
mov r1, #1
ldr r0, .L13+12
bl fwrite
ldr r3, [fp, #-16]
mov r2, #19
mov r1, #1
ldr r0, .L13+16
bl fwrite
mov r3, #1
str r3, [fp, #-24]
b .L3
.L9:
ldr r3, [fp, #-24]
lsl r3, r3, #2
ldr r2, [fp, #-36]
add r3, r2, r3
ldr r3, [r3]
ldr r1, .L13+20
mov r0, r3
bl fopen
str r0, [fp, #-12]
ldr r3, [fp, #-12]
cmp r3, #0
bne .L4
ldr r0, [fp, #-16]
bl fclose
mov r0, #1
bl exit
.L4:
ldr r3, [fp, #-24]
lsl r3, r3, #2
ldr r2, [fp, #-36]
add r3, r2, r3
ldr r3, [r3]
ldr r2, [fp, #-24]
ldr r1, .L13+24
ldr r0, [fp, #-16]
bl fprintf
ldr r2, [fp, #-24]
ldr r1, .L13+28
ldr r0, [fp, #-16]
bl fprintf
mov r3, #0
str r3, [fp, #-20]
b .L5
.L8:
ldr r3, [fp, #-20]
and r3, r3, #15
cmp r3, #0
bne .L6
ldr r3, [fp, #-20]
cmp r3, #0
ble .L7
ldr r1, [fp, #-16]
mov r0, #34
bl fputc
.L7:
ldr r3, [fp, #-16]
mov r2, #4
mov r1, #1
ldr r0, .L13+32
bl fwrite
.L6:
ldr r2, [fp, #-8]
ldr r1, .L13+36
ldr r0, [fp, #-16]
bl fprintf
ldr r3, [fp, #-20]
add r3, r3, #1
str r3, [fp, #-20]
.L5:
ldr r0, [fp, #-12]
bl fgetc
str r0, [fp, #-8]
ldr r3, [fp, #-8]
cmn r3, #1
bne .L8
ldr r2, [fp, #-20]
ldr r1, .L13+40
ldr r0, [fp, #-16]
bl fprintf
ldr r0, [fp, #-12]
bl fclose
ldr r3, [fp, #-24]
add r3, r3, #1
str r3, [fp, #-24]
.L3:
ldr r2, [fp, #-24]
ldr r3, [fp, #-32]
cmp r2, r3
blt .L9
ldr r3, [fp, #-16]
mov r2, #36
mov r1, #1
ldr r0, .L13+44
bl fwrite
ldr r3, [fp, #-16]
mov r2, #27
mov r1, #1
ldr r0, .L13+48
bl fwrite
ldr r3, [fp, #-16]
mov r2, #27
mov r1, #1
ldr r0, .L13+52
bl fwrite
ldr r3, [fp, #-16]
mov r2, #23
mov r1, #1
ldr r0, .L13+56
bl fwrite
mov r3, #1
str r3, [fp, #-24]
b .L10
.L11:
ldr r3, [fp, #-24]
ldr r2, [fp, #-24]
ldr r1, .L13+60
ldr r0, [fp, #-16]
bl fprintf
ldr r3, [fp, #-24]
add r3, r3, #1
str r3, [fp, #-24]
.L10:
ldr r2, [fp, #-24]
ldr r3, [fp, #-32]
cmp r2, r3
blt .L11
ldr r3, [fp, #-16]
mov r2, #15
mov r1, #1
ldr r0, .L13+64
bl fwrite
ldr r3, [fp, #-16]
mov r2, #4
mov r1, #1
ldr r0, .L13+68
bl fwrite
ldr r3, .L13+72
ldr r3, [r3]
mov r2, r3
ldr r1, .L13+76
ldr r0, [fp, #-16]
bl fprintf
ldr r3, [fp, #-16]
mov r2, #33
mov r1, #1
ldr r0, .L13+80
bl fwrite
ldr r0, [fp, #-16]
bl fclose
mov r3, #0
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L14:
.align 2
.L13:
.word .LC1
.word .LC2
.word .LC3
.word .LC4
.word .LC5
.word .LC6
.word .LC7
.word .LC8
.word .LC9
.word .LC10
.word .LC11
.word .LC12
.word .LC13
.word .LC14
.word .LC15
.word .LC16
.word .LC17
.word .LC18
.word code
.word .LC19
.word .LC20
.size main, .-main
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "695461.c"
.intel_syntax noprefix
.text
.globl compare_struct
.type compare_struct, @function
compare_struct:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov QWORD PTR -8[rbp], rdi
mov QWORD PTR -16[rbp], rsi
mov rax, QWORD PTR -8[rbp]
mov edx, DWORD PTR [rax]
mov rax, QWORD PTR -16[rbp]
mov eax, DWORD PTR [rax]
cmp edx, eax
je .L2
mov rax, QWORD PTR -8[rbp]
mov edx, DWORD PTR [rax]
mov rax, QWORD PTR -16[rbp]
mov ecx, DWORD PTR [rax]
mov eax, edx
sub eax, ecx
jmp .L3
.L2:
mov rax, QWORD PTR -8[rbp]
mov edx, DWORD PTR 4[rax]
mov rax, QWORD PTR -16[rbp]
mov ecx, DWORD PTR 4[rax]
mov eax, edx
sub eax, ecx
.L3:
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size compare_struct, .-compare_struct
.globl quadratic_sort
.type quadratic_sort, @function
quadratic_sort:
.LFB1:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
push rbx
sub rsp, 104
.cfi_offset 3, -24
mov QWORD PTR -88[rbp], rdi
mov QWORD PTR -96[rbp], rsi
mov QWORD PTR -104[rbp], rdx
mov QWORD PTR -112[rbp], rcx
mov rax, QWORD PTR fs:40
mov QWORD PTR -24[rbp], rax
xor eax, eax
mov rax, rsp
mov rbx, rax
mov rax, QWORD PTR -88[rbp]
mov QWORD PTR -64[rbp], rax
mov rax, QWORD PTR -104[rbp]
mov rdx, rax
sub rdx, 1
mov QWORD PTR -56[rbp], rdx
mov r10, rax
mov r11d, 0
mov r8, rax
mov r9d, 0
mov edx, 16
sub rdx, 1
add rax, rdx
mov esi, 16
mov edx, 0
div rsi
imul rax, rax, 16
mov rcx, rax
and rcx, -4096
mov rdx, rsp
sub rdx, rcx
.L5:
cmp rsp, rdx
je .L6
sub rsp, 4096
or QWORD PTR 4088[rsp], 0
jmp .L5
.L6:
mov rdx, rax
and edx, 4095
sub rsp, rdx
mov rdx, rax
and edx, 4095
test rdx, rdx
je .L7
and eax, 4095
sub rax, 8
add rax, rsp
or QWORD PTR [rax], 0
.L7:
mov rax, rsp
add rax, 0
mov QWORD PTR -48[rbp], rax
mov DWORD PTR -68[rbp], 0
jmp .L8
.L12:
mov eax, DWORD PTR -68[rbp]
add eax, 1
mov DWORD PTR -72[rbp], eax
jmp .L9
.L11:
mov eax, DWORD PTR -68[rbp]
cdqe
imul rax, QWORD PTR -104[rbp]
mov rdx, rax
mov rax, QWORD PTR -88[rbp]
add rax, rdx
mov QWORD PTR -40[rbp], rax
mov eax, DWORD PTR -72[rbp]
cdqe
imul rax, QWORD PTR -104[rbp]
mov rdx, rax
mov rax, QWORD PTR -88[rbp]
add rax, rdx
mov QWORD PTR -32[rbp], rax
mov rdx, QWORD PTR -32[rbp]
mov rax, QWORD PTR -40[rbp]
mov rcx, QWORD PTR -112[rbp]
mov rsi, rdx
mov rdi, rax
call rcx
test eax, eax
jle .L10
mov rdx, QWORD PTR -104[rbp]
mov rcx, QWORD PTR -40[rbp]
mov rax, QWORD PTR -48[rbp]
mov rsi, rcx
mov rdi, rax
call memcpy@PLT
mov rdx, QWORD PTR -104[rbp]
mov rcx, QWORD PTR -32[rbp]
mov rax, QWORD PTR -40[rbp]
mov rsi, rcx
mov rdi, rax
call memcpy@PLT
mov rdx, QWORD PTR -104[rbp]
mov rcx, QWORD PTR -48[rbp]
mov rax, QWORD PTR -32[rbp]
mov rsi, rcx
mov rdi, rax
call memcpy@PLT
.L10:
add DWORD PTR -72[rbp], 1
.L9:
mov eax, DWORD PTR -72[rbp]
cdqe
cmp QWORD PTR -96[rbp], rax
ja .L11
add DWORD PTR -68[rbp], 1
.L8:
mov eax, DWORD PTR -68[rbp]
cdqe
cmp QWORD PTR -96[rbp], rax
ja .L12
mov rsp, rbx
nop
mov rax, QWORD PTR -24[rbp]
sub rax, QWORD PTR fs:40
je .L13
call __stack_chk_fail@PLT
.L13:
mov rbx, QWORD PTR -8[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE1:
.size quadratic_sort, .-quadratic_sort
.section .rodata
.LC0:
.string "the_stack_data/695461.c"
.LC1:
.string "arr[0].x == 1"
.LC2:
.string "arr[0].y == 2"
.LC3:
.string "arr[1].x == 3"
.LC4:
.string "arr[1].y == 4"
.LC5:
.string "arr[0].x == -1"
.LC6:
.string "arr[0].y == -5"
.LC7:
.string "arr[1].x == -1"
.LC8:
.string "arr[1].y == -3"
.LC9:
.string "arr[2].x == 1"
.LC10:
.string "arr[2].y == 2"
.LC11:
.string "arr[3].x == 2"
.LC12:
.string "arr[3].y == 10"
.LC13:
.string "arr[4].x == 3"
.LC14:
.string "arr[4].y == 4"
.text
.globl do_test_1
.type do_test_1, @function
do_test_1:
.LFB2:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 48
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
mov DWORD PTR -48[rbp], 3
mov DWORD PTR -44[rbp], 4
mov DWORD PTR -40[rbp], 1
mov DWORD PTR -36[rbp], 2
lea rax, -48[rbp]
lea rcx, compare_struct[rip]
mov edx, 8
mov esi, 2
mov rdi, rax
call quadratic_sort
mov eax, DWORD PTR -48[rbp]
cmp eax, 1
je .L15
lea rcx, __PRETTY_FUNCTION__.1[rip]
mov edx, 51
lea rsi, .LC0[rip]
lea rdi, .LC1[rip]
call __assert_fail@PLT
.L15:
mov eax, DWORD PTR -44[rbp]
cmp eax, 2
je .L16
lea rcx, __PRETTY_FUNCTION__.1[rip]
mov edx, 52
lea rsi, .LC0[rip]
lea rdi, .LC2[rip]
call __assert_fail@PLT
.L16:
mov eax, DWORD PTR -40[rbp]
cmp eax, 3
je .L17
lea rcx, __PRETTY_FUNCTION__.1[rip]
mov edx, 53
lea rsi, .LC0[rip]
lea rdi, .LC3[rip]
call __assert_fail@PLT
.L17:
mov eax, DWORD PTR -36[rbp]
cmp eax, 4
je .L18
lea rcx, __PRETTY_FUNCTION__.1[rip]
mov edx, 54
lea rsi, .LC0[rip]
lea rdi, .LC4[rip]
call __assert_fail@PLT
.L18:
mov DWORD PTR -48[rbp], 3
mov DWORD PTR -44[rbp], 4
mov DWORD PTR -40[rbp], 1
mov DWORD PTR -36[rbp], 2
mov DWORD PTR -32[rbp], -1
mov DWORD PTR -28[rbp], -3
mov DWORD PTR -24[rbp], 2
mov DWORD PTR -20[rbp], 10
mov DWORD PTR -16[rbp], -1
mov DWORD PTR -12[rbp], -5
lea rax, -48[rbp]
lea rcx, compare_struct[rip]
mov edx, 8
mov esi, 5
mov rdi, rax
call quadratic_sort
mov eax, DWORD PTR -48[rbp]
cmp eax, -1
je .L19
lea rcx, __PRETTY_FUNCTION__.1[rip]
mov edx, 60
lea rsi, .LC0[rip]
lea rdi, .LC5[rip]
call __assert_fail@PLT
.L19:
mov eax, DWORD PTR -44[rbp]
cmp eax, -5
je .L20
lea rcx, __PRETTY_FUNCTION__.1[rip]
mov edx, 61
lea rsi, .LC0[rip]
lea rdi, .LC6[rip]
call __assert_fail@PLT
.L20:
mov eax, DWORD PTR -40[rbp]
cmp eax, -1
je .L21
lea rcx, __PRETTY_FUNCTION__.1[rip]
mov edx, 62
lea rsi, .LC0[rip]
lea rdi, .LC7[rip]
call __assert_fail@PLT
.L21:
mov eax, DWORD PTR -36[rbp]
cmp eax, -3
je .L22
lea rcx, __PRETTY_FUNCTION__.1[rip]
mov edx, 63
lea rsi, .LC0[rip]
lea rdi, .LC8[rip]
call __assert_fail@PLT
.L22:
mov eax, DWORD PTR -32[rbp]
cmp eax, 1
je .L23
lea rcx, __PRETTY_FUNCTION__.1[rip]
mov edx, 64
lea rsi, .LC0[rip]
lea rdi, .LC9[rip]
call __assert_fail@PLT
.L23:
mov eax, DWORD PTR -28[rbp]
cmp eax, 2
je .L24
lea rcx, __PRETTY_FUNCTION__.1[rip]
mov edx, 65
lea rsi, .LC0[rip]
lea rdi, .LC10[rip]
call __assert_fail@PLT
.L24:
mov eax, DWORD PTR -24[rbp]
cmp eax, 2
je .L25
lea rcx, __PRETTY_FUNCTION__.1[rip]
mov edx, 67
lea rsi, .LC0[rip]
lea rdi, .LC11[rip]
call __assert_fail@PLT
.L25:
mov eax, DWORD PTR -20[rbp]
cmp eax, 10
je .L26
lea rcx, __PRETTY_FUNCTION__.1[rip]
mov edx, 68
lea rsi, .LC0[rip]
lea rdi, .LC12[rip]
call __assert_fail@PLT
.L26:
mov eax, DWORD PTR -16[rbp]
cmp eax, 3
je .L27
lea rcx, __PRETTY_FUNCTION__.1[rip]
mov edx, 70
lea rsi, .LC0[rip]
lea rdi, .LC13[rip]
call __assert_fail@PLT
.L27:
mov eax, DWORD PTR -12[rbp]
cmp eax, 4
je .L30
lea rcx, __PRETTY_FUNCTION__.1[rip]
mov edx, 71
lea rsi, .LC0[rip]
lea rdi, .LC14[rip]
call __assert_fail@PLT
.L30:
nop
mov rax, QWORD PTR -8[rbp]
sub rax, QWORD PTR fs:40
je .L29
call __stack_chk_fail@PLT
.L29:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE2:
.size do_test_1, .-do_test_1
.globl compare_93
.type compare_93, @function
compare_93:
.LFB3:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov QWORD PTR -8[rbp], rdi
mov QWORD PTR -16[rbp], rsi
mov rax, QWORD PTR -8[rbp]
mov edx, DWORD PTR [rax]
mov rax, QWORD PTR -16[rbp]
mov eax, DWORD PTR [rax]
cmp edx, eax
jl .L32
mov rax, QWORD PTR -8[rbp]
mov edx, DWORD PTR [rax]
mov rax, QWORD PTR -16[rbp]
mov eax, DWORD PTR [rax]
cmp edx, eax
setg al
movzx eax, al
jmp .L34
.L32:
mov eax, -1
.L34:
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE3:
.size compare_93, .-compare_93
.globl sort_int
.type sort_int, @function
sort_int:
.LFB4:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov QWORD PTR -8[rbp], rdi
mov QWORD PTR -16[rbp], rsi
mov rax, QWORD PTR -16[rbp]
sub rax, QWORD PTR -8[rbp]
sar rax, 2
mov rsi, rax
mov rax, QWORD PTR -8[rbp]
lea rcx, compare_93[rip]
mov edx, 4
mov rdi, rax
call quadratic_sort
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE4:
.size sort_int, .-sort_int
.globl compare_94
.type compare_94, @function
compare_94:
.LFB5:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov QWORD PTR -8[rbp], rdi
mov QWORD PTR -16[rbp], rsi
mov rax, QWORD PTR -8[rbp]
movsd xmm1, QWORD PTR [rax]
mov rax, QWORD PTR -16[rbp]
movsd xmm0, QWORD PTR [rax]
comisd xmm0, xmm1
jbe .L42
mov eax, -1
jmp .L40
.L42:
mov rax, QWORD PTR -8[rbp]
movsd xmm0, QWORD PTR [rax]
mov rax, QWORD PTR -16[rbp]
movsd xmm1, QWORD PTR [rax]
comisd xmm0, xmm1
seta al
movzx eax, al
.L40:
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE5:
.size compare_94, .-compare_94
.globl sort_double
.type sort_double, @function
sort_double:
.LFB6:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov QWORD PTR -8[rbp], rdi
mov QWORD PTR -16[rbp], rsi
mov rax, QWORD PTR -16[rbp]
sub rax, QWORD PTR -8[rbp]
sar rax, 3
mov rsi, rax
mov rax, QWORD PTR -8[rbp]
lea rcx, compare_94[rip]
mov edx, 8
mov rdi, rax
call quadratic_sort
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size sort_double, .-sort_double
.section .rodata
.LC15:
.string "a[0] == 1"
.LC16:
.string "a[1] == 2"
.LC17:
.string "a[2] == 3"
.LC18:
.string "a[3] == 4"
.LC19:
.string "a[1] == 3"
.text
.globl do_test_2
.type do_test_2, @function
do_test_2:
.LFB7:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 48
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
mov DWORD PTR -48[rbp], 1
mov DWORD PTR -44[rbp], 3
mov DWORD PTR -40[rbp], 2
mov DWORD PTR -36[rbp], 4
lea rax, -48[rbp]
add rax, 16
lea rdx, -48[rbp]
mov rsi, rax
mov rdi, rdx
call sort_int
mov eax, DWORD PTR -48[rbp]
cmp eax, 1
je .L45
lea rcx, __PRETTY_FUNCTION__.0[rip]
mov edx, 102
lea rsi, .LC0[rip]
lea rdi, .LC15[rip]
call __assert_fail@PLT
.L45:
mov eax, DWORD PTR -44[rbp]
cmp eax, 2
je .L46
lea rcx, __PRETTY_FUNCTION__.0[rip]
mov edx, 103
lea rsi, .LC0[rip]
lea rdi, .LC16[rip]
call __assert_fail@PLT
.L46:
mov eax, DWORD PTR -40[rbp]
cmp eax, 3
je .L47
lea rcx, __PRETTY_FUNCTION__.0[rip]
mov edx, 104
lea rsi, .LC0[rip]
lea rdi, .LC17[rip]
call __assert_fail@PLT
.L47:
mov eax, DWORD PTR -36[rbp]
cmp eax, 4
je .L48
lea rcx, __PRETTY_FUNCTION__.0[rip]
mov edx, 105
lea rsi, .LC0[rip]
lea rdi, .LC18[rip]
call __assert_fail@PLT
.L48:
mov DWORD PTR -48[rbp], 3
mov DWORD PTR -44[rbp], 1
lea rax, -48[rbp]
add rax, 8
lea rdx, -48[rbp]
mov rsi, rax
mov rdi, rdx
call sort_int
mov eax, DWORD PTR -48[rbp]
cmp eax, 1
je .L49
lea rcx, __PRETTY_FUNCTION__.0[rip]
mov edx, 110
lea rsi, .LC0[rip]
lea rdi, .LC15[rip]
call __assert_fail@PLT
.L49:
mov eax, DWORD PTR -44[rbp]
cmp eax, 3
je .L50
lea rcx, __PRETTY_FUNCTION__.0[rip]
mov edx, 111
lea rsi, .LC0[rip]
lea rdi, .LC19[rip]
call __assert_fail@PLT
.L50:
movsd xmm0, QWORD PTR .LC20[rip]
movsd QWORD PTR -48[rbp], xmm0
movsd xmm0, QWORD PTR .LC21[rip]
movsd QWORD PTR -40[rbp], xmm0
movsd xmm0, QWORD PTR .LC22[rip]
movsd QWORD PTR -32[rbp], xmm0
movsd xmm0, QWORD PTR .LC23[rip]
movsd QWORD PTR -24[rbp], xmm0
lea rax, -48[rbp]
add rax, 32
lea rdx, -48[rbp]
mov rsi, rax
mov rdi, rdx
call sort_double
movsd xmm0, QWORD PTR -48[rbp]
movsd xmm1, QWORD PTR .LC20[rip]
ucomisd xmm0, xmm1
jp .L64
movsd xmm1, QWORD PTR .LC20[rip]
ucomisd xmm0, xmm1
je .L51
.L64:
lea rcx, __PRETTY_FUNCTION__.0[rip]
mov edx, 117
lea rsi, .LC0[rip]
lea rdi, .LC15[rip]
call __assert_fail@PLT
.L51:
movsd xmm0, QWORD PTR -40[rbp]
ucomisd xmm0, QWORD PTR .LC22[rip]
jp .L65
ucomisd xmm0, QWORD PTR .LC22[rip]
je .L53
.L65:
lea rcx, __PRETTY_FUNCTION__.0[rip]
mov edx, 118
lea rsi, .LC0[rip]
lea rdi, .LC16[rip]
call __assert_fail@PLT
.L53:
movsd xmm0, QWORD PTR -32[rbp]
ucomisd xmm0, QWORD PTR .LC21[rip]
jp .L66
ucomisd xmm0, QWORD PTR .LC21[rip]
je .L55
.L66:
lea rcx, __PRETTY_FUNCTION__.0[rip]
mov edx, 119
lea rsi, .LC0[rip]
lea rdi, .LC17[rip]
call __assert_fail@PLT
.L55:
movsd xmm0, QWORD PTR -24[rbp]
ucomisd xmm0, QWORD PTR .LC23[rip]
jp .L67
ucomisd xmm0, QWORD PTR .LC23[rip]
je .L57
.L67:
lea rcx, __PRETTY_FUNCTION__.0[rip]
mov edx, 120
lea rsi, .LC0[rip]
lea rdi, .LC18[rip]
call __assert_fail@PLT
.L57:
movsd xmm0, QWORD PTR .LC21[rip]
movsd QWORD PTR -48[rbp], xmm0
movsd xmm0, QWORD PTR .LC20[rip]
movsd QWORD PTR -40[rbp], xmm0
lea rax, -48[rbp]
add rax, 16
lea rdx, -48[rbp]
mov rsi, rax
mov rdi, rdx
call sort_double
movsd xmm0, QWORD PTR -48[rbp]
movsd xmm1, QWORD PTR .LC20[rip]
ucomisd xmm0, xmm1
jp .L68
movsd xmm1, QWORD PTR .LC20[rip]
ucomisd xmm0, xmm1
je .L59
.L68:
lea rcx, __PRETTY_FUNCTION__.0[rip]
mov edx, 125
lea rsi, .LC0[rip]
lea rdi, .LC15[rip]
call __assert_fail@PLT
.L59:
movsd xmm0, QWORD PTR -40[rbp]
ucomisd xmm0, QWORD PTR .LC21[rip]
jp .L69
ucomisd xmm0, QWORD PTR .LC21[rip]
je .L70
.L69:
lea rcx, __PRETTY_FUNCTION__.0[rip]
mov edx, 126
lea rsi, .LC0[rip]
lea rdi, .LC19[rip]
call __assert_fail@PLT
.L70:
nop
mov rax, QWORD PTR -8[rbp]
sub rax, QWORD PTR fs:40
je .L63
call __stack_chk_fail@PLT
.L63:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE7:
.size do_test_2, .-do_test_2
.section .rodata
.LC24:
.string "SUCCESS\n"
.text
.globl main
.type main, @function
main:
.LFB8:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov eax, 0
call do_test_2
mov rax, QWORD PTR stderr[rip]
mov rcx, rax
mov edx, 8
mov esi, 1
lea rdi, .LC24[rip]
call fwrite@PLT
mov eax, 0
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE8:
.size main, .-main
.section .rodata
.align 8
.type __PRETTY_FUNCTION__.1, @object
.size __PRETTY_FUNCTION__.1, 10
__PRETTY_FUNCTION__.1:
.string "do_test_1"
.align 8
.type __PRETTY_FUNCTION__.0, @object
.size __PRETTY_FUNCTION__.0, 10
__PRETTY_FUNCTION__.0:
.string "do_test_2"
.align 8
.LC20:
.long 0
.long 1072693248
.align 8
.LC21:
.long 0
.long 1074266112
.align 8
.LC22:
.long 0
.long 1073741824
.align 8
.LC23:
.long 0
.long 1074790400
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "695461.c"
.text
.align 2
.global compare_struct
.syntax unified
.arm
.fpu softvfp
.type compare_struct, %function
compare_struct:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #12
str r0, [fp, #-8]
str r1, [fp, #-12]
ldr r3, [fp, #-8]
ldr r2, [r3]
ldr r3, [fp, #-12]
ldr r3, [r3]
cmp r2, r3
beq .L2
ldr r3, [fp, #-8]
ldr r2, [r3]
ldr r3, [fp, #-12]
ldr r3, [r3]
sub r3, r2, r3
b .L3
.L2:
ldr r3, [fp, #-8]
ldr r2, [r3, #4]
ldr r3, [fp, #-12]
ldr r3, [r3, #4]
sub r3, r2, r3
.L3:
mov r0, r3
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size compare_struct, .-compare_struct
.section .rodata
.align 2
.LC6:
.word __stack_chk_guard
.text
.align 2
.global quadratic_sort
.syntax unified
.arm
.fpu softvfp
.type quadratic_sort, %function
quadratic_sort:
@ args = 0, pretend = 0, frame = 48
@ frame_needed = 1, uses_anonymous_args = 0
push {r4, fp, lr}
add fp, sp, #8
sub sp, sp, #52
str r0, [fp, #-48]
str r1, [fp, #-52]
str r2, [fp, #-56]
str r3, [fp, #-60]
ldr r3, .L11
ldr r3, [r3]
str r3, [fp, #-16]
mov r3,#0
mov r3, sp
mov r4, r3
ldr r3, [fp, #-48]
str r3, [fp, #-36]
ldr ip, [fp, #-56]
mov r3, ip
sub r3, r3, #1
str r3, [fp, #-32]
mov r0, ip
mov r1, #0
mov r2, #0
mov r3, #0
lsl r3, r1, #3
orr r3, r3, r0, lsr #29
lsl r2, r0, #3
mov r0, ip
mov r1, #0
mov r2, #0
mov r3, #0
lsl r3, r1, #3
orr r3, r3, r0, lsr #29
lsl r2, r0, #3
add r3, ip, #7
lsr r3, r3, #3
lsl r3, r3, #3
sub sp, sp, r3
mov r3, sp
add r3, r3, #0
str r3, [fp, #-28]
mov r3, #0
str r3, [fp, #-40]
b .L5
.L9:
ldr r3, [fp, #-40]
add r3, r3, #1
str r3, [fp, #-44]
b .L6
.L8:
ldr r3, [fp, #-40]
ldr r2, [fp, #-56]
mul r3, r2, r3
ldr r2, [fp, #-48]
add r3, r2, r3
str r3, [fp, #-24]
ldr r3, [fp, #-44]
ldr r2, [fp, #-56]
mul r3, r2, r3
ldr r2, [fp, #-48]
add r3, r2, r3
str r3, [fp, #-20]
ldr r3, [fp, #-60]
ldr r1, [fp, #-20]
ldr r0, [fp, #-24]
blx r3
mov r3, r0
cmp r3, #0
ble .L7
ldr r2, [fp, #-56]
ldr r1, [fp, #-24]
ldr r0, [fp, #-28]
bl memcpy
ldr r2, [fp, #-56]
ldr r1, [fp, #-20]
ldr r0, [fp, #-24]
bl memcpy
ldr r2, [fp, #-56]
ldr r1, [fp, #-28]
ldr r0, [fp, #-20]
bl memcpy
.L7:
ldr r3, [fp, #-44]
add r3, r3, #1
str r3, [fp, #-44]
.L6:
ldr r3, [fp, #-44]
ldr r2, [fp, #-52]
cmp r2, r3
bhi .L8
ldr r3, [fp, #-40]
add r3, r3, #1
str r3, [fp, #-40]
.L5:
ldr r3, [fp, #-40]
ldr r2, [fp, #-52]
cmp r2, r3
bhi .L9
mov sp, r4
nop
ldr r3, .L11
ldr r2, [r3]
ldr r3, [fp, #-16]
eors r2, r3, r2
mov r3, #0
beq .L10
bl __stack_chk_fail
.L10:
sub sp, fp, #8
@ sp needed
pop {r4, fp, pc}
.L12:
.align 2
.L11:
.word .LC6
.size quadratic_sort, .-quadratic_sort
.section .rodata
.align 2
.LC7:
.ascii "the_stack_data/695461.c\000"
.align 2
.LC8:
.ascii "arr[0].x == 1\000"
.align 2
.LC9:
.ascii "arr[0].y == 2\000"
.align 2
.LC10:
.ascii "arr[1].x == 3\000"
.align 2
.LC11:
.ascii "arr[1].y == 4\000"
.align 2
.LC12:
.ascii "arr[0].x == -1\000"
.align 2
.LC13:
.ascii "arr[0].y == -5\000"
.align 2
.LC14:
.ascii "arr[1].x == -1\000"
.align 2
.LC15:
.ascii "arr[1].y == -3\000"
.align 2
.LC16:
.ascii "arr[2].x == 1\000"
.align 2
.LC17:
.ascii "arr[2].y == 2\000"
.align 2
.LC18:
.ascii "arr[3].x == 2\000"
.align 2
.LC19:
.ascii "arr[3].y == 10\000"
.align 2
.LC20:
.ascii "arr[4].x == 3\000"
.align 2
.LC21:
.ascii "arr[4].y == 4\000"
.align 2
.LC0:
.word 3
.word 4
.word 1
.word 2
.align 2
.LC1:
.word 3
.word 4
.word 1
.word 2
.word -1
.word -3
.word 2
.word 10
.word -1
.word -5
.align 2
.LC22:
.word __stack_chk_guard
.text
.align 2
.global do_test_1
.syntax unified
.arm
.fpu softvfp
.type do_test_1, %function
do_test_1:
@ args = 0, pretend = 0, frame = 48
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #48
ldr r3, .L30
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
ldr r3, .L30+4
sub ip, fp, #48
ldm r3, {r0, r1, r2, r3}
stm ip, {r0, r1, r2, r3}
sub r0, fp, #48
ldr r3, .L30+8
mov r2, #8
mov r1, #2
bl quadratic_sort
ldr r3, [fp, #-48]
cmp r3, #1
beq .L14
ldr r3, .L30+12
mov r2, #51
ldr r1, .L30+16
ldr r0, .L30+20
bl __assert_fail
.L14:
ldr r3, [fp, #-44]
cmp r3, #2
beq .L15
ldr r3, .L30+12
mov r2, #52
ldr r1, .L30+16
ldr r0, .L30+24
bl __assert_fail
.L15:
ldr r3, [fp, #-40]
cmp r3, #3
beq .L16
ldr r3, .L30+12
mov r2, #53
ldr r1, .L30+16
ldr r0, .L30+28
bl __assert_fail
.L16:
ldr r3, [fp, #-36]
cmp r3, #4
beq .L17
ldr r3, .L30+12
mov r2, #54
ldr r1, .L30+16
ldr r0, .L30+32
bl __assert_fail
.L17:
ldr r3, .L30+36
sub ip, fp, #48
mov lr, r3
ldmia lr!, {r0, r1, r2, r3}
stmia ip!, {r0, r1, r2, r3}
ldmia lr!, {r0, r1, r2, r3}
stmia ip!, {r0, r1, r2, r3}
ldm lr, {r0, r1}
stm ip, {r0, r1}
sub r0, fp, #48
ldr r3, .L30+8
mov r2, #8
mov r1, #5
bl quadratic_sort
ldr r3, [fp, #-48]
cmn r3, #1
beq .L18
ldr r3, .L30+12
mov r2, #60
ldr r1, .L30+16
ldr r0, .L30+40
bl __assert_fail
.L18:
ldr r3, [fp, #-44]
cmn r3, #5
beq .L19
ldr r3, .L30+12
mov r2, #61
ldr r1, .L30+16
ldr r0, .L30+44
bl __assert_fail
.L19:
ldr r3, [fp, #-40]
cmn r3, #1
beq .L20
ldr r3, .L30+12
mov r2, #62
ldr r1, .L30+16
ldr r0, .L30+48
bl __assert_fail
.L20:
ldr r3, [fp, #-36]
cmn r3, #3
beq .L21
ldr r3, .L30+12
mov r2, #63
ldr r1, .L30+16
ldr r0, .L30+52
bl __assert_fail
.L21:
ldr r3, [fp, #-32]
cmp r3, #1
beq .L22
ldr r3, .L30+12
mov r2, #64
ldr r1, .L30+16
ldr r0, .L30+56
bl __assert_fail
.L22:
ldr r3, [fp, #-28]
cmp r3, #2
beq .L23
ldr r3, .L30+12
mov r2, #65
ldr r1, .L30+16
ldr r0, .L30+60
bl __assert_fail
.L23:
ldr r3, [fp, #-24]
cmp r3, #2
beq .L24
ldr r3, .L30+12
mov r2, #67
ldr r1, .L30+16
ldr r0, .L30+64
bl __assert_fail
.L24:
ldr r3, [fp, #-20]
cmp r3, #10
beq .L25
ldr r3, .L30+12
mov r2, #68
ldr r1, .L30+16
ldr r0, .L30+68
bl __assert_fail
.L25:
ldr r3, [fp, #-16]
cmp r3, #3
beq .L26
ldr r3, .L30+12
mov r2, #70
ldr r1, .L30+16
ldr r0, .L30+72
bl __assert_fail
.L26:
ldr r3, [fp, #-12]
cmp r3, #4
beq .L29
ldr r3, .L30+12
mov r2, #71
ldr r1, .L30+16
ldr r0, .L30+76
bl __assert_fail
.L29:
nop
ldr r3, .L30
ldr r2, [r3]
ldr r3, [fp, #-8]
eors r2, r3, r2
mov r3, #0
beq .L28
bl __stack_chk_fail
.L28:
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L31:
.align 2
.L30:
.word .LC22
.word .LC0
.word compare_struct
.word __PRETTY_FUNCTION__.4825
.word .LC7
.word .LC8
.word .LC9
.word .LC10
.word .LC11
.word .LC1
.word .LC12
.word .LC13
.word .LC14
.word .LC15
.word .LC16
.word .LC17
.word .LC18
.word .LC19
.word .LC20
.word .LC21
.size do_test_1, .-do_test_1
.align 2
.global compare_93
.syntax unified
.arm
.fpu softvfp
.type compare_93, %function
compare_93:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #12
str r0, [fp, #-8]
str r1, [fp, #-12]
ldr r3, [fp, #-8]
ldr r2, [r3]
ldr r3, [fp, #-12]
ldr r3, [r3]
cmp r2, r3
blt .L33
ldr r3, [fp, #-8]
ldr r2, [r3]
ldr r3, [fp, #-12]
ldr r3, [r3]
cmp r2, r3
movgt r3, #1
movle r3, #0
and r3, r3, #255
b .L35
.L33:
mvn r3, #0
.L35:
mov r0, r3
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size compare_93, .-compare_93
.align 2
.global sort_int
.syntax unified
.arm
.fpu softvfp
.type sort_int, %function
sort_int:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #8
str r0, [fp, #-8]
str r1, [fp, #-12]
ldr r2, [fp, #-12]
ldr r3, [fp, #-8]
sub r3, r2, r3
asr r3, r3, #2
mov r1, r3
ldr r3, .L37
mov r2, #4
ldr r0, [fp, #-8]
bl quadratic_sort
nop
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L38:
.align 2
.L37:
.word compare_93
.size sort_int, .-sort_int
.global __aeabi_dcmplt
.global __aeabi_dcmpgt
.align 2
.global compare_94
.syntax unified
.arm
.fpu softvfp
.type compare_94, %function
compare_94:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
push {r4, fp, lr}
add fp, sp, #8
sub sp, sp, #12
str r0, [fp, #-16]
str r1, [fp, #-20]
ldr r3, [fp, #-16]
ldmia r3, {r0-r1}
ldr r3, [fp, #-20]
ldmia r3, {r2-r3}
bl __aeabi_dcmplt
mov r3, r0
cmp r3, #0
beq .L46
mvn r3, #0
b .L44
.L46:
ldr r3, [fp, #-16]
ldmia r3, {r0-r1}
ldr r3, [fp, #-20]
ldmia r3, {r2-r3}
mov ip, #1
mov r4, ip
bl __aeabi_dcmpgt
mov r3, r0
cmp r3, #0
bne .L43
mov r3, #0
mov r4, r3
.L43:
and r3, r4, #255
.L44:
mov r0, r3
sub sp, fp, #8
@ sp needed
pop {r4, fp, pc}
.size compare_94, .-compare_94
.align 2
.global sort_double
.syntax unified
.arm
.fpu softvfp
.type sort_double, %function
sort_double:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #8
str r0, [fp, #-8]
str r1, [fp, #-12]
ldr r2, [fp, #-12]
ldr r3, [fp, #-8]
sub r3, r2, r3
asr r3, r3, #3
mov r1, r3
ldr r3, .L48
mov r2, #8
ldr r0, [fp, #-8]
bl quadratic_sort
nop
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L49:
.align 2
.L48:
.word compare_94
.size sort_double, .-sort_double
.section .rodata
.align 2
.LC23:
.ascii "a[0] == 1\000"
.align 2
.LC24:
.ascii "a[1] == 2\000"
.align 2
.LC25:
.ascii "a[2] == 3\000"
.align 2
.LC26:
.ascii "a[3] == 4\000"
.align 2
.LC27:
.ascii "a[1] == 3\000"
.global __aeabi_dcmpeq
.align 2
.LC2:
.word 1
.word 3
.word 2
.word 4
.align 2
.LC3:
.word 3
.word 1
.align 3
.LC4:
.word 0
.word 1072693248
.word 0
.word 1074266112
.word 0
.word 1073741824
.word 0
.word 1074790400
.align 3
.LC5:
.word 0
.word 1074266112
.word 0
.word 1072693248
.align 2
.LC28:
.word __stack_chk_guard
.text
.align 2
.global do_test_2
.syntax unified
.arm
.fpu softvfp
.type do_test_2, %function
do_test_2:
@ args = 0, pretend = 0, frame = 40
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #40
ldr r3, .L65
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
ldr r3, .L65+4
sub ip, fp, #44
ldm r3, {r0, r1, r2, r3}
stm ip, {r0, r1, r2, r3}
sub r3, fp, #44
add r3, r3, #16
sub r2, fp, #44
mov r1, r3
mov r0, r2
bl sort_int
ldr r3, [fp, #-44]
cmp r3, #1
beq .L51
ldr r3, .L65+8
mov r2, #102
ldr r1, .L65+12
ldr r0, .L65+16
bl __assert_fail
.L51:
ldr r3, [fp, #-40]
cmp r3, #2
beq .L52
ldr r3, .L65+8
mov r2, #103
ldr r1, .L65+12
ldr r0, .L65+20
bl __assert_fail
.L52:
ldr r3, [fp, #-36]
cmp r3, #3
beq .L53
ldr r3, .L65+8
mov r2, #104
ldr r1, .L65+12
ldr r0, .L65+24
bl __assert_fail
.L53:
ldr r3, [fp, #-32]
cmp r3, #4
beq .L54
ldr r3, .L65+8
mov r2, #105
ldr r1, .L65+12
ldr r0, .L65+28
bl __assert_fail
.L54:
ldr r2, .L65+32
sub r3, fp, #44
ldm r2, {r0, r1}
stm r3, {r0, r1}
sub r3, fp, #44
add r3, r3, #8
sub r2, fp, #44
mov r1, r3
mov r0, r2
bl sort_int
ldr r3, [fp, #-44]
cmp r3, #1
beq .L55
ldr r3, .L65+8
mov r2, #110
ldr r1, .L65+12
ldr r0, .L65+16
bl __assert_fail
.L55:
ldr r3, [fp, #-40]
cmp r3, #3
beq .L56
ldr r3, .L65+8
mov r2, #111
ldr r1, .L65+12
ldr r0, .L65+36
bl __assert_fail
.L56:
ldr r3, .L65+40
sub ip, fp, #44
mov lr, r3
ldmia lr!, {r0, r1, r2, r3}
stmia ip!, {r0, r1, r2, r3}
ldm lr, {r0, r1, r2, r3}
stm ip, {r0, r1, r2, r3}
sub r3, fp, #44
add r3, r3, #32
sub r2, fp, #44
mov r1, r3
mov r0, r2
bl sort_double
sub r1, fp, #44
ldmia r1, {r0-r1}
mov r2, #0
ldr r3, .L65+44
bl __aeabi_dcmpeq
mov r3, r0
cmp r3, #0
bne .L57
ldr r3, .L65+8
mov r2, #117
ldr r1, .L65+12
ldr r0, .L65+16
bl __assert_fail
.L57:
sub r1, fp, #36
ldmia r1, {r0-r1}
mov r2, #0
mov r3, #1073741824
bl __aeabi_dcmpeq
mov r3, r0
cmp r3, #0
bne .L58
ldr r3, .L65+8
mov r2, #118
ldr r1, .L65+12
ldr r0, .L65+20
bl __assert_fail
.L58:
sub r1, fp, #28
ldmia r1, {r0-r1}
mov r2, #0
ldr r3, .L65+48
bl __aeabi_dcmpeq
mov r3, r0
cmp r3, #0
bne .L59
ldr r3, .L65+8
mov r2, #119
ldr r1, .L65+12
ldr r0, .L65+24
bl __assert_fail
.L59:
sub r1, fp, #20
ldmia r1, {r0-r1}
mov r2, #0
ldr r3, .L65+52
bl __aeabi_dcmpeq
mov r3, r0
cmp r3, #0
bne .L60
ldr r3, .L65+8
mov r2, #120
ldr r1, .L65+12
ldr r0, .L65+28
bl __assert_fail
.L60:
ldr r3, .L65+56
sub ip, fp, #44
ldm r3, {r0, r1, r2, r3}
stm ip, {r0, r1, r2, r3}
sub r3, fp, #44
add r3, r3, #16
sub r2, fp, #44
mov r1, r3
mov r0, r2
bl sort_double
sub r1, fp, #44
ldmia r1, {r0-r1}
mov r2, #0
ldr r3, .L65+44
bl __aeabi_dcmpeq
mov r3, r0
cmp r3, #0
bne .L61
ldr r3, .L65+8
mov r2, #125
ldr r1, .L65+12
ldr r0, .L65+16
bl __assert_fail
.L61:
sub r1, fp, #36
ldmia r1, {r0-r1}
mov r2, #0
ldr r3, .L65+48
bl __aeabi_dcmpeq
mov r3, r0
cmp r3, #0
bne .L64
ldr r3, .L65+8
mov r2, #126
ldr r1, .L65+12
ldr r0, .L65+36
bl __assert_fail
.L64:
nop
ldr r3, .L65
ldr r2, [r3]
ldr r3, [fp, #-8]
eors r2, r3, r2
mov r3, #0
beq .L63
bl __stack_chk_fail
.L63:
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L66:
.align 2
.L65:
.word .LC28
.word .LC2
.word __PRETTY_FUNCTION__.4852
.word .LC7
.word .LC23
.word .LC24
.word .LC25
.word .LC26
.word .LC3
.word .LC27
.word .LC4
.word 1072693248
.word 1074266112
.word 1074790400
.word .LC5
.size do_test_2, .-do_test_2
.section .rodata
.align 2
.LC29:
.ascii "SUCCESS\012\000"
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
bl do_test_2
ldr r3, .L69
ldr r3, [r3]
mov r2, #8
mov r1, #1
ldr r0, .L69+4
bl fwrite
mov r3, #0
mov r0, r3
pop {fp, pc}
.L70:
.align 2
.L69:
.word stderr
.word .LC29
.size main, .-main
.section .rodata
.align 2
.type __PRETTY_FUNCTION__.4825, %object
.size __PRETTY_FUNCTION__.4825, 10
__PRETTY_FUNCTION__.4825:
.ascii "do_test_1\000"
.align 2
.type __PRETTY_FUNCTION__.4852, %object
.size __PRETTY_FUNCTION__.4852, 10
__PRETTY_FUNCTION__.4852:
.ascii "do_test_2\000"
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "505682.c"
.intel_syntax noprefix
.text
.globl last_timestamp
.bss
.align 8
.type last_timestamp, @object
.size last_timestamp, 8
last_timestamp:
.zero 8
.globl timestamp
.align 32
.type timestamp, @object
.size timestamp, 32
timestamp:
.zero 32
.section .rodata
.LC0:
.string "%Y-%m-%d %H:%M:%S."
.text
.globl print_timestamp
.type print_timestamp, @function
print_timestamp:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 64
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
lea rax, -32[rbp]
mov esi, 0
mov rdi, rax
call gettimeofday@PLT
mov rax, QWORD PTR last_timestamp[rip]
mov rdx, rax
lea rax, timestamp[rip]
cmp rdx, rax
je .L2
lea rax, -32[rbp]
mov rdi, rax
call localtime@PLT
mov QWORD PTR -40[rbp], rax
mov rax, QWORD PTR -40[rbp]
mov rcx, rax
lea rdx, .LC0[rip]
mov esi, 32
lea rdi, timestamp[rip]
call strftime@PLT
mov rax, QWORD PTR -32[rbp]
mov QWORD PTR last_timestamp[rip], rax
.L2:
mov rcx, QWORD PTR -24[rbp]
movabs rdx, 2361183241434822607
mov rax, rcx
imul rdx
mov rax, rdx
sar rax, 7
sar rcx, 63
mov rdx, rcx
sub rax, rdx
mov DWORD PTR -56[rbp], eax
mov eax, DWORD PTR -56[rbp]
mov eax, eax
imul rax, rax, 1374389535
shr rax, 32
shr eax, 5
mov DWORD PTR -52[rbp], eax
mov edx, DWORD PTR -56[rbp]
mov eax, edx
imul rax, rax, 1374389535
shr rax, 32
shr eax, 5
imul ecx, eax, 100
mov eax, edx
sub eax, ecx
mov DWORD PTR -48[rbp], eax
mov edx, DWORD PTR -48[rbp]
movsx rax, edx
imul rax, rax, 1717986919
shr rax, 32
sar eax, 2
mov esi, edx
sar esi, 31
sub eax, esi
mov ecx, eax
mov eax, ecx
sal eax, 2
add eax, ecx
add eax, eax
sub edx, eax
mov DWORD PTR -44[rbp], edx
mov eax, DWORD PTR -48[rbp]
movsx rdx, eax
imul rdx, rdx, 1717986919
shr rdx, 32
sar edx, 2
sar eax, 31
mov ecx, eax
mov eax, edx
sub eax, ecx
mov DWORD PTR -48[rbp], eax
mov eax, DWORD PTR -52[rbp]
add eax, 48
mov BYTE PTR timestamp[rip+20], al
mov eax, DWORD PTR -48[rbp]
add eax, 48
mov BYTE PTR timestamp[rip+21], al
mov eax, DWORD PTR -44[rbp]
add eax, 48
mov BYTE PTR timestamp[rip+22], al
mov BYTE PTR timestamp[rip+23], 32
mov BYTE PTR timestamp[rip+24], 0
mov rax, QWORD PTR stdout[rip]
mov rsi, rax
lea rdi, timestamp[rip]
call fputs@PLT
nop
mov rax, QWORD PTR -8[rbp]
sub rax, QWORD PTR fs:40
je .L3
call __stack_chk_fail@PLT
.L3:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size print_timestamp, .-print_timestamp
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "505682.c"
.text
.global last_timestamp
.bss
.align 2
.type last_timestamp, %object
.size last_timestamp, 4
last_timestamp:
.space 4
.global timestamp
.align 2
.type timestamp, %object
.size timestamp, 32
timestamp:
.space 32
.section .rodata
.align 2
.LC0:
.ascii "%Y-%m-%d %H:%M:%S.\000"
.align 2
.LC1:
.word __stack_chk_guard
.text
.align 2
.global print_timestamp
.syntax unified
.arm
.fpu softvfp
.type print_timestamp, %function
print_timestamp:
@ args = 0, pretend = 0, frame = 32
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #32
ldr r3, .L4
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
sub r3, fp, #16
mov r1, #0
mov r0, r3
bl gettimeofday
ldr r3, .L4+4
ldr r3, [r3]
mov r2, r3
ldr r3, .L4+8
cmp r2, r3
beq .L2
sub r3, fp, #16
mov r0, r3
bl localtime
str r0, [fp, #-36]
ldr r3, [fp, #-36]
ldr r2, .L4+12
mov r1, #32
ldr r0, .L4+8
bl strftime
ldr r3, [fp, #-16]
ldr r2, .L4+4
str r3, [r2]
.L2:
ldr r3, [fp, #-12]
ldr r2, .L4+16
smull r1, r2, r3, r2
asr r2, r2, #6
asr r3, r3, #31
sub r3, r2, r3
str r3, [fp, #-32]
ldr r3, [fp, #-32]
ldr r2, .L4+20
umull r1, r3, r2, r3
lsr r3, r3, #5
str r3, [fp, #-28]
ldr r1, [fp, #-32]
ldr r3, .L4+20
umull r2, r3, r1, r3
lsr r2, r3, #5
mov r3, r2
lsl r3, r3, #2
add r3, r3, r2
lsl r2, r3, #2
add r3, r3, r2
lsl r3, r3, #2
sub r2, r1, r3
str r2, [fp, #-24]
ldr r2, [fp, #-24]
ldr r3, .L4+24
smull r1, r3, r2, r3
asr r1, r3, #2
asr r3, r2, #31
sub r1, r1, r3
mov r3, r1
lsl r3, r3, #2
add r3, r3, r1
lsl r3, r3, #1
sub r3, r2, r3
str r3, [fp, #-20]
ldr r3, [fp, #-24]
ldr r2, .L4+24
smull r1, r2, r3, r2
asr r2, r2, #2
asr r3, r3, #31
sub r3, r2, r3
str r3, [fp, #-24]
ldr r3, [fp, #-28]
and r3, r3, #255
add r3, r3, #48
and r2, r3, #255
ldr r3, .L4+8
strb r2, [r3, #20]
ldr r3, [fp, #-24]
and r3, r3, #255
add r3, r3, #48
and r2, r3, #255
ldr r3, .L4+8
strb r2, [r3, #21]
ldr r3, [fp, #-20]
and r3, r3, #255
add r3, r3, #48
and r2, r3, #255
ldr r3, .L4+8
strb r2, [r3, #22]
ldr r3, .L4+8
mov r2, #32
strb r2, [r3, #23]
ldr r3, .L4+8
mov r2, #0
strb r2, [r3, #24]
ldr r3, .L4+28
ldr r3, [r3]
mov r1, r3
ldr r0, .L4+8
bl fputs
nop
ldr r3, .L4
ldr r2, [r3]
ldr r3, [fp, #-8]
eors r2, r3, r2
mov r3, #0
beq .L3
bl __stack_chk_fail
.L3:
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L5:
.align 2
.L4:
.word .LC1
.word last_timestamp
.word timestamp
.word .LC0
.word 274877907
.word 1374389535
.word 1717986919
.word stdout
.size print_timestamp, .-print_timestamp
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "281056.c"
.intel_syntax noprefix
.text
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "281056.c"
.text
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "377429.c"
.intel_syntax noprefix
.text
.globl matrix_mult
.type matrix_mult, @function
matrix_mult:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov DWORD PTR -36[rbp], edi
mov QWORD PTR -48[rbp], rsi
mov QWORD PTR -56[rbp], rdx
mov QWORD PTR -64[rbp], rcx
mov eax, DWORD PTR -36[rbp]
movsx rdx, eax
mov eax, DWORD PTR -36[rbp]
cdqe
imul rdx, rax
mov eax, DWORD PTR -36[rbp]
cdqe
imul rax, rdx
add rax, rax
mov QWORD PTR -8[rbp], rax
mov DWORD PTR -20[rbp], 0
jmp .L2
.L7:
mov DWORD PTR -12[rbp], 0
jmp .L3
.L6:
mov DWORD PTR -16[rbp], 0
jmp .L4
.L5:
mov eax, DWORD PTR -20[rbp]
imul eax, DWORD PTR -36[rbp]
mov edx, eax
mov eax, DWORD PTR -12[rbp]
add eax, edx
cdqe
lea rdx, 0[0+rax*8]
mov rax, QWORD PTR -48[rbp]
add rax, rdx
movsd xmm1, QWORD PTR [rax]
mov eax, DWORD PTR -20[rbp]
imul eax, DWORD PTR -36[rbp]
mov edx, eax
mov eax, DWORD PTR -16[rbp]
add eax, edx
cdqe
lea rdx, 0[0+rax*8]
mov rax, QWORD PTR -56[rbp]
add rax, rdx
movsd xmm2, QWORD PTR [rax]
mov eax, DWORD PTR -16[rbp]
imul eax, DWORD PTR -36[rbp]
mov edx, eax
mov eax, DWORD PTR -12[rbp]
add eax, edx
cdqe
lea rdx, 0[0+rax*8]
mov rax, QWORD PTR -64[rbp]
add rax, rdx
movsd xmm0, QWORD PTR [rax]
mulsd xmm0, xmm2
mov eax, DWORD PTR -20[rbp]
imul eax, DWORD PTR -36[rbp]
mov edx, eax
mov eax, DWORD PTR -12[rbp]
add eax, edx
cdqe
lea rdx, 0[0+rax*8]
mov rax, QWORD PTR -48[rbp]
add rax, rdx
addsd xmm0, xmm1
movsd QWORD PTR [rax], xmm0
add DWORD PTR -16[rbp], 1
.L4:
mov eax, DWORD PTR -16[rbp]
cmp eax, DWORD PTR -36[rbp]
jl .L5
add DWORD PTR -12[rbp], 1
.L3:
mov eax, DWORD PTR -12[rbp]
cmp eax, DWORD PTR -36[rbp]
jl .L6
add DWORD PTR -20[rbp], 1
.L2:
mov eax, DWORD PTR -20[rbp]
cmp eax, DWORD PTR -36[rbp]
jl .L7
mov rax, QWORD PTR -8[rbp]
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size matrix_mult, .-matrix_mult
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "377429.c"
.text
.global __aeabi_dmul
.global __aeabi_dadd
.align 2
.global matrix_mult
.syntax unified
.arm
.fpu softvfp
.type matrix_mult, %function
matrix_mult:
@ args = 0, pretend = 0, frame = 32
@ frame_needed = 1, uses_anonymous_args = 0
push {r4, r5, r6, fp, lr}
add fp, sp, #16
sub sp, sp, #36
str r0, [fp, #-40]
str r1, [fp, #-44]
str r2, [fp, #-48]
str r3, [fp, #-52]
ldr r3, [fp, #-40]
ldr r2, [fp, #-40]
mul r3, r2, r3
ldr r2, [fp, #-40]
mul r3, r2, r3
lsl r3, r3, #1
str r3, [fp, #-24]
mov r3, #0
str r3, [fp, #-36]
b .L2
.L7:
mov r3, #0
str r3, [fp, #-28]
b .L3
.L6:
mov r3, #0
str r3, [fp, #-32]
b .L4
.L5:
ldr r3, [fp, #-36]
ldr r2, [fp, #-40]
mul r2, r3, r2
ldr r3, [fp, #-28]
add r3, r2, r3
lsl r3, r3, #3
ldr r2, [fp, #-44]
add r3, r2, r3
ldmia r3, {r4-r5}
ldr r3, [fp, #-36]
ldr r2, [fp, #-40]
mul r2, r3, r2
ldr r3, [fp, #-32]
add r3, r2, r3
lsl r3, r3, #3
ldr r2, [fp, #-48]
add r3, r2, r3
ldmia r3, {r0-r1}
ldr r3, [fp, #-32]
ldr r2, [fp, #-40]
mul r2, r3, r2
ldr r3, [fp, #-28]
add r3, r2, r3
lsl r3, r3, #3
ldr r2, [fp, #-52]
add r3, r2, r3
ldmia r3, {r2-r3}
bl __aeabi_dmul
mov r2, r0
mov r3, r1
mov r0, r2
mov r1, r3
ldr r3, [fp, #-36]
ldr r2, [fp, #-40]
mul r2, r3, r2
ldr r3, [fp, #-28]
add r3, r2, r3
lsl r3, r3, #3
ldr r2, [fp, #-44]
add r6, r2, r3
mov r2, r0
mov r3, r1
mov r0, r4
mov r1, r5
bl __aeabi_dadd
mov r2, r0
mov r3, r1
stm r6, {r2-r3}
ldr r3, [fp, #-32]
add r3, r3, #1
str r3, [fp, #-32]
.L4:
ldr r2, [fp, #-32]
ldr r3, [fp, #-40]
cmp r2, r3
blt .L5
ldr r3, [fp, #-28]
add r3, r3, #1
str r3, [fp, #-28]
.L3:
ldr r2, [fp, #-28]
ldr r3, [fp, #-40]
cmp r2, r3
blt .L6
ldr r3, [fp, #-36]
add r3, r3, #1
str r3, [fp, #-36]
.L2:
ldr r2, [fp, #-36]
ldr r3, [fp, #-40]
cmp r2, r3
blt .L7
ldr r3, [fp, #-24]
mov r0, r3
sub sp, fp, #16
@ sp needed
pop {r4, r5, r6, fp, pc}
.size matrix_mult, .-matrix_mult
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "731105.c"
.intel_syntax noprefix
.text
.section .rodata
.LC0:
.string "Enter number of elements"
.LC1:
.string "%d"
.LC2:
.string "Enter value to find"
.LC3:
.string " %d Found at index : %d\n"
.align 8
.LC4:
.string "%d isn't present in the list.\n"
.text
.globl main
.type main, @function
main:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
push r15
push r14
push r13
push r12
push rbx
sub rsp, 56
.cfi_offset 15, -24
.cfi_offset 14, -32
.cfi_offset 13, -40
.cfi_offset 12, -48
.cfi_offset 3, -56
mov rax, QWORD PTR fs:40
mov QWORD PTR -56[rbp], rax
xor eax, eax
mov rax, rsp
mov rbx, rax
lea rdi, .LC0[rip]
call puts@PLT
lea rax, -96[rbp]
mov rsi, rax
lea rdi, .LC1[rip]
mov eax, 0
call __isoc99_scanf@PLT
mov DWORD PTR -84[rbp], 0
mov eax, DWORD PTR -96[rbp]
sub eax, 1
mov DWORD PTR -88[rbp], eax
mov eax, DWORD PTR -96[rbp]
movsx rdx, eax
sub rdx, 1
mov QWORD PTR -72[rbp], rdx
movsx rdx, eax
mov r14, rdx
mov r15d, 0
movsx rdx, eax
mov r12, rdx
mov r13d, 0
cdqe
lea rdx, 0[0+rax*4]
mov eax, 16
sub rax, 1
add rax, rdx
mov ecx, 16
mov edx, 0
div rcx
imul rax, rax, 16
mov rcx, rax
and rcx, -4096
mov rdx, rsp
sub rdx, rcx
.L2:
cmp rsp, rdx
je .L3
sub rsp, 4096
or QWORD PTR 4088[rsp], 0
jmp .L2
.L3:
mov rdx, rax
and edx, 4095
sub rsp, rdx
mov rdx, rax
and edx, 4095
test rdx, rdx
je .L4
and eax, 4095
sub rax, 8
add rax, rsp
or QWORD PTR [rax], 0
.L4:
mov rax, rsp
add rax, 3
shr rax, 2
sal rax, 2
mov QWORD PTR -64[rbp], rax
mov DWORD PTR -80[rbp], 0
jmp .L5
.L6:
mov eax, DWORD PTR -80[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -64[rbp]
add rax, rdx
mov rsi, rax
lea rdi, .LC1[rip]
mov eax, 0
call __isoc99_scanf@PLT
add DWORD PTR -80[rbp], 1
.L5:
mov eax, DWORD PTR -96[rbp]
cmp DWORD PTR -80[rbp], eax
jl .L6
lea rdi, .LC2[rip]
call puts@PLT
lea rax, -92[rbp]
mov rsi, rax
lea rdi, .LC1[rip]
mov eax, 0
call __isoc99_scanf@PLT
jmp .L7
.L12:
mov edx, DWORD PTR -84[rbp]
mov eax, DWORD PTR -88[rbp]
add eax, edx
mov edx, eax
shr edx, 31
add eax, edx
sar eax
mov DWORD PTR -76[rbp], eax
mov rax, QWORD PTR -64[rbp]
mov edx, DWORD PTR -76[rbp]
movsx rdx, edx
mov edx, DWORD PTR [rax+rdx*4]
mov eax, DWORD PTR -92[rbp]
cmp edx, eax
jne .L8
mov eax, DWORD PTR -92[rbp]
mov edx, DWORD PTR -76[rbp]
mov esi, eax
lea rdi, .LC3[rip]
mov eax, 0
call printf@PLT
jmp .L9
.L8:
mov rax, QWORD PTR -64[rbp]
mov edx, DWORD PTR -76[rbp]
movsx rdx, edx
mov edx, DWORD PTR [rax+rdx*4]
mov eax, DWORD PTR -92[rbp]
cmp edx, eax
jge .L10
mov eax, DWORD PTR -76[rbp]
add eax, 1
mov DWORD PTR -84[rbp], eax
jmp .L11
.L10:
mov eax, DWORD PTR -76[rbp]
sub eax, 1
mov DWORD PTR -88[rbp], eax
.L11:
mov eax, DWORD PTR -84[rbp]
cmp eax, DWORD PTR -88[rbp]
jle .L7
mov eax, DWORD PTR -92[rbp]
mov esi, eax
lea rdi, .LC4[rip]
mov eax, 0
call printf@PLT
.L7:
mov eax, DWORD PTR -84[rbp]
cmp eax, DWORD PTR -88[rbp]
jle .L12
.L9:
mov eax, 0
mov rsp, rbx
mov rbx, QWORD PTR -56[rbp]
sub rbx, QWORD PTR fs:40
je .L14
call __stack_chk_fail@PLT
.L14:
lea rsp, -40[rbp]
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size main, .-main
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "731105.c"
.text
.section .rodata
.align 2
.LC0:
.ascii "Enter number of elements\000"
.align 2
.LC1:
.ascii "%d\000"
.align 2
.LC2:
.ascii "Enter value to find\000"
.align 2
.LC3:
.ascii " %d Found at index : %d\012\000"
.align 2
.LC4:
.ascii "%d isn't present in the list.\012\000"
.align 2
.LC5:
.word __stack_chk_guard
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 40
@ frame_needed = 1, uses_anonymous_args = 0
push {r4, fp, lr}
add fp, sp, #8
sub sp, sp, #44
ldr r3, .L12
ldr r3, [r3]
str r3, [fp, #-16]
mov r3,#0
mov r3, sp
mov r4, r3
ldr r0, .L12+4
bl puts
sub r3, fp, #48
mov r1, r3
ldr r0, .L12+8
bl __isoc99_scanf
mov r3, #0
str r3, [fp, #-36]
ldr r3, [fp, #-48]
sub r3, r3, #1
str r3, [fp, #-40]
ldr ip, [fp, #-48]
sub r3, ip, #1
str r3, [fp, #-28]
mov r3, ip
mov r0, r3
mov r1, #0
mov r2, #0
mov r3, #0
lsl r3, r1, #5
orr r3, r3, r0, lsr #27
lsl r2, r0, #5
mov r3, ip
mov r0, r3
mov r1, #0
mov r2, #0
mov r3, #0
lsl r3, r1, #5
orr r3, r3, r0, lsr #27
lsl r2, r0, #5
mov r3, ip
lsl r3, r3, #2
add r3, r3, #7
lsr r3, r3, #3
lsl r3, r3, #3
sub sp, sp, r3
mov r3, sp
add r3, r3, #3
lsr r3, r3, #2
lsl r3, r3, #2
str r3, [fp, #-24]
mov r3, #0
str r3, [fp, #-32]
b .L2
.L3:
ldr r3, [fp, #-32]
lsl r3, r3, #2
ldr r2, [fp, #-24]
add r3, r2, r3
mov r1, r3
ldr r0, .L12+8
bl __isoc99_scanf
ldr r3, [fp, #-32]
add r3, r3, #1
str r3, [fp, #-32]
.L2:
ldr r3, [fp, #-48]
ldr r2, [fp, #-32]
cmp r2, r3
blt .L3
ldr r0, .L12+12
bl puts
sub r3, fp, #44
mov r1, r3
ldr r0, .L12+8
bl __isoc99_scanf
b .L4
.L9:
ldr r2, [fp, #-36]
ldr r3, [fp, #-40]
add r3, r2, r3
lsr r2, r3, #31
add r3, r2, r3
asr r3, r3, #1
str r3, [fp, #-20]
ldr r3, [fp, #-24]
ldr r2, [fp, #-20]
ldr r2, [r3, r2, lsl #2]
ldr r3, [fp, #-44]
cmp r2, r3
bne .L5
ldr r3, [fp, #-44]
ldr r2, [fp, #-20]
mov r1, r3
ldr r0, .L12+16
bl printf
b .L6
.L5:
ldr r3, [fp, #-24]
ldr r2, [fp, #-20]
ldr r2, [r3, r2, lsl #2]
ldr r3, [fp, #-44]
cmp r2, r3
bge .L7
ldr r3, [fp, #-20]
add r3, r3, #1
str r3, [fp, #-36]
b .L8
.L7:
ldr r3, [fp, #-20]
sub r3, r3, #1
str r3, [fp, #-40]
.L8:
ldr r2, [fp, #-36]
ldr r3, [fp, #-40]
cmp r2, r3
ble .L4
ldr r3, [fp, #-44]
mov r1, r3
ldr r0, .L12+20
bl printf
.L4:
ldr r2, [fp, #-36]
ldr r3, [fp, #-40]
cmp r2, r3
ble .L9
.L6:
mov r3, #0
mov sp, r4
ldr r2, .L12
ldr r1, [r2]
ldr r2, [fp, #-16]
eors r1, r2, r1
mov r2, #0
beq .L11
bl __stack_chk_fail
.L11:
mov r0, r3
sub sp, fp, #8
@ sp needed
pop {r4, fp, pc}
.L13:
.align 2
.L12:
.word .LC5
.word .LC0
.word .LC1
.word .LC2
.word .LC3
.word .LC4
.size main, .-main
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "202353.c"
.intel_syntax noprefix
.text
.section .rodata
.LC0:
.string "%d"
.text
.globl main
.type main, @function
main:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 32
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
mov DWORD PTR -16[rbp], 1
lea rax, -20[rbp]
mov rsi, rax
lea rdi, .LC0[rip]
mov eax, 0
call __isoc99_scanf@PLT
mov DWORD PTR -12[rbp], 1
jmp .L2
.L3:
add DWORD PTR -16[rbp], 1
sal DWORD PTR -16[rbp]
add DWORD PTR -12[rbp], 1
.L2:
mov eax, DWORD PTR -20[rbp]
cmp DWORD PTR -12[rbp], eax
jl .L3
mov eax, DWORD PTR -16[rbp]
mov esi, eax
lea rdi, .LC0[rip]
mov eax, 0
call printf@PLT
mov eax, 0
mov rdx, QWORD PTR -8[rbp]
sub rdx, QWORD PTR fs:40
je .L5
call __stack_chk_fail@PLT
.L5:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size main, .-main
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "202353.c"
.text
.section .rodata
.align 2
.LC0:
.ascii "%d\000"
.align 2
.LC1:
.word __stack_chk_guard
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #16
ldr r3, .L6
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
mov r3, #1
str r3, [fp, #-16]
sub r3, fp, #20
mov r1, r3
ldr r0, .L6+4
bl __isoc99_scanf
mov r3, #1
str r3, [fp, #-12]
b .L2
.L3:
ldr r3, [fp, #-16]
add r3, r3, #1
str r3, [fp, #-16]
ldr r3, [fp, #-16]
lsl r3, r3, #1
str r3, [fp, #-16]
ldr r3, [fp, #-12]
add r3, r3, #1
str r3, [fp, #-12]
.L2:
ldr r3, [fp, #-20]
ldr r2, [fp, #-12]
cmp r2, r3
blt .L3
ldr r1, [fp, #-16]
ldr r0, .L6+4
bl printf
mov r3, #0
ldr r2, .L6
ldr r1, [r2]
ldr r2, [fp, #-8]
eors r1, r2, r1
mov r2, #0
beq .L5
bl __stack_chk_fail
.L5:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L7:
.align 2
.L6:
.word .LC1
.word .LC0
.size main, .-main
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "837862.c"
.intel_syntax noprefix
.text
.section .rodata
.LC0:
.string "Baby it's cold outside!"
.text
.globl main
.type main, @function
main:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov edx, 1400
mov esi, 1450
mov edi, 0
mov eax, 0
call move_relative_position@PLT
mov edx, 1400
mov esi, 1250
mov edi, 3
mov eax, 0
call move_relative_position@PLT
mov edi, 0
mov eax, 0
call block_motor_done@PLT
mov edi, 3
mov eax, 0
call block_motor_done@PLT
mov eax, 0
call enable_servos@PLT
mov esi, 50
mov edi, 1
mov eax, 0
call set_servo_position@PLT
mov esi, 1350
mov edi, 0
mov eax, 0
call set_servo_position@PLT
mov edi, 1000
mov eax, 0
call msleep@PLT
mov edx, 1200
mov esi, 1500
mov edi, 0
mov eax, 0
call move_relative_position@PLT
mov edx, 1200
mov esi, 1250
mov edi, 3
mov eax, 0
call move_relative_position@PLT
mov edi, 0
mov eax, 0
call block_motor_done@PLT
mov edi, 3
mov eax, 0
call block_motor_done@PLT
mov esi, 900
mov edi, 1
mov eax, 0
call set_servo_position@PLT
mov edi, 1000
mov eax, 0
call msleep@PLT
mov edx, 2150
mov esi, 1500
mov edi, 0
mov eax, 0
call move_relative_position@PLT
mov edx, 2150
mov esi, 1250
mov edi, 3
mov eax, 0
call move_relative_position@PLT
mov edi, 0
mov eax, 0
call block_motor_done@PLT
mov edi, 3
mov eax, 0
call block_motor_done@PLT
mov edx, -700
mov esi, 800
mov edi, 3
mov eax, 0
call move_relative_position@PLT
mov edx, 700
mov esi, 800
mov edi, 0
mov eax, 0
call move_relative_position@PLT
mov edi, 3
mov eax, 0
call block_motor_done@PLT
mov edi, 0
mov eax, 0
call block_motor_done@PLT
mov edx, 1850
mov esi, 1050
mov edi, 0
mov eax, 0
call move_relative_position@PLT
mov edx, 1850
mov esi, 1000
mov edi, 3
mov eax, 0
call move_relative_position@PLT
mov edi, 0
mov eax, 0
call block_motor_done@PLT
mov edi, 3
mov eax, 0
call block_motor_done@PLT
mov edx, -400
mov esi, 800
mov edi, 3
mov eax, 0
call move_relative_position@PLT
mov edx, 400
mov esi, 800
mov edi, 0
mov eax, 0
call move_relative_position@PLT
mov edi, 2
mov eax, 0
call block_motor_done@PLT
mov edi, 0
mov eax, 0
call block_motor_done@PLT
mov eax, 0
call enable_servos@PLT
mov esi, 2147
mov edi, 0
mov eax, 0
call set_servo_position@PLT
mov edi, 1000
mov eax, 0
call msleep@PLT
mov esi, 50
mov edi, 1
mov eax, 0
call set_servo_position@PLT
mov edx, 4400
mov esi, 1200
mov edi, 0
mov eax, 0
call move_relative_position@PLT
mov edx, 4400
mov esi, 1150
mov edi, 3
mov eax, 0
call move_relative_position@PLT
mov edi, 0
mov eax, 0
call block_motor_done@PLT
mov edi, 3
mov eax, 0
call block_motor_done@PLT
mov eax, 0
call enable_servos@PLT
mov esi, 900
mov edi, 1
mov eax, 0
call set_servo_position@PLT
mov edi, 1000
mov eax, 0
call msleep@PLT
mov edx, -4700
mov esi, 1200
mov edi, 0
mov eax, 0
call move_relative_position@PLT
mov edx, -4700
mov esi, 1150
mov edi, 3
mov eax, 0
call move_relative_position@PLT
mov edi, 0
mov eax, 0
call block_motor_done@PLT
mov edi, 3
mov eax, 0
call block_motor_done@PLT
mov esi, 900
mov edi, 1
mov eax, 0
call set_servo_position@PLT
mov edi, 1000
mov eax, 0
call msleep@PLT
lea rdi, .LC0[rip]
call puts@PLT
mov esi, 1400
mov edi, 0
mov eax, 0
call set_servo_position@PLT
mov edx, 2000
mov esi, -1200
mov edi, 0
mov eax, 0
call move_relative_position@PLT
mov edx, 2000
mov esi, -1150
mov edi, 3
mov eax, 0
call move_relative_position@PLT
mov edx, 2000
mov esi, -1200
mov edi, 0
mov eax, 0
call move_relative_position@PLT
mov edx, 2000
mov esi, -1150
mov edi, 3
mov eax, 0
call move_relative_position@PLT
mov edi, 0
mov eax, 0
call block_motor_done@PLT
mov edi, 3
mov eax, 0
call block_motor_done@PLT
mov eax, 0
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size main, .-main
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "837862.c"
.text
.section .rodata
.align 2
.LC0:
.ascii "Baby it's cold outside!\000"
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
ldr r2, .L3
ldr r1, .L3+4
mov r0, #0
bl move_relative_position
ldr r2, .L3
ldr r1, .L3+8
mov r0, #3
bl move_relative_position
mov r0, #0
bl block_motor_done
mov r0, #3
bl block_motor_done
bl enable_servos
mov r1, #50
mov r0, #1
bl set_servo_position
ldr r1, .L3+12
mov r0, #0
bl set_servo_position
mov r0, #1000
bl msleep
mov r2, #1200
ldr r1, .L3+16
mov r0, #0
bl move_relative_position
mov r2, #1200
ldr r1, .L3+8
mov r0, #3
bl move_relative_position
mov r0, #0
bl block_motor_done
mov r0, #3
bl block_motor_done
mov r1, #900
mov r0, #1
bl set_servo_position
mov r0, #1000
bl msleep
ldr r2, .L3+20
ldr r1, .L3+16
mov r0, #0
bl move_relative_position
ldr r2, .L3+20
ldr r1, .L3+8
mov r0, #3
bl move_relative_position
mov r0, #0
bl block_motor_done
mov r0, #3
bl block_motor_done
ldr r2, .L3+24
mov r1, #800
mov r0, #3
bl move_relative_position
mov r2, #700
mov r1, #800
mov r0, #0
bl move_relative_position
mov r0, #3
bl block_motor_done
mov r0, #0
bl block_motor_done
ldr r2, .L3+28
ldr r1, .L3+32
mov r0, #0
bl move_relative_position
ldr r2, .L3+28
mov r1, #1000
mov r0, #3
bl move_relative_position
mov r0, #0
bl block_motor_done
mov r0, #3
bl block_motor_done
ldr r2, .L3+36
mov r1, #800
mov r0, #3
bl move_relative_position
mov r2, #400
mov r1, #800
mov r0, #0
bl move_relative_position
mov r0, #2
bl block_motor_done
mov r0, #0
bl block_motor_done
bl enable_servos
ldr r1, .L3+40
mov r0, #0
bl set_servo_position
mov r0, #1000
bl msleep
mov r1, #50
mov r0, #1
bl set_servo_position
ldr r2, .L3+44
mov r1, #1200
mov r0, #0
bl move_relative_position
ldr r2, .L3+44
ldr r1, .L3+48
mov r0, #3
bl move_relative_position
mov r0, #0
bl block_motor_done
mov r0, #3
bl block_motor_done
bl enable_servos
mov r1, #900
mov r0, #1
bl set_servo_position
mov r0, #1000
bl msleep
ldr r2, .L3+52
mov r1, #1200
mov r0, #0
bl move_relative_position
ldr r2, .L3+52
ldr r1, .L3+48
mov r0, #3
bl move_relative_position
mov r0, #0
bl block_motor_done
mov r0, #3
bl block_motor_done
mov r1, #900
mov r0, #1
bl set_servo_position
mov r0, #1000
bl msleep
ldr r0, .L3+56
bl puts
ldr r1, .L3
mov r0, #0
bl set_servo_position
mov r2, #2000
ldr r1, .L3+60
mov r0, #0
bl move_relative_position
mov r2, #2000
ldr r1, .L3+64
mov r0, #3
bl move_relative_position
mov r2, #2000
ldr r1, .L3+60
mov r0, #0
bl move_relative_position
mov r2, #2000
ldr r1, .L3+64
mov r0, #3
bl move_relative_position
mov r0, #0
bl block_motor_done
mov r0, #3
bl block_motor_done
mov r3, #0
mov r0, r3
pop {fp, pc}
.L4:
.align 2
.L3:
.word 1400
.word 1450
.word 1250
.word 1350
.word 1500
.word 2150
.word -700
.word 1850
.word 1050
.word -400
.word 2147
.word 4400
.word 1150
.word -4700
.word .LC0
.word -1200
.word -1150
.size main, .-main
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "774388.c"
.intel_syntax noprefix
.text
.section .rodata
.align 8
.LC0:
.string "Digite uma letra correspondente ao sexo: "
.LC1:
.string "%s"
.LC2:
.string "F"
.LC3:
.string "Feminino"
.LC4:
.string "M"
.LC5:
.string "Masculino"
.LC6:
.string "Sexo invalido"
.text
.globl main
.type main, @function
main:
.LFB6:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 80
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
lea rdi, .LC0[rip]
mov eax, 0
call printf@PLT
lea rax, -64[rbp]
mov rsi, rax
lea rdi, .LC1[rip]
mov eax, 0
call __isoc99_scanf@PLT
lea rax, -64[rbp]
lea rsi, .LC2[rip]
mov rdi, rax
call strcmp@PLT
mov DWORD PTR -68[rbp], eax
cmp DWORD PTR -68[rbp], 0
jne .L2
lea rdi, .LC3[rip]
call puts@PLT
mov eax, 0
jmp .L5
.L2:
lea rax, -64[rbp]
lea rsi, .LC4[rip]
mov rdi, rax
call strcmp@PLT
mov DWORD PTR -68[rbp], eax
cmp DWORD PTR -68[rbp], 0
jne .L4
lea rdi, .LC5[rip]
call puts@PLT
mov eax, 0
jmp .L5
.L4:
lea rdi, .LC6[rip]
call puts@PLT
mov eax, 0
.L5:
mov rdx, QWORD PTR -8[rbp]
sub rdx, QWORD PTR fs:40
je .L6
call __stack_chk_fail@PLT
.L6:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size main, .-main
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "774388.c"
.text
.section .rodata
.align 2
.LC0:
.ascii "Digite uma letra correspondente ao sexo: \000"
.align 2
.LC1:
.ascii "%s\000"
.align 2
.LC2:
.ascii "F\000"
.align 2
.LC3:
.ascii "Feminino\000"
.align 2
.LC4:
.ascii "M\000"
.align 2
.LC5:
.ascii "Masculino\000"
.align 2
.LC6:
.ascii "Sexo invalido\000"
.align 2
.LC7:
.word __stack_chk_guard
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 64
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #64
ldr r3, .L7
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
ldr r0, .L7+4
bl printf
sub r3, fp, #60
mov r1, r3
ldr r0, .L7+8
bl __isoc99_scanf
sub r3, fp, #60
ldr r1, .L7+12
mov r0, r3
bl strcmp
str r0, [fp, #-64]
ldr r3, [fp, #-64]
cmp r3, #0
bne .L2
ldr r0, .L7+16
bl puts
mov r3, #0
b .L5
.L2:
sub r3, fp, #60
ldr r1, .L7+20
mov r0, r3
bl strcmp
str r0, [fp, #-64]
ldr r3, [fp, #-64]
cmp r3, #0
bne .L4
ldr r0, .L7+24
bl puts
mov r3, #0
b .L5
.L4:
ldr r0, .L7+28
bl puts
mov r3, #0
.L5:
ldr r2, .L7
ldr r1, [r2]
ldr r2, [fp, #-8]
eors r1, r2, r1
mov r2, #0
beq .L6
bl __stack_chk_fail
.L6:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L8:
.align 2
.L7:
.word .LC7
.word .LC0
.word .LC1
.word .LC2
.word .LC3
.word .LC4
.word .LC5
.word .LC6
.size main, .-main
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "949319.c"
.intel_syntax noprefix
.text
.globl ft_strcmp
.type ft_strcmp, @function
ft_strcmp:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov QWORD PTR -8[rbp], rdi
mov QWORD PTR -16[rbp], rsi
jmp .L2
.L4:
add QWORD PTR -8[rbp], 1
add QWORD PTR -16[rbp], 1
.L2:
mov rax, QWORD PTR -8[rbp]
movzx eax, BYTE PTR [rax]
test al, al
je .L3
mov rax, QWORD PTR -8[rbp]
movzx edx, BYTE PTR [rax]
mov rax, QWORD PTR -16[rbp]
movzx eax, BYTE PTR [rax]
cmp dl, al
je .L4
.L3:
mov rax, QWORD PTR -8[rbp]
movzx eax, BYTE PTR [rax]
movsx edx, al
mov rax, QWORD PTR -16[rbp]
movzx eax, BYTE PTR [rax]
movsx ecx, al
mov eax, edx
sub eax, ecx
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ft_strcmp, .-ft_strcmp
.section .rodata
.LC0:
.string "abcdefghi"
.LC1:
.string "abcdefg"
.LC2:
.string "abcdEfghi"
.LC3:
.string "ab0defghi"
.align 8
.LC4:
.string "s1: %s, s2: %s, s3: %s, s4: %s, s5: %s\n"
.LC5:
.string "cmp_12 = %d, og_cmp_12 = %d\n"
.LC6:
.string "cmp_13 = %d, og_cmp_13 = %d\n"
.LC7:
.string "cmp_14 = %d, og_cmp_14 = %d\n"
.LC8:
.string "cmp_15 = %d, og_cmp_15 = %d\n"
.text
.globl main
.type main, @function
main:
.LFB7:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
push rbx
sub rsp, 56
.cfi_offset 3, -24
mov rax, QWORD PTR fs:40
mov QWORD PTR -24[rbp], rax
xor eax, eax
mov DWORD PTR -30[rbp], -161258911
mov WORD PTR -26[rbp], 236
mov esi, 1
mov edi, 10
call calloc@PLT
mov QWORD PTR -64[rbp], rax
mov esi, 1
mov edi, 8
call calloc@PLT
mov QWORD PTR -56[rbp], rax
mov esi, 1
mov edi, 10
call calloc@PLT
mov QWORD PTR -48[rbp], rax
mov esi, 1
mov edi, 10
call calloc@PLT
mov QWORD PTR -40[rbp], rax
lea rax, .LC0[rip]
mov QWORD PTR -64[rbp], rax
lea rax, .LC1[rip]
mov QWORD PTR -56[rbp], rax
lea rax, .LC2[rip]
mov QWORD PTR -48[rbp], rax
lea rax, .LC3[rip]
mov QWORD PTR -40[rbp], rax
lea rdi, -30[rbp]
mov rsi, QWORD PTR -40[rbp]
mov rcx, QWORD PTR -48[rbp]
mov rdx, QWORD PTR -56[rbp]
mov rax, QWORD PTR -64[rbp]
mov r9, rdi
mov r8, rsi
mov rsi, rax
lea rdi, .LC4[rip]
mov eax, 0
call printf@PLT
mov rdx, QWORD PTR -56[rbp]
mov rax, QWORD PTR -64[rbp]
mov rsi, rdx
mov rdi, rax
call strcmp@PLT
mov ebx, eax
mov rdx, QWORD PTR -56[rbp]
mov rax, QWORD PTR -64[rbp]
mov rsi, rdx
mov rdi, rax
call ft_strcmp
mov edx, ebx
mov esi, eax
lea rdi, .LC5[rip]
mov eax, 0
call printf@PLT
mov rdx, QWORD PTR -48[rbp]
mov rax, QWORD PTR -64[rbp]
mov rsi, rdx
mov rdi, rax
call strcmp@PLT
mov ebx, eax
mov rdx, QWORD PTR -48[rbp]
mov rax, QWORD PTR -64[rbp]
mov rsi, rdx
mov rdi, rax
call ft_strcmp
mov edx, ebx
mov esi, eax
lea rdi, .LC6[rip]
mov eax, 0
call printf@PLT
mov rdx, QWORD PTR -40[rbp]
mov rax, QWORD PTR -64[rbp]
mov rsi, rdx
mov rdi, rax
call strcmp@PLT
mov ebx, eax
mov rdx, QWORD PTR -40[rbp]
mov rax, QWORD PTR -64[rbp]
mov rsi, rdx
mov rdi, rax
call ft_strcmp
mov edx, ebx
mov esi, eax
lea rdi, .LC7[rip]
mov eax, 0
call printf@PLT
lea rdx, -30[rbp]
mov rax, QWORD PTR -64[rbp]
mov rsi, rdx
mov rdi, rax
call strcmp@PLT
mov ebx, eax
lea rdx, -30[rbp]
mov rax, QWORD PTR -64[rbp]
mov rsi, rdx
mov rdi, rax
call ft_strcmp
mov edx, ebx
mov esi, eax
lea rdi, .LC8[rip]
mov eax, 0
call printf@PLT
mov eax, 0
mov rcx, QWORD PTR -24[rbp]
sub rcx, QWORD PTR fs:40
je .L8
call __stack_chk_fail@PLT
.L8:
mov rbx, QWORD PTR -8[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE7:
.size main, .-main
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "949319.c"
.text
.align 2
.global ft_strcmp
.syntax unified
.arm
.fpu softvfp
.type ft_strcmp, %function
ft_strcmp:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #12
str r0, [fp, #-8]
str r1, [fp, #-12]
b .L2
.L4:
ldr r3, [fp, #-8]
add r3, r3, #1
str r3, [fp, #-8]
ldr r3, [fp, #-12]
add r3, r3, #1
str r3, [fp, #-12]
.L2:
ldr r3, [fp, #-8]
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L3
ldr r3, [fp, #-8]
ldrb r2, [r3] @ zero_extendqisi2
ldr r3, [fp, #-12]
ldrb r3, [r3] @ zero_extendqisi2
cmp r2, r3
beq .L4
.L3:
ldr r3, [fp, #-8]
ldrb r3, [r3] @ zero_extendqisi2
mov r2, r3
ldr r3, [fp, #-12]
ldrb r3, [r3] @ zero_extendqisi2
sub r3, r2, r3
mov r0, r3
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size ft_strcmp, .-ft_strcmp
.section .rodata
.align 2
.LC1:
.ascii "abcdefghi\000"
.align 2
.LC2:
.ascii "abcdefg\000"
.align 2
.LC3:
.ascii "abcdEfghi\000"
.align 2
.LC4:
.ascii "ab0defghi\000"
.align 2
.LC5:
.ascii "s1: %s, s2: %s, s3: %s, s4: %s, s5: %s\012\000"
.align 2
.LC6:
.ascii "cmp_12 = %d, og_cmp_12 = %d\012\000"
.align 2
.LC7:
.ascii "cmp_13 = %d, og_cmp_13 = %d\012\000"
.align 2
.LC8:
.ascii "cmp_14 = %d, og_cmp_14 = %d\012\000"
.align 2
.LC9:
.ascii "cmp_15 = %d, og_cmp_15 = %d\012\000"
.align 2
.LC0:
.ascii "abc\366\354\000"
.align 2
.LC10:
.word __stack_chk_guard
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 32
@ frame_needed = 1, uses_anonymous_args = 0
push {r4, fp, lr}
add fp, sp, #8
sub sp, sp, #44
ldr r3, .L9
ldr r3, [r3]
str r3, [fp, #-16]
mov r3,#0
ldr r2, .L9+4
sub r3, fp, #24
ldm r2, {r0, r1}
str r0, [r3]
add r3, r3, #4
strh r1, [r3] @ movhi
mov r1, #1
mov r0, #10
bl calloc
mov r3, r0
str r3, [fp, #-40]
mov r1, #1
mov r0, #8
bl calloc
mov r3, r0
str r3, [fp, #-36]
mov r1, #1
mov r0, #10
bl calloc
mov r3, r0
str r3, [fp, #-32]
mov r1, #1
mov r0, #10
bl calloc
mov r3, r0
str r3, [fp, #-28]
ldr r3, .L9+8
str r3, [fp, #-40]
ldr r3, .L9+12
str r3, [fp, #-36]
ldr r3, .L9+16
str r3, [fp, #-32]
ldr r3, .L9+20
str r3, [fp, #-28]
sub r3, fp, #24
str r3, [sp, #4]
ldr r3, [fp, #-28]
str r3, [sp]
ldr r3, [fp, #-32]
ldr r2, [fp, #-36]
ldr r1, [fp, #-40]
ldr r0, .L9+24
bl printf
ldr r1, [fp, #-36]
ldr r0, [fp, #-40]
bl ft_strcmp
mov r4, r0
ldr r1, [fp, #-36]
ldr r0, [fp, #-40]
bl strcmp
mov r3, r0
mov r2, r3
mov r1, r4
ldr r0, .L9+28
bl printf
ldr r1, [fp, #-32]
ldr r0, [fp, #-40]
bl ft_strcmp
mov r4, r0
ldr r1, [fp, #-32]
ldr r0, [fp, #-40]
bl strcmp
mov r3, r0
mov r2, r3
mov r1, r4
ldr r0, .L9+32
bl printf
ldr r1, [fp, #-28]
ldr r0, [fp, #-40]
bl ft_strcmp
mov r4, r0
ldr r1, [fp, #-28]
ldr r0, [fp, #-40]
bl strcmp
mov r3, r0
mov r2, r3
mov r1, r4
ldr r0, .L9+36
bl printf
sub r3, fp, #24
mov r1, r3
ldr r0, [fp, #-40]
bl ft_strcmp
mov r4, r0
sub r3, fp, #24
mov r1, r3
ldr r0, [fp, #-40]
bl strcmp
mov r3, r0
mov r2, r3
mov r1, r4
ldr r0, .L9+40
bl printf
mov r3, #0
ldr r2, .L9
ldr r1, [r2]
ldr r2, [fp, #-16]
eors r1, r2, r1
mov r2, #0
beq .L8
bl __stack_chk_fail
.L8:
mov r0, r3
sub sp, fp, #8
@ sp needed
pop {r4, fp, pc}
.L10:
.align 2
.L9:
.word .LC10
.word .LC0
.word .LC1
.word .LC2
.word .LC3
.word .LC4
.word .LC5
.word .LC6
.word .LC7
.word .LC8
.word .LC9
.size main, .-main
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "154038.c"
.intel_syntax noprefix
.text
.section .rodata
.LC0:
.string "Enter a string: "
.LC1:
.string "%s"
.LC2:
.string "Enter the start index: "
.LC3:
.string "%d"
.LC4:
.string "Enter the end index: "
.align 8
.LC5:
.string "The substring of the given string is '%s'\n"
.text
.globl main
.type main, @function
main:
.LFB6:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
add rsp, -128
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
lea rdi, .LC0[rip]
mov eax, 0
call printf@PLT
lea rax, -112[rbp]
mov rsi, rax
lea rdi, .LC1[rip]
mov eax, 0
call __isoc99_scanf@PLT
mov rax, QWORD PTR stdin[rip]
mov rdi, rax
call fflush@PLT
lea rdi, .LC2[rip]
mov eax, 0
call printf@PLT
lea rax, -128[rbp]
mov rsi, rax
lea rdi, .LC3[rip]
mov eax, 0
call __isoc99_scanf@PLT
mov rax, QWORD PTR stdin[rip]
mov rdi, rax
call fflush@PLT
lea rdi, .LC4[rip]
mov eax, 0
call printf@PLT
lea rax, -124[rbp]
mov rsi, rax
lea rdi, .LC3[rip]
mov eax, 0
call __isoc99_scanf@PLT
mov edx, DWORD PTR -124[rbp]
mov ecx, DWORD PTR -128[rbp]
lea rax, -112[rbp]
mov esi, ecx
mov rdi, rax
call sub_string@PLT
cdqe
mov QWORD PTR -120[rbp], rax
mov rax, QWORD PTR -120[rbp]
mov rsi, rax
lea rdi, .LC5[rip]
mov eax, 0
call printf@PLT
mov eax, 0
mov rcx, QWORD PTR -8[rbp]
sub rcx, QWORD PTR fs:40
je .L3
call __stack_chk_fail@PLT
.L3:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size main, .-main
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "154038.c"
.text
.section .rodata
.align 2
.LC0:
.ascii "Enter a string: \000"
.align 2
.LC1:
.ascii "%s\000"
.align 2
.LC2:
.ascii "Enter the start index: \000"
.align 2
.LC3:
.ascii "%d\000"
.align 2
.LC4:
.ascii "Enter the end index: \000"
.align 2
.LC5:
.ascii "The substring of the given string is '%s'\012\000"
.align 2
.LC6:
.word __stack_chk_guard
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 120
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #120
ldr r3, .L4
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
ldr r0, .L4+4
bl printf
sub r3, fp, #108
mov r1, r3
ldr r0, .L4+8
bl __isoc99_scanf
ldr r3, .L4+12
ldr r3, [r3]
mov r0, r3
bl fflush
ldr r0, .L4+16
bl printf
sub r3, fp, #120
mov r1, r3
ldr r0, .L4+20
bl __isoc99_scanf
ldr r3, .L4+12
ldr r3, [r3]
mov r0, r3
bl fflush
ldr r0, .L4+24
bl printf
sub r3, fp, #116
mov r1, r3
ldr r0, .L4+20
bl __isoc99_scanf
ldr r1, [fp, #-120]
ldr r2, [fp, #-116]
sub r3, fp, #108
mov r0, r3
bl sub_string
mov r3, r0
str r3, [fp, #-112]
ldr r1, [fp, #-112]
ldr r0, .L4+28
bl printf
mov r3, #0
ldr r2, .L4
ldr r1, [r2]
ldr r2, [fp, #-8]
eors r1, r2, r1
mov r2, #0
beq .L3
bl __stack_chk_fail
.L3:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L5:
.align 2
.L4:
.word .LC6
.word .LC0
.word .LC1
.word stdin
.word .LC2
.word .LC3
.word .LC4
.word .LC5
.size main, .-main
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "491736.c"
.intel_syntax noprefix
.text
.local counters
.comm counters,16,16
.local counter_names
.comm counter_names,16,16
.globl exit
.type exit, @function
exit:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov DWORD PTR -4[rbp], edi
.L2:
jmp .L2
.cfi_endproc
.LFE0:
.size exit, .-exit
.globl abort
.type abort, @function
abort:
.LFB1:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov edi, 134
call exit
.cfi_endproc
.LFE1:
.size abort, .-abort
.globl outp
.data
.align 4
.type outp, @object
.size outp, 4
outp:
.long 117440512
.globl incr
.align 4
.type incr, @object
.size incr, 4
incr:
.long 4
.text
.globl printstr
.type printstr, @function
printstr:
.LFB2:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov QWORD PTR -8[rbp], rdi
jmp .L5
.L6:
mov rax, QWORD PTR -8[rbp]
lea rdx, 1[rax]
mov QWORD PTR -8[rbp], rdx
movzx eax, BYTE PTR [rax]
mov edx, DWORD PTR outp[rip]
mov edx, edx
movsx eax, al
mov DWORD PTR [rdx], eax
mov edx, DWORD PTR outp[rip]
mov eax, DWORD PTR incr[rip]
add eax, edx
mov DWORD PTR outp[rip], eax
.L5:
mov rax, QWORD PTR -8[rbp]
movzx eax, BYTE PTR [rax]
test al, al
jne .L6
nop
nop
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE2:
.size printstr, .-printstr
.globl putchar
.type putchar, @function
putchar:
.LFB3:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov DWORD PTR -4[rbp], edi
mov eax, DWORD PTR outp[rip]
mov eax, eax
mov rdx, rax
mov eax, DWORD PTR -4[rbp]
mov DWORD PTR [rdx], eax
mov eax, DWORD PTR outp[rip]
add eax, 4
mov DWORD PTR outp[rip], eax
mov eax, 0
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE3:
.size putchar, .-putchar
.globl printhex
.type printhex, @function
printhex:
.LFB4:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 64
mov QWORD PTR -56[rbp], rdi
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
mov DWORD PTR -36[rbp], 0
jmp .L10
.L13:
mov rax, QWORD PTR -56[rbp]
and eax, 15
mov edx, eax
mov rax, QWORD PTR -56[rbp]
and eax, 15
cmp rax, 9
ja .L11
mov eax, 48
jmp .L12
.L11:
mov eax, 87
.L12:
add edx, eax
mov eax, 15
sub eax, DWORD PTR -36[rbp]
cdqe
mov BYTE PTR -32[rbp+rax], dl
shr QWORD PTR -56[rbp], 4
add DWORD PTR -36[rbp], 1
.L10:
cmp DWORD PTR -36[rbp], 15
jle .L13
mov BYTE PTR -16[rbp], 0
lea rax, -32[rbp]
mov rdi, rax
call printstr
nop
mov rax, QWORD PTR -8[rbp]
sub rax, QWORD PTR fs:40
je .L14
call __stack_chk_fail@PLT
.L14:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE4:
.size printhex, .-printhex
.type printnum, @function
printnum:
.LFB5:
.cfi_startproc
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 336
mov QWORD PTR -296[rbp], rdi
mov QWORD PTR -304[rbp], rsi
mov QWORD PTR -312[rbp], rdx
mov DWORD PTR -316[rbp], ecx
mov DWORD PTR -320[rbp], r8d
mov DWORD PTR -324[rbp], r9d
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
mov DWORD PTR -276[rbp], 0
.L18:
mov ecx, DWORD PTR -316[rbp]
mov rax, QWORD PTR -312[rbp]
mov edx, 0
div rcx
mov rcx, rdx
mov eax, DWORD PTR -276[rbp]
lea edx, 1[rax]
mov DWORD PTR -276[rbp], edx
mov edx, ecx
cdqe
mov DWORD PTR -272[rbp+rax*4], edx
mov eax, DWORD PTR -316[rbp]
cmp QWORD PTR -312[rbp], rax
jb .L27
mov esi, DWORD PTR -316[rbp]
mov rax, QWORD PTR -312[rbp]
mov edx, 0
div rsi
mov QWORD PTR -312[rbp], rax
jmp .L18
.L27:
nop
jmp .L19
.L20:
mov rdx, QWORD PTR -304[rbp]
mov eax, DWORD PTR -324[rbp]
mov rcx, QWORD PTR -296[rbp]
mov rsi, rdx
mov edi, eax
call rcx
.L19:
mov eax, DWORD PTR -320[rbp]
lea edx, -1[rax]
mov DWORD PTR -320[rbp], edx
cmp DWORD PTR -276[rbp], eax
jl .L20
jmp .L21
.L24:
mov eax, DWORD PTR -276[rbp]
cdqe
mov edx, DWORD PTR -272[rbp+rax*4]
mov eax, DWORD PTR -276[rbp]
cdqe
mov eax, DWORD PTR -272[rbp+rax*4]
cmp eax, 9
jbe .L22
mov eax, 87
jmp .L23
.L22:
mov eax, 48
.L23:
add eax, edx
mov ecx, eax
mov rax, QWORD PTR -304[rbp]
mov rdx, QWORD PTR -296[rbp]
mov rsi, rax
mov edi, ecx
call rdx
.L21:
mov eax, DWORD PTR -276[rbp]
lea edx, -1[rax]
mov DWORD PTR -276[rbp], edx
test eax, eax
jg .L24
nop
mov rax, QWORD PTR -8[rbp]
sub rax, QWORD PTR fs:40
je .L25
call __stack_chk_fail@PLT
.L25:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE5:
.size printnum, .-printnum
.type getuint, @function
getuint:
.LFB6:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov QWORD PTR -8[rbp], rdi
mov DWORD PTR -12[rbp], esi
cmp DWORD PTR -12[rbp], 1
jle .L29
mov rax, QWORD PTR -8[rbp]
mov eax, DWORD PTR [rax]
cmp eax, 47
ja .L30
mov rax, QWORD PTR -8[rbp]
mov rdx, QWORD PTR 16[rax]
mov rax, QWORD PTR -8[rbp]
mov eax, DWORD PTR [rax]
mov eax, eax
add rax, rdx
mov rdx, QWORD PTR -8[rbp]
mov edx, DWORD PTR [rdx]
lea ecx, 8[rdx]
mov rdx, QWORD PTR -8[rbp]
mov DWORD PTR [rdx], ecx
jmp .L31
.L30:
mov rax, QWORD PTR -8[rbp]
mov rax, QWORD PTR 8[rax]
lea rcx, 8[rax]
mov rdx, QWORD PTR -8[rbp]
mov QWORD PTR 8[rdx], rcx
.L31:
mov rax, QWORD PTR [rax]
jmp .L32
.L29:
cmp DWORD PTR -12[rbp], 0
je .L33
mov rax, QWORD PTR -8[rbp]
mov eax, DWORD PTR [rax]
cmp eax, 47
ja .L34
mov rax, QWORD PTR -8[rbp]
mov rdx, QWORD PTR 16[rax]
mov rax, QWORD PTR -8[rbp]
mov eax, DWORD PTR [rax]
mov eax, eax
add rax, rdx
mov rdx, QWORD PTR -8[rbp]
mov edx, DWORD PTR [rdx]
lea ecx, 8[rdx]
mov rdx, QWORD PTR -8[rbp]
mov DWORD PTR [rdx], ecx
jmp .L35
.L34:
mov rax, QWORD PTR -8[rbp]
mov rax, QWORD PTR 8[rax]
lea rcx, 8[rax]
mov rdx, QWORD PTR -8[rbp]
mov QWORD PTR 8[rdx], rcx
.L35:
mov rax, QWORD PTR [rax]
jmp .L32
.L33:
mov rax, QWORD PTR -8[rbp]
mov eax, DWORD PTR [rax]
cmp eax, 47
ja .L36
mov rax, QWORD PTR -8[rbp]
mov rdx, QWORD PTR 16[rax]
mov rax, QWORD PTR -8[rbp]
mov eax, DWORD PTR [rax]
mov eax, eax
add rax, rdx
mov rdx, QWORD PTR -8[rbp]
mov edx, DWORD PTR [rdx]
lea ecx, 8[rdx]
mov rdx, QWORD PTR -8[rbp]
mov DWORD PTR [rdx], ecx
jmp .L37
.L36:
mov rax, QWORD PTR -8[rbp]
mov rax, QWORD PTR 8[rax]
lea rcx, 8[rax]
mov rdx, QWORD PTR -8[rbp]
mov QWORD PTR 8[rdx], rcx
.L37:
mov eax, DWORD PTR [rax]
mov eax, eax
.L32:
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size getuint, .-getuint
.type getint, @function
getint:
.LFB7:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov QWORD PTR -8[rbp], rdi
mov DWORD PTR -12[rbp], esi
cmp DWORD PTR -12[rbp], 1
jle .L39
mov rax, QWORD PTR -8[rbp]
mov eax, DWORD PTR [rax]
cmp eax, 47
ja .L40
mov rax, QWORD PTR -8[rbp]
mov rdx, QWORD PTR 16[rax]
mov rax, QWORD PTR -8[rbp]
mov eax, DWORD PTR [rax]
mov eax, eax
add rax, rdx
mov rdx, QWORD PTR -8[rbp]
mov edx, DWORD PTR [rdx]
lea ecx, 8[rdx]
mov rdx, QWORD PTR -8[rbp]
mov DWORD PTR [rdx], ecx
jmp .L41
.L40:
mov rax, QWORD PTR -8[rbp]
mov rax, QWORD PTR 8[rax]
lea rcx, 8[rax]
mov rdx, QWORD PTR -8[rbp]
mov QWORD PTR 8[rdx], rcx
.L41:
mov rax, QWORD PTR [rax]
jmp .L42
.L39:
cmp DWORD PTR -12[rbp], 0
je .L43
mov rax, QWORD PTR -8[rbp]
mov eax, DWORD PTR [rax]
cmp eax, 47
ja .L44
mov rax, QWORD PTR -8[rbp]
mov rdx, QWORD PTR 16[rax]
mov rax, QWORD PTR -8[rbp]
mov eax, DWORD PTR [rax]
mov eax, eax
add rax, rdx
mov rdx, QWORD PTR -8[rbp]
mov edx, DWORD PTR [rdx]
lea ecx, 8[rdx]
mov rdx, QWORD PTR -8[rbp]
mov DWORD PTR [rdx], ecx
jmp .L45
.L44:
mov rax, QWORD PTR -8[rbp]
mov rax, QWORD PTR 8[rax]
lea rcx, 8[rax]
mov rdx, QWORD PTR -8[rbp]
mov QWORD PTR 8[rdx], rcx
.L45:
mov rax, QWORD PTR [rax]
jmp .L42
.L43:
mov rax, QWORD PTR -8[rbp]
mov eax, DWORD PTR [rax]
cmp eax, 47
ja .L46
mov rax, QWORD PTR -8[rbp]
mov rdx, QWORD PTR 16[rax]
mov rax, QWORD PTR -8[rbp]
mov eax, DWORD PTR [rax]
mov eax, eax
add rax, rdx
mov rdx, QWORD PTR -8[rbp]
mov edx, DWORD PTR [rdx]
lea ecx, 8[rdx]
mov rdx, QWORD PTR -8[rbp]
mov DWORD PTR [rdx], ecx
jmp .L47
.L46:
mov rax, QWORD PTR -8[rbp]
mov rax, QWORD PTR 8[rax]
lea rcx, 8[rax]
mov rdx, QWORD PTR -8[rbp]
mov QWORD PTR 8[rdx], rcx
.L47:
mov eax, DWORD PTR [rax]
cdqe
.L42:
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE7:
.size getint, .-getint
.section .rodata
.LC0:
.string "(null)"
.text
.type vprintfmt, @function
vprintfmt:
.LFB8:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
push r12
push rbx
sub rsp, 80
.cfi_offset 12, -24
.cfi_offset 3, -32
mov QWORD PTR -72[rbp], rdi
mov QWORD PTR -80[rbp], rsi
mov QWORD PTR -88[rbp], rdx
mov QWORD PTR -96[rbp], rcx
jmp .L49
.L52:
test ebx, ebx
je .L97
add QWORD PTR -88[rbp], 1
mov rax, QWORD PTR -80[rbp]
mov rdx, QWORD PTR -72[rbp]
mov rsi, rax
mov edi, ebx
call rdx
.L49:
mov rax, QWORD PTR -88[rbp]
movzx eax, BYTE PTR [rax]
movzx ebx, al
cmp ebx, 37
jne .L52
add QWORD PTR -88[rbp], 1
mov rax, QWORD PTR -88[rbp]
mov QWORD PTR -24[rbp], rax
mov BYTE PTR -53[rbp], 32
mov DWORD PTR -44[rbp], -1
mov DWORD PTR -40[rbp], -1
mov DWORD PTR -48[rbp], 0
mov DWORD PTR -36[rbp], 0
.L53:
mov rax, QWORD PTR -88[rbp]
lea rdx, 1[rax]
mov QWORD PTR -88[rbp], rdx
movzx eax, BYTE PTR [rax]
movzx ebx, al
lea eax, -35[rbx]
cmp eax, 85
ja .L54
mov eax, eax
lea rdx, 0[0+rax*4]
lea rax, .L56[rip]
mov eax, DWORD PTR [rdx+rax]
cdqe
lea rdx, .L56[rip]
add rax, rdx
notrack jmp rax
.section .rodata
.align 4
.align 4
.L56:
.long .L70-.L56
.long .L54-.L56
.long .L69-.L56
.long .L54-.L56
.long .L54-.L56
.long .L54-.L56
.long .L54-.L56
.long .L68-.L56
.long .L54-.L56
.long .L54-.L56
.long .L67-.L56
.long .L66-.L56
.long .L54-.L56
.long .L65-.L56
.long .L64-.L56
.long .L64-.L56
.long .L64-.L56
.long .L64-.L56
.long .L64-.L56
.long .L64-.L56
.long .L64-.L56
.long .L64-.L56
.long .L64-.L56
.long .L54-.L56
.long .L54-.L56
.long .L54-.L56
.long .L54-.L56
.long .L54-.L56
.long .L54-.L56
.long .L54-.L56
.long .L54-.L56
.long .L54-.L56
.long .L54-.L56
.long .L54-.L56
.long .L54-.L56
.long .L54-.L56
.long .L54-.L56
.long .L54-.L56
.long .L54-.L56
.long .L54-.L56
.long .L54-.L56
.long .L54-.L56
.long .L54-.L56
.long .L54-.L56
.long .L54-.L56
.long .L54-.L56
.long .L54-.L56
.long .L54-.L56
.long .L54-.L56
.long .L54-.L56
.long .L54-.L56
.long .L54-.L56
.long .L54-.L56
.long .L54-.L56
.long .L54-.L56
.long .L54-.L56
.long .L54-.L56
.long .L54-.L56
.long .L54-.L56
.long .L54-.L56
.long .L54-.L56
.long .L54-.L56
.long .L54-.L56
.long .L54-.L56
.long .L63-.L56
.long .L62-.L56
.long .L54-.L56
.long .L54-.L56
.long .L54-.L56
.long .L54-.L56
.long .L54-.L56
.long .L54-.L56
.long .L54-.L56
.long .L61-.L56
.long .L54-.L56
.long .L54-.L56
.long .L60-.L56
.long .L59-.L56
.long .L54-.L56
.long .L54-.L56
.long .L58-.L56
.long .L54-.L56
.long .L57-.L56
.long .L54-.L56
.long .L54-.L56
.long .L55-.L56
.text
.L67:
mov BYTE PTR -53[rbp], 45
jmp .L53
.L65:
mov BYTE PTR -53[rbp], 48
jmp .L53
.L64:
mov DWORD PTR -40[rbp], 0
.L72:
mov edx, DWORD PTR -40[rbp]
mov eax, edx
sal eax, 2
add eax, edx
add eax, eax
add eax, ebx
sub eax, 48
mov DWORD PTR -40[rbp], eax
mov rax, QWORD PTR -88[rbp]
movzx eax, BYTE PTR [rax]
movsx ebx, al
cmp ebx, 47
jle .L98
cmp ebx, 57
jg .L98
add QWORD PTR -88[rbp], 1
jmp .L72
.L68:
mov rax, QWORD PTR -96[rbp]
mov edx, DWORD PTR [rax]
cmp edx, 47
ja .L74
mov rdx, QWORD PTR 16[rax]
mov ecx, DWORD PTR [rax]
mov ecx, ecx
add rdx, rcx
mov ecx, DWORD PTR [rax]
add ecx, 8
mov DWORD PTR [rax], ecx
jmp .L75
.L74:
mov rdx, QWORD PTR 8[rax]
lea rcx, 8[rdx]
mov QWORD PTR 8[rax], rcx
.L75:
mov eax, DWORD PTR [rdx]
mov DWORD PTR -40[rbp], eax
jmp .L73
.L66:
cmp DWORD PTR -44[rbp], 0
jns .L53
mov DWORD PTR -44[rbp], 0
jmp .L53
.L70:
mov DWORD PTR -36[rbp], 1
jmp .L53
.L98:
nop
.L73:
cmp DWORD PTR -44[rbp], 0
jns .L53
mov eax, DWORD PTR -40[rbp]
mov DWORD PTR -44[rbp], eax
mov DWORD PTR -40[rbp], -1
jmp .L53
.L61:
add DWORD PTR -48[rbp], 1
jmp .L53
.L63:
mov rax, QWORD PTR -96[rbp]
mov edx, DWORD PTR [rax]
cmp edx, 47
ja .L78
mov rdx, QWORD PTR 16[rax]
mov ecx, DWORD PTR [rax]
mov ecx, ecx
add rdx, rcx
mov ecx, DWORD PTR [rax]
add ecx, 8
mov DWORD PTR [rax], ecx
jmp .L79
.L78:
mov rdx, QWORD PTR 8[rax]
lea rcx, 8[rdx]
mov QWORD PTR 8[rax], rcx
.L79:
mov eax, DWORD PTR [rdx]
mov rdx, QWORD PTR -80[rbp]
mov rcx, QWORD PTR -72[rbp]
mov rsi, rdx
mov edi, eax
call rcx
jmp .L80
.L58:
mov rax, QWORD PTR -96[rbp]
mov edx, DWORD PTR [rax]
cmp edx, 47
ja .L81
mov rdx, QWORD PTR 16[rax]
mov ecx, DWORD PTR [rax]
mov ecx, ecx
add rdx, rcx
mov ecx, DWORD PTR [rax]
add ecx, 8
mov DWORD PTR [rax], ecx
jmp .L82
.L81:
mov rdx, QWORD PTR 8[rax]
lea rcx, 8[rdx]
mov QWORD PTR 8[rax], rcx
.L82:
mov r12, QWORD PTR [rdx]
test r12, r12
jne .L83
lea r12, .LC0[rip]
.L83:
cmp DWORD PTR -44[rbp], 0
jle .L87
cmp BYTE PTR -53[rbp], 45
je .L87
mov ebx, DWORD PTR -44[rbp]
mov eax, DWORD PTR -40[rbp]
cdqe
mov rsi, rax
mov rdi, r12
call strnlen
mov edx, eax
mov eax, ebx
sub eax, edx
mov DWORD PTR -44[rbp], eax
jmp .L85
.L86:
movsx eax, BYTE PTR -53[rbp]
mov rdx, QWORD PTR -80[rbp]
mov rcx, QWORD PTR -72[rbp]
mov rsi, rdx
mov edi, eax
call rcx
sub DWORD PTR -44[rbp], 1
.L85:
cmp DWORD PTR -44[rbp], 0
jg .L86
jmp .L87
.L89:
mov rax, QWORD PTR -80[rbp]
mov rdx, QWORD PTR -72[rbp]
mov rsi, rax
mov edi, ebx
call rdx
add r12, 1
sub DWORD PTR -44[rbp], 1
.L87:
movzx eax, BYTE PTR [r12]
movsx ebx, al
test ebx, ebx
je .L90
cmp DWORD PTR -40[rbp], 0
js .L89
sub DWORD PTR -40[rbp], 1
cmp DWORD PTR -40[rbp], 0
jns .L89
jmp .L90
.L91:
mov rax, QWORD PTR -80[rbp]
mov rdx, QWORD PTR -72[rbp]
mov rsi, rax
mov edi, 32
call rdx
sub DWORD PTR -44[rbp], 1
.L90:
cmp DWORD PTR -44[rbp], 0
jg .L91
jmp .L80
.L62:
mov edx, DWORD PTR -48[rbp]
lea rax, -96[rbp]
mov esi, edx
mov rdi, rax
call getint
mov QWORD PTR -32[rbp], rax
mov rax, QWORD PTR -32[rbp]
test rax, rax
jns .L92
mov rax, QWORD PTR -80[rbp]
mov rdx, QWORD PTR -72[rbp]
mov rsi, rax
mov edi, 45
call rdx
mov rax, QWORD PTR -32[rbp]
neg rax
mov QWORD PTR -32[rbp], rax
.L92:
mov DWORD PTR -52[rbp], 10
jmp .L93
.L57:
mov DWORD PTR -52[rbp], 10
jmp .L94
.L60:
mov DWORD PTR -52[rbp], 8
jmp .L94
.L59:
mov DWORD PTR -48[rbp], 1
mov rax, QWORD PTR -80[rbp]
mov rdx, QWORD PTR -72[rbp]
mov rsi, rax
mov edi, 48
call rdx
mov rax, QWORD PTR -80[rbp]
mov rdx, QWORD PTR -72[rbp]
mov rsi, rax
mov edi, 120
call rdx
.L55:
mov DWORD PTR -52[rbp], 16
.L94:
mov edx, DWORD PTR -48[rbp]
lea rax, -96[rbp]
mov esi, edx
mov rdi, rax
call getuint
mov QWORD PTR -32[rbp], rax
.L93:
movsx r8d, BYTE PTR -53[rbp]
mov ecx, DWORD PTR -52[rbp]
mov edi, DWORD PTR -44[rbp]
mov rdx, QWORD PTR -32[rbp]
mov rsi, QWORD PTR -80[rbp]
mov rax, QWORD PTR -72[rbp]
mov r9d, r8d
mov r8d, edi
mov rdi, rax
call printnum
jmp .L80
.L69:
mov rax, QWORD PTR -80[rbp]
mov rdx, QWORD PTR -72[rbp]
mov rsi, rax
mov edi, ebx
call rdx
jmp .L80
.L54:
mov rax, QWORD PTR -80[rbp]
mov rdx, QWORD PTR -72[rbp]
mov rsi, rax
mov edi, 37
call rdx
mov rax, QWORD PTR -24[rbp]
mov QWORD PTR -88[rbp], rax
nop
.L80:
jmp .L49
.L97:
nop
add rsp, 80
pop rbx
pop r12
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE8:
.size vprintfmt, .-vprintfmt
.globl printf
.type printf, @function
printf:
.LFB9:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 224
mov QWORD PTR -216[rbp], rdi
mov QWORD PTR -168[rbp], rsi
mov QWORD PTR -160[rbp], rdx
mov QWORD PTR -152[rbp], rcx
mov QWORD PTR -144[rbp], r8
mov QWORD PTR -136[rbp], r9
test al, al
je .L100
movaps XMMWORD PTR -128[rbp], xmm0
movaps XMMWORD PTR -112[rbp], xmm1
movaps XMMWORD PTR -96[rbp], xmm2
movaps XMMWORD PTR -80[rbp], xmm3
movaps XMMWORD PTR -64[rbp], xmm4
movaps XMMWORD PTR -48[rbp], xmm5
movaps XMMWORD PTR -32[rbp], xmm6
movaps XMMWORD PTR -16[rbp], xmm7
.L100:
mov rax, QWORD PTR fs:40
mov QWORD PTR -184[rbp], rax
xor eax, eax
mov DWORD PTR -208[rbp], 8
mov DWORD PTR -204[rbp], 48
lea rax, 16[rbp]
mov QWORD PTR -200[rbp], rax
lea rax, -176[rbp]
mov QWORD PTR -192[rbp], rax
lea rdx, -208[rbp]
mov rax, QWORD PTR -216[rbp]
mov rcx, rdx
mov rdx, rax
mov esi, 0
lea rdi, putchar[rip]
call vprintfmt
mov eax, 0
mov rcx, QWORD PTR -184[rbp]
sub rcx, QWORD PTR fs:40
je .L102
call __stack_chk_fail@PLT
.L102:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE9:
.size printf, .-printf
.globl memset
.type memset, @function
memset:
.LFB10:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov QWORD PTR -40[rbp], rdi
mov DWORD PTR -44[rbp], esi
mov QWORD PTR -56[rbp], rdx
mov rax, QWORD PTR -40[rbp]
or rax, QWORD PTR -56[rbp]
and eax, 7
test rax, rax
jne .L104
mov eax, DWORD PTR -44[rbp]
cdqe
and eax, 255
mov QWORD PTR -8[rbp], rax
mov rax, QWORD PTR -8[rbp]
sal rax, 8
or QWORD PTR -8[rbp], rax
mov rax, QWORD PTR -8[rbp]
sal rax, 16
or QWORD PTR -8[rbp], rax
mov rax, QWORD PTR -8[rbp]
sal rax, 32
or QWORD PTR -8[rbp], rax
mov rax, QWORD PTR -40[rbp]
mov QWORD PTR -24[rbp], rax
jmp .L105
.L106:
mov rax, QWORD PTR -24[rbp]
lea rdx, 8[rax]
mov QWORD PTR -24[rbp], rdx
mov rdx, QWORD PTR -8[rbp]
mov QWORD PTR [rax], rdx
.L105:
mov rdx, QWORD PTR -40[rbp]
mov rax, QWORD PTR -56[rbp]
add rax, rdx
cmp QWORD PTR -24[rbp], rax
jb .L106
jmp .L107
.L104:
mov rax, QWORD PTR -40[rbp]
mov QWORD PTR -16[rbp], rax
jmp .L108
.L109:
mov rax, QWORD PTR -16[rbp]
lea rdx, 1[rax]
mov QWORD PTR -16[rbp], rdx
mov edx, DWORD PTR -44[rbp]
mov BYTE PTR [rax], dl
.L108:
mov rdx, QWORD PTR -40[rbp]
mov rax, QWORD PTR -56[rbp]
add rax, rdx
cmp QWORD PTR -16[rbp], rax
jb .L109
.L107:
mov rax, QWORD PTR -40[rbp]
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE10:
.size memset, .-memset
.globl strlen
.type strlen, @function
strlen:
.LFB11:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov QWORD PTR -24[rbp], rdi
mov rax, QWORD PTR -24[rbp]
mov QWORD PTR -8[rbp], rax
jmp .L112
.L113:
add QWORD PTR -8[rbp], 1
.L112:
mov rax, QWORD PTR -8[rbp]
movzx eax, BYTE PTR [rax]
test al, al
jne .L113
mov rax, QWORD PTR -8[rbp]
sub rax, QWORD PTR -24[rbp]
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE11:
.size strlen, .-strlen
.globl strnlen
.type strnlen, @function
strnlen:
.LFB12:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov QWORD PTR -24[rbp], rdi
mov QWORD PTR -32[rbp], rsi
mov rax, QWORD PTR -24[rbp]
mov QWORD PTR -8[rbp], rax
jmp .L116
.L118:
add QWORD PTR -8[rbp], 1
.L116:
mov rax, QWORD PTR -32[rbp]
lea rdx, -1[rax]
mov QWORD PTR -32[rbp], rdx
test rax, rax
je .L117
mov rax, QWORD PTR -8[rbp]
movzx eax, BYTE PTR [rax]
test al, al
jne .L118
.L117:
mov rax, QWORD PTR -8[rbp]
sub rax, QWORD PTR -24[rbp]
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE12:
.size strnlen, .-strnlen
.globl strcpy
.type strcpy, @function
strcpy:
.LFB13:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov QWORD PTR -24[rbp], rdi
mov QWORD PTR -32[rbp], rsi
mov rax, QWORD PTR -24[rbp]
mov QWORD PTR -8[rbp], rax
nop
.L121:
mov rdx, QWORD PTR -32[rbp]
lea rax, 1[rdx]
mov QWORD PTR -32[rbp], rax
mov rax, QWORD PTR -8[rbp]
lea rcx, 1[rax]
mov QWORD PTR -8[rbp], rcx
movzx edx, BYTE PTR [rdx]
mov BYTE PTR [rax], dl
movzx eax, BYTE PTR [rax]
test al, al
jne .L121
mov rax, QWORD PTR -24[rbp]
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE13:
.size strcpy, .-strcpy
.globl atol
.type atol, @function
atol:
.LFB14:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov QWORD PTR -24[rbp], rdi
mov QWORD PTR -8[rbp], 0
mov DWORD PTR -12[rbp], 0
jmp .L124
.L125:
add QWORD PTR -24[rbp], 1
.L124:
mov rax, QWORD PTR -24[rbp]
movzx eax, BYTE PTR [rax]
cmp al, 32
je .L125
mov rax, QWORD PTR -24[rbp]
movzx eax, BYTE PTR [rax]
cmp al, 45
je .L126
mov rax, QWORD PTR -24[rbp]
movzx eax, BYTE PTR [rax]
cmp al, 43
jne .L128
.L126:
mov rax, QWORD PTR -24[rbp]
movzx eax, BYTE PTR [rax]
cmp al, 45
sete al
movzx eax, al
mov DWORD PTR -12[rbp], eax
add QWORD PTR -24[rbp], 1
jmp .L128
.L129:
mov rdx, QWORD PTR -8[rbp]
mov rax, rdx
sal rax, 2
add rax, rdx
add rax, rax
mov QWORD PTR -8[rbp], rax
mov rax, QWORD PTR -24[rbp]
lea rdx, 1[rax]
mov QWORD PTR -24[rbp], rdx
movzx eax, BYTE PTR [rax]
movsx eax, al
sub eax, 48
cdqe
add QWORD PTR -8[rbp], rax
.L128:
mov rax, QWORD PTR -24[rbp]
movzx eax, BYTE PTR [rax]
test al, al
jne .L129
cmp DWORD PTR -12[rbp], 0
je .L130
mov rax, QWORD PTR -8[rbp]
neg rax
jmp .L132
.L130:
mov rax, QWORD PTR -8[rbp]
.L132:
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE14:
.size atol, .-atol
.globl time
.type time, @function
time:
.LFB15:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
#APP
# 491 "the_stack_data/491736.c" 1
rdcycle eax
# 0 "" 2
#NO_APP
mov DWORD PTR -8[rbp], eax
#APP
# 493 "the_stack_data/491736.c" 1
rdcycleh eax
# 0 "" 2
#NO_APP
mov DWORD PTR -4[rbp], eax
mov eax, DWORD PTR -4[rbp]
sal rax, 32
mov rdx, rax
mov eax, DWORD PTR -8[rbp]
or rax, rdx
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE15:
.size time, .-time
.globl insn
.type insn, @function
insn:
.LFB16:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
#APP
# 500 "the_stack_data/491736.c" 1
rdinstret eax
# 0 "" 2
#NO_APP
mov DWORD PTR -8[rbp], eax
#APP
# 502 "the_stack_data/491736.c" 1
rdinstreth eax
# 0 "" 2
#NO_APP
mov DWORD PTR -4[rbp], eax
mov eax, DWORD PTR -4[rbp]
sal rax, 32
mov rdx, rax
mov eax, DWORD PTR -8[rbp]
or rax, rdx
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE16:
.size insn, .-insn
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "491736.c"
.text
.local counters
.comm counters,8,4
.local counter_names
.comm counter_names,8,4
.align 2
.global exit
.syntax unified
.arm
.fpu softvfp
.type exit, %function
exit:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #12
str r0, [fp, #-8]
.L2:
b .L2
.size exit, .-exit
.align 2
.global abort
.syntax unified
.arm
.fpu softvfp
.type abort, %function
abort:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
mov r0, #134
bl exit
.size abort, .-abort
.global outp
.data
.align 2
.type outp, %object
.size outp, 4
outp:
.word 117440512
.global incr
.align 2
.type incr, %object
.size incr, 4
incr:
.word 4
.text
.align 2
.global printstr
.syntax unified
.arm
.fpu softvfp
.type printstr, %function
printstr:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #12
str r0, [fp, #-8]
b .L5
.L6:
ldr r3, [fp, #-8]
add r2, r3, #1
str r2, [fp, #-8]
ldrb r2, [r3] @ zero_extendqisi2
ldr r3, .L7
ldr r3, [r3]
str r2, [r3]
ldr r3, .L7
ldr r2, [r3]
ldr r3, .L7+4
ldr r3, [r3]
add r3, r2, r3
ldr r2, .L7
str r3, [r2]
.L5:
ldr r3, [fp, #-8]
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
bne .L6
nop
nop
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.L8:
.align 2
.L7:
.word outp
.word incr
.size printstr, .-printstr
.align 2
.global putchar
.syntax unified
.arm
.fpu softvfp
.type putchar, %function
putchar:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #12
str r0, [fp, #-8]
ldr r3, .L11
ldr r3, [r3]
mov r2, r3
ldr r3, [fp, #-8]
str r3, [r2]
ldr r3, .L11
ldr r3, [r3]
add r3, r3, #4
ldr r2, .L11
str r3, [r2]
mov r3, #0
mov r0, r3
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.L12:
.align 2
.L11:
.word outp
.size putchar, .-putchar
.section .rodata
.align 2
.LC0:
.word __stack_chk_guard
.text
.align 2
.global printhex
.syntax unified
.arm
.fpu softvfp
.type printhex, %function
printhex:
@ args = 0, pretend = 0, frame = 40
@ frame_needed = 1, uses_anonymous_args = 0
push {r4, r5, fp, lr}
add fp, sp, #12
sub sp, sp, #40
str r0, [fp, #-52]
str r1, [fp, #-48]
ldr r3, .L19
ldr r3, [r3]
str r3, [fp, #-16]
mov r3,#0
mov r3, #0
str r3, [fp, #-40]
b .L14
.L17:
ldrb r3, [fp, #-52] @ zero_extendqisi2
and r3, r3, #15
and ip, r3, #255
sub r3, fp, #52
ldmia r3, {r2-r3}
mov r0, #15
mov r1, #0
and r4, r2, r0
and r5, r3, r1
cmp r5, #0
cmpeq r4, #9
bhi .L15
mov r2, #48
b .L16
.L15:
mov r2, #87
.L16:
ldr r3, [fp, #-40]
rsb r3, r3, #15
add r2, r2, ip
and r2, r2, #255
sub r1, fp, #12
add r3, r1, r3
strb r2, [r3, #-24]
sub r1, fp, #52
ldmia r1, {r0-r1}
mov r2, #0
mov r3, #0
lsr r2, r0, #4
orr r2, r2, r1, lsl #28
lsr r3, r1, #4
str r2, [fp, #-52]
str r3, [fp, #-48]
ldr r3, [fp, #-40]
add r3, r3, #1
str r3, [fp, #-40]
.L14:
ldr r3, [fp, #-40]
cmp r3, #15
ble .L17
mov r3, #0
strb r3, [fp, #-20]
sub r3, fp, #36
mov r0, r3
bl printstr
nop
ldr r3, .L19
ldr r2, [r3]
ldr r3, [fp, #-16]
eors r2, r3, r2
mov r3, #0
beq .L18
bl __stack_chk_fail
.L18:
sub sp, fp, #12
@ sp needed
pop {r4, r5, fp, pc}
.L20:
.align 2
.L19:
.word .LC0
.size printhex, .-printhex
.global __aeabi_uldivmod
.section .rodata
.align 2
.LC1:
.word __stack_chk_guard
.text
.align 2
.syntax unified
.arm
.fpu softvfp
.type printnum, %function
printnum:
@ args = 12, pretend = 0, frame = 280
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #280
str r0, [fp, #-272]
str r1, [fp, #-276]
str r2, [fp, #-284]
str r3, [fp, #-280]
ldr r3, .L34
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
mov r3, #0
str r3, [fp, #-268]
.L24:
ldr r3, [fp, #4]
mov r2, r3
mov r3, #0
sub r1, fp, #284
ldmia r1, {r0-r1}
bl __aeabi_uldivmod
mov r0, r2
mov r1, r3
ldr r3, [fp, #-268]
add r2, r3, #1
str r2, [fp, #-268]
mov r2, r0
lsl r3, r3, #2
sub r1, fp, #4
add r3, r1, r3
str r2, [r3, #-260]
ldr r3, [fp, #4]
mov r2, r3
mov r3, #0
sub r1, fp, #284
ldmia r1, {r0-r1}
cmp r1, r3
cmpeq r0, r2
bcc .L33
ldr r3, [fp, #4]
mov r2, r3
mov r3, #0
sub r1, fp, #284
ldmia r1, {r0-r1}
bl __aeabi_uldivmod
mov r2, r0
mov r3, r1
str r2, [fp, #-284]
str r3, [fp, #-280]
b .L24
.L33:
nop
b .L25
.L26:
ldr r3, [fp, #-272]
ldr r1, [fp, #-276]
ldr r0, [fp, #12]
blx r3
.L25:
ldr r3, [fp, #8]
sub r2, r3, #1
str r2, [fp, #8]
ldr r2, [fp, #-268]
cmp r2, r3
blt .L26
b .L27
.L30:
ldr r3, [fp, #-268]
lsl r3, r3, #2
sub r2, fp, #4
add r3, r2, r3
ldr r2, [r3, #-260]
ldr r3, [fp, #-268]
lsl r3, r3, #2
sub r1, fp, #4
add r3, r1, r3
ldr r3, [r3, #-260]
cmp r3, #9
bls .L28
mov r3, #87
b .L29
.L28:
mov r3, #48
.L29:
add r3, r3, r2
mov r2, r3
ldr r3, [fp, #-272]
ldr r1, [fp, #-276]
mov r0, r2
blx r3
.L27:
ldr r3, [fp, #-268]
sub r2, r3, #1
str r2, [fp, #-268]
cmp r3, #0
bgt .L30
nop
ldr r3, .L34
ldr r2, [r3]
ldr r3, [fp, #-8]
eors r2, r3, r2
mov r3, #0
beq .L31
bl __stack_chk_fail
.L31:
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L35:
.align 2
.L34:
.word .LC1
.size printnum, .-printnum
.align 2
.syntax unified
.arm
.fpu softvfp
.type getuint, %function
getuint:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #12
str r0, [fp, #-8]
str r1, [fp, #-12]
ldr r3, [fp, #-12]
cmp r3, #1
ble .L37
ldr r3, [fp, #-8]
ldr r3, [r3]
add r3, r3, #7
bic r3, r3, #7
add r1, r3, #8
ldr r2, [fp, #-8]
str r1, [r2]
ldmia r3, {r2-r3}
b .L38
.L37:
ldr r3, [fp, #-12]
cmp r3, #0
beq .L39
ldr r3, [fp, #-8]
ldr r3, [r3]
add r1, r3, #4
ldr r2, [fp, #-8]
str r1, [r2]
ldr r3, [r3]
mov r2, r3
mov r3, #0
b .L38
.L39:
ldr r3, [fp, #-8]
ldr r3, [r3]
add r1, r3, #4
ldr r2, [fp, #-8]
str r1, [r2]
ldr r3, [r3]
mov r2, r3
mov r3, #0
.L38:
mov r0, r2
mov r1, r3
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size getuint, .-getuint
.align 2
.syntax unified
.arm
.fpu softvfp
.type getint, %function
getint:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #12
str r0, [fp, #-8]
str r1, [fp, #-12]
ldr r3, [fp, #-12]
cmp r3, #1
ble .L41
ldr r3, [fp, #-8]
ldr r3, [r3]
add r3, r3, #7
bic r3, r3, #7
add r1, r3, #8
ldr r2, [fp, #-8]
str r1, [r2]
ldmia r3, {r2-r3}
b .L42
.L41:
ldr r3, [fp, #-12]
cmp r3, #0
beq .L43
ldr r3, [fp, #-8]
ldr r3, [r3]
add r1, r3, #4
ldr r2, [fp, #-8]
str r1, [r2]
ldr r3, [r3]
mov r2, r3
asr r3, r2, #31
b .L42
.L43:
ldr r3, [fp, #-8]
ldr r3, [r3]
add r1, r3, #4
ldr r2, [fp, #-8]
str r1, [r2]
ldr r3, [r3]
mov r2, r3
asr r3, r2, #31
.L42:
mov r0, r2
mov r1, r3
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size getint, .-getint
.section .rodata
.align 2
.LC2:
.ascii "(null)\000"
.text
.align 2
.syntax unified
.arm
.fpu softvfp
.type vprintfmt, %function
vprintfmt:
@ args = 0, pretend = 0, frame = 56
@ frame_needed = 1, uses_anonymous_args = 0
push {r4, r5, fp, lr}
add fp, sp, #12
sub sp, sp, #72
str r0, [fp, #-56]
str r1, [fp, #-60]
str r2, [fp, #-64]
str r3, [fp, #-68]
b .L45
.L48:
cmp r4, #0
beq .L87
ldr r3, [fp, #-64]
add r3, r3, #1
str r3, [fp, #-64]
ldr r3, [fp, #-56]
ldr r1, [fp, #-60]
mov r0, r4
blx r3
.L45:
ldr r3, [fp, #-64]
ldrb r3, [r3] @ zero_extendqisi2
mov r4, r3
cmp r4, #37
bne .L48
ldr r3, [fp, #-64]
add r3, r3, #1
str r3, [fp, #-64]
ldr r3, [fp, #-64]
str r3, [fp, #-28]
mov r3, #32
strb r3, [fp, #-45]
mvn r3, #0
str r3, [fp, #-36]
mvn r3, #0
str r3, [fp, #-32]
mov r3, #0
str r3, [fp, #-40]
mov r3, #0
str r3, [fp, #-24]
.L49:
ldr r3, [fp, #-64]
add r2, r3, #1
str r2, [fp, #-64]
ldrb r3, [r3] @ zero_extendqisi2
mov r4, r3
sub r3, r4, #35
cmp r3, #85
ldrls pc, [pc, r3, asl #2]
b .L50
.L52:
.word .L66
.word .L50
.word .L65
.word .L50
.word .L50
.word .L50
.word .L50
.word .L64
.word .L50
.word .L50
.word .L63
.word .L62
.word .L50
.word .L61
.word .L60
.word .L60
.word .L60
.word .L60
.word .L60
.word .L60
.word .L60
.word .L60
.word .L60
.word .L50
.word .L50
.word .L50
.word .L50
.word .L50
.word .L50
.word .L50
.word .L50
.word .L50
.word .L50
.word .L50
.word .L50
.word .L50
.word .L50
.word .L50
.word .L50
.word .L50
.word .L50
.word .L50
.word .L50
.word .L50
.word .L50
.word .L50
.word .L50
.word .L50
.word .L50
.word .L50
.word .L50
.word .L50
.word .L50
.word .L50
.word .L50
.word .L50
.word .L50
.word .L50
.word .L50
.word .L50
.word .L50
.word .L50
.word .L50
.word .L50
.word .L59
.word .L58
.word .L50
.word .L50
.word .L50
.word .L50
.word .L50
.word .L50
.word .L50
.word .L57
.word .L50
.word .L50
.word .L56
.word .L55
.word .L50
.word .L50
.word .L54
.word .L50
.word .L53
.word .L50
.word .L50
.word .L51
.L63:
mov r3, #45
strb r3, [fp, #-45]
b .L49
.L61:
mov r3, #48
strb r3, [fp, #-45]
b .L49
.L60:
mov r3, #0
str r3, [fp, #-32]
.L68:
ldr r2, [fp, #-32]
mov r3, r2
lsl r3, r3, #2
add r3, r3, r2
lsl r3, r3, #1
add r3, r4, r3
sub r3, r3, #48
str r3, [fp, #-32]
ldr r3, [fp, #-64]
ldrb r3, [r3] @ zero_extendqisi2
mov r4, r3
cmp r4, #47
ble .L88
cmp r4, #57
bgt .L88
ldr r3, [fp, #-64]
add r3, r3, #1
str r3, [fp, #-64]
b .L68
.L64:
ldr r3, [fp, #-68]
add r2, r3, #4
str r2, [fp, #-68]
ldr r3, [r3]
str r3, [fp, #-32]
b .L69
.L62:
ldr r3, [fp, #-36]
cmp r3, #0
bge .L49
mov r3, #0
str r3, [fp, #-36]
b .L49
.L66:
mov r3, #1
str r3, [fp, #-24]
b .L49
.L88:
nop
.L69:
ldr r3, [fp, #-36]
cmp r3, #0
bge .L49
ldr r3, [fp, #-32]
str r3, [fp, #-36]
mvn r3, #0
str r3, [fp, #-32]
b .L49
.L57:
ldr r3, [fp, #-40]
add r3, r3, #1
str r3, [fp, #-40]
b .L49
.L59:
ldr r3, [fp, #-68]
add r2, r3, #4
str r2, [fp, #-68]
ldr r2, [r3]
ldr r3, [fp, #-56]
ldr r1, [fp, #-60]
mov r0, r2
blx r3
b .L72
.L54:
ldr r3, [fp, #-68]
add r2, r3, #4
str r2, [fp, #-68]
ldr r5, [r3]
cmp r5, #0
bne .L73
ldr r5, .L89
.L73:
ldr r3, [fp, #-36]
cmp r3, #0
ble .L77
ldrb r3, [fp, #-45] @ zero_extendqisi2
cmp r3, #45
beq .L77
ldr r4, [fp, #-36]
ldr r3, [fp, #-32]
mov r1, r3
mov r0, r5
bl strnlen
mov r3, r0
sub r3, r4, r3
str r3, [fp, #-36]
b .L75
.L76:
ldrb r2, [fp, #-45] @ zero_extendqisi2
ldr r3, [fp, #-56]
ldr r1, [fp, #-60]
mov r0, r2
blx r3
ldr r3, [fp, #-36]
sub r3, r3, #1
str r3, [fp, #-36]
.L75:
ldr r3, [fp, #-36]
cmp r3, #0
bgt .L76
b .L77
.L79:
ldr r3, [fp, #-56]
ldr r1, [fp, #-60]
mov r0, r4
blx r3
add r5, r5, #1
ldr r3, [fp, #-36]
sub r3, r3, #1
str r3, [fp, #-36]
.L77:
ldrb r3, [r5] @ zero_extendqisi2
mov r4, r3
cmp r4, #0
beq .L80
ldr r3, [fp, #-32]
cmp r3, #0
blt .L79
ldr r3, [fp, #-32]
sub r3, r3, #1
str r3, [fp, #-32]
ldr r3, [fp, #-32]
cmp r3, #0
bge .L79
b .L80
.L81:
ldr r3, [fp, #-56]
ldr r1, [fp, #-60]
mov r0, #32
blx r3
ldr r3, [fp, #-36]
sub r3, r3, #1
str r3, [fp, #-36]
.L80:
ldr r3, [fp, #-36]
cmp r3, #0
bgt .L81
b .L72
.L58:
sub r3, fp, #68
ldr r1, [fp, #-40]
mov r0, r3
bl getint
mov r2, r0
mov r3, r1
str r2, [fp, #-20]
str r3, [fp, #-16]
sub r3, fp, #20
ldmia r3, {r2-r3}
cmp r2, #0
sbcs r3, r3, #0
bge .L82
ldr r3, [fp, #-56]
ldr r1, [fp, #-60]
mov r0, #45
blx r3
sub r3, fp, #20
ldmia r3, {r2-r3}
rsbs r2, r2, #0
rsc r3, r3, #0
str r2, [fp, #-20]
str r3, [fp, #-16]
.L82:
mov r3, #10
str r3, [fp, #-44]
b .L83
.L53:
mov r3, #10
str r3, [fp, #-44]
b .L84
.L56:
mov r3, #8
str r3, [fp, #-44]
b .L84
.L55:
mov r3, #1
str r3, [fp, #-40]
ldr r3, [fp, #-56]
ldr r1, [fp, #-60]
mov r0, #48
blx r3
ldr r3, [fp, #-56]
ldr r1, [fp, #-60]
mov r0, #120
blx r3
.L51:
mov r3, #16
str r3, [fp, #-44]
.L84:
sub r3, fp, #68
ldr r1, [fp, #-40]
mov r0, r3
bl getuint
str r0, [fp, #-20]
str r1, [fp, #-16]
.L83:
ldr r3, [fp, #-44]
ldrb r2, [fp, #-45] @ zero_extendqisi2
str r2, [sp, #8]
ldr r2, [fp, #-36]
str r2, [sp, #4]
str r3, [sp]
sub r3, fp, #20
ldmia r3, {r2-r3}
ldr r1, [fp, #-60]
ldr r0, [fp, #-56]
bl printnum
b .L72
.L65:
ldr r3, [fp, #-56]
ldr r1, [fp, #-60]
mov r0, r4
blx r3
b .L72
.L50:
ldr r3, [fp, #-56]
ldr r1, [fp, #-60]
mov r0, #37
blx r3
ldr r3, [fp, #-28]
str r3, [fp, #-64]
nop
.L72:
b .L45
.L87:
nop
sub sp, fp, #12
@ sp needed
pop {r4, r5, fp, pc}
.L90:
.align 2
.L89:
.word .LC2
.size vprintfmt, .-vprintfmt
.section .rodata
.align 2
.LC3:
.word __stack_chk_guard
.text
.align 2
.global printf
.syntax unified
.arm
.fpu softvfp
.type printf, %function
printf:
@ args = 4, pretend = 16, frame = 16
@ frame_needed = 1, uses_anonymous_args = 1
push {r0, r1, r2, r3}
push {fp, lr}
add fp, sp, #4
sub sp, sp, #16
ldr r3, [fp, #4]
str r3, [fp, #-16]
ldr r3, .L94
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
add r3, fp, #8
str r3, [fp, #-12]
ldr r3, [fp, #-12]
ldr r2, [fp, #-16]
mov r1, #0
ldr r0, .L94+4
bl vprintfmt
mov r3, #0
ldr r2, .L94
ldr r1, [r2]
ldr r2, [fp, #-8]
eors r1, r2, r1
mov r2, #0
beq .L93
bl __stack_chk_fail
.L93:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, lr}
add sp, sp, #16
bx lr
.L95:
.align 2
.L94:
.word .LC3
.word putchar
.size printf, .-printf
.align 2
.global memset
.syntax unified
.arm
.fpu softvfp
.type memset, %function
memset:
@ args = 0, pretend = 0, frame = 32
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #36
str r0, [fp, #-24]
str r1, [fp, #-28]
str r2, [fp, #-32]
ldr r2, [fp, #-24]
ldr r3, [fp, #-32]
orr r3, r2, r3
and r3, r3, #3
cmp r3, #0
bne .L97
ldr r3, [fp, #-28]
and r3, r3, #255
str r3, [fp, #-8]
ldr r3, [fp, #-8]
lsl r3, r3, #8
ldr r2, [fp, #-8]
orr r3, r2, r3
str r3, [fp, #-8]
ldr r3, [fp, #-8]
lsl r3, r3, #16
ldr r2, [fp, #-8]
orr r3, r2, r3
str r3, [fp, #-8]
ldr r3, [fp, #-24]
str r3, [fp, #-16]
b .L98
.L99:
ldr r3, [fp, #-16]
add r2, r3, #4
str r2, [fp, #-16]
ldr r2, [fp, #-8]
str r2, [r3]
.L98:
ldr r2, [fp, #-24]
ldr r3, [fp, #-32]
add r3, r2, r3
ldr r2, [fp, #-16]
cmp r2, r3
bcc .L99
b .L100
.L97:
ldr r3, [fp, #-24]
str r3, [fp, #-12]
b .L101
.L102:
ldr r3, [fp, #-12]
add r2, r3, #1
str r2, [fp, #-12]
ldr r2, [fp, #-28]
and r2, r2, #255
strb r2, [r3]
.L101:
ldr r2, [fp, #-24]
ldr r3, [fp, #-32]
add r3, r2, r3
ldr r2, [fp, #-12]
cmp r2, r3
bcc .L102
.L100:
ldr r3, [fp, #-24]
mov r0, r3
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size memset, .-memset
.align 2
.global strlen
.syntax unified
.arm
.fpu softvfp
.type strlen, %function
strlen:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #20
str r0, [fp, #-16]
ldr r3, [fp, #-16]
str r3, [fp, #-8]
b .L105
.L106:
ldr r3, [fp, #-8]
add r3, r3, #1
str r3, [fp, #-8]
.L105:
ldr r3, [fp, #-8]
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
bne .L106
ldr r2, [fp, #-8]
ldr r3, [fp, #-16]
sub r3, r2, r3
mov r0, r3
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size strlen, .-strlen
.align 2
.global strnlen
.syntax unified
.arm
.fpu softvfp
.type strnlen, %function
strnlen:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #20
str r0, [fp, #-16]
str r1, [fp, #-20]
ldr r3, [fp, #-16]
str r3, [fp, #-8]
b .L109
.L111:
ldr r3, [fp, #-8]
add r3, r3, #1
str r3, [fp, #-8]
.L109:
ldr r3, [fp, #-20]
sub r2, r3, #1
str r2, [fp, #-20]
cmp r3, #0
beq .L110
ldr r3, [fp, #-8]
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
bne .L111
.L110:
ldr r2, [fp, #-8]
ldr r3, [fp, #-16]
sub r3, r2, r3
mov r0, r3
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size strnlen, .-strnlen
.align 2
.global strcpy
.syntax unified
.arm
.fpu softvfp
.type strcpy, %function
strcpy:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #20
str r0, [fp, #-16]
str r1, [fp, #-20]
ldr r3, [fp, #-16]
str r3, [fp, #-8]
nop
.L114:
ldr r2, [fp, #-20]
add r3, r2, #1
str r3, [fp, #-20]
ldr r3, [fp, #-8]
add r1, r3, #1
str r1, [fp, #-8]
ldrb r2, [r2] @ zero_extendqisi2
strb r2, [r3]
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
bne .L114
ldr r3, [fp, #-16]
mov r0, r3
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size strcpy, .-strcpy
.align 2
.global atol
.syntax unified
.arm
.fpu softvfp
.type atol, %function
atol:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #20
str r0, [fp, #-16]
mov r3, #0
str r3, [fp, #-12]
mov r3, #0
str r3, [fp, #-8]
b .L117
.L118:
ldr r3, [fp, #-16]
add r3, r3, #1
str r3, [fp, #-16]
.L117:
ldr r3, [fp, #-16]
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #32
beq .L118
ldr r3, [fp, #-16]
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #45
beq .L119
ldr r3, [fp, #-16]
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #43
bne .L121
.L119:
ldr r3, [fp, #-16]
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #45
moveq r3, #1
movne r3, #0
and r3, r3, #255
str r3, [fp, #-8]
ldr r3, [fp, #-16]
add r3, r3, #1
str r3, [fp, #-16]
b .L121
.L122:
ldr r2, [fp, #-12]
mov r3, r2
lsl r3, r3, #2
add r3, r3, r2
lsl r3, r3, #1
str r3, [fp, #-12]
ldr r3, [fp, #-16]
add r2, r3, #1
str r2, [fp, #-16]
ldrb r3, [r3] @ zero_extendqisi2
sub r3, r3, #48
ldr r2, [fp, #-12]
add r3, r2, r3
str r3, [fp, #-12]
.L121:
ldr r3, [fp, #-16]
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
bne .L122
ldr r3, [fp, #-8]
cmp r3, #0
beq .L123
ldr r3, [fp, #-12]
rsb r3, r3, #0
b .L125
.L123:
ldr r3, [fp, #-12]
.L125:
mov r0, r3
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size atol, .-atol
.align 2
.global time
.syntax unified
.arm
.fpu softvfp
.type time, %function
time:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
push {r4, r5, fp}
add fp, sp, #8
sub sp, sp, #12
.syntax divided
@ 491 "the_stack_data/491736.c" 1
rdcycle r3
@ 0 "" 2
.arm
.syntax unified
str r3, [fp, #-20]
.syntax divided
@ 493 "the_stack_data/491736.c" 1
rdcycleh r3
@ 0 "" 2
.arm
.syntax unified
str r3, [fp, #-16]
ldr r3, [fp, #-16]
mov r0, r3
mov r1, #0
mov r2, #0
mov r3, #0
mov r3, r0
mov r2, #0
ldr r1, [fp, #-20]
mov r0, r1
mov r1, #0
orr r4, r2, r0
orr r5, r3, r1
mov r2, r4
mov r3, r5
mov r0, r2
mov r1, r3
sub sp, fp, #8
@ sp needed
pop {r4, r5, fp}
bx lr
.size time, .-time
.align 2
.global insn
.syntax unified
.arm
.fpu softvfp
.type insn, %function
insn:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
push {r4, r5, fp}
add fp, sp, #8
sub sp, sp, #12
.syntax divided
@ 500 "the_stack_data/491736.c" 1
rdinstret r3
@ 0 "" 2
.arm
.syntax unified
str r3, [fp, #-20]
.syntax divided
@ 502 "the_stack_data/491736.c" 1
rdinstreth r3
@ 0 "" 2
.arm
.syntax unified
str r3, [fp, #-16]
ldr r3, [fp, #-16]
mov r0, r3
mov r1, #0
mov r2, #0
mov r3, #0
mov r3, r0
mov r2, #0
ldr r1, [fp, #-20]
mov r0, r1
mov r1, #0
orr r4, r2, r0
orr r5, r3, r1
mov r2, r4
mov r3, r5
mov r0, r2
mov r1, r3
sub sp, fp, #8
@ sp needed
pop {r4, r5, fp}
bx lr
.size insn, .-insn
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "923408.c"
.intel_syntax noprefix
.text
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "923408.c"
.text
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "106123.c"
.intel_syntax noprefix
.text
.globl dummyfcn
.type dummyfcn, @function
dummyfcn:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov rax, QWORD PTR timer_delete@GOTPCREL[rip]
mov QWORD PTR -8[rbp], rax
mov eax, 0
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size dummyfcn, .-dummyfcn
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "106123.c"
.text
.align 2
.global dummyfcn
.syntax unified
.arm
.fpu softvfp
.type dummyfcn, %function
dummyfcn:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #12
ldr r3, .L3
str r3, [fp, #-8]
mov r3, #0
mov r0, r3
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.L4:
.align 2
.L3:
.word timer_delete
.size dummyfcn, .-dummyfcn
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "268442.c"
.intel_syntax noprefix
.text
.globl chop
.type chop, @function
chop:
.LFB6:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 32
mov QWORD PTR -24[rbp], rdi
mov DWORD PTR -28[rbp], esi
mov eax, DWORD PTR -28[rbp]
movsx rdx, eax
mov rax, QWORD PTR -24[rbp]
mov rsi, rdx
mov rdi, rax
call strnlen@PLT
sub eax, 1
mov DWORD PTR -4[rbp], eax
jmp .L2
.L4:
sub DWORD PTR -4[rbp], 1
.L2:
cmp DWORD PTR -4[rbp], 0
js .L3
mov eax, DWORD PTR -4[rbp]
movsx rdx, eax
mov rax, QWORD PTR -24[rbp]
add rax, rdx
movzx eax, BYTE PTR [rax]
cmp al, 32
je .L3
mov eax, DWORD PTR -4[rbp]
movsx rdx, eax
mov rax, QWORD PTR -24[rbp]
add rax, rdx
movzx eax, BYTE PTR [rax]
cmp al, 10
je .L3
mov eax, DWORD PTR -4[rbp]
movsx rdx, eax
mov rax, QWORD PTR -24[rbp]
add rax, rdx
movzx eax, BYTE PTR [rax]
cmp al, 9
jne .L4
.L3:
mov eax, DWORD PTR -4[rbp]
movsx rdx, eax
mov rax, QWORD PTR -24[rbp]
add rax, rdx
mov BYTE PTR [rax], 0
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size chop, .-chop
.globl wordncpy
.type wordncpy, @function
wordncpy:
.LFB7:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov QWORD PTR -24[rbp], rdi
mov QWORD PTR -32[rbp], rsi
mov DWORD PTR -36[rbp], edx
mov DWORD PTR -8[rbp], 0
jmp .L6
.L8:
add DWORD PTR -8[rbp], 1
.L6:
mov eax, DWORD PTR -36[rbp]
sub eax, 1
cmp DWORD PTR -8[rbp], eax
jge .L7
mov eax, DWORD PTR -8[rbp]
movsx rdx, eax
mov rax, QWORD PTR -32[rbp]
add rax, rdx
movzx eax, BYTE PTR [rax]
test al, al
je .L7
mov eax, DWORD PTR -8[rbp]
movsx rdx, eax
mov rax, QWORD PTR -32[rbp]
add rax, rdx
movzx eax, BYTE PTR [rax]
cmp al, 32
je .L8
mov eax, DWORD PTR -8[rbp]
movsx rdx, eax
mov rax, QWORD PTR -32[rbp]
add rax, rdx
movzx eax, BYTE PTR [rax]
cmp al, 10
je .L8
mov eax, DWORD PTR -8[rbp]
movsx rdx, eax
mov rax, QWORD PTR -32[rbp]
add rax, rdx
movzx eax, BYTE PTR [rax]
cmp al, 9
je .L8
.L7:
mov DWORD PTR -4[rbp], 0
jmp .L9
.L11:
mov eax, DWORD PTR -8[rbp]
movsx rdx, eax
mov rax, QWORD PTR -32[rbp]
add rax, rdx
mov edx, DWORD PTR -4[rbp]
movsx rcx, edx
mov rdx, QWORD PTR -24[rbp]
add rdx, rcx
movzx eax, BYTE PTR [rax]
mov BYTE PTR [rdx], al
add DWORD PTR -8[rbp], 1
add DWORD PTR -4[rbp], 1
.L9:
mov eax, DWORD PTR -36[rbp]
sub eax, 1
cmp DWORD PTR -8[rbp], eax
jge .L10
mov eax, DWORD PTR -8[rbp]
movsx rdx, eax
mov rax, QWORD PTR -32[rbp]
add rax, rdx
movzx eax, BYTE PTR [rax]
test al, al
je .L10
mov eax, DWORD PTR -8[rbp]
movsx rdx, eax
mov rax, QWORD PTR -32[rbp]
add rax, rdx
movzx eax, BYTE PTR [rax]
cmp al, 32
je .L10
mov eax, DWORD PTR -8[rbp]
movsx rdx, eax
mov rax, QWORD PTR -32[rbp]
add rax, rdx
movzx eax, BYTE PTR [rax]
cmp al, 10
je .L10
mov eax, DWORD PTR -8[rbp]
movsx rdx, eax
mov rax, QWORD PTR -32[rbp]
add rax, rdx
movzx eax, BYTE PTR [rax]
cmp al, 9
jne .L11
.L10:
mov eax, DWORD PTR -4[rbp]
movsx rdx, eax
mov rax, QWORD PTR -24[rbp]
add rax, rdx
mov BYTE PTR [rax], 0
nop
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE7:
.size wordncpy, .-wordncpy
.globl lowercase
.type lowercase, @function
lowercase:
.LFB8:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov QWORD PTR -24[rbp], rdi
mov DWORD PTR -28[rbp], esi
mov DWORD PTR -4[rbp], 0
jmp .L14
.L17:
mov eax, DWORD PTR -4[rbp]
movsx rdx, eax
mov rax, QWORD PTR -24[rbp]
add rax, rdx
movzx eax, BYTE PTR [rax]
cmp al, 64
jle .L15
mov eax, DWORD PTR -4[rbp]
movsx rdx, eax
mov rax, QWORD PTR -24[rbp]
add rax, rdx
movzx eax, BYTE PTR [rax]
cmp al, 90
jg .L15
mov eax, DWORD PTR -4[rbp]
movsx rdx, eax
mov rax, QWORD PTR -24[rbp]
add rax, rdx
movzx eax, BYTE PTR [rax]
lea ecx, 32[rax]
mov eax, DWORD PTR -4[rbp]
movsx rdx, eax
mov rax, QWORD PTR -24[rbp]
add rax, rdx
mov edx, ecx
mov BYTE PTR [rax], dl
.L15:
add DWORD PTR -4[rbp], 1
.L14:
mov eax, DWORD PTR -28[rbp]
sub eax, 1
cmp DWORD PTR -4[rbp], eax
jge .L18
mov eax, DWORD PTR -4[rbp]
movsx rdx, eax
mov rax, QWORD PTR -24[rbp]
add rax, rdx
movzx eax, BYTE PTR [rax]
test al, al
jne .L17
.L18:
nop
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE8:
.size lowercase, .-lowercase
.section .rodata
.LC0:
.string "Unexpected EOF or I/O error"
.LC1:
.string "Flags: real\n"
.LC2:
.string "Format error: %s"
.LC3:
.string "No. Variables: "
.LC4:
.string "memory allocation failed"
.LC5:
.string "No. Points: "
.LC6:
.string "Variables:\n"
.LC7:
.string "Invalid variable No.: %s"
.LC8:
.string "unknown variable: "
.LC9:
.string "# "
.LC10:
.string "unknown:"
.LC11:
.string "Binary:\n"
.LC12:
.string "%.14e"
.text
.globl main
.type main, @function
main:
.LFB9:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
push rbx
sub rsp, 360
.cfi_offset 3, -24
mov DWORD PTR -356[rbp], edi
mov QWORD PTR -368[rbp], rsi
mov rax, QWORD PTR fs:40
mov QWORD PTR -24[rbp], rax
xor eax, eax
mov DWORD PTR -348[rbp], 1
jmp .L20
.L21:
mov eax, DWORD PTR -348[rbp]
cdqe
lea rdx, 0[0+rax*8]
mov rax, QWORD PTR -368[rbp]
add rax, rdx
mov rax, QWORD PTR [rax]
mov esi, 16
mov rdi, rax
call lowercase
add DWORD PTR -348[rbp], 1
.L20:
mov eax, DWORD PTR -348[rbp]
cmp eax, DWORD PTR -356[rbp]
jl .L21
mov rdx, QWORD PTR stdin[rip]
lea rax, -288[rbp]
mov esi, 256
mov rdi, rax
call fgets@PLT
test rax, rax
jne .L22
lea rdi, .LC0[rip]
call perror@PLT
mov edi, 1
call exit@PLT
.L22:
mov rdx, QWORD PTR stdin[rip]
lea rax, -288[rbp]
mov esi, 256
mov rdi, rax
call fgets@PLT
test rax, rax
jne .L23
lea rdi, .LC0[rip]
call perror@PLT
mov edi, 1
call exit@PLT
.L23:
mov rdx, QWORD PTR stdin[rip]
lea rax, -288[rbp]
mov esi, 256
mov rdi, rax
call fgets@PLT
test rax, rax
jne .L24
lea rdi, .LC0[rip]
call perror@PLT
mov edi, 1
call exit@PLT
.L24:
mov rdx, QWORD PTR stdin[rip]
lea rax, -288[rbp]
mov esi, 256
mov rdi, rax
call fgets@PLT
test rax, rax
jne .L25
lea rdi, .LC0[rip]
call perror@PLT
mov edi, 1
call exit@PLT
.L25:
lea rdx, -288[rbp]
lea rax, .LC1[rip]
mov ecx, 13
mov rsi, rax
mov rdi, rdx
repz cmpsb
seta al
setb dl
sub eax, edx
movsx eax, al
test eax, eax
je .L26
mov rax, QWORD PTR stderr[rip]
lea rdx, -288[rbp]
lea rsi, .LC2[rip]
mov rdi, rax
mov eax, 0
call fprintf@PLT
mov edi, 1
call exit@PLT
.L26:
mov rdx, QWORD PTR stdin[rip]
lea rax, -288[rbp]
mov esi, 256
mov rdi, rax
call fgets@PLT
test rax, rax
jne .L27
lea rdi, .LC0[rip]
call perror@PLT
mov edi, 1
call exit@PLT
.L27:
lea rax, -288[rbp]
mov edx, 15
mov rsi, rax
lea rdi, .LC3[rip]
call strncmp@PLT
test eax, eax
je .L28
mov rax, QWORD PTR stderr[rip]
lea rdx, -288[rbp]
lea rsi, .LC2[rip]
mov rdi, rax
mov eax, 0
call fprintf@PLT
mov edi, 1
call exit@PLT
.L28:
lea rax, -288[rbp]
add rax, 15
lea rcx, -328[rbp]
mov edx, 10
mov rsi, rcx
mov rdi, rax
call strtol@PLT
mov DWORD PTR -336[rbp], eax
lea rax, -288[rbp]
add rax, 15
mov rdx, QWORD PTR -328[rbp]
cmp rax, rdx
jne .L29
mov rax, QWORD PTR stderr[rip]
lea rdx, -288[rbp]
lea rsi, .LC2[rip]
mov rdi, rax
mov eax, 0
call fprintf@PLT
mov edi, 1
call exit@PLT
.L29:
mov eax, DWORD PTR -336[rbp]
cdqe
mov esi, 16
mov rdi, rax
call calloc@PLT
mov QWORD PTR -320[rbp], rax
cmp QWORD PTR -320[rbp], 0
jne .L30
lea rdi, .LC4[rip]
call perror@PLT
mov edi, 1
call exit@PLT
.L30:
mov rdx, QWORD PTR stdin[rip]
lea rax, -288[rbp]
mov esi, 256
mov rdi, rax
call fgets@PLT
test rax, rax
jne .L31
lea rdi, .LC0[rip]
call perror@PLT
mov edi, 1
call exit@PLT
.L31:
lea rax, -288[rbp]
mov edx, 12
mov rsi, rax
lea rdi, .LC5[rip]
call strncmp@PLT
test eax, eax
je .L32
mov rax, QWORD PTR stderr[rip]
lea rdx, -288[rbp]
lea rsi, .LC2[rip]
mov rdi, rax
mov eax, 0
call fprintf@PLT
mov edi, 1
call exit@PLT
.L32:
lea rax, -288[rbp]
add rax, 12
lea rcx, -328[rbp]
mov edx, 10
mov rsi, rcx
mov rdi, rax
call strtol@PLT
mov DWORD PTR -332[rbp], eax
lea rax, -288[rbp]
add rax, 12
mov rdx, QWORD PTR -328[rbp]
cmp rax, rdx
jne .L33
mov rax, QWORD PTR stderr[rip]
lea rdx, -288[rbp]
lea rsi, .LC2[rip]
mov rdi, rax
mov eax, 0
call fprintf@PLT
mov edi, 1
call exit@PLT
.L33:
mov rdx, QWORD PTR stdin[rip]
lea rax, -288[rbp]
mov esi, 256
mov rdi, rax
call fgets@PLT
test rax, rax
jne .L34
lea rdi, .LC0[rip]
call perror@PLT
mov edi, 1
call exit@PLT
.L34:
lea rdx, -288[rbp]
lea rax, .LC6[rip]
mov ecx, 12
mov rsi, rax
mov rdi, rdx
repz cmpsb
seta al
setb dl
sub eax, edx
movsx eax, al
test eax, eax
je .L35
mov rax, QWORD PTR stderr[rip]
lea rdx, -288[rbp]
lea rsi, .LC2[rip]
mov rdi, rax
mov eax, 0
call fprintf@PLT
mov edi, 1
call exit@PLT
.L35:
mov DWORD PTR -348[rbp], 0
jmp .L36
.L39:
mov rdx, QWORD PTR stdin[rip]
lea rax, -288[rbp]
mov esi, 256
mov rdi, rax
call fgets@PLT
test rax, rax
jne .L37
lea rdi, .LC0[rip]
call perror@PLT
mov edi, 1
call exit@PLT
.L37:
mov eax, DWORD PTR -348[rbp]
movsx rbx, eax
lea rcx, -328[rbp]
lea rax, -288[rbp]
mov edx, 10
mov rsi, rcx
mov rdi, rax
call strtol@PLT
cmp rbx, rax
je .L38
mov rax, QWORD PTR stderr[rip]
lea rdx, -288[rbp]
lea rsi, .LC7[rip]
mov rdi, rax
mov eax, 0
call fprintf@PLT
mov edi, 1
call exit@PLT
.L38:
mov rax, QWORD PTR -328[rbp]
mov edx, DWORD PTR -348[rbp]
sal edx, 4
movsx rcx, edx
mov rdx, QWORD PTR -320[rbp]
add rcx, rdx
mov edx, 16
mov rsi, rax
mov rdi, rcx
call wordncpy
mov eax, DWORD PTR -348[rbp]
sal eax, 4
movsx rdx, eax
mov rax, QWORD PTR -320[rbp]
add rax, rdx
mov esi, 16
mov rdi, rax
call lowercase
add DWORD PTR -348[rbp], 1
.L36:
mov eax, DWORD PTR -348[rbp]
cmp eax, DWORD PTR -336[rbp]
jl .L39
mov eax, DWORD PTR -336[rbp]
mov DWORD PTR -352[rbp], eax
cmp DWORD PTR -356[rbp], 1
jle .L40
mov eax, DWORD PTR -356[rbp]
sub eax, 1
mov DWORD PTR -352[rbp], eax
.L40:
mov eax, DWORD PTR -352[rbp]
cdqe
mov esi, 4
mov rdi, rax
call calloc@PLT
mov QWORD PTR -312[rbp], rax
cmp QWORD PTR -312[rbp], 0
jne .L41
lea rdi, .LC4[rip]
call perror@PLT
mov edi, 1
call exit@PLT
.L41:
cmp DWORD PTR -356[rbp], 1
jne .L42
mov DWORD PTR -348[rbp], 0
jmp .L43
.L44:
mov eax, DWORD PTR -348[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -312[rbp]
add rdx, rax
mov eax, DWORD PTR -348[rbp]
mov DWORD PTR [rdx], eax
add DWORD PTR -348[rbp], 1
.L43:
mov eax, DWORD PTR -348[rbp]
cmp eax, DWORD PTR -352[rbp]
jl .L44
jmp .L45
.L42:
mov DWORD PTR -348[rbp], 0
jmp .L46
.L53:
mov DWORD PTR -344[rbp], 0
jmp .L47
.L50:
mov eax, DWORD PTR -348[rbp]
cdqe
add rax, 1
lea rdx, 0[0+rax*8]
mov rax, QWORD PTR -368[rbp]
add rax, rdx
mov rax, QWORD PTR [rax]
mov edx, DWORD PTR -344[rbp]
sal edx, 4
movsx rcx, edx
mov rdx, QWORD PTR -320[rbp]
add rcx, rdx
mov edx, 16
mov rsi, rax
mov rdi, rcx
call strncmp@PLT
test eax, eax
je .L76
add DWORD PTR -344[rbp], 1
.L47:
mov eax, DWORD PTR -344[rbp]
cmp eax, DWORD PTR -336[rbp]
jl .L50
jmp .L49
.L76:
nop
.L49:
mov eax, DWORD PTR -344[rbp]
cmp eax, DWORD PTR -336[rbp]
jge .L51
mov eax, DWORD PTR -348[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -312[rbp]
add rdx, rax
mov eax, DWORD PTR -344[rbp]
mov DWORD PTR [rdx], eax
jmp .L52
.L51:
mov rax, QWORD PTR stderr[rip]
mov rcx, rax
mov edx, 18
mov esi, 1
lea rdi, .LC8[rip]
call fwrite@PLT
mov rdx, QWORD PTR stderr[rip]
mov eax, DWORD PTR -348[rbp]
cdqe
add rax, 1
lea rcx, 0[0+rax*8]
mov rax, QWORD PTR -368[rbp]
add rax, rcx
mov rax, QWORD PTR [rax]
mov rsi, rdx
mov rdi, rax
call fputs@PLT
mov rax, QWORD PTR stderr[rip]
mov rsi, rax
mov edi, 10
call fputc@PLT
mov eax, DWORD PTR -348[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -312[rbp]
add rax, rdx
mov DWORD PTR [rax], -1
.L52:
add DWORD PTR -348[rbp], 1
.L46:
mov eax, DWORD PTR -348[rbp]
cmp eax, DWORD PTR -352[rbp]
jl .L53
.L45:
mov rax, QWORD PTR stdout[rip]
mov rcx, rax
mov edx, 2
mov esi, 1
lea rdi, .LC9[rip]
call fwrite@PLT
mov DWORD PTR -348[rbp], 0
jmp .L54
.L59:
mov eax, DWORD PTR -348[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -312[rbp]
add rax, rdx
mov eax, DWORD PTR [rax]
test eax, eax
jns .L55
mov rax, QWORD PTR stdout[rip]
mov rcx, rax
mov edx, 8
mov esi, 1
lea rdi, .LC10[rip]
call fwrite@PLT
mov rdx, QWORD PTR stdout[rip]
mov eax, DWORD PTR -348[rbp]
cdqe
add rax, 1
lea rcx, 0[0+rax*8]
mov rax, QWORD PTR -368[rbp]
add rax, rcx
mov rax, QWORD PTR [rax]
mov rsi, rdx
mov rdi, rax
call fputs@PLT
jmp .L56
.L55:
mov rax, QWORD PTR stdout[rip]
mov edx, DWORD PTR -348[rbp]
movsx rdx, edx
lea rcx, 0[0+rdx*4]
mov rdx, QWORD PTR -312[rbp]
add rdx, rcx
mov edx, DWORD PTR [rdx]
sal edx, 4
movsx rcx, edx
mov rdx, QWORD PTR -320[rbp]
add rdx, rcx
mov rsi, rax
mov rdi, rdx
call fputs@PLT
.L56:
mov eax, DWORD PTR -352[rbp]
sub eax, 1
cmp DWORD PTR -348[rbp], eax
jge .L57
mov edi, 44
call putchar@PLT
jmp .L58
.L57:
mov edi, 10
call putchar@PLT
.L58:
add DWORD PTR -348[rbp], 1
.L54:
mov eax, DWORD PTR -348[rbp]
cmp eax, DWORD PTR -352[rbp]
jl .L59
mov rdx, QWORD PTR stdin[rip]
lea rax, -288[rbp]
mov esi, 256
mov rdi, rax
call fgets@PLT
test rax, rax
jne .L60
lea rdi, .LC0[rip]
call perror@PLT
mov edi, 1
call exit@PLT
.L60:
lea rdx, -288[rbp]
lea rax, .LC11[rip]
mov ecx, 9
mov rsi, rax
mov rdi, rdx
repz cmpsb
seta al
setb dl
sub eax, edx
movsx eax, al
test eax, eax
je .L61
mov rax, QWORD PTR stderr[rip]
lea rdx, -288[rbp]
lea rsi, .LC2[rip]
mov rdi, rax
mov eax, 0
call fprintf@PLT
mov edi, 1
call exit@PLT
.L61:
mov eax, DWORD PTR -336[rbp]
cdqe
mov esi, 8
mov rdi, rax
call calloc@PLT
mov QWORD PTR -304[rbp], rax
cmp QWORD PTR -304[rbp], 0
jne .L62
lea rdi, .LC4[rip]
call perror@PLT
mov edi, 1
call exit@PLT
.L62:
mov DWORD PTR -348[rbp], 0
jmp .L63
.L73:
mov DWORD PTR -344[rbp], 0
jmp .L64
.L67:
mov DWORD PTR -340[rbp], 0
jmp .L65
.L66:
call getchar@PLT
mov edx, eax
mov eax, DWORD PTR -340[rbp]
cdqe
mov BYTE PTR -296[rbp+rax], dl
add DWORD PTR -340[rbp], 1
.L65:
mov eax, DWORD PTR -340[rbp]
cmp eax, 7
jbe .L66
lea rax, -296[rbp]
mov edx, DWORD PTR -344[rbp]
movsx rdx, edx
lea rcx, 0[0+rdx*8]
mov rdx, QWORD PTR -304[rbp]
add rdx, rcx
movsd xmm0, QWORD PTR [rax]
movsd QWORD PTR [rdx], xmm0
add DWORD PTR -344[rbp], 1
.L64:
mov eax, DWORD PTR -344[rbp]
cmp eax, DWORD PTR -336[rbp]
jl .L67
mov DWORD PTR -344[rbp], 0
jmp .L68
.L72:
mov eax, DWORD PTR -344[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -312[rbp]
add rax, rdx
mov eax, DWORD PTR [rax]
test eax, eax
js .L69
mov eax, DWORD PTR -344[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -312[rbp]
add rax, rdx
mov eax, DWORD PTR [rax]
cdqe
lea rdx, 0[0+rax*8]
mov rax, QWORD PTR -304[rbp]
add rax, rdx
mov rax, QWORD PTR [rax]
movq xmm0, rax
lea rdi, .LC12[rip]
mov eax, 1
call printf@PLT
.L69:
mov eax, DWORD PTR -352[rbp]
sub eax, 1
cmp DWORD PTR -344[rbp], eax
jge .L70
mov edi, 44
call putchar@PLT
jmp .L71
.L70:
mov edi, 10
call putchar@PLT
.L71:
add DWORD PTR -344[rbp], 1
.L68:
mov eax, DWORD PTR -344[rbp]
cmp eax, DWORD PTR -352[rbp]
jl .L72
add DWORD PTR -348[rbp], 1
.L63:
mov eax, DWORD PTR -348[rbp]
cmp eax, DWORD PTR -332[rbp]
jl .L73
mov eax, 0
mov rbx, QWORD PTR -24[rbp]
sub rbx, QWORD PTR fs:40
je .L75
call __stack_chk_fail@PLT
.L75:
mov rbx, QWORD PTR -8[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE9:
.size main, .-main
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "268442.c"
.text
.align 2
.global chop
.syntax unified
.arm
.fpu softvfp
.type chop, %function
chop:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #16
str r0, [fp, #-16]
str r1, [fp, #-20]
ldr r3, [fp, #-20]
mov r1, r3
ldr r0, [fp, #-16]
bl strnlen
mov r3, r0
sub r3, r3, #1
str r3, [fp, #-8]
b .L2
.L4:
ldr r3, [fp, #-8]
sub r3, r3, #1
str r3, [fp, #-8]
.L2:
ldr r3, [fp, #-8]
cmp r3, #0
blt .L3
ldr r3, [fp, #-8]
ldr r2, [fp, #-16]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #32
beq .L3
ldr r3, [fp, #-8]
ldr r2, [fp, #-16]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #10
beq .L3
ldr r3, [fp, #-8]
ldr r2, [fp, #-16]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #9
bne .L4
.L3:
ldr r3, [fp, #-8]
ldr r2, [fp, #-16]
add r3, r2, r3
mov r2, #0
strb r2, [r3]
nop
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.size chop, .-chop
.align 2
.global wordncpy
.syntax unified
.arm
.fpu softvfp
.type wordncpy, %function
wordncpy:
@ args = 0, pretend = 0, frame = 24
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #28
str r0, [fp, #-16]
str r1, [fp, #-20]
str r2, [fp, #-24]
mov r3, #0
str r3, [fp, #-12]
b .L6
.L8:
ldr r3, [fp, #-12]
add r3, r3, #1
str r3, [fp, #-12]
.L6:
ldr r3, [fp, #-24]
sub r3, r3, #1
ldr r2, [fp, #-12]
cmp r2, r3
bge .L7
ldr r3, [fp, #-12]
ldr r2, [fp, #-20]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L7
ldr r3, [fp, #-12]
ldr r2, [fp, #-20]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #32
beq .L8
ldr r3, [fp, #-12]
ldr r2, [fp, #-20]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #10
beq .L8
ldr r3, [fp, #-12]
ldr r2, [fp, #-20]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #9
beq .L8
.L7:
mov r3, #0
str r3, [fp, #-8]
b .L9
.L11:
ldr r3, [fp, #-12]
ldr r2, [fp, #-20]
add r2, r2, r3
ldr r3, [fp, #-8]
ldr r1, [fp, #-16]
add r3, r1, r3
ldrb r2, [r2] @ zero_extendqisi2
strb r2, [r3]
ldr r3, [fp, #-12]
add r3, r3, #1
str r3, [fp, #-12]
ldr r3, [fp, #-8]
add r3, r3, #1
str r3, [fp, #-8]
.L9:
ldr r3, [fp, #-24]
sub r3, r3, #1
ldr r2, [fp, #-12]
cmp r2, r3
bge .L10
ldr r3, [fp, #-12]
ldr r2, [fp, #-20]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L10
ldr r3, [fp, #-12]
ldr r2, [fp, #-20]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #32
beq .L10
ldr r3, [fp, #-12]
ldr r2, [fp, #-20]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #10
beq .L10
ldr r3, [fp, #-12]
ldr r2, [fp, #-20]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #9
bne .L11
.L10:
ldr r3, [fp, #-8]
ldr r2, [fp, #-16]
add r3, r2, r3
mov r2, #0
strb r2, [r3]
nop
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size wordncpy, .-wordncpy
.align 2
.global lowercase
.syntax unified
.arm
.fpu softvfp
.type lowercase, %function
lowercase:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #20
str r0, [fp, #-16]
str r1, [fp, #-20]
mov r3, #0
str r3, [fp, #-8]
b .L14
.L17:
ldr r3, [fp, #-8]
ldr r2, [fp, #-16]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #64
bls .L15
ldr r3, [fp, #-8]
ldr r2, [fp, #-16]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #90
bhi .L15
ldr r3, [fp, #-8]
ldr r2, [fp, #-16]
add r3, r2, r3
ldrb r2, [r3] @ zero_extendqisi2
ldr r3, [fp, #-8]
ldr r1, [fp, #-16]
add r3, r1, r3
add r2, r2, #32
and r2, r2, #255
strb r2, [r3]
.L15:
ldr r3, [fp, #-8]
add r3, r3, #1
str r3, [fp, #-8]
.L14:
ldr r3, [fp, #-20]
sub r3, r3, #1
ldr r2, [fp, #-8]
cmp r2, r3
bge .L18
ldr r3, [fp, #-8]
ldr r2, [fp, #-16]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
bne .L17
.L18:
nop
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size lowercase, .-lowercase
.section .rodata
.align 2
.LC0:
.ascii "Unexpected EOF or I/O error\000"
.align 2
.LC1:
.ascii "Flags: real\012\000"
.align 2
.LC2:
.ascii "Format error: %s\000"
.align 2
.LC3:
.ascii "No. Variables: \000"
.align 2
.LC4:
.ascii "memory allocation failed\000"
.align 2
.LC5:
.ascii "No. Points: \000"
.align 2
.LC6:
.ascii "Variables:\012\000"
.align 2
.LC7:
.ascii "Invalid variable No.: %s\000"
.align 2
.LC8:
.ascii "unknown variable: \000"
.align 2
.LC9:
.ascii "# \000"
.align 2
.LC10:
.ascii "unknown:\000"
.align 2
.LC11:
.ascii "Binary:\012\000"
.align 2
.LC12:
.ascii "%.14e\000"
.align 2
.LC13:
.word __stack_chk_guard
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 320
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #320
str r0, [fp, #-320]
str r1, [fp, #-324]
ldr r3, .L77
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
mov r3, #1
str r3, [fp, #-304]
b .L20
.L21:
ldr r3, [fp, #-304]
lsl r3, r3, #2
ldr r2, [fp, #-324]
add r3, r2, r3
ldr r3, [r3]
mov r1, #16
mov r0, r3
bl lowercase
ldr r3, [fp, #-304]
add r3, r3, #1
str r3, [fp, #-304]
.L20:
ldr r2, [fp, #-304]
ldr r3, [fp, #-320]
cmp r2, r3
blt .L21
ldr r3, .L77+4
ldr r2, [r3]
sub r3, fp, #264
mov r1, #256
mov r0, r3
bl fgets
mov r3, r0
cmp r3, #0
bne .L22
ldr r0, .L77+8
bl perror
mov r0, #1
bl exit
.L22:
ldr r3, .L77+4
ldr r2, [r3]
sub r3, fp, #264
mov r1, #256
mov r0, r3
bl fgets
mov r3, r0
cmp r3, #0
bne .L23
ldr r0, .L77+8
bl perror
mov r0, #1
bl exit
.L23:
ldr r3, .L77+4
ldr r2, [r3]
sub r3, fp, #264
mov r1, #256
mov r0, r3
bl fgets
mov r3, r0
cmp r3, #0
bne .L24
ldr r0, .L77+8
bl perror
mov r0, #1
bl exit
.L24:
ldr r3, .L77+4
ldr r2, [r3]
sub r3, fp, #264
mov r1, #256
mov r0, r3
bl fgets
mov r3, r0
cmp r3, #0
bne .L25
ldr r0, .L77+8
bl perror
mov r0, #1
bl exit
.L25:
sub r3, fp, #264
mov r1, r3
ldr r0, .L77+12
bl strcmp
mov r3, r0
cmp r3, #0
beq .L26
ldr r3, .L77+16
ldr r3, [r3]
sub r2, fp, #264
ldr r1, .L77+20
mov r0, r3
bl fprintf
mov r0, #1
bl exit
.L26:
ldr r3, .L77+4
ldr r2, [r3]
sub r3, fp, #264
mov r1, #256
mov r0, r3
bl fgets
mov r3, r0
cmp r3, #0
bne .L27
ldr r0, .L77+8
bl perror
mov r0, #1
bl exit
.L27:
sub r3, fp, #264
mov r2, #15
mov r1, r3
ldr r0, .L77+24
bl strncmp
mov r3, r0
cmp r3, #0
beq .L28
ldr r3, .L77+16
ldr r3, [r3]
sub r2, fp, #264
ldr r1, .L77+20
mov r0, r3
bl fprintf
mov r0, #1
bl exit
.L28:
sub r3, fp, #264
add r3, r3, #15
sub r1, fp, #312
mov r2, #10
mov r0, r3
bl strtol
str r0, [fp, #-292]
sub r3, fp, #264
add r3, r3, #15
ldr r2, [fp, #-312]
cmp r3, r2
bne .L29
ldr r3, .L77+16
ldr r3, [r3]
sub r2, fp, #264
ldr r1, .L77+20
mov r0, r3
bl fprintf
mov r0, #1
bl exit
.L29:
ldr r3, [fp, #-292]
mov r1, #16
mov r0, r3
bl calloc
mov r3, r0
str r3, [fp, #-288]
ldr r3, [fp, #-288]
cmp r3, #0
bne .L30
ldr r0, .L77+28
bl perror
mov r0, #1
bl exit
.L30:
ldr r3, .L77+4
ldr r2, [r3]
sub r3, fp, #264
mov r1, #256
mov r0, r3
bl fgets
mov r3, r0
cmp r3, #0
bne .L31
ldr r0, .L77+8
bl perror
mov r0, #1
bl exit
.L31:
sub r3, fp, #264
mov r2, #12
mov r1, r3
ldr r0, .L77+32
bl strncmp
mov r3, r0
cmp r3, #0
beq .L32
ldr r3, .L77+16
ldr r3, [r3]
sub r2, fp, #264
ldr r1, .L77+20
mov r0, r3
bl fprintf
mov r0, #1
bl exit
.L32:
sub r3, fp, #264
add r3, r3, #12
sub r1, fp, #312
mov r2, #10
mov r0, r3
bl strtol
str r0, [fp, #-284]
sub r3, fp, #264
add r3, r3, #12
ldr r2, [fp, #-312]
cmp r3, r2
bne .L33
ldr r3, .L77+16
ldr r3, [r3]
sub r2, fp, #264
ldr r1, .L77+20
mov r0, r3
bl fprintf
mov r0, #1
bl exit
.L33:
ldr r3, .L77+4
ldr r2, [r3]
sub r3, fp, #264
mov r1, #256
mov r0, r3
bl fgets
mov r3, r0
cmp r3, #0
bne .L34
ldr r0, .L77+8
bl perror
mov r0, #1
bl exit
.L34:
sub r3, fp, #264
mov r1, r3
ldr r0, .L77+36
bl strcmp
mov r3, r0
cmp r3, #0
beq .L35
ldr r3, .L77+16
ldr r3, [r3]
sub r2, fp, #264
ldr r1, .L77+20
mov r0, r3
bl fprintf
mov r0, #1
bl exit
.L35:
mov r3, #0
str r3, [fp, #-304]
b .L36
.L39:
ldr r3, .L77+4
ldr r2, [r3]
sub r3, fp, #264
mov r1, #256
mov r0, r3
bl fgets
mov r3, r0
cmp r3, #0
bne .L37
ldr r0, .L77+8
bl perror
mov r0, #1
bl exit
.L37:
sub r1, fp, #312
sub r3, fp, #264
mov r2, #10
mov r0, r3
bl strtol
mov r2, r0
ldr r3, [fp, #-304]
cmp r3, r2
beq .L38
ldr r3, .L77+16
ldr r3, [r3]
sub r2, fp, #264
ldr r1, .L77+40
mov r0, r3
bl fprintf
mov r0, #1
bl exit
.L38:
ldr r3, [fp, #-304]
lsl r3, r3, #4
mov r2, r3
ldr r3, [fp, #-288]
add r3, r3, r2
ldr r1, [fp, #-312]
mov r2, #16
mov r0, r3
bl wordncpy
ldr r3, [fp, #-304]
lsl r3, r3, #4
mov r2, r3
ldr r3, [fp, #-288]
add r3, r3, r2
mov r1, #16
mov r0, r3
bl lowercase
ldr r3, [fp, #-304]
add r3, r3, #1
str r3, [fp, #-304]
.L36:
ldr r2, [fp, #-304]
ldr r3, [fp, #-292]
cmp r2, r3
blt .L39
ldr r3, [fp, #-292]
str r3, [fp, #-308]
ldr r3, [fp, #-320]
cmp r3, #1
ble .L40
ldr r3, [fp, #-320]
sub r3, r3, #1
str r3, [fp, #-308]
.L40:
ldr r3, [fp, #-308]
mov r1, #4
mov r0, r3
bl calloc
mov r3, r0
str r3, [fp, #-280]
ldr r3, [fp, #-280]
cmp r3, #0
bne .L41
ldr r0, .L77+28
bl perror
mov r0, #1
bl exit
.L41:
ldr r3, [fp, #-320]
cmp r3, #1
bne .L42
mov r3, #0
str r3, [fp, #-304]
b .L43
.L44:
ldr r3, [fp, #-304]
lsl r3, r3, #2
ldr r2, [fp, #-280]
add r3, r2, r3
ldr r2, [fp, #-304]
str r2, [r3]
ldr r3, [fp, #-304]
add r3, r3, #1
str r3, [fp, #-304]
.L43:
ldr r2, [fp, #-304]
ldr r3, [fp, #-308]
cmp r2, r3
blt .L44
b .L45
.L42:
mov r3, #0
str r3, [fp, #-304]
b .L46
.L53:
mov r3, #0
str r3, [fp, #-300]
b .L47
.L50:
ldr r3, [fp, #-300]
lsl r3, r3, #4
mov r2, r3
ldr r3, [fp, #-288]
add r0, r3, r2
ldr r3, [fp, #-304]
add r3, r3, #1
lsl r3, r3, #2
ldr r2, [fp, #-324]
add r3, r2, r3
ldr r3, [r3]
mov r2, #16
mov r1, r3
bl strncmp
mov r3, r0
cmp r3, #0
beq .L76
ldr r3, [fp, #-300]
add r3, r3, #1
str r3, [fp, #-300]
.L47:
ldr r2, [fp, #-300]
ldr r3, [fp, #-292]
cmp r2, r3
blt .L50
b .L49
.L76:
nop
.L49:
ldr r2, [fp, #-300]
ldr r3, [fp, #-292]
cmp r2, r3
bge .L51
ldr r3, [fp, #-304]
lsl r3, r3, #2
ldr r2, [fp, #-280]
add r3, r2, r3
ldr r2, [fp, #-300]
str r2, [r3]
b .L52
.L51:
ldr r3, .L77+16
ldr r3, [r3]
mov r2, #18
mov r1, #1
ldr r0, .L77+44
bl fwrite
ldr r3, [fp, #-304]
add r3, r3, #1
lsl r3, r3, #2
ldr r2, [fp, #-324]
add r3, r2, r3
ldr r3, [r3]
ldr r2, .L77+16
ldr r2, [r2]
mov r1, r2
mov r0, r3
bl fputs
ldr r3, .L77+16
ldr r3, [r3]
mov r1, r3
mov r0, #10
bl fputc
ldr r3, [fp, #-304]
lsl r3, r3, #2
ldr r2, [fp, #-280]
add r3, r2, r3
mvn r2, #0
str r2, [r3]
.L52:
ldr r3, [fp, #-304]
add r3, r3, #1
str r3, [fp, #-304]
.L46:
ldr r2, [fp, #-304]
ldr r3, [fp, #-308]
cmp r2, r3
blt .L53
.L45:
ldr r3, .L77+48
ldr r3, [r3]
mov r2, #2
mov r1, #1
ldr r0, .L77+52
bl fwrite
mov r3, #0
str r3, [fp, #-304]
b .L54
.L59:
ldr r3, [fp, #-304]
lsl r3, r3, #2
ldr r2, [fp, #-280]
add r3, r2, r3
ldr r3, [r3]
cmp r3, #0
bge .L55
ldr r3, .L77+48
ldr r3, [r3]
mov r2, #8
mov r1, #1
ldr r0, .L77+56
bl fwrite
ldr r3, [fp, #-304]
add r3, r3, #1
lsl r3, r3, #2
ldr r2, [fp, #-324]
add r3, r2, r3
ldr r3, [r3]
ldr r2, .L77+48
ldr r2, [r2]
mov r1, r2
mov r0, r3
bl fputs
b .L56
.L55:
ldr r3, [fp, #-304]
lsl r3, r3, #2
ldr r2, [fp, #-280]
add r3, r2, r3
ldr r3, [r3]
lsl r3, r3, #4
mov r2, r3
ldr r3, [fp, #-288]
add r3, r3, r2
ldr r2, .L77+48
ldr r2, [r2]
mov r1, r2
mov r0, r3
bl fputs
.L56:
ldr r3, [fp, #-308]
sub r3, r3, #1
ldr r2, [fp, #-304]
cmp r2, r3
bge .L57
mov r0, #44
bl putchar
b .L58
.L57:
mov r0, #10
bl putchar
.L58:
ldr r3, [fp, #-304]
add r3, r3, #1
str r3, [fp, #-304]
.L54:
ldr r2, [fp, #-304]
ldr r3, [fp, #-308]
cmp r2, r3
blt .L59
ldr r3, .L77+4
ldr r2, [r3]
sub r3, fp, #264
mov r1, #256
mov r0, r3
bl fgets
mov r3, r0
cmp r3, #0
bne .L60
ldr r0, .L77+8
bl perror
mov r0, #1
bl exit
.L60:
sub r3, fp, #264
mov r1, r3
ldr r0, .L77+60
bl strcmp
mov r3, r0
cmp r3, #0
beq .L61
ldr r3, .L77+16
ldr r3, [r3]
sub r2, fp, #264
ldr r1, .L77+20
mov r0, r3
bl fprintf
mov r0, #1
bl exit
.L61:
ldr r3, [fp, #-292]
mov r1, #8
mov r0, r3
bl calloc
mov r3, r0
str r3, [fp, #-276]
ldr r3, [fp, #-276]
cmp r3, #0
bne .L62
ldr r0, .L77+28
bl perror
mov r0, #1
bl exit
.L62:
mov r3, #0
str r3, [fp, #-304]
b .L63
.L73:
mov r3, #0
str r3, [fp, #-300]
b .L64
.L67:
mov r3, #0
str r3, [fp, #-296]
b .L65
.L66:
bl getchar
mov r3, r0
and r1, r3, #255
sub r2, fp, #272
ldr r3, [fp, #-296]
add r3, r2, r3
mov r2, r1
strb r2, [r3]
ldr r3, [fp, #-296]
add r3, r3, #1
str r3, [fp, #-296]
.L65:
ldr r3, [fp, #-296]
cmp r3, #7
bls .L66
sub r3, fp, #272
ldr r2, [fp, #-300]
lsl r2, r2, #3
ldr r1, [fp, #-276]
add r1, r1, r2
ldmia r3, {r2-r3}
stm r1, {r2-r3}
ldr r3, [fp, #-300]
add r3, r3, #1
str r3, [fp, #-300]
.L64:
ldr r2, [fp, #-300]
ldr r3, [fp, #-292]
cmp r2, r3
blt .L67
mov r3, #0
str r3, [fp, #-300]
b .L68
.L72:
ldr r3, [fp, #-300]
lsl r3, r3, #2
ldr r2, [fp, #-280]
add r3, r2, r3
ldr r3, [r3]
cmp r3, #0
blt .L69
ldr r3, [fp, #-300]
lsl r3, r3, #2
ldr r2, [fp, #-280]
add r3, r2, r3
ldr r3, [r3]
lsl r3, r3, #3
ldr r2, [fp, #-276]
add r3, r2, r3
ldmia r3, {r2-r3}
ldr r0, .L77+64
bl printf
.L69:
ldr r3, [fp, #-308]
sub r3, r3, #1
ldr r2, [fp, #-300]
cmp r2, r3
bge .L70
mov r0, #44
bl putchar
b .L71
.L70:
mov r0, #10
bl putchar
.L71:
ldr r3, [fp, #-300]
add r3, r3, #1
str r3, [fp, #-300]
.L68:
ldr r2, [fp, #-300]
ldr r3, [fp, #-308]
cmp r2, r3
blt .L72
ldr r3, [fp, #-304]
add r3, r3, #1
str r3, [fp, #-304]
.L63:
ldr r2, [fp, #-304]
ldr r3, [fp, #-284]
cmp r2, r3
blt .L73
mov r3, #0
ldr r2, .L77
ldr r1, [r2]
ldr r2, [fp, #-8]
eors r1, r2, r1
mov r2, #0
beq .L75
bl __stack_chk_fail
.L75:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L78:
.align 2
.L77:
.word .LC13
.word stdin
.word .LC0
.word .LC1
.word stderr
.word .LC2
.word .LC3
.word .LC4
.word .LC5
.word .LC6
.word .LC7
.word .LC8
.word stdout
.word .LC9
.word .LC10
.word .LC11
.word .LC12
.size main, .-main
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "788959.c"
.intel_syntax noprefix
.text
.globl max
.data
.align 4
.type max, @object
.size max, 4
max:
.long 10
.globl ht
.bss
.align 32
.type ht, @object
.size ht, 40
ht:
.zero 40
.text
.globl hashcode
.type hashcode, @function
hashcode:
.LFB6:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov DWORD PTR -4[rbp], edi
mov ecx, DWORD PTR max[rip]
mov eax, DWORD PTR -4[rbp]
cdq
idiv ecx
mov eax, edx
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size hashcode, .-hashcode
.section .rodata
.align 8
.LC0:
.string "\n Hash table is full, cannot insert any more item "
.align 8
.LC1:
.string "\n Key (%d) has been inserted \n"
.text
.globl insert
.type insert, @function
insert:
.LFB7:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 32
mov DWORD PTR -20[rbp], edi
mov eax, DWORD PTR -20[rbp]
mov edi, eax
call hashcode
mov DWORD PTR -4[rbp], eax
mov eax, DWORD PTR -4[rbp]
mov DWORD PTR -12[rbp], eax
mov DWORD PTR -8[rbp], 1
jmp .L4
.L7:
mov edx, DWORD PTR -4[rbp]
mov eax, DWORD PTR -8[rbp]
add eax, edx
mov ecx, DWORD PTR max[rip]
cdq
idiv ecx
mov DWORD PTR -12[rbp], edx
mov eax, DWORD PTR -12[rbp]
cmp eax, DWORD PTR -4[rbp]
jne .L5
lea rdi, .LC0[rip]
call puts@PLT
jmp .L3
.L5:
add DWORD PTR -8[rbp], 1
.L4:
mov eax, DWORD PTR -12[rbp]
cdqe
lea rdx, 0[0+rax*4]
lea rax, ht[rip]
mov eax, DWORD PTR [rdx+rax]
cmp eax, -1
jne .L7
mov eax, DWORD PTR -12[rbp]
cdqe
lea rcx, 0[0+rax*4]
lea rdx, ht[rip]
mov eax, DWORD PTR -20[rbp]
mov DWORD PTR [rcx+rdx], eax
mov eax, DWORD PTR -20[rbp]
mov esi, eax
lea rdi, .LC1[rip]
mov eax, 0
call printf@PLT
.L3:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE7:
.size insert, .-insert
.section .rodata
.LC2:
.string "\n This key does not exist "
.align 8
.LC3:
.string "\n Element (%d) has been found and removed \n"
.text
.globl delete
.type delete, @function
delete:
.LFB8:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 32
mov DWORD PTR -20[rbp], edi
mov eax, DWORD PTR -20[rbp]
mov edi, eax
call hashcode
mov DWORD PTR -4[rbp], eax
mov eax, DWORD PTR -4[rbp]
mov DWORD PTR -12[rbp], eax
mov DWORD PTR -8[rbp], 1
jmp .L9
.L12:
mov edx, DWORD PTR -4[rbp]
mov eax, DWORD PTR -8[rbp]
add eax, edx
mov ecx, DWORD PTR max[rip]
cdq
idiv ecx
mov DWORD PTR -12[rbp], edx
mov eax, DWORD PTR -12[rbp]
cmp eax, DWORD PTR -4[rbp]
jne .L10
lea rdi, .LC2[rip]
call puts@PLT
jmp .L8
.L10:
add DWORD PTR -8[rbp], 1
.L9:
mov eax, DWORD PTR -12[rbp]
cdqe
lea rdx, 0[0+rax*4]
lea rax, ht[rip]
mov eax, DWORD PTR [rdx+rax]
cmp DWORD PTR -20[rbp], eax
jne .L12
mov eax, DWORD PTR -12[rbp]
cdqe
lea rdx, 0[0+rax*4]
lea rax, ht[rip]
mov eax, DWORD PTR [rdx+rax]
cmp DWORD PTR -20[rbp], eax
jne .L8
mov eax, DWORD PTR -20[rbp]
mov esi, eax
lea rdi, .LC3[rip]
mov eax, 0
call printf@PLT
mov eax, DWORD PTR -12[rbp]
cdqe
lea rdx, 0[0+rax*4]
lea rax, ht[rip]
mov DWORD PTR [rdx+rax], -1
.L8:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE8:
.size delete, .-delete
.section .rodata
.LC4:
.string "Elements in hash table are"
.LC5:
.string "%d\n"
.text
.globl display
.type display, @function
display:
.LFB9:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
lea rdi, .LC4[rip]
mov eax, 0
call printf@PLT
mov DWORD PTR -4[rbp], 0
jmp .L14
.L15:
mov eax, DWORD PTR -4[rbp]
cdqe
lea rdx, 0[0+rax*4]
lea rax, ht[rip]
mov eax, DWORD PTR [rdx+rax]
mov esi, eax
lea rdi, .LC5[rip]
mov eax, 0
call printf@PLT
add DWORD PTR -4[rbp], 1
.L14:
mov eax, DWORD PTR max[rip]
cmp DWORD PTR -4[rbp], eax
jl .L15
nop
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE9:
.size display, .-display
.section .rodata
.align 8
.LC6:
.string "1.Insert\n2.Remove\n3.Display\n4.Exit"
.LC7:
.string "Enter the Choice:"
.LC8:
.string "%d"
.align 8
.LC9:
.string "Enter the element to be inserted:"
.align 8
.LC10:
.string "Enter the element to be Removed:"
.text
.globl main
.type main, @function
main:
.LFB10:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 32
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
mov DWORD PTR -12[rbp], 0
jmp .L17
.L18:
mov eax, DWORD PTR -12[rbp]
cdqe
lea rdx, 0[0+rax*4]
lea rax, ht[rip]
mov DWORD PTR [rdx+rax], -1
add DWORD PTR -12[rbp], 1
.L17:
cmp DWORD PTR -12[rbp], 9
jle .L18
.L24:
lea rdi, .LC6[rip]
call puts@PLT
lea rdi, .LC7[rip]
mov eax, 0
call printf@PLT
lea rax, -20[rbp]
mov rsi, rax
lea rdi, .LC8[rip]
mov eax, 0
call __isoc99_scanf@PLT
mov eax, DWORD PTR -20[rbp]
cmp eax, 4
je .L19
cmp eax, 4
jg .L24
cmp eax, 3
je .L21
cmp eax, 3
jg .L24
cmp eax, 1
je .L22
cmp eax, 2
je .L23
jmp .L20
.L22:
lea rdi, .LC9[rip]
mov eax, 0
call printf@PLT
lea rax, -16[rbp]
mov rsi, rax
lea rdi, .LC8[rip]
mov eax, 0
call __isoc99_scanf@PLT
mov eax, DWORD PTR -16[rbp]
mov edi, eax
call insert
jmp .L20
.L23:
lea rdi, .LC10[rip]
mov eax, 0
call printf@PLT
lea rax, -16[rbp]
mov rsi, rax
lea rdi, .LC8[rip]
mov eax, 0
call __isoc99_scanf@PLT
mov eax, DWORD PTR -16[rbp]
mov edi, eax
call delete
jmp .L20
.L21:
mov eax, 0
call display
jmp .L20
.L19:
mov edi, 0
call exit@PLT
.L20:
jmp .L24
.cfi_endproc
.LFE10:
.size main, .-main
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "788959.c"
.text
.global max
.data
.align 2
.type max, %object
.size max, 4
max:
.word 10
.comm ht,40,4
.global __aeabi_idivmod
.text
.align 2
.global hashcode
.syntax unified
.arm
.fpu softvfp
.type hashcode, %function
hashcode:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #8
str r0, [fp, #-8]
ldr r3, .L3
ldr r2, [r3]
ldr r3, [fp, #-8]
mov r1, r2
mov r0, r3
bl __aeabi_idivmod
mov r3, r1
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L4:
.align 2
.L3:
.word max
.size hashcode, .-hashcode
.section .rodata
.align 2
.LC0:
.ascii "\012 Hash table is full, cannot insert any more ite"
.ascii "m \000"
.align 2
.LC1:
.ascii "\012 Key (%d) has been inserted \012\000"
.text
.align 2
.global insert
.syntax unified
.arm
.fpu softvfp
.type insert, %function
insert:
@ args = 0, pretend = 0, frame = 24
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #24
str r0, [fp, #-24]
ldr r0, [fp, #-24]
bl hashcode
str r0, [fp, #-8]
ldr r3, [fp, #-8]
str r3, [fp, #-16]
mov r3, #1
str r3, [fp, #-12]
b .L6
.L9:
ldr r2, [fp, #-8]
ldr r3, [fp, #-12]
add r3, r2, r3
ldr r2, .L10
ldr r2, [r2]
mov r1, r2
mov r0, r3
bl __aeabi_idivmod
mov r3, r1
str r3, [fp, #-16]
ldr r2, [fp, #-16]
ldr r3, [fp, #-8]
cmp r2, r3
bne .L7
ldr r0, .L10+4
bl puts
b .L5
.L7:
ldr r3, [fp, #-12]
add r3, r3, #1
str r3, [fp, #-12]
.L6:
ldr r2, .L10+8
ldr r3, [fp, #-16]
ldr r3, [r2, r3, lsl #2]
cmn r3, #1
bne .L9
ldr r1, .L10+8
ldr r3, [fp, #-16]
ldr r2, [fp, #-24]
str r2, [r1, r3, lsl #2]
ldr r1, [fp, #-24]
ldr r0, .L10+12
bl printf
.L5:
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L11:
.align 2
.L10:
.word max
.word .LC0
.word ht
.word .LC1
.size insert, .-insert
.section .rodata
.align 2
.LC2:
.ascii "\012 This key does not exist \000"
.align 2
.LC3:
.ascii "\012 Element (%d) has been found and removed \012\000"
.text
.align 2
.global delete
.syntax unified
.arm
.fpu softvfp
.type delete, %function
delete:
@ args = 0, pretend = 0, frame = 24
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #24
str r0, [fp, #-24]
ldr r0, [fp, #-24]
bl hashcode
str r0, [fp, #-8]
ldr r3, [fp, #-8]
str r3, [fp, #-16]
mov r3, #1
str r3, [fp, #-12]
b .L13
.L16:
ldr r2, [fp, #-8]
ldr r3, [fp, #-12]
add r3, r2, r3
ldr r2, .L17
ldr r2, [r2]
mov r1, r2
mov r0, r3
bl __aeabi_idivmod
mov r3, r1
str r3, [fp, #-16]
ldr r2, [fp, #-16]
ldr r3, [fp, #-8]
cmp r2, r3
bne .L14
ldr r0, .L17+4
bl puts
b .L12
.L14:
ldr r3, [fp, #-12]
add r3, r3, #1
str r3, [fp, #-12]
.L13:
ldr r2, .L17+8
ldr r3, [fp, #-16]
ldr r3, [r2, r3, lsl #2]
ldr r2, [fp, #-24]
cmp r2, r3
bne .L16
ldr r2, .L17+8
ldr r3, [fp, #-16]
ldr r3, [r2, r3, lsl #2]
ldr r2, [fp, #-24]
cmp r2, r3
bne .L12
ldr r1, [fp, #-24]
ldr r0, .L17+12
bl printf
ldr r2, .L17+8
ldr r3, [fp, #-16]
mvn r1, #0
str r1, [r2, r3, lsl #2]
.L12:
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L18:
.align 2
.L17:
.word max
.word .LC2
.word ht
.word .LC3
.size delete, .-delete
.section .rodata
.align 2
.LC4:
.ascii "Elements in hash table are\000"
.align 2
.LC5:
.ascii "%d\012\000"
.text
.align 2
.global display
.syntax unified
.arm
.fpu softvfp
.type display, %function
display:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #8
ldr r0, .L22
bl printf
mov r3, #0
str r3, [fp, #-8]
b .L20
.L21:
ldr r2, .L22+4
ldr r3, [fp, #-8]
ldr r3, [r2, r3, lsl #2]
mov r1, r3
ldr r0, .L22+8
bl printf
ldr r3, [fp, #-8]
add r3, r3, #1
str r3, [fp, #-8]
.L20:
ldr r3, .L22+12
ldr r3, [r3]
ldr r2, [fp, #-8]
cmp r2, r3
blt .L21
nop
nop
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L23:
.align 2
.L22:
.word .LC4
.word ht
.word .LC5
.word max
.size display, .-display
.section .rodata
.align 2
.LC6:
.ascii "1.Insert\0122.Remove\0123.Display\0124.Exit\000"
.align 2
.LC7:
.ascii "Enter the Choice:\000"
.align 2
.LC8:
.ascii "%d\000"
.align 2
.LC9:
.ascii "Enter the element to be inserted:\000"
.align 2
.LC10:
.ascii "Enter the element to be Removed:\000"
.align 2
.LC11:
.word __stack_chk_guard
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #16
ldr r3, .L35
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
mov r3, #0
str r3, [fp, #-12]
b .L25
.L26:
ldr r2, .L35+4
ldr r3, [fp, #-12]
mvn r1, #0
str r1, [r2, r3, lsl #2]
ldr r3, [fp, #-12]
add r3, r3, #1
str r3, [fp, #-12]
.L25:
ldr r3, [fp, #-12]
cmp r3, #9
ble .L26
.L33:
ldr r0, .L35+8
bl puts
ldr r0, .L35+12
bl printf
sub r3, fp, #20
mov r1, r3
ldr r0, .L35+16
bl __isoc99_scanf
ldr r3, [fp, #-20]
sub r3, r3, #1
cmp r3, #3
ldrls pc, [pc, r3, asl #2]
b .L33
.L29:
.word .L32
.word .L31
.word .L30
.word .L28
.L32:
ldr r0, .L35+20
bl printf
sub r3, fp, #16
mov r1, r3
ldr r0, .L35+16
bl __isoc99_scanf
ldr r3, [fp, #-16]
mov r0, r3
bl insert
b .L27
.L31:
ldr r0, .L35+24
bl printf
sub r3, fp, #16
mov r1, r3
ldr r0, .L35+16
bl __isoc99_scanf
ldr r3, [fp, #-16]
mov r0, r3
bl delete
b .L27
.L30:
bl display
b .L27
.L28:
mov r0, #0
bl exit
.L27:
b .L33
.L36:
.align 2
.L35:
.word .LC11
.word ht
.word .LC6
.word .LC7
.word .LC8
.word .LC9
.word .LC10
.size main, .-main
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "288104.c"
.intel_syntax noprefix
.text
.section .rodata
.LC0:
.string "i: %d\n"
.LC1:
.string "open"
.LC2:
.string "pass"
.text
.globl main
.type main, @function
main:
.LFB6:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 32
mov DWORD PTR -20[rbp], edi
mov QWORD PTR -32[rbp], rsi
mov edi, 4
call sysconf@PLT
mov DWORD PTR -12[rbp], eax
mov rax, QWORD PTR -32[rbp]
mov rax, QWORD PTR [rax]
mov rdi, rax
call strlen@PLT
add rax, 2
mov rdi, rax
call malloc@PLT
mov QWORD PTR -8[rbp], rax
cmp QWORD PTR -8[rbp], 0
jne .L2
call abort@PLT
.L2:
mov rax, QWORD PTR -8[rbp]
mov WORD PTR [rax], 47
mov rax, QWORD PTR -32[rbp]
mov rdx, QWORD PTR [rax]
mov rax, QWORD PTR -8[rbp]
mov rsi, rdx
mov rdi, rax
call strcat@PLT
mov DWORD PTR -16[rbp], 0
jmp .L3
.L8:
mov rax, QWORD PTR -8[rbp]
mov esi, 0
mov rdi, rax
mov eax, 0
call open@PLT
test eax, eax
jns .L4
mov eax, DWORD PTR -12[rbp]
sub eax, 4
cmp DWORD PTR -16[rbp], eax
jge .L5
mov rax, QWORD PTR stderr[rip]
mov edx, DWORD PTR -16[rbp]
lea rsi, .LC0[rip]
mov rdi, rax
mov eax, 0
call fprintf@PLT
call abort@PLT
.L5:
call __errno_location@PLT
mov eax, DWORD PTR [rax]
cmp eax, 24
je .L9
lea rdi, .LC1[rip]
call perror@PLT
call abort@PLT
.L4:
add DWORD PTR -16[rbp], 1
.L3:
mov eax, DWORD PTR -12[rbp]
cmp eax, DWORD PTR -16[rbp]
jge .L8
call abort@PLT
.L9:
nop
.L7:
lea rdi, .LC2[rip]
call puts@PLT
mov edi, 0
call exit@PLT
.cfi_endproc
.LFE6:
.size main, .-main
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "288104.c"
.text
.section .rodata
.align 2
.LC0:
.ascii "/\000"
.align 2
.LC1:
.ascii "i: %d\012\000"
.align 2
.LC2:
.ascii "open\000"
.align 2
.LC3:
.ascii "pass\000"
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 24
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #24
str r0, [fp, #-24]
str r1, [fp, #-28]
mov r0, #4
bl sysconf
str r0, [fp, #-12]
ldr r3, [fp, #-28]
ldr r3, [r3]
mov r0, r3
bl strlen
mov r3, r0
add r3, r3, #2
mov r0, r3
bl malloc
mov r3, r0
str r3, [fp, #-8]
ldr r3, [fp, #-8]
cmp r3, #0
bne .L2
bl abort
.L2:
ldr r3, [fp, #-8]
ldr r2, .L10
mov r0, r3
mov r1, r2
mov r3, #2
mov r2, r3
bl memcpy
ldr r3, [fp, #-28]
ldr r3, [r3]
mov r1, r3
ldr r0, [fp, #-8]
bl strcat
mov r3, #0
str r3, [fp, #-16]
b .L3
.L8:
mov r1, #0
ldr r0, [fp, #-8]
bl open
mov r3, r0
cmp r3, #0
bge .L4
ldr r3, [fp, #-12]
sub r3, r3, #4
ldr r2, [fp, #-16]
cmp r2, r3
bge .L5
ldr r3, .L10+4
ldr r3, [r3]
ldr r2, [fp, #-16]
ldr r1, .L10+8
mov r0, r3
bl fprintf
bl abort
.L5:
bl __errno_location
mov r3, r0
ldr r3, [r3]
cmp r3, #24
beq .L9
ldr r0, .L10+12
bl perror
bl abort
.L4:
ldr r3, [fp, #-16]
add r3, r3, #1
str r3, [fp, #-16]
.L3:
ldr r2, [fp, #-12]
ldr r3, [fp, #-16]
cmp r2, r3
bge .L8
bl abort
.L9:
nop
.L7:
ldr r0, .L10+16
bl puts
mov r0, #0
bl exit
.L11:
.align 2
.L10:
.word .LC0
.word stderr
.word .LC1
.word .LC2
.word .LC3
.size main, .-main
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "227946.c"
.intel_syntax noprefix
.text
.globl h
.type h, @function
h:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov QWORD PTR -8[rbp], rdi
mov rax, QWORD PTR -8[rbp]
movzx eax, BYTE PTR [rax]
test al, al
cmp QWORD PTR -8[rbp], 0
setne al
movzx eax, al
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size h, .-h
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "227946.c"
.text
.align 2
.global h
.syntax unified
.arm
.fpu softvfp
.type h, %function
h:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #12
str r0, [fp, #-8]
ldr r3, [fp, #-8]
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
ldr r3, [fp, #-8]
cmp r3, #0
movne r3, #1
moveq r3, #0
and r3, r3, #255
mov r0, r3
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size h, .-h
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "729285.c"
.intel_syntax noprefix
.text
.globl test1
.type test1, @function
test1:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov QWORD PTR -8[rbp], rdi
mov rax, QWORD PTR -8[rbp]
mov eax, DWORD PTR [rax]
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size test1, .-test1
.globl test2
.type test2, @function
test2:
.LFB1:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov QWORD PTR -8[rbp], rdi
mov rax, QWORD PTR -8[rbp]
mov eax, DWORD PTR [rax]
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE1:
.size test2, .-test2
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "729285.c"
.text
.align 2
.global test1
.syntax unified
.arm
.fpu softvfp
.type test1, %function
test1:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #12
str r0, [fp, #-8]
ldr r3, [fp, #-8]
ldr r3, [r3]
mov r0, r3
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size test1, .-test1
.align 2
.global test2
.syntax unified
.arm
.fpu softvfp
.type test2, %function
test2:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #12
str r0, [fp, #-8]
ldr r3, [fp, #-8]
ldr r3, [r3]
mov r0, r3
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size test2, .-test2
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "621178.c"
.intel_syntax noprefix
.text
#APP
.globl cu_text_start
cu_text_start:
.globl FUNC_lang_start
.p2align 4
FUNC_lang_start:
#NO_APP
.globl FUNC_lang
.type FUNC_lang, @function
FUNC_lang:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
nop
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size FUNC_lang, .-FUNC_lang
#APP
.globl FUNC_lang_end
FUNC_lang_end:
#NO_APP
.globl FUNC_symtab
.type FUNC_symtab, @function
FUNC_symtab:
.LFB1:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
nop
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE1:
.size FUNC_symtab, .-FUNC_symtab
.globl main
.type main, @function
main:
.LFB2:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
call FUNC_lang
call FUNC_symtab
mov eax, 0
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE2:
.size main, .-main
#APP
.globl cu_text_end
cu_text_end:
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "621178.c"
.text
.syntax divided
.globl cu_text_start
cu_text_start:
.globl FUNC_lang_start
.p2align 4
FUNC_lang_start:
.arm
.syntax unified
.align 2
.global FUNC_lang
.syntax unified
.arm
.fpu softvfp
.type FUNC_lang, %function
FUNC_lang:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
nop
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size FUNC_lang, .-FUNC_lang
.syntax divided
.globl FUNC_lang_end
FUNC_lang_end:
.arm
.syntax unified
.align 2
.global FUNC_symtab
.syntax unified
.arm
.fpu softvfp
.type FUNC_symtab, %function
FUNC_symtab:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
nop
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size FUNC_symtab, .-FUNC_symtab
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
bl FUNC_lang
bl FUNC_symtab
mov r3, #0
mov r0, r3
pop {fp, pc}
.size main, .-main
.syntax divided
.globl cu_text_end
cu_text_end:
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
.file "212209.c"
.intel_syntax noprefix
.text
.globl fibonacci
.type fibonacci, @function
fibonacci:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
push rbx
sub rsp, 40
.cfi_offset 3, -24
mov DWORD PTR -36[rbp], edi
cmp DWORD PTR -36[rbp], 0
jg .L2
mov DWORD PTR -20[rbp], 0
jmp .L3
.L2:
cmp DWORD PTR -36[rbp], 2
jg .L4
mov DWORD PTR -20[rbp], 1
jmp .L3
.L4:
mov eax, DWORD PTR -36[rbp]
sub eax, 1
mov edi, eax
call fibonacci
mov ebx, eax
mov eax, DWORD PTR -36[rbp]
sub eax, 2
mov edi, eax
call fibonacci
add eax, ebx
mov DWORD PTR -20[rbp], eax
.L3:
mov eax, DWORD PTR -20[rbp]
mov rbx, QWORD PTR -8[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size fibonacci, .-fibonacci
.section .rodata
.LC0:
.string "Please input a number:\n"
.align 8
.LC1:
.string "This number's fibonacci value is :\n"
.text
.globl main
.type main, @function
main:
.LFB1:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
lea rdi, .LC0[rip]
mov eax, 0
call Mars_PrintStr@PLT
mov eax, 0
call Mars_GetInt@PLT
mov DWORD PTR -8[rbp], eax
mov eax, DWORD PTR -8[rbp]
mov edi, eax
call fibonacci
mov DWORD PTR -4[rbp], eax
lea rdi, .LC1[rip]
mov eax, 0
call Mars_PrintStr@PLT
mov eax, DWORD PTR -4[rbp]
mov edi, eax
mov eax, 0
call Mars_PrintInt@PLT
mov eax, 0
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE1:
.size main, .-main
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "212209.c"
.text
.align 2
.global fibonacci
.syntax unified
.arm
.fpu softvfp
.type fibonacci, %function
fibonacci:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
push {r4, fp, lr}
add fp, sp, #8
sub sp, sp, #20
str r0, [fp, #-24]
ldr r3, [fp, #-24]
cmp r3, #0
bgt .L2
mov r3, #0
str r3, [fp, #-16]
b .L3
.L2:
ldr r3, [fp, #-24]
cmp r3, #2
bgt .L4
mov r3, #1
str r3, [fp, #-16]
b .L3
.L4:
ldr r3, [fp, #-24]
sub r3, r3, #1
mov r0, r3
bl fibonacci
mov r4, r0
ldr r3, [fp, #-24]
sub r3, r3, #2
mov r0, r3
bl fibonacci
mov r3, r0
add r3, r4, r3
str r3, [fp, #-16]
.L3:
ldr r3, [fp, #-16]
mov r0, r3
sub sp, fp, #8
@ sp needed
pop {r4, fp, pc}
.size fibonacci, .-fibonacci
.section .rodata
.align 2
.LC0:
.ascii "Please input a number:\012\000"
.align 2
.LC1:
.ascii "This number's fibonacci value is :\012\000"
.text
.align 2
.global main
.syntax unified
.arm
.fpu softvfp
.type main, %function
main:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #8
ldr r0, .L8
bl Mars_PrintStr
bl Mars_GetInt
str r0, [fp, #-12]
ldr r0, [fp, #-12]
bl fibonacci
str r0, [fp, #-8]
ldr r0, .L8+4
bl Mars_PrintStr
ldr r0, [fp, #-8]
bl Mars_PrintInt
mov r3, #0
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L9:
.align 2
.L8:
.word .LC0
.word .LC1
.size main, .-main
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
Subsets and Splits