files
stringlengths 20
22
| x86_O2
stringlengths 481
4.45k
| x86_O0
stringlengths 639
7.61k
|
---|---|---|
eval/problem145/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB39:
.cfi_startproc
endbr64
push r15
.cfi_def_cfa_offset 16
.cfi_offset 15, -16
push r14
.cfi_def_cfa_offset 24
.cfi_offset 14, -24
push r13
.cfi_def_cfa_offset 32
.cfi_offset 13, -32
push r12
.cfi_def_cfa_offset 40
.cfi_offset 12, -40
mov r12, rsi
push rbp
.cfi_def_cfa_offset 48
.cfi_offset 6, -48
mov rbp, rdi
push rbx
.cfi_def_cfa_offset 56
.cfi_offset 3, -56
sub rsp, 248
.cfi_def_cfa_offset 304
movzx edx, BYTE PTR [rdi]
mov rax, QWORD PTR fs:40
mov QWORD PTR 232[rsp], rax
xor eax, eax
cmp dl, 47
je .L11
mov eax, 1
lea rsi, 15[rsp]
.p2align 4,,10
.p2align 3
.L3:
mov BYTE PTR [rsi+rax], dl
movsx rcx, eax
add rax, 1
movzx edx, BYTE PTR -1[rbp+rax]
cmp dl, 47
jne .L3
lea r15d, 1[rcx]
movsx r14, r15d
.L2:
lea r13, 16[rsp]
mov edx, 10
xor esi, esi
mov BYTE PTR 16[rsp+rcx], 0
mov rdi, r13
call strtol@PLT
mov QWORD PTR 8[rsp], rax
movzx eax, BYTE PTR 0[rbp+r14]
test al, al
je .L12
movsx r15, r15d
mov edx, 1
lea rsi, 127[rsp]
add rbp, r15
.p2align 4,,10
.p2align 3
.L5:
mov BYTE PTR [rsi+rdx], al
movsx rcx, edx
add rdx, 1
movzx eax, BYTE PTR -1[rbp+rdx]
test al, al
jne .L5
.L4:
lea r14, 128[rsp]
mov edx, 10
xor esi, esi
mov BYTE PTR 128[rsp+rcx], 0
mov rdi, r14
call strtol@PLT
movzx ecx, BYTE PTR [r12]
mov rbp, rax
cmp cl, 47
je .L13
mov edx, 1
lea rsi, 15[rsp]
.p2align 4,,10
.p2align 3
.L7:
mov BYTE PTR [rsi+rdx], cl
movsx rax, edx
add rdx, 1
movzx ecx, BYTE PTR -1[r12+rdx]
cmp cl, 47
jne .L7
lea ebx, 1[rax]
movsx r15, ebx
.L6:
mov rdi, r13
mov edx, 10
xor esi, esi
mov BYTE PTR 16[rsp+rax], 0
call strtol@PLT
movzx ecx, BYTE PTR [r12+r15]
mov r13, rax
test cl, cl
je .L14
movsx r8, ebx
mov edx, 1
lea rsi, 127[rsp]
add r12, r8
.p2align 4,,10
.p2align 3
.L9:
mov BYTE PTR [rsi+rdx], cl
movsx rax, edx
add rdx, 1
movzx ecx, BYTE PTR -1[r12+rdx]
test cl, cl
jne .L9
.L8:
mov edx, 10
xor esi, esi
mov rdi, r14
mov BYTE PTR 128[rsp+rax], 0
call strtol@PLT
mov r8, rax
mov eax, DWORD PTR 8[rsp]
imul ebp, r8d
imul eax, r13d
cdq
idiv ebp
xor eax, eax
test edx, edx
sete al
mov rbx, QWORD PTR 232[rsp]
sub rbx, QWORD PTR fs:40
jne .L21
add rsp, 248
.cfi_remember_state
.cfi_def_cfa_offset 56
pop rbx
.cfi_def_cfa_offset 48
pop rbp
.cfi_def_cfa_offset 40
pop r12
.cfi_def_cfa_offset 32
pop r13
.cfi_def_cfa_offset 24
pop r14
.cfi_def_cfa_offset 16
pop r15
.cfi_def_cfa_offset 8
ret
.p2align 4,,10
.p2align 3
.L11:
.cfi_restore_state
mov r14d, 1
mov r15d, 1
xor ecx, ecx
jmp .L2
.p2align 4,,10
.p2align 3
.L12:
xor ecx, ecx
jmp .L4
.p2align 4,,10
.p2align 3
.L13:
mov r15d, 1
mov ebx, 1
xor eax, eax
jmp .L6
.p2align 4,,10
.p2align 3
.L14:
xor eax, eax
jmp .L8
.L21:
call __stack_chk_fail@PLT
.cfi_endproc
.LFE39:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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, 272
mov QWORD PTR -264[rbp], rdi
mov QWORD PTR -272[rbp], rsi
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
mov DWORD PTR -248[rbp], 0
jmp .L2
.L3:
mov eax, DWORD PTR -248[rbp]
movsx rdx, eax
mov rax, QWORD PTR -264[rbp]
add rax, rdx
movzx edx, BYTE PTR [rax]
mov eax, DWORD PTR -248[rbp]
cdqe
mov BYTE PTR -224[rbp+rax], dl
add DWORD PTR -248[rbp], 1
.L2:
mov eax, DWORD PTR -248[rbp]
movsx rdx, eax
mov rax, QWORD PTR -264[rbp]
add rax, rdx
movzx eax, BYTE PTR [rax]
cmp al, 47
jne .L3
mov eax, DWORD PTR -248[rbp]
cdqe
mov BYTE PTR -224[rbp+rax], 0
lea rax, -224[rbp]
mov rdi, rax
call atoi@PLT
mov DWORD PTR -240[rbp], eax
mov DWORD PTR -244[rbp], 0
add DWORD PTR -248[rbp], 1
jmp .L4
.L5:
mov eax, DWORD PTR -248[rbp]
movsx rdx, eax
mov rax, QWORD PTR -264[rbp]
add rax, rdx
movzx edx, BYTE PTR [rax]
mov eax, DWORD PTR -244[rbp]
cdqe
mov BYTE PTR -112[rbp+rax], dl
add DWORD PTR -248[rbp], 1
add DWORD PTR -244[rbp], 1
.L4:
mov eax, DWORD PTR -248[rbp]
movsx rdx, eax
mov rax, QWORD PTR -264[rbp]
add rax, rdx
movzx eax, BYTE PTR [rax]
test al, al
jne .L5
mov eax, DWORD PTR -244[rbp]
cdqe
mov BYTE PTR -112[rbp+rax], 0
lea rax, -112[rbp]
mov rdi, rax
call atoi@PLT
mov DWORD PTR -236[rbp], eax
mov DWORD PTR -248[rbp], 0
jmp .L6
.L7:
mov eax, DWORD PTR -248[rbp]
movsx rdx, eax
mov rax, QWORD PTR -272[rbp]
add rax, rdx
movzx edx, BYTE PTR [rax]
mov eax, DWORD PTR -248[rbp]
cdqe
mov BYTE PTR -224[rbp+rax], dl
add DWORD PTR -248[rbp], 1
.L6:
mov eax, DWORD PTR -248[rbp]
movsx rdx, eax
mov rax, QWORD PTR -272[rbp]
add rax, rdx
movzx eax, BYTE PTR [rax]
cmp al, 47
jne .L7
mov eax, DWORD PTR -248[rbp]
cdqe
mov BYTE PTR -224[rbp+rax], 0
lea rax, -224[rbp]
mov rdi, rax
call atoi@PLT
mov DWORD PTR -232[rbp], eax
mov DWORD PTR -244[rbp], 0
add DWORD PTR -248[rbp], 1
jmp .L8
.L9:
mov eax, DWORD PTR -248[rbp]
movsx rdx, eax
mov rax, QWORD PTR -272[rbp]
add rax, rdx
movzx edx, BYTE PTR [rax]
mov eax, DWORD PTR -244[rbp]
cdqe
mov BYTE PTR -112[rbp+rax], dl
add DWORD PTR -248[rbp], 1
add DWORD PTR -244[rbp], 1
.L8:
mov eax, DWORD PTR -248[rbp]
movsx rdx, eax
mov rax, QWORD PTR -272[rbp]
add rax, rdx
movzx eax, BYTE PTR [rax]
test al, al
jne .L9
mov eax, DWORD PTR -244[rbp]
cdqe
mov BYTE PTR -112[rbp+rax], 0
lea rax, -112[rbp]
mov rdi, rax
call atoi@PLT
mov DWORD PTR -228[rbp], eax
mov eax, DWORD PTR -240[rbp]
imul eax, DWORD PTR -232[rbp]
mov edx, DWORD PTR -236[rbp]
mov ecx, edx
imul ecx, DWORD PTR -228[rbp]
cdq
idiv ecx
mov eax, edx
test eax, eax
jne .L10
mov eax, 1
jmp .L12
.L10:
mov eax, 0
.L12:
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
.LFE6:
.size func0, .-func0
.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:
|
eval/problem44/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB23:
.cfi_startproc
endbr64
test esi, esi
jle .L7
movsx r8, esi
mov ecx, 1
cmp rcx, r8
je .L7
.L14:
mov edx, DWORD PTR -4[rdi+rcx*4]
mov rax, rcx
jmp .L3
.p2align 4,,10
.p2align 3
.L13:
add rax, 1
cmp esi, eax
jle .L12
.L3:
mov r9d, edx
add r9d, DWORD PTR [rdi+rax*4]
jne .L13
mov eax, 1
ret
.p2align 4,,10
.p2align 3
.L12:
add rcx, 1
cmp rcx, r8
jne .L14
.L7:
xor eax, eax
ret
.cfi_endproc
.LFE23:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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 -8[rbp], 0
jmp .L2
.L7:
mov eax, DWORD PTR -8[rbp]
add eax, 1
mov DWORD PTR -4[rbp], eax
jmp .L3
.L6:
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 [rax]
mov eax, DWORD PTR -4[rbp]
cdqe
lea rcx, 0[0+rax*4]
mov rax, QWORD PTR -24[rbp]
add rax, rcx
mov eax, DWORD PTR [rax]
add eax, edx
test eax, eax
jne .L4
mov eax, 1
jmp .L5
.L4:
add DWORD PTR -4[rbp], 1
.L3:
mov eax, DWORD PTR -4[rbp]
cmp eax, DWORD PTR -28[rbp]
jl .L6
add DWORD PTR -8[rbp], 1
.L2:
mov eax, DWORD PTR -8[rbp]
cmp eax, DWORD PTR -28[rbp]
jl .L7
mov eax, 0
.L5:
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size func0, .-func0
.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:
|
eval/problem55/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB34:
.cfi_startproc
endbr64
push r12
.cfi_def_cfa_offset 16
.cfi_offset 12, -16
push rbp
.cfi_def_cfa_offset 24
.cfi_offset 6, -24
mov rbp, rdi
push rbx
.cfi_def_cfa_offset 32
.cfi_offset 3, -32
mov rbx, rsi
call strlen@PLT
mov rdi, rbx
mov r12, rax
call strlen@PLT
test r12d, r12d
jle .L20
lea r9d, -1[r12]
mov r8d, eax
lea rsi, 1[rbp]
sub eax, 1
mov r12, r9
mov rdi, rbp
lea rcx, 1[rbx+rax]
add r9, rsi
.p2align 4,,10
.p2align 3
.L10:
test r8d, r8d
jle .L18
movzx edx, BYTE PTR [rdi]
mov rax, rbx
jmp .L5
.p2align 4,,10
.p2align 3
.L21:
add rax, 1
cmp rax, rcx
je .L18
.L5:
cmp dl, BYTE PTR [rax]
jne .L21
add rdi, 1
cmp rdi, r9
jne .L10
xor edi, edi
lea rcx, [rsi+r12]
.p2align 4,,10
.p2align 3
.L11:
movzx edx, BYTE PTR [rbx+rdi]
mov rax, rbp
jmp .L9
.p2align 4,,10
.p2align 3
.L22:
add rax, 1
cmp rax, rcx
je .L18
.L9:
cmp dl, BYTE PTR [rax]
jne .L22
add rdi, 1
cmp r8d, edi
jg .L11
pop rbx
.cfi_remember_state
.cfi_def_cfa_offset 24
mov eax, 1
pop rbp
.cfi_def_cfa_offset 16
pop r12
.cfi_def_cfa_offset 8
ret
.p2align 4,,10
.p2align 3
.L18:
.cfi_restore_state
xor eax, eax
.L1:
pop rbx
.cfi_remember_state
.cfi_def_cfa_offset 24
pop rbp
.cfi_def_cfa_offset 16
pop r12
.cfi_def_cfa_offset 8
ret
.L20:
.cfi_restore_state
test eax, eax
setle al
jmp .L1
.cfi_endproc
.LFE34:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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, 48
mov QWORD PTR -40[rbp], rdi
mov QWORD PTR -48[rbp], rsi
mov rax, QWORD PTR -40[rbp]
mov rdi, rax
call strlen@PLT
mov DWORD PTR -8[rbp], eax
mov rax, QWORD PTR -48[rbp]
mov rdi, rax
call strlen@PLT
mov DWORD PTR -4[rbp], eax
mov DWORD PTR -24[rbp], 0
jmp .L2
.L9:
mov BYTE PTR -26[rbp], 0
mov DWORD PTR -20[rbp], 0
jmp .L3
.L6:
mov eax, DWORD PTR -24[rbp]
movsx rdx, eax
mov rax, QWORD PTR -40[rbp]
add rax, rdx
movzx edx, BYTE PTR [rax]
mov eax, DWORD PTR -20[rbp]
movsx rcx, eax
mov rax, QWORD PTR -48[rbp]
add rax, rcx
movzx eax, BYTE PTR [rax]
cmp dl, al
jne .L4
mov BYTE PTR -26[rbp], 1
jmp .L5
.L4:
add DWORD PTR -20[rbp], 1
.L3:
mov eax, DWORD PTR -20[rbp]
cmp eax, DWORD PTR -4[rbp]
jl .L6
.L5:
movzx eax, BYTE PTR -26[rbp]
xor eax, 1
test al, al
je .L7
mov eax, 0
jmp .L8
.L7:
add DWORD PTR -24[rbp], 1
.L2:
mov eax, DWORD PTR -24[rbp]
cmp eax, DWORD PTR -8[rbp]
jl .L9
mov DWORD PTR -16[rbp], 0
jmp .L10
.L16:
mov BYTE PTR -25[rbp], 0
mov DWORD PTR -12[rbp], 0
jmp .L11
.L14:
mov eax, DWORD PTR -16[rbp]
movsx rdx, eax
mov rax, QWORD PTR -48[rbp]
add rax, rdx
movzx edx, BYTE PTR [rax]
mov eax, DWORD PTR -12[rbp]
movsx rcx, eax
mov rax, QWORD PTR -40[rbp]
add rax, rcx
movzx eax, BYTE PTR [rax]
cmp dl, al
jne .L12
mov BYTE PTR -25[rbp], 1
jmp .L13
.L12:
add DWORD PTR -12[rbp], 1
.L11:
mov eax, DWORD PTR -12[rbp]
cmp eax, DWORD PTR -8[rbp]
jl .L14
.L13:
movzx eax, BYTE PTR -25[rbp]
xor eax, 1
test al, al
je .L15
mov eax, 0
jmp .L8
.L15:
add DWORD PTR -16[rbp], 1
.L10:
mov eax, DWORD PTR -16[rbp]
cmp eax, DWORD PTR -4[rbp]
jl .L16
mov eax, 1
.L8:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size func0, .-func0
.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:
|
eval/problem61/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB23:
.cfi_startproc
endbr64
lea eax, 1[rdi]
imul edi, eax
mov eax, edi
shr eax, 31
add eax, edi
sar eax
ret
.cfi_endproc
.LFE23:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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
mov eax, DWORD PTR -4[rbp]
add eax, 1
imul eax, DWORD PTR -4[rbp]
mov edx, eax
shr edx, 31
add eax, edx
sar eax
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size func0, .-func0
.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:
|
eval/problem10/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB39:
.cfi_startproc
endbr64
test esi, esi
jle .L9
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov ebp, esi
push rbx
.cfi_def_cfa_offset 24
.cfi_offset 3, -24
mov rbx, rdi
movsx rdi, esi
sal rdi, 2
sub rsp, 8
.cfi_def_cfa_offset 32
call malloc@PLT
mov r8, rax
test rax, rax
je .L2
mov edx, DWORD PTR [rbx]
lea esi, -1[rbp]
xor eax, eax
sal rsi, 2
mov ecx, edx
jmp .L4
.p2align 4,,10
.p2align 3
.L14:
mov ecx, DWORD PTR 4[rbx+rax]
add rax, 4
.L4:
cmp edx, ecx
cmovl edx, ecx
mov DWORD PTR [r8+rax], edx
cmp rax, rsi
jne .L14
add rsp, 8
.cfi_remember_state
.cfi_def_cfa_offset 24
mov rax, r8
pop rbx
.cfi_def_cfa_offset 16
pop rbp
.cfi_def_cfa_offset 8
ret
.L2:
.cfi_restore_state
add rsp, 8
.cfi_def_cfa_offset 24
xor r8d, r8d
mov rax, r8
pop rbx
.cfi_def_cfa_offset 16
pop rbp
.cfi_def_cfa_offset 8
ret
.p2align 4,,10
.p2align 3
.L9:
.cfi_restore 3
.cfi_restore 6
xor r8d, r8d
mov rax, r8
ret
.cfi_endproc
.LFE39:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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
cmp DWORD PTR -28[rbp], 0
jg .L2
mov eax, 0
jmp .L3
.L2:
mov eax, DWORD PTR -28[rbp]
cdqe
sal rax, 2
mov rdi, rax
call malloc@PLT
mov QWORD PTR -8[rbp], rax
cmp QWORD PTR -8[rbp], 0
jne .L4
mov eax, 0
jmp .L3
.L4:
mov rax, QWORD PTR -24[rbp]
mov eax, DWORD PTR [rax]
mov DWORD PTR -16[rbp], eax
mov DWORD PTR -12[rbp], 0
jmp .L5
.L7:
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]
cmp DWORD PTR -16[rbp], eax
jge .L6
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 -16[rbp], eax
.L6:
mov eax, DWORD PTR -12[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -8[rbp]
add rdx, rax
mov eax, DWORD PTR -16[rbp]
mov DWORD PTR [rdx], eax
add DWORD PTR -12[rbp], 1
.L5:
mov eax, DWORD PTR -12[rbp]
cmp eax, DWORD PTR -28[rbp]
jl .L7
mov rax, QWORD PTR -8[rbp]
.L3:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size func0, .-func0
.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:
|
eval/problem56/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB23:
.cfi_startproc
endbr64
sub rsp, 4024
.cfi_def_cfa_offset 4032
movsx r8, edi
mov ecx, 500
mov rax, QWORD PTR fs:40
mov QWORD PTR 4008[rsp], rax
xor eax, eax
mov rdi, rsp
rep stosq
mov DWORD PTR 4[rsp], 1
cmp r8d, 1
jle .L2
lea edx, -2[r8]
lea rax, 8[rsp]
lea rsi, [rax+rdx*4]
mov edx, 1
jmp .L3
.p2align 4,,10
.p2align 3
.L7:
mov ecx, DWORD PTR -4[rax]
add rax, 4
.L3:
add edx, ecx
mov DWORD PTR [rax], edx
cmp rax, rsi
jne .L7
.L2:
mov eax, DWORD PTR [rsp+r8*4]
mov rdi, QWORD PTR 4008[rsp]
sub rdi, QWORD PTR fs:40
jne .L8
add rsp, 4024
.cfi_remember_state
.cfi_def_cfa_offset 8
ret
.L8:
.cfi_restore_state
call __stack_chk_fail@PLT
.cfi_endproc
.LFE23:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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, 4048
mov DWORD PTR -4036[rbp], edi
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
lea rdx, -4016[rbp]
mov eax, 0
mov ecx, 500
mov rdi, rdx
rep stosq
mov DWORD PTR -4016[rbp], 0
mov DWORD PTR -4012[rbp], 1
mov DWORD PTR -4020[rbp], 2
jmp .L2
.L3:
mov eax, DWORD PTR -4020[rbp]
sub eax, 1
cdqe
mov edx, DWORD PTR -4016[rbp+rax*4]
mov eax, DWORD PTR -4020[rbp]
sub eax, 2
cdqe
mov eax, DWORD PTR -4016[rbp+rax*4]
add edx, eax
mov eax, DWORD PTR -4020[rbp]
cdqe
mov DWORD PTR -4016[rbp+rax*4], edx
add DWORD PTR -4020[rbp], 1
.L2:
mov eax, DWORD PTR -4020[rbp]
cmp eax, DWORD PTR -4036[rbp]
jle .L3
mov eax, DWORD PTR -4036[rbp]
cdqe
mov eax, DWORD PTR -4016[rbp+rax*4]
mov rsi, QWORD PTR -8[rbp]
sub rsi, QWORD PTR fs:40
je .L5
call __stack_chk_fail@PLT
.L5:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size func0, .-func0
.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:
|
eval/problem11/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB50:
.cfi_startproc
endbr64
push r15
.cfi_def_cfa_offset 16
.cfi_offset 15, -16
push r14
.cfi_def_cfa_offset 24
.cfi_offset 14, -24
push r13
.cfi_def_cfa_offset 32
.cfi_offset 13, -32
mov r13, rdi
push r12
.cfi_def_cfa_offset 40
.cfi_offset 12, -40
push rbp
.cfi_def_cfa_offset 48
.cfi_offset 6, -48
push rbx
.cfi_def_cfa_offset 56
.cfi_offset 3, -56
sub rsp, 24
.cfi_def_cfa_offset 80
call strlen@PLT
lea ebx, [rax+rax]
mov r12, rax
mov r15d, eax
lea edi, 1[rbx]
movsx rdi, edi
call malloc@PLT
mov r8, rax
test rax, rax
je .L1
movsx r14, r12d
test r12d, r12d
jle .L8
xor ebp, ebp
mov edx, r12d
lea edi, -1[r12]
mov rax, r13
sub edx, ebp
mov r10d, r12d
movsx rdi, edi
mov ecx, edx
sar ecx
je .L6
.p2align 4,,10
.p2align 3
.L9:
lea r9, 1[rax]
sub ecx, 1
lea rdx, 0[r13+rdi]
add rcx, r9
jmp .L5
.p2align 4,,10
.p2align 3
.L25:
add rax, 1
sub rdx, 1
cmp rax, rcx
je .L6
.L5:
movzx esi, BYTE PTR [rdx]
cmp BYTE PTR [rax], sil
je .L25
add ebp, 1
cmp r15d, ebp
je .L26
mov edx, r12d
mov rax, r9
sub edx, ebp
mov ecx, edx
sar ecx
jne .L9
.p2align 4,,10
.p2align 3
.L6:
mov rdi, r8
mov rdx, r14
mov rsi, r13
call strncpy@PLT
mov r8, rax
test ebp, ebp
je .L12
movsx rdx, ebp
add r14, r8
lea rcx, -2[r13+rdx]
lea rax, -1[r13+rdx]
lea edx, -1[rbp]
sub rcx, rdx
.p2align 4,,10
.p2align 3
.L7:
movzx edx, BYTE PTR [rax]
sub rax, 1
add r14, 1
mov BYTE PTR -1[r14], dl
cmp rax, rcx
jne .L7
.L12:
lea eax, 0[rbp+r12]
cdqe
mov BYTE PTR [r8+rax], 0
.L1:
add rsp, 24
.cfi_remember_state
.cfi_def_cfa_offset 56
mov rax, r8
pop rbx
.cfi_def_cfa_offset 48
pop rbp
.cfi_def_cfa_offset 40
pop r12
.cfi_def_cfa_offset 32
pop r13
.cfi_def_cfa_offset 24
pop r14
.cfi_def_cfa_offset 16
pop r15
.cfi_def_cfa_offset 8
ret
.L26:
.cfi_restore_state
mov rdx, r14
mov rsi, r13
mov rdi, r8
mov DWORD PTR 12[rsp], r10d
call strncpy@PLT
mov r10d, DWORD PTR 12[rsp]
lea rsi, -2[r13+r14]
mov r8, rax
lea rax, -1[r13+r14]
lea ecx, -1[r10]
lea rdx, [r8+r14]
sub rsi, rcx
.p2align 4,,10
.p2align 3
.L10:
movzx ecx, BYTE PTR [rax]
sub rax, 1
add rdx, 1
mov BYTE PTR -1[rdx], cl
cmp rsi, rax
jne .L10
.L14:
movsx rbx, ebx
mov BYTE PTR [r8+rbx], 0
jmp .L1
.L8:
mov rdx, r14
mov rsi, r13
mov rdi, rax
call strncpy@PLT
mov r8, rax
jmp .L14
.cfi_endproc
.LFE50:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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 QWORD PTR -40[rbp], rdi
mov rax, QWORD PTR -40[rbp]
mov rdi, rax
call strlen@PLT
mov DWORD PTR -12[rbp], eax
mov eax, DWORD PTR -12[rbp]
add eax, eax
add eax, 1
cdqe
mov rdi, rax
call malloc@PLT
mov QWORD PTR -8[rbp], rax
cmp QWORD PTR -8[rbp], 0
jne .L2
mov eax, 0
jmp .L3
.L2:
mov DWORD PTR -24[rbp], 0
jmp .L4
.L12:
mov DWORD PTR -16[rbp], 1
mov DWORD PTR -20[rbp], 0
jmp .L5
.L8:
mov edx, DWORD PTR -24[rbp]
mov eax, DWORD PTR -20[rbp]
add eax, edx
movsx rdx, eax
mov rax, QWORD PTR -40[rbp]
add rax, rdx
movzx edx, BYTE PTR [rax]
mov eax, DWORD PTR -12[rbp]
sub eax, 1
sub eax, DWORD PTR -20[rbp]
movsx rcx, eax
mov rax, QWORD PTR -40[rbp]
add rax, rcx
movzx eax, BYTE PTR [rax]
cmp dl, al
je .L6
mov DWORD PTR -16[rbp], 0
jmp .L7
.L6:
add DWORD PTR -20[rbp], 1
.L5:
mov eax, DWORD PTR -12[rbp]
sub eax, DWORD PTR -24[rbp]
mov edx, eax
shr edx, 31
add eax, edx
sar eax
cmp DWORD PTR -20[rbp], eax
jl .L8
.L7:
cmp DWORD PTR -16[rbp], 0
je .L9
mov eax, DWORD PTR -12[rbp]
movsx rdx, eax
mov rcx, QWORD PTR -40[rbp]
mov rax, QWORD PTR -8[rbp]
mov rsi, rcx
mov rdi, rax
call strncpy@PLT
mov DWORD PTR -20[rbp], 0
jmp .L10
.L11:
mov eax, DWORD PTR -24[rbp]
sub eax, DWORD PTR -20[rbp]
cdqe
lea rdx, -1[rax]
mov rax, QWORD PTR -40[rbp]
add rax, rdx
mov ecx, DWORD PTR -12[rbp]
mov edx, DWORD PTR -20[rbp]
add edx, ecx
movsx rcx, edx
mov rdx, QWORD PTR -8[rbp]
add rdx, rcx
movzx eax, BYTE PTR [rax]
mov BYTE PTR [rdx], al
add DWORD PTR -20[rbp], 1
.L10:
mov eax, DWORD PTR -20[rbp]
cmp eax, DWORD PTR -24[rbp]
jl .L11
mov edx, DWORD PTR -12[rbp]
mov eax, DWORD PTR -24[rbp]
add eax, edx
movsx rdx, eax
mov rax, QWORD PTR -8[rbp]
add rax, rdx
mov BYTE PTR [rax], 0
mov rax, QWORD PTR -8[rbp]
jmp .L3
.L9:
add DWORD PTR -24[rbp], 1
.L4:
mov eax, DWORD PTR -24[rbp]
cmp eax, DWORD PTR -12[rbp]
jl .L12
mov eax, DWORD PTR -12[rbp]
movsx rdx, eax
mov rcx, QWORD PTR -40[rbp]
mov rax, QWORD PTR -8[rbp]
mov rsi, rcx
mov rdi, rax
call strncpy@PLT
mov DWORD PTR -20[rbp], 0
jmp .L13
.L14:
mov eax, DWORD PTR -12[rbp]
sub eax, DWORD PTR -20[rbp]
cdqe
lea rdx, -1[rax]
mov rax, QWORD PTR -40[rbp]
add rax, rdx
mov ecx, DWORD PTR -12[rbp]
mov edx, DWORD PTR -20[rbp]
add edx, ecx
movsx rcx, edx
mov rdx, QWORD PTR -8[rbp]
add rdx, rcx
movzx eax, BYTE PTR [rax]
mov BYTE PTR [rdx], al
add DWORD PTR -20[rbp], 1
.L13:
mov eax, DWORD PTR -20[rbp]
cmp eax, DWORD PTR -12[rbp]
jl .L14
mov eax, DWORD PTR -12[rbp]
add eax, eax
movsx rdx, eax
mov rax, QWORD PTR -8[rbp]
add rax, rdx
mov BYTE PTR [rax], 0
mov rax, QWORD PTR -8[rbp]
.L3:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size func0, .-func0
.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:
|
eval/problem5/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB23:
.cfi_startproc
endbr64
pxor xmm4, xmm4
cvtsi2ss xmm4, esi
test esi, esi
jle .L6
lea eax, -1[rsi]
pxor xmm1, xmm1
lea rdx, 4[rdi+rax*4]
mov rax, rdi
.p2align 4,,10
.p2align 3
.L3:
addss xmm1, DWORD PTR [rax]
add rax, 4
cmp rdx, rax
jne .L3
divss xmm1, xmm4
pxor xmm2, xmm2
movss xmm3, DWORD PTR .LC1[rip]
.p2align 4,,10
.p2align 3
.L5:
movss xmm0, DWORD PTR [rdi]
add rdi, 4
subss xmm0, xmm1
andps xmm0, xmm3
addss xmm2, xmm0
cmp rdx, rdi
jne .L5
divss xmm2, xmm4
movaps xmm0, xmm2
ret
.p2align 4,,10
.p2align 3
.L6:
pxor xmm2, xmm2
divss xmm2, xmm4
movaps xmm0, xmm2
ret
.cfi_endproc
.LFE23:
.size func0, .-func0
.section .rodata.cst16,"aM",@progbits,16
.align 16
.LC1:
.long 2147483647
.long 0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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
pxor xmm0, xmm0
movss DWORD PTR -16[rbp], xmm0
mov DWORD PTR -8[rbp], 0
mov DWORD PTR -8[rbp], 0
jmp .L2
.L3:
mov eax, DWORD PTR -8[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -24[rbp]
add rax, rdx
movss xmm0, DWORD PTR [rax]
movss xmm1, DWORD PTR -16[rbp]
addss xmm0, xmm1
movss DWORD PTR -16[rbp], xmm0
add DWORD PTR -8[rbp], 1
.L2:
mov eax, DWORD PTR -8[rbp]
cmp eax, DWORD PTR -28[rbp]
jl .L3
pxor xmm1, xmm1
cvtsi2ss xmm1, DWORD PTR -28[rbp]
movss xmm0, DWORD PTR -16[rbp]
divss xmm0, xmm1
movss DWORD PTR -4[rbp], xmm0
pxor xmm0, xmm0
movss DWORD PTR -12[rbp], xmm0
mov DWORD PTR -8[rbp], 0
jmp .L4
.L5:
mov eax, DWORD PTR -8[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -24[rbp]
add rax, rdx
movss xmm0, DWORD PTR [rax]
subss xmm0, DWORD PTR -4[rbp]
movss xmm1, DWORD PTR .LC1[rip]
andps xmm0, xmm1
movss xmm1, DWORD PTR -12[rbp]
addss xmm0, xmm1
movss DWORD PTR -12[rbp], xmm0
add DWORD PTR -8[rbp], 1
.L4:
mov eax, DWORD PTR -8[rbp]
cmp eax, DWORD PTR -28[rbp]
jl .L5
pxor xmm1, xmm1
cvtsi2ss xmm1, DWORD PTR -28[rbp]
movss xmm0, DWORD PTR -12[rbp]
divss xmm0, xmm1
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size func0, .-func0
.section .rodata
.align 16
.LC1:
.long 2147483647
.long 0
.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:
|
eval/problem15/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB50:
.cfi_startproc
endbr64
push r15
.cfi_def_cfa_offset 16
.cfi_offset 15, -16
push r14
.cfi_def_cfa_offset 24
.cfi_offset 14, -24
push r13
.cfi_def_cfa_offset 32
.cfi_offset 13, -32
push r12
.cfi_def_cfa_offset 40
.cfi_offset 12, -40
push rbp
.cfi_def_cfa_offset 48
.cfi_offset 6, -48
mov rbp, rdi
push rbx
.cfi_def_cfa_offset 56
.cfi_offset 3, -56
sub rsp, 24
.cfi_def_cfa_offset 80
mov QWORD PTR [rsp], rsi
call strlen@PLT
movsx rdi, eax
mov rbx, rax
mov QWORD PTR 8[rsp], rax
sal rdi, 3
call malloc@PLT
lea edi, 1[rbx]
movsx rdi, edi
mov r12, rax
call malloc@PLT
mov BYTE PTR [rax], 0
mov r15, rax
test ebx, ebx
jle .L2
lea r13d, -1[rbx]
xor ebx, ebx
.p2align 4,,10
.p2align 3
.L3:
mov rdi, r15
call strlen@PLT
mov rdi, r15
lea rsi, 2[rax]
mov r14, rax
call realloc@PLT
mov r15, rax
movzx eax, BYTE PTR 0[rbp+rbx]
mov BYTE PTR 1[r15+r14], 0
mov rdi, r15
mov BYTE PTR [r15+r14], al
call strlen@PLT
lea r14, 1[rax]
mov rdi, r14
call malloc@PLT
mov rdx, r14
mov rsi, r15
mov rdi, rax
mov QWORD PTR [r12+rbx*8], rax
call memcpy@PLT
mov rax, rbx
add rbx, 1
cmp r13, rax
jne .L3
.L2:
mov rdi, r15
call free@PLT
mov rax, QWORD PTR [rsp]
mov ecx, DWORD PTR 8[rsp]
mov DWORD PTR [rax], ecx
add rsp, 24
.cfi_def_cfa_offset 56
mov rax, r12
pop rbx
.cfi_def_cfa_offset 48
pop rbp
.cfi_def_cfa_offset 40
pop r12
.cfi_def_cfa_offset 32
pop r13
.cfi_def_cfa_offset 24
pop r14
.cfi_def_cfa_offset 16
pop r15
.cfi_def_cfa_offset 8
ret
.cfi_endproc
.LFE50:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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 QWORD PTR -56[rbp], rdi
mov QWORD PTR -64[rbp], rsi
mov rax, QWORD PTR -56[rbp]
mov rdi, rax
call strlen@PLT
mov DWORD PTR -44[rbp], eax
mov eax, DWORD PTR -44[rbp]
cdqe
sal rax, 3
mov rdi, rax
call malloc@PLT
mov QWORD PTR -32[rbp], rax
mov eax, DWORD PTR -44[rbp]
add eax, 1
cdqe
mov rdi, rax
call malloc@PLT
mov QWORD PTR -40[rbp], rax
mov rax, QWORD PTR -40[rbp]
mov BYTE PTR [rax], 0
mov DWORD PTR -48[rbp], 0
jmp .L2
.L3:
mov rax, QWORD PTR -40[rbp]
mov rdi, rax
call strlen@PLT
mov QWORD PTR -24[rbp], rax
mov rax, QWORD PTR -24[rbp]
lea rdx, 2[rax]
mov rax, QWORD PTR -40[rbp]
mov rsi, rdx
mov rdi, rax
call realloc@PLT
mov QWORD PTR -40[rbp], rax
mov eax, DWORD PTR -48[rbp]
movsx rdx, eax
mov rax, QWORD PTR -56[rbp]
add rax, rdx
mov rcx, QWORD PTR -40[rbp]
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]
lea rdx, 1[rax]
mov rax, QWORD PTR -40[rbp]
add rax, rdx
mov BYTE PTR [rax], 0
mov rax, QWORD PTR -40[rbp]
mov rdi, rax
call strlen@PLT
add rax, 1
mov edx, DWORD PTR -48[rbp]
movsx rdx, edx
lea rcx, 0[0+rdx*8]
mov rdx, QWORD PTR -32[rbp]
lea rbx, [rcx+rdx]
mov rdi, rax
call malloc@PLT
mov QWORD PTR [rbx], rax
mov eax, DWORD PTR -48[rbp]
cdqe
lea rdx, 0[0+rax*8]
mov rax, QWORD PTR -32[rbp]
add rax, rdx
mov rax, QWORD PTR [rax]
mov rdx, QWORD PTR -40[rbp]
mov rsi, rdx
mov rdi, rax
call strcpy@PLT
add DWORD PTR -48[rbp], 1
.L2:
mov eax, DWORD PTR -48[rbp]
cmp eax, DWORD PTR -44[rbp]
jl .L3
mov rax, QWORD PTR -40[rbp]
mov rdi, rax
call free@PLT
mov rax, QWORD PTR -64[rbp]
mov edx, DWORD PTR -44[rbp]
mov DWORD PTR [rax], edx
mov rax, QWORD PTR -32[rbp]
mov rbx, QWORD PTR -8[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size func0, .-func0
.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:
|
eval/problem41/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB23:
.cfi_startproc
endbr64
test esi, esi
jle .L9
lea r9d, 1[rsi]
mov r8d, 2
.L7:
cmp r8, r9
je .L9
mov rcx, r8
cmp esi, ecx
jle .L3
.L16:
mov edx, DWORD PTR -4[rdi+rcx*4]
mov rax, rcx
add edx, DWORD PTR -8[rdi+r8*4]
jmp .L4
.p2align 4,,10
.p2align 3
.L15:
add rax, 1
cmp esi, eax
jle .L14
.L4:
mov r10d, edx
add r10d, DWORD PTR [rdi+rax*4]
jne .L15
mov eax, 1
ret
.p2align 4,,10
.p2align 3
.L14:
add rcx, 1
cmp esi, ecx
jg .L16
.L3:
add r8, 1
jmp .L7
.L9:
xor eax, eax
ret
.cfi_endproc
.LFE23:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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 -12[rbp], 0
jmp .L2
.L9:
mov eax, DWORD PTR -12[rbp]
add eax, 1
mov DWORD PTR -8[rbp], eax
jmp .L3
.L8:
mov eax, DWORD PTR -8[rbp]
add eax, 1
mov DWORD PTR -4[rbp], eax
jmp .L4
.L7:
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 -8[rbp]
cdqe
lea rcx, 0[0+rax*4]
mov rax, QWORD PTR -24[rbp]
add rax, rcx
mov eax, DWORD PTR [rax]
add edx, eax
mov eax, DWORD PTR -4[rbp]
cdqe
lea rcx, 0[0+rax*4]
mov rax, QWORD PTR -24[rbp]
add rax, rcx
mov eax, DWORD PTR [rax]
add eax, edx
test eax, eax
jne .L5
mov eax, 1
jmp .L6
.L5:
add DWORD PTR -4[rbp], 1
.L4:
mov eax, DWORD PTR -4[rbp]
cmp eax, DWORD PTR -28[rbp]
jl .L7
add DWORD PTR -8[rbp], 1
.L3:
mov eax, DWORD PTR -8[rbp]
cmp eax, DWORD PTR -28[rbp]
jl .L8
add DWORD PTR -12[rbp], 1
.L2:
mov eax, DWORD PTR -12[rbp]
cmp eax, DWORD PTR -28[rbp]
jl .L9
mov eax, 0
.L6:
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size func0, .-func0
.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:
|
eval/problem107/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB39:
.cfi_startproc
endbr64
push rbx
.cfi_def_cfa_offset 16
.cfi_offset 3, -16
movsx rdi, edi
mov rbx, rdi
sal rdi, 2
call malloc@PLT
mov r8, rax
test ebx, ebx
jle .L1
lea edi, 1[rbx]
mov eax, 1
mov ecx, 1
xor edx, edx
.p2align 4,,10
.p2align 3
.L5:
imul ecx, eax
add edx, eax
test al, 1
mov esi, ecx
cmovne esi, edx
mov DWORD PTR -4[r8+rax*4], esi
add rax, 1
cmp rax, rdi
jne .L5
.L1:
mov rax, r8
pop rbx
.cfi_def_cfa_offset 8
ret
.cfi_endproc
.LFE39:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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 eax, DWORD PTR -36[rbp]
cdqe
sal rax, 2
mov rdi, rax
call malloc@PLT
mov QWORD PTR -8[rbp], rax
mov DWORD PTR -20[rbp], 0
mov DWORD PTR -16[rbp], 1
mov DWORD PTR -12[rbp], 1
jmp .L2
.L5:
mov eax, DWORD PTR -12[rbp]
add DWORD PTR -20[rbp], eax
mov eax, DWORD PTR -16[rbp]
imul eax, DWORD PTR -12[rbp]
mov DWORD PTR -16[rbp], eax
mov eax, DWORD PTR -12[rbp]
and eax, 1
test eax, eax
jne .L3
mov eax, DWORD PTR -12[rbp]
cdqe
sal rax, 2
lea rdx, -4[rax]
mov rax, QWORD PTR -8[rbp]
add rdx, rax
mov eax, DWORD PTR -16[rbp]
mov DWORD PTR [rdx], eax
jmp .L4
.L3:
mov eax, DWORD PTR -12[rbp]
cdqe
sal rax, 2
lea rdx, -4[rax]
mov rax, QWORD PTR -8[rbp]
add rdx, rax
mov eax, DWORD PTR -20[rbp]
mov DWORD PTR [rdx], eax
.L4:
add DWORD PTR -12[rbp], 1
.L2:
mov eax, DWORD PTR -12[rbp]
cmp eax, DWORD PTR -36[rbp]
jle .L5
mov rax, QWORD PTR -8[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size func0, .-func0
.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:
|
eval/problem110/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB23:
.cfi_startproc
endbr64
mov r8, rdi
mov eax, 1
test esi, esi
je .L1
cmp esi, 1
jle .L8
lea edx, -2[rsi]
mov rax, rdi
lea rdi, 4[rdi+rdx*4]
xor edx, edx
.p2align 4,,10
.p2align 3
.L5:
mov ecx, DWORD PTR [rax]
cmp DWORD PTR 4[rax], ecx
setl cl
add rax, 4
movzx ecx, cl
add edx, ecx
cmp rax, rdi
jne .L5
.L3:
movsx rsi, esi
mov eax, DWORD PTR [r8]
cmp DWORD PTR -4[r8+rsi*4], eax
setg al
movzx eax, al
add edx, eax
cmp edx, 1
setle al
.L1:
ret
.p2align 4,,10
.p2align 3
.L8:
xor edx, edx
jmp .L3
.cfi_endproc
.LFE23:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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 -8[rbp], 0
cmp DWORD PTR -28[rbp], 0
jne .L2
mov eax, 1
jmp .L3
.L2:
mov DWORD PTR -4[rbp], 1
jmp .L4
.L6:
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
sal rax, 2
lea rcx, -4[rax]
mov rax, QWORD PTR -24[rbp]
add rax, rcx
mov eax, DWORD PTR [rax]
cmp edx, eax
jge .L5
add DWORD PTR -8[rbp], 1
.L5:
add DWORD PTR -4[rbp], 1
.L4:
mov eax, DWORD PTR -4[rbp]
cmp eax, DWORD PTR -28[rbp]
jl .L6
mov eax, DWORD PTR -28[rbp]
cdqe
sal rax, 2
lea rdx, -4[rax]
mov rax, QWORD PTR -24[rbp]
add rax, rdx
mov edx, DWORD PTR [rax]
mov rax, QWORD PTR -24[rbp]
mov eax, DWORD PTR [rax]
cmp edx, eax
jle .L7
add DWORD PTR -8[rbp], 1
.L7:
cmp DWORD PTR -8[rbp], 1
jg .L8
mov eax, 1
jmp .L3
.L8:
mov eax, 0
.L3:
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size func0, .-func0
.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:
|
eval/problem119/code.c | .file "code.c"
.intel_syntax noprefix
.text
.section .rodata.str1.1,"aMS",@progbits,1
.LC0:
.string "AEIOUaeiou"
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB34:
.cfi_startproc
endbr64
push r13
.cfi_def_cfa_offset 16
.cfi_offset 13, -16
push r12
.cfi_def_cfa_offset 24
.cfi_offset 12, -24
push rbp
.cfi_def_cfa_offset 32
.cfi_offset 6, -32
mov rbp, rdi
push rbx
.cfi_def_cfa_offset 40
.cfi_offset 3, -40
sub rsp, 8
.cfi_def_cfa_offset 48
call strlen@PLT
mov rdx, rax
sub eax, 2
test eax, eax
jle .L2
cdqe
lea r12, .LC0[rip]
lea r13, -1[rbp+rax]
lea rbx, 0[rbp+rax]
lea eax, -3[rdx]
sub r13, rax
jmp .L5
.p2align 4,,10
.p2align 3
.L3:
sub rbx, 1
cmp rbx, r13
je .L2
.L5:
movsx esi, BYTE PTR [rbx]
mov rdi, r12
mov ebp, esi
call strchr@PLT
test rax, rax
je .L3
movsx esi, BYTE PTR 1[rbx]
mov rdi, r12
call strchr@PLT
test rax, rax
jne .L3
movsx esi, BYTE PTR -1[rbx]
mov rdi, r12
call strchr@PLT
test rax, rax
jne .L3
mov BYTE PTR out.0[rip], bpl
jmp .L4
.p2align 4,,10
.p2align 3
.L2:
mov BYTE PTR out.0[rip], 0
.L4:
add rsp, 8
.cfi_def_cfa_offset 40
lea rax, out.0[rip]
pop rbx
.cfi_def_cfa_offset 32
pop rbp
.cfi_def_cfa_offset 24
pop r12
.cfi_def_cfa_offset 16
pop r13
.cfi_def_cfa_offset 8
ret
.cfi_endproc
.LFE34:
.size func0, .-func0
.local out.0
.comm out.0,2,1
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.section .rodata
.LC0:
.string "AEIOUaeiou"
.text
.globl func0
.type func0, @function
func0:
.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, 48
mov QWORD PTR -40[rbp], rdi
lea rax, .LC0[rip]
mov QWORD PTR -16[rbp], rax
mov rax, QWORD PTR -40[rbp]
mov rdi, rax
call strlen@PLT
mov QWORD PTR -8[rbp], rax
mov rax, QWORD PTR -8[rbp]
sub eax, 2
mov DWORD PTR -20[rbp], eax
jmp .L2
.L5:
mov eax, DWORD PTR -20[rbp]
movsx rdx, eax
mov rax, QWORD PTR -40[rbp]
add rax, rdx
movzx eax, BYTE PTR [rax]
movsx edx, al
mov rax, QWORD PTR -16[rbp]
mov esi, edx
mov rdi, rax
call strchr@PLT
test rax, rax
je .L3
mov eax, DWORD PTR -20[rbp]
cdqe
lea rdx, 1[rax]
mov rax, QWORD PTR -40[rbp]
add rax, rdx
movzx eax, BYTE PTR [rax]
movsx edx, al
mov rax, QWORD PTR -16[rbp]
mov esi, edx
mov rdi, rax
call strchr@PLT
test rax, rax
jne .L3
mov eax, DWORD PTR -20[rbp]
cdqe
lea rdx, -1[rax]
mov rax, QWORD PTR -40[rbp]
add rax, rdx
movzx eax, BYTE PTR [rax]
movsx edx, al
mov rax, QWORD PTR -16[rbp]
mov esi, edx
mov rdi, rax
call strchr@PLT
test rax, rax
jne .L3
mov eax, DWORD PTR -20[rbp]
movsx rdx, eax
mov rax, QWORD PTR -40[rbp]
add rax, rdx
movzx eax, BYTE PTR [rax]
mov BYTE PTR out.0[rip], al
lea rax, out.0[rip]
jmp .L4
.L3:
sub DWORD PTR -20[rbp], 1
.L2:
cmp DWORD PTR -20[rbp], 0
jg .L5
mov BYTE PTR out.0[rip], 0
lea rax, out.0[rip]
.L4:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size func0, .-func0
.local out.0
.comm out.0,2,1
.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:
|
eval/problem153/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB39:
.cfi_startproc
endbr64
mov r9, rsi
mov r8, rdi
mov rsi, rdx
test ecx, ecx
jle .L1
movsx rdi, ecx
xor eax, eax
.p2align 4,,10
.p2align 3
.L3:
mov edx, DWORD PTR [r8+rax*4]
sub edx, DWORD PTR [r9+rax*4]
mov ecx, edx
sar ecx, 31
xor edx, ecx
mov DWORD PTR [rsi+rax*4], edx
sub DWORD PTR [rsi+rax*4], ecx
add rax, 1
cmp rdi, rax
jne .L3
.L1:
ret
.cfi_endproc
.LFE39:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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 QWORD PTR -32[rbp], rsi
mov QWORD PTR -40[rbp], rdx
mov DWORD PTR -44[rbp], ecx
mov DWORD PTR -4[rbp], 0
jmp .L2
.L3:
mov eax, DWORD PTR -4[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -24[rbp]
add rax, rdx
mov eax, DWORD PTR [rax]
mov edx, DWORD PTR -4[rbp]
movsx rdx, edx
lea rcx, 0[0+rdx*4]
mov rdx, QWORD PTR -32[rbp]
add rdx, rcx
mov edx, DWORD PTR [rdx]
sub eax, edx
mov edx, DWORD PTR -4[rbp]
movsx rdx, edx
lea rcx, 0[0+rdx*4]
mov rdx, QWORD PTR -40[rbp]
add rdx, rcx
mov ecx, eax
sar ecx, 31
xor eax, ecx
sub eax, ecx
mov DWORD PTR [rdx], eax
add DWORD PTR -4[rbp], 1
.L2:
mov eax, DWORD PTR -4[rbp]
cmp eax, DWORD PTR -44[rbp]
jl .L3
nop
nop
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size func0, .-func0
.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:
|
eval/problem136/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB23:
.cfi_startproc
endbr64
cmp esi, 1
jle .L5
movsx rsi, esi
mov eax, 1
mov r8d, -1
.p2align 4,,10
.p2align 3
.L4:
mov edx, DWORD PTR -4[rdi+rax*4]
cmp DWORD PTR [rdi+rax*4], edx
cmovl r8d, eax
add rax, 1
cmp rax, rsi
jne .L4
mov eax, r8d
ret
.p2align 4,,10
.p2align 3
.L5:
mov r8d, -1
mov eax, r8d
ret
.cfi_endproc
.LFE23:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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 -8[rbp], -1
mov DWORD PTR -4[rbp], 1
jmp .L2
.L4:
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
sal rax, 2
lea rcx, -4[rax]
mov rax, QWORD PTR -24[rbp]
add rax, rcx
mov eax, DWORD PTR [rax]
cmp edx, eax
jge .L3
mov eax, DWORD PTR -4[rbp]
mov DWORD PTR -8[rbp], eax
.L3:
add DWORD PTR -4[rbp], 1
.L2:
mov eax, DWORD PTR -4[rbp]
cmp eax, DWORD PTR -28[rbp]
jl .L4
mov eax, DWORD PTR -8[rbp]
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size func0, .-func0
.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:
|
eval/problem151/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB23:
.cfi_startproc
endbr64
mov r10d, esi
xor esi, esi
cmp edi, 1
mov r9d, edx
setg sil
cmp edi, 3
jle .L2
mov ecx, 2
xor r8d, r8d
.p2align 4,,10
.p2align 3
.L4:
mov eax, edi
cdq
idiv ecx
test edx, edx
cmove esi, r8d
add ecx, 1
mov eax, ecx
imul eax, ecx
cmp eax, edi
jle .L4
.L2:
test esi, esi
cmovne r9d, r10d
mov eax, r9d
ret
.cfi_endproc
.LFE23:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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 DWORD PTR -24[rbp], esi
mov DWORD PTR -28[rbp], edx
mov DWORD PTR -8[rbp], 1
cmp DWORD PTR -20[rbp], 1
jg .L2
mov DWORD PTR -8[rbp], 0
.L2:
mov DWORD PTR -4[rbp], 2
jmp .L3
.L5:
mov eax, DWORD PTR -20[rbp]
cdq
idiv DWORD PTR -4[rbp]
mov eax, edx
test eax, eax
jne .L4
mov DWORD PTR -8[rbp], 0
.L4:
add DWORD PTR -4[rbp], 1
.L3:
mov eax, DWORD PTR -4[rbp]
imul eax, eax
cmp DWORD PTR -20[rbp], eax
jge .L5
cmp DWORD PTR -8[rbp], 0
je .L6
mov eax, DWORD PTR -24[rbp]
jmp .L7
.L6:
mov eax, DWORD PTR -28[rbp]
.L7:
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size func0, .-func0
.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:
|
eval/problem158/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB23:
.cfi_startproc
endbr64
movaps xmm3, xmm0
movsd xmm4, QWORD PTR .LC1[rip]
movss xmm5, DWORD PTR .LC0[rip]
mov eax, 1
mulss xmm3, xmm0
mulss xmm1, xmm1
mulss xmm2, xmm2
movaps xmm0, xmm3
addss xmm0, xmm1
subss xmm0, xmm2
andps xmm0, xmm5
cvtss2sd xmm0, xmm0
comisd xmm4, xmm0
ja .L1
movaps xmm0, xmm3
addss xmm0, xmm2
subss xmm0, xmm1
andps xmm0, xmm5
cvtss2sd xmm0, xmm0
comisd xmm4, xmm0
ja .L1
addss xmm1, xmm2
xor eax, eax
subss xmm1, xmm3
andps xmm1, xmm5
cvtss2sd xmm1, xmm1
comisd xmm4, xmm1
seta al
.L1:
ret
.cfi_endproc
.LFE23:
.size func0, .-func0
.section .rodata.cst16,"aM",@progbits,16
.align 16
.LC0:
.long 2147483647
.long 0
.long 0
.long 0
.section .rodata.cst8,"aM",@progbits,8
.align 8
.LC1:
.long -350469331
.long 1058682594
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
movss DWORD PTR -4[rbp], xmm0
movss DWORD PTR -8[rbp], xmm1
movss DWORD PTR -12[rbp], xmm2
movss xmm0, DWORD PTR -4[rbp]
movaps xmm1, xmm0
mulss xmm1, xmm0
movss xmm0, DWORD PTR -8[rbp]
mulss xmm0, xmm0
addss xmm1, xmm0
movss xmm0, DWORD PTR -12[rbp]
movaps xmm2, xmm0
mulss xmm2, xmm0
subss xmm1, xmm2
movaps xmm0, xmm1
movss xmm1, DWORD PTR .LC0[rip]
andps xmm0, xmm1
pxor xmm1, xmm1
cvtss2sd xmm1, xmm0
movsd xmm0, QWORD PTR .LC1[rip]
comisd xmm0, xmm1
ja .L2
movss xmm0, DWORD PTR -4[rbp]
movaps xmm1, xmm0
mulss xmm1, xmm0
movss xmm0, DWORD PTR -12[rbp]
mulss xmm0, xmm0
addss xmm1, xmm0
movss xmm0, DWORD PTR -8[rbp]
movaps xmm2, xmm0
mulss xmm2, xmm0
subss xmm1, xmm2
movaps xmm0, xmm1
movss xmm1, DWORD PTR .LC0[rip]
andps xmm0, xmm1
pxor xmm1, xmm1
cvtss2sd xmm1, xmm0
movsd xmm0, QWORD PTR .LC1[rip]
comisd xmm0, xmm1
ja .L2
movss xmm0, DWORD PTR -8[rbp]
movaps xmm1, xmm0
mulss xmm1, xmm0
movss xmm0, DWORD PTR -12[rbp]
mulss xmm0, xmm0
addss xmm1, xmm0
movss xmm0, DWORD PTR -4[rbp]
movaps xmm2, xmm0
mulss xmm2, xmm0
subss xmm1, xmm2
movaps xmm0, xmm1
movss xmm1, DWORD PTR .LC0[rip]
andps xmm0, xmm1
pxor xmm1, xmm1
cvtss2sd xmm1, xmm0
movsd xmm0, QWORD PTR .LC1[rip]
comisd xmm0, xmm1
jbe .L6
.L2:
mov eax, 1
jmp .L5
.L6:
mov eax, 0
.L5:
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size func0, .-func0
.section .rodata
.align 16
.LC0:
.long 2147483647
.long 0
.long 0
.long 0
.align 8
.LC1:
.long -350469331
.long 1058682594
.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:
|
eval/problem6/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB39:
.cfi_startproc
endbr64
test esi, esi
jle .L2
push r12
.cfi_def_cfa_offset 16
.cfi_offset 12, -16
mov r12d, edx
push rbp
.cfi_def_cfa_offset 24
.cfi_offset 6, -24
mov rbp, rdi
lea edi, -1[rsi+rsi]
push rbx
.cfi_def_cfa_offset 32
.cfi_offset 3, -32
mov ebx, esi
mov DWORD PTR [rcx], edi
movsx rdi, edi
sal rdi, 2
call malloc@PLT
mov r8, rax
mov eax, DWORD PTR 0[rbp]
mov DWORD PTR [r8], eax
cmp ebx, 1
je .L1
movsx rsi, ebx
mov eax, 1
.p2align 4,,10
.p2align 3
.L4:
mov edx, DWORD PTR 0[rbp+rax*4]
mov DWORD PTR -4[r8+rax*8], r12d
mov DWORD PTR [r8+rax*8], edx
add rax, 1
cmp rsi, rax
jne .L4
.L1:
pop rbx
.cfi_def_cfa_offset 24
mov rax, r8
pop rbp
.cfi_def_cfa_offset 16
pop r12
.cfi_def_cfa_offset 8
ret
.p2align 4,,10
.p2align 3
.L2:
.cfi_restore 3
.cfi_restore 6
.cfi_restore 12
mov DWORD PTR [rcx], 0
xor edi, edi
jmp malloc@PLT
.cfi_endproc
.LFE39:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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 QWORD PTR -24[rbp], rdi
mov DWORD PTR -28[rbp], esi
mov DWORD PTR -32[rbp], edx
mov QWORD PTR -40[rbp], rcx
cmp DWORD PTR -28[rbp], 0
jle .L2
mov eax, DWORD PTR -28[rbp]
add eax, eax
lea edx, -1[rax]
jmp .L3
.L2:
mov edx, 0
.L3:
mov rax, QWORD PTR -40[rbp]
mov DWORD PTR [rax], edx
mov rax, QWORD PTR -40[rbp]
mov eax, DWORD PTR [rax]
cdqe
sal rax, 2
mov rdi, rax
call malloc@PLT
mov QWORD PTR -8[rbp], rax
cmp DWORD PTR -28[rbp], 0
jle .L4
mov rax, QWORD PTR -24[rbp]
mov edx, DWORD PTR [rax]
mov rax, QWORD PTR -8[rbp]
mov DWORD PTR [rax], edx
.L4:
mov DWORD PTR -16[rbp], 1
mov DWORD PTR -12[rbp], 1
jmp .L5
.L6:
mov eax, DWORD PTR -12[rbp]
lea edx, 1[rax]
mov DWORD PTR -12[rbp], edx
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -8[rbp]
add rdx, rax
mov eax, DWORD PTR -32[rbp]
mov DWORD PTR [rdx], eax
mov eax, DWORD PTR -16[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -24[rbp]
lea rcx, [rdx+rax]
mov eax, DWORD PTR -12[rbp]
lea edx, 1[rax]
mov DWORD PTR -12[rbp], edx
cdqe
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
add DWORD PTR -16[rbp], 1
.L5:
mov eax, DWORD PTR -16[rbp]
cmp eax, DWORD PTR -28[rbp]
jl .L6
mov rax, QWORD PTR -8[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size func0, .-func0
.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:
|
eval/problem106/code.c | .file "code.c"
.intel_syntax noprefix
.text
.section .rodata.str1.1,"aMS",@progbits,1
.LC0:
.string ""
.LC1:
.string "One"
.LC2:
.string "Two"
.LC3:
.string "Three"
.LC4:
.string "Four"
.LC5:
.string "Five"
.LC6:
.string "Six"
.LC7:
.string "Seven"
.LC8:
.string "Eight"
.LC9:
.string "Nine"
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB50:
.cfi_startproc
endbr64
push r13
.cfi_def_cfa_offset 16
.cfi_offset 13, -16
mov r13, rcx
push r12
.cfi_def_cfa_offset 24
.cfi_offset 12, -24
mov r12, rdx
push rbp
.cfi_def_cfa_offset 32
.cfi_offset 6, -32
mov rbp, rdi
push rbx
.cfi_def_cfa_offset 40
.cfi_offset 3, -40
lea ebx, -1[rsi]
sub rsp, 104
.cfi_def_cfa_offset 144
mov rax, QWORD PTR fs:40
mov QWORD PTR 88[rsp], rax
lea rax, .LC0[rip]
mov QWORD PTR [rsp], rax
lea rax, .LC1[rip]
mov QWORD PTR 8[rsp], rax
lea rax, .LC2[rip]
mov QWORD PTR 16[rsp], rax
lea rax, .LC3[rip]
mov QWORD PTR 24[rsp], rax
lea rax, .LC4[rip]
mov QWORD PTR 32[rsp], rax
lea rax, .LC5[rip]
mov QWORD PTR 40[rsp], rax
lea rax, .LC6[rip]
mov QWORD PTR 48[rsp], rax
lea rax, .LC7[rip]
mov QWORD PTR 56[rsp], rax
lea rax, .LC8[rip]
mov QWORD PTR 64[rsp], rax
lea rax, .LC9[rip]
mov QWORD PTR 72[rsp], rax
test ebx, ebx
jle .L2
mov edx, ebx
lea r8, 4[rdi]
.p2align 4,,10
.p2align 3
.L3:
sub edx, 1
mov rax, rbp
mov rdi, rdx
lea rsi, [r8+rdx*4]
.p2align 4,,10
.p2align 3
.L5:
mov edx, DWORD PTR [rax]
mov ecx, DWORD PTR 4[rax]
cmp edx, ecx
jle .L4
mov DWORD PTR [rax], ecx
mov DWORD PTR 4[rax], edx
.L4:
add rax, 4
cmp rsi, rax
jne .L5
mov edx, edi
test edi, edi
jne .L3
mov DWORD PTR 0[r13], 0
.L16:
movsx rbx, ebx
xor ecx, ecx
mov rax, rbx
.p2align 4,,10
.p2align 3
.L9:
mov edi, DWORD PTR 0[rbp+rax*4]
lea edx, -1[rdi]
cmp edx, 8
ja .L8
add ecx, 1
mov DWORD PTR 0[r13], ecx
.L8:
sub rax, 1
test eax, eax
jns .L9
movsx rcx, ecx
lea rdi, 0[0+rcx*8]
call malloc@PLT
mov esi, DWORD PTR 0[r13]
xor edx, edx
mov QWORD PTR [r12], rax
mov rdi, rax
jmp .L12
.p2align 4,,10
.p2align 3
.L14:
movsx rax, DWORD PTR 0[rbp+rbx*4]
lea ecx, -1[rax]
cmp ecx, 8
ja .L11
mov rax, QWORD PTR [rsp+rax*8]
movsx rcx, edx
add edx, 1
mov QWORD PTR [rdi+rcx*8], rax
.L11:
sub rbx, 1
test ebx, ebx
js .L1
.L12:
cmp esi, edx
jg .L14
.L1:
mov rax, QWORD PTR 88[rsp]
sub rax, QWORD PTR fs:40
jne .L24
add rsp, 104
.cfi_remember_state
.cfi_def_cfa_offset 40
pop rbx
.cfi_def_cfa_offset 32
pop rbp
.cfi_def_cfa_offset 24
pop r12
.cfi_def_cfa_offset 16
pop r13
.cfi_def_cfa_offset 8
ret
.L2:
.cfi_restore_state
mov DWORD PTR [rcx], 0
je .L16
xor edi, edi
call malloc@PLT
mov QWORD PTR [r12], rax
jmp .L1
.L24:
call __stack_chk_fail@PLT
.cfi_endproc
.LFE50:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.section .rodata
.LC0:
.string ""
.LC1:
.string "One"
.LC2:
.string "Two"
.LC3:
.string "Three"
.LC4:
.string "Four"
.LC5:
.string "Five"
.LC6:
.string "Six"
.LC7:
.string "Seven"
.LC8:
.string "Eight"
.LC9:
.string "Nine"
.text
.globl func0
.type func0, @function
func0:
.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, 144
mov QWORD PTR -120[rbp], rdi
mov DWORD PTR -124[rbp], esi
mov QWORD PTR -136[rbp], rdx
mov QWORD PTR -144[rbp], rcx
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
lea rax, .LC0[rip]
mov QWORD PTR -96[rbp], rax
lea rax, .LC1[rip]
mov QWORD PTR -88[rbp], rax
lea rax, .LC2[rip]
mov QWORD PTR -80[rbp], rax
lea rax, .LC3[rip]
mov QWORD PTR -72[rbp], rax
lea rax, .LC4[rip]
mov QWORD PTR -64[rbp], rax
lea rax, .LC5[rip]
mov QWORD PTR -56[rbp], rax
lea rax, .LC6[rip]
mov QWORD PTR -48[rbp], rax
lea rax, .LC7[rip]
mov QWORD PTR -40[rbp], rax
lea rax, .LC8[rip]
mov QWORD PTR -32[rbp], rax
lea rax, .LC9[rip]
mov QWORD PTR -24[rbp], rax
mov DWORD PTR -108[rbp], 0
jmp .L2
.L6:
mov DWORD PTR -104[rbp], 0
jmp .L3
.L5:
mov eax, DWORD PTR -104[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -120[rbp]
add rax, rdx
mov edx, DWORD PTR [rax]
mov eax, DWORD PTR -104[rbp]
cdqe
add rax, 1
lea rcx, 0[0+rax*4]
mov rax, QWORD PTR -120[rbp]
add rax, rcx
mov eax, DWORD PTR [rax]
cmp edx, eax
jle .L4
mov eax, DWORD PTR -104[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -120[rbp]
add rax, rdx
mov eax, DWORD PTR [rax]
mov DWORD PTR -100[rbp], eax
mov eax, DWORD PTR -104[rbp]
cdqe
add rax, 1
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -120[rbp]
add rax, rdx
mov edx, DWORD PTR -104[rbp]
movsx rdx, edx
lea rcx, 0[0+rdx*4]
mov rdx, QWORD PTR -120[rbp]
add rdx, rcx
mov eax, DWORD PTR [rax]
mov DWORD PTR [rdx], eax
mov eax, DWORD PTR -104[rbp]
cdqe
add rax, 1
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -120[rbp]
add rdx, rax
mov eax, DWORD PTR -100[rbp]
mov DWORD PTR [rdx], eax
.L4:
add DWORD PTR -104[rbp], 1
.L3:
mov eax, DWORD PTR -124[rbp]
sub eax, DWORD PTR -108[rbp]
sub eax, 1
cmp DWORD PTR -104[rbp], eax
jl .L5
add DWORD PTR -108[rbp], 1
.L2:
mov eax, DWORD PTR -124[rbp]
sub eax, 1
cmp DWORD PTR -108[rbp], eax
jl .L6
mov rax, QWORD PTR -144[rbp]
mov DWORD PTR [rax], 0
mov eax, DWORD PTR -124[rbp]
sub eax, 1
mov DWORD PTR -108[rbp], eax
jmp .L7
.L9:
mov eax, DWORD PTR -108[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -120[rbp]
add rax, rdx
mov eax, DWORD PTR [rax]
test eax, eax
jle .L8
mov eax, DWORD PTR -108[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -120[rbp]
add rax, rdx
mov eax, DWORD PTR [rax]
cmp eax, 9
jg .L8
mov rax, QWORD PTR -144[rbp]
mov eax, DWORD PTR [rax]
lea edx, 1[rax]
mov rax, QWORD PTR -144[rbp]
mov DWORD PTR [rax], edx
.L8:
sub DWORD PTR -108[rbp], 1
.L7:
cmp DWORD PTR -108[rbp], 0
jns .L9
mov rax, QWORD PTR -144[rbp]
mov eax, DWORD PTR [rax]
cdqe
sal rax, 3
mov rdi, rax
call malloc@PLT
mov rdx, rax
mov rax, QWORD PTR -136[rbp]
mov QWORD PTR [rax], rdx
mov eax, DWORD PTR -124[rbp]
sub eax, 1
mov DWORD PTR -108[rbp], eax
mov DWORD PTR -104[rbp], 0
jmp .L10
.L13:
mov eax, DWORD PTR -108[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -120[rbp]
add rax, rdx
mov eax, DWORD PTR [rax]
test eax, eax
jle .L11
mov eax, DWORD PTR -108[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -120[rbp]
add rax, rdx
mov eax, DWORD PTR [rax]
cmp eax, 9
jg .L11
mov eax, DWORD PTR -108[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -120[rbp]
add rax, rdx
mov ecx, DWORD PTR [rax]
mov rax, QWORD PTR -136[rbp]
mov rsi, QWORD PTR [rax]
mov eax, DWORD PTR -104[rbp]
lea edx, 1[rax]
mov DWORD PTR -104[rbp], edx
cdqe
sal rax, 3
lea rdx, [rsi+rax]
movsx rax, ecx
mov rax, QWORD PTR -96[rbp+rax*8]
mov QWORD PTR [rdx], rax
.L11:
sub DWORD PTR -108[rbp], 1
.L10:
cmp DWORD PTR -108[rbp], 0
js .L15
mov rax, QWORD PTR -144[rbp]
mov eax, DWORD PTR [rax]
cmp DWORD PTR -104[rbp], eax
jl .L13
.L15:
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
.LFE6:
.size func0, .-func0
.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:
|
eval/problem47/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB23:
.cfi_startproc
endbr64
sub rsp, 424
.cfi_def_cfa_offset 432
movsx r9, edi
mov rax, QWORD PTR fs:40
mov QWORD PTR 408[rsp], rax
xor eax, eax
mov QWORD PTR [rsp], 0
mov QWORD PTR 8[rsp], 2
cmp r9d, 3
jle .L2
lea eax, -4[r9]
lea rdx, 4[rsp]
xor edi, edi
xor esi, esi
lea r8, 8[rsp+rax*4]
mov ecx, 2
xor eax, eax
jmp .L3
.p2align 4,,10
.p2align 3
.L7:
mov eax, DWORD PTR 8[rdx]
mov ecx, DWORD PTR 4[rdx]
mov esi, DWORD PTR [rdx]
mov edi, DWORD PTR -4[rdx]
.L3:
add eax, ecx
add rdx, 4
add eax, esi
add eax, edi
mov DWORD PTR 8[rdx], eax
cmp rdx, r8
jne .L7
.L2:
mov eax, DWORD PTR [rsp+r9*4]
mov rcx, QWORD PTR 408[rsp]
sub rcx, QWORD PTR fs:40
jne .L8
add rsp, 424
.cfi_remember_state
.cfi_def_cfa_offset 8
ret
.L8:
.cfi_restore_state
call __stack_chk_fail@PLT
.cfi_endproc
.LFE23:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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, 448
mov DWORD PTR -436[rbp], edi
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
mov DWORD PTR -416[rbp], 0
mov DWORD PTR -412[rbp], 0
mov DWORD PTR -408[rbp], 2
mov DWORD PTR -404[rbp], 0
mov DWORD PTR -420[rbp], 4
jmp .L2
.L3:
mov eax, DWORD PTR -420[rbp]
sub eax, 1
cdqe
mov edx, DWORD PTR -416[rbp+rax*4]
mov eax, DWORD PTR -420[rbp]
sub eax, 2
cdqe
mov eax, DWORD PTR -416[rbp+rax*4]
add edx, eax
mov eax, DWORD PTR -420[rbp]
sub eax, 3
cdqe
mov eax, DWORD PTR -416[rbp+rax*4]
add edx, eax
mov eax, DWORD PTR -420[rbp]
sub eax, 4
cdqe
mov eax, DWORD PTR -416[rbp+rax*4]
add edx, eax
mov eax, DWORD PTR -420[rbp]
cdqe
mov DWORD PTR -416[rbp+rax*4], edx
add DWORD PTR -420[rbp], 1
.L2:
mov eax, DWORD PTR -420[rbp]
cmp eax, DWORD PTR -436[rbp]
jle .L3
mov eax, DWORD PTR -436[rbp]
cdqe
mov eax, DWORD PTR -416[rbp+rax*4]
mov rcx, QWORD PTR -8[rbp]
sub rcx, QWORD PTR fs:40
je .L5
call __stack_chk_fail@PLT
.L5:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size func0, .-func0
.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:
|
eval/problem92/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB36:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
push rbx
.cfi_def_cfa_offset 24
.cfi_offset 3, -24
sub rsp, 8
.cfi_def_cfa_offset 32
movzx ebx, BYTE PTR [rdi]
test bl, bl
je .L9
mov rbp, rdi
call __ctype_b_loc@PLT
lea rdi, 1[rbp]
xor r8d, r8d
xor esi, esi
mov r9, QWORD PTR [rax]
mov edx, 1
mov r11d, 1
movabs r10, -9223301659520663552
jmp .L7
.p2align 4,,10
.p2align 3
.L19:
cmp esi, 1
sbb r8d, -1
test al, al
jne .L10
.L8:
xor esi, esi
cmp bl, 63
ja .L6
mov rax, r10
mov ecx, ebx
shr rax, cl
test al, 1
cmovne edx, r11d
.L6:
movzx ebx, BYTE PTR [rdi]
add rdi, 1
test bl, bl
je .L1
.L7:
cmp bl, 73
movsx rcx, bl
sete al
and eax, edx
test BYTE PTR 1[r9+rcx*2], 32
jne .L19
xor edx, edx
test al, al
je .L8
mov esi, 1
.L20:
movzx ebx, BYTE PTR [rdi]
add rdi, 1
test bl, bl
jne .L7
.L1:
add rsp, 8
.cfi_remember_state
.cfi_def_cfa_offset 24
mov eax, r8d
pop rbx
.cfi_def_cfa_offset 16
pop rbp
.cfi_def_cfa_offset 8
ret
.p2align 4,,10
.p2align 3
.L10:
.cfi_restore_state
mov edx, 1
mov esi, 1
jmp .L20
.p2align 4,,10
.p2align 3
.L9:
add rsp, 8
.cfi_def_cfa_offset 24
xor r8d, r8d
mov eax, r8d
pop rbx
.cfi_def_cfa_offset 16
pop rbp
.cfi_def_cfa_offset 8
ret
.cfi_endproc
.LFE36:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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 QWORD PTR -24[rbp], rdi
mov DWORD PTR -16[rbp], 1
mov DWORD PTR -12[rbp], 0
mov DWORD PTR -8[rbp], 0
mov DWORD PTR -4[rbp], 0
jmp .L2
.L9:
call __ctype_b_loc@PLT
mov rdx, QWORD PTR [rax]
mov eax, DWORD PTR -4[rbp]
movsx rcx, eax
mov rax, QWORD PTR -24[rbp]
add rax, rcx
movzx eax, BYTE PTR [rax]
movsx rax, al
add rax, rax
add rax, rdx
movzx eax, WORD PTR [rax]
movzx eax, ax
and eax, 8192
test eax, eax
je .L3
cmp DWORD PTR -12[rbp], 0
je .L3
mov DWORD PTR -12[rbp], 0
add DWORD PTR -8[rbp], 1
.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, 73
jne .L4
cmp DWORD PTR -16[rbp], 0
je .L4
mov DWORD PTR -12[rbp], 1
jmp .L5
.L4:
call __ctype_b_loc@PLT
mov rdx, QWORD PTR [rax]
mov eax, DWORD PTR -4[rbp]
movsx rcx, eax
mov rax, QWORD PTR -24[rbp]
add rax, rcx
movzx eax, BYTE PTR [rax]
movsx rax, al
add rax, rax
add rax, rdx
movzx eax, WORD PTR [rax]
movzx eax, ax
and eax, 8192
test eax, eax
jne .L5
mov DWORD PTR -12[rbp], 0
.L5:
call __ctype_b_loc@PLT
mov rdx, QWORD PTR [rax]
mov eax, DWORD PTR -4[rbp]
movsx rcx, eax
mov rax, QWORD PTR -24[rbp]
add rax, rcx
movzx eax, BYTE PTR [rax]
movsx rax, al
add rax, rax
add rax, rdx
movzx eax, WORD PTR [rax]
movzx eax, ax
and eax, 8192
test eax, eax
jne .L6
mov DWORD PTR -16[rbp], 0
.L6:
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, 46
je .L7
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, 63
je .L7
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, 33
jne .L8
.L7:
mov DWORD PTR -16[rbp], 1
.L8:
add DWORD PTR -4[rbp], 1
.L2:
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 .L9
mov eax, DWORD PTR -8[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size func0, .-func0
.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:
|
eval/problem52/code.c | .file "code.c"
.intel_syntax noprefix
.text
.section .rodata.str1.1,"aMS",@progbits,1
.LC0:
.string "AEIOUaeiou"
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB50:
.cfi_startproc
endbr64
push r13
.cfi_def_cfa_offset 16
.cfi_offset 13, -16
push r12
.cfi_def_cfa_offset 24
.cfi_offset 12, -24
mov r12, rdi
push rbp
.cfi_def_cfa_offset 32
.cfi_offset 6, -32
push rbx
.cfi_def_cfa_offset 40
.cfi_offset 3, -40
sub rsp, 8
.cfi_def_cfa_offset 48
movzx ebx, BYTE PTR [rdi]
test bl, bl
je .L2
mov rbp, rdi
lea r13, .LC0[rip]
jmp .L4
.p2align 4,,10
.p2align 3
.L3:
movzx ebx, BYTE PTR 1[rbp]
add rbp, 1
test bl, bl
je .L2
.L4:
movsx esi, bl
mov rdi, r13
call strchr@PLT
test rax, rax
jne .L3
add rbp, 1
mov BYTE PTR [r12], bl
add r12, 1
movzx ebx, BYTE PTR 0[rbp]
test bl, bl
jne .L4
.L2:
mov BYTE PTR [r12], 0
add rsp, 8
.cfi_def_cfa_offset 40
pop rbx
.cfi_def_cfa_offset 32
pop rbp
.cfi_def_cfa_offset 24
pop r12
.cfi_def_cfa_offset 16
pop r13
.cfi_def_cfa_offset 8
ret
.cfi_endproc
.LFE50:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.section .rodata
.LC0:
.string "AEIOUaeiou"
.text
.globl func0
.type func0, @function
func0:
.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
lea rax, .LC0[rip]
mov QWORD PTR -8[rbp], rax
mov rax, QWORD PTR -24[rbp]
mov QWORD PTR -16[rbp], rax
jmp .L2
.L4:
mov rax, QWORD PTR -24[rbp]
movzx eax, BYTE PTR [rax]
movsx edx, al
mov rax, QWORD PTR -8[rbp]
mov esi, edx
mov rdi, rax
call strchr@PLT
test rax, rax
jne .L3
mov rax, QWORD PTR -16[rbp]
lea rdx, 1[rax]
mov QWORD PTR -16[rbp], rdx
mov rdx, QWORD PTR -24[rbp]
movzx edx, BYTE PTR [rdx]
mov BYTE PTR [rax], dl
.L3:
add QWORD PTR -24[rbp], 1
.L2:
mov rax, QWORD PTR -24[rbp]
movzx eax, BYTE PTR [rax]
test al, al
jne .L4
mov rax, QWORD PTR -16[rbp]
mov BYTE PTR [rax], 0
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size func0, .-func0
.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:
|
eval/problem24/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB23:
.cfi_startproc
endbr64
cmp BYTE PTR [rdi], 0
je .L4
mov eax, 1
.p2align 4,,10
.p2align 3
.L3:
mov r8d, eax
add rax, 1
cmp BYTE PTR -1[rdi+rax], 0
jne .L3
mov eax, r8d
ret
.p2align 4,,10
.p2align 3
.L4:
xor r8d, r8d
mov eax, r8d
ret
.cfi_endproc
.LFE23:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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 -4[rbp], 0
jmp .L2
.L3:
add DWORD PTR -4[rbp], 1
.L2:
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 .L3
mov eax, DWORD PTR -4[rbp]
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size func0, .-func0
.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:
|
eval/problem71/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB39:
.cfi_startproc
endbr64
push r13
.cfi_def_cfa_offset 16
.cfi_offset 13, -16
mov r10, rdi
mov r11, rdx
push r12
.cfi_def_cfa_offset 24
.cfi_offset 12, -24
lea r12d, -1[rsi]
push rbp
.cfi_def_cfa_offset 32
.cfi_offset 6, -32
mov r9d, r12d
push rbx
.cfi_def_cfa_offset 40
.cfi_offset 3, -40
test r12d, r12d
jle .L2
mov ebx, esi
lea r13, 8[rdi]
lea rsi, 4[rdi]
mov r8d, 1
lea ebp, -2[rbx]
add rbp, 2
.p2align 4,,10
.p2align 3
.L4:
cmp ebx, r8d
jle .L8
mov eax, r12d
sub eax, r8d
lea rax, -1[r8+rax]
lea rdi, 0[r13+rax*4]
mov rax, rsi
.p2align 4,,10
.p2align 3
.L7:
mov edx, DWORD PTR -4[rsi]
mov ecx, DWORD PTR [rax]
cmp edx, ecx
jle .L6
mov DWORD PTR -4[rsi], ecx
mov DWORD PTR [rax], edx
.L6:
add rax, 4
cmp rdi, rax
jne .L7
.L8:
add r8, 1
add rsi, 4
cmp rbp, r8
jne .L4
.L5:
xor eax, eax
xor ecx, ecx
jmp .L9
.p2align 4,,10
.p2align 3
.L10:
movsx rsi, r9d
add rax, 1
sub r9d, 1
add ecx, 2
mov esi, DWORD PTR [r10+rsi*4]
mov DWORD PTR 4[r11+rdx], esi
cmp r9d, eax
jl .L1
.L9:
movsx rdx, ecx
mov edi, DWORD PTR [r10+rax*4]
lea r8d, 1[rcx]
sal rdx, 2
lea rsi, [r11+rdx]
mov DWORD PTR [rsi], edi
cmp r9d, eax
jne .L10
add rax, 1
mov ecx, r8d
cmp r9d, eax
jge .L9
.L1:
pop rbx
.cfi_remember_state
.cfi_def_cfa_offset 32
pop rbp
.cfi_def_cfa_offset 24
pop r12
.cfi_def_cfa_offset 16
pop r13
.cfi_def_cfa_offset 8
ret
.L2:
.cfi_restore_state
test r12d, r12d
je .L5
pop rbx
.cfi_def_cfa_offset 32
pop rbp
.cfi_def_cfa_offset 24
pop r12
.cfi_def_cfa_offset 16
pop r13
.cfi_def_cfa_offset 8
ret
.cfi_endproc
.LFE39:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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 -40[rbp], rdi
mov DWORD PTR -44[rbp], esi
mov QWORD PTR -56[rbp], rdx
mov DWORD PTR -24[rbp], 0
jmp .L2
.L6:
mov eax, DWORD PTR -24[rbp]
add eax, 1
mov DWORD PTR -20[rbp], eax
jmp .L3
.L5:
mov eax, DWORD PTR -24[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -40[rbp]
add rax, rdx
mov edx, DWORD PTR [rax]
mov eax, DWORD PTR -20[rbp]
cdqe
lea rcx, 0[0+rax*4]
mov rax, QWORD PTR -40[rbp]
add rax, rcx
mov eax, DWORD PTR [rax]
cmp edx, eax
jle .L4
mov eax, DWORD PTR -24[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -40[rbp]
add rax, rdx
mov eax, DWORD PTR [rax]
mov DWORD PTR -4[rbp], eax
mov eax, DWORD PTR -20[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -40[rbp]
add rax, rdx
mov edx, DWORD PTR -24[rbp]
movsx rdx, edx
lea rcx, 0[0+rdx*4]
mov rdx, QWORD PTR -40[rbp]
add rdx, rcx
mov eax, DWORD PTR [rax]
mov DWORD PTR [rdx], eax
mov eax, DWORD PTR -20[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -40[rbp]
add rdx, rax
mov eax, DWORD PTR -4[rbp]
mov DWORD PTR [rdx], eax
.L4:
add DWORD PTR -20[rbp], 1
.L3:
mov eax, DWORD PTR -20[rbp]
cmp eax, DWORD PTR -44[rbp]
jl .L5
add DWORD PTR -24[rbp], 1
.L2:
mov eax, DWORD PTR -44[rbp]
sub eax, 1
cmp DWORD PTR -24[rbp], eax
jl .L6
mov DWORD PTR -16[rbp], 0
mov eax, DWORD PTR -44[rbp]
sub eax, 1
mov DWORD PTR -12[rbp], eax
mov DWORD PTR -8[rbp], 0
jmp .L7
.L9:
mov eax, DWORD PTR -16[rbp]
cmp eax, DWORD PTR -12[rbp]
jne .L8
mov eax, DWORD PTR -16[rbp]
lea edx, 1[rax]
mov DWORD PTR -16[rbp], edx
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -40[rbp]
lea rcx, [rdx+rax]
mov eax, DWORD PTR -8[rbp]
lea edx, 1[rax]
mov DWORD PTR -8[rbp], edx
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -56[rbp]
add rdx, rax
mov eax, DWORD PTR [rcx]
mov DWORD PTR [rdx], eax
jmp .L7
.L8:
mov eax, DWORD PTR -16[rbp]
lea edx, 1[rax]
mov DWORD PTR -16[rbp], edx
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -40[rbp]
lea rcx, [rdx+rax]
mov eax, DWORD PTR -8[rbp]
lea edx, 1[rax]
mov DWORD PTR -8[rbp], edx
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -56[rbp]
add rdx, rax
mov eax, DWORD PTR [rcx]
mov DWORD PTR [rdx], eax
mov eax, DWORD PTR -12[rbp]
lea edx, -1[rax]
mov DWORD PTR -12[rbp], edx
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -40[rbp]
lea rcx, [rdx+rax]
mov eax, DWORD PTR -8[rbp]
lea edx, 1[rax]
mov DWORD PTR -8[rbp], edx
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -56[rbp]
add rdx, rax
mov eax, DWORD PTR [rcx]
mov DWORD PTR [rdx], eax
.L7:
mov eax, DWORD PTR -16[rbp]
cmp eax, DWORD PTR -12[rbp]
jle .L9
nop
nop
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size func0, .-func0
.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:
|
eval/problem27/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB39:
.cfi_startproc
endbr64
push r15
.cfi_def_cfa_offset 16
.cfi_offset 15, -16
mov r15, rdi
push r14
.cfi_def_cfa_offset 24
.cfi_offset 14, -24
push r13
.cfi_def_cfa_offset 32
.cfi_offset 13, -32
movsx r13, esi
push r12
.cfi_def_cfa_offset 40
.cfi_offset 12, -40
lea rdi, 0[0+r13*4]
mov r14, r13
push rbp
.cfi_def_cfa_offset 48
.cfi_offset 6, -48
push rbx
.cfi_def_cfa_offset 56
.cfi_offset 3, -56
mov rbx, rdx
sub rsp, 8
.cfi_def_cfa_offset 64
call malloc@PLT
mov rdi, r13
mov esi, 4
mov r12, rax
call calloc@PLT
mov rdi, r13
mov esi, 4
mov rbp, rax
call calloc@PLT
mov r13, rax
test r14d, r14d
jle .L14
lea eax, -1[r14]
mov rdi, r15
mov rsi, r15
xor r8d, r8d
lea r9, 4[r15+rax*4]
xor r10d, r10d
lea r11, 4[r13]
lea r14, 4[rbp]
.p2align 4,,10
.p2align 3
.L9:
mov edx, DWORD PTR [rsi]
test r8d, r8d
je .L3
lea ecx, -1[r8]
mov rax, r13
lea rcx, [r11+rcx*4]
jmp .L5
.p2align 4,,10
.p2align 3
.L32:
add rax, 4
cmp rax, rcx
je .L3
.L5:
cmp DWORD PTR [rax], edx
jne .L32
add rsi, 4
cmp rsi, r9
jne .L9
.L35:
lea eax, -1[r8]
xor esi, esi
lea rcx, [r11+rax*4]
.p2align 4,,10
.p2align 3
.L13:
mov edx, DWORD PTR [rdi]
test r8d, r8d
je .L10
mov rax, r13
jmp .L12
.p2align 4,,10
.p2align 3
.L33:
add rax, 4
cmp rcx, rax
je .L10
.L12:
cmp DWORD PTR [rax], edx
jne .L33
add rdi, 4
cmp rdi, r9
jne .L13
.L2:
mov DWORD PTR [rbx], esi
mov rdi, rbp
call free@PLT
mov rdi, r13
call free@PLT
add rsp, 8
.cfi_remember_state
.cfi_def_cfa_offset 56
mov rax, r12
pop rbx
.cfi_def_cfa_offset 48
pop rbp
.cfi_def_cfa_offset 40
pop r12
.cfi_def_cfa_offset 32
pop r13
.cfi_def_cfa_offset 24
pop r14
.cfi_def_cfa_offset 16
pop r15
.cfi_def_cfa_offset 8
ret
.p2align 4,,10
.p2align 3
.L3:
.cfi_restore_state
test r10d, r10d
je .L6
lea ecx, -1[r10]
mov rax, rbp
lea rcx, [r14+rcx*4]
jmp .L8
.p2align 4,,10
.p2align 3
.L34:
add rax, 4
cmp rax, rcx
je .L6
.L8:
cmp DWORD PTR [rax], edx
jne .L34
movsx rax, r8d
add rsi, 4
add r8d, 1
mov DWORD PTR 0[r13+rax*4], edx
cmp rsi, r9
jne .L9
jmp .L35
.p2align 4,,10
.p2align 3
.L10:
movsx rax, esi
add rdi, 4
add esi, 1
mov DWORD PTR [r12+rax*4], edx
cmp rdi, r9
jne .L13
jmp .L2
.p2align 4,,10
.p2align 3
.L6:
movsx rax, r10d
add rsi, 4
add r10d, 1
mov DWORD PTR 0[rbp+rax*4], edx
cmp rsi, r9
jne .L9
jmp .L35
.L14:
xor esi, esi
jmp .L2
.cfi_endproc
.LFE39:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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, 112
mov QWORD PTR -88[rbp], rdi
mov DWORD PTR -92[rbp], esi
mov QWORD PTR -104[rbp], rdx
mov eax, DWORD PTR -92[rbp]
cdqe
sal rax, 2
mov rdi, rax
call malloc@PLT
mov QWORD PTR -24[rbp], rax
mov eax, DWORD PTR -92[rbp]
cdqe
mov esi, 4
mov rdi, rax
call calloc@PLT
mov QWORD PTR -16[rbp], rax
mov eax, DWORD PTR -92[rbp]
cdqe
mov esi, 4
mov rdi, rax
call calloc@PLT
mov QWORD PTR -8[rbp], rax
mov DWORD PTR -76[rbp], 0
mov DWORD PTR -72[rbp], 0
mov DWORD PTR -68[rbp], 0
mov DWORD PTR -64[rbp], 0
jmp .L2
.L14:
mov eax, DWORD PTR -64[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -88[rbp]
add rax, rdx
mov eax, DWORD PTR [rax]
mov DWORD PTR -28[rbp], eax
mov DWORD PTR -60[rbp], 0
mov DWORD PTR -56[rbp], 0
jmp .L3
.L6:
mov eax, DWORD PTR -56[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -8[rbp]
add rax, rdx
mov eax, DWORD PTR [rax]
cmp DWORD PTR -28[rbp], eax
jne .L4
mov DWORD PTR -60[rbp], 1
jmp .L5
.L4:
add DWORD PTR -56[rbp], 1
.L3:
mov eax, DWORD PTR -56[rbp]
cmp eax, DWORD PTR -72[rbp]
jl .L6
.L5:
cmp DWORD PTR -60[rbp], 0
jne .L23
mov DWORD PTR -52[rbp], 0
mov DWORD PTR -48[rbp], 0
jmp .L9
.L12:
mov eax, DWORD PTR -48[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -16[rbp]
add rax, rdx
mov eax, DWORD PTR [rax]
cmp DWORD PTR -28[rbp], eax
jne .L10
mov DWORD PTR -52[rbp], 1
jmp .L11
.L10:
add DWORD PTR -48[rbp], 1
.L9:
mov eax, DWORD PTR -48[rbp]
cmp eax, DWORD PTR -76[rbp]
jl .L12
.L11:
cmp DWORD PTR -52[rbp], 0
je .L13
mov eax, DWORD PTR -72[rbp]
lea edx, 1[rax]
mov DWORD PTR -72[rbp], edx
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -8[rbp]
add rdx, rax
mov eax, DWORD PTR -28[rbp]
mov DWORD PTR [rdx], eax
jmp .L8
.L13:
mov eax, DWORD PTR -76[rbp]
lea edx, 1[rax]
mov DWORD PTR -76[rbp], edx
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -16[rbp]
add rdx, rax
mov eax, DWORD PTR -28[rbp]
mov DWORD PTR [rdx], eax
jmp .L8
.L23:
nop
.L8:
add DWORD PTR -64[rbp], 1
.L2:
mov eax, DWORD PTR -64[rbp]
cmp eax, DWORD PTR -92[rbp]
jl .L14
mov DWORD PTR -44[rbp], 0
jmp .L15
.L21:
mov eax, DWORD PTR -44[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -88[rbp]
add rax, rdx
mov eax, DWORD PTR [rax]
mov DWORD PTR -32[rbp], eax
mov DWORD PTR -40[rbp], 0
mov DWORD PTR -36[rbp], 0
jmp .L16
.L19:
mov eax, DWORD PTR -36[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -8[rbp]
add rax, rdx
mov eax, DWORD PTR [rax]
cmp DWORD PTR -32[rbp], eax
jne .L17
mov DWORD PTR -40[rbp], 1
jmp .L18
.L17:
add DWORD PTR -36[rbp], 1
.L16:
mov eax, DWORD PTR -36[rbp]
cmp eax, DWORD PTR -72[rbp]
jl .L19
.L18:
cmp DWORD PTR -40[rbp], 0
jne .L20
mov eax, DWORD PTR -68[rbp]
lea edx, 1[rax]
mov DWORD PTR -68[rbp], edx
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -24[rbp]
add rdx, rax
mov eax, DWORD PTR -32[rbp]
mov DWORD PTR [rdx], eax
.L20:
add DWORD PTR -44[rbp], 1
.L15:
mov eax, DWORD PTR -44[rbp]
cmp eax, DWORD PTR -92[rbp]
jl .L21
mov rax, QWORD PTR -104[rbp]
mov edx, DWORD PTR -68[rbp]
mov DWORD PTR [rax], edx
mov rax, QWORD PTR -16[rbp]
mov rdi, rax
call free@PLT
mov rax, QWORD PTR -8[rbp]
mov rdi, rax
call free@PLT
mov rax, QWORD PTR -24[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size func0, .-func0
.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:
|
eval/problem36/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB23:
.cfi_startproc
endbr64
test esi, esi
jle .L6
lea eax, -1[rsi]
movss xmm0, DWORD PTR .LC0[rip]
lea rax, 4[rdi+rax*4]
.p2align 4,,10
.p2align 3
.L5:
movss xmm1, DWORD PTR [rdi]
add rdi, 4
maxss xmm1, xmm0
movaps xmm0, xmm1
cmp rdi, rax
jne .L5
ret
.p2align 4,,10
.p2align 3
.L6:
movss xmm0, DWORD PTR .LC0[rip]
ret
.cfi_endproc
.LFE23:
.size func0, .-func0
.section .rodata.cst4,"aM",@progbits,4
.align 4
.LC0:
.long -971227136
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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
movss xmm0, DWORD PTR .LC0[rip]
movss DWORD PTR -8[rbp], xmm0
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
movss xmm0, DWORD PTR [rax]
comiss xmm0, DWORD PTR -8[rbp]
jbe .L3
mov eax, DWORD PTR -4[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -24[rbp]
add rax, rdx
movss xmm0, DWORD PTR [rax]
movss DWORD PTR -8[rbp], xmm0
.L3:
add DWORD PTR -4[rbp], 1
.L2:
mov eax, DWORD PTR -4[rbp]
cmp eax, DWORD PTR -28[rbp]
jl .L5
movss xmm0, DWORD PTR -8[rbp]
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size func0, .-func0
.section .rodata
.align 4
.LC0:
.long -971227136
.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:
|
eval/problem31/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB39:
.cfi_startproc
endbr64
push r12
.cfi_def_cfa_offset 16
.cfi_offset 12, -16
push rbp
.cfi_def_cfa_offset 24
.cfi_offset 6, -24
mov rbp, rdx
push rbx
.cfi_def_cfa_offset 32
.cfi_offset 3, -32
mov rbx, rdi
movsx rdi, esi
mov r12, rdi
sal rdi, 2
call malloc@PLT
mov DWORD PTR 0[rbp], 0
mov r8, rax
test r12d, r12d
jle .L1
lea eax, -1[r12]
mov rdi, rbx
pxor xmm1, xmm1
lea rcx, 4[rbx+rax*4]
.p2align 4,,10
.p2align 3
.L5:
movss xmm0, DWORD PTR [rdi]
comiss xmm0, xmm1
jbe .L3
movsx rax, DWORD PTR 0[rbp]
lea edx, 1[rax]
movss DWORD PTR [r8+rax*4], xmm0
mov DWORD PTR 0[rbp], edx
.L3:
add rdi, 4
cmp rdi, rcx
jne .L5
.L1:
pop rbx
.cfi_def_cfa_offset 24
mov rax, r8
pop rbp
.cfi_def_cfa_offset 16
pop r12
.cfi_def_cfa_offset 8
ret
.cfi_endproc
.LFE39:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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 QWORD PTR -24[rbp], rdi
mov DWORD PTR -28[rbp], esi
mov QWORD PTR -40[rbp], rdx
mov eax, DWORD PTR -28[rbp]
cdqe
sal rax, 2
mov rdi, rax
call malloc@PLT
mov QWORD PTR -8[rbp], rax
mov rax, QWORD PTR -40[rbp]
mov DWORD PTR [rax], 0
mov DWORD PTR -12[rbp], 0
jmp .L2
.L5:
mov eax, DWORD PTR -12[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -24[rbp]
add rax, rdx
movss xmm0, DWORD PTR [rax]
pxor xmm1, xmm1
comiss xmm0, xmm1
jbe .L3
mov eax, DWORD PTR -12[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -24[rbp]
lea rsi, [rdx+rax]
mov rax, QWORD PTR -40[rbp]
mov eax, DWORD PTR [rax]
lea ecx, 1[rax]
mov rdx, QWORD PTR -40[rbp]
mov DWORD PTR [rdx], ecx
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -8[rbp]
add rax, rdx
movss xmm0, DWORD PTR [rsi]
movss DWORD PTR [rax], xmm0
.L3:
add DWORD PTR -12[rbp], 1
.L2:
mov eax, DWORD PTR -12[rbp]
cmp eax, DWORD PTR -28[rbp]
jl .L5
mov rax, QWORD PTR -8[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size func0, .-func0
.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:
|
eval/problem86/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB23:
.cfi_startproc
endbr64
cmp esi, 1
jle .L5
sub esi, 2
lea rax, 4[rdi]
xor r8d, r8d
shr esi
lea rsi, 12[rdi+rsi*8]
.p2align 4,,10
.p2align 3
.L4:
mov edx, DWORD PTR [rax]
lea ecx, [r8+rdx]
and edx, 1
cmove r8d, ecx
add rax, 8
cmp rax, rsi
jne .L4
mov eax, r8d
ret
.p2align 4,,10
.p2align 3
.L5:
xor r8d, r8d
mov eax, r8d
ret
.cfi_endproc
.LFE23:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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 -8[rbp], 0
mov DWORD PTR -4[rbp], 0
jmp .L2
.L4:
mov eax, DWORD PTR -4[rbp]
add eax, eax
cdqe
add rax, 1
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -24[rbp]
add rax, rdx
mov eax, DWORD PTR [rax]
and eax, 1
test eax, eax
jne .L3
mov eax, DWORD PTR -4[rbp]
add eax, eax
cdqe
add rax, 1
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -24[rbp]
add rax, rdx
mov eax, DWORD PTR [rax]
add DWORD PTR -8[rbp], eax
.L3:
add DWORD PTR -4[rbp], 1
.L2:
mov eax, DWORD PTR -4[rbp]
add eax, eax
add eax, 1
cmp DWORD PTR -28[rbp], eax
jg .L4
mov eax, DWORD PTR -8[rbp]
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size func0, .-func0
.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:
|
eval/problem77/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB23:
.cfi_startproc
endbr64
test edi, edi
jle .L6
cmp edi, 1
je .L8
xor edx, edx
mov eax, 1
.p2align 4,,10
.p2align 3
.L3:
imul eax, esi
add edx, 1
cmp edi, eax
jl .L6
cmp edx, 99
jg .L6
cmp edi, eax
jne .L3
.L8:
mov eax, 1
ret
.p2align 4,,10
.p2align 3
.L6:
xor eax, eax
ret
.cfi_endproc
.LFE23:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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 DWORD PTR -24[rbp], esi
mov DWORD PTR -8[rbp], 1
mov DWORD PTR -4[rbp], 0
jmp .L2
.L6:
mov eax, DWORD PTR -8[rbp]
cmp eax, DWORD PTR -20[rbp]
jne .L3
mov eax, 1
jmp .L4
.L3:
mov eax, DWORD PTR -8[rbp]
imul eax, DWORD PTR -24[rbp]
mov DWORD PTR -8[rbp], eax
add DWORD PTR -4[rbp], 1
.L2:
mov eax, DWORD PTR -8[rbp]
cmp eax, DWORD PTR -20[rbp]
jg .L5
cmp DWORD PTR -4[rbp], 99
jle .L6
.L5:
mov eax, 0
.L4:
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size func0, .-func0
.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:
|
eval/problem9/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB23:
.cfi_startproc
endbr64
mov r8, rdx
test esi, esi
jle .L4
lea eax, -1[rsi]
mov edx, 1
xor ecx, ecx
lea rsi, 4[rdi+rax*4]
.p2align 4,,10
.p2align 3
.L3:
mov eax, DWORD PTR [rdi]
add rdi, 4
imul edx, eax
add ecx, eax
cmp rdi, rsi
jne .L3
mov DWORD PTR [r8], ecx
mov DWORD PTR 4[r8], edx
ret
.p2align 4,,10
.p2align 3
.L4:
mov edx, 1
xor ecx, ecx
mov DWORD PTR [r8], ecx
mov DWORD PTR 4[r8], edx
ret
.cfi_endproc
.LFE23:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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 QWORD PTR -40[rbp], rdx
mov DWORD PTR -12[rbp], 0
mov DWORD PTR -8[rbp], 1
mov DWORD PTR -4[rbp], 0
jmp .L2
.L3:
mov eax, DWORD PTR -4[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -24[rbp]
add rax, rdx
mov eax, DWORD PTR [rax]
add DWORD PTR -12[rbp], eax
mov eax, DWORD PTR -4[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -24[rbp]
add rax, rdx
mov eax, DWORD PTR [rax]
mov edx, DWORD PTR -8[rbp]
imul eax, edx
mov DWORD PTR -8[rbp], eax
add DWORD PTR -4[rbp], 1
.L2:
mov eax, DWORD PTR -4[rbp]
cmp eax, DWORD PTR -28[rbp]
jl .L3
mov rax, QWORD PTR -40[rbp]
mov edx, DWORD PTR -12[rbp]
mov DWORD PTR [rax], edx
mov rax, QWORD PTR -40[rbp]
lea rdx, 4[rax]
mov eax, DWORD PTR -8[rbp]
mov DWORD PTR [rdx], eax
nop
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size func0, .-func0
.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:
|
eval/problem64/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB23:
.cfi_startproc
endbr64
sub rsp, 424
.cfi_def_cfa_offset 432
movsx r8, edi
mov ecx, 50
mov rax, QWORD PTR fs:40
mov QWORD PTR 408[rsp], rax
xor eax, eax
mov rdi, rsp
rep stosq
mov DWORD PTR 8[rsp], 1
cmp r8d, 2
jle .L2
lea edx, -3[r8]
lea rax, 4[rsp]
xor esi, esi
lea rdi, 8[rsp+rdx*4]
mov edx, 1
jmp .L3
.p2align 4,,10
.p2align 3
.L7:
mov edx, DWORD PTR 4[rax]
mov ecx, DWORD PTR [rax]
mov esi, DWORD PTR -4[rax]
.L3:
add edx, ecx
add rax, 4
add edx, esi
mov DWORD PTR 4[rax], edx
cmp rdi, rax
jne .L7
.L2:
mov eax, DWORD PTR [rsp+r8*4]
mov rdi, QWORD PTR 408[rsp]
sub rdi, QWORD PTR fs:40
jne .L8
add rsp, 424
.cfi_remember_state
.cfi_def_cfa_offset 8
ret
.L8:
.cfi_restore_state
call __stack_chk_fail@PLT
.cfi_endproc
.LFE23:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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, 448
mov DWORD PTR -436[rbp], edi
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
lea rdx, -416[rbp]
mov eax, 0
mov ecx, 50
mov rdi, rdx
rep stosq
mov DWORD PTR -412[rbp], 0
mov DWORD PTR -408[rbp], 1
mov DWORD PTR -420[rbp], 3
jmp .L2
.L3:
mov eax, DWORD PTR -420[rbp]
sub eax, 1
cdqe
mov edx, DWORD PTR -416[rbp+rax*4]
mov eax, DWORD PTR -420[rbp]
sub eax, 2
cdqe
mov eax, DWORD PTR -416[rbp+rax*4]
add edx, eax
mov eax, DWORD PTR -420[rbp]
sub eax, 3
cdqe
mov eax, DWORD PTR -416[rbp+rax*4]
add edx, eax
mov eax, DWORD PTR -420[rbp]
cdqe
mov DWORD PTR -416[rbp+rax*4], edx
add DWORD PTR -420[rbp], 1
.L2:
mov eax, DWORD PTR -420[rbp]
cmp eax, DWORD PTR -436[rbp]
jle .L3
mov eax, DWORD PTR -436[rbp]
cdqe
mov eax, DWORD PTR -416[rbp+rax*4]
mov rsi, QWORD PTR -8[rbp]
sub rsi, QWORD PTR fs:40
je .L5
call __stack_chk_fail@PLT
.L5:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size func0, .-func0
.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:
|
eval/problem123/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB23:
.cfi_startproc
endbr64
test esi, esi
jle .L5
lea eax, -1[rsi]
xor r8d, r8d
lea rcx, 4[rdi+rax*4]
.p2align 4,,10
.p2align 3
.L4:
mov eax, DWORD PTR [rdi]
lea edx, 99[rax]
add eax, r8d
cmp edx, 199
cmovb r8d, eax
add rdi, 4
cmp rdi, rcx
jne .L4
mov eax, r8d
ret
.p2align 4,,10
.p2align 3
.L5:
xor r8d, r8d
mov eax, r8d
ret
.cfi_endproc
.LFE23:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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 -8[rbp], 0
mov DWORD PTR -4[rbp], 0
jmp .L2
.L4:
mov eax, DWORD PTR -4[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -24[rbp]
add rax, rdx
mov eax, DWORD PTR [rax]
cmp eax, -99
jl .L3
mov eax, DWORD PTR -4[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -24[rbp]
add rax, rdx
mov eax, DWORD PTR [rax]
cmp eax, 99
jg .L3
mov eax, DWORD PTR -4[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -24[rbp]
add rax, rdx
mov eax, DWORD PTR [rax]
add DWORD PTR -8[rbp], eax
.L3:
add DWORD PTR -4[rbp], 1
.L2:
mov eax, DWORD PTR -4[rbp]
cmp eax, DWORD PTR -28[rbp]
jl .L4
mov eax, DWORD PTR -8[rbp]
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size func0, .-func0
.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:
|
eval/problem114/code.c | .file "code.c"
.intel_syntax noprefix
.text
.section .rodata.str1.8,"aMS",@progbits,1
.align 8
.LC0:
.string "the number of odd elements %d in the string %d of the %d input."
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB50:
.cfi_startproc
endbr64
push r15
.cfi_def_cfa_offset 16
.cfi_offset 15, -16
push r14
.cfi_def_cfa_offset 24
.cfi_offset 14, -24
push r13
.cfi_def_cfa_offset 32
.cfi_offset 13, -32
push r12
.cfi_def_cfa_offset 40
.cfi_offset 12, -40
push rbp
.cfi_def_cfa_offset 48
.cfi_offset 6, -48
movsx rbp, esi
push rbx
.cfi_def_cfa_offset 56
.cfi_offset 3, -56
mov rbx, rdi
lea rdi, 0[0+rbp*8]
sub rsp, 8
.cfi_def_cfa_offset 64
call malloc@PLT
mov r12, rax
test ebp, ebp
jle .L1
xor r14d, r14d
lea r13, .LC0[rip]
.p2align 4,,10
.p2align 3
.L3:
mov rdx, QWORD PTR [rbx+r14*8]
xor r15d, r15d
movzx eax, BYTE PTR [rdx]
add rdx, 1
test al, al
je .L7
.p2align 4,,10
.p2align 3
.L5:
lea ecx, -48[rax]
cmp cl, 9
ja .L4
and eax, 1
cmp al, 1
sbb r15d, -1
.L4:
movzx eax, BYTE PTR [rdx]
add rdx, 1
test al, al
jne .L5
.L7:
mov edi, 100
call malloc@PLT
sub rsp, 8
.cfi_def_cfa_offset 72
mov r9d, r15d
mov r8d, r15d
push r15
.cfi_def_cfa_offset 80
mov rdi, rax
mov edx, 100
mov rcx, r13
mov QWORD PTR [r12+r14*8], rax
mov esi, 1
xor eax, eax
add r14, 1
call __sprintf_chk@PLT
pop rax
.cfi_def_cfa_offset 72
pop rdx
.cfi_def_cfa_offset 64
cmp rbp, r14
jne .L3
.L1:
add rsp, 8
.cfi_def_cfa_offset 56
mov rax, r12
pop rbx
.cfi_def_cfa_offset 48
pop rbp
.cfi_def_cfa_offset 40
pop r12
.cfi_def_cfa_offset 32
pop r13
.cfi_def_cfa_offset 24
pop r14
.cfi_def_cfa_offset 16
pop r15
.cfi_def_cfa_offset 8
ret
.cfi_endproc
.LFE50:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.section .rodata
.align 8
.LC0:
.string "the number of odd elements %d in the string %d of the %d input."
.text
.globl func0
.type func0, @function
func0:
.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 QWORD PTR -56[rbp], rdi
mov DWORD PTR -60[rbp], esi
mov eax, DWORD PTR -60[rbp]
cdqe
sal rax, 3
mov rdi, rax
call malloc@PLT
mov QWORD PTR -24[rbp], rax
mov DWORD PTR -36[rbp], 0
jmp .L2
.L6:
mov DWORD PTR -32[rbp], 0
mov DWORD PTR -28[rbp], 0
jmp .L3
.L5:
mov eax, DWORD PTR -36[rbp]
cdqe
lea rdx, 0[0+rax*8]
mov rax, QWORD PTR -56[rbp]
add rax, rdx
mov rdx, QWORD PTR [rax]
mov eax, DWORD PTR -28[rbp]
cdqe
add rax, rdx
movzx eax, BYTE PTR [rax]
cmp al, 47
jle .L4
mov eax, DWORD PTR -36[rbp]
cdqe
lea rdx, 0[0+rax*8]
mov rax, QWORD PTR -56[rbp]
add rax, rdx
mov rdx, QWORD PTR [rax]
mov eax, DWORD PTR -28[rbp]
cdqe
add rax, rdx
movzx eax, BYTE PTR [rax]
cmp al, 57
jg .L4
mov eax, DWORD PTR -36[rbp]
cdqe
lea rdx, 0[0+rax*8]
mov rax, QWORD PTR -56[rbp]
add rax, rdx
mov rdx, QWORD PTR [rax]
mov eax, DWORD PTR -28[rbp]
cdqe
add rax, rdx
movzx eax, BYTE PTR [rax]
movsx eax, al
sub eax, 48
cdq
shr edx, 31
add eax, edx
and eax, 1
sub eax, edx
cmp eax, 1
jne .L4
add DWORD PTR -32[rbp], 1
.L4:
add DWORD PTR -28[rbp], 1
.L3:
mov eax, DWORD PTR -36[rbp]
cdqe
lea rdx, 0[0+rax*8]
mov rax, QWORD PTR -56[rbp]
add rax, rdx
mov rdx, QWORD PTR [rax]
mov eax, DWORD PTR -28[rbp]
cdqe
add rax, rdx
movzx eax, BYTE PTR [rax]
test al, al
jne .L5
mov eax, DWORD PTR -36[rbp]
cdqe
lea rdx, 0[0+rax*8]
mov rax, QWORD PTR -24[rbp]
lea rbx, [rdx+rax]
mov edi, 100
call malloc@PLT
mov QWORD PTR [rbx], rax
mov eax, DWORD PTR -36[rbp]
cdqe
lea rdx, 0[0+rax*8]
mov rax, QWORD PTR -24[rbp]
add rax, rdx
mov rax, QWORD PTR [rax]
mov esi, DWORD PTR -32[rbp]
mov ecx, DWORD PTR -32[rbp]
mov edx, DWORD PTR -32[rbp]
mov r8d, esi
lea rsi, .LC0[rip]
mov rdi, rax
mov eax, 0
call sprintf@PLT
add DWORD PTR -36[rbp], 1
.L2:
mov eax, DWORD PTR -36[rbp]
cmp eax, DWORD PTR -60[rbp]
jl .L6
mov rax, QWORD PTR -24[rbp]
mov rbx, QWORD PTR -8[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size func0, .-func0
.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:
|
eval/problem105/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB39:
.cfi_startproc
endbr64
push r13
.cfi_def_cfa_offset 16
.cfi_offset 13, -16
mov r13, rdx
push r12
.cfi_def_cfa_offset 24
.cfi_offset 12, -24
push rbp
.cfi_def_cfa_offset 32
.cfi_offset 6, -32
mov rbp, rcx
push rbx
.cfi_def_cfa_offset 40
.cfi_offset 3, -40
mov rbx, rdi
movsx rdi, esi
mov r12, rdi
sal rdi, 2
sub rsp, 8
.cfi_def_cfa_offset 48
call malloc@PLT
mov QWORD PTR 0[r13], rax
mov DWORD PTR 0[rbp], 0
test r12d, r12d
jle .L1
mov r8, rax
lea eax, -1[r12]
mov r9, rbx
xor esi, esi
lea r11, 4[rbx+rax*4]
mov edi, 3435973837
.p2align 4,,10
.p2align 3
.L7:
mov r10d, DWORD PTR [r9]
test r10d, r10d
je .L3
jle .L4
mov eax, r10d
.p2align 4,,10
.p2align 3
.L5:
mov edx, eax
mov eax, eax
mov rcx, rax
imul rax, rdi
not edx
and edx, 1
shr rax, 35
cmp ecx, 9
jle .L11
test dl, dl
je .L5
.L3:
add r9, 4
cmp r11, r9
jne .L7
.L24:
lea edx, -1[rsi]
test edx, edx
jle .L1
lea r9, 4[r8]
.p2align 4,,10
.p2align 3
.L8:
sub edx, 1
mov rax, r8
mov rdi, rdx
lea rsi, [r9+rdx*4]
.p2align 4,,10
.p2align 3
.L10:
mov edx, DWORD PTR [rax]
mov ecx, DWORD PTR 4[rax]
cmp edx, ecx
jle .L9
mov DWORD PTR [rax], ecx
mov DWORD PTR 4[rax], edx
.L9:
add rax, 4
cmp rsi, rax
jne .L10
mov edx, edi
test edi, edi
jne .L8
.L1:
add rsp, 8
.cfi_remember_state
.cfi_def_cfa_offset 40
pop rbx
.cfi_def_cfa_offset 32
pop rbp
.cfi_def_cfa_offset 24
pop r12
.cfi_def_cfa_offset 16
pop r13
.cfi_def_cfa_offset 8
ret
.p2align 4,,10
.p2align 3
.L11:
.cfi_restore_state
test dl, dl
jne .L3
.L4:
movsx rax, esi
add r9, 4
add esi, 1
mov DWORD PTR [r8+rax*4], r10d
mov DWORD PTR 0[rbp], esi
cmp r11, r9
jne .L7
jmp .L24
.cfi_endproc
.LFE39:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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 DWORD PTR -44[rbp], esi
mov QWORD PTR -56[rbp], rdx
mov QWORD PTR -64[rbp], rcx
mov eax, DWORD PTR -44[rbp]
cdqe
sal rax, 2
mov rdi, rax
call malloc@PLT
mov rdx, rax
mov rax, QWORD PTR -56[rbp]
mov QWORD PTR [rax], rdx
mov rax, QWORD PTR -64[rbp]
mov DWORD PTR [rax], 0
mov DWORD PTR -20[rbp], 0
jmp .L2
.L9:
mov eax, DWORD PTR -20[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -40[rbp]
add rax, rdx
mov eax, DWORD PTR [rax]
mov DWORD PTR -16[rbp], eax
mov BYTE PTR -21[rbp], 0
cmp DWORD PTR -16[rbp], 0
jne .L4
mov BYTE PTR -21[rbp], 1
jmp .L4
.L7:
mov eax, DWORD PTR -16[rbp]
and eax, 1
test eax, eax
jne .L5
mov BYTE PTR -21[rbp], 1
.L5:
mov eax, DWORD PTR -16[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 -16[rbp], eax
.L4:
cmp DWORD PTR -16[rbp], 0
jle .L6
movzx eax, BYTE PTR -21[rbp]
xor eax, 1
test al, al
jne .L7
.L6:
movzx eax, BYTE PTR -21[rbp]
xor eax, 1
test al, al
je .L8
mov eax, DWORD PTR -20[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -40[rbp]
lea rcx, [rdx+rax]
mov rax, QWORD PTR -56[rbp]
mov rdx, QWORD PTR [rax]
mov rax, QWORD PTR -64[rbp]
mov eax, DWORD PTR [rax]
cdqe
sal rax, 2
add rdx, rax
mov eax, DWORD PTR [rcx]
mov DWORD PTR [rdx], eax
mov rax, QWORD PTR -64[rbp]
mov eax, DWORD PTR [rax]
lea edx, 1[rax]
mov rax, QWORD PTR -64[rbp]
mov DWORD PTR [rax], edx
.L8:
add DWORD PTR -20[rbp], 1
.L2:
mov eax, DWORD PTR -20[rbp]
cmp eax, DWORD PTR -44[rbp]
jl .L9
mov DWORD PTR -12[rbp], 0
jmp .L10
.L14:
mov DWORD PTR -8[rbp], 0
jmp .L11
.L13:
mov rax, QWORD PTR -56[rbp]
mov rdx, QWORD PTR [rax]
mov eax, DWORD PTR -8[rbp]
cdqe
sal rax, 2
add rax, rdx
mov edx, DWORD PTR [rax]
mov rax, QWORD PTR -56[rbp]
mov rcx, QWORD PTR [rax]
mov eax, DWORD PTR -8[rbp]
cdqe
add rax, 1
sal rax, 2
add rax, rcx
mov eax, DWORD PTR [rax]
cmp edx, eax
jle .L12
mov rax, QWORD PTR -56[rbp]
mov rdx, QWORD PTR [rax]
mov eax, DWORD PTR -8[rbp]
cdqe
sal rax, 2
add rax, rdx
mov eax, DWORD PTR [rax]
mov DWORD PTR -4[rbp], eax
mov rax, QWORD PTR -56[rbp]
mov rdx, QWORD PTR [rax]
mov eax, DWORD PTR -8[rbp]
cdqe
add rax, 1
sal rax, 2
lea rcx, [rdx+rax]
mov rax, QWORD PTR -56[rbp]
mov rdx, QWORD PTR [rax]
mov eax, DWORD PTR -8[rbp]
cdqe
sal rax, 2
add rdx, rax
mov eax, DWORD PTR [rcx]
mov DWORD PTR [rdx], eax
mov rax, QWORD PTR -56[rbp]
mov rdx, QWORD PTR [rax]
mov eax, DWORD PTR -8[rbp]
cdqe
add rax, 1
sal rax, 2
add rdx, rax
mov eax, DWORD PTR -4[rbp]
mov DWORD PTR [rdx], eax
.L12:
add DWORD PTR -8[rbp], 1
.L11:
mov rax, QWORD PTR -64[rbp]
mov eax, DWORD PTR [rax]
sub eax, DWORD PTR -12[rbp]
sub eax, 1
cmp DWORD PTR -8[rbp], eax
jl .L13
add DWORD PTR -12[rbp], 1
.L10:
mov rax, QWORD PTR -64[rbp]
mov eax, DWORD PTR [rax]
sub eax, 1
cmp DWORD PTR -12[rbp], eax
jl .L14
nop
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size func0, .-func0
.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:
|
eval/problem113/code.c | .file "code.c"
.intel_syntax noprefix
.text
.section .rodata.str1.1,"aMS",@progbits,1
.LC0:
.string "False"
.LC1:
.string "True"
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB50:
.cfi_startproc
endbr64
push r14
.cfi_def_cfa_offset 16
.cfi_offset 14, -16
mov r14, rsi
push r13
.cfi_def_cfa_offset 24
.cfi_offset 13, -24
push r12
.cfi_def_cfa_offset 32
.cfi_offset 12, -32
mov r12, rdx
push rbp
.cfi_def_cfa_offset 40
.cfi_offset 6, -40
mov rbp, rcx
push rbx
.cfi_def_cfa_offset 48
.cfi_offset 3, -48
mov rbx, rdi
call strlen@PLT
lea edi, 1[rax]
movsx rdi, edi
call malloc@PLT
movzx ecx, BYTE PTR [rbx]
mov r13, rax
test cl, cl
je .L2
movzx r8d, BYTE PTR [r14]
lea rsi, 1[rbx]
xor edi, edi
.p2align 4,,10
.p2align 3
.L3:
mov rdx, r14
mov eax, r8d
test r8b, r8b
jne .L5
jmp .L6
.p2align 4,,10
.p2align 3
.L19:
movzx eax, BYTE PTR 1[rdx]
add rdx, 1
test al, al
je .L6
.L5:
cmp cl, al
jne .L19
movzx ecx, BYTE PTR [rsi]
add rsi, 1
test cl, cl
jne .L3
.L21:
movsx rax, edi
add rax, r13
.L2:
mov BYTE PTR [rax], 0
mov rdi, r13
call strlen@PLT
mov ecx, eax
mov rsi, rax
shr ecx, 31
add ecx, eax
sar ecx
cmp eax, 1
jle .L7
lea edx, -1[rax]
xor eax, eax
movsx rdx, edx
add rdx, r13
jmp .L9
.p2align 4,,10
.p2align 3
.L20:
add rax, 1
sub rdx, 1
cmp ecx, eax
jle .L7
.L9:
movzx ebx, BYTE PTR [rdx]
cmp BYTE PTR 0[r13+rax], bl
je .L20
lea rdx, 1[rsi]
mov rdi, r12
mov rsi, r13
call memcpy@PLT
lea rsi, .LC0[rip]
jmp .L10
.p2align 4,,10
.p2align 3
.L6:
movsx rax, edi
add rsi, 1
add edi, 1
mov BYTE PTR 0[r13+rax], cl
movzx ecx, BYTE PTR -1[rsi]
test cl, cl
jne .L3
jmp .L21
.L7:
lea rdx, 1[rsi]
mov rdi, r12
mov rsi, r13
call memcpy@PLT
lea rsi, .LC1[rip]
.L10:
mov rdi, rbp
call strcpy@PLT
pop rbx
.cfi_def_cfa_offset 40
mov rdi, r13
pop rbp
.cfi_def_cfa_offset 32
pop r12
.cfi_def_cfa_offset 24
pop r13
.cfi_def_cfa_offset 16
pop r14
.cfi_def_cfa_offset 8
jmp free@PLT
.cfi_endproc
.LFE50:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.section .rodata
.LC0:
.string "True"
.LC1:
.string "False"
.text
.globl func0
.type func0, @function
func0:
.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 QWORD PTR -56[rbp], rdi
mov QWORD PTR -64[rbp], rsi
mov QWORD PTR -72[rbp], rdx
mov QWORD PTR -80[rbp], rcx
mov rax, QWORD PTR -56[rbp]
mov rdi, rax
call strlen@PLT
mov DWORD PTR -24[rbp], eax
mov eax, DWORD PTR -24[rbp]
add eax, 1
cdqe
mov rdi, rax
call malloc@PLT
mov QWORD PTR -8[rbp], rax
mov DWORD PTR -36[rbp], 0
mov DWORD PTR -32[rbp], 0
jmp .L2
.L8:
mov rax, QWORD PTR -64[rbp]
mov QWORD PTR -16[rbp], rax
mov BYTE PTR -38[rbp], 0
jmp .L3
.L6:
mov eax, DWORD PTR -32[rbp]
movsx rdx, eax
mov rax, QWORD PTR -56[rbp]
add rax, rdx
movzx edx, BYTE PTR [rax]
mov rax, QWORD PTR -16[rbp]
movzx eax, BYTE PTR [rax]
cmp dl, al
jne .L4
mov BYTE PTR -38[rbp], 1
jmp .L5
.L4:
add QWORD PTR -16[rbp], 1
.L3:
mov rax, QWORD PTR -16[rbp]
movzx eax, BYTE PTR [rax]
test al, al
jne .L6
.L5:
movzx eax, BYTE PTR -38[rbp]
xor eax, 1
test al, al
je .L7
mov eax, DWORD PTR -32[rbp]
movsx rdx, eax
mov rax, QWORD PTR -56[rbp]
lea rcx, [rdx+rax]
mov eax, DWORD PTR -36[rbp]
lea edx, 1[rax]
mov DWORD PTR -36[rbp], edx
movsx rdx, eax
mov rax, QWORD PTR -8[rbp]
add rdx, rax
movzx eax, BYTE PTR [rcx]
mov BYTE PTR [rdx], al
.L7:
add DWORD PTR -32[rbp], 1
.L2:
mov eax, DWORD PTR -32[rbp]
movsx rdx, eax
mov rax, QWORD PTR -56[rbp]
add rax, rdx
movzx eax, BYTE PTR [rax]
test al, al
jne .L8
mov eax, DWORD PTR -36[rbp]
movsx rdx, eax
mov rax, QWORD PTR -8[rbp]
add rax, rdx
mov BYTE PTR [rax], 0
mov rax, QWORD PTR -8[rbp]
mov rdi, rax
call strlen@PLT
mov DWORD PTR -20[rbp], eax
mov BYTE PTR -37[rbp], 1
mov DWORD PTR -28[rbp], 0
jmp .L9
.L12:
mov eax, DWORD PTR -28[rbp]
movsx rdx, eax
mov rax, QWORD PTR -8[rbp]
add rax, rdx
movzx edx, BYTE PTR [rax]
mov eax, DWORD PTR -20[rbp]
sub eax, 1
sub eax, DWORD PTR -28[rbp]
movsx rcx, eax
mov rax, QWORD PTR -8[rbp]
add rax, rcx
movzx eax, BYTE PTR [rax]
cmp dl, al
je .L10
mov BYTE PTR -37[rbp], 0
jmp .L11
.L10:
add DWORD PTR -28[rbp], 1
.L9:
mov eax, DWORD PTR -20[rbp]
mov edx, eax
shr edx, 31
add eax, edx
sar eax
cmp DWORD PTR -28[rbp], eax
jl .L12
.L11:
mov rdx, QWORD PTR -8[rbp]
mov rax, QWORD PTR -72[rbp]
mov rsi, rdx
mov rdi, rax
call strcpy@PLT
cmp BYTE PTR -37[rbp], 0
je .L13
lea rax, .LC0[rip]
jmp .L14
.L13:
lea rax, .LC1[rip]
.L14:
mov rdx, QWORD PTR -80[rbp]
mov rsi, rax
mov rdi, rdx
call strcpy@PLT
mov rax, QWORD PTR -8[rbp]
mov rdi, rax
call free@PLT
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size func0, .-func0
.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:
|
eval/problem108/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB39:
.cfi_startproc
endbr64
push rbx
.cfi_def_cfa_offset 16
.cfi_offset 3, -16
mov ebx, edi
mov edi, 8
call malloc@PLT
mov QWORD PTR [rax], 0
mov r10, rax
test ebx, ebx
jle .L1
lea r9d, 1[rbx]
mov r8d, 1
mov edi, 3435973837
.p2align 4,,10
.p2align 3
.L6:
mov edx, r8d
xor ecx, ecx
.p2align 4,,10
.p2align 3
.L3:
mov eax, edx
lea esi, [rcx+rcx*4]
imul rax, rdi
shr rax, 35
lea ecx, [rax+rax*4]
add ecx, ecx
sub edx, ecx
lea ecx, [rdx+rsi*2]
mov edx, eax
test eax, eax
jne .L3
cmp r8d, ecx
je .L11
.L4:
add r8d, 1
cmp r9d, r8d
jne .L6
.L1:
mov rax, r10
pop rbx
.cfi_remember_state
.cfi_def_cfa_offset 8
ret
.p2align 4,,10
.p2align 3
.L11:
.cfi_restore_state
test r8b, 1
jne .L5
add DWORD PTR [r10], 1
jmp .L4
.p2align 4,,10
.p2align 3
.L5:
add DWORD PTR 4[r10], 1
jmp .L4
.cfi_endproc
.LFE39:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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 edi, 8
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]
add rax, 4
mov DWORD PTR [rax], 0
mov DWORD PTR -24[rbp], 1
jmp .L2
.L7:
mov DWORD PTR -20[rbp], 0
mov eax, DWORD PTR -24[rbp]
mov DWORD PTR -12[rbp], eax
mov eax, DWORD PTR -24[rbp]
mov DWORD PTR -16[rbp], eax
jmp .L3
.L4:
mov edx, DWORD PTR -20[rbp]
mov eax, edx
sal eax, 2
add eax, edx
add eax, eax
mov edi, eax
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
mov ecx, edx
sub ecx, eax
lea eax, [rdi+rcx]
mov DWORD PTR -20[rbp], eax
mov eax, DWORD PTR -16[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 -16[rbp], eax
.L3:
cmp DWORD PTR -16[rbp], 0
jne .L4
mov eax, DWORD PTR -12[rbp]
cmp eax, DWORD PTR -20[rbp]
jne .L5
mov eax, DWORD PTR -12[rbp]
and eax, 1
test eax, eax
jne .L6
mov rax, QWORD PTR -8[rbp]
mov eax, DWORD PTR [rax]
lea edx, 1[rax]
mov rax, QWORD PTR -8[rbp]
mov DWORD PTR [rax], edx
jmp .L5
.L6:
mov rax, QWORD PTR -8[rbp]
add rax, 4
mov edx, DWORD PTR [rax]
add edx, 1
mov DWORD PTR [rax], edx
.L5:
add DWORD PTR -24[rbp], 1
.L2:
mov eax, DWORD PTR -24[rbp]
cmp eax, DWORD PTR -36[rbp]
jle .L7
mov rax, QWORD PTR -8[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size func0, .-func0
.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:
|
eval/problem83/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB34:
.cfi_startproc
endbr64
sub rsp, 8
.cfi_def_cfa_offset 16
call strlen@PLT
xor r8d, r8d
cmp eax, 1
jle .L1
cmp eax, 3
jle .L6
test al, 1
je .L1
mov esi, eax
mov ecx, 2
jmp .L3
.p2align 4,,10
.p2align 3
.L4:
mov eax, esi
cdq
idiv ecx
test edx, edx
je .L8
.L3:
add ecx, 1
mov eax, ecx
imul eax, ecx
cmp eax, esi
jle .L4
.L6:
mov r8d, 1
.L1:
mov eax, r8d
add rsp, 8
.cfi_remember_state
.cfi_def_cfa_offset 8
ret
.p2align 4,,10
.p2align 3
.L8:
.cfi_restore_state
xor r8d, r8d
add rsp, 8
.cfi_def_cfa_offset 8
mov eax, r8d
ret
.cfi_endproc
.LFE34:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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 QWORD PTR -24[rbp], rdi
mov rax, QWORD PTR -24[rbp]
mov rdi, rax
call strlen@PLT
mov DWORD PTR -4[rbp], eax
cmp DWORD PTR -4[rbp], 1
jg .L2
mov eax, 0
jmp .L3
.L2:
mov DWORD PTR -8[rbp], 2
jmp .L4
.L6:
mov eax, DWORD PTR -4[rbp]
cdq
idiv DWORD PTR -8[rbp]
mov eax, edx
test eax, eax
jne .L5
mov eax, 0
jmp .L3
.L5:
add DWORD PTR -8[rbp], 1
.L4:
mov eax, DWORD PTR -8[rbp]
imul eax, eax
cmp DWORD PTR -4[rbp], eax
jge .L6
mov eax, 1
.L3:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size func0, .-func0
.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:
|
eval/problem144/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB34:
.cfi_startproc
endbr64
push r13
.cfi_def_cfa_offset 16
.cfi_offset 13, -16
push r12
.cfi_def_cfa_offset 24
.cfi_offset 12, -24
mov r12, rsi
push rbp
.cfi_def_cfa_offset 32
.cfi_offset 6, -32
push rbx
.cfi_def_cfa_offset 40
.cfi_offset 3, -40
sub rsp, 8
.cfi_def_cfa_offset 48
movzx eax, BYTE PTR [rdi]
test al, al
je .L2
mov rbp, rdi
xor r13d, r13d
xor ecx, ecx
xor ebx, ebx
jmp .L8
.p2align 4,,10
.p2align 3
.L32:
add ecx, 1
.L4:
add rbx, 1
movzx eax, BYTE PTR 0[rbp+rbx]
test al, al
je .L31
.L8:
cmp al, 32
jne .L32
cmp ecx, 1
jg .L33
.L19:
add rbx, 1
xor ecx, ecx
movzx eax, BYTE PTR 0[rbp+rbx]
test al, al
jne .L8
.L31:
cmp ecx, 1
jle .L29
cmp ecx, 3
jle .L10
mov esi, 2
test cl, 1
jne .L11
jmp .L29
.p2align 4,,10
.p2align 3
.L12:
mov eax, ecx
cdq
idiv esi
test edx, edx
je .L29
.L11:
add esi, 1
mov eax, esi
imul eax, esi
cmp eax, ecx
jle .L12
.L10:
test r13d, r13d
je .L34
lea eax, 1[r13]
movsx r13, r13d
movsx rdi, eax
mov BYTE PTR [r12+r13], 32
lea r13d, [rcx+rax]
add rdi, r12
.L16:
movsx rdx, ecx
sub rbx, rdx
lea rsi, 0[rbp+rbx]
call memcpy@PLT
.L29:
movsx r13, r13d
add r12, r13
.L2:
mov BYTE PTR [r12], 0
add rsp, 8
.cfi_remember_state
.cfi_def_cfa_offset 40
pop rbx
.cfi_def_cfa_offset 32
pop rbp
.cfi_def_cfa_offset 24
pop r12
.cfi_def_cfa_offset 16
pop r13
.cfi_def_cfa_offset 8
ret
.p2align 4,,10
.p2align 3
.L33:
.cfi_restore_state
cmp ecx, 3
jle .L5
test cl, 1
je .L19
mov esi, 2
jmp .L6
.p2align 4,,10
.p2align 3
.L7:
mov eax, ecx
cdq
idiv esi
test edx, edx
je .L19
.L6:
add esi, 1
mov eax, esi
imul eax, esi
cmp eax, ecx
jle .L7
.L5:
test r13d, r13d
je .L35
lea eax, 1[r13]
movsx r13, r13d
movsx rdi, eax
mov BYTE PTR [r12+r13], 32
lea r13d, [rax+rcx]
add rdi, r12
.L14:
movsx rdx, ecx
mov rsi, rbx
sub rsi, rdx
add rsi, rbp
call memcpy@PLT
xor ecx, ecx
jmp .L4
.p2align 4,,10
.p2align 3
.L34:
mov r13d, ecx
mov rdi, r12
jmp .L16
.p2align 4,,10
.p2align 3
.L35:
mov r13d, ecx
mov rdi, r12
jmp .L14
.cfi_endproc
.LFE34:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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, 48
mov QWORD PTR -40[rbp], rdi
mov QWORD PTR -48[rbp], rsi
mov DWORD PTR -4[rbp], 0
mov DWORD PTR -20[rbp], 0
mov DWORD PTR -16[rbp], 0
mov DWORD PTR -12[rbp], 0
jmp .L2
.L13:
mov eax, DWORD PTR -12[rbp]
movsx rdx, eax
mov rax, QWORD PTR -40[rbp]
add rax, rdx
movzx eax, BYTE PTR [rax]
cmp al, 32
je .L3
add DWORD PTR -20[rbp], 1
jmp .L4
.L3:
cmp DWORD PTR -20[rbp], 1
jle .L5
mov BYTE PTR -21[rbp], 1
mov DWORD PTR -8[rbp], 2
jmp .L6
.L9:
mov eax, DWORD PTR -20[rbp]
cdq
idiv DWORD PTR -8[rbp]
mov eax, edx
test eax, eax
jne .L7
mov BYTE PTR -21[rbp], 0
jmp .L10
.L7:
add DWORD PTR -8[rbp], 1
.L6:
mov eax, DWORD PTR -8[rbp]
imul eax, eax
cmp DWORD PTR -20[rbp], eax
jge .L9
jmp .L10
.L5:
mov BYTE PTR -21[rbp], 0
.L10:
cmp BYTE PTR -21[rbp], 0
je .L11
cmp DWORD PTR -16[rbp], 0
jle .L12
mov eax, DWORD PTR -16[rbp]
lea edx, 1[rax]
mov DWORD PTR -16[rbp], edx
movsx rdx, eax
mov rax, QWORD PTR -48[rbp]
add rax, rdx
mov BYTE PTR [rax], 32
.L12:
mov eax, DWORD PTR -20[rbp]
cdqe
mov edx, DWORD PTR -12[rbp]
movsx rdx, edx
mov ecx, DWORD PTR -20[rbp]
movsx rcx, ecx
mov rsi, rdx
sub rsi, rcx
mov rdx, QWORD PTR -40[rbp]
add rsi, rdx
mov edx, DWORD PTR -16[rbp]
movsx rcx, edx
mov rdx, QWORD PTR -48[rbp]
add rcx, rdx
mov rdx, rax
mov rdi, rcx
call memcpy@PLT
mov eax, DWORD PTR -20[rbp]
add DWORD PTR -16[rbp], eax
.L11:
mov DWORD PTR -20[rbp], 0
.L4:
add DWORD PTR -12[rbp], 1
.L2:
mov eax, DWORD PTR -12[rbp]
movsx rdx, eax
mov rax, QWORD PTR -40[rbp]
add rax, rdx
movzx eax, BYTE PTR [rax]
test al, al
jne .L13
cmp DWORD PTR -20[rbp], 1
jle .L14
mov BYTE PTR -21[rbp], 1
mov DWORD PTR -8[rbp], 2
jmp .L15
.L18:
mov eax, DWORD PTR -20[rbp]
cdq
idiv DWORD PTR -8[rbp]
mov eax, edx
test eax, eax
jne .L16
mov BYTE PTR -21[rbp], 0
jmp .L19
.L16:
add DWORD PTR -8[rbp], 1
.L15:
mov eax, DWORD PTR -8[rbp]
imul eax, eax
cmp DWORD PTR -20[rbp], eax
jge .L18
jmp .L19
.L14:
mov BYTE PTR -21[rbp], 0
.L19:
cmp BYTE PTR -21[rbp], 0
je .L20
cmp DWORD PTR -16[rbp], 0
jle .L21
mov eax, DWORD PTR -16[rbp]
lea edx, 1[rax]
mov DWORD PTR -16[rbp], edx
movsx rdx, eax
mov rax, QWORD PTR -48[rbp]
add rax, rdx
mov BYTE PTR [rax], 32
.L21:
mov eax, DWORD PTR -20[rbp]
cdqe
mov edx, DWORD PTR -12[rbp]
movsx rdx, edx
mov ecx, DWORD PTR -20[rbp]
movsx rcx, ecx
mov rsi, rdx
sub rsi, rcx
mov rdx, QWORD PTR -40[rbp]
add rsi, rdx
mov edx, DWORD PTR -16[rbp]
movsx rcx, edx
mov rdx, QWORD PTR -48[rbp]
add rcx, rdx
mov rdx, rax
mov rdi, rcx
call memcpy@PLT
mov eax, DWORD PTR -20[rbp]
add DWORD PTR -16[rbp], eax
.L20:
mov eax, DWORD PTR -16[rbp]
movsx rdx, eax
mov rax, QWORD PTR -48[rbp]
add rax, rdx
mov BYTE PTR [rax], 0
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size func0, .-func0
.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:
|
eval/problem141/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB34:
.cfi_startproc
endbr64
push r13
.cfi_def_cfa_offset 16
.cfi_offset 13, -16
mov r13, rsi
push r12
.cfi_def_cfa_offset 24
.cfi_offset 12, -24
xor r12d, r12d
push rbp
.cfi_def_cfa_offset 32
.cfi_offset 6, -32
mov rbp, rdi
push rbx
.cfi_def_cfa_offset 40
.cfi_offset 3, -40
xor ebx, ebx
sub rsp, 8
.cfi_def_cfa_offset 48
call strlen@PLT
xor edx, edx
xor ecx, ecx
jmp .L2
.p2align 4,,10
.p2align 3
.L3:
lea eax, 1[r12]
cmp edx, 1
je .L16
cmp edx, 2
jne .L17
cdqe
mov BYTE PTR [rsi], 95
mov BYTE PTR 0[r13+rax], 95
lea eax, 2[r12]
.L6:
movzx edx, BYTE PTR 0[rbp+rbx]
lea r12d, 1[rax]
cdqe
mov rdi, rbp
mov BYTE PTR 0[r13+rax], dl
call strlen@PLT
xor edx, edx
movsx rcx, r12d
.L4:
add rbx, 1
.L2:
lea rsi, 0[r13+rcx]
cmp rax, rbx
jbe .L18
cmp BYTE PTR 0[rbp+rbx], 32
jne .L3
add edx, 1
jmp .L4
.p2align 4,,10
.p2align 3
.L17:
jle .L19
mov BYTE PTR [rsi], 45
jmp .L6
.p2align 4,,10
.p2align 3
.L16:
mov BYTE PTR [rsi], 95
jmp .L6
.p2align 4,,10
.p2align 3
.L18:
cmp edx, 1
je .L20
cmp edx, 2
jne .L21
lea eax, 1[r12]
add r12d, 2
mov BYTE PTR [rsi], 95
cdqe
movsx rcx, r12d
mov BYTE PTR 0[r13+rax], 95
jmp .L11
.p2align 4,,10
.p2align 3
.L21:
jle .L11
mov BYTE PTR [rsi], 45
add r12d, 1
movsx rcx, r12d
.L11:
mov BYTE PTR 0[r13+rcx], 0
add rsp, 8
.cfi_remember_state
.cfi_def_cfa_offset 40
pop rbx
.cfi_def_cfa_offset 32
pop rbp
.cfi_def_cfa_offset 24
pop r12
.cfi_def_cfa_offset 16
pop r13
.cfi_def_cfa_offset 8
ret
.p2align 4,,10
.p2align 3
.L20:
.cfi_restore_state
add r12d, 1
mov BYTE PTR [rsi], 95
movsx rcx, r12d
jmp .L11
.L19:
mov eax, r12d
jmp .L6
.cfi_endproc
.LFE34:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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 QWORD PTR -40[rbp], rdi
mov QWORD PTR -48[rbp], rsi
mov DWORD PTR -28[rbp], 0
mov DWORD PTR -24[rbp], 0
mov DWORD PTR -20[rbp], 0
jmp .L2
.L8:
mov eax, DWORD PTR -20[rbp]
movsx rdx, eax
mov rax, QWORD PTR -40[rbp]
add rax, rdx
movzx eax, BYTE PTR [rax]
cmp al, 32
jne .L3
add DWORD PTR -28[rbp], 1
jmp .L4
.L3:
cmp DWORD PTR -28[rbp], 1
jne .L5
mov eax, DWORD PTR -24[rbp]
lea edx, 1[rax]
mov DWORD PTR -24[rbp], edx
movsx rdx, eax
mov rax, QWORD PTR -48[rbp]
add rax, rdx
mov BYTE PTR [rax], 95
.L5:
cmp DWORD PTR -28[rbp], 2
jne .L6
mov eax, DWORD PTR -24[rbp]
lea edx, 1[rax]
mov DWORD PTR -24[rbp], edx
movsx rdx, eax
mov rax, QWORD PTR -48[rbp]
add rax, rdx
mov BYTE PTR [rax], 95
mov eax, DWORD PTR -24[rbp]
lea edx, 1[rax]
mov DWORD PTR -24[rbp], edx
movsx rdx, eax
mov rax, QWORD PTR -48[rbp]
add rax, rdx
mov BYTE PTR [rax], 95
.L6:
cmp DWORD PTR -28[rbp], 2
jle .L7
mov eax, DWORD PTR -24[rbp]
lea edx, 1[rax]
mov DWORD PTR -24[rbp], edx
movsx rdx, eax
mov rax, QWORD PTR -48[rbp]
add rax, rdx
mov BYTE PTR [rax], 45
.L7:
mov DWORD PTR -28[rbp], 0
mov eax, DWORD PTR -20[rbp]
movsx rdx, eax
mov rax, QWORD PTR -40[rbp]
lea rcx, [rdx+rax]
mov eax, DWORD PTR -24[rbp]
lea edx, 1[rax]
mov DWORD PTR -24[rbp], edx
movsx rdx, eax
mov rax, QWORD PTR -48[rbp]
add rdx, rax
movzx eax, BYTE PTR [rcx]
mov BYTE PTR [rdx], al
.L4:
add DWORD PTR -20[rbp], 1
.L2:
mov eax, DWORD PTR -20[rbp]
movsx rbx, eax
mov rax, QWORD PTR -40[rbp]
mov rdi, rax
call strlen@PLT
cmp rbx, rax
jb .L8
cmp DWORD PTR -28[rbp], 1
jne .L9
mov eax, DWORD PTR -24[rbp]
lea edx, 1[rax]
mov DWORD PTR -24[rbp], edx
movsx rdx, eax
mov rax, QWORD PTR -48[rbp]
add rax, rdx
mov BYTE PTR [rax], 95
.L9:
cmp DWORD PTR -28[rbp], 2
jne .L10
mov eax, DWORD PTR -24[rbp]
lea edx, 1[rax]
mov DWORD PTR -24[rbp], edx
movsx rdx, eax
mov rax, QWORD PTR -48[rbp]
add rax, rdx
mov BYTE PTR [rax], 95
mov eax, DWORD PTR -24[rbp]
lea edx, 1[rax]
mov DWORD PTR -24[rbp], edx
movsx rdx, eax
mov rax, QWORD PTR -48[rbp]
add rax, rdx
mov BYTE PTR [rax], 95
.L10:
cmp DWORD PTR -28[rbp], 2
jle .L11
mov eax, DWORD PTR -24[rbp]
lea edx, 1[rax]
mov DWORD PTR -24[rbp], edx
movsx rdx, eax
mov rax, QWORD PTR -48[rbp]
add rax, rdx
mov BYTE PTR [rax], 45
.L11:
mov eax, DWORD PTR -24[rbp]
movsx rdx, eax
mov rax, QWORD PTR -48[rbp]
add rax, rdx
mov BYTE PTR [rax], 0
nop
mov rbx, QWORD PTR -8[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size func0, .-func0
.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:
|
eval/problem3/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB23:
.cfi_startproc
endbr64
cvttss2si eax, xmm0
pxor xmm1, xmm1
cvtsi2ss xmm1, eax
subss xmm0, xmm1
ret
.cfi_endproc
.LFE23:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
movss DWORD PTR -4[rbp], xmm0
movss xmm0, DWORD PTR -4[rbp]
cvttss2si eax, xmm0
pxor xmm1, xmm1
cvtsi2ss xmm1, eax
movss xmm0, DWORD PTR -4[rbp]
subss xmm0, xmm1
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size func0, .-func0
.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:
|
eval/problem94/code.c | .file "code.c"
.intel_syntax noprefix
.text
.section .rodata.str1.1,"aMS",@progbits,1
.LC0:
.string "aeiouAEIOU"
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB36:
.cfi_startproc
endbr64
push r15
.cfi_def_cfa_offset 16
.cfi_offset 15, -16
push r14
.cfi_def_cfa_offset 24
.cfi_offset 14, -24
push r13
.cfi_def_cfa_offset 32
.cfi_offset 13, -32
push r12
.cfi_def_cfa_offset 40
.cfi_offset 12, -40
push rbp
.cfi_def_cfa_offset 48
.cfi_offset 6, -48
mov rbp, rsi
push rbx
.cfi_def_cfa_offset 56
.cfi_offset 3, -56
sub rsp, 24
.cfi_def_cfa_offset 80
movzx ebx, BYTE PTR [rdi]
mov QWORD PTR 8[rsp], rdi
test bl, bl
je .L2
call __ctype_b_loc@PLT
xor r14d, r14d
lea r13, .LC0[rip]
mov r12, rax
.p2align 4,,10
.p2align 3
.L8:
mov rax, QWORD PTR [r12]
movsx r15, bl
movzx eax, WORD PTR [rax+r15*2]
test ah, 2
je .L3
call __ctype_toupper_loc@PLT
mov rax, QWORD PTR [rax]
movzx ebx, BYTE PTR [rax+r15*4]
.L4:
xor eax, eax
mov edx, 97
jmp .L7
.p2align 4,,10
.p2align 3
.L5:
add rax, 1
movzx edx, BYTE PTR 0[r13+rax]
test dl, dl
je .L6
.L7:
mov ecx, eax
cmp bl, dl
jne .L5
lea eax, 2[rbx]
cmp ecx, 10
cmovl ebx, eax
.L6:
mov rax, QWORD PTR 8[rsp]
mov BYTE PTR 0[rbp+r14], bl
add r14, 1
movzx ebx, BYTE PTR [rax+r14]
test bl, bl
jne .L8
add rbp, r14
.L2:
mov BYTE PTR 0[rbp], 0
add rsp, 24
.cfi_remember_state
.cfi_def_cfa_offset 56
pop rbx
.cfi_def_cfa_offset 48
pop rbp
.cfi_def_cfa_offset 40
pop r12
.cfi_def_cfa_offset 32
pop r13
.cfi_def_cfa_offset 24
pop r14
.cfi_def_cfa_offset 16
pop r15
.cfi_def_cfa_offset 8
ret
.p2align 4,,10
.p2align 3
.L3:
.cfi_restore_state
test ah, 1
je .L4
call __ctype_tolower_loc@PLT
mov rax, QWORD PTR [rax]
movzx ebx, BYTE PTR [rax+r15*4]
jmp .L4
.cfi_endproc
.LFE36:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.section .rodata
.LC0:
.string "aeiouAEIOU"
.text
.globl func0
.type func0, @function
func0:
.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, 48
mov QWORD PTR -40[rbp], rdi
mov QWORD PTR -48[rbp], rsi
lea rax, .LC0[rip]
mov QWORD PTR -8[rbp], rax
mov DWORD PTR -16[rbp], 0
jmp .L2
.L10:
mov eax, DWORD PTR -16[rbp]
movsx rdx, eax
mov rax, QWORD PTR -40[rbp]
add rax, rdx
movzx eax, BYTE PTR [rax]
mov BYTE PTR -17[rbp], al
call __ctype_b_loc@PLT
mov rdx, QWORD PTR [rax]
movsx rax, BYTE PTR -17[rbp]
add rax, rax
add rax, rdx
movzx eax, WORD PTR [rax]
movzx eax, ax
and eax, 512
test eax, eax
je .L3
movsx eax, BYTE PTR -17[rbp]
mov edi, eax
call toupper@PLT
mov BYTE PTR -17[rbp], al
jmp .L4
.L3:
call __ctype_b_loc@PLT
mov rdx, QWORD PTR [rax]
movsx rax, BYTE PTR -17[rbp]
add rax, rax
add rax, rdx
movzx eax, WORD PTR [rax]
movzx eax, ax
and eax, 256
test eax, eax
je .L4
movsx eax, BYTE PTR -17[rbp]
mov edi, eax
call tolower@PLT
mov BYTE PTR -17[rbp], al
.L4:
mov DWORD PTR -12[rbp], 0
jmp .L5
.L9:
mov eax, DWORD PTR -12[rbp]
movsx rdx, eax
mov rax, QWORD PTR -8[rbp]
add rax, rdx
movzx eax, BYTE PTR [rax]
cmp BYTE PTR -17[rbp], al
jne .L6
cmp DWORD PTR -12[rbp], 9
jg .L11
movzx eax, BYTE PTR -17[rbp]
add eax, 2
mov BYTE PTR -17[rbp], al
jmp .L11
.L6:
add DWORD PTR -12[rbp], 1
.L5:
mov eax, DWORD PTR -12[rbp]
movsx rdx, eax
mov rax, QWORD PTR -8[rbp]
add rax, rdx
movzx eax, BYTE PTR [rax]
test al, al
jne .L9
jmp .L8
.L11:
nop
.L8:
mov eax, DWORD PTR -16[rbp]
movsx rdx, eax
mov rax, QWORD PTR -48[rbp]
add rdx, rax
movzx eax, BYTE PTR -17[rbp]
mov BYTE PTR [rdx], al
add DWORD PTR -16[rbp], 1
.L2:
mov eax, DWORD PTR -16[rbp]
movsx rdx, eax
mov rax, QWORD PTR -40[rbp]
add rax, rdx
movzx eax, BYTE PTR [rax]
test al, al
jne .L10
mov eax, DWORD PTR -16[rbp]
movsx rdx, eax
mov rax, QWORD PTR -48[rbp]
add rax, rdx
mov BYTE PTR [rax], 0
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size func0, .-func0
.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:
|
eval/problem130/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB39:
.cfi_startproc
endbr64
push r12
.cfi_def_cfa_offset 16
.cfi_offset 12, -16
mov r10, rdi
mov r11d, esi
mov r12, rcx
push rbp
.cfi_def_cfa_offset 24
.cfi_offset 6, -24
push rbx
.cfi_def_cfa_offset 32
.cfi_offset 3, -32
mov ebx, edx
test esi, esi
jle .L2
movsx rdx, esi
xor edi, edi
.p2align 4,,10
.p2align 3
.L3:
mov rcx, QWORD PTR [r10+rdi*8]
mov esi, edi
xor eax, eax
.p2align 4,,10
.p2align 3
.L5:
cmp DWORD PTR [rcx+rax*4], 1
cmove r8d, eax
cmove r9d, esi
add rax, 1
cmp rdx, rax
jne .L5
add rdi, 1
cmp rdx, rdi
jne .L3
.L2:
mov ebp, r11d
imul ebp, r11d
test r9d, r9d
je .L6
movsx rdx, r9d
movsx rax, r8d
mov rdx, QWORD PTR -8[r10+rdx*8]
mov eax, DWORD PTR [rdx+rax*4]
cmp ebp, eax
cmovg ebp, eax
.L6:
sub r11d, 1
cmp r11d, r9d
jle .L7
lea edx, 1[r9]
movsx rax, r8d
movsx rdx, edx
mov rdx, QWORD PTR [r10+rdx*8]
mov eax, DWORD PTR [rdx+rax*4]
cmp ebp, eax
cmovg ebp, eax
.L7:
test r8d, r8d
je .L8
movsx rdx, r9d
movsx rax, r8d
mov rdx, QWORD PTR [r10+rdx*8]
mov eax, DWORD PTR -4[rdx+rax*4]
cmp ebp, eax
cmovg ebp, eax
.L8:
cmp r11d, r8d
jle .L9
movsx r9, r9d
lea eax, 1[r8]
mov rdx, QWORD PTR [r10+r9*8]
cdqe
mov eax, DWORD PTR [rdx+rax*4]
cmp ebp, eax
cmovg ebp, eax
.L9:
mov DWORD PTR [r12], ebx
movsx r12, ebx
lea rdi, 0[0+r12*4]
call malloc@PLT
mov ecx, 1
mov r8, rax
xor eax, eax
test ebx, ebx
jle .L1
.p2align 4,,10
.p2align 3
.L13:
test al, 1
mov edx, ecx
cmovne edx, ebp
mov DWORD PTR [r8+rax*4], edx
add rax, 1
cmp r12, rax
jne .L13
.L1:
pop rbx
.cfi_def_cfa_offset 24
mov rax, r8
pop rbp
.cfi_def_cfa_offset 16
pop r12
.cfi_def_cfa_offset 8
ret
.cfi_endproc
.LFE39:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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 DWORD PTR -44[rbp], esi
mov DWORD PTR -48[rbp], edx
mov QWORD PTR -56[rbp], rcx
mov DWORD PTR -28[rbp], 0
jmp .L2
.L6:
mov DWORD PTR -24[rbp], 0
jmp .L3
.L5:
mov eax, DWORD PTR -28[rbp]
cdqe
lea rdx, 0[0+rax*8]
mov rax, QWORD PTR -40[rbp]
add rax, rdx
mov rdx, QWORD PTR [rax]
mov eax, DWORD PTR -24[rbp]
cdqe
sal rax, 2
add rax, rdx
mov eax, DWORD PTR [rax]
cmp eax, 1
jne .L4
mov eax, DWORD PTR -28[rbp]
mov DWORD PTR -20[rbp], eax
mov eax, DWORD PTR -24[rbp]
mov DWORD PTR -16[rbp], eax
.L4:
add DWORD PTR -24[rbp], 1
.L3:
mov eax, DWORD PTR -24[rbp]
cmp eax, DWORD PTR -44[rbp]
jl .L5
add DWORD PTR -28[rbp], 1
.L2:
mov eax, DWORD PTR -28[rbp]
cmp eax, DWORD PTR -44[rbp]
jl .L6
mov eax, DWORD PTR -44[rbp]
imul eax, eax
mov DWORD PTR -12[rbp], eax
cmp DWORD PTR -20[rbp], 0
jle .L7
mov eax, DWORD PTR -20[rbp]
cdqe
sal rax, 3
lea rdx, -8[rax]
mov rax, QWORD PTR -40[rbp]
add rax, rdx
mov rdx, QWORD PTR [rax]
mov eax, DWORD PTR -16[rbp]
cdqe
sal rax, 2
add rax, rdx
mov eax, DWORD PTR [rax]
cmp DWORD PTR -12[rbp], eax
jle .L7
mov eax, DWORD PTR -20[rbp]
cdqe
sal rax, 3
lea rdx, -8[rax]
mov rax, QWORD PTR -40[rbp]
add rax, rdx
mov rdx, QWORD PTR [rax]
mov eax, DWORD PTR -16[rbp]
cdqe
sal rax, 2
add rax, rdx
mov eax, DWORD PTR [rax]
mov DWORD PTR -12[rbp], eax
.L7:
mov eax, DWORD PTR -44[rbp]
sub eax, 1
cmp DWORD PTR -20[rbp], eax
jge .L8
mov eax, DWORD PTR -20[rbp]
cdqe
add rax, 1
lea rdx, 0[0+rax*8]
mov rax, QWORD PTR -40[rbp]
add rax, rdx
mov rdx, QWORD PTR [rax]
mov eax, DWORD PTR -16[rbp]
cdqe
sal rax, 2
add rax, rdx
mov eax, DWORD PTR [rax]
cmp DWORD PTR -12[rbp], eax
jle .L8
mov eax, DWORD PTR -20[rbp]
cdqe
add rax, 1
lea rdx, 0[0+rax*8]
mov rax, QWORD PTR -40[rbp]
add rax, rdx
mov rdx, QWORD PTR [rax]
mov eax, DWORD PTR -16[rbp]
cdqe
sal rax, 2
add rax, rdx
mov eax, DWORD PTR [rax]
mov DWORD PTR -12[rbp], eax
.L8:
cmp DWORD PTR -16[rbp], 0
jle .L9
mov eax, DWORD PTR -20[rbp]
cdqe
lea rdx, 0[0+rax*8]
mov rax, QWORD PTR -40[rbp]
add rax, rdx
mov rdx, QWORD PTR [rax]
mov eax, DWORD PTR -16[rbp]
cdqe
sal rax, 2
sub rax, 4
add rax, rdx
mov eax, DWORD PTR [rax]
cmp DWORD PTR -12[rbp], eax
jle .L9
mov eax, DWORD PTR -20[rbp]
cdqe
lea rdx, 0[0+rax*8]
mov rax, QWORD PTR -40[rbp]
add rax, rdx
mov rdx, QWORD PTR [rax]
mov eax, DWORD PTR -16[rbp]
cdqe
sal rax, 2
sub rax, 4
add rax, rdx
mov eax, DWORD PTR [rax]
mov DWORD PTR -12[rbp], eax
.L9:
mov eax, DWORD PTR -44[rbp]
sub eax, 1
cmp DWORD PTR -16[rbp], eax
jge .L10
mov eax, DWORD PTR -20[rbp]
cdqe
lea rdx, 0[0+rax*8]
mov rax, QWORD PTR -40[rbp]
add rax, rdx
mov rdx, QWORD PTR [rax]
mov eax, DWORD PTR -16[rbp]
cdqe
add rax, 1
sal rax, 2
add rax, rdx
mov eax, DWORD PTR [rax]
cmp DWORD PTR -12[rbp], eax
jle .L10
mov eax, DWORD PTR -20[rbp]
cdqe
lea rdx, 0[0+rax*8]
mov rax, QWORD PTR -40[rbp]
add rax, rdx
mov rdx, QWORD PTR [rax]
mov eax, DWORD PTR -16[rbp]
cdqe
add rax, 1
sal rax, 2
add rax, rdx
mov eax, DWORD PTR [rax]
mov DWORD PTR -12[rbp], eax
.L10:
mov rax, QWORD PTR -56[rbp]
mov edx, DWORD PTR -48[rbp]
mov DWORD PTR [rax], edx
mov eax, DWORD PTR -48[rbp]
cdqe
sal rax, 2
mov rdi, rax
call malloc@PLT
mov QWORD PTR -8[rbp], rax
mov DWORD PTR -28[rbp], 0
jmp .L11
.L14:
mov eax, DWORD PTR -28[rbp]
and eax, 1
test eax, eax
jne .L12
mov eax, DWORD PTR -28[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -8[rbp]
add rax, rdx
mov DWORD PTR [rax], 1
jmp .L13
.L12:
mov eax, DWORD PTR -28[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -8[rbp]
add rdx, rax
mov eax, DWORD PTR -12[rbp]
mov DWORD PTR [rdx], eax
.L13:
add DWORD PTR -28[rbp], 1
.L11:
mov eax, DWORD PTR -28[rbp]
cmp eax, DWORD PTR -48[rbp]
jl .L14
mov rax, QWORD PTR -8[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size func0, .-func0
.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:
|
eval/problem99/code.c | .file "code.c"
.intel_syntax noprefix
.text
.section .rodata.str1.1,"aMS",@progbits,1
.LC0:
.string "AEIOU"
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB34:
.cfi_startproc
endbr64
push r14
.cfi_def_cfa_offset 16
.cfi_offset 14, -16
push r13
.cfi_def_cfa_offset 24
.cfi_offset 13, -24
push r12
.cfi_def_cfa_offset 32
.cfi_offset 12, -32
push rbp
.cfi_def_cfa_offset 40
.cfi_offset 6, -40
push rbx
.cfi_def_cfa_offset 48
.cfi_offset 3, -48
cmp BYTE PTR [rdi], 0
je .L6
mov rbp, rdi
xor ebx, ebx
lea r14, .LC0[rip]
xor r12d, r12d
call strlen@PLT
lea r13, 1[rax]
shr r13
jmp .L3
.p2align 4,,10
.p2align 3
.L5:
movsx esi, BYTE PTR 0[rbp+rbx*2]
mov rdi, r14
call strchr@PLT
cmp rax, 1
sbb r12d, -1
add rbx, 1
cmp BYTE PTR 0[rbp+rbx], 0
je .L1
.L3:
cmp rbx, r13
jne .L5
.L1:
pop rbx
.cfi_remember_state
.cfi_def_cfa_offset 40
mov eax, r12d
pop rbp
.cfi_def_cfa_offset 32
pop r12
.cfi_def_cfa_offset 24
pop r13
.cfi_def_cfa_offset 16
pop r14
.cfi_def_cfa_offset 8
ret
.L6:
.cfi_restore_state
xor r12d, r12d
jmp .L1
.cfi_endproc
.LFE34:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.section .rodata
.LC0:
.string "AEIOU"
.text
.globl func0
.type func0, @function
func0:
.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 QWORD PTR -40[rbp], rdi
lea rax, .LC0[rip]
mov QWORD PTR -24[rbp], rax
mov DWORD PTR -32[rbp], 0
mov DWORD PTR -28[rbp], 0
jmp .L2
.L5:
mov eax, DWORD PTR -28[rbp]
add eax, eax
movsx rdx, eax
mov rax, QWORD PTR -40[rbp]
add rax, rdx
movzx eax, BYTE PTR [rax]
movsx edx, al
mov rax, QWORD PTR -24[rbp]
mov esi, edx
mov rdi, rax
call strchr@PLT
test rax, rax
je .L3
add DWORD PTR -32[rbp], 1
.L3:
add DWORD PTR -28[rbp], 1
.L2:
mov eax, DWORD PTR -28[rbp]
movsx rdx, eax
mov rax, QWORD PTR -40[rbp]
add rax, rdx
movzx eax, BYTE PTR [rax]
test al, al
je .L4
mov eax, DWORD PTR -28[rbp]
add eax, eax
movsx rbx, eax
mov rax, QWORD PTR -40[rbp]
mov rdi, rax
call strlen@PLT
cmp rbx, rax
jb .L5
.L4:
mov eax, DWORD PTR -32[rbp]
mov rbx, QWORD PTR -8[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size func0, .-func0
.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:
|
eval/problem12/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB50:
.cfi_startproc
endbr64
push r12
.cfi_def_cfa_offset 16
.cfi_offset 12, -16
mov r12, rsi
push rbp
.cfi_def_cfa_offset 24
.cfi_offset 6, -24
mov rbp, rdi
push rbx
.cfi_def_cfa_offset 32
.cfi_offset 3, -32
call strlen@PLT
mov rdi, r12
mov rbx, rax
call strlen@PLT
cmp eax, ebx
cmovl ebx, eax
lea edi, 1[rbx]
movsx rdi, edi
call malloc@PLT
mov r8, rax
test rax, rax
je .L1
movsx rcx, ebx
xor eax, eax
test ebx, ebx
jle .L3
.p2align 4,,10
.p2align 3
.L5:
movzx esi, BYTE PTR [r12+rax]
cmp BYTE PTR 0[rbp+rax], sil
setne dl
add edx, 48
mov BYTE PTR [r8+rax], dl
add rax, 1
cmp rax, rcx
jne .L5
.L3:
mov BYTE PTR [r8+rcx], 0
.L1:
pop rbx
.cfi_def_cfa_offset 24
mov rax, r8
pop rbp
.cfi_def_cfa_offset 16
pop r12
.cfi_def_cfa_offset 8
ret
.cfi_endproc
.LFE50:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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 QWORD PTR -40[rbp], rdi
mov QWORD PTR -48[rbp], rsi
mov rax, QWORD PTR -40[rbp]
mov rdi, rax
call strlen@PLT
mov DWORD PTR -20[rbp], eax
mov rax, QWORD PTR -48[rbp]
mov rdi, rax
call strlen@PLT
mov DWORD PTR -16[rbp], eax
mov eax, DWORD PTR -20[rbp]
cmp DWORD PTR -16[rbp], eax
cmovle eax, DWORD PTR -16[rbp]
mov DWORD PTR -12[rbp], eax
mov eax, DWORD PTR -12[rbp]
add eax, 1
cdqe
mov rdi, rax
call malloc@PLT
mov QWORD PTR -8[rbp], rax
cmp QWORD PTR -8[rbp], 0
jne .L2
mov eax, 0
jmp .L3
.L2:
mov DWORD PTR -24[rbp], 0
jmp .L4
.L7:
mov eax, DWORD PTR -24[rbp]
movsx rdx, eax
mov rax, QWORD PTR -40[rbp]
add rax, rdx
movzx edx, BYTE PTR [rax]
mov eax, DWORD PTR -24[rbp]
movsx rcx, eax
mov rax, QWORD PTR -48[rbp]
add rax, rcx
movzx eax, BYTE PTR [rax]
cmp dl, al
jne .L5
mov edx, 48
jmp .L6
.L5:
mov edx, 49
.L6:
mov eax, DWORD PTR -24[rbp]
movsx rcx, eax
mov rax, QWORD PTR -8[rbp]
add rax, rcx
mov BYTE PTR [rax], dl
add DWORD PTR -24[rbp], 1
.L4:
mov eax, DWORD PTR -24[rbp]
cmp eax, DWORD PTR -12[rbp]
jl .L7
mov eax, DWORD PTR -12[rbp]
movsx rdx, eax
mov rax, QWORD PTR -8[rbp]
add rax, rdx
mov BYTE PTR [rax], 0
mov rax, QWORD PTR -8[rbp]
.L3:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size func0, .-func0
.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:
|
eval/problem155/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB50:
.cfi_startproc
endbr64
push r15
.cfi_def_cfa_offset 16
.cfi_offset 15, -16
push r14
.cfi_def_cfa_offset 24
.cfi_offset 14, -24
push r13
.cfi_def_cfa_offset 32
.cfi_offset 13, -32
mov r13, rdi
mov rdi, rsi
push r12
.cfi_def_cfa_offset 40
.cfi_offset 12, -40
push rbp
.cfi_def_cfa_offset 48
.cfi_offset 6, -48
mov rbp, rsi
push rbx
.cfi_def_cfa_offset 56
.cfi_offset 3, -56
sub rsp, 24
.cfi_def_cfa_offset 80
call strlen@PLT
lea edi, 1[rax+rax]
mov rbx, rax
movsx rdi, edi
call malloc@PLT
mov r15, rax
test ebx, ebx
jle .L6
movsx r14, ebx
lea r12, [rax+r14]
lea eax, -1[rbx]
xor ebx, ebx
mov QWORD PTR 8[rsp], rax
jmp .L5
.p2align 4,,10
.p2align 3
.L4:
lea rax, 1[rbx]
cmp rbx, QWORD PTR 8[rsp]
je .L6
mov rbx, rax
.L5:
mov rdx, r14
lea rsi, 0[rbp+rbx]
mov rdi, r15
sub rdx, rbx
call strncpy@PLT
mov rdi, r12
mov rsi, rbp
mov rdx, rbx
sub rdi, rbx
call strncpy@PLT
mov BYTE PTR [r12], 0
mov rsi, r15
mov rdi, r13
call strstr@PLT
test rax, rax
je .L4
mov rdi, r15
call free@PLT
add rsp, 24
.cfi_remember_state
.cfi_def_cfa_offset 56
mov eax, 1
pop rbx
.cfi_def_cfa_offset 48
pop rbp
.cfi_def_cfa_offset 40
pop r12
.cfi_def_cfa_offset 32
pop r13
.cfi_def_cfa_offset 24
pop r14
.cfi_def_cfa_offset 16
pop r15
.cfi_def_cfa_offset 8
ret
.p2align 4,,10
.p2align 3
.L6:
.cfi_restore_state
mov rdi, r15
call free@PLT
add rsp, 24
.cfi_def_cfa_offset 56
xor eax, eax
pop rbx
.cfi_def_cfa_offset 48
pop rbp
.cfi_def_cfa_offset 40
pop r12
.cfi_def_cfa_offset 32
pop r13
.cfi_def_cfa_offset 24
pop r14
.cfi_def_cfa_offset 16
pop r15
.cfi_def_cfa_offset 8
ret
.cfi_endproc
.LFE50:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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 QWORD PTR -40[rbp], rdi
mov QWORD PTR -48[rbp], rsi
mov rax, QWORD PTR -40[rbp]
mov rdi, rax
call strlen@PLT
mov DWORD PTR -16[rbp], eax
mov rax, QWORD PTR -48[rbp]
mov rdi, rax
call strlen@PLT
mov DWORD PTR -12[rbp], eax
mov eax, DWORD PTR -12[rbp]
add eax, eax
add eax, 1
cdqe
mov rdi, rax
call malloc@PLT
mov QWORD PTR -8[rbp], rax
mov DWORD PTR -20[rbp], 0
jmp .L2
.L5:
mov eax, DWORD PTR -12[rbp]
sub eax, DWORD PTR -20[rbp]
movsx rdx, eax
mov eax, DWORD PTR -20[rbp]
movsx rcx, eax
mov rax, QWORD PTR -48[rbp]
add rcx, rax
mov rax, QWORD PTR -8[rbp]
mov rsi, rcx
mov rdi, rax
call strncpy@PLT
mov eax, DWORD PTR -20[rbp]
movsx rdx, eax
mov eax, DWORD PTR -12[rbp]
cdqe
mov ecx, DWORD PTR -20[rbp]
movsx rcx, ecx
sub rax, rcx
mov rsi, rax
mov rax, QWORD PTR -8[rbp]
lea rcx, [rsi+rax]
mov rax, QWORD PTR -48[rbp]
mov rsi, rax
mov rdi, rcx
call strncpy@PLT
mov eax, DWORD PTR -12[rbp]
movsx rdx, eax
mov rax, QWORD PTR -8[rbp]
add rax, rdx
mov BYTE PTR [rax], 0
mov rdx, QWORD PTR -8[rbp]
mov rax, QWORD PTR -40[rbp]
mov rsi, rdx
mov rdi, rax
call strstr@PLT
test rax, rax
je .L3
mov rax, QWORD PTR -8[rbp]
mov rdi, rax
call free@PLT
mov eax, 1
jmp .L4
.L3:
add DWORD PTR -20[rbp], 1
.L2:
mov eax, DWORD PTR -20[rbp]
cmp eax, DWORD PTR -12[rbp]
jl .L5
mov rax, QWORD PTR -8[rbp]
mov rdi, rax
call free@PLT
mov eax, 0
.L4:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size func0, .-func0
.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:
|
eval/problem67/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB34:
.cfi_startproc
endbr64
movsx eax, BYTE PTR [rdi]
test al, al
je .L5
add rdi, 1
xor r8d, r8d
.p2align 4,,10
.p2align 3
.L4:
lea edx, -65[rax]
add eax, r8d
cmp dl, 26
cmovb r8d, eax
movsx eax, BYTE PTR [rdi]
add rdi, 1
test al, al
jne .L4
mov eax, r8d
ret
.p2align 4,,10
.p2align 3
.L5:
xor r8d, r8d
mov eax, r8d
ret
.cfi_endproc
.LFE34:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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 -8[rbp], 0
mov DWORD PTR -4[rbp], 0
jmp .L2
.L4:
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 .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, 90
jg .L3
mov eax, DWORD PTR -4[rbp]
movsx rdx, eax
mov rax, QWORD PTR -24[rbp]
add rax, rdx
movzx eax, BYTE PTR [rax]
movsx eax, al
add DWORD PTR -8[rbp], eax
.L3:
add DWORD PTR -4[rbp], 1
.L2:
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 .L4
mov eax, DWORD PTR -8[rbp]
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size func0, .-func0
.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:
|
eval/problem57/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB34:
.cfi_startproc
endbr64
movzx eax, BYTE PTR [rdi]
test al, al
je .L7
add rdi, 1
xor edx, edx
jmp .L6
.p2align 4,,10
.p2align 3
.L3:
cmp al, 62
jne .L4
sub edx, 1
jb .L8
.L4:
movzx eax, BYTE PTR [rdi]
add rdi, 1
test al, al
je .L11
.L6:
cmp al, 60
jne .L3
movzx eax, BYTE PTR [rdi]
add rdi, 1
add edx, 1
test al, al
jne .L6
.L11:
test edx, edx
sete al
ret
.p2align 4,,10
.p2align 3
.L8:
xor eax, eax
ret
.L7:
mov eax, 1
ret
.cfi_endproc
.LFE34:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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 -8[rbp], 0
mov DWORD PTR -4[rbp], 0
jmp .L2
.L7:
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, 60
jne .L3
add DWORD PTR -8[rbp], 1
.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, 62
jne .L4
sub DWORD PTR -8[rbp], 1
.L4:
cmp DWORD PTR -8[rbp], 0
jns .L5
mov eax, 0
jmp .L6
.L5:
add DWORD PTR -4[rbp], 1
.L2:
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 .L7
cmp DWORD PTR -8[rbp], 0
je .L8
mov eax, 0
jmp .L6
.L8:
mov eax, 1
.L6:
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size func0, .-func0
.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:
|
eval/problem101/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB39:
.cfi_startproc
endbr64
push rbx
.cfi_def_cfa_offset 16
.cfi_offset 3, -16
movsx rdi, edi
mov rbx, rdi
sal rdi, 2
call malloc@PLT
mov DWORD PTR [rax], ebx
mov r8, rax
cmp ebx, 1
jle .L1
lea edx, -1[rbx]
lea rax, 4[rax]
lea rdx, [r8+rdx*4]
jmp .L3
.p2align 4,,10
.p2align 3
.L6:
add rax, 4
.L3:
add ebx, 2
mov DWORD PTR [rax], ebx
cmp rax, rdx
jne .L6
.L1:
mov rax, r8
pop rbx
.cfi_def_cfa_offset 8
ret
.cfi_endproc
.LFE39:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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 eax, DWORD PTR -20[rbp]
cdqe
sal rax, 2
mov rdi, rax
call malloc@PLT
mov QWORD PTR -8[rbp], rax
mov rax, QWORD PTR -8[rbp]
mov edx, DWORD PTR -20[rbp]
mov DWORD PTR [rax], edx
mov DWORD PTR -12[rbp], 1
jmp .L2
.L3:
mov eax, DWORD PTR -12[rbp]
cdqe
sal rax, 2
lea rdx, -4[rax]
mov rax, QWORD PTR -8[rbp]
add rax, rdx
mov edx, DWORD PTR [rax]
mov eax, DWORD PTR -12[rbp]
cdqe
lea rcx, 0[0+rax*4]
mov rax, QWORD PTR -8[rbp]
add rax, rcx
add edx, 2
mov DWORD PTR [rax], edx
add DWORD PTR -12[rbp], 1
.L2:
mov eax, DWORD PTR -12[rbp]
cmp eax, DWORD PTR -20[rbp]
jl .L3
mov rax, QWORD PTR -8[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size func0, .-func0
.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:
|
eval/problem54/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB23:
.cfi_startproc
endbr64
lea eax, [rdi+rsi]
ret
.cfi_endproc
.LFE23:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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
mov DWORD PTR -8[rbp], esi
mov edx, DWORD PTR -4[rbp]
mov eax, DWORD PTR -8[rbp]
add eax, edx
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size func0, .-func0
.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:
|
eval/problem148/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB39:
.cfi_startproc
endbr64
push r15
.cfi_def_cfa_offset 16
.cfi_offset 15, -16
push r14
.cfi_def_cfa_offset 24
.cfi_offset 14, -24
push r13
.cfi_def_cfa_offset 32
.cfi_offset 13, -32
push r12
.cfi_def_cfa_offset 40
.cfi_offset 12, -40
push rbp
.cfi_def_cfa_offset 48
.cfi_offset 6, -48
push rbx
.cfi_def_cfa_offset 56
.cfi_offset 3, -56
movsx rbx, edi
lea rdi, 0[0+rbx*4]
mov r14, rbx
sub rsp, 24
.cfi_def_cfa_offset 80
call malloc@PLT
mov rbp, rax
lea eax, 1[rbx]
cdqe
lea r15, 0[0+rax*8]
mov rdi, r15
mov QWORD PTR 8[rsp], r15
call malloc@PLT
mov rdi, r15
mov r12, rax
call malloc@PLT
mov r13, rax
test ebx, ebx
js .L33
lea rax, 8[0+rbx*8]
xor r15d, r15d
mov QWORD PTR [rsp], rbx
mov rbx, r15
mov r15, rax
.p2align 4,,10
.p2align 3
.L6:
mov esi, 4
mov edi, 3
call calloc@PLT
mov esi, 4
mov edi, 3
mov QWORD PTR [r12+rbx], rax
call calloc@PLT
mov QWORD PTR 0[r13+rbx], rax
add rbx, 8
cmp r15, rbx
jne .L6
mov r9, QWORD PTR [r12]
mov r10, QWORD PTR 0[r13]
mov rbx, QWORD PTR [rsp]
mov QWORD PTR [r9], 0
mov DWORD PTR 8[r9], 0
mov QWORD PTR [r10], 0
mov DWORD PTR 8[r10], 0
test r14d, r14d
jle .L8
mov rdi, r9
mov ecx, 1
mov esi, 2863311531
jmp .L5
.p2align 4,,10
.p2align 3
.L34:
add rcx, 1
mov rdi, rdx
.L5:
lea edx, -1[rcx]
imul edx, ecx
lea eax, 1[rdx]
mov rdx, rax
imul rax, rsi
shr rax, 33
lea r8d, [rax+rax*2]
mov eax, edx
mov rdx, QWORD PTR [r12+rcx*8]
sub eax, r8d
mov r8d, DWORD PTR [rdi]
mov DWORD PTR -4[rbp+rcx*4], eax
cdqe
mov DWORD PTR [rdx], r8d
mov r8d, DWORD PTR 4[rdi]
mov DWORD PTR 4[rdx], r8d
mov edi, DWORD PTR 8[rdi]
mov DWORD PTR 8[rdx], edi
add DWORD PTR [rdx+rax*4], 1
cmp rcx, rbx
jne .L34
.L8:
mov DWORD PTR [rsp], 2
test r14d, r14d
jle .L16
.L36:
mov r15, r9
mov rax, r10
mov r11d, 1
.p2align 4,,10
.p2align 3
.L12:
mov edx, DWORD PTR [rax]
mov rcx, QWORD PTR 0[r13+r11*8]
mov esi, DWORD PTR -4[rbp+r11*4]
mov DWORD PTR [rcx], edx
mov edx, DWORD PTR 4[rax]
mov DWORD PTR 4[rcx], edx
mov eax, DWORD PTR 8[rax]
xor edx, edx
mov DWORD PTR 8[rcx], eax
.L10:
lea eax, [rsi+rdx]
movsx rdi, eax
mov r8d, eax
imul rdi, rdi, 1431655766
sar r8d, 31
shr rdi, 32
sub edi, r8d
lea edi, [rdi+rdi*2]
sub eax, edi
mov edi, DWORD PTR [r15+rdx*4]
add rdx, 1
cdqe
add DWORD PTR [rcx+rax*4], edi
cmp rdx, 3
jne .L10
cmp r11, rbx
je .L19
mov r15, QWORD PTR [r12+r11*8]
mov rax, rcx
add r11, 1
jmp .L12
.p2align 4,,10
.p2align 3
.L19:
mov rcx, r9
mov rax, r10
xor edx, edx
jmp .L11
.p2align 4,,10
.p2align 3
.L35:
mov rax, QWORD PTR 0[r13+rdx*8]
mov rcx, QWORD PTR [r12+rdx*8]
.L11:
mov rsi, QWORD PTR [rax]
add rdx, 1
mov QWORD PTR [rax], 0
mov QWORD PTR [rcx], rsi
mov esi, DWORD PTR 8[rax]
mov DWORD PTR 8[rax], 0
mov DWORD PTR 8[rcx], esi
cmp r14d, edx
jge .L35
.L14:
cmp DWORD PTR [rsp], 1
je .L15
mov DWORD PTR [rsp], 1
test r14d, r14d
jg .L36
.L16:
jne .L14
mov rax, QWORD PTR [r10]
mov ecx, 3
mov rdi, r10
mov QWORD PTR [r9], rax
mov eax, DWORD PTR 8[r10]
mov DWORD PTR 8[r9], eax
mov eax, r14d
rep stosd
jmp .L14
.p2align 4,,10
.p2align 3
.L15:
mov rax, QWORD PTR 8[rsp]
mov rax, QWORD PTR -8[r12+rax]
mov r15d, DWORD PTR [rax]
test r14d, r14d
js .L17
lea rbx, 8[0+rbx*8]
xor r14d, r14d
mov rdi, r9
jmp .L18
.p2align 4,,10
.p2align 3
.L37:
mov rdi, QWORD PTR [r12+r14]
.L18:
call free@PLT
mov rdi, QWORD PTR 0[r13+r14]
add r14, 8
call free@PLT
cmp r14, rbx
jne .L37
.L17:
mov rdi, r12
call free@PLT
mov rdi, r13
call free@PLT
mov rdi, rbp
call free@PLT
add rsp, 24
.cfi_remember_state
.cfi_def_cfa_offset 56
mov eax, r15d
pop rbx
.cfi_def_cfa_offset 48
pop rbp
.cfi_def_cfa_offset 40
pop r12
.cfi_def_cfa_offset 32
pop r13
.cfi_def_cfa_offset 24
pop r14
.cfi_def_cfa_offset 16
pop r15
.cfi_def_cfa_offset 8
ret
.L33:
.cfi_restore_state
mov r9, QWORD PTR [r12]
mov r10, QWORD PTR [rax]
mov QWORD PTR [r9], 0
mov DWORD PTR 8[r9], 0
mov QWORD PTR [r10], 0
mov DWORD PTR 8[r10], 0
jmp .L8
.cfi_endproc
.LFE39:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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, 104
.cfi_offset 3, -24
mov DWORD PTR -100[rbp], edi
mov eax, DWORD PTR -100[rbp]
cdqe
sal rax, 2
mov rdi, rax
call malloc@PLT
mov QWORD PTR -40[rbp], rax
mov eax, DWORD PTR -100[rbp]
add eax, 1
cdqe
sal rax, 3
mov rdi, rax
call malloc@PLT
mov QWORD PTR -32[rbp], rax
mov eax, DWORD PTR -100[rbp]
add eax, 1
cdqe
sal rax, 3
mov rdi, rax
call malloc@PLT
mov QWORD PTR -24[rbp], rax
mov DWORD PTR -84[rbp], 0
jmp .L2
.L3:
mov eax, DWORD PTR -84[rbp]
cdqe
lea rdx, 0[0+rax*8]
mov rax, QWORD PTR -32[rbp]
lea rbx, [rdx+rax]
mov esi, 4
mov edi, 3
call calloc@PLT
mov QWORD PTR [rbx], rax
mov eax, DWORD PTR -84[rbp]
cdqe
lea rdx, 0[0+rax*8]
mov rax, QWORD PTR -24[rbp]
lea rbx, [rdx+rax]
mov esi, 4
mov edi, 3
call calloc@PLT
mov QWORD PTR [rbx], rax
add DWORD PTR -84[rbp], 1
.L2:
mov eax, DWORD PTR -84[rbp]
cmp eax, DWORD PTR -100[rbp]
jle .L3
mov rax, QWORD PTR -32[rbp]
mov rax, QWORD PTR [rax]
lea rdx, 8[rax]
mov DWORD PTR [rdx], 0
mov rax, QWORD PTR -32[rbp]
mov rax, QWORD PTR [rax]
add rax, 4
mov edx, DWORD PTR [rdx]
mov DWORD PTR [rax], edx
mov rdx, QWORD PTR -32[rbp]
mov rdx, QWORD PTR [rdx]
mov eax, DWORD PTR [rax]
mov DWORD PTR [rdx], eax
mov rax, QWORD PTR -24[rbp]
mov rax, QWORD PTR [rax]
lea rdx, 8[rax]
mov DWORD PTR [rdx], 0
mov rax, QWORD PTR -24[rbp]
mov rax, QWORD PTR [rax]
add rax, 4
mov edx, DWORD PTR [rdx]
mov DWORD PTR [rax], edx
mov rdx, QWORD PTR -24[rbp]
mov rdx, QWORD PTR [rdx]
mov eax, DWORD PTR [rax]
mov DWORD PTR [rdx], eax
mov DWORD PTR -80[rbp], 1
jmp .L4
.L7:
mov eax, DWORD PTR -80[rbp]
imul eax, eax
sub eax, DWORD PTR -80[rbp]
lea edx, 1[rax]
mov eax, DWORD PTR -80[rbp]
cdqe
sal rax, 2
lea rcx, -4[rax]
mov rax, QWORD PTR -40[rbp]
lea rsi, [rcx+rax]
movsx rax, edx
imul rax, rax, 1431655766
shr rax, 32
mov ecx, edx
sar ecx, 31
sub eax, ecx
mov ecx, eax
add ecx, ecx
add ecx, eax
mov eax, edx
sub eax, ecx
mov DWORD PTR [rsi], eax
mov DWORD PTR -76[rbp], 0
jmp .L5
.L6:
mov eax, DWORD PTR -80[rbp]
cdqe
sal rax, 3
lea rdx, -8[rax]
mov rax, QWORD PTR -32[rbp]
add rax, rdx
mov rdx, QWORD PTR [rax]
mov eax, DWORD PTR -76[rbp]
cdqe
sal rax, 2
add rax, rdx
mov edx, DWORD PTR -80[rbp]
movsx rdx, edx
lea rcx, 0[0+rdx*8]
mov rdx, QWORD PTR -32[rbp]
add rdx, rcx
mov rcx, QWORD PTR [rdx]
mov edx, DWORD PTR -76[rbp]
movsx rdx, edx
sal rdx, 2
add rdx, rcx
mov eax, DWORD PTR [rax]
mov DWORD PTR [rdx], eax
add DWORD PTR -76[rbp], 1
.L5:
cmp DWORD PTR -76[rbp], 2
jle .L6
mov eax, DWORD PTR -80[rbp]
cdqe
lea rdx, 0[0+rax*8]
mov rax, QWORD PTR -32[rbp]
add rax, rdx
mov rdx, QWORD PTR [rax]
mov eax, DWORD PTR -80[rbp]
cdqe
sal rax, 2
lea rcx, -4[rax]
mov rax, QWORD PTR -40[rbp]
add rax, rcx
mov eax, DWORD PTR [rax]
cdqe
sal rax, 2
add rax, rdx
mov edx, DWORD PTR [rax]
mov eax, DWORD PTR -80[rbp]
cdqe
lea rcx, 0[0+rax*8]
mov rax, QWORD PTR -32[rbp]
add rax, rcx
mov rcx, QWORD PTR [rax]
mov eax, DWORD PTR -80[rbp]
cdqe
sal rax, 2
lea rsi, -4[rax]
mov rax, QWORD PTR -40[rbp]
add rax, rsi
mov eax, DWORD PTR [rax]
cdqe
sal rax, 2
add rax, rcx
add edx, 1
mov DWORD PTR [rax], edx
add DWORD PTR -80[rbp], 1
.L4:
mov eax, DWORD PTR -80[rbp]
cmp eax, DWORD PTR -100[rbp]
jle .L7
mov DWORD PTR -72[rbp], 1
jmp .L8
.L20:
mov DWORD PTR -68[rbp], 1
jmp .L9
.L15:
mov DWORD PTR -64[rbp], 0
jmp .L10
.L11:
mov eax, DWORD PTR -68[rbp]
cdqe
sal rax, 3
lea rdx, -8[rax]
mov rax, QWORD PTR -24[rbp]
add rax, rdx
mov rdx, QWORD PTR [rax]
mov eax, DWORD PTR -64[rbp]
cdqe
sal rax, 2
add rax, rdx
mov edx, DWORD PTR -68[rbp]
movsx rdx, edx
lea rcx, 0[0+rdx*8]
mov rdx, QWORD PTR -24[rbp]
add rdx, rcx
mov rcx, QWORD PTR [rdx]
mov edx, DWORD PTR -64[rbp]
movsx rdx, edx
sal rdx, 2
add rdx, rcx
mov eax, DWORD PTR [rax]
mov DWORD PTR [rdx], eax
add DWORD PTR -64[rbp], 1
.L10:
cmp DWORD PTR -64[rbp], 2
jle .L11
cmp DWORD PTR -68[rbp], 0
jle .L12
mov DWORD PTR -60[rbp], 0
jmp .L13
.L14:
mov eax, DWORD PTR -68[rbp]
cdqe
lea rdx, 0[0+rax*8]
mov rax, QWORD PTR -24[rbp]
add rax, rdx
mov rsi, QWORD PTR [rax]
mov eax, DWORD PTR -68[rbp]
cdqe
sal rax, 2
lea rdx, -4[rax]
mov rax, QWORD PTR -40[rbp]
add rax, rdx
mov edx, DWORD PTR [rax]
mov eax, DWORD PTR -60[rbp]
add edx, eax
movsx rax, edx
imul rax, rax, 1431655766
shr rax, 32
mov ecx, edx
sar ecx, 31
sub eax, ecx
mov ecx, eax
add ecx, ecx
add ecx, eax
mov eax, edx
sub eax, ecx
movsx rdx, eax
sal rdx, 2
add rdx, rsi
mov esi, DWORD PTR [rdx]
mov edx, DWORD PTR -68[rbp]
movsx rdx, edx
sal rdx, 3
lea rcx, -8[rdx]
mov rdx, QWORD PTR -32[rbp]
add rdx, rcx
mov rcx, QWORD PTR [rdx]
mov edx, DWORD PTR -60[rbp]
movsx rdx, edx
sal rdx, 2
add rdx, rcx
mov ecx, DWORD PTR [rdx]
mov edx, DWORD PTR -68[rbp]
movsx rdx, edx
lea rdi, 0[0+rdx*8]
mov rdx, QWORD PTR -24[rbp]
add rdx, rdi
mov rdx, QWORD PTR [rdx]
cdqe
sal rax, 2
add rax, rdx
lea edx, [rsi+rcx]
mov DWORD PTR [rax], edx
add DWORD PTR -60[rbp], 1
.L13:
cmp DWORD PTR -60[rbp], 2
jle .L14
.L12:
add DWORD PTR -68[rbp], 1
.L9:
mov eax, DWORD PTR -68[rbp]
cmp eax, DWORD PTR -100[rbp]
jle .L15
mov DWORD PTR -56[rbp], 0
jmp .L16
.L19:
mov DWORD PTR -52[rbp], 0
jmp .L17
.L18:
mov eax, DWORD PTR -56[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 -52[rbp]
cdqe
sal rax, 2
add rax, rdx
mov edx, DWORD PTR -56[rbp]
movsx rdx, edx
lea rcx, 0[0+rdx*8]
mov rdx, QWORD PTR -32[rbp]
add rdx, rcx
mov rcx, QWORD PTR [rdx]
mov edx, DWORD PTR -52[rbp]
movsx rdx, edx
sal rdx, 2
add rdx, rcx
mov eax, DWORD PTR [rax]
mov DWORD PTR [rdx], eax
mov eax, DWORD PTR -56[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 -52[rbp]
cdqe
sal rax, 2
add rax, rdx
mov DWORD PTR [rax], 0
add DWORD PTR -52[rbp], 1
.L17:
cmp DWORD PTR -52[rbp], 2
jle .L18
add DWORD PTR -56[rbp], 1
.L16:
mov eax, DWORD PTR -56[rbp]
cmp eax, DWORD PTR -100[rbp]
jle .L19
add DWORD PTR -72[rbp], 1
.L8:
cmp DWORD PTR -72[rbp], 2
jle .L20
mov eax, DWORD PTR -100[rbp]
cdqe
lea rdx, 0[0+rax*8]
mov rax, QWORD PTR -32[rbp]
add rax, rdx
mov rax, QWORD PTR [rax]
mov eax, DWORD PTR [rax]
mov DWORD PTR -44[rbp], eax
mov DWORD PTR -48[rbp], 0
jmp .L21
.L22:
mov eax, DWORD PTR -48[rbp]
cdqe
lea rdx, 0[0+rax*8]
mov rax, QWORD PTR -32[rbp]
add rax, rdx
mov rax, QWORD PTR [rax]
mov rdi, rax
call free@PLT
mov eax, DWORD PTR -48[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
add DWORD PTR -48[rbp], 1
.L21:
mov eax, DWORD PTR -48[rbp]
cmp eax, DWORD PTR -100[rbp]
jle .L22
mov rax, QWORD PTR -32[rbp]
mov rdi, rax
call free@PLT
mov rax, QWORD PTR -24[rbp]
mov rdi, rax
call free@PLT
mov rax, QWORD PTR -40[rbp]
mov rdi, rax
call free@PLT
mov eax, DWORD PTR -44[rbp]
mov rbx, QWORD PTR -8[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size func0, .-func0
.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:
|
eval/problem137/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB23:
.cfi_startproc
endbr64
mov r8, rdx
test esi, esi
jle .L8
lea eax, -1[rsi]
xor edx, edx
xor ecx, ecx
lea rsi, 4[rdi+rax*4]
.p2align 4,,10
.p2align 3
.L7:
mov eax, DWORD PTR [rdi]
test eax, eax
js .L22
je .L4
test edx, edx
je .L10
cmp eax, edx
jge .L4
.L10:
mov edx, eax
.L4:
add rdi, 4
cmp rsi, rdi
jne .L7
mov DWORD PTR [r8], ecx
mov DWORD PTR 4[r8], edx
ret
.p2align 4,,10
.p2align 3
.L22:
cmp eax, ecx
jg .L9
test ecx, ecx
jne .L4
.L9:
mov ecx, eax
jmp .L4
.p2align 4,,10
.p2align 3
.L8:
xor edx, edx
xor ecx, ecx
mov DWORD PTR [r8], ecx
mov DWORD PTR 4[r8], edx
ret
.cfi_endproc
.LFE23:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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 QWORD PTR -40[rbp], rdx
mov DWORD PTR -12[rbp], 0
mov DWORD PTR -8[rbp], 0
mov DWORD PTR -4[rbp], 0
jmp .L2
.L7:
mov eax, DWORD PTR -4[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -24[rbp]
add rax, rdx
mov eax, DWORD PTR [rax]
test eax, eax
jns .L3
cmp DWORD PTR -12[rbp], 0
je .L4
mov eax, DWORD PTR -4[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 -12[rbp], eax
jge .L3
.L4:
mov eax, DWORD PTR -4[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 -12[rbp], eax
.L3:
mov eax, DWORD PTR -4[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -24[rbp]
add rax, rdx
mov eax, DWORD PTR [rax]
test eax, eax
jle .L5
cmp DWORD PTR -8[rbp], 0
je .L6
mov eax, DWORD PTR -4[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 -8[rbp], eax
jle .L5
.L6:
mov eax, DWORD PTR -4[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
.L5:
add DWORD PTR -4[rbp], 1
.L2:
mov eax, DWORD PTR -4[rbp]
cmp eax, DWORD PTR -28[rbp]
jl .L7
mov rax, QWORD PTR -40[rbp]
mov edx, DWORD PTR -12[rbp]
mov DWORD PTR [rax], edx
mov rax, QWORD PTR -40[rbp]
lea rdx, 4[rax]
mov eax, DWORD PTR -8[rbp]
mov DWORD PTR [rdx], eax
nop
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size func0, .-func0
.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:
|
eval/problem59/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB39:
.cfi_startproc
endbr64
push r14
.cfi_def_cfa_offset 16
.cfi_offset 14, -16
mov r14, rdi
movsx rdi, esi
push r13
.cfi_def_cfa_offset 24
.cfi_offset 13, -24
mov r13, rdi
sal rdi, 2
push r12
.cfi_def_cfa_offset 32
.cfi_offset 12, -32
mov r12d, ecx
push rbp
.cfi_def_cfa_offset 40
.cfi_offset 6, -40
mov rbp, rdx
push rbx
.cfi_def_cfa_offset 48
.cfi_offset 3, -48
mov rbx, r8
call malloc@PLT
mov r8, rax
test r13d, r13d
jle .L14
lea eax, -1[r13]
mov rdi, r14
lea r11, 4[r8]
xor r9d, r9d
lea r10, 4[r14+rax*4]
lea eax, -1[r12]
lea rsi, 4[rbp+rax*4]
.p2align 4,,10
.p2align 3
.L3:
test r9d, r9d
je .L10
lea ecx, -1[r9]
mov edx, DWORD PTR [rdi]
mov rax, r8
lea rcx, [r11+rcx*4]
jmp .L5
.p2align 4,,10
.p2align 3
.L23:
add rax, 4
cmp rax, rcx
je .L10
.L5:
cmp DWORD PTR [rax], edx
jne .L23
.L4:
add rdi, 4
cmp rdi, r10
jne .L3
.L8:
lea edx, -1[r9]
test edx, edx
jle .L2
lea r10, 4[r8]
.p2align 4,,10
.p2align 3
.L11:
sub edx, 1
mov rax, r8
mov rdi, rdx
lea rsi, [r10+rdx*4]
.p2align 4,,10
.p2align 3
.L13:
mov edx, DWORD PTR [rax]
mov ecx, DWORD PTR 4[rax]
cmp edx, ecx
jle .L12
mov DWORD PTR [rax], ecx
mov DWORD PTR 4[rax], edx
.L12:
add rax, 4
cmp rsi, rax
jne .L13
mov edx, edi
test edi, edi
jne .L11
.L2:
mov DWORD PTR [rbx], r9d
mov rax, r8
pop rbx
.cfi_remember_state
.cfi_def_cfa_offset 40
pop rbp
.cfi_def_cfa_offset 32
pop r12
.cfi_def_cfa_offset 24
pop r13
.cfi_def_cfa_offset 16
pop r14
.cfi_def_cfa_offset 8
ret
.p2align 4,,10
.p2align 3
.L10:
.cfi_restore_state
test r12d, r12d
jle .L4
mov edx, DWORD PTR [rdi]
mov rax, rbp
jmp .L7
.p2align 4,,10
.p2align 3
.L6:
add rax, 4
cmp rax, rsi
je .L4
.L7:
cmp edx, DWORD PTR [rax]
jne .L6
movsx rax, r9d
add rdi, 4
add r9d, 1
mov DWORD PTR [r8+rax*4], edx
cmp rdi, r10
jne .L3
jmp .L8
.L14:
xor r9d, r9d
mov rax, r8
mov DWORD PTR [rbx], r9d
pop rbx
.cfi_def_cfa_offset 40
pop rbp
.cfi_def_cfa_offset 32
pop r12
.cfi_def_cfa_offset 24
pop r13
.cfi_def_cfa_offset 16
pop r14
.cfi_def_cfa_offset 8
ret
.cfi_endproc
.LFE39:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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 DWORD PTR -44[rbp], esi
mov QWORD PTR -56[rbp], rdx
mov DWORD PTR -48[rbp], ecx
mov QWORD PTR -64[rbp], r8
mov eax, DWORD PTR -44[rbp]
cdqe
sal rax, 2
mov rdi, rax
call malloc@PLT
mov QWORD PTR -8[rbp], rax
mov DWORD PTR -32[rbp], 0
mov DWORD PTR -28[rbp], 0
jmp .L2
.L11:
mov DWORD PTR -16[rbp], 0
mov DWORD PTR -20[rbp], 0
jmp .L3
.L6:
mov eax, DWORD PTR -20[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -8[rbp]
add rax, rdx
mov edx, DWORD PTR [rax]
mov eax, DWORD PTR -28[rbp]
cdqe
lea rcx, 0[0+rax*4]
mov rax, QWORD PTR -40[rbp]
add rax, rcx
mov eax, DWORD PTR [rax]
cmp edx, eax
jne .L4
mov DWORD PTR -16[rbp], 1
jmp .L5
.L4:
add DWORD PTR -20[rbp], 1
.L3:
mov eax, DWORD PTR -20[rbp]
cmp eax, DWORD PTR -32[rbp]
jl .L6
.L5:
cmp DWORD PTR -16[rbp], 0
jne .L7
mov DWORD PTR -24[rbp], 0
jmp .L8
.L10:
mov eax, DWORD PTR -28[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -40[rbp]
add rax, rdx
mov edx, DWORD PTR [rax]
mov eax, DWORD PTR -24[rbp]
cdqe
lea rcx, 0[0+rax*4]
mov rax, QWORD PTR -56[rbp]
add rax, rcx
mov eax, DWORD PTR [rax]
cmp edx, eax
jne .L9
mov eax, DWORD PTR -28[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -40[rbp]
lea rcx, [rdx+rax]
mov eax, DWORD PTR -32[rbp]
lea edx, 1[rax]
mov DWORD PTR -32[rbp], edx
cdqe
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
jmp .L7
.L9:
add DWORD PTR -24[rbp], 1
.L8:
mov eax, DWORD PTR -24[rbp]
cmp eax, DWORD PTR -48[rbp]
jl .L10
.L7:
add DWORD PTR -28[rbp], 1
.L2:
mov eax, DWORD PTR -28[rbp]
cmp eax, DWORD PTR -44[rbp]
jl .L11
mov DWORD PTR -28[rbp], 0
jmp .L12
.L16:
mov DWORD PTR -24[rbp], 0
jmp .L13
.L15:
mov eax, DWORD PTR -24[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -8[rbp]
add rax, rdx
mov edx, DWORD PTR [rax]
mov eax, DWORD PTR -24[rbp]
cdqe
add rax, 1
lea rcx, 0[0+rax*4]
mov rax, QWORD PTR -8[rbp]
add rax, rcx
mov eax, DWORD PTR [rax]
cmp edx, eax
jle .L14
mov eax, DWORD PTR -24[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -8[rbp]
add rax, rdx
mov eax, DWORD PTR [rax]
mov DWORD PTR -12[rbp], eax
mov eax, DWORD PTR -24[rbp]
cdqe
add rax, 1
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -8[rbp]
add rax, rdx
mov edx, DWORD PTR -24[rbp]
movsx rdx, edx
lea rcx, 0[0+rdx*4]
mov rdx, QWORD PTR -8[rbp]
add rdx, rcx
mov eax, DWORD PTR [rax]
mov DWORD PTR [rdx], eax
mov eax, DWORD PTR -24[rbp]
cdqe
add rax, 1
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -8[rbp]
add rdx, rax
mov eax, DWORD PTR -12[rbp]
mov DWORD PTR [rdx], eax
.L14:
add DWORD PTR -24[rbp], 1
.L13:
mov eax, DWORD PTR -32[rbp]
sub eax, DWORD PTR -28[rbp]
sub eax, 1
cmp DWORD PTR -24[rbp], eax
jl .L15
add DWORD PTR -28[rbp], 1
.L12:
mov eax, DWORD PTR -32[rbp]
sub eax, 1
cmp DWORD PTR -28[rbp], eax
jl .L16
mov rax, QWORD PTR -64[rbp]
mov edx, DWORD PTR -32[rbp]
mov DWORD PTR [rax], edx
mov rax, QWORD PTR -8[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size func0, .-func0
.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:
|
eval/problem132/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB23:
.cfi_startproc
endbr64
xor r9d, r9d
test edi, edi
jle .L1
mov r8d, 1
mov esi, 3435973837
jmp .L4
.p2align 4,,10
.p2align 3
.L6:
mov edi, eax
.L4:
mov eax, edi
mov rdx, rax
imul rdx, rsi
shr rdx, 35
lea ecx, [rdx+rdx*4]
mov edx, edi
add ecx, ecx
sub edx, ecx
mov ecx, edi
and ecx, 1
je .L3
imul r8d, edx
mov r9d, ecx
.L3:
imul rax, rsi
shr rax, 35
cmp edi, 9
jg .L6
test r9d, r9d
cmovne r9d, r8d
.L1:
mov eax, r9d
ret
.cfi_endproc
.LFE23:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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 DWORD PTR -12[rbp], 1
mov DWORD PTR -8[rbp], 0
jmp .L2
.L4:
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 -4[rbp], edx
mov eax, DWORD PTR -4[rbp]
cdq
shr edx, 31
add eax, edx
and eax, 1
sub eax, edx
cmp eax, 1
jne .L3
mov DWORD PTR -8[rbp], 1
mov eax, DWORD PTR -12[rbp]
imul eax, DWORD PTR -4[rbp]
mov DWORD PTR -12[rbp], eax
.L3:
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
.L2:
cmp DWORD PTR -20[rbp], 0
jg .L4
cmp DWORD PTR -8[rbp], 0
je .L5
mov eax, DWORD PTR -12[rbp]
jmp .L7
.L5:
mov eax, 0
.L7:
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size func0, .-func0
.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:
|
eval/problem46/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB23:
.cfi_startproc
endbr64
mulss xmm0, xmm1
mulss xmm0, DWORD PTR .LC0[rip]
ret
.cfi_endproc
.LFE23:
.size func0, .-func0
.section .rodata.cst4,"aM",@progbits,4
.align 4
.LC0:
.long 1056964608
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
movss DWORD PTR -4[rbp], xmm0
movss DWORD PTR -8[rbp], xmm1
movss xmm0, DWORD PTR -4[rbp]
movaps xmm1, xmm0
mulss xmm1, DWORD PTR -8[rbp]
movss xmm0, DWORD PTR .LC0[rip]
mulss xmm0, xmm1
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size func0, .-func0
.section .rodata
.align 4
.LC0:
.long 1056964608
.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:
|
eval/problem117/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB39:
.cfi_startproc
endbr64
push r13
.cfi_def_cfa_offset 16
.cfi_offset 13, -16
push r12
.cfi_def_cfa_offset 24
.cfi_offset 12, -24
push rbp
.cfi_def_cfa_offset 32
.cfi_offset 6, -32
mov ebp, esi
push rbx
.cfi_def_cfa_offset 40
.cfi_offset 3, -40
test ebp, ebp
jle .L1
mov r12, rdi
lea r10, 4[rdi]
lea r13d, -1[rbp]
mov ebx, 1
add r12, 8
cmp rbx, rbp
je .L1
.p2align 4,,10
.p2align 3
.L25:
mov eax, r13d
mov rdi, r10
sub eax, ebx
lea rax, -1[rbx+rax]
lea r11, [r12+rax*4]
.p2align 4,,10
.p2align 3
.L9:
mov r8d, DWORD PTR -4[r10]
mov r9d, DWORD PTR [rdi]
test r8d, r8d
jle .L3
mov eax, r8d
xor ecx, ecx
.p2align 4,,10
.p2align 3
.L4:
mov edx, eax
and edx, 1
add ecx, edx
sar eax
jne .L4
test r9d, r9d
jle .L5
.L11:
mov edx, r9d
xor eax, eax
.p2align 4,,10
.p2align 3
.L6:
mov esi, edx
and esi, 1
add eax, esi
sar edx
jne .L6
.L5:
cmp ecx, eax
jg .L7
sete al
.L12:
cmp r8d, r9d
jle .L8
test al, al
jne .L7
.L8:
add rdi, 4
cmp rdi, r11
jne .L9
add rbx, 1
add r10, 4
cmp rbx, rbp
jne .L25
.L1:
pop rbx
.cfi_remember_state
.cfi_def_cfa_offset 32
pop rbp
.cfi_def_cfa_offset 24
pop r12
.cfi_def_cfa_offset 16
pop r13
.cfi_def_cfa_offset 8
ret
.p2align 4,,10
.p2align 3
.L7:
.cfi_restore_state
mov DWORD PTR -4[r10], r9d
mov DWORD PTR [rdi], r8d
jmp .L8
.p2align 4,,10
.p2align 3
.L3:
xor ecx, ecx
mov eax, 1
test r9d, r9d
jg .L11
jmp .L12
.cfi_endproc
.LFE39:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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 -40[rbp], rdi
mov DWORD PTR -44[rbp], esi
mov DWORD PTR -12[rbp], 0
jmp .L2
.L11:
mov eax, DWORD PTR -12[rbp]
add eax, 1
mov DWORD PTR -8[rbp], eax
jmp .L3
.L10:
mov DWORD PTR -24[rbp], 0
mov eax, DWORD PTR -12[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -40[rbp]
add rax, rdx
mov eax, DWORD PTR [rax]
mov DWORD PTR -20[rbp], eax
mov eax, DWORD PTR -8[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -40[rbp]
add rax, rdx
mov eax, DWORD PTR [rax]
mov DWORD PTR -16[rbp], eax
jmp .L4
.L5:
mov eax, DWORD PTR -20[rbp]
and eax, 1
add DWORD PTR -24[rbp], eax
sar DWORD PTR -20[rbp]
.L4:
cmp DWORD PTR -20[rbp], 0
jg .L5
mov eax, DWORD PTR -24[rbp]
mov DWORD PTR -20[rbp], eax
mov DWORD PTR -24[rbp], 0
jmp .L6
.L7:
mov eax, DWORD PTR -16[rbp]
and eax, 1
add DWORD PTR -24[rbp], eax
sar DWORD PTR -16[rbp]
.L6:
cmp DWORD PTR -16[rbp], 0
jg .L7
mov eax, DWORD PTR -24[rbp]
mov DWORD PTR -16[rbp], eax
mov eax, DWORD PTR -16[rbp]
cmp eax, DWORD PTR -20[rbp]
jl .L8
mov eax, DWORD PTR -16[rbp]
cmp eax, DWORD PTR -20[rbp]
jne .L9
mov eax, DWORD PTR -8[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -40[rbp]
add rax, rdx
mov edx, DWORD PTR [rax]
mov eax, DWORD PTR -12[rbp]
cdqe
lea rcx, 0[0+rax*4]
mov rax, QWORD PTR -40[rbp]
add rax, rcx
mov eax, DWORD PTR [rax]
cmp edx, eax
jge .L9
.L8:
mov eax, DWORD PTR -12[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -40[rbp]
add rax, rdx
mov eax, DWORD PTR [rax]
mov DWORD PTR -4[rbp], eax
mov eax, DWORD PTR -8[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -40[rbp]
add rax, rdx
mov edx, DWORD PTR -12[rbp]
movsx rdx, edx
lea rcx, 0[0+rdx*4]
mov rdx, QWORD PTR -40[rbp]
add rdx, rcx
mov eax, DWORD PTR [rax]
mov DWORD PTR [rdx], eax
mov eax, DWORD PTR -8[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -40[rbp]
add rdx, rax
mov eax, DWORD PTR -4[rbp]
mov DWORD PTR [rdx], eax
.L9:
add DWORD PTR -8[rbp], 1
.L3:
mov eax, DWORD PTR -8[rbp]
cmp eax, DWORD PTR -44[rbp]
jl .L10
add DWORD PTR -12[rbp], 1
.L2:
mov eax, DWORD PTR -12[rbp]
cmp eax, DWORD PTR -44[rbp]
jl .L11
nop
nop
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size func0, .-func0
.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:
|
eval/problem69/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB23:
.cfi_startproc
endbr64
mov r9, rdx
test esi, esi
jle .L7
movsx rsi, esi
xor eax, eax
mov r8d, -1
mov r10d, 2147483647
.p2align 4,,10
.p2align 3
.L5:
mov edx, DWORD PTR [rdi+rax*4]
mov ecx, eax
test dl, 1
jne .L3
cmp r8d, -1
je .L8
cmp edx, r10d
jge .L3
.L8:
mov r8d, ecx
mov r10d, edx
.L3:
add rax, 1
cmp rax, rsi
jne .L5
cmp r8d, -1
je .L7
mov DWORD PTR [r9], r10d
mov rax, r9
mov DWORD PTR 4[r9], r8d
ret
.p2align 4,,10
.p2align 3
.L7:
xor eax, eax
ret
.cfi_endproc
.LFE23:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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 QWORD PTR -40[rbp], rdx
mov DWORD PTR -12[rbp], 2147483647
mov DWORD PTR -8[rbp], -1
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 eax, DWORD PTR [rax]
and eax, 1
test eax, eax
jne .L3
mov eax, DWORD PTR -4[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 -12[rbp], eax
jg .L4
cmp DWORD PTR -8[rbp], -1
jne .L3
.L4:
mov eax, DWORD PTR -4[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 -12[rbp], eax
mov eax, DWORD PTR -4[rbp]
mov DWORD PTR -8[rbp], eax
.L3:
add DWORD PTR -4[rbp], 1
.L2:
mov eax, DWORD PTR -4[rbp]
cmp eax, DWORD PTR -28[rbp]
jl .L5
cmp DWORD PTR -8[rbp], -1
jne .L6
mov eax, 0
jmp .L7
.L6:
mov rax, QWORD PTR -40[rbp]
mov edx, DWORD PTR -12[rbp]
mov DWORD PTR [rax], edx
mov rax, QWORD PTR -40[rbp]
lea rdx, 4[rax]
mov eax, DWORD PTR -8[rbp]
mov DWORD PTR [rdx], eax
mov rax, QWORD PTR -40[rbp]
.L7:
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size func0, .-func0
.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:
|
eval/problem96/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB52:
.cfi_startproc
endbr64
xor eax, eax
test esi, esi
je .L22
jle .L9
push r15
.cfi_def_cfa_offset 16
.cfi_offset 15, -16
lea eax, -1[rsi]
mov r15, rdi
push r14
.cfi_def_cfa_offset 24
.cfi_offset 14, -24
sal rax, 4
xor r14d, r14d
push r13
.cfi_def_cfa_offset 32
.cfi_offset 13, -32
lea rax, 16[rdi+rax]
xor r13d, r13d
push r12
.cfi_def_cfa_offset 40
.cfi_offset 12, -40
mov r12d, 1
push rbp
.cfi_def_cfa_offset 48
.cfi_offset 6, -48
push rbx
.cfi_def_cfa_offset 56
.cfi_offset 3, -56
sub rsp, 24
.cfi_def_cfa_offset 80
mov QWORD PTR 8[rsp], rax
.L7:
mov rbp, QWORD PTR [r15]
movzx ebx, BYTE PTR 0[rbp]
test bl, bl
je .L3
call __ctype_b_loc@PLT
lea rdx, 1[rbp]
mov rsi, QWORD PTR [rax]
jmp .L6
.p2align 4,,10
.p2align 3
.L26:
test cx, cx
cmovne r13d, r12d
.L5:
lea eax, 0[r13+r14]
cmp eax, 2
je .L12
movzx ebx, BYTE PTR [rdx]
add rdx, 1
test bl, bl
je .L3
.L6:
movzx eax, WORD PTR [rsi+rbx*2]
test ah, 4
je .L12
mov ecx, eax
and cx, 512
test ah, 1
je .L26
test cx, cx
jne .L12
mov r14d, 1
jmp .L5
.p2align 4,,10
.p2align 3
.L12:
xor eax, eax
.L1:
add rsp, 24
.cfi_remember_state
.cfi_def_cfa_offset 56
pop rbx
.cfi_def_cfa_offset 48
pop rbp
.cfi_def_cfa_offset 40
pop r12
.cfi_def_cfa_offset 32
pop r13
.cfi_def_cfa_offset 24
pop r14
.cfi_def_cfa_offset 16
pop r15
.cfi_def_cfa_offset 8
ret
.p2align 4,,10
.p2align 3
.L3:
.cfi_restore_state
add r15, 16
cmp QWORD PTR 8[rsp], r15
jne .L7
mov eax, 1
jmp .L1
.p2align 4,,10
.p2align 3
.L22:
.cfi_def_cfa_offset 8
.cfi_restore 3
.cfi_restore 6
.cfi_restore 12
.cfi_restore 13
.cfi_restore 14
.cfi_restore 15
ret
.L9:
mov eax, 1
ret
.cfi_endproc
.LFE52:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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 QWORD PTR -40[rbp], rdi
mov DWORD PTR -44[rbp], esi
cmp DWORD PTR -44[rbp], 0
jne .L2
mov eax, 0
jmp .L3
.L2:
mov DWORD PTR -24[rbp], 0
mov DWORD PTR -20[rbp], 0
mov DWORD PTR -16[rbp], 0
jmp .L4
.L11:
mov eax, DWORD PTR -16[rbp]
cdqe
sal rax, 4
mov rdx, rax
mov rax, QWORD PTR -40[rbp]
add rax, rdx
mov rax, QWORD PTR [rax]
mov QWORD PTR -8[rbp], rax
mov DWORD PTR -12[rbp], 0
jmp .L5
.L10:
call __ctype_b_loc@PLT
mov rdx, QWORD PTR [rax]
mov eax, DWORD PTR -12[rbp]
movsx rcx, eax
mov rax, QWORD PTR -8[rbp]
add rax, rcx
movzx eax, BYTE PTR [rax]
movzx eax, al
add rax, rax
add rax, rdx
movzx eax, WORD PTR [rax]
movzx eax, ax
and eax, 1024
test eax, eax
jne .L6
mov eax, 0
jmp .L3
.L6:
call __ctype_b_loc@PLT
mov rdx, QWORD PTR [rax]
mov eax, DWORD PTR -12[rbp]
movsx rcx, eax
mov rax, QWORD PTR -8[rbp]
add rax, rcx
movzx eax, BYTE PTR [rax]
movzx eax, al
add rax, rax
add rax, rdx
movzx eax, WORD PTR [rax]
movzx eax, ax
and eax, 256
test eax, eax
je .L7
mov DWORD PTR -20[rbp], 1
.L7:
call __ctype_b_loc@PLT
mov rdx, QWORD PTR [rax]
mov eax, DWORD PTR -12[rbp]
movsx rcx, eax
mov rax, QWORD PTR -8[rbp]
add rax, rcx
movzx eax, BYTE PTR [rax]
movzx eax, al
add rax, rax
add rax, rdx
movzx eax, WORD PTR [rax]
movzx eax, ax
and eax, 512
test eax, eax
je .L8
mov DWORD PTR -24[rbp], 1
.L8:
mov edx, DWORD PTR -20[rbp]
mov eax, DWORD PTR -24[rbp]
add eax, edx
cmp eax, 2
jne .L9
mov eax, 0
jmp .L3
.L9:
add DWORD PTR -12[rbp], 1
.L5:
mov eax, DWORD PTR -12[rbp]
movsx rdx, eax
mov rax, QWORD PTR -8[rbp]
add rax, rdx
movzx eax, BYTE PTR [rax]
test al, al
jne .L10
add DWORD PTR -16[rbp], 1
.L4:
mov eax, DWORD PTR -16[rbp]
cmp eax, DWORD PTR -44[rbp]
jl .L11
mov eax, 1
.L3:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size func0, .-func0
.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:
|
eval/problem49/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB34:
.cfi_startproc
endbr64
push rbx
.cfi_def_cfa_offset 16
.cfi_offset 3, -16
mov rbx, rdi
call strlen@PLT
mov ecx, eax
shr ecx, 31
add ecx, eax
sar ecx
cmp eax, 1
jle .L4
sub eax, 1
xor edx, edx
cdqe
add rax, rbx
jmp .L3
.p2align 4,,10
.p2align 3
.L9:
add rdx, 1
sub rax, 1
cmp ecx, edx
jle .L4
.L3:
movzx esi, BYTE PTR [rax]
cmp BYTE PTR [rbx+rdx], sil
je .L9
xor eax, eax
pop rbx
.cfi_remember_state
.cfi_def_cfa_offset 8
ret
.p2align 4,,10
.p2align 3
.L4:
.cfi_restore_state
mov eax, 1
pop rbx
.cfi_def_cfa_offset 8
ret
.cfi_endproc
.LFE34:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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 QWORD PTR -24[rbp], rdi
mov rax, QWORD PTR -24[rbp]
mov rdi, rax
call strlen@PLT
mov DWORD PTR -4[rbp], eax
mov DWORD PTR -8[rbp], 0
jmp .L2
.L5:
mov eax, DWORD PTR -8[rbp]
movsx rdx, eax
mov rax, QWORD PTR -24[rbp]
add rax, rdx
movzx edx, BYTE PTR [rax]
mov eax, DWORD PTR -4[rbp]
sub eax, 1
sub eax, DWORD PTR -8[rbp]
movsx rcx, eax
mov rax, QWORD PTR -24[rbp]
add rax, rcx
movzx eax, BYTE PTR [rax]
cmp dl, al
je .L3
mov eax, 0
jmp .L4
.L3:
add DWORD PTR -8[rbp], 1
.L2:
mov eax, DWORD PTR -4[rbp]
mov edx, eax
shr edx, 31
add eax, edx
sar eax
cmp DWORD PTR -8[rbp], eax
jl .L5
mov eax, 1
.L4:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size func0, .-func0
.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:
|
eval/problem38/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB39:
.cfi_startproc
endbr64
push r12
.cfi_def_cfa_offset 16
.cfi_offset 12, -16
mov r12, rdx
push rbp
.cfi_def_cfa_offset 24
.cfi_offset 6, -24
mov rbp, rdi
push rbx
.cfi_def_cfa_offset 32
.cfi_offset 3, -32
movsx rbx, esi
mov edi, ebx
shr edi, 31
add edi, ebx
sar edi
add edi, 1
movsx rdi, edi
sal rdi, 2
call malloc@PLT
mov rdi, rax
test ebx, ebx
jle .L2
xor eax, eax
.p2align 4,,10
.p2align 3
.L3:
movss xmm0, DWORD PTR 0[rbp+rax*4]
movss DWORD PTR [rdi+rax*2], xmm0
add rax, 2
cmp ebx, eax
jg .L3
lea edx, -1[rbx]
shr edx
je .L5
lea rsi, 4[rdi]
.p2align 4,,10
.p2align 3
.L4:
sub edx, 1
mov rax, rdi
mov rcx, rdx
lea rdx, [rsi+rdx*4]
.p2align 4,,10
.p2align 3
.L8:
movss xmm0, DWORD PTR [rax]
movss xmm1, DWORD PTR 4[rax]
comiss xmm0, xmm1
jbe .L6
movss DWORD PTR [rax], xmm1
movss DWORD PTR 4[rax], xmm0
.L6:
add rax, 4
cmp rdx, rax
jne .L8
mov edx, ecx
test ecx, ecx
jne .L4
.L5:
xor eax, eax
jmp .L11
.p2align 4,,10
.p2align 3
.L22:
mov edx, eax
sar edx
movsx rdx, edx
movss xmm0, DWORD PTR [rdi+rdx*4]
movss DWORD PTR [r12+rax*4], xmm0
add rax, 1
cmp rbx, rax
je .L2
.L11:
test al, 1
je .L22
movss xmm0, DWORD PTR 0[rbp+rax*4]
movss DWORD PTR [r12+rax*4], xmm0
add rax, 1
cmp rbx, rax
jne .L11
.L2:
pop rbx
.cfi_def_cfa_offset 24
pop rbp
.cfi_def_cfa_offset 16
pop r12
.cfi_def_cfa_offset 8
jmp free@PLT
.cfi_endproc
.LFE39:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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 DWORD PTR -44[rbp], esi
mov QWORD PTR -56[rbp], rdx
mov eax, DWORD PTR -44[rbp]
mov edx, eax
shr edx, 31
add eax, edx
sar eax
add eax, 1
cdqe
sal rax, 2
mov rdi, rax
call malloc@PLT
mov QWORD PTR -8[rbp], rax
mov DWORD PTR -16[rbp], 0
mov DWORD PTR -24[rbp], 0
jmp .L2
.L3:
mov eax, DWORD PTR -24[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -40[rbp]
lea rcx, [rdx+rax]
mov eax, DWORD PTR -16[rbp]
lea edx, 1[rax]
mov DWORD PTR -16[rbp], edx
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -8[rbp]
add rax, rdx
movss xmm0, DWORD PTR [rcx]
movss DWORD PTR [rax], xmm0
add DWORD PTR -24[rbp], 2
.L2:
mov eax, DWORD PTR -24[rbp]
cmp eax, DWORD PTR -44[rbp]
jl .L3
mov DWORD PTR -24[rbp], 0
jmp .L4
.L9:
mov DWORD PTR -20[rbp], 0
jmp .L5
.L8:
mov eax, DWORD PTR -20[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -8[rbp]
add rax, rdx
movss xmm0, DWORD PTR [rax]
mov eax, DWORD PTR -20[rbp]
cdqe
add rax, 1
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -8[rbp]
add rax, rdx
movss xmm1, DWORD PTR [rax]
comiss xmm0, xmm1
jbe .L6
mov eax, DWORD PTR -20[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -8[rbp]
add rax, rdx
movss xmm0, DWORD PTR [rax]
movss DWORD PTR -12[rbp], xmm0
mov eax, DWORD PTR -20[rbp]
cdqe
add rax, 1
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -8[rbp]
add rdx, rax
mov eax, DWORD PTR -20[rbp]
cdqe
lea rcx, 0[0+rax*4]
mov rax, QWORD PTR -8[rbp]
add rax, rcx
movss xmm0, DWORD PTR [rdx]
movss DWORD PTR [rax], xmm0
mov eax, DWORD PTR -20[rbp]
cdqe
add rax, 1
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -8[rbp]
add rax, rdx
movss xmm0, DWORD PTR -12[rbp]
movss DWORD PTR [rax], xmm0
.L6:
add DWORD PTR -20[rbp], 1
.L5:
mov eax, DWORD PTR -16[rbp]
sub eax, DWORD PTR -24[rbp]
sub eax, 1
cmp DWORD PTR -20[rbp], eax
jl .L8
add DWORD PTR -24[rbp], 1
.L4:
mov eax, DWORD PTR -16[rbp]
sub eax, 1
cmp DWORD PTR -24[rbp], eax
jl .L9
mov DWORD PTR -24[rbp], 0
jmp .L10
.L13:
mov eax, DWORD PTR -24[rbp]
and eax, 1
test eax, eax
jne .L11
mov eax, DWORD PTR -24[rbp]
mov edx, eax
shr edx, 31
add eax, edx
sar eax
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -8[rbp]
add rdx, rax
mov eax, DWORD PTR -24[rbp]
cdqe
lea rcx, 0[0+rax*4]
mov rax, QWORD PTR -56[rbp]
add rax, rcx
movss xmm0, DWORD PTR [rdx]
movss DWORD PTR [rax], xmm0
jmp .L12
.L11:
mov eax, DWORD PTR -24[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -40[rbp]
add rdx, rax
mov eax, DWORD PTR -24[rbp]
cdqe
lea rcx, 0[0+rax*4]
mov rax, QWORD PTR -56[rbp]
add rax, rcx
movss xmm0, DWORD PTR [rdx]
movss DWORD PTR [rax], xmm0
.L12:
add DWORD PTR -24[rbp], 1
.L10:
mov eax, DWORD PTR -24[rbp]
cmp eax, DWORD PTR -44[rbp]
jl .L13
mov rax, QWORD PTR -8[rbp]
mov rdi, rax
call free@PLT
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size func0, .-func0
.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:
|
eval/problem76/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB39:
.cfi_startproc
endbr64
xor eax, eax
cmp edi, 1
jle .L1
mov ecx, 2
xor esi, esi
cmp edi, 3
jle .L19
.p2align 4,,10
.p2align 3
.L3:
mov eax, edi
cdq
idiv ecx
test edx, edx
jne .L7
.p2align 4,,10
.p2align 3
.L5:
mov eax, edi
add esi, 1
cdq
idiv ecx
cdq
mov edi, eax
idiv ecx
test edx, edx
je .L5
.L7:
add ecx, 1
mov eax, ecx
imul eax, ecx
cmp eax, edi
jle .L3
cmp edi, 1
jle .L20
xor eax, eax
cmp esi, 2
sete al
.L1:
ret
.L20:
xor eax, eax
cmp esi, 3
sete al
ret
.L19:
ret
.cfi_endproc
.LFE39:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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
cmp DWORD PTR -20[rbp], 1
jg .L2
mov eax, 0
jmp .L3
.L2:
mov DWORD PTR -8[rbp], 0
mov DWORD PTR -4[rbp], 2
jmp .L4
.L6:
mov eax, DWORD PTR -20[rbp]
cdq
idiv DWORD PTR -4[rbp]
mov DWORD PTR -20[rbp], eax
add DWORD PTR -8[rbp], 1
.L5:
mov eax, DWORD PTR -20[rbp]
cdq
idiv DWORD PTR -4[rbp]
mov eax, edx
test eax, eax
je .L6
add DWORD PTR -4[rbp], 1
.L4:
mov eax, DWORD PTR -4[rbp]
imul eax, eax
cmp DWORD PTR -20[rbp], eax
jge .L5
cmp DWORD PTR -20[rbp], 1
jle .L8
add DWORD PTR -8[rbp], 1
.L8:
cmp DWORD PTR -8[rbp], 3
sete al
movzx eax, al
.L3:
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size func0, .-func0
.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:
|
eval/problem66/code.c | .file "code.c"
.intel_syntax noprefix
.text
.section .rodata.str1.1,"aMS",@progbits,1
.LC0:
.string "%d"
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB50:
.cfi_startproc
endbr64
push r12
.cfi_def_cfa_offset 16
.cfi_offset 12, -16
mov r8d, edi
mov edx, 50
lea rcx, .LC0[rip]
push rbp
.cfi_def_cfa_offset 24
.cfi_offset 6, -24
lea rdi, xs.0[rip]
push rbx
.cfi_def_cfa_offset 32
.cfi_offset 3, -32
movsx rbx, esi
mov esi, 1
sub rsp, 64
.cfi_def_cfa_offset 96
mov rax, QWORD PTR fs:40
mov QWORD PTR 56[rsp], rax
xor eax, eax
call __sprintf_chk@PLT
lea rdi, xs.0[rip]
call strlen@PLT
mov rdx, rax
cmp eax, ebx
jge .L2
mov ecx, eax
sar ecx
je .L4
lea rax, xs.0[rip]
lea edi, -1[rcx]
movsx rdx, edx
lea rcx, 1[rax]
lea rdx, -1[rax+rdx]
add rdi, rcx
.p2align 4,,10
.p2align 3
.L5:
movzx esi, BYTE PTR [rdx]
movzx ecx, BYTE PTR [rax]
add rax, 1
sub rdx, 1
mov BYTE PTR -1[rax], sil
mov BYTE PTR 1[rdx], cl
cmp rax, rdi
jne .L5
.L4:
mov rax, QWORD PTR 56[rsp]
sub rax, QWORD PTR fs:40
jne .L11
add rsp, 64
.cfi_remember_state
.cfi_def_cfa_offset 32
lea rax, xs.0[rip]
pop rbx
.cfi_def_cfa_offset 24
pop rbp
.cfi_def_cfa_offset 16
pop r12
.cfi_def_cfa_offset 8
ret
.p2align 4,,10
.p2align 3
.L2:
.cfi_restore_state
sub rdx, rbx
lea rbp, xs.0[rip]
mov r8, rsp
lea rsi, 0[rbp+rdx]
mov rdi, r8
mov r12, rdx
mov edx, 50
call __strcpy_chk@PLT
mov rdx, r12
mov rsi, rbp
mov ecx, 50
mov rdi, rax
mov BYTE PTR [rsp+rbx], 0
call __strncat_chk@PLT
mov edx, 50
mov rdi, rbp
mov rsi, rax
call __strcpy_chk@PLT
jmp .L4
.L11:
call __stack_chk_fail@PLT
.cfi_endproc
.LFE50:
.size func0, .-func0
.local xs.0
.comm xs.0,50,32
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.section .rodata
.LC0:
.string "%d"
.text
.globl func0
.type func0, @function
func0:
.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, 96
mov DWORD PTR -84[rbp], edi
mov DWORD PTR -88[rbp], esi
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
mov eax, DWORD PTR -84[rbp]
mov edx, eax
lea rsi, .LC0[rip]
lea rdi, xs.0[rip]
mov eax, 0
call sprintf@PLT
lea rdi, xs.0[rip]
call strlen@PLT
mov DWORD PTR -68[rbp], eax
mov eax, DWORD PTR -68[rbp]
cmp eax, DWORD PTR -88[rbp]
jge .L2
mov DWORD PTR -72[rbp], 0
jmp .L3
.L4:
mov eax, DWORD PTR -72[rbp]
cdqe
lea rdx, xs.0[rip]
movzx eax, BYTE PTR [rax+rdx]
mov BYTE PTR -73[rbp], al
mov eax, DWORD PTR -68[rbp]
sub eax, 1
sub eax, DWORD PTR -72[rbp]
cdqe
lea rdx, xs.0[rip]
movzx edx, BYTE PTR [rax+rdx]
mov eax, DWORD PTR -72[rbp]
cdqe
lea rcx, xs.0[rip]
mov BYTE PTR [rax+rcx], dl
mov eax, DWORD PTR -68[rbp]
sub eax, 1
sub eax, DWORD PTR -72[rbp]
cdqe
lea rcx, xs.0[rip]
movzx edx, BYTE PTR -73[rbp]
mov BYTE PTR [rax+rcx], dl
add DWORD PTR -72[rbp], 1
.L3:
mov eax, DWORD PTR -68[rbp]
mov edx, eax
shr edx, 31
add eax, edx
sar eax
cmp DWORD PTR -72[rbp], eax
jl .L4
jmp .L5
.L2:
mov eax, DWORD PTR -68[rbp]
cdqe
mov edx, DWORD PTR -88[rbp]
movsx rdx, edx
sub rax, rdx
mov rcx, rax
lea rax, xs.0[rip]
lea rdx, [rcx+rax]
lea rax, -64[rbp]
mov rsi, rdx
mov rdi, rax
call strcpy@PLT
mov eax, DWORD PTR -88[rbp]
cdqe
mov BYTE PTR -64[rbp+rax], 0
mov eax, DWORD PTR -68[rbp]
sub eax, DWORD PTR -88[rbp]
movsx rdx, eax
lea rax, -64[rbp]
lea rsi, xs.0[rip]
mov rdi, rax
call strncat@PLT
lea rax, -64[rbp]
mov rsi, rax
lea rdi, xs.0[rip]
call strcpy@PLT
.L5:
lea rax, xs.0[rip]
mov rsi, QWORD PTR -8[rbp]
sub rsi, QWORD PTR fs:40
je .L7
call __stack_chk_fail@PLT
.L7:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size func0, .-func0
.local xs.0
.comm xs.0,50,32
.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:
|
eval/problem147/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB39:
.cfi_startproc
endbr64
test esi, esi
jle .L6
lea eax, -1[rsi]
xor r9d, r9d
mov esi, 3435973837
lea r8, 4[rdi+rax*4]
jmp .L5
.p2align 4,,10
.p2align 3
.L3:
add rdi, 4
cmp rdi, r8
je .L1
.L5:
mov ecx, DWORD PTR [rdi]
cmp ecx, 10
jle .L3
mov eax, ecx
.p2align 4,,10
.p2align 3
.L4:
mov eax, eax
mov rdx, rax
imul rax, rsi
shr rax, 35
cmp edx, 99
jg .L4
test al, 1
je .L3
and ecx, 1
cmp ecx, 1
sbb r9d, -1
add rdi, 4
cmp rdi, r8
jne .L5
.L1:
mov eax, r9d
ret
.L6:
xor r9d, r9d
mov eax, r9d
ret
.cfi_endproc
.LFE39:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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 -40[rbp], rdi
mov DWORD PTR -44[rbp], esi
mov DWORD PTR -20[rbp], 0
mov DWORD PTR -16[rbp], 0
jmp .L2
.L6:
mov eax, DWORD PTR -16[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -40[rbp]
add rax, rdx
mov eax, DWORD PTR [rax]
cmp eax, 10
jle .L3
mov eax, DWORD PTR -16[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -40[rbp]
add rax, rdx
mov edx, DWORD PTR [rax]
movsx rax, edx
imul rax, rax, 1717986919
shr rax, 32
sar eax, 2
mov ecx, edx
sar ecx, 31
sub eax, ecx
mov DWORD PTR -8[rbp], eax
mov ecx, DWORD PTR -8[rbp]
mov eax, ecx
sal eax, 2
add eax, ecx
add eax, eax
sub edx, eax
mov DWORD PTR -8[rbp], edx
mov eax, DWORD PTR -16[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -40[rbp]
add rax, rdx
mov eax, DWORD PTR [rax]
mov DWORD PTR -12[rbp], eax
jmp .L4
.L5:
mov eax, DWORD PTR -12[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 -12[rbp], eax
.L4:
cmp DWORD PTR -12[rbp], 9
jg .L5
mov eax, DWORD PTR -12[rbp]
mov DWORD PTR -4[rbp], eax
mov eax, DWORD PTR -4[rbp]
cdq
shr edx, 31
add eax, edx
and eax, 1
sub eax, edx
cmp eax, 1
jne .L3
mov eax, DWORD PTR -8[rbp]
cdq
shr edx, 31
add eax, edx
and eax, 1
sub eax, edx
cmp eax, 1
jne .L3
add DWORD PTR -20[rbp], 1
.L3:
add DWORD PTR -16[rbp], 1
.L2:
mov eax, DWORD PTR -16[rbp]
cmp eax, DWORD PTR -44[rbp]
jl .L6
mov eax, DWORD PTR -20[rbp]
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size func0, .-func0
.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:
|
eval/problem79/code.c | .file "code.c"
.intel_syntax noprefix
.text
.section .rodata.str1.1,"aMS",@progbits,1
.LC0:
.string "2357BD"
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB34:
.cfi_startproc
endbr64
push r13
.cfi_def_cfa_offset 16
.cfi_offset 13, -16
lea r13, .LC0[rip]
push r12
.cfi_def_cfa_offset 24
.cfi_offset 12, -24
xor r12d, r12d
push rbp
.cfi_def_cfa_offset 32
.cfi_offset 6, -32
push rbx
.cfi_def_cfa_offset 40
.cfi_offset 3, -40
mov rbx, rdi
sub rsp, 8
.cfi_def_cfa_offset 48
call strlen@PLT
lea rbp, [rbx+rax]
jmp .L2
.p2align 4,,10
.p2align 3
.L4:
movsx esi, BYTE PTR [rbx]
mov rdi, r13
call strchr@PLT
cmp rax, 1
sbb r12d, -1
add rbx, 1
.L2:
cmp rbx, rbp
jne .L4
add rsp, 8
.cfi_def_cfa_offset 40
mov eax, r12d
pop rbx
.cfi_def_cfa_offset 32
pop rbp
.cfi_def_cfa_offset 24
pop r12
.cfi_def_cfa_offset 16
pop r13
.cfi_def_cfa_offset 8
ret
.cfi_endproc
.LFE34:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.section .rodata
.LC0:
.string "2357BD"
.text
.globl func0
.type func0, @function
func0:
.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 QWORD PTR -40[rbp], rdi
lea rax, .LC0[rip]
mov QWORD PTR -24[rbp], rax
mov DWORD PTR -32[rbp], 0
mov DWORD PTR -28[rbp], 0
jmp .L2
.L4:
mov eax, DWORD PTR -28[rbp]
movsx rdx, eax
mov rax, QWORD PTR -40[rbp]
add rax, rdx
movzx eax, BYTE PTR [rax]
movsx edx, al
mov rax, QWORD PTR -24[rbp]
mov esi, edx
mov rdi, rax
call strchr@PLT
test rax, rax
je .L3
add DWORD PTR -32[rbp], 1
.L3:
add DWORD PTR -28[rbp], 1
.L2:
mov eax, DWORD PTR -28[rbp]
movsx rbx, eax
mov rax, QWORD PTR -40[rbp]
mov rdi, rax
call strlen@PLT
cmp rbx, rax
jb .L4
mov eax, DWORD PTR -32[rbp]
mov rbx, QWORD PTR -8[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size func0, .-func0
.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:
|
eval/problem149/code.c | .file "code.c"
.intel_syntax noprefix
.text
.section .rodata.str1.1,"aMS",@progbits,1
.LC0:
.string "Mercury"
.LC1:
.string "Venus"
.LC2:
.string "Earth"
.LC3:
.string "Mars"
.LC4:
.string "Jupiter"
.LC5:
.string "Saturn"
.LC6:
.string "Uranus"
.LC7:
.string "Neptune"
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB50:
.cfi_startproc
endbr64
push r15
.cfi_def_cfa_offset 16
.cfi_offset 15, -16
mov r15d, -1
push r14
.cfi_def_cfa_offset 24
.cfi_offset 14, -24
mov r14, rdi
lea rdi, .LC0[rip]
push r13
.cfi_def_cfa_offset 32
.cfi_offset 13, -32
mov r13, rsi
push r12
.cfi_def_cfa_offset 40
.cfi_offset 12, -40
push rbp
.cfi_def_cfa_offset 48
.cfi_offset 6, -48
mov ebp, -1
push rbx
.cfi_def_cfa_offset 56
.cfi_offset 3, -56
xor ebx, ebx
sub rsp, 104
.cfi_def_cfa_offset 160
mov QWORD PTR 8[rsp], rdx
mov rax, QWORD PTR fs:40
mov QWORD PTR 88[rsp], rax
xor eax, eax
lea rax, .LC1[rip]
mov QWORD PTR 16[rsp], rdi
mov QWORD PTR 24[rsp], rax
lea rax, .LC2[rip]
mov QWORD PTR 32[rsp], rax
lea rax, .LC3[rip]
mov QWORD PTR 40[rsp], rax
lea rax, .LC4[rip]
mov QWORD PTR 48[rsp], rax
lea rax, .LC5[rip]
mov QWORD PTR 56[rsp], rax
lea rax, .LC6[rip]
mov QWORD PTR 64[rsp], rax
lea rax, .LC7[rip]
mov QWORD PTR 72[rsp], rax
jmp .L5
.p2align 4,,10
.p2align 3
.L14:
mov rdi, QWORD PTR 16[rsp+rbx*8]
.L5:
mov rsi, r14
mov QWORD PTR [rsp], rdi
call strcmp@PLT
mov rdi, QWORD PTR [rsp]
mov rsi, r13
test eax, eax
cmove ebp, ebx
call strcmp@PLT
test eax, eax
cmove r15d, ebx
add rbx, 1
cmp rbx, 8
jne .L14
cmp ebp, -1
sete cl
cmp r15d, -1
sete al
or cl, al
jne .L10
cmp ebp, r15d
je .L10
jg .L15
.L9:
mov eax, r15d
mov rcx, QWORD PTR 8[rsp]
sub eax, ebp
sub eax, 1
mov DWORD PTR [rcx], eax
test eax, eax
jle .L10
cdqe
lea rdi, 0[0+rax*8]
call malloc@PLT
mov r8, rax
lea eax, 1[rbp]
cmp r15d, eax
jle .L1
lea edx, -2[r15]
cdqe
mov rdi, r8
sub edx, ebp
lea rsi, 16[rsp+rax*8]
lea rdx, 8[0+rdx*8]
call memcpy@PLT
mov r8, rax
.L1:
mov rax, QWORD PTR 88[rsp]
sub rax, QWORD PTR fs:40
jne .L16
add rsp, 104
.cfi_remember_state
.cfi_def_cfa_offset 56
mov rax, r8
pop rbx
.cfi_def_cfa_offset 48
pop rbp
.cfi_def_cfa_offset 40
pop r12
.cfi_def_cfa_offset 32
pop r13
.cfi_def_cfa_offset 24
pop r14
.cfi_def_cfa_offset 16
pop r15
.cfi_def_cfa_offset 8
ret
.p2align 4,,10
.p2align 3
.L15:
.cfi_restore_state
mov eax, ebp
mov ebp, r15d
mov r15d, eax
jmp .L9
.p2align 4,,10
.p2align 3
.L10:
mov rax, QWORD PTR 8[rsp]
xor r8d, r8d
mov DWORD PTR [rax], 0
jmp .L1
.L16:
call __stack_chk_fail@PLT
.cfi_endproc
.LFE50:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.section .rodata
.LC0:
.string "Mercury"
.LC1:
.string "Venus"
.LC2:
.string "Earth"
.LC3:
.string "Mars"
.LC4:
.string "Jupiter"
.LC5:
.string "Saturn"
.LC6:
.string "Uranus"
.LC7:
.string "Neptune"
.text
.globl func0
.type func0, @function
func0:
.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, 144
mov QWORD PTR -120[rbp], rdi
mov QWORD PTR -128[rbp], rsi
mov QWORD PTR -136[rbp], rdx
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
lea rax, .LC0[rip]
mov QWORD PTR -80[rbp], rax
lea rax, .LC1[rip]
mov QWORD PTR -72[rbp], rax
lea rax, .LC2[rip]
mov QWORD PTR -64[rbp], rax
lea rax, .LC3[rip]
mov QWORD PTR -56[rbp], rax
lea rax, .LC4[rip]
mov QWORD PTR -48[rbp], rax
lea rax, .LC5[rip]
mov QWORD PTR -40[rbp], rax
lea rax, .LC6[rip]
mov QWORD PTR -32[rbp], rax
lea rax, .LC7[rip]
mov QWORD PTR -24[rbp], rax
mov DWORD PTR -104[rbp], -1
mov DWORD PTR -100[rbp], -1
mov DWORD PTR -96[rbp], 0
jmp .L2
.L5:
mov eax, DWORD PTR -96[rbp]
cdqe
mov rax, QWORD PTR -80[rbp+rax*8]
mov rdx, QWORD PTR -120[rbp]
mov rsi, rdx
mov rdi, rax
call strcmp@PLT
test eax, eax
jne .L3
mov eax, DWORD PTR -96[rbp]
mov DWORD PTR -104[rbp], eax
.L3:
mov eax, DWORD PTR -96[rbp]
cdqe
mov rax, QWORD PTR -80[rbp+rax*8]
mov rdx, QWORD PTR -128[rbp]
mov rsi, rdx
mov rdi, rax
call strcmp@PLT
test eax, eax
jne .L4
mov eax, DWORD PTR -96[rbp]
mov DWORD PTR -100[rbp], eax
.L4:
add DWORD PTR -96[rbp], 1
.L2:
cmp DWORD PTR -96[rbp], 7
jle .L5
cmp DWORD PTR -104[rbp], -1
je .L6
cmp DWORD PTR -100[rbp], -1
je .L6
mov eax, DWORD PTR -104[rbp]
cmp eax, DWORD PTR -100[rbp]
jne .L7
.L6:
mov rax, QWORD PTR -136[rbp]
mov DWORD PTR [rax], 0
mov eax, 0
jmp .L13
.L7:
mov eax, DWORD PTR -104[rbp]
cmp eax, DWORD PTR -100[rbp]
jle .L9
mov eax, DWORD PTR -104[rbp]
mov DWORD PTR -92[rbp], eax
mov eax, DWORD PTR -100[rbp]
mov DWORD PTR -104[rbp], eax
mov eax, DWORD PTR -92[rbp]
mov DWORD PTR -100[rbp], eax
.L9:
mov eax, DWORD PTR -100[rbp]
sub eax, DWORD PTR -104[rbp]
lea edx, -1[rax]
mov rax, QWORD PTR -136[rbp]
mov DWORD PTR [rax], edx
mov rax, QWORD PTR -136[rbp]
mov eax, DWORD PTR [rax]
test eax, eax
jg .L10
mov rax, QWORD PTR -136[rbp]
mov DWORD PTR [rax], 0
mov eax, 0
jmp .L13
.L10:
mov rax, QWORD PTR -136[rbp]
mov eax, DWORD PTR [rax]
cdqe
sal rax, 3
mov rdi, rax
call malloc@PLT
mov QWORD PTR -88[rbp], rax
mov eax, DWORD PTR -104[rbp]
add eax, 1
mov DWORD PTR -96[rbp], eax
jmp .L11
.L12:
mov eax, DWORD PTR -96[rbp]
sub eax, DWORD PTR -104[rbp]
cdqe
sal rax, 3
lea rdx, -8[rax]
mov rax, QWORD PTR -88[rbp]
add rdx, rax
mov eax, DWORD PTR -96[rbp]
cdqe
mov rax, QWORD PTR -80[rbp+rax*8]
mov QWORD PTR [rdx], rax
add DWORD PTR -96[rbp], 1
.L11:
mov eax, DWORD PTR -96[rbp]
cmp eax, DWORD PTR -100[rbp]
jl .L12
mov rax, QWORD PTR -88[rbp]
.L13:
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
.LFE6:
.size func0, .-func0
.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:
|
eval/problem73/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB23:
.cfi_startproc
endbr64
mov r8, rdi
mov edi, esi
mov r9d, esi
mov r10d, edx
shr edi, 31
add edi, esi
sar edi
cmp esi, 1
jle .L6
lea eax, -1[rsi]
xor esi, esi
cdqe
lea rdx, [r8+rax*4]
xor eax, eax
jmp .L4
.p2align 4,,10
.p2align 3
.L10:
add rax, 1
lea esi, [rsi+rcx*2]
sub rdx, 4
cmp edi, eax
jle .L2
.L4:
mov ecx, DWORD PTR [r8+rax*4]
cmp ecx, DWORD PTR [rdx]
je .L10
xor eax, eax
ret
.L6:
xor esi, esi
.p2align 4,,10
.p2align 3
.L2:
mov eax, r9d
shr eax, 31
add r9d, eax
and r9d, 1
sub r9d, eax
cmp r9d, 1
je .L11
cmp esi, r10d
setle al
ret
.p2align 4,,10
.p2align 3
.L11:
movsx rdi, edi
add esi, DWORD PTR [r8+rdi*4]
cmp esi, r10d
setle al
ret
.cfi_endproc
.LFE23:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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 -32[rbp], edx
mov DWORD PTR -8[rbp], 0
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 -28[rbp]
sub eax, 1
sub eax, DWORD PTR -4[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
je .L3
mov eax, 0
jmp .L4
.L3:
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 -28[rbp]
sub eax, 1
sub eax, DWORD PTR -4[rbp]
cdqe
lea rcx, 0[0+rax*4]
mov rax, QWORD PTR -24[rbp]
add rax, rcx
mov eax, DWORD PTR [rax]
add eax, edx
add DWORD PTR -8[rbp], eax
add DWORD PTR -4[rbp], 1
.L2:
mov eax, DWORD PTR -28[rbp]
mov edx, eax
shr edx, 31
add eax, edx
sar eax
cmp DWORD PTR -4[rbp], eax
jl .L5
mov eax, DWORD PTR -28[rbp]
cdq
shr edx, 31
add eax, edx
and eax, 1
sub eax, edx
cmp eax, 1
jne .L6
mov eax, DWORD PTR -28[rbp]
mov edx, eax
shr edx, 31
add eax, edx
sar eax
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -24[rbp]
add rax, rdx
mov eax, DWORD PTR [rax]
add DWORD PTR -8[rbp], eax
.L6:
mov eax, DWORD PTR -8[rbp]
cmp eax, DWORD PTR -32[rbp]
setle al
.L4:
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size func0, .-func0
.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:
|
eval/problem156/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB39:
.cfi_startproc
endbr64
mov eax, edi
mov r8, rsi
xor edx, edx
xor ecx, ecx
sar eax, 31
mov esi, 3435973837
xor edi, eax
sub edi, eax
jmp .L4
.p2align 4,,10
.p2align 3
.L8:
imul rax, rsi
add ecx, 1
shr rax, 35
cmp edi, 9
jle .L7
.L5:
mov edi, eax
.L4:
mov eax, edi
test dil, 1
je .L8
imul rax, rsi
add edx, 1
shr rax, 35
cmp edi, 9
jg .L5
.L7:
mov DWORD PTR [r8], ecx
mov DWORD PTR 4[r8], edx
ret
.cfi_endproc
.LFE39:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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 QWORD PTR -32[rbp], rsi
mov DWORD PTR -12[rbp], 0
mov DWORD PTR -8[rbp], 0
mov eax, DWORD PTR -20[rbp]
sar eax, 31
xor DWORD PTR -20[rbp], eax
sub DWORD PTR -20[rbp], eax
.L4:
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 -4[rbp], edx
mov eax, DWORD PTR -4[rbp]
and eax, 1
test eax, eax
jne .L2
add DWORD PTR -12[rbp], 1
jmp .L3
.L2:
add DWORD PTR -8[rbp], 1
.L3:
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
cmp DWORD PTR -20[rbp], 0
jg .L4
mov rax, QWORD PTR -32[rbp]
mov edx, DWORD PTR -12[rbp]
mov DWORD PTR [rax], edx
mov rax, QWORD PTR -32[rbp]
lea rdx, 4[rax]
mov eax, DWORD PTR -8[rbp]
mov DWORD PTR [rdx], eax
nop
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size func0, .-func0
.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:
|
eval/problem162/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB36:
.cfi_startproc
endbr64
push r15
.cfi_def_cfa_offset 16
.cfi_offset 15, -16
push r14
.cfi_def_cfa_offset 24
.cfi_offset 14, -24
push r13
.cfi_def_cfa_offset 32
.cfi_offset 13, -32
push r12
.cfi_def_cfa_offset 40
.cfi_offset 12, -40
mov r12, rdi
push rbp
.cfi_def_cfa_offset 48
.cfi_offset 6, -48
push rbx
.cfi_def_cfa_offset 56
.cfi_offset 3, -56
sub rsp, 24
.cfi_def_cfa_offset 80
call strlen@PLT
mov QWORD PTR 8[rsp], rax
test eax, eax
jle .L9
mov r15, rax
mov rbx, r12
call __ctype_b_loc@PLT
mov r14, rax
lea eax, -1[r15]
xor r15d, r15d
lea r13, 1[r12+rax]
jmp .L6
.p2align 4,,10
.p2align 3
.L20:
test ah, 1
je .L4
call __ctype_tolower_loc@PLT
mov rax, QWORD PTR [rax]
mov eax, DWORD PTR [rax+rbp*4]
mov BYTE PTR [rbx], al
.L5:
add rbx, 1
cmp rbx, r13
je .L2
.L6:
movzx ebp, BYTE PTR [rbx]
mov rax, QWORD PTR [r14]
movzx eax, WORD PTR [rax+rbp*2]
test ah, 4
jne .L20
add rbx, 1
add r15d, 1
cmp rbx, r13
jne .L6
.L2:
cmp DWORD PTR 8[rsp], r15d
je .L21
.L7:
add rsp, 24
.cfi_remember_state
.cfi_def_cfa_offset 56
mov rax, r12
pop rbx
.cfi_def_cfa_offset 48
pop rbp
.cfi_def_cfa_offset 40
pop r12
.cfi_def_cfa_offset 32
pop r13
.cfi_def_cfa_offset 24
pop r14
.cfi_def_cfa_offset 16
pop r15
.cfi_def_cfa_offset 8
ret
.p2align 4,,10
.p2align 3
.L4:
.cfi_restore_state
test ah, 2
je .L5
call __ctype_toupper_loc@PLT
mov rax, QWORD PTR [rax]
mov eax, DWORD PTR [rax+rbp*4]
mov BYTE PTR [rbx], al
jmp .L5
.p2align 4,,10
.p2align 3
.L21:
mov rax, QWORD PTR 8[rsp]
mov ecx, eax
sar ecx
je .L7
movsx r13, eax
sub ecx, 1
mov rdx, r12
lea rdi, -2[r12+r13]
lea rax, -1[r12+r13]
sub rdi, rcx
.p2align 4,,10
.p2align 3
.L8:
movzx ecx, BYTE PTR [rdx]
movzx esi, BYTE PTR [rax]
sub rax, 1
add rdx, 1
mov BYTE PTR -1[rdx], sil
mov BYTE PTR 1[rax], cl
cmp rdi, rax
jne .L8
jmp .L7
.p2align 4,,10
.p2align 3
.L9:
xor r15d, r15d
jmp .L2
.cfi_endproc
.LFE36:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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, 48
mov QWORD PTR -40[rbp], rdi
mov DWORD PTR -16[rbp], 0
mov rax, QWORD PTR -40[rbp]
mov rdi, rax
call strlen@PLT
mov DWORD PTR -4[rbp], eax
mov DWORD PTR -12[rbp], 0
jmp .L2
.L6:
call __ctype_b_loc@PLT
mov rdx, QWORD PTR [rax]
mov eax, DWORD PTR -12[rbp]
movsx rcx, eax
mov rax, QWORD PTR -40[rbp]
add rax, rcx
movzx eax, BYTE PTR [rax]
movzx eax, al
add rax, rax
add rax, rdx
movzx eax, WORD PTR [rax]
movzx eax, ax
and eax, 1024
test eax, eax
je .L3
call __ctype_b_loc@PLT
mov rdx, QWORD PTR [rax]
mov eax, DWORD PTR -12[rbp]
movsx rcx, eax
mov rax, QWORD PTR -40[rbp]
add rax, rcx
movzx eax, BYTE PTR [rax]
movzx eax, al
add rax, rax
add rax, rdx
movzx eax, WORD PTR [rax]
movzx eax, ax
and eax, 256
test eax, eax
je .L4
mov eax, DWORD PTR -12[rbp]
movsx rdx, eax
mov rax, QWORD PTR -40[rbp]
add rax, rdx
movzx eax, BYTE PTR [rax]
movzx eax, al
mov edi, eax
call tolower@PLT
mov edx, eax
mov eax, DWORD PTR -12[rbp]
movsx rcx, eax
mov rax, QWORD PTR -40[rbp]
add rax, rcx
mov BYTE PTR [rax], dl
jmp .L5
.L4:
call __ctype_b_loc@PLT
mov rdx, QWORD PTR [rax]
mov eax, DWORD PTR -12[rbp]
movsx rcx, eax
mov rax, QWORD PTR -40[rbp]
add rax, rcx
movzx eax, BYTE PTR [rax]
movzx eax, al
add rax, rax
add rax, rdx
movzx eax, WORD PTR [rax]
movzx eax, ax
and eax, 512
test eax, eax
je .L5
mov eax, DWORD PTR -12[rbp]
movsx rdx, eax
mov rax, QWORD PTR -40[rbp]
add rax, rdx
movzx eax, BYTE PTR [rax]
movzx eax, al
mov edi, eax
call toupper@PLT
mov edx, eax
mov eax, DWORD PTR -12[rbp]
movsx rcx, eax
mov rax, QWORD PTR -40[rbp]
add rax, rcx
mov BYTE PTR [rax], dl
jmp .L5
.L3:
add DWORD PTR -16[rbp], 1
.L5:
add DWORD PTR -12[rbp], 1
.L2:
mov eax, DWORD PTR -12[rbp]
cmp eax, DWORD PTR -4[rbp]
jl .L6
mov eax, DWORD PTR -16[rbp]
cmp eax, DWORD PTR -4[rbp]
jne .L7
mov DWORD PTR -8[rbp], 0
jmp .L8
.L9:
mov eax, DWORD PTR -8[rbp]
movsx rdx, eax
mov rax, QWORD PTR -40[rbp]
add rax, rdx
movzx eax, BYTE PTR [rax]
mov BYTE PTR -17[rbp], al
mov eax, DWORD PTR -4[rbp]
sub eax, DWORD PTR -8[rbp]
cdqe
lea rdx, -1[rax]
mov rax, QWORD PTR -40[rbp]
add rax, rdx
mov edx, DWORD PTR -8[rbp]
movsx rcx, edx
mov rdx, QWORD PTR -40[rbp]
add rdx, rcx
movzx eax, BYTE PTR [rax]
mov BYTE PTR [rdx], al
mov eax, DWORD PTR -4[rbp]
sub eax, DWORD PTR -8[rbp]
cdqe
lea rdx, -1[rax]
mov rax, QWORD PTR -40[rbp]
add rdx, rax
movzx eax, BYTE PTR -17[rbp]
mov BYTE PTR [rdx], al
add DWORD PTR -8[rbp], 1
.L8:
mov eax, DWORD PTR -4[rbp]
mov edx, eax
shr edx, 31
add eax, edx
sar eax
cmp DWORD PTR -8[rbp], eax
jl .L9
.L7:
mov rax, QWORD PTR -40[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size func0, .-func0
.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:
|
eval/problem68/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB41:
.cfi_startproc
endbr64
push r12
.cfi_def_cfa_offset 16
.cfi_offset 12, -16
xor edx, edx
mov r12d, esi
push rbp
.cfi_def_cfa_offset 24
.cfi_offset 6, -24
push rbx
.cfi_def_cfa_offset 32
.cfi_offset 3, -32
sub rsp, 32
.cfi_def_cfa_offset 64
movzx ebx, BYTE PTR [rdi]
mov rax, QWORD PTR fs:40
mov QWORD PTR 24[rsp], rax
xor eax, eax
xor eax, eax
mov WORD PTR 22[rsp], dx
mov QWORD PTR 4[rsp], 0
mov WORD PTR 12[rsp], ax
mov QWORD PTR 14[rsp], 0
test bl, bl
je .L8
mov rbp, rdi
call __ctype_b_loc@PLT
lea rdi, 1[rbp]
xor ecx, ecx
xor r9d, r9d
mov rsi, QWORD PTR [rax]
mov r8d, 1
xor eax, eax
jmp .L7
.p2align 4,,10
.p2align 3
.L18:
movsx rdx, eax
test ecx, ecx
jne .L4
mov BYTE PTR 4[rsp+rdx], bl
add eax, 1
.L5:
movzx ebx, BYTE PTR [rdi]
add rdi, 1
test bl, bl
je .L8
.L7:
movsx rdx, bl
test BYTE PTR 1[rsi+rdx*2], 8
jne .L18
test ecx, ecx
jne .L5
test eax, eax
setg dl
test dl, dl
cmovne eax, r9d
cmovne ecx, r8d
movzx ebx, BYTE PTR [rdi]
add rdi, 1
test bl, bl
jne .L7
.L8:
lea rdi, 4[rsp]
mov edx, 10
xor esi, esi
call strtol@PLT
lea rdi, 14[rsp]
mov edx, 10
xor esi, esi
sub r12d, eax
call strtol@PLT
sub r12d, eax
mov rax, QWORD PTR 24[rsp]
sub rax, QWORD PTR fs:40
jne .L19
add rsp, 32
.cfi_remember_state
.cfi_def_cfa_offset 32
mov eax, r12d
pop rbx
.cfi_def_cfa_offset 24
pop rbp
.cfi_def_cfa_offset 16
pop r12
.cfi_def_cfa_offset 8
ret
.p2align 4,,10
.p2align 3
.L4:
.cfi_restore_state
mov BYTE PTR 14[rsp+rdx], bl
add eax, 1
jmp .L5
.L19:
call __stack_chk_fail@PLT
.cfi_endproc
.LFE41:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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, 72
.cfi_offset 3, -24
mov QWORD PTR -72[rbp], rdi
mov DWORD PTR -76[rbp], esi
mov rax, QWORD PTR fs:40
mov QWORD PTR -24[rbp], rax
xor eax, eax
mov QWORD PTR -44[rbp], 0
mov WORD PTR -36[rbp], 0
mov QWORD PTR -34[rbp], 0
mov WORD PTR -26[rbp], 0
mov DWORD PTR -56[rbp], 0
mov DWORD PTR -52[rbp], 0
mov DWORD PTR -48[rbp], 0
jmp .L2
.L6:
call __ctype_b_loc@PLT
mov rdx, QWORD PTR [rax]
mov eax, DWORD PTR -48[rbp]
movsx rcx, eax
mov rax, QWORD PTR -72[rbp]
add rax, rcx
movzx eax, BYTE PTR [rax]
movsx rax, al
add rax, rax
add rax, rdx
movzx eax, WORD PTR [rax]
movzx eax, ax
and eax, 2048
test eax, eax
je .L3
cmp DWORD PTR -56[rbp], 0
jne .L4
mov eax, DWORD PTR -48[rbp]
movsx rdx, eax
mov rax, QWORD PTR -72[rbp]
lea rcx, [rdx+rax]
mov eax, DWORD PTR -52[rbp]
lea edx, 1[rax]
mov DWORD PTR -52[rbp], edx
movzx edx, BYTE PTR [rcx]
cdqe
mov BYTE PTR -44[rbp+rax], dl
jmp .L5
.L4:
mov eax, DWORD PTR -48[rbp]
movsx rdx, eax
mov rax, QWORD PTR -72[rbp]
lea rcx, [rdx+rax]
mov eax, DWORD PTR -52[rbp]
lea edx, 1[rax]
mov DWORD PTR -52[rbp], edx
movzx edx, BYTE PTR [rcx]
cdqe
mov BYTE PTR -34[rbp+rax], dl
jmp .L5
.L3:
cmp DWORD PTR -56[rbp], 0
jne .L5
cmp DWORD PTR -52[rbp], 0
jle .L5
mov DWORD PTR -56[rbp], 1
mov DWORD PTR -52[rbp], 0
.L5:
add DWORD PTR -48[rbp], 1
.L2:
mov eax, DWORD PTR -48[rbp]
movsx rdx, eax
mov rax, QWORD PTR -72[rbp]
add rax, rdx
movzx eax, BYTE PTR [rax]
test al, al
jne .L6
lea rax, -44[rbp]
mov rdi, rax
call atoi@PLT
mov edx, eax
mov eax, DWORD PTR -76[rbp]
sub eax, edx
mov ebx, eax
lea rax, -34[rbp]
mov rdi, rax
call atoi@PLT
mov edx, eax
mov eax, ebx
sub eax, edx
mov rsi, QWORD PTR -24[rbp]
sub rsi, 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
.LFE6:
.size func0, .-func0
.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:
|
eval/problem18/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB50:
.cfi_startproc
endbr64
push r15
.cfi_def_cfa_offset 16
.cfi_offset 15, -16
push r14
.cfi_def_cfa_offset 24
.cfi_offset 14, -24
push r13
.cfi_def_cfa_offset 32
.cfi_offset 13, -32
push r12
.cfi_def_cfa_offset 40
.cfi_offset 12, -40
mov r12, rdi
push rbp
.cfi_def_cfa_offset 48
.cfi_offset 6, -48
push rbx
.cfi_def_cfa_offset 56
.cfi_offset 3, -56
sub rsp, 56
.cfi_def_cfa_offset 112
mov QWORD PTR 24[rsp], rsi
mov rax, QWORD PTR fs:40
mov QWORD PTR 40[rsp], rax
xor eax, eax
xor eax, eax
mov BYTE PTR 39[rsp], 0
mov WORD PTR 37[rsp], ax
call strlen@PLT
lea edi, 2[rax]
mov rbp, rax
movsx rdi, edi
call malloc@PLT
mov rdx, rbp
mov rsi, r12
mov rdi, rax
mov rbx, rax
mov QWORD PTR 16[rsp], rax
call memcpy@PLT
mov edx, 32
lea eax, 1[rbp]
mov WORD PTR [rbx+rbp], dx
test eax, eax
jle .L19
mov ebp, ebp
mov DWORD PTR 12[rsp], 0
xor r15d, r15d
lea r14, 37[rsp]
lea r12, 1[rbx+rbp]
xor ebp, ebp
jmp .L17
.p2align 4,,10
.p2align 3
.L3:
mov rdi, r14
call strlen@PLT
cmp rax, 2
je .L16
mov BYTE PTR 37[rsp+rax], r13b
mov BYTE PTR 38[rsp+rax], 0
.L16:
add rbx, 1
cmp rbx, r12
je .L2
.L17:
movzx r13d, BYTE PTR [rbx]
cmp r13b, 32
jne .L3
cmp BYTE PTR [r14], 111
jne .L5
cmp BYTE PTR 1[r14], 0
jne .L5
cmp r15d, DWORD PTR 12[rsp]
je .L29
.L6:
movsx rax, r15d
add r15d, 1
mov DWORD PTR 0[rbp+rax*4], 4
.L5:
cmp BYTE PTR [r14], 111
jne .L9
cmp BYTE PTR 1[r14], 124
jne .L9
cmp BYTE PTR 2[r14], 0
jne .L9
cmp r15d, DWORD PTR 12[rsp]
je .L30
.L10:
movsx rax, r15d
add r15d, 1
mov DWORD PTR 0[rbp+rax*4], 2
.L9:
cmp BYTE PTR [r14], 46
jne .L13
cmp BYTE PTR 1[r14], 124
jne .L13
cmp BYTE PTR 2[r14], 0
jne .L13
cmp r15d, DWORD PTR 12[rsp]
je .L31
.L14:
movsx rax, r15d
add r15d, 1
mov DWORD PTR 0[rbp+rax*4], 1
.L13:
add rbx, 1
mov BYTE PTR 37[rsp], 0
cmp rbx, r12
jne .L17
.L2:
mov rdi, QWORD PTR 16[rsp]
call free@PLT
mov rax, QWORD PTR 24[rsp]
mov DWORD PTR [rax], r15d
mov rax, QWORD PTR 40[rsp]
sub rax, QWORD PTR fs:40
jne .L32
add rsp, 56
.cfi_remember_state
.cfi_def_cfa_offset 56
mov rax, rbp
pop rbx
.cfi_def_cfa_offset 48
pop rbp
.cfi_def_cfa_offset 40
pop r12
.cfi_def_cfa_offset 32
pop r13
.cfi_def_cfa_offset 24
pop r14
.cfi_def_cfa_offset 16
pop r15
.cfi_def_cfa_offset 8
ret
.p2align 4,,10
.p2align 3
.L29:
.cfi_restore_state
test r15d, r15d
jle .L20
lea eax, [r15+r15]
mov DWORD PTR 12[rsp], eax
movsx rsi, eax
sal rsi, 2
.L7:
mov rdi, rbp
call realloc@PLT
mov rbp, rax
jmp .L6
.p2align 4,,10
.p2align 3
.L31:
test r15d, r15d
jle .L22
lea eax, [r15+r15]
mov DWORD PTR 12[rsp], eax
movsx rsi, eax
sal rsi, 2
.L15:
mov rdi, rbp
call realloc@PLT
mov rbp, rax
jmp .L14
.p2align 4,,10
.p2align 3
.L30:
test r15d, r15d
jle .L21
lea eax, [r15+r15]
mov DWORD PTR 12[rsp], eax
movsx rsi, eax
sal rsi, 2
.L11:
mov rdi, rbp
call realloc@PLT
mov rbp, rax
jmp .L10
.p2align 4,,10
.p2align 3
.L20:
mov DWORD PTR 12[rsp], 4
mov esi, 16
jmp .L7
.p2align 4,,10
.p2align 3
.L21:
mov DWORD PTR 12[rsp], 4
mov esi, 16
jmp .L11
.p2align 4,,10
.p2align 3
.L22:
mov DWORD PTR 12[rsp], 4
mov esi, 16
jmp .L15
.p2align 4,,10
.p2align 3
.L19:
xor r15d, r15d
xor ebp, ebp
jmp .L2
.L32:
call __stack_chk_fail@PLT
.cfi_endproc
.LFE50:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.section .rodata
.LC0:
.string "o"
.LC1:
.string "o|"
.LC2:
.string ".|"
.text
.globl func0
.type func0, @function
func0:
.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 QWORD PTR -72[rbp], rdi
mov QWORD PTR -80[rbp], rsi
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
mov QWORD PTR -40[rbp], 0
mov DWORD PTR -56[rbp], 0
mov DWORD PTR -52[rbp], 0
mov WORD PTR -11[rbp], 0
mov BYTE PTR -9[rbp], 0
mov rax, QWORD PTR -72[rbp]
mov rdi, rax
call strlen@PLT
add eax, 1
mov DWORD PTR -44[rbp], eax
mov eax, DWORD PTR -44[rbp]
add eax, 1
cdqe
mov rdi, rax
call malloc@PLT
mov QWORD PTR -32[rbp], rax
mov rdx, QWORD PTR -72[rbp]
mov rax, QWORD PTR -32[rbp]
mov rsi, rdx
mov rdi, rax
call strcpy@PLT
mov rax, QWORD PTR -32[rbp]
mov rdi, rax
call strlen@PLT
mov rdx, rax
mov rax, QWORD PTR -32[rbp]
add rax, rdx
mov WORD PTR [rax], 32
mov DWORD PTR -48[rbp], 0
jmp .L2
.L17:
mov eax, DWORD PTR -48[rbp]
movsx rdx, eax
mov rax, QWORD PTR -32[rbp]
add rax, rdx
movzx eax, BYTE PTR [rax]
cmp al, 32
jne .L3
lea rax, -11[rbp]
lea rsi, .LC0[rip]
mov rdi, rax
call strcmp@PLT
test eax, eax
jne .L4
mov eax, DWORD PTR -56[rbp]
cmp eax, DWORD PTR -52[rbp]
jne .L5
cmp DWORD PTR -52[rbp], 0
jle .L6
mov eax, DWORD PTR -52[rbp]
add eax, eax
jmp .L7
.L6:
mov eax, 4
.L7:
mov DWORD PTR -52[rbp], eax
mov eax, DWORD PTR -52[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -40[rbp]
mov rsi, rdx
mov rdi, rax
call realloc@PLT
mov QWORD PTR -40[rbp], rax
.L5:
mov eax, DWORD PTR -56[rbp]
lea edx, 1[rax]
mov DWORD PTR -56[rbp], edx
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -40[rbp]
add rax, rdx
mov DWORD PTR [rax], 4
.L4:
lea rax, -11[rbp]
lea rsi, .LC1[rip]
mov rdi, rax
call strcmp@PLT
test eax, eax
jne .L8
mov eax, DWORD PTR -56[rbp]
cmp eax, DWORD PTR -52[rbp]
jne .L9
cmp DWORD PTR -52[rbp], 0
jle .L10
mov eax, DWORD PTR -52[rbp]
add eax, eax
jmp .L11
.L10:
mov eax, 4
.L11:
mov DWORD PTR -52[rbp], eax
mov eax, DWORD PTR -52[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -40[rbp]
mov rsi, rdx
mov rdi, rax
call realloc@PLT
mov QWORD PTR -40[rbp], rax
.L9:
mov eax, DWORD PTR -56[rbp]
lea edx, 1[rax]
mov DWORD PTR -56[rbp], edx
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -40[rbp]
add rax, rdx
mov DWORD PTR [rax], 2
.L8:
lea rax, -11[rbp]
lea rsi, .LC2[rip]
mov rdi, rax
call strcmp@PLT
test eax, eax
jne .L12
mov eax, DWORD PTR -56[rbp]
cmp eax, DWORD PTR -52[rbp]
jne .L13
cmp DWORD PTR -52[rbp], 0
jle .L14
mov eax, DWORD PTR -52[rbp]
add eax, eax
jmp .L15
.L14:
mov eax, 4
.L15:
mov DWORD PTR -52[rbp], eax
mov eax, DWORD PTR -52[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -40[rbp]
mov rsi, rdx
mov rdi, rax
call realloc@PLT
mov QWORD PTR -40[rbp], rax
.L13:
mov eax, DWORD PTR -56[rbp]
lea edx, 1[rax]
mov DWORD PTR -56[rbp], edx
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -40[rbp]
add rax, rdx
mov DWORD PTR [rax], 1
.L12:
mov BYTE PTR -11[rbp], 0
jmp .L16
.L3:
lea rax, -11[rbp]
mov rdi, rax
call strlen@PLT
mov QWORD PTR -24[rbp], rax
cmp QWORD PTR -24[rbp], 1
ja .L16
mov eax, DWORD PTR -48[rbp]
movsx rdx, eax
mov rax, QWORD PTR -32[rbp]
add rax, rdx
movzx eax, BYTE PTR [rax]
lea rcx, -11[rbp]
mov rdx, QWORD PTR -24[rbp]
add rdx, rcx
mov BYTE PTR [rdx], al
mov rax, QWORD PTR -24[rbp]
add rax, 1
mov BYTE PTR -11[rbp+rax], 0
.L16:
add DWORD PTR -48[rbp], 1
.L2:
mov eax, DWORD PTR -48[rbp]
cmp eax, DWORD PTR -44[rbp]
jl .L17
mov rax, QWORD PTR -32[rbp]
mov rdi, rax
call free@PLT
mov rax, QWORD PTR -80[rbp]
mov edx, DWORD PTR -56[rbp]
mov DWORD PTR [rax], edx
mov rax, QWORD PTR -40[rbp]
mov rcx, QWORD PTR -8[rbp]
sub rcx, QWORD PTR fs:40
je .L19
call __stack_chk_fail@PLT
.L19:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size func0, .-func0
.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:
|
eval/problem17/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB36:
.cfi_startproc
endbr64
push r14
.cfi_def_cfa_offset 16
.cfi_offset 14, -16
mov ecx, 128
push r13
.cfi_def_cfa_offset 24
.cfi_offset 13, -24
push r12
.cfi_def_cfa_offset 32
.cfi_offset 12, -32
push rbp
.cfi_def_cfa_offset 40
.cfi_offset 6, -40
mov rbp, rdi
push rbx
.cfi_def_cfa_offset 48
.cfi_offset 3, -48
sub rsp, 1040
.cfi_def_cfa_offset 1088
movzx ebx, BYTE PTR 0[rbp]
mov rax, QWORD PTR fs:40
mov QWORD PTR 1032[rsp], rax
xor eax, eax
mov rdi, rsp
rep stosq
test bl, bl
je .L6
call __ctype_tolower_loc@PLT
add rbp, 1
xor r12d, r12d
mov r14, QWORD PTR [rax]
.p2align 4,,10
.p2align 3
.L4:
mov ebx, DWORD PTR [r14+rbx*4]
movsx r13, bl
mov eax, DWORD PTR [rsp+r13*4]
test eax, eax
jne .L3
call __ctype_b_loc@PLT
movzx ebx, bl
mov rax, QWORD PTR [rax]
test BYTE PTR 1[rax+rbx*2], 4
je .L3
mov DWORD PTR [rsp+r13*4], 1
add r12d, 1
.L3:
movzx ebx, BYTE PTR 0[rbp]
add rbp, 1
test bl, bl
jne .L4
.L1:
mov rax, QWORD PTR 1032[rsp]
sub rax, QWORD PTR fs:40
jne .L13
add rsp, 1040
.cfi_remember_state
.cfi_def_cfa_offset 48
mov eax, r12d
pop rbx
.cfi_def_cfa_offset 40
pop rbp
.cfi_def_cfa_offset 32
pop r12
.cfi_def_cfa_offset 24
pop r13
.cfi_def_cfa_offset 16
pop r14
.cfi_def_cfa_offset 8
ret
.p2align 4,,10
.p2align 3
.L6:
.cfi_restore_state
xor r12d, r12d
jmp .L1
.L13:
call __stack_chk_fail@PLT
.cfi_endproc
.LFE36:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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, 1072
mov QWORD PTR -1064[rbp], rdi
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
mov DWORD PTR -1048[rbp], 0
lea rdx, -1040[rbp]
mov eax, 0
mov ecx, 128
mov rdi, rdx
rep stosq
mov DWORD PTR -1044[rbp], 0
jmp .L2
.L4:
mov eax, DWORD PTR -1044[rbp]
movsx rdx, eax
mov rax, QWORD PTR -1064[rbp]
add rax, rdx
movzx eax, BYTE PTR [rax]
movzx eax, al
mov edi, eax
call tolower@PLT
mov BYTE PTR -1049[rbp], al
movsx eax, BYTE PTR -1049[rbp]
cdqe
mov eax, DWORD PTR -1040[rbp+rax*4]
test eax, eax
jne .L3
call __ctype_b_loc@PLT
mov rdx, QWORD PTR [rax]
movzx eax, BYTE PTR -1049[rbp]
movzx eax, al
add rax, rax
add rax, rdx
movzx eax, WORD PTR [rax]
movzx eax, ax
and eax, 1024
test eax, eax
je .L3
movsx eax, BYTE PTR -1049[rbp]
cdqe
mov DWORD PTR -1040[rbp+rax*4], 1
add DWORD PTR -1048[rbp], 1
.L3:
add DWORD PTR -1044[rbp], 1
.L2:
mov eax, DWORD PTR -1044[rbp]
movsx rdx, eax
mov rax, QWORD PTR -1064[rbp]
add rax, rdx
movzx eax, BYTE PTR [rax]
test al, al
jne .L4
mov eax, DWORD PTR -1048[rbp]
mov rsi, QWORD PTR -8[rbp]
sub rsi, QWORD PTR fs:40
je .L6
call __stack_chk_fail@PLT
.L6:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size func0, .-func0
.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:
|
eval/problem125/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB50:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
push rbx
.cfi_def_cfa_offset 24
.cfi_offset 3, -24
mov rbx, rdi
sub rsp, 40
.cfi_def_cfa_offset 64
mov rax, QWORD PTR fs:40
mov QWORD PTR 24[rsp], rax
xor eax, eax
call strlen@PLT
cmp rax, 10
jne .L6
xor eax, eax
jmp .L2
.p2align 4,,10
.p2align 3
.L4:
sub edx, 48
cmp dl, 9
ja .L6
.L7:
add rax, 1
cmp rax, 10
je .L19
.L2:
movzx edx, BYTE PTR [rbx+rax]
cmp eax, 2
je .L12
cmp eax, 5
jne .L4
.L12:
cmp dl, 45
je .L7
.p2align 4,,10
.p2align 3
.L6:
xor eax, eax
.L1:
mov rcx, QWORD PTR 24[rsp]
sub rcx, QWORD PTR fs:40
jne .L20
add rsp, 40
.cfi_remember_state
.cfi_def_cfa_offset 24
pop rbx
.cfi_def_cfa_offset 16
pop rbp
.cfi_def_cfa_offset 8
ret
.p2align 4,,10
.p2align 3
.L19:
.cfi_restore_state
movzx eax, WORD PTR [rbx]
lea rdi, 13[rsp]
mov edx, 10
xor esi, esi
mov BYTE PTR 15[rsp], 0
mov WORD PTR 13[rsp], ax
movzx eax, WORD PTR 3[rbx]
mov BYTE PTR 18[rsp], 0
mov WORD PTR 16[rsp], ax
mov eax, DWORD PTR 6[rbx]
mov BYTE PTR 23[rsp], 0
mov DWORD PTR 19[rsp], eax
call strtol@PLT
lea rdi, 16[rsp]
mov edx, 10
xor esi, esi
mov rbx, rax
call strtol@PLT
lea rdi, 19[rsp]
mov edx, 10
xor esi, esi
mov rbp, rax
call strtol@PLT
lea eax, -1[rbx]
cmp eax, 11
ja .L6
lea eax, -1[rbp]
cmp eax, 30
ja .L6
mov eax, ebx
and eax, -3
cmp eax, 4
je .L8
cmp eax, 9
jne .L9
.L8:
cmp ebp, 31
je .L6
.L9:
cmp ebx, 2
sete al
cmp ebp, 29
setg dl
and eax, edx
xor eax, 1
movzx eax, al
jmp .L1
.L20:
call __stack_chk_fail@PLT
.cfi_endproc
.LFE50:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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 -56[rbp], rdi
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
mov rax, QWORD PTR -56[rbp]
mov rdi, rax
call strlen@PLT
cmp rax, 10
je .L2
mov eax, 0
jmp .L18
.L2:
mov DWORD PTR -36[rbp], 0
jmp .L4
.L10:
cmp DWORD PTR -36[rbp], 2
je .L5
cmp DWORD PTR -36[rbp], 5
jne .L6
.L5:
mov eax, DWORD PTR -36[rbp]
movsx rdx, eax
mov rax, QWORD PTR -56[rbp]
add rax, rdx
movzx eax, BYTE PTR [rax]
cmp al, 45
je .L8
mov eax, 0
jmp .L18
.L6:
mov eax, DWORD PTR -36[rbp]
movsx rdx, eax
mov rax, QWORD PTR -56[rbp]
add rax, rdx
movzx eax, BYTE PTR [rax]
cmp al, 47
jle .L9
mov eax, DWORD PTR -36[rbp]
movsx rdx, eax
mov rax, QWORD PTR -56[rbp]
add rax, rdx
movzx eax, BYTE PTR [rax]
cmp al, 57
jle .L8
.L9:
mov eax, 0
jmp .L18
.L8:
add DWORD PTR -36[rbp], 1
.L4:
cmp DWORD PTR -36[rbp], 9
jle .L10
mov rax, QWORD PTR -56[rbp]
movzx eax, BYTE PTR [rax]
mov BYTE PTR -19[rbp], al
mov rax, QWORD PTR -56[rbp]
movzx eax, BYTE PTR 1[rax]
mov BYTE PTR -18[rbp], al
mov BYTE PTR -17[rbp], 0
mov rax, QWORD PTR -56[rbp]
movzx eax, BYTE PTR 3[rax]
mov BYTE PTR -16[rbp], al
mov rax, QWORD PTR -56[rbp]
movzx eax, BYTE PTR 4[rax]
mov BYTE PTR -15[rbp], al
mov BYTE PTR -14[rbp], 0
mov rax, QWORD PTR -56[rbp]
movzx eax, BYTE PTR 6[rax]
mov BYTE PTR -13[rbp], al
mov rax, QWORD PTR -56[rbp]
movzx eax, BYTE PTR 7[rax]
mov BYTE PTR -12[rbp], al
mov rax, QWORD PTR -56[rbp]
movzx eax, BYTE PTR 8[rax]
mov BYTE PTR -11[rbp], al
mov rax, QWORD PTR -56[rbp]
movzx eax, BYTE PTR 9[rax]
mov BYTE PTR -10[rbp], al
mov BYTE PTR -9[rbp], 0
lea rax, -19[rbp]
mov rdi, rax
call atoi@PLT
mov DWORD PTR -32[rbp], eax
lea rax, -16[rbp]
mov rdi, rax
call atoi@PLT
mov DWORD PTR -28[rbp], eax
lea rax, -13[rbp]
mov rdi, rax
call atoi@PLT
mov DWORD PTR -24[rbp], eax
cmp DWORD PTR -32[rbp], 0
jle .L11
cmp DWORD PTR -32[rbp], 12
jle .L12
.L11:
mov eax, 0
jmp .L18
.L12:
cmp DWORD PTR -28[rbp], 0
jle .L13
cmp DWORD PTR -28[rbp], 31
jle .L14
.L13:
mov eax, 0
jmp .L18
.L14:
cmp DWORD PTR -32[rbp], 4
je .L15
cmp DWORD PTR -32[rbp], 6
je .L15
cmp DWORD PTR -32[rbp], 9
je .L15
cmp DWORD PTR -32[rbp], 11
jne .L16
.L15:
cmp DWORD PTR -28[rbp], 31
jne .L16
mov eax, 0
jmp .L18
.L16:
cmp DWORD PTR -32[rbp], 2
jne .L17
cmp DWORD PTR -28[rbp], 29
jle .L17
mov eax, 0
jmp .L18
.L17:
mov eax, 1
.L18:
mov rcx, QWORD PTR -8[rbp]
sub rcx, QWORD PTR fs:40
je .L19
call __stack_chk_fail@PLT
.L19:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size func0, .-func0
.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:
|
eval/problem35/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB39:
.cfi_startproc
endbr64
push r12
.cfi_def_cfa_offset 16
.cfi_offset 12, -16
push rbp
.cfi_def_cfa_offset 24
.cfi_offset 6, -24
mov rbp, rdx
push rbx
.cfi_def_cfa_offset 32
.cfi_offset 3, -32
mov rbx, rdi
movsx rdi, esi
mov r12, rdi
sal rdi, 2
call malloc@PLT
mov r10, rax
test r12d, r12d
jle .L14
lea eax, -1[r12]
mov rdi, rbx
lea r8, 4[r10]
xor r9d, r9d
lea rsi, 4[rbx+rax*4]
.p2align 4,,10
.p2align 3
.L3:
mov edx, DWORD PTR [rdi]
test r9d, r9d
je .L6
lea ecx, -1[r9]
mov rax, r10
lea rcx, [r8+rcx*4]
jmp .L5
.p2align 4,,10
.p2align 3
.L24:
add rax, 4
cmp rax, rcx
je .L6
.L5:
cmp DWORD PTR [rax], edx
jne .L24
add rdi, 4
cmp rdi, rsi
jne .L3
.L7:
cmp r9d, 1
je .L2
lea r11d, -2[r9]
lea rsi, 4[r10]
mov r8d, 1
add r11, 2
lea r12d, -1[r9]
lea rbx, 8[r10]
.p2align 4,,10
.p2align 3
.L10:
cmp r9d, r8d
jle .L13
mov eax, r12d
sub eax, r8d
lea rax, -1[r8+rax]
lea rdi, [rbx+rax*4]
mov rax, rsi
.p2align 4,,10
.p2align 3
.L12:
mov edx, DWORD PTR -4[rsi]
mov ecx, DWORD PTR [rax]
cmp edx, ecx
jle .L11
mov DWORD PTR -4[rsi], ecx
mov DWORD PTR [rax], edx
.L11:
add rax, 4
cmp rdi, rax
jne .L12
.L13:
add r8, 1
add rsi, 4
cmp r8, r11
jne .L10
.L2:
pop rbx
.cfi_remember_state
.cfi_def_cfa_offset 24
mov DWORD PTR 0[rbp], r9d
mov rax, r10
pop rbp
.cfi_def_cfa_offset 16
pop r12
.cfi_def_cfa_offset 8
ret
.p2align 4,,10
.p2align 3
.L6:
.cfi_restore_state
movsx rax, r9d
add rdi, 4
add r9d, 1
mov DWORD PTR [r10+rax*4], edx
cmp rdi, rsi
jne .L3
jmp .L7
.L14:
xor r9d, r9d
pop rbx
.cfi_def_cfa_offset 24
mov rax, r10
mov DWORD PTR 0[rbp], r9d
pop rbp
.cfi_def_cfa_offset 16
pop r12
.cfi_def_cfa_offset 8
ret
.cfi_endproc
.LFE39:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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 DWORD PTR -44[rbp], esi
mov QWORD PTR -56[rbp], rdx
mov eax, DWORD PTR -44[rbp]
cdqe
sal rax, 2
mov rdi, rax
call malloc@PLT
mov QWORD PTR -8[rbp], rax
mov DWORD PTR -24[rbp], 0
mov DWORD PTR -20[rbp], 0
jmp .L2
.L8:
mov DWORD PTR -28[rbp], 0
mov DWORD PTR -16[rbp], 0
jmp .L3
.L6:
mov eax, DWORD PTR -20[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -40[rbp]
add rax, rdx
mov edx, DWORD PTR [rax]
mov eax, DWORD PTR -16[rbp]
cdqe
lea rcx, 0[0+rax*4]
mov rax, QWORD PTR -8[rbp]
add rax, rcx
mov eax, DWORD PTR [rax]
cmp edx, eax
jne .L4
mov DWORD PTR -28[rbp], 1
jmp .L5
.L4:
add DWORD PTR -16[rbp], 1
.L3:
mov eax, DWORD PTR -16[rbp]
cmp eax, DWORD PTR -24[rbp]
jl .L6
.L5:
cmp DWORD PTR -28[rbp], 0
jne .L7
mov eax, DWORD PTR -20[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -40[rbp]
lea rcx, [rdx+rax]
mov eax, DWORD PTR -24[rbp]
lea edx, 1[rax]
mov DWORD PTR -24[rbp], edx
cdqe
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:
add DWORD PTR -20[rbp], 1
.L2:
mov eax, DWORD PTR -20[rbp]
cmp eax, DWORD PTR -44[rbp]
jl .L8
mov DWORD PTR -20[rbp], 0
jmp .L9
.L13:
mov eax, DWORD PTR -20[rbp]
add eax, 1
mov DWORD PTR -16[rbp], eax
jmp .L10
.L12:
mov eax, DWORD PTR -20[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -8[rbp]
add rax, rdx
mov edx, DWORD PTR [rax]
mov eax, DWORD PTR -16[rbp]
cdqe
lea rcx, 0[0+rax*4]
mov rax, QWORD PTR -8[rbp]
add rax, rcx
mov eax, DWORD PTR [rax]
cmp edx, eax
jle .L11
mov eax, DWORD PTR -20[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -8[rbp]
add rax, rdx
mov eax, DWORD PTR [rax]
mov DWORD PTR -12[rbp], eax
mov eax, DWORD PTR -16[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -8[rbp]
add rax, rdx
mov edx, DWORD PTR -20[rbp]
movsx rdx, edx
lea rcx, 0[0+rdx*4]
mov rdx, QWORD PTR -8[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 -8[rbp]
add rdx, rax
mov eax, DWORD PTR -12[rbp]
mov DWORD PTR [rdx], eax
.L11:
add DWORD PTR -16[rbp], 1
.L10:
mov eax, DWORD PTR -16[rbp]
cmp eax, DWORD PTR -24[rbp]
jl .L12
add DWORD PTR -20[rbp], 1
.L9:
mov eax, DWORD PTR -24[rbp]
sub eax, 1
cmp DWORD PTR -20[rbp], eax
jl .L13
mov rax, QWORD PTR -56[rbp]
mov edx, DWORD PTR -24[rbp]
mov DWORD PTR [rax], edx
mov rax, QWORD PTR -8[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size func0, .-func0
.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:
|
eval/problem75/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB50:
.cfi_startproc
endbr64
push r15
.cfi_def_cfa_offset 16
.cfi_offset 15, -16
push r14
.cfi_def_cfa_offset 24
.cfi_offset 14, -24
mov r14, rdi
push r13
.cfi_def_cfa_offset 32
.cfi_offset 13, -32
mov r13, rdx
push r12
.cfi_def_cfa_offset 40
.cfi_offset 12, -40
mov r12d, ecx
push rbp
.cfi_def_cfa_offset 48
.cfi_offset 6, -48
push rbx
.cfi_def_cfa_offset 56
.cfi_offset 3, -56
sub rsp, 8
.cfi_def_cfa_offset 64
test esi, esi
jle .L2
lea eax, -1[rsi]
mov rbx, rdi
xor ebp, ebp
lea r15, 8[rdi+rax*8]
.p2align 4,,10
.p2align 3
.L3:
mov rdi, QWORD PTR [rbx]
add rbx, 8
call strlen@PLT
add ebp, eax
cmp r15, rbx
jne .L3
test r12d, r12d
jle .L8
.L7:
xor ebx, ebx
xor r15d, r15d
.p2align 4,,10
.p2align 3
.L5:
mov rdi, QWORD PTR 0[r13+rbx*8]
add rbx, 1
call strlen@PLT
add r15d, eax
cmp r12d, ebx
jg .L5
.L4:
cmp ebp, r15d
mov rax, r13
cmovle rax, r14
.L1:
add rsp, 8
.cfi_remember_state
.cfi_def_cfa_offset 56
pop rbx
.cfi_def_cfa_offset 48
pop rbp
.cfi_def_cfa_offset 40
pop r12
.cfi_def_cfa_offset 32
pop r13
.cfi_def_cfa_offset 24
pop r14
.cfi_def_cfa_offset 16
pop r15
.cfi_def_cfa_offset 8
ret
.p2align 4,,10
.p2align 3
.L2:
.cfi_restore_state
xor ebp, ebp
test ecx, ecx
jg .L7
mov rax, rdi
jmp .L1
.p2align 4,,10
.p2align 3
.L8:
xor r15d, r15d
jmp .L4
.cfi_endproc
.LFE50:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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 QWORD PTR -24[rbp], rdi
mov DWORD PTR -28[rbp], esi
mov QWORD PTR -40[rbp], rdx
mov DWORD PTR -32[rbp], ecx
mov DWORD PTR -8[rbp], 0
mov DWORD PTR -4[rbp], 0
mov DWORD PTR -12[rbp], 0
jmp .L2
.L3:
mov eax, DWORD PTR -12[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 strlen@PLT
mov edx, eax
mov eax, DWORD PTR -8[rbp]
add eax, edx
mov DWORD PTR -8[rbp], eax
add DWORD PTR -12[rbp], 1
.L2:
mov eax, DWORD PTR -12[rbp]
cmp eax, DWORD PTR -28[rbp]
jl .L3
mov DWORD PTR -12[rbp], 0
jmp .L4
.L5:
mov eax, DWORD PTR -12[rbp]
cdqe
lea rdx, 0[0+rax*8]
mov rax, QWORD PTR -40[rbp]
add rax, rdx
mov rax, QWORD PTR [rax]
mov rdi, rax
call strlen@PLT
mov edx, eax
mov eax, DWORD PTR -4[rbp]
add eax, edx
mov DWORD PTR -4[rbp], eax
add DWORD PTR -12[rbp], 1
.L4:
mov eax, DWORD PTR -12[rbp]
cmp eax, DWORD PTR -32[rbp]
jl .L5
mov eax, DWORD PTR -8[rbp]
cmp eax, DWORD PTR -4[rbp]
jge .L6
mov rax, QWORD PTR -24[rbp]
jmp .L7
.L6:
mov eax, DWORD PTR -8[rbp]
cmp eax, DWORD PTR -4[rbp]
jle .L8
mov rax, QWORD PTR -40[rbp]
jmp .L7
.L8:
mov rax, QWORD PTR -24[rbp]
.L7:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size func0, .-func0
.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:
|
eval/problem97/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB39:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movsx rdi, edi
mov rbp, rsi
push rbx
.cfi_def_cfa_offset 24
.cfi_offset 3, -24
mov rbx, rdi
sal rdi, 2
sub rsp, 8
.cfi_def_cfa_offset 32
call malloc@PLT
mov DWORD PTR 0[rbp], 0
xor r9d, r9d
mov edi, 2
mov r10, rax
lea r11, 4[rax]
cmp ebx, 2
jle .L1
.p2align 4,,10
.p2align 3
.L2:
test r9d, r9d
jle .L4
lea eax, -1[r9]
mov rsi, r10
lea r8, [r11+rax*4]
jmp .L6
.p2align 4,,10
.p2align 3
.L17:
mov eax, edi
cdq
idiv ecx
test edx, edx
je .L5
add rsi, 4
cmp rsi, r8
je .L4
.L6:
mov ecx, DWORD PTR [rsi]
mov eax, ecx
imul eax, ecx
cmp eax, edi
jle .L17
.L4:
movsx rax, r9d
add r9d, 1
mov DWORD PTR [r10+rax*4], edi
mov DWORD PTR 0[rbp], r9d
.L5:
add edi, 1
cmp ebx, edi
je .L1
mov r9d, DWORD PTR 0[rbp]
jmp .L2
.p2align 4,,10
.p2align 3
.L1:
add rsp, 8
.cfi_def_cfa_offset 24
mov rax, r10
pop rbx
.cfi_def_cfa_offset 16
pop rbp
.cfi_def_cfa_offset 8
ret
.cfi_endproc
.LFE39:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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
mov eax, DWORD PTR -36[rbp]
cdqe
sal rax, 2
mov rdi, rax
call malloc@PLT
mov QWORD PTR -8[rbp], rax
mov rax, QWORD PTR -48[rbp]
mov DWORD PTR [rax], 0
mov DWORD PTR -24[rbp], 2
jmp .L2
.L9:
mov DWORD PTR -16[rbp], 1
mov DWORD PTR -20[rbp], 0
jmp .L3
.L7:
mov eax, DWORD PTR -20[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -8[rbp]
add rax, rdx
mov eax, DWORD PTR [rax]
mov DWORD PTR -12[rbp], eax
mov eax, DWORD PTR -12[rbp]
imul eax, eax
cmp DWORD PTR -24[rbp], eax
jl .L11
mov eax, DWORD PTR -24[rbp]
cdq
idiv DWORD PTR -12[rbp]
mov eax, edx
test eax, eax
jne .L6
mov DWORD PTR -16[rbp], 0
jmp .L5
.L6:
add DWORD PTR -20[rbp], 1
.L3:
mov rax, QWORD PTR -48[rbp]
mov eax, DWORD PTR [rax]
cmp DWORD PTR -20[rbp], eax
jl .L7
jmp .L5
.L11:
nop
.L5:
cmp DWORD PTR -16[rbp], 0
je .L8
mov rax, QWORD PTR -48[rbp]
mov eax, DWORD PTR [rax]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -8[rbp]
add rdx, rax
mov eax, DWORD PTR -24[rbp]
mov DWORD PTR [rdx], eax
mov rax, QWORD PTR -48[rbp]
mov eax, DWORD PTR [rax]
lea edx, 1[rax]
mov rax, QWORD PTR -48[rbp]
mov DWORD PTR [rax], edx
.L8:
add DWORD PTR -24[rbp], 1
.L2:
mov eax, DWORD PTR -24[rbp]
cmp eax, DWORD PTR -36[rbp]
jl .L9
mov rax, QWORD PTR -8[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size func0, .-func0
.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:
|
eval/problem32/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB0:
.cfi_startproc
endbr64
xor eax, eax
cmp rdi, 1
jle .L1
cmp rdi, 3
jle .L6
test dil, 1
je .L1
mov ecx, 2
jmp .L3
.p2align 4,,10
.p2align 3
.L4:
mov rax, rdi
cqo
idiv rcx
test rdx, rdx
je .L8
.L3:
add rcx, 1
mov rax, rcx
imul rax, rcx
cmp rax, rdi
jle .L4
.L6:
mov eax, 1
ret
.p2align 4,,10
.p2align 3
.L8:
xor eax, eax
.L1:
ret
.cfi_endproc
.LFE0:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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
cmp QWORD PTR -24[rbp], 1
jg .L2
mov eax, 0
jmp .L3
.L2:
mov QWORD PTR -8[rbp], 2
jmp .L4
.L6:
mov rax, QWORD PTR -24[rbp]
cqo
idiv QWORD PTR -8[rbp]
mov rax, rdx
test rax, rax
jne .L5
mov eax, 0
jmp .L3
.L5:
add QWORD PTR -8[rbp], 1
.L4:
mov rax, QWORD PTR -8[rbp]
imul rax, rax
cmp QWORD PTR -24[rbp], rax
jge .L6
mov eax, 1
.L3:
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size func0, .-func0
.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:
|
eval/problem143/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB23:
.cfi_startproc
endbr64
test esi, esi
jle .L7
movsx rsi, esi
xor eax, eax
xor r8d, r8d
jmp .L6
.p2align 4,,10
.p2align 3
.L10:
imul edx, edx
add r8d, edx
.L4:
add rax, 1
cmp rax, rsi
je .L1
.L6:
imul ecx, eax, -1431655765
mov edx, DWORD PTR [rdi+rax*4]
cmp ecx, 1431655765
jbe .L10
test al, 3
jne .L5
mov ecx, edx
add rax, 1
imul ecx, edx
imul edx, ecx
add r8d, edx
cmp rax, rsi
jne .L6
.L1:
mov eax, r8d
ret
.p2align 4,,10
.p2align 3
.L5:
add r8d, edx
jmp .L4
.p2align 4,,10
.p2align 3
.L7:
xor r8d, r8d
mov eax, r8d
ret
.cfi_endproc
.LFE23:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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 -8[rbp], 0
mov DWORD PTR -4[rbp], 0
jmp .L2
.L6:
mov edx, DWORD PTR -4[rbp]
movsx rax, edx
imul rax, rax, 1431655766
shr rax, 32
mov ecx, edx
sar ecx, 31
sub eax, ecx
mov ecx, eax
add ecx, ecx
add ecx, eax
mov eax, edx
sub eax, ecx
test eax, eax
jne .L3
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
lea rcx, 0[0+rax*4]
mov rax, QWORD PTR -24[rbp]
add rax, rcx
mov eax, DWORD PTR [rax]
imul eax, edx
add DWORD PTR -8[rbp], eax
jmp .L4
.L3:
mov eax, DWORD PTR -4[rbp]
and eax, 3
test eax, eax
jne .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
lea rcx, 0[0+rax*4]
mov rax, QWORD PTR -24[rbp]
add rax, rcx
mov eax, DWORD PTR [rax]
imul edx, eax
mov eax, DWORD PTR -4[rbp]
cdqe
lea rcx, 0[0+rax*4]
mov rax, QWORD PTR -24[rbp]
add rax, rcx
mov eax, DWORD PTR [rax]
imul eax, edx
add DWORD PTR -8[rbp], eax
jmp .L4
.L5:
mov eax, DWORD PTR -4[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -24[rbp]
add rax, rdx
mov eax, DWORD PTR [rax]
add DWORD PTR -8[rbp], eax
.L4:
add DWORD PTR -4[rbp], 1
.L2:
mov eax, DWORD PTR -4[rbp]
cmp eax, DWORD PTR -28[rbp]
jl .L6
mov eax, DWORD PTR -8[rbp]
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size func0, .-func0
.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:
|
eval/problem29/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB50:
.cfi_startproc
endbr64
push r13
.cfi_def_cfa_offset 16
.cfi_offset 13, -16
push r12
.cfi_def_cfa_offset 24
.cfi_offset 12, -24
push rbp
.cfi_def_cfa_offset 32
.cfi_offset 6, -32
push rbx
.cfi_def_cfa_offset 40
.cfi_offset 3, -40
sub rsp, 8
.cfi_def_cfa_offset 48
test esi, esi
jle .L2
lea eax, -1[rsi]
mov rbx, rdi
mov rbp, rdi
xor r12d, r12d
lea r13, 8[rdi+rax*8]
.p2align 4,,10
.p2align 3
.L3:
mov rdi, QWORD PTR 0[rbp]
add rbp, 8
call strlen@PLT
add r12d, eax
cmp rbp, r13
jne .L3
lea edi, 1[r12]
movsx rdi, edi
call malloc@PLT
mov r8, rax
test rax, rax
je .L8
mov BYTE PTR [r8], 0
.p2align 4,,10
.p2align 3
.L7:
mov rsi, QWORD PTR [rbx]
mov rdi, r8
add rbx, 8
call strcat@PLT
mov r8, rax
cmp rbx, r13
jne .L7
.L1:
add rsp, 8
.cfi_remember_state
.cfi_def_cfa_offset 40
mov rax, r8
pop rbx
.cfi_def_cfa_offset 32
pop rbp
.cfi_def_cfa_offset 24
pop r12
.cfi_def_cfa_offset 16
pop r13
.cfi_def_cfa_offset 8
ret
.p2align 4,,10
.p2align 3
.L2:
.cfi_restore_state
mov edi, 1
call malloc@PLT
mov r8, rax
test rax, rax
je .L8
mov BYTE PTR [rax], 0
add rsp, 8
.cfi_remember_state
.cfi_def_cfa_offset 40
mov rax, r8
pop rbx
.cfi_def_cfa_offset 32
pop rbp
.cfi_def_cfa_offset 24
pop r12
.cfi_def_cfa_offset 16
pop r13
.cfi_def_cfa_offset 8
ret
.L8:
.cfi_restore_state
xor r8d, r8d
jmp .L1
.cfi_endproc
.LFE50:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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 QWORD PTR -40[rbp], rdi
mov DWORD PTR -44[rbp], esi
mov DWORD PTR -20[rbp], 0
mov DWORD PTR -16[rbp], 0
jmp .L2
.L3:
mov eax, DWORD PTR -16[rbp]
cdqe
lea rdx, 0[0+rax*8]
mov rax, QWORD PTR -40[rbp]
add rax, rdx
mov rax, QWORD PTR [rax]
mov rdi, rax
call strlen@PLT
mov edx, eax
mov eax, DWORD PTR -20[rbp]
add eax, edx
mov DWORD PTR -20[rbp], eax
add DWORD PTR -16[rbp], 1
.L2:
mov eax, DWORD PTR -16[rbp]
cmp eax, DWORD PTR -44[rbp]
jl .L3
mov eax, DWORD PTR -20[rbp]
add eax, 1
cdqe
mov rdi, rax
call malloc@PLT
mov QWORD PTR -8[rbp], rax
cmp QWORD PTR -8[rbp], 0
jne .L4
mov eax, 0
jmp .L5
.L4:
mov rax, QWORD PTR -8[rbp]
mov BYTE PTR [rax], 0
mov DWORD PTR -12[rbp], 0
jmp .L6
.L7:
mov eax, DWORD PTR -12[rbp]
cdqe
lea rdx, 0[0+rax*8]
mov rax, QWORD PTR -40[rbp]
add rax, rdx
mov rdx, QWORD PTR [rax]
mov rax, QWORD PTR -8[rbp]
mov rsi, rdx
mov rdi, rax
call strcat@PLT
add DWORD PTR -12[rbp], 1
.L6:
mov eax, DWORD PTR -12[rbp]
cmp eax, DWORD PTR -44[rbp]
jl .L7
mov rax, QWORD PTR -8[rbp]
.L5:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size func0, .-func0
.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:
|
eval/problem154/code.c | .file "code.c"
.intel_syntax noprefix
.text
.section .rodata.str1.1,"aMS",@progbits,1
.LC0:
.string "%s.%s"
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB34:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov r8, rdi
mov r11, rcx
push rbx
.cfi_def_cfa_offset 24
.cfi_offset 3, -24
test edx, edx
jle .L9
lea eax, -1[rdx]
mov rdi, rsi
xor r9d, r9d
mov ebx, -1000
lea rbp, 8[rsi+rax*8]
.p2align 4,,10
.p2align 3
.L8:
mov r10, QWORD PTR [rdi]
movzx eax, BYTE PTR [r10]
test al, al
je .L10
lea rdx, 1[r10]
xor ecx, ecx
jmp .L6
.p2align 4,,10
.p2align 3
.L15:
movzx eax, BYTE PTR [rdx]
add rdx, 1
add ecx, 1
test al, al
je .L3
.L6:
lea esi, -65[rax]
cmp sil, 25
jbe .L15
sub eax, 97
cmp al, 26
sbb ecx, 0
movzx eax, BYTE PTR [rdx]
add rdx, 1
test al, al
jne .L6
.L3:
cmp ebx, ecx
jge .L7
mov r9, r10
mov ebx, ecx
.L7:
add rdi, 8
cmp rdi, rbp
jne .L8
.L2:
pop rbx
.cfi_remember_state
.cfi_def_cfa_offset 16
lea rcx, .LC0[rip]
mov rdx, -1
pop rbp
.cfi_def_cfa_offset 8
mov esi, 1
mov rdi, r11
xor eax, eax
jmp __sprintf_chk@PLT
.p2align 4,,10
.p2align 3
.L10:
.cfi_restore_state
xor ecx, ecx
jmp .L3
.L9:
xor r9d, r9d
jmp .L2
.cfi_endproc
.LFE34:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.section .rodata
.LC0:
.string "%s.%s"
.text
.globl func0
.type func0, @function
func0:
.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, 80
mov QWORD PTR -56[rbp], rdi
mov QWORD PTR -64[rbp], rsi
mov DWORD PTR -68[rbp], edx
mov QWORD PTR -80[rbp], rcx
mov DWORD PTR -32[rbp], -1000
mov QWORD PTR -16[rbp], 0
mov DWORD PTR -28[rbp], 0
jmp .L2
.L8:
mov eax, DWORD PTR -28[rbp]
cdqe
lea rdx, 0[0+rax*8]
mov rax, QWORD PTR -64[rbp]
add rax, rdx
mov rax, QWORD PTR [rax]
mov QWORD PTR -8[rbp], rax
mov DWORD PTR -24[rbp], 0
mov DWORD PTR -20[rbp], 0
jmp .L3
.L6:
mov eax, DWORD PTR -20[rbp]
movsx rdx, eax
mov rax, QWORD PTR -8[rbp]
add rax, rdx
movzx eax, BYTE PTR [rax]
mov BYTE PTR -33[rbp], al
cmp BYTE PTR -33[rbp], 64
jle .L4
cmp BYTE PTR -33[rbp], 90
jg .L4
add DWORD PTR -24[rbp], 1
.L4:
cmp BYTE PTR -33[rbp], 96
jle .L5
cmp BYTE PTR -33[rbp], 122
jg .L5
sub DWORD PTR -24[rbp], 1
.L5:
add DWORD PTR -20[rbp], 1
.L3:
mov eax, DWORD PTR -20[rbp]
movsx rdx, eax
mov rax, QWORD PTR -8[rbp]
add rax, rdx
movzx eax, BYTE PTR [rax]
test al, al
jne .L6
mov eax, DWORD PTR -24[rbp]
cmp eax, DWORD PTR -32[rbp]
jle .L7
mov eax, DWORD PTR -24[rbp]
mov DWORD PTR -32[rbp], eax
mov rax, QWORD PTR -8[rbp]
mov QWORD PTR -16[rbp], rax
.L7:
add DWORD PTR -28[rbp], 1
.L2:
mov eax, DWORD PTR -28[rbp]
cmp eax, DWORD PTR -68[rbp]
jl .L8
mov rcx, QWORD PTR -16[rbp]
mov rdx, QWORD PTR -56[rbp]
mov rax, QWORD PTR -80[rbp]
lea rsi, .LC0[rip]
mov rdi, rax
mov eax, 0
call sprintf@PLT
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size func0, .-func0
.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:
|
eval/problem43/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB23:
.cfi_startproc
endbr64
test esi, esi
jle .L1
lea eax, -1[rsi]
lea rax, 4[rdi+rax*4]
.p2align 4,,10
.p2align 3
.L3:
add DWORD PTR [rdi], 1
add rdi, 4
cmp rdi, rax
jne .L3
.L1:
ret
.cfi_endproc
.LFE23:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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], 0
jmp .L2
.L3:
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
lea rcx, 0[0+rax*4]
mov rax, QWORD PTR -24[rbp]
add rax, rcx
add edx, 1
mov DWORD PTR [rax], edx
add DWORD PTR -4[rbp], 1
.L2:
mov eax, DWORD PTR -4[rbp]
cmp eax, DWORD PTR -28[rbp]
jl .L3
nop
nop
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size func0, .-func0
.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:
|
eval/problem26/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB39:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsi
push rbx
.cfi_def_cfa_offset 24
.cfi_offset 3, -24
mov ebx, edi
mov edi, 256
sub rsp, 8
.cfi_def_cfa_offset 32
call malloc@PLT
mov DWORD PTR 0[rbp], 0
mov ecx, 2
mov r8, rax
cmp ebx, 3
jle .L3
.p2align 4,,10
.p2align 3
.L2:
mov eax, ebx
cdq
idiv ecx
test edx, edx
jne .L6
mov eax, DWORD PTR 0[rbp]
lea esi, 1[rax]
movsx rsi, esi
.p2align 4,,10
.p2align 3
.L4:
mov eax, ebx
mov DWORD PTR -4[r8+rsi*4], ecx
mov edi, esi
add rsi, 1
cdq
idiv ecx
cdq
mov ebx, eax
idiv ecx
test edx, edx
je .L4
mov DWORD PTR 0[rbp], edi
.L6:
add ecx, 1
mov eax, ecx
imul eax, ecx
cmp eax, ebx
jle .L2
.L3:
cmp ebx, 1
jle .L1
movsx rax, DWORD PTR 0[rbp]
lea edx, 1[rax]
mov DWORD PTR [r8+rax*4], ebx
mov DWORD PTR 0[rbp], edx
.L1:
add rsp, 8
.cfi_def_cfa_offset 24
mov rax, r8
pop rbx
.cfi_def_cfa_offset 16
pop rbp
.cfi_def_cfa_offset 8
ret
.cfi_endproc
.LFE39:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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, 256
call malloc@PLT
mov QWORD PTR -8[rbp], rax
mov rax, QWORD PTR -32[rbp]
mov DWORD PTR [rax], 0
mov DWORD PTR -12[rbp], 2
jmp .L2
.L4:
mov eax, DWORD PTR -20[rbp]
cdq
idiv DWORD PTR -12[rbp]
mov DWORD PTR -20[rbp], eax
mov rax, QWORD PTR -32[rbp]
mov eax, DWORD PTR [rax]
lea ecx, 1[rax]
mov rdx, QWORD PTR -32[rbp]
mov DWORD PTR [rdx], ecx
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -8[rbp]
add rdx, rax
mov eax, DWORD PTR -12[rbp]
mov DWORD PTR [rdx], eax
.L3:
mov eax, DWORD PTR -20[rbp]
cdq
idiv DWORD PTR -12[rbp]
mov eax, edx
test eax, eax
je .L4
add DWORD PTR -12[rbp], 1
.L2:
mov eax, DWORD PTR -12[rbp]
imul eax, eax
cmp DWORD PTR -20[rbp], eax
jge .L3
cmp DWORD PTR -20[rbp], 1
jle .L6
mov rax, QWORD PTR -32[rbp]
mov eax, DWORD PTR [rax]
lea ecx, 1[rax]
mov rdx, QWORD PTR -32[rbp]
mov DWORD PTR [rdx], ecx
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -8[rbp]
add rdx, rax
mov eax, DWORD PTR -20[rbp]
mov DWORD PTR [rdx], eax
.L6:
mov rax, QWORD PTR -8[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size func0, .-func0
.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:
|
eval/problem131/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB39:
.cfi_startproc
endbr64
push rbx
.cfi_def_cfa_offset 16
.cfi_offset 3, -16
mov ebx, edi
add edi, 1
movsx rdi, edi
sal rdi, 2
call malloc@PLT
mov DWORD PTR [rax], 1
mov r8, rax
test ebx, ebx
je .L1
mov DWORD PTR 4[rax], 3
cmp ebx, 1
jle .L1
mov rdx, rax
mov eax, 2
jmp .L6
.p2align 4,,10
.p2align 3
.L10:
mov esi, ecx
add rdx, 4
sar esi
add esi, 1
mov DWORD PTR 4[rdx], esi
cmp ebx, ecx
je .L1
.L6:
mov esi, eax
mov ecx, eax
add eax, 1
and esi, 1
test esi, esi
je .L10
mov edi, eax
mov esi, DWORD PTR [rdx]
add esi, DWORD PTR 4[rdx]
add rdx, 4
sar edi
lea esi, 1[rsi+rdi]
mov DWORD PTR 4[rdx], esi
cmp ebx, ecx
jne .L6
.L1:
mov rax, r8
pop rbx
.cfi_def_cfa_offset 8
ret
.cfi_endproc
.LFE39:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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 eax, DWORD PTR -20[rbp]
add eax, 1
cdqe
sal rax, 2
mov rdi, rax
call malloc@PLT
mov QWORD PTR -8[rbp], rax
mov rax, QWORD PTR -8[rbp]
mov DWORD PTR [rax], 1
cmp DWORD PTR -20[rbp], 0
jne .L2
mov rax, QWORD PTR -8[rbp]
jmp .L3
.L2:
mov rax, QWORD PTR -8[rbp]
add rax, 4
mov DWORD PTR [rax], 3
mov DWORD PTR -12[rbp], 2
jmp .L4
.L7:
mov eax, DWORD PTR -12[rbp]
and eax, 1
test eax, eax
jne .L5
mov eax, DWORD PTR -12[rbp]
mov edx, eax
shr edx, 31
add eax, edx
sar eax
mov edx, eax
mov eax, DWORD PTR -12[rbp]
cdqe
lea rcx, 0[0+rax*4]
mov rax, QWORD PTR -8[rbp]
add rax, rcx
add edx, 1
mov DWORD PTR [rax], edx
jmp .L6
.L5:
mov eax, DWORD PTR -12[rbp]
cdqe
sal rax, 2
lea rdx, -4[rax]
mov rax, QWORD PTR -8[rbp]
add rax, rdx
mov edx, DWORD PTR [rax]
mov eax, DWORD PTR -12[rbp]
cdqe
sal rax, 2
lea rcx, -8[rax]
mov rax, QWORD PTR -8[rbp]
add rax, rcx
mov eax, DWORD PTR [rax]
add eax, edx
lea edx, 1[rax]
mov eax, DWORD PTR -12[rbp]
add eax, 1
mov ecx, eax
shr ecx, 31
add eax, ecx
sar eax
mov esi, eax
mov eax, DWORD PTR -12[rbp]
cdqe
lea rcx, 0[0+rax*4]
mov rax, QWORD PTR -8[rbp]
add rax, rcx
add edx, esi
mov DWORD PTR [rax], edx
.L6:
add DWORD PTR -12[rbp], 1
.L4:
mov eax, DWORD PTR -12[rbp]
cmp eax, DWORD PTR -20[rbp]
jle .L7
mov rax, QWORD PTR -8[rbp]
.L3:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size func0, .-func0
.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:
|
eval/problem90/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB34:
.cfi_startproc
endbr64
mov r8, rdi
mov rdi, rsi
movsx eax, BYTE PTR [r8]
test al, al
je .L2
xor ecx, ecx
.p2align 4,,10
.p2align 3
.L3:
sub eax, 93
movsx rdx, eax
mov esi, eax
imul rdx, rdx, 1321528399
sar esi, 31
sar rdx, 35
sub edx, esi
imul edx, edx, 26
sub eax, edx
add eax, 97
mov BYTE PTR [rdi+rcx], al
add rcx, 1
movsx eax, BYTE PTR [r8+rcx]
test al, al
jne .L3
add rdi, rcx
.L2:
mov BYTE PTR [rdi], 0
ret
.cfi_endproc
.LFE34:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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 -8[rbp], 0
jmp .L2
.L3:
mov eax, DWORD PTR -8[rbp]
movsx rdx, eax
mov rax, QWORD PTR -24[rbp]
add rax, rdx
movzx eax, BYTE PTR [rax]
movsx eax, al
lea edx, -93[rax]
movsx rax, edx
imul rax, rax, 1321528399
shr rax, 32
sar eax, 3
mov ecx, edx
sar ecx, 31
sub eax, ecx
imul ecx, eax, 26
mov eax, edx
sub eax, ecx
add eax, 97
mov DWORD PTR -4[rbp], eax
mov eax, DWORD PTR -8[rbp]
movsx rdx, eax
mov rax, QWORD PTR -32[rbp]
add rax, rdx
mov edx, DWORD PTR -4[rbp]
mov BYTE PTR [rax], dl
add DWORD PTR -8[rbp], 1
.L2:
mov eax, DWORD PTR -8[rbp]
movsx rdx, eax
mov rax, QWORD PTR -24[rbp]
add rax, rdx
movzx eax, BYTE PTR [rax]
test al, al
jne .L3
mov eax, DWORD PTR -8[rbp]
movsx rdx, eax
mov rax, QWORD PTR -32[rbp]
add rax, rdx
mov BYTE PTR [rax], 0
nop
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size func0, .-func0
.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:
|
eval/problem30/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB50:
.cfi_startproc
endbr64
push r15
.cfi_def_cfa_offset 16
.cfi_offset 15, -16
mov r15, rcx
push r14
.cfi_def_cfa_offset 24
.cfi_offset 14, -24
push r13
.cfi_def_cfa_offset 32
.cfi_offset 13, -32
mov r13, rdx
push r12
.cfi_def_cfa_offset 40
.cfi_offset 12, -40
mov r12d, esi
push rbp
.cfi_def_cfa_offset 48
.cfi_offset 6, -48
push rbx
.cfi_def_cfa_offset 56
.cfi_offset 3, -56
mov rbx, rdi
mov rdi, rdx
sub rsp, 24
.cfi_def_cfa_offset 80
call strlen@PLT
movsx rdi, r12d
sal rdi, 3
mov rbp, rax
call malloc@PLT
mov QWORD PTR 8[rsp], rax
mov QWORD PTR [r15], rax
test r12d, r12d
jle .L5
lea eax, -1[r12]
movsx rbp, ebp
xor r12d, r12d
lea r15, 8[rbx+rax*8]
.p2align 4,,10
.p2align 3
.L4:
mov r14, QWORD PTR [rbx]
mov rdx, rbp
mov rsi, r13
mov rdi, r14
call strncmp@PLT
test eax, eax
jne .L3
mov rcx, QWORD PTR 8[rsp]
movsx rax, r12d
add r12d, 1
mov QWORD PTR [rcx+rax*8], r14
.L3:
add rbx, 8
cmp rbx, r15
jne .L4
.L1:
add rsp, 24
.cfi_remember_state
.cfi_def_cfa_offset 56
mov eax, r12d
pop rbx
.cfi_def_cfa_offset 48
pop rbp
.cfi_def_cfa_offset 40
pop r12
.cfi_def_cfa_offset 32
pop r13
.cfi_def_cfa_offset 24
pop r14
.cfi_def_cfa_offset 16
pop r15
.cfi_def_cfa_offset 8
ret
.p2align 4,,10
.p2align 3
.L5:
.cfi_restore_state
xor r12d, r12d
jmp .L1
.cfi_endproc
.LFE50:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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 QWORD PTR -24[rbp], rdi
mov DWORD PTR -28[rbp], esi
mov QWORD PTR -40[rbp], rdx
mov QWORD PTR -48[rbp], rcx
mov rax, QWORD PTR -40[rbp]
mov rdi, rax
call strlen@PLT
mov DWORD PTR -4[rbp], eax
mov eax, DWORD PTR -28[rbp]
cdqe
sal rax, 3
mov rdi, rax
call malloc@PLT
mov rdx, rax
mov rax, QWORD PTR -48[rbp]
mov QWORD PTR [rax], rdx
mov DWORD PTR -12[rbp], 0
mov DWORD PTR -8[rbp], 0
jmp .L2
.L4:
mov eax, DWORD PTR -4[rbp]
movsx rdx, eax
mov eax, DWORD PTR -8[rbp]
cdqe
lea rcx, 0[0+rax*8]
mov rax, QWORD PTR -24[rbp]
add rax, rcx
mov rax, QWORD PTR [rax]
mov rcx, QWORD PTR -40[rbp]
mov rsi, rcx
mov rdi, rax
call strncmp@PLT
test eax, eax
jne .L3
mov eax, DWORD PTR -8[rbp]
cdqe
lea rdx, 0[0+rax*8]
mov rax, QWORD PTR -24[rbp]
lea rcx, [rdx+rax]
mov rax, QWORD PTR -48[rbp]
mov rsi, QWORD PTR [rax]
mov eax, DWORD PTR -12[rbp]
lea edx, 1[rax]
mov DWORD PTR -12[rbp], edx
cdqe
sal rax, 3
lea rdx, [rsi+rax]
mov rax, QWORD PTR [rcx]
mov QWORD PTR [rdx], rax
.L3:
add DWORD PTR -8[rbp], 1
.L2:
mov eax, DWORD PTR -8[rbp]
cmp eax, DWORD PTR -28[rbp]
jl .L4
mov eax, DWORD PTR -12[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size func0, .-func0
.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:
|
eval/problem164/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB23:
.cfi_startproc
endbr64
mov DWORD PTR [rcx], 0
cmp esi, edi
jge .L5
mov eax, edi
mov edi, esi
mov esi, eax
.p2align 4,,10
.p2align 3
.L5:
cmp edi, 9
jg .L4
test dil, 1
jne .L4
movsx rax, DWORD PTR [rcx]
lea r8d, 1[rax]
mov DWORD PTR [rcx], r8d
mov DWORD PTR [rdx+rax*4], edi
.L4:
add edi, 1
cmp esi, edi
jge .L5
ret
.cfi_endproc
.LFE23:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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 DWORD PTR -24[rbp], esi
mov QWORD PTR -32[rbp], rdx
mov QWORD PTR -40[rbp], rcx
mov rax, QWORD PTR -40[rbp]
mov DWORD PTR [rax], 0
mov eax, DWORD PTR -24[rbp]
cmp eax, DWORD PTR -20[rbp]
jge .L2
mov eax, DWORD PTR -20[rbp]
mov DWORD PTR -4[rbp], eax
mov eax, DWORD PTR -24[rbp]
mov DWORD PTR -20[rbp], eax
mov eax, DWORD PTR -4[rbp]
mov DWORD PTR -24[rbp], eax
.L2:
mov eax, DWORD PTR -20[rbp]
mov DWORD PTR -8[rbp], eax
jmp .L3
.L5:
cmp DWORD PTR -8[rbp], 9
jg .L4
mov eax, DWORD PTR -8[rbp]
and eax, 1
test eax, eax
jne .L4
mov rax, QWORD PTR -40[rbp]
mov eax, DWORD PTR [rax]
lea ecx, 1[rax]
mov rdx, QWORD PTR -40[rbp]
mov DWORD PTR [rdx], ecx
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -32[rbp]
add rdx, rax
mov eax, DWORD PTR -8[rbp]
mov DWORD PTR [rdx], eax
.L4:
add DWORD PTR -8[rbp], 1
.L3:
mov eax, DWORD PTR -8[rbp]
cmp eax, DWORD PTR -24[rbp]
jle .L5
nop
nop
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size func0, .-func0
.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:
|
eval/problem95/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB23:
.cfi_startproc
endbr64
test esi, esi
jle .L9
lea eax, -1[rsi]
mov r8, rdi
lea r9, 4[rdi+rax*4]
xor edi, edi
jmp .L7
.p2align 4,,10
.p2align 3
.L3:
add r8, 4
cmp r8, r9
je .L20
.L7:
mov esi, DWORD PTR [r8]
cmp esi, 1
jle .L3
cmp esi, 3
jle .L4
test sil, 1
je .L3
mov ecx, 2
jmp .L5
.p2align 4,,10
.p2align 3
.L6:
mov eax, esi
cdq
idiv ecx
test edx, edx
je .L3
.L5:
add ecx, 1
mov eax, ecx
imul eax, ecx
cmp eax, esi
jle .L6
.L4:
cmp edi, esi
cmovl edi, esi
add r8, 4
cmp r8, r9
jne .L7
.p2align 4,,10
.p2align 3
.L20:
xor r8d, r8d
test edi, edi
je .L1
mov ecx, 3435973837
.p2align 4,,10
.p2align 3
.L8:
mov eax, edi
imul rax, rcx
shr rax, 35
lea edx, [rax+rax*4]
add edx, edx
sub edi, edx
add r8d, edi
mov edi, eax
test eax, eax
jne .L8
.L1:
mov eax, r8d
ret
.L9:
xor r8d, r8d
mov eax, r8d
ret
.cfi_endproc
.LFE23:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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 -40[rbp], rdi
mov DWORD PTR -44[rbp], esi
mov DWORD PTR -24[rbp], 0
mov DWORD PTR -20[rbp], 0
mov DWORD PTR -16[rbp], 0
jmp .L2
.L8:
mov eax, DWORD PTR -16[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -40[rbp]
add rax, rdx
mov eax, DWORD PTR [rax]
mov DWORD PTR -4[rbp], eax
cmp DWORD PTR -4[rbp], 1
jle .L3
mov DWORD PTR -12[rbp], 1
mov DWORD PTR -8[rbp], 2
jmp .L4
.L7:
mov eax, DWORD PTR -4[rbp]
cdq
idiv DWORD PTR -8[rbp]
mov eax, edx
test eax, eax
jne .L5
mov DWORD PTR -12[rbp], 0
jmp .L6
.L5:
add DWORD PTR -8[rbp], 1
.L4:
mov eax, DWORD PTR -8[rbp]
imul eax, eax
cmp DWORD PTR -4[rbp], eax
jge .L7
.L6:
cmp DWORD PTR -12[rbp], 0
je .L3
mov eax, DWORD PTR -4[rbp]
cmp DWORD PTR -24[rbp], eax
cmovge eax, DWORD PTR -24[rbp]
mov DWORD PTR -24[rbp], eax
.L3:
add DWORD PTR -16[rbp], 1
.L2:
mov eax, DWORD PTR -16[rbp]
cmp eax, DWORD PTR -44[rbp]
jl .L8
jmp .L9
.L10:
mov ecx, DWORD PTR -24[rbp]
movsx rax, ecx
imul rax, rax, 1717986919
shr rax, 32
sar eax, 2
mov esi, ecx
sar esi, 31
sub eax, esi
mov edx, eax
mov eax, edx
sal eax, 2
add eax, edx
add eax, eax
sub ecx, eax
mov edx, ecx
add DWORD PTR -20[rbp], edx
mov eax, DWORD PTR -24[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 -24[rbp], eax
.L9:
cmp DWORD PTR -24[rbp], 0
jg .L10
mov eax, DWORD PTR -20[rbp]
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size func0, .-func0
.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:
|
eval/problem103/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB23:
.cfi_startproc
endbr64
mov eax, esi
cmp esi, edi
jl .L4
mov ecx, esi
shr ecx, 31
lea edx, [rsi+rcx]
and edx, 1
sub edx, ecx
cmp esi, edi
je .L6
cmp edx, 1
sete dl
movzx edx, dl
sub eax, edx
ret
.p2align 4,,10
.p2align 3
.L6:
cmp edx, 1
mov edx, -1
cmove eax, edx
ret
.p2align 4,,10
.p2align 3
.L4:
mov eax, -1
ret
.cfi_endproc
.LFE23:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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
mov DWORD PTR -8[rbp], esi
mov eax, DWORD PTR -8[rbp]
cmp eax, DWORD PTR -4[rbp]
jge .L2
mov eax, -1
jmp .L3
.L2:
mov eax, DWORD PTR -8[rbp]
cmp eax, DWORD PTR -4[rbp]
jne .L4
mov eax, DWORD PTR -8[rbp]
cdq
shr edx, 31
add eax, edx
and eax, 1
sub eax, edx
cmp eax, 1
jne .L4
mov eax, -1
jmp .L3
.L4:
mov eax, DWORD PTR -8[rbp]
cdq
shr edx, 31
add eax, edx
and eax, 1
sub eax, edx
cmp eax, 1
jne .L5
mov eax, DWORD PTR -8[rbp]
sub eax, 1
jmp .L3
.L5:
mov eax, DWORD PTR -8[rbp]
.L3:
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size func0, .-func0
.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:
|
eval/problem40/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB23:
.cfi_startproc
endbr64
mov r9d, edi
test edi, edi
jle .L8
xor edi, edi
mov esi, 2
mov eax, 1
.p2align 4,,10
.p2align 3
.L7:
mov r8d, esi
add esi, eax
cmp r8d, 3
jle .L3
test r8b, 1
je .L4
mov ecx, 2
jmp .L5
.p2align 4,,10
.p2align 3
.L6:
mov eax, r8d
cdq
idiv ecx
test edx, edx
je .L4
.L5:
add ecx, 1
mov eax, ecx
imul eax, ecx
cmp eax, r8d
jle .L6
.L3:
add edi, 1
cmp r9d, edi
je .L1
.L4:
mov eax, r8d
cmp r9d, edi
jg .L7
.L8:
xor r8d, r8d
.L1:
mov eax, r8d
ret
.cfi_endproc
.LFE23:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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 DWORD PTR -24[rbp], 1
mov DWORD PTR -20[rbp], 2
mov DWORD PTR -16[rbp], 0
jmp .L2
.L9:
mov eax, DWORD PTR -20[rbp]
add DWORD PTR -24[rbp], eax
mov eax, DWORD PTR -24[rbp]
mov DWORD PTR -4[rbp], eax
mov eax, DWORD PTR -20[rbp]
mov DWORD PTR -24[rbp], eax
mov eax, DWORD PTR -4[rbp]
mov DWORD PTR -20[rbp], eax
mov DWORD PTR -12[rbp], 1
mov DWORD PTR -8[rbp], 2
jmp .L3
.L6:
mov eax, DWORD PTR -24[rbp]
cdq
idiv DWORD PTR -8[rbp]
mov eax, edx
test eax, eax
jne .L4
mov DWORD PTR -12[rbp], 0
jmp .L5
.L4:
add DWORD PTR -8[rbp], 1
.L3:
mov eax, DWORD PTR -8[rbp]
imul eax, eax
cmp DWORD PTR -24[rbp], eax
jge .L6
.L5:
cmp DWORD PTR -12[rbp], 0
je .L7
add DWORD PTR -16[rbp], 1
.L7:
mov eax, DWORD PTR -16[rbp]
cmp eax, DWORD PTR -36[rbp]
jne .L2
mov eax, DWORD PTR -24[rbp]
jmp .L8
.L2:
mov eax, DWORD PTR -16[rbp]
cmp eax, DWORD PTR -36[rbp]
jl .L9
mov eax, 0
.L8:
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size func0, .-func0
.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:
|
eval/problem60/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB23:
.cfi_startproc
endbr64
mov r8d, edi
mov ecx, 2
cmp edi, 3
jle .L3
.p2align 4,,10
.p2align 3
.L2:
mov eax, r8d
cdq
idiv ecx
test edx, edx
je .L18
jmp .L7
.p2align 4,,10
.p2align 3
.L4:
mov eax, r8d
cdq
idiv ecx
cdq
mov r8d, eax
idiv ecx
test edx, edx
jne .L7
.L18:
cmp r8d, ecx
jg .L4
.L7:
add ecx, 1
mov eax, ecx
imul eax, ecx
cmp eax, r8d
jle .L2
.L3:
mov eax, r8d
ret
.cfi_endproc
.LFE23:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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 DWORD PTR -4[rbp], 2
jmp .L2
.L5:
mov eax, DWORD PTR -20[rbp]
cdq
idiv DWORD PTR -4[rbp]
mov DWORD PTR -20[rbp], eax
.L3:
mov eax, DWORD PTR -20[rbp]
cdq
idiv DWORD PTR -4[rbp]
mov eax, edx
test eax, eax
jne .L4
mov eax, DWORD PTR -20[rbp]
cmp eax, DWORD PTR -4[rbp]
jg .L5
.L4:
add DWORD PTR -4[rbp], 1
.L2:
mov eax, DWORD PTR -4[rbp]
imul eax, eax
cmp DWORD PTR -20[rbp], eax
jge .L3
mov eax, DWORD PTR -20[rbp]
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size func0, .-func0
.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:
|
eval/problem122/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB23:
.cfi_startproc
endbr64
test esi, esi
jle .L5
sub esi, 1
xor r8d, r8d
shr esi
lea rsi, 8[rdi+rsi*8]
.p2align 4,,10
.p2align 3
.L4:
mov eax, DWORD PTR [rdi]
mov ecx, eax
shr ecx, 31
lea edx, [rax+rcx]
add eax, r8d
and edx, 1
sub edx, ecx
cmp edx, 1
cmove r8d, eax
add rdi, 8
cmp rdi, rsi
jne .L4
mov eax, r8d
ret
.p2align 4,,10
.p2align 3
.L5:
xor r8d, r8d
mov eax, r8d
ret
.cfi_endproc
.LFE23:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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 -8[rbp], 0
mov DWORD PTR -4[rbp], 0
jmp .L2
.L4:
mov eax, DWORD PTR -4[rbp]
add eax, eax
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -24[rbp]
add rax, rdx
mov eax, DWORD PTR [rax]
cdq
shr edx, 31
add eax, edx
and eax, 1
sub eax, edx
cmp eax, 1
jne .L3
mov eax, DWORD PTR -4[rbp]
add eax, eax
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -24[rbp]
add rax, rdx
mov eax, DWORD PTR [rax]
add DWORD PTR -8[rbp], eax
.L3:
add DWORD PTR -4[rbp], 1
.L2:
mov eax, DWORD PTR -4[rbp]
add eax, eax
cmp DWORD PTR -28[rbp], eax
jg .L4
mov eax, DWORD PTR -8[rbp]
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size func0, .-func0
.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:
|
eval/problem146/code.c | .file "code.c"
.intel_syntax noprefix
.text
.section .rodata.str1.1,"aMS",@progbits,1
.LC0:
.string "%d"
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB50:
.cfi_startproc
endbr64
push r15
.cfi_def_cfa_offset 16
.cfi_offset 15, -16
push r14
.cfi_def_cfa_offset 24
.cfi_offset 14, -24
mov r14, rdi
push r13
.cfi_def_cfa_offset 32
.cfi_offset 13, -32
push r12
.cfi_def_cfa_offset 40
.cfi_offset 12, -40
push rbp
.cfi_def_cfa_offset 48
.cfi_offset 6, -48
push rbx
.cfi_def_cfa_offset 56
.cfi_offset 3, -56
sub rsp, 72
.cfi_def_cfa_offset 128
mov QWORD PTR 24[rsp], rdi
movsx rdi, esi
mov rbx, rdi
sal rdi, 2
mov rax, QWORD PTR fs:40
mov QWORD PTR 56[rsp], rax
xor eax, eax
call malloc@PLT
mov r12, rax
test ebx, ebx
jle .L2
lea r13, 4[r14]
lea eax, -1[rbx]
mov r15, r14
mov r14, r12
lea rax, 0[r13+rax*4]
lea rbp, 44[rsp]
mov QWORD PTR 8[rsp], rax
lea rax, 46[rsp]
mov QWORD PTR 16[rsp], rax
.p2align 4,,10
.p2align 3
.L7:
mov eax, DWORD PTR [r15]
mov r8d, DWORD PTR [r15]
mov edx, 12
mov esi, 1
lea rcx, .LC0[rip]
mov rdi, rbp
sar eax, 31
xor r8d, eax
sub r8d, eax
xor eax, eax
call __sprintf_chk@PLT
mov rdi, rbp
call strlen@PLT
mov rdx, rax
cmp rax, 1
jbe .L14
lea esi, -2[rdx]
lea rax, 45[rsp]
add rsi, QWORD PTR 16[rsp]
xor edx, edx
.p2align 4,,10
.p2align 3
.L4:
movsx ecx, BYTE PTR [rax]
add rax, 1
lea edx, -48[rdx+rcx]
cmp rsi, rax
jne .L4
.L3:
movsx eax, BYTE PTR 44[rsp]
sub eax, 48
lea ecx, [rdx+rax]
sub edx, eax
mov eax, DWORD PTR [r15]
test eax, eax
cmovg edx, ecx
add r15, 4
add r14, 4
mov DWORD PTR -4[r14], edx
cmp r15, QWORD PTR 8[rsp]
jne .L7
lea eax, -2[rbx]
xor r8d, r8d
lea rdi, 8[r12+rax*4]
.p2align 4,,10
.p2align 3
.L8:
lea rax, 4[r12]
mov rdx, r13
cmp ebx, 1
je .L12
.p2align 4,,10
.p2align 3
.L10:
mov esi, DWORD PTR -4[rax]
mov ecx, DWORD PTR [rax]
cmp esi, ecx
jle .L9
mov DWORD PTR [rax], esi
mov esi, DWORD PTR -4[rdx]
mov DWORD PTR -4[rax], ecx
mov ecx, DWORD PTR [rdx]
mov DWORD PTR [rdx], esi
mov DWORD PTR -4[rdx], ecx
.L9:
add rax, 4
add rdx, 4
cmp rdi, rax
jne .L10
.L12:
add r8d, 1
cmp ebx, r8d
jne .L8
.L2:
mov rdi, r12
call free@PLT
mov rax, QWORD PTR 56[rsp]
sub rax, QWORD PTR fs:40
jne .L21
mov rax, QWORD PTR 24[rsp]
add rsp, 72
.cfi_remember_state
.cfi_def_cfa_offset 56
pop rbx
.cfi_def_cfa_offset 48
pop rbp
.cfi_def_cfa_offset 40
pop r12
.cfi_def_cfa_offset 32
pop r13
.cfi_def_cfa_offset 24
pop r14
.cfi_def_cfa_offset 16
pop r15
.cfi_def_cfa_offset 8
ret
.p2align 4,,10
.p2align 3
.L14:
.cfi_restore_state
xor edx, edx
jmp .L3
.L21:
call __stack_chk_fail@PLT
.cfi_endproc
.LFE50:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.section .rodata
.LC0:
.string "%d"
.text
.globl func0
.type func0, @function
func0:
.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 QWORD PTR -72[rbp], rdi
mov DWORD PTR -76[rbp], esi
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
mov eax, DWORD PTR -76[rbp]
cdqe
sal rax, 2
mov rdi, rax
call malloc@PLT
mov QWORD PTR -32[rbp], rax
mov DWORD PTR -60[rbp], 0
jmp .L2
.L7:
mov eax, DWORD PTR -60[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -72[rbp]
add rax, rdx
mov eax, DWORD PTR [rax]
cdq
xor eax, edx
sub eax, edx
lea rcx, -20[rbp]
mov edx, eax
lea rsi, .LC0[rip]
mov rdi, rcx
mov eax, 0
call sprintf@PLT
mov DWORD PTR -56[rbp], 0
lea rax, -20[rbp]
mov rdi, rax
call strlen@PLT
mov DWORD PTR -36[rbp], eax
mov DWORD PTR -52[rbp], 1
jmp .L3
.L4:
mov eax, DWORD PTR -52[rbp]
cdqe
movzx eax, BYTE PTR -20[rbp+rax]
movsx eax, al
sub eax, 48
add DWORD PTR -56[rbp], eax
add DWORD PTR -52[rbp], 1
.L3:
mov eax, DWORD PTR -52[rbp]
cmp eax, DWORD PTR -36[rbp]
jl .L4
mov eax, DWORD PTR -60[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -72[rbp]
add rax, rdx
mov eax, DWORD PTR [rax]
test eax, eax
jle .L5
movzx eax, BYTE PTR -20[rbp]
movsx eax, al
sub eax, 48
add DWORD PTR -56[rbp], eax
jmp .L6
.L5:
movzx eax, BYTE PTR -20[rbp]
movsx eax, al
sub eax, 48
sub DWORD PTR -56[rbp], eax
.L6:
mov eax, DWORD PTR -60[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -32[rbp]
add rdx, rax
mov eax, DWORD PTR -56[rbp]
mov DWORD PTR [rdx], eax
add DWORD PTR -60[rbp], 1
.L2:
mov eax, DWORD PTR -60[rbp]
cmp eax, DWORD PTR -76[rbp]
jl .L7
mov DWORD PTR -48[rbp], 0
jmp .L8
.L12:
mov DWORD PTR -44[rbp], 1
jmp .L9
.L11:
mov eax, DWORD PTR -44[rbp]
cdqe
sal rax, 2
lea rdx, -4[rax]
mov rax, QWORD PTR -32[rbp]
add rax, rdx
mov edx, DWORD PTR [rax]
mov eax, DWORD PTR -44[rbp]
cdqe
lea rcx, 0[0+rax*4]
mov rax, QWORD PTR -32[rbp]
add rax, rcx
mov eax, DWORD PTR [rax]
cmp edx, eax
jle .L10
mov eax, DWORD PTR -44[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -32[rbp]
add rax, rdx
mov eax, DWORD PTR [rax]
mov DWORD PTR -40[rbp], eax
mov eax, DWORD PTR -44[rbp]
cdqe
sal rax, 2
lea rdx, -4[rax]
mov rax, QWORD PTR -32[rbp]
add rax, rdx
mov edx, DWORD PTR -44[rbp]
movsx rdx, edx
lea rcx, 0[0+rdx*4]
mov rdx, QWORD PTR -32[rbp]
add rdx, rcx
mov eax, DWORD PTR [rax]
mov DWORD PTR [rdx], eax
mov eax, DWORD PTR -44[rbp]
cdqe
sal rax, 2
lea rdx, -4[rax]
mov rax, QWORD PTR -32[rbp]
add rdx, rax
mov eax, DWORD PTR -40[rbp]
mov DWORD PTR [rdx], eax
mov eax, DWORD PTR -44[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -72[rbp]
add rax, rdx
mov eax, DWORD PTR [rax]
mov DWORD PTR -40[rbp], eax
mov eax, DWORD PTR -44[rbp]
cdqe
sal rax, 2
lea rdx, -4[rax]
mov rax, QWORD PTR -72[rbp]
add rax, rdx
mov edx, DWORD PTR -44[rbp]
movsx rdx, edx
lea rcx, 0[0+rdx*4]
mov rdx, QWORD PTR -72[rbp]
add rdx, rcx
mov eax, DWORD PTR [rax]
mov DWORD PTR [rdx], eax
mov eax, DWORD PTR -44[rbp]
cdqe
sal rax, 2
lea rdx, -4[rax]
mov rax, QWORD PTR -72[rbp]
add rdx, rax
mov eax, DWORD PTR -40[rbp]
mov DWORD PTR [rdx], eax
.L10:
add DWORD PTR -44[rbp], 1
.L9:
mov eax, DWORD PTR -44[rbp]
cmp eax, DWORD PTR -76[rbp]
jl .L11
add DWORD PTR -48[rbp], 1
.L8:
mov eax, DWORD PTR -48[rbp]
cmp eax, DWORD PTR -76[rbp]
jl .L12
mov rax, QWORD PTR -32[rbp]
mov rdi, rax
call free@PLT
mov rax, QWORD PTR -72[rbp]
mov rsi, QWORD PTR -8[rbp]
sub rsi, QWORD PTR fs:40
je .L14
call __stack_chk_fail@PLT
.L14:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size func0, .-func0
.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:
|
eval/problem157/code.c | .file "code.c"
.intel_syntax noprefix
.text
.section .rodata.str1.1,"aMS",@progbits,1
.LC0:
.string "m"
.LC1:
.string "cm"
.LC2:
.string "d"
.LC3:
.string "cd"
.LC4:
.string "c"
.LC5:
.string "xc"
.LC6:
.string "l"
.LC7:
.string "xl"
.LC8:
.string "x"
.LC9:
.string "ix"
.LC10:
.string "v"
.LC11:
.string "iv"
.LC12:
.string "i"
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB34:
.cfi_startproc
endbr64
push r14
.cfi_def_cfa_offset 16
.cfi_offset 14, -16
push r13
.cfi_def_cfa_offset 24
.cfi_offset 13, -24
push r12
.cfi_def_cfa_offset 32
.cfi_offset 12, -32
push rbp
.cfi_def_cfa_offset 40
.cfi_offset 6, -40
push rbx
.cfi_def_cfa_offset 48
.cfi_offset 3, -48
sub rsp, 176
.cfi_def_cfa_offset 224
mov rax, QWORD PTR fs:40
mov QWORD PTR 168[rsp], rax
lea rax, .LC0[rip]
mov BYTE PTR [rsi], 0
mov QWORD PTR 64[rsp], rax
lea rax, .LC1[rip]
mov QWORD PTR 72[rsp], rax
lea rax, .LC2[rip]
mov QWORD PTR 80[rsp], rax
lea rax, .LC3[rip]
mov QWORD PTR 88[rsp], rax
lea rax, .LC4[rip]
mov QWORD PTR 96[rsp], rax
lea rax, .LC5[rip]
mov QWORD PTR 104[rsp], rax
lea rax, .LC6[rip]
mov QWORD PTR 112[rsp], rax
lea rax, .LC7[rip]
mov QWORD PTR 120[rsp], rax
lea rax, .LC8[rip]
mov QWORD PTR 128[rsp], rax
lea rax, .LC9[rip]
mov QWORD PTR 136[rsp], rax
lea rax, .LC10[rip]
mov QWORD PTR 144[rsp], rax
lea rax, .LC11[rip]
mov QWORD PTR 152[rsp], rax
lea rax, .LC12[rip]
mov QWORD PTR 160[rsp], rax
movabs rax, 2147483648900
mov QWORD PTR 4[rsp], rax
movabs rax, 429496730000
mov QWORD PTR 12[rsp], rax
movabs rax, 214748364890
mov QWORD PTR 20[rsp], rax
movabs rax, 42949673000
mov QWORD PTR 28[rsp], rax
movabs rax, 21474836489
mov QWORD PTR 36[rsp], rax
movabs rax, 4294967300
mov QWORD PTR 44[rsp], rax
test edi, edi
jle .L1
mov ebx, edi
mov ebp, 1000
mov rdx, rsi
xor r13d, r13d
lea r14, 64[rsp]
cmp ebp, ebx
jg .L18
.p2align 4,,10
.p2align 3
.L5:
mov r12, QWORD PTR [r14+r13*2]
.p2align 4,,10
.p2align 3
.L4:
mov rdi, rdx
mov rsi, r12
sub ebx, ebp
call strcat@PLT
mov rdx, rax
cmp ebp, ebx
jle .L4
add r13, 4
test ebx, ebx
je .L1
.L7:
mov ebp, DWORD PTR [rsp+r13]
cmp ebp, ebx
jle .L5
.L18:
add r13, 4
jmp .L7
.p2align 4,,10
.p2align 3
.L1:
mov rax, QWORD PTR 168[rsp]
sub rax, QWORD PTR fs:40
jne .L19
add rsp, 176
.cfi_remember_state
.cfi_def_cfa_offset 48
pop rbx
.cfi_def_cfa_offset 40
pop rbp
.cfi_def_cfa_offset 32
pop r12
.cfi_def_cfa_offset 24
pop r13
.cfi_def_cfa_offset 16
pop r14
.cfi_def_cfa_offset 8
ret
.L19:
.cfi_restore_state
call __stack_chk_fail@PLT
.cfi_endproc
.LFE34:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.section .rodata
.LC0:
.string "m"
.LC1:
.string "cm"
.LC2:
.string "d"
.LC3:
.string "cd"
.LC4:
.string "c"
.LC5:
.string "xc"
.LC6:
.string "l"
.LC7:
.string "xl"
.LC8:
.string "x"
.LC9:
.string "ix"
.LC10:
.string "v"
.LC11:
.string "iv"
.LC12:
.string "i"
.text
.globl func0
.type func0, @function
func0:
.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, 208
mov DWORD PTR -196[rbp], edi
mov QWORD PTR -208[rbp], rsi
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
lea rax, .LC0[rip]
mov QWORD PTR -112[rbp], rax
lea rax, .LC1[rip]
mov QWORD PTR -104[rbp], rax
lea rax, .LC2[rip]
mov QWORD PTR -96[rbp], rax
lea rax, .LC3[rip]
mov QWORD PTR -88[rbp], rax
lea rax, .LC4[rip]
mov QWORD PTR -80[rbp], rax
lea rax, .LC5[rip]
mov QWORD PTR -72[rbp], rax
lea rax, .LC6[rip]
mov QWORD PTR -64[rbp], rax
lea rax, .LC7[rip]
mov QWORD PTR -56[rbp], rax
lea rax, .LC8[rip]
mov QWORD PTR -48[rbp], rax
lea rax, .LC9[rip]
mov QWORD PTR -40[rbp], rax
lea rax, .LC10[rip]
mov QWORD PTR -32[rbp], rax
lea rax, .LC11[rip]
mov QWORD PTR -24[rbp], rax
lea rax, .LC12[rip]
mov QWORD PTR -16[rbp], rax
mov DWORD PTR -176[rbp], 1000
mov DWORD PTR -172[rbp], 900
mov DWORD PTR -168[rbp], 500
mov DWORD PTR -164[rbp], 400
mov DWORD PTR -160[rbp], 100
mov DWORD PTR -156[rbp], 90
mov DWORD PTR -152[rbp], 50
mov DWORD PTR -148[rbp], 40
mov DWORD PTR -144[rbp], 10
mov DWORD PTR -140[rbp], 9
mov DWORD PTR -136[rbp], 5
mov DWORD PTR -132[rbp], 4
mov DWORD PTR -128[rbp], 1
mov DWORD PTR -180[rbp], 0
mov rax, QWORD PTR -208[rbp]
mov BYTE PTR [rax], 0
jmp .L2
.L4:
mov eax, DWORD PTR -180[rbp]
cdqe
mov rdx, QWORD PTR -112[rbp+rax*8]
mov rax, QWORD PTR -208[rbp]
mov rsi, rdx
mov rdi, rax
call strcat@PLT
mov eax, DWORD PTR -180[rbp]
cdqe
mov eax, DWORD PTR -176[rbp+rax*4]
sub DWORD PTR -196[rbp], eax
.L3:
mov eax, DWORD PTR -180[rbp]
cdqe
mov eax, DWORD PTR -176[rbp+rax*4]
cmp DWORD PTR -196[rbp], eax
jge .L4
cmp DWORD PTR -196[rbp], 0
jle .L2
add DWORD PTR -180[rbp], 1
.L2:
cmp DWORD PTR -196[rbp], 0
jg .L3
nop
mov rax, QWORD PTR -8[rbp]
sub rax, QWORD PTR fs:40
je .L6
call __stack_chk_fail@PLT
.L6:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size func0, .-func0
.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:
|
eval/problem91/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB23:
.cfi_startproc
endbr64
cmp esi, 1
jle .L6
lea eax, -1[rsi]
mov r8d, 2147483647
mov edx, 2147483647
lea rcx, 4[rdi+rax*4]
jmp .L5
.p2align 4,,10
.p2align 3
.L15:
je .L3
cmp eax, r8d
cmovl r8d, eax
.L3:
add rdi, 4
cmp rdi, rcx
je .L14
.L5:
mov eax, DWORD PTR [rdi]
cmp eax, edx
jge .L15
add rdi, 4
mov r8d, edx
mov edx, eax
cmp rdi, rcx
jne .L5
.L14:
cmp r8d, 2147483647
je .L6
.L1:
mov eax, r8d
ret
.L6:
mov r8d, -1
jmp .L1
.cfi_endproc
.LFE23:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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
cmp DWORD PTR -28[rbp], 1
jg .L2
mov eax, -1
jmp .L3
.L2:
mov DWORD PTR -12[rbp], 2147483647
mov DWORD PTR -8[rbp], 2147483647
mov DWORD PTR -4[rbp], 0
jmp .L4
.L7:
mov eax, DWORD PTR -4[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 -12[rbp], eax
jle .L5
mov eax, DWORD PTR -12[rbp]
mov DWORD PTR -8[rbp], eax
mov eax, DWORD PTR -4[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 -12[rbp], eax
jmp .L6
.L5:
mov eax, DWORD PTR -4[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 -8[rbp], eax
jle .L6
mov eax, DWORD PTR -4[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 -12[rbp], eax
je .L6
mov eax, DWORD PTR -4[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
.L6:
add DWORD PTR -4[rbp], 1
.L4:
mov eax, DWORD PTR -4[rbp]
cmp eax, DWORD PTR -28[rbp]
jl .L7
cmp DWORD PTR -8[rbp], 2147483647
jne .L8
mov eax, -1
jmp .L3
.L8:
mov eax, DWORD PTR -8[rbp]
.L3:
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size func0, .-func0
.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:
|
eval/problem19/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB34:
.cfi_startproc
endbr64
push r14
.cfi_def_cfa_offset 16
.cfi_offset 14, -16
push r13
.cfi_def_cfa_offset 24
.cfi_offset 13, -24
mov r13, rsi
push r12
.cfi_def_cfa_offset 32
.cfi_offset 12, -32
push rbp
.cfi_def_cfa_offset 40
.cfi_offset 6, -40
push rbx
.cfi_def_cfa_offset 48
.cfi_offset 3, -48
mov rbx, rdi
call strlen@PLT
mov r12d, eax
test eax, eax
je .L1
mov rdi, r13
mov r14, rax
call strlen@PLT
sub r14d, eax
js .L5
movsx r14, r14d
movsx rbp, eax
xor r12d, r12d
lea r14, 1[rbx+r14]
.p2align 4,,10
.p2align 3
.L4:
mov rdi, rbx
mov rdx, rbp
mov rsi, r13
call strncmp@PLT
cmp eax, 1
adc r12d, 0
add rbx, 1
cmp rbx, r14
jne .L4
.L1:
pop rbx
.cfi_remember_state
.cfi_def_cfa_offset 40
mov eax, r12d
pop rbp
.cfi_def_cfa_offset 32
pop r12
.cfi_def_cfa_offset 24
pop r13
.cfi_def_cfa_offset 16
pop r14
.cfi_def_cfa_offset 8
ret
.p2align 4,,10
.p2align 3
.L5:
.cfi_restore_state
xor r12d, r12d
jmp .L1
.cfi_endproc
.LFE34:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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 QWORD PTR -24[rbp], rdi
mov QWORD PTR -32[rbp], rsi
mov DWORD PTR -16[rbp], 0
mov rax, QWORD PTR -24[rbp]
mov rdi, rax
call strlen@PLT
mov DWORD PTR -8[rbp], eax
mov rax, QWORD PTR -32[rbp]
mov rdi, rax
call strlen@PLT
mov DWORD PTR -4[rbp], eax
cmp DWORD PTR -8[rbp], 0
jne .L2
mov eax, 0
jmp .L3
.L2:
mov DWORD PTR -12[rbp], 0
jmp .L4
.L6:
mov eax, DWORD PTR -4[rbp]
movsx rdx, eax
mov eax, DWORD PTR -12[rbp]
movsx rcx, eax
mov rax, QWORD PTR -24[rbp]
add rcx, rax
mov rax, QWORD PTR -32[rbp]
mov rsi, rax
mov rdi, rcx
call strncmp@PLT
test eax, eax
jne .L5
add DWORD PTR -16[rbp], 1
.L5:
add DWORD PTR -12[rbp], 1
.L4:
mov eax, DWORD PTR -8[rbp]
sub eax, DWORD PTR -4[rbp]
cmp DWORD PTR -12[rbp], eax
jle .L6
mov eax, DWORD PTR -16[rbp]
.L3:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size func0, .-func0
.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:
|
eval/problem13/code.c | .file "code.c"
.intel_syntax noprefix
.text
.section .rodata.str1.1,"aMS",@progbits,1
.LC0:
.string ""
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB34:
.cfi_startproc
endbr64
push r14
.cfi_def_cfa_offset 16
.cfi_offset 14, -16
push r13
.cfi_def_cfa_offset 24
.cfi_offset 13, -24
push r12
.cfi_def_cfa_offset 32
.cfi_offset 12, -32
lea r12, .LC0[rip]
push rbp
.cfi_def_cfa_offset 40
.cfi_offset 6, -40
push rbx
.cfi_def_cfa_offset 48
.cfi_offset 3, -48
test esi, esi
jle .L1
lea eax, -1[rsi]
mov rbx, rdi
xor ebp, ebp
lea r13, 8[rdi+rax*8]
.p2align 4,,10
.p2align 3
.L4:
mov r14, QWORD PTR [rbx]
mov rdi, r14
call strlen@PLT
cmp eax, ebp
jle .L3
mov ebp, eax
mov r12, r14
.L3:
add rbx, 8
cmp rbx, r13
jne .L4
.L1:
pop rbx
.cfi_def_cfa_offset 40
mov rax, r12
pop rbp
.cfi_def_cfa_offset 32
pop r12
.cfi_def_cfa_offset 24
pop r13
.cfi_def_cfa_offset 16
pop r14
.cfi_def_cfa_offset 8
ret
.cfi_endproc
.LFE34:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.section .rodata
.LC0:
.string ""
.text
.globl func0
.type func0, @function
func0:
.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, 48
mov QWORD PTR -40[rbp], rdi
mov DWORD PTR -44[rbp], esi
lea rax, .LC0[rip]
mov QWORD PTR -8[rbp], rax
mov DWORD PTR -20[rbp], 0
mov DWORD PTR -16[rbp], 0
jmp .L2
.L4:
mov eax, DWORD PTR -16[rbp]
cdqe
lea rdx, 0[0+rax*8]
mov rax, QWORD PTR -40[rbp]
add rax, rdx
mov rax, QWORD PTR [rax]
mov rdi, rax
call strlen@PLT
mov DWORD PTR -12[rbp], eax
mov eax, DWORD PTR -12[rbp]
cmp eax, DWORD PTR -20[rbp]
jle .L3
mov eax, DWORD PTR -16[rbp]
cdqe
lea rdx, 0[0+rax*8]
mov rax, QWORD PTR -40[rbp]
add rax, rdx
mov rax, QWORD PTR [rax]
mov QWORD PTR -8[rbp], rax
mov eax, DWORD PTR -12[rbp]
mov DWORD PTR -20[rbp], eax
.L3:
add DWORD PTR -16[rbp], 1
.L2:
mov eax, DWORD PTR -16[rbp]
cmp eax, DWORD PTR -44[rbp]
jl .L4
mov rax, QWORD PTR -8[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size func0, .-func0
.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:
|
eval/problem121/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB39:
.cfi_startproc
endbr64
push rbx
.cfi_def_cfa_offset 16
.cfi_offset 3, -16
mov ebx, edx
lea edx, -1[rsi]
mov r8, rdi
mov r11d, esi
mov r9, rcx
test edx, edx
jle .L2
lea r10, 4[rdi]
.p2align 4,,10
.p2align 3
.L3:
sub edx, 1
mov rax, r8
mov rdi, rdx
lea rsi, [r10+rdx*4]
.p2align 4,,10
.p2align 3
.L5:
mov edx, DWORD PTR [rax]
mov ecx, DWORD PTR 4[rax]
cmp edx, ecx
jle .L4
mov DWORD PTR [rax], ecx
mov DWORD PTR 4[rax], edx
.L4:
add rax, 4
cmp rax, rsi
jne .L5
mov edx, edi
test edi, edi
jne .L3
.L2:
test ebx, ebx
jle .L1
sub r11d, ebx
movsx rsi, ebx
movsx rax, r11d
lea rcx, [r8+rax*4]
xor eax, eax
.p2align 4,,10
.p2align 3
.L7:
mov edx, DWORD PTR [rcx+rax*4]
mov DWORD PTR [r9+rax*4], edx
add rax, 1
cmp rsi, rax
jne .L7
.L1:
pop rbx
.cfi_def_cfa_offset 8
ret
.cfi_endproc
.LFE39:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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 -32[rbp], edx
mov QWORD PTR -40[rbp], rcx
mov DWORD PTR -16[rbp], 0
jmp .L2
.L6:
mov DWORD PTR -12[rbp], 0
jmp .L3
.L5:
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 -12[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 .L4
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]
cdqe
add rax, 1
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -24[rbp]
add rax, rdx
mov edx, DWORD PTR -12[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
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
.L4:
add DWORD PTR -12[rbp], 1
.L3:
mov eax, DWORD PTR -28[rbp]
sub eax, DWORD PTR -16[rbp]
sub eax, 1
cmp DWORD PTR -12[rbp], eax
jl .L5
add DWORD PTR -16[rbp], 1
.L2:
mov eax, DWORD PTR -28[rbp]
sub eax, 1
cmp DWORD PTR -16[rbp], eax
jl .L6
mov DWORD PTR -8[rbp], 0
jmp .L7
.L8:
mov eax, DWORD PTR -28[rbp]
sub eax, DWORD PTR -32[rbp]
mov edx, eax
mov eax, DWORD PTR -8[rbp]
add eax, edx
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
lea rcx, 0[0+rdx*4]
mov rdx, QWORD PTR -40[rbp]
add rdx, rcx
mov eax, DWORD PTR [rax]
mov DWORD PTR [rdx], eax
add DWORD PTR -8[rbp], 1
.L7:
mov eax, DWORD PTR -8[rbp]
cmp eax, DWORD PTR -32[rbp]
jl .L8
nop
nop
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size func0, .-func0
.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:
|
eval/problem20/code.c | .file "code.c"
.intel_syntax noprefix
.text
.section .rodata.str1.1,"aMS",@progbits,1
.LC0:
.string "zero"
.LC1:
.string "one"
.LC2:
.string "two"
.LC3:
.string "three"
.LC4:
.string "four"
.LC5:
.string "five"
.LC6:
.string "six"
.LC7:
.string "seven"
.LC8:
.string "eight"
.LC9:
.string "nine"
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB34:
.cfi_startproc
endbr64
push r15
.cfi_def_cfa_offset 16
.cfi_offset 15, -16
pxor xmm0, xmm0
xor r10d, r10d
push r14
.cfi_def_cfa_offset 24
.cfi_offset 14, -24
push r13
.cfi_def_cfa_offset 32
.cfi_offset 13, -32
push r12
.cfi_def_cfa_offset 40
.cfi_offset 12, -40
push rbp
.cfi_def_cfa_offset 48
.cfi_offset 6, -48
push rbx
.cfi_def_cfa_offset 56
.cfi_offset 3, -56
sub rsp, 152
.cfi_def_cfa_offset 208
movzx edx, BYTE PTR [rdi]
mov rax, QWORD PTR fs:40
mov QWORD PTR 136[rsp], rax
xor eax, eax
lea rax, .LC0[rip]
movups XMMWORD PTR [rsp], xmm0
mov QWORD PTR 48[rsp], rax
lea rax, .LC1[rip]
mov QWORD PTR 56[rsp], rax
lea rax, .LC2[rip]
mov QWORD PTR 64[rsp], rax
lea rax, .LC3[rip]
mov QWORD PTR 72[rsp], rax
lea rax, .LC4[rip]
mov QWORD PTR 80[rsp], rax
lea rax, .LC5[rip]
mov QWORD PTR 88[rsp], rax
lea rax, .LC6[rip]
mov QWORD PTR 96[rsp], rax
lea rax, .LC7[rip]
mov QWORD PTR 104[rsp], rax
lea rax, .LC8[rip]
mov QWORD PTR 112[rsp], rax
lea rax, .LC9[rip]
mov QWORD PTR 32[rsp], 0
mov QWORD PTR 120[rsp], rax
movups XMMWORD PTR 16[rsp], xmm0
test dl, dl
je .L2
mov rbx, rdi
lea r12, 130[rsp]
lea r13, 129[rsp]
test dl, -33
je .L21
.L34:
mov eax, 1
.p2align 4,,10
.p2align 3
.L4:
mov BYTE PTR 0[r13+rax], dl
movzx edx, BYTE PTR [rbx+rax]
movsx rcx, eax
add rax, 1
test dl, -33
jne .L4
lea r15d, 1[rcx]
movsx r15, r15d
.L3:
mov BYTE PTR 130[rsp+rcx], 0
xor r14d, r14d
lea rsi, .LC0[rip]
jmp .L7
.p2align 4,,10
.p2align 3
.L32:
mov rsi, QWORD PTR 48[rsp+r14*8]
.L7:
mov rdi, r12
movsx rbp, r14d
call strcmp@PLT
test eax, eax
je .L31
add r14, 1
cmp r14, 10
jne .L32
add rbx, r15
cmp BYTE PTR -1[rbx], 0
je .L33
.L8:
movzx edx, BYTE PTR [rbx]
test dl, -33
jne .L34
.L21:
mov r15d, 1
xor ecx, ecx
jmp .L3
.L31:
add rbx, r15
add DWORD PTR [rsp+rbp*4], 1
cmp BYTE PTR -1[rbx], 0
jne .L8
.L33:
mov r10d, DWORD PTR [rsp]
.L2:
lea r11, out.0[rip]
xor ebp, ebp
xor esi, esi
lea rdi, -1[r11]
.p2align 4,,10
.p2align 3
.L15:
test r10d, r10d
jle .L11
mov rbx, QWORD PTR 48[rsp+rbp*2]
xor r8d, r8d
movzx r9d, BYTE PTR [rbx]
.p2align 4,,10
.p2align 3
.L16:
movsx rcx, esi
test r9b, r9b
je .L13
lea eax, 1[rsi]
movsx rcx, esi
mov rsi, rbx
mov edx, r9d
cdqe
sub rsi, rcx
.p2align 4,,10
.p2align 3
.L10:
mov BYTE PTR [rdi+rax], dl
movsx rcx, eax
add rax, 1
movzx edx, BYTE PTR -1[rsi+rax]
test dl, dl
jne .L10
.L13:
add r8d, 1
mov BYTE PTR [r11+rcx], 32
lea esi, 1[rcx]
cmp r8d, r10d
jne .L16
.L11:
add rbp, 4
cmp rbp, 40
je .L14
mov r10d, DWORD PTR [rsp+rbp]
jmp .L15
.L14:
test esi, esi
je .L17
lea eax, -1[rsi]
cdqe
mov BYTE PTR [r11+rax], 0
.L18:
mov rax, QWORD PTR 136[rsp]
sub rax, QWORD PTR fs:40
jne .L35
add rsp, 152
.cfi_remember_state
.cfi_def_cfa_offset 56
lea rax, out.0[rip]
pop rbx
.cfi_def_cfa_offset 48
pop rbp
.cfi_def_cfa_offset 40
pop r12
.cfi_def_cfa_offset 32
pop r13
.cfi_def_cfa_offset 24
pop r14
.cfi_def_cfa_offset 16
pop r15
.cfi_def_cfa_offset 8
ret
.L17:
.cfi_restore_state
mov BYTE PTR out.0[rip], 0
jmp .L18
.L35:
call __stack_chk_fail@PLT
.cfi_endproc
.LFE34:
.size func0, .-func0
.local out.0
.comm out.0,1000,32
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.section .rodata
.LC0:
.string "zero"
.LC1:
.string "one"
.LC2:
.string "two"
.LC3:
.string "three"
.LC4:
.string "four"
.LC5:
.string "five"
.LC6:
.string "six"
.LC7:
.string "seven"
.LC8:
.string "eight"
.LC9:
.string "nine"
.text
.globl func0
.type func0, @function
func0:
.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, 176
mov QWORD PTR -168[rbp], rdi
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
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
lea rax, .LC0[rip]
mov QWORD PTR -96[rbp], rax
lea rax, .LC1[rip]
mov QWORD PTR -88[rbp], rax
lea rax, .LC2[rip]
mov QWORD PTR -80[rbp], rax
lea rax, .LC3[rip]
mov QWORD PTR -72[rbp], rax
lea rax, .LC4[rip]
mov QWORD PTR -64[rbp], rax
lea rax, .LC5[rip]
mov QWORD PTR -56[rbp], rax
lea rax, .LC6[rip]
mov QWORD PTR -48[rbp], rax
lea rax, .LC7[rip]
mov QWORD PTR -40[rbp], rax
lea rax, .LC8[rip]
mov QWORD PTR -32[rbp], rax
lea rax, .LC9[rip]
mov QWORD PTR -24[rbp], rax
mov DWORD PTR -160[rbp], 0
mov rax, QWORD PTR -168[rbp]
movzx eax, BYTE PTR [rax]
test al, al
je .L2
.L10:
mov DWORD PTR -156[rbp], 0
jmp .L3
.L5:
mov eax, DWORD PTR -156[rbp]
movsx rdx, eax
mov rax, QWORD PTR -168[rbp]
add rax, rdx
movzx edx, BYTE PTR [rax]
mov eax, DWORD PTR -156[rbp]
cdqe
mov BYTE PTR -14[rbp+rax], dl
add DWORD PTR -156[rbp], 1
.L3:
mov eax, DWORD PTR -156[rbp]
movsx rdx, eax
mov rax, QWORD PTR -168[rbp]
add rax, rdx
movzx eax, BYTE PTR [rax]
cmp al, 32
je .L4
mov eax, DWORD PTR -156[rbp]
movsx rdx, eax
mov rax, QWORD PTR -168[rbp]
add rax, rdx
movzx eax, BYTE PTR [rax]
test al, al
jne .L5
.L4:
mov eax, DWORD PTR -156[rbp]
cdqe
mov BYTE PTR -14[rbp+rax], 0
mov DWORD PTR -152[rbp], 0
jmp .L6
.L9:
mov eax, DWORD PTR -152[rbp]
cdqe
mov rdx, QWORD PTR -96[rbp+rax*8]
lea rax, -14[rbp]
mov rsi, rdx
mov rdi, rax
call strcmp@PLT
test eax, eax
jne .L7
mov eax, DWORD PTR -152[rbp]
cdqe
mov eax, DWORD PTR -144[rbp+rax*4]
lea edx, 1[rax]
mov eax, DWORD PTR -152[rbp]
cdqe
mov DWORD PTR -144[rbp+rax*4], edx
jmp .L8
.L7:
add DWORD PTR -152[rbp], 1
.L6:
cmp DWORD PTR -152[rbp], 9
jle .L9
.L8:
mov eax, DWORD PTR -156[rbp]
cdqe
add rax, 1
add QWORD PTR -168[rbp], rax
mov rax, QWORD PTR -168[rbp]
sub rax, 1
movzx eax, BYTE PTR [rax]
test al, al
jne .L10
.L2:
mov DWORD PTR -156[rbp], 0
jmp .L11
.L16:
mov DWORD PTR -152[rbp], 0
jmp .L12
.L15:
mov DWORD PTR -148[rbp], 0
jmp .L13
.L14:
mov eax, DWORD PTR -156[rbp]
cdqe
mov rdx, QWORD PTR -96[rbp+rax*8]
mov eax, DWORD PTR -148[rbp]
cdqe
add rax, rdx
movzx edx, BYTE PTR [rax]
mov eax, DWORD PTR -160[rbp]
cdqe
lea rcx, out.0[rip]
mov BYTE PTR [rax+rcx], dl
add DWORD PTR -148[rbp], 1
add DWORD PTR -160[rbp], 1
.L13:
mov eax, DWORD PTR -156[rbp]
cdqe
mov rdx, QWORD PTR -96[rbp+rax*8]
mov eax, DWORD PTR -148[rbp]
cdqe
add rax, rdx
movzx eax, BYTE PTR [rax]
test al, al
jne .L14
mov eax, DWORD PTR -160[rbp]
lea edx, 1[rax]
mov DWORD PTR -160[rbp], edx
cdqe
lea rdx, out.0[rip]
mov BYTE PTR [rax+rdx], 32
add DWORD PTR -152[rbp], 1
.L12:
mov eax, DWORD PTR -156[rbp]
cdqe
mov eax, DWORD PTR -144[rbp+rax*4]
cmp DWORD PTR -152[rbp], eax
jl .L15
add DWORD PTR -156[rbp], 1
.L11:
cmp DWORD PTR -156[rbp], 9
jle .L16
cmp DWORD PTR -160[rbp], 0
jle .L17
mov eax, DWORD PTR -160[rbp]
sub eax, 1
cdqe
lea rdx, out.0[rip]
mov BYTE PTR [rax+rdx], 0
jmp .L18
.L17:
mov BYTE PTR out.0[rip], 0
.L18:
lea rax, out.0[rip]
mov rsi, QWORD PTR -8[rbp]
sub rsi, QWORD PTR fs:40
je .L20
call __stack_chk_fail@PLT
.L20:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size func0, .-func0
.local out.0
.comm out.0,1000,32
.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:
|
eval/problem104/code.c | .file "code.c"
.intel_syntax noprefix
.text
.section .rodata.str1.1,"aMS",@progbits,1
.LC0:
.string "-1"
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB39:
.cfi_startproc
endbr64
cmp edi, esi
jle .L12
lea r8, .LC0[rip]
mov rax, r8
ret
.p2align 4,,10
.p2align 3
.L12:
add edi, esi
push rbx
.cfi_def_cfa_offset 16
.cfi_offset 3, -16
mov ebx, edi
shr ebx, 31
add ebx, edi
mov edi, 33
call malloc@PLT
sar ebx
mov BYTE PTR [rax], 0
lea rdx, 31[rax]
mov BYTE PTR 32[rax], 0
.p2align 4,,10
.p2align 3
.L3:
mov ecx, ebx
mov r8, rdx
sub rdx, 1
shr ecx, 31
lea eax, [rbx+rcx]
and eax, 1
sub eax, ecx
add eax, 48
mov BYTE PTR 1[rdx], al
mov eax, ebx
mov ebx, ecx
add ebx, eax
sar ebx
cmp eax, 1
jg .L3
mov rax, r8
pop rbx
.cfi_def_cfa_offset 8
ret
.cfi_endproc
.LFE39:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.section .rodata
.LC0:
.string "-1"
.text
.globl func0
.type func0, @function
func0:
.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 DWORD PTR -24[rbp], esi
mov eax, DWORD PTR -20[rbp]
cmp eax, DWORD PTR -24[rbp]
jle .L2
lea rax, .LC0[rip]
jmp .L3
.L2:
mov edx, DWORD PTR -24[rbp]
mov eax, DWORD PTR -20[rbp]
add eax, edx
mov edx, eax
shr edx, 31
add eax, edx
sar eax
mov DWORD PTR -16[rbp], eax
mov edi, 33
call malloc@PLT
mov QWORD PTR -8[rbp], rax
mov rax, QWORD PTR -8[rbp]
mov BYTE PTR [rax], 0
mov DWORD PTR -12[rbp], 32
mov eax, DWORD PTR -12[rbp]
lea edx, -1[rax]
mov DWORD PTR -12[rbp], edx
movsx rdx, eax
mov rax, QWORD PTR -8[rbp]
add rax, rdx
mov BYTE PTR [rax], 0
.L4:
mov eax, DWORD PTR -16[rbp]
cdq
shr edx, 31
add eax, edx
and eax, 1
sub eax, edx
lea ecx, 48[rax]
mov eax, DWORD PTR -12[rbp]
lea edx, -1[rax]
mov DWORD PTR -12[rbp], edx
movsx rdx, eax
mov rax, QWORD PTR -8[rbp]
add rax, rdx
mov edx, ecx
mov BYTE PTR [rax], dl
mov eax, DWORD PTR -16[rbp]
mov edx, eax
shr edx, 31
add eax, edx
sar eax
mov DWORD PTR -16[rbp], eax
cmp DWORD PTR -16[rbp], 0
jg .L4
mov eax, DWORD PTR -12[rbp]
cdqe
lea rdx, 1[rax]
mov rax, QWORD PTR -8[rbp]
add rax, rdx
.L3:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size func0, .-func0
.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:
|
eval/problem74/code.c | .file "code.c"
.intel_syntax noprefix
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB23:
.cfi_startproc
endbr64
mov eax, esi
shr esi, 31
add esi, eax
sar esi
cmp eax, 1
jle .L5
sub eax, 1
xor r8d, r8d
cdqe
lea rdx, [rdi+rax*4]
xor eax, eax
.p2align 4,,10
.p2align 3
.L4:
mov ecx, DWORD PTR [rdx]
cmp DWORD PTR [rdi+rax*4], ecx
setne cl
add rax, 1
sub rdx, 4
movzx ecx, cl
add r8d, ecx
cmp esi, eax
jg .L4
mov eax, r8d
ret
.p2align 4,,10
.p2align 3
.L5:
xor r8d, r8d
mov eax, r8d
ret
.cfi_endproc
.LFE23:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.globl func0
.type func0, @function
func0:
.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 -8[rbp], 0
mov DWORD PTR -4[rbp], 0
jmp .L2
.L4:
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 -28[rbp]
sub eax, 1
sub eax, DWORD PTR -4[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
je .L3
add DWORD PTR -8[rbp], 1
.L3:
add DWORD PTR -4[rbp], 1
.L2:
mov eax, DWORD PTR -28[rbp]
mov edx, eax
shr edx, 31
add eax, edx
sar eax
cmp DWORD PTR -4[rbp], eax
jl .L4
mov eax, DWORD PTR -8[rbp]
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size func0, .-func0
.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:
|
eval/problem111/code.c | .file "code.c"
.intel_syntax noprefix
.text
.section .rodata.str1.1,"aMS",@progbits,1
.LC0:
.string "NO"
.LC1:
.string "YES"
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB23:
.cfi_startproc
endbr64
mov r9d, esi
mov r8, rdx
mov esi, ecx
test r9d, r9d
jle .L2
lea eax, -1[r9]
lea rcx, 4[rdi+rax*4]
xor eax, eax
.p2align 4,,10
.p2align 3
.L4:
mov edx, DWORD PTR [rdi]
and edx, 1
cmp edx, 1
adc eax, 0
add rdi, 4
cmp rdi, rcx
jne .L4
test esi, esi
jle .L5
.L9:
xor edx, edx
.p2align 4,,10
.p2align 3
.L7:
mov ecx, DWORD PTR [r8+rdx*4]
and ecx, 1
cmp ecx, 1
adc eax, 0
add rdx, 1
cmp esi, edx
jg .L7
.L5:
cmp r9d, eax
lea rdx, .LC0[rip]
lea rax, .LC1[rip]
cmovg rax, rdx
ret
.p2align 4,,10
.p2align 3
.L2:
xor eax, eax
test ecx, ecx
jg .L9
lea rax, .LC1[rip]
ret
.cfi_endproc
.LFE23:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.section .rodata
.LC0:
.string "YES"
.LC1:
.string "NO"
.text
.globl func0
.type func0, @function
func0:
.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 QWORD PTR -40[rbp], rdx
mov DWORD PTR -32[rbp], ecx
mov DWORD PTR -12[rbp], 0
mov DWORD PTR -8[rbp], 0
jmp .L2
.L4:
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]
and eax, 1
test eax, eax
jne .L3
add DWORD PTR -12[rbp], 1
.L3:
add DWORD PTR -8[rbp], 1
.L2:
mov eax, DWORD PTR -8[rbp]
cmp eax, DWORD PTR -28[rbp]
jl .L4
mov DWORD PTR -4[rbp], 0
jmp .L5
.L7:
mov eax, DWORD PTR -4[rbp]
cdqe
lea rdx, 0[0+rax*4]
mov rax, QWORD PTR -40[rbp]
add rax, rdx
mov eax, DWORD PTR [rax]
and eax, 1
test eax, eax
jne .L6
add DWORD PTR -12[rbp], 1
.L6:
add DWORD PTR -4[rbp], 1
.L5:
mov eax, DWORD PTR -4[rbp]
cmp eax, DWORD PTR -32[rbp]
jl .L7
mov eax, DWORD PTR -12[rbp]
cmp eax, DWORD PTR -28[rbp]
jl .L8
lea rax, .LC0[rip]
jmp .L9
.L8:
lea rax, .LC1[rip]
.L9:
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size func0, .-func0
.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:
|
eval/problem142/code.c | .file "code.c"
.intel_syntax noprefix
.text
.section .rodata.str1.1,"aMS",@progbits,1
.LC0:
.string "No"
.LC1:
.string "Yes"
.LC2:
.string ".txt"
.LC3:
.string ".exe"
.LC4:
.string ".dll"
.text
.p2align 4
.globl func0
.type func0, @function
func0:
.LFB34:
.cfi_startproc
endbr64
push rbx
.cfi_def_cfa_offset 16
.cfi_offset 3, -16
mov rbx, rdi
call strlen@PLT
lea r8, .LC0[rip]
cmp eax, 4
jle .L1
movzx r9d, BYTE PTR [rbx]
lea edx, -91[r9]
cmp dl, 5
jbe .L10
lea edx, -65[r9]
cmp dl, 57
ja .L10
movsx rdx, eax
mov ecx, 5
lea rdi, .LC2[rip]
lea r10, -4[rbx+rdx]
mov rsi, r10
repz cmpsb
seta dl
sbb dl, 0
test dl, dl
jne .L23
.L3:
lea edx, -1[rax]
mov rdi, rbx
xor esi, esi
xor ecx, ecx
add rdx, rbx
jmp .L7
.p2align 4,,10
.p2align 3
.L24:
add ecx, 1
cmp rdx, rdi
je .L6
.L25:
movzx r9d, BYTE PTR 1[rdi]
add rdi, 1
.L7:
lea eax, -48[r9]
cmp al, 9
jbe .L24
xor eax, eax
cmp r9b, 46
sete al
add esi, eax
cmp rdx, rdi
jne .L25
.L6:
cmp ecx, 3
jg .L10
lea r8, .LC1[rip]
cmp esi, 1
jne .L10
.L1:
mov rax, r8
pop rbx
.cfi_remember_state
.cfi_def_cfa_offset 8
ret
.p2align 4,,10
.p2align 3
.L10:
.cfi_restore_state
lea r8, .LC0[rip]
pop rbx
.cfi_remember_state
.cfi_def_cfa_offset 8
mov rax, r8
ret
.p2align 4,,10
.p2align 3
.L23:
.cfi_restore_state
mov ecx, 5
lea rdi, .LC3[rip]
mov rsi, r10
repz cmpsb
seta dl
sbb dl, 0
test dl, dl
je .L3
mov ecx, 5
lea rdi, .LC4[rip]
mov rsi, r10
repz cmpsb
seta dl
sbb dl, 0
test dl, dl
je .L3
jmp .L1
.cfi_endproc
.LFE34:
.size func0, .-func0
.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:
| .file "code.c"
.intel_syntax noprefix
.text
.section .rodata
.LC0:
.string "No"
.LC1:
.string ".txt"
.LC2:
.string ".exe"
.LC3:
.string ".dll"
.LC4:
.string "Yes"
.text
.globl func0
.type func0, @function
func0:
.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, 48
mov QWORD PTR -40[rbp], rdi
mov DWORD PTR -24[rbp], 0
mov DWORD PTR -20[rbp], 0
mov rax, QWORD PTR -40[rbp]
mov rdi, rax
call strlen@PLT
mov DWORD PTR -12[rbp], eax
cmp DWORD PTR -12[rbp], 4
jg .L2
lea rax, .LC0[rip]
jmp .L3
.L2:
mov rax, QWORD PTR -40[rbp]
movzx eax, BYTE PTR [rax]
mov BYTE PTR -25[rbp], al
cmp BYTE PTR -25[rbp], 64
jle .L4
cmp BYTE PTR -25[rbp], 90
jle .L5
cmp BYTE PTR -25[rbp], 96
jle .L4
.L5:
cmp BYTE PTR -25[rbp], 122
jle .L6
.L4:
lea rax, .LC0[rip]
jmp .L3
.L6:
mov eax, DWORD PTR -12[rbp]
cdqe
lea rdx, -4[rax]
mov rax, QWORD PTR -40[rbp]
add rax, rdx
mov QWORD PTR -8[rbp], rax
mov rax, QWORD PTR -8[rbp]
lea rsi, .LC1[rip]
mov rdi, rax
call strcmp@PLT
test eax, eax
je .L7
mov rax, QWORD PTR -8[rbp]
lea rsi, .LC2[rip]
mov rdi, rax
call strcmp@PLT
test eax, eax
je .L7
mov rax, QWORD PTR -8[rbp]
lea rsi, .LC3[rip]
mov rdi, rax
call strcmp@PLT
test eax, eax
je .L7
lea rax, .LC0[rip]
jmp .L3
.L7:
mov DWORD PTR -16[rbp], 0
jmp .L8
.L11:
mov eax, DWORD PTR -16[rbp]
movsx rdx, eax
mov rax, QWORD PTR -40[rbp]
add rax, rdx
movzx eax, BYTE PTR [rax]
cmp al, 47
jle .L9
mov eax, DWORD PTR -16[rbp]
movsx rdx, eax
mov rax, QWORD PTR -40[rbp]
add rax, rdx
movzx eax, BYTE PTR [rax]
cmp al, 57
jg .L9
add DWORD PTR -24[rbp], 1
.L9:
mov eax, DWORD PTR -16[rbp]
movsx rdx, eax
mov rax, QWORD PTR -40[rbp]
add rax, rdx
movzx eax, BYTE PTR [rax]
cmp al, 46
jne .L10
add DWORD PTR -20[rbp], 1
.L10:
add DWORD PTR -16[rbp], 1
.L8:
mov eax, DWORD PTR -16[rbp]
cmp eax, DWORD PTR -12[rbp]
jl .L11
cmp DWORD PTR -24[rbp], 3
jg .L12
cmp DWORD PTR -20[rbp], 1
je .L13
.L12:
lea rax, .LC0[rip]
jmp .L3
.L13:
lea rax, .LC4[rip]
.L3:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size func0, .-func0
.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:
|
Subsets and Splits