files
stringlengths
20
22
x86
stringlengths
639
12.7k
risc
stringlengths
363
8.21k
eval/problem104/code.c
.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 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 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" .option pic .text .section .rodata .align 3 .LC0: .string "-1" .text .align 1 .globl func0 .type func0, @function func0: addi sp,sp,-48 sd ra,40(sp) sd s0,32(sp) addi s0,sp,48 mv a5,a0 mv a4,a1 sw a5,-36(s0) mv a5,a4 sw a5,-40(s0) lw a4,-36(s0) lw a5,-40(s0) sext.w a4,a4 sext.w a5,a5 ble a4,a5,.L2 lla a5,.LC0 j .L3 .L2: lw a4,-40(s0) lw a5,-36(s0) addw a5,a4,a5 sext.w a5,a5 srliw a4,a5,31 addw a5,a4,a5 sraiw a5,a5,1 sw a5,-32(s0) li a0,33 call malloc@plt mv a5,a0 sd a5,-24(s0) ld a5,-24(s0) sb zero,0(a5) li a5,32 sw a5,-28(s0) lw a5,-28(s0) addiw a4,a5,-1 sw a4,-28(s0) mv a4,a5 ld a5,-24(s0) add a5,a5,a4 sb zero,0(a5) .L4: lw a4,-32(s0) sraiw a5,a4,31 srliw a5,a5,31 addw a4,a4,a5 andi a4,a4,1 subw a5,a4,a5 sext.w a5,a5 andi a4,a5,0xff lw a5,-28(s0) addiw a3,a5,-1 sw a3,-28(s0) mv a3,a5 ld a5,-24(s0) add a5,a5,a3 addiw a4,a4,48 andi a4,a4,0xff sb a4,0(a5) lw a5,-32(s0) srliw a4,a5,31 addw a5,a4,a5 sraiw a5,a5,1 sw a5,-32(s0) lw a5,-32(s0) sext.w a5,a5 bgtz a5,.L4 lw a5,-28(s0) addi a5,a5,1 ld a4,-24(s0) add a5,a4,a5 .L3: mv a0,a5 ld ra,40(sp) ld s0,32(sp) addi sp,sp,48 jr ra .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
eval/problem74/code.c
.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 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 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" .option pic .text .align 1 .globl func0 .type func0, @function func0: addi sp,sp,-48 sd s0,40(sp) addi s0,sp,48 sd a0,-40(s0) mv a5,a1 sw a5,-44(s0) sw zero,-24(s0) sw zero,-20(s0) j .L2 .L4: lw a5,-20(s0) slli a5,a5,2 ld a4,-40(s0) add a5,a4,a5 lw a3,0(a5) lw a5,-44(s0) addiw a5,a5,-1 sext.w a4,a5 lw a5,-20(s0) subw a5,a4,a5 sext.w a5,a5 slli a5,a5,2 ld a4,-40(s0) add a5,a4,a5 lw a5,0(a5) mv a4,a3 beq a4,a5,.L3 lw a5,-24(s0) addiw a5,a5,1 sw a5,-24(s0) .L3: lw a5,-20(s0) addiw a5,a5,1 sw a5,-20(s0) .L2: lw a5,-44(s0) srliw a4,a5,31 addw a5,a4,a5 sraiw a5,a5,1 sext.w a4,a5 lw a5,-20(s0) sext.w a5,a5 blt a5,a4,.L4 lw a5,-24(s0) mv a0,a5 ld s0,40(sp) addi sp,sp,48 jr ra .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
eval/problem111/code.c
.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 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 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" .option pic .text .section .rodata .align 3 .LC0: .string "YES" .align 3 .LC1: .string "NO" .text .align 1 .globl func0 .type func0, @function func0: addi sp,sp,-64 sd s0,56(sp) addi s0,sp,64 sd a0,-40(s0) mv a5,a1 sd a2,-56(s0) mv a4,a3 sw a5,-44(s0) mv a5,a4 sw a5,-48(s0) sw zero,-28(s0) sw zero,-24(s0) j .L2 .L4: lw a5,-24(s0) slli a5,a5,2 ld a4,-40(s0) add a5,a4,a5 lw a5,0(a5) sext.w a5,a5 andi a5,a5,1 sext.w a5,a5 bnez a5,.L3 lw a5,-28(s0) addiw a5,a5,1 sw a5,-28(s0) .L3: lw a5,-24(s0) addiw a5,a5,1 sw a5,-24(s0) .L2: lw a4,-24(s0) lw a5,-44(s0) sext.w a4,a4 sext.w a5,a5 blt a4,a5,.L4 sw zero,-20(s0) j .L5 .L7: lw a5,-20(s0) slli a5,a5,2 ld a4,-56(s0) add a5,a4,a5 lw a5,0(a5) sext.w a5,a5 andi a5,a5,1 sext.w a5,a5 bnez a5,.L6 lw a5,-28(s0) addiw a5,a5,1 sw a5,-28(s0) .L6: lw a5,-20(s0) addiw a5,a5,1 sw a5,-20(s0) .L5: lw a4,-20(s0) lw a5,-48(s0) sext.w a4,a4 sext.w a5,a5 blt a4,a5,.L7 lw a4,-28(s0) lw a5,-44(s0) sext.w a4,a4 sext.w a5,a5 blt a4,a5,.L8 lla a5,.LC0 j .L9 .L8: lla a5,.LC1 .L9: mv a0,a5 ld s0,56(sp) addi sp,sp,64 jr ra .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
eval/problem142/code.c
.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 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 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" .option pic .text .section .rodata .align 3 .LC0: .string "No" .align 3 .LC1: .string ".txt" .align 3 .LC2: .string ".exe" .align 3 .LC3: .string ".dll" .align 3 .LC4: .string "Yes" .text .align 1 .globl func0 .type func0, @function func0: addi sp,sp,-64 sd ra,56(sp) sd s0,48(sp) addi s0,sp,64 sd a0,-56(s0) sw zero,-40(s0) sw zero,-36(s0) ld a0,-56(s0) call strlen@plt mv a5,a0 sw a5,-28(s0) lw a5,-28(s0) sext.w a4,a5 li a5,4 bgt a4,a5,.L2 lla a5,.LC0 j .L3 .L2: ld a5,-56(s0) lbu a5,0(a5) sb a5,-41(s0) lbu a5,-41(s0) andi a4,a5,0xff li a5,64 bleu a4,a5,.L4 lbu a5,-41(s0) andi a4,a5,0xff li a5,90 bleu a4,a5,.L5 lbu a5,-41(s0) andi a4,a5,0xff li a5,96 bleu a4,a5,.L4 .L5: lbu a5,-41(s0) andi a4,a5,0xff li a5,122 bleu a4,a5,.L6 .L4: lla a5,.LC0 j .L3 .L6: lw a5,-28(s0) addi a5,a5,-4 ld a4,-56(s0) add a5,a4,a5 sd a5,-24(s0) lla a1,.LC1 ld a0,-24(s0) call strcmp@plt mv a5,a0 beqz a5,.L7 lla a1,.LC2 ld a0,-24(s0) call strcmp@plt mv a5,a0 beqz a5,.L7 lla a1,.LC3 ld a0,-24(s0) call strcmp@plt mv a5,a0 beqz a5,.L7 lla a5,.LC0 j .L3 .L7: sw zero,-32(s0) j .L8 .L11: lw a5,-32(s0) ld a4,-56(s0) add a5,a4,a5 lbu a5,0(a5) mv a4,a5 li a5,47 bleu a4,a5,.L9 lw a5,-32(s0) ld a4,-56(s0) add a5,a4,a5 lbu a5,0(a5) mv a4,a5 li a5,57 bgtu a4,a5,.L9 lw a5,-40(s0) addiw a5,a5,1 sw a5,-40(s0) .L9: lw a5,-32(s0) ld a4,-56(s0) add a5,a4,a5 lbu a5,0(a5) mv a4,a5 li a5,46 bne a4,a5,.L10 lw a5,-36(s0) addiw a5,a5,1 sw a5,-36(s0) .L10: lw a5,-32(s0) addiw a5,a5,1 sw a5,-32(s0) .L8: lw a4,-32(s0) lw a5,-28(s0) sext.w a4,a4 sext.w a5,a5 blt a4,a5,.L11 lw a5,-40(s0) sext.w a4,a5 li a5,3 bgt a4,a5,.L12 lw a5,-36(s0) sext.w a4,a5 li a5,1 beq a4,a5,.L13 .L12: lla a5,.LC0 j .L3 .L13: lla a5,.LC4 .L3: mv a0,a5 ld ra,56(sp) ld s0,48(sp) addi sp,sp,64 jr ra .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
eval/problem135/code.c
.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], 0 jne .L2 mov eax, 0 jmp .L3 .L2: mov eax, DWORD PTR -4[rbp] cdqe lea rdx, -1[rax] mov rax, QWORD PTR -24[rbp] add rax, rdx movzx eax, BYTE PTR [rax] mov BYTE PTR -6[rbp], al call __ctype_b_loc@PLT mov rax, QWORD PTR [rax] movzx edx, BYTE PTR -6[rbp] movzx edx, dl add rdx, rdx add rax, rdx movzx eax, WORD PTR [rax] movzx eax, ax and eax, 1024 test eax, eax jne .L4 mov eax, 0 jmp .L3 .L4: cmp DWORD PTR -4[rbp], 1 jne .L5 mov eax, 1 jmp .L3 .L5: mov eax, DWORD PTR -4[rbp] cdqe lea rdx, -2[rax] mov rax, QWORD PTR -24[rbp] add rax, rdx movzx eax, BYTE PTR [rax] mov BYTE PTR -5[rbp], al call __ctype_b_loc@PLT mov rax, QWORD PTR [rax] movzx edx, BYTE PTR -5[rbp] movzx edx, dl add rdx, rdx add rax, rdx movzx eax, WORD PTR [rax] movzx eax, ax and eax, 1024 test eax, eax je .L6 mov eax, 0 jmp .L3 .L6: mov eax, 1 .L3: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 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" .option pic .text .align 1 .globl func0 .type func0, @function func0: addi sp,sp,-48 sd ra,40(sp) sd s0,32(sp) addi s0,sp,48 sd a0,-40(s0) ld a0,-40(s0) call strlen@plt mv a5,a0 sw a5,-20(s0) lw a5,-20(s0) sext.w a5,a5 bnez a5,.L2 li a5,0 j .L3 .L2: lw a5,-20(s0) addi a5,a5,-1 ld a4,-40(s0) add a5,a4,a5 lbu a5,0(a5) sb a5,-22(s0) call __ctype_b_loc@plt mv a5,a0 ld a4,0(a5) lbu a5,-22(s0) slli a5,a5,1 add a5,a4,a5 lhu a5,0(a5) sext.w a5,a5 andi a5,a5,1024 sext.w a5,a5 bnez a5,.L4 li a5,0 j .L3 .L4: lw a5,-20(s0) sext.w a4,a5 li a5,1 bne a4,a5,.L5 li a5,1 j .L3 .L5: lw a5,-20(s0) addi a5,a5,-2 ld a4,-40(s0) add a5,a4,a5 lbu a5,0(a5) sb a5,-21(s0) call __ctype_b_loc@plt mv a5,a0 ld a4,0(a5) lbu a5,-21(s0) slli a5,a5,1 add a5,a4,a5 lhu a5,0(a5) sext.w a5,a5 andi a5,a5,1024 sext.w a5,a5 beqz a5,.L6 li a5,0 j .L3 .L6: li a5,1 .L3: mv a0,a5 ld ra,40(sp) ld s0,32(sp) addi sp,sp,48 jr ra .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
eval/problem150/code.c
.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, 80 mov QWORD PTR -56[rbp], rdi mov DWORD PTR -60[rbp], esi mov QWORD PTR -72[rbp], rdx mov rax, QWORD PTR -72[rbp] mov DWORD PTR [rax], 0 mov DWORD PTR -40[rbp], 0 jmp .L2 .L4: mov eax, DWORD PTR -40[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -56[rbp] add rax, rdx mov rax, QWORD PTR [rax] mov rdi, rax call strlen@PLT and eax, 1 test rax, rax jne .L3 mov eax, DWORD PTR -40[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -56[rbp] lea rcx, [rdx+rax] mov rax, QWORD PTR -72[rbp] mov eax, DWORD PTR [rax] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -56[rbp] add rdx, rax mov rax, QWORD PTR [rcx] mov QWORD PTR [rdx], rax mov rax, QWORD PTR -72[rbp] mov eax, DWORD PTR [rax] lea edx, 1[rax] mov rax, QWORD PTR -72[rbp] mov DWORD PTR [rax], edx .L3: add DWORD PTR -40[rbp], 1 .L2: mov eax, DWORD PTR -40[rbp] cmp eax, DWORD PTR -60[rbp] jl .L4 mov DWORD PTR -40[rbp], 0 jmp .L5 .L10: mov DWORD PTR -36[rbp], 0 jmp .L6 .L9: mov eax, DWORD PTR -36[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -56[rbp] add rax, rdx mov rax, QWORD PTR [rax] mov rdi, rax call strlen@PLT mov QWORD PTR -24[rbp], rax mov eax, DWORD PTR -36[rbp] cdqe add rax, 1 lea rdx, 0[0+rax*8] mov rax, QWORD PTR -56[rbp] add rax, rdx mov rax, QWORD PTR [rax] mov rdi, rax call strlen@PLT mov QWORD PTR -16[rbp], rax mov rax, QWORD PTR -24[rbp] cmp rax, QWORD PTR -16[rbp] ja .L7 mov rax, QWORD PTR -24[rbp] cmp rax, QWORD PTR -16[rbp] jne .L8 mov eax, DWORD PTR -36[rbp] cdqe add rax, 1 lea rdx, 0[0+rax*8] mov rax, QWORD PTR -56[rbp] add rax, rdx mov rdx, QWORD PTR [rax] mov eax, DWORD PTR -36[rbp] cdqe lea rcx, 0[0+rax*8] mov rax, QWORD PTR -56[rbp] add rax, rcx mov rax, QWORD PTR [rax] mov rsi, rdx mov rdi, rax call strcmp@PLT test eax, eax jle .L8 .L7: mov eax, DWORD PTR -36[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -56[rbp] add rax, rdx mov rax, QWORD PTR [rax] mov QWORD PTR -8[rbp], rax mov eax, DWORD PTR -36[rbp] cdqe add rax, 1 lea rdx, 0[0+rax*8] mov rax, QWORD PTR -56[rbp] add rax, rdx mov edx, DWORD PTR -36[rbp] movsx rdx, edx lea rcx, 0[0+rdx*8] mov rdx, QWORD PTR -56[rbp] add rdx, rcx mov rax, QWORD PTR [rax] mov QWORD PTR [rdx], rax mov eax, DWORD PTR -36[rbp] cdqe add rax, 1 lea rdx, 0[0+rax*8] mov rax, QWORD PTR -56[rbp] add rdx, rax mov rax, QWORD PTR -8[rbp] mov QWORD PTR [rdx], rax .L8: add DWORD PTR -36[rbp], 1 .L6: mov rax, QWORD PTR -72[rbp] mov eax, DWORD PTR [rax] sub eax, DWORD PTR -40[rbp] sub eax, 1 cmp DWORD PTR -36[rbp], eax jl .L9 add DWORD PTR -40[rbp], 1 .L5: mov rax, QWORD PTR -72[rbp] mov eax, DWORD PTR [rax] sub eax, 1 cmp DWORD PTR -40[rbp], eax jl .L10 mov rax, QWORD PTR -72[rbp] mov eax, DWORD PTR [rax] cdqe sal rax, 3 mov rdi, rax call malloc@PLT mov QWORD PTR -32[rbp], rax mov DWORD PTR -40[rbp], 0 jmp .L11 .L12: mov eax, DWORD PTR -40[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -56[rbp] add rax, rdx mov edx, DWORD PTR -40[rbp] movsx rdx, edx lea rcx, 0[0+rdx*8] mov rdx, QWORD PTR -32[rbp] add rdx, rcx mov rax, QWORD PTR [rax] mov QWORD PTR [rdx], rax add DWORD PTR -40[rbp], 1 .L11: mov rax, QWORD PTR -72[rbp] mov eax, DWORD PTR [rax] cmp DWORD PTR -40[rbp], eax jl .L12 mov rax, QWORD PTR -32[rbp] leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 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" .option pic .text .align 1 .globl func0 .type func0, @function func0: addi sp,sp,-96 sd ra,88(sp) sd s0,80(sp) addi s0,sp,96 sd a0,-72(s0) mv a5,a1 sd a2,-88(s0) sw a5,-76(s0) ld a5,-88(s0) sw zero,0(a5) sw zero,-56(s0) j .L2 .L4: lw a5,-56(s0) slli a5,a5,3 ld a4,-72(s0) add a5,a4,a5 ld a5,0(a5) mv a0,a5 call strlen@plt mv a5,a0 andi a5,a5,1 bnez a5,.L3 lw a5,-56(s0) slli a5,a5,3 ld a4,-72(s0) add a4,a4,a5 ld a5,-88(s0) lw a5,0(a5) slli a5,a5,3 ld a3,-72(s0) add a5,a3,a5 ld a4,0(a4) sd a4,0(a5) ld a5,-88(s0) lw a5,0(a5) addiw a5,a5,1 sext.w a4,a5 ld a5,-88(s0) sw a4,0(a5) .L3: lw a5,-56(s0) addiw a5,a5,1 sw a5,-56(s0) .L2: lw a4,-56(s0) lw a5,-76(s0) sext.w a4,a4 sext.w a5,a5 blt a4,a5,.L4 sw zero,-56(s0) j .L5 .L10: sw zero,-52(s0) j .L6 .L9: lw a5,-52(s0) slli a5,a5,3 ld a4,-72(s0) add a5,a4,a5 ld a5,0(a5) mv a0,a5 call strlen@plt sd a0,-40(s0) lw a5,-52(s0) addi a5,a5,1 slli a5,a5,3 ld a4,-72(s0) add a5,a4,a5 ld a5,0(a5) mv a0,a5 call strlen@plt sd a0,-32(s0) ld a4,-40(s0) ld a5,-32(s0) bgtu a4,a5,.L7 ld a4,-40(s0) ld a5,-32(s0) bne a4,a5,.L8 lw a5,-52(s0) slli a5,a5,3 ld a4,-72(s0) add a5,a4,a5 ld a3,0(a5) lw a5,-52(s0) addi a5,a5,1 slli a5,a5,3 ld a4,-72(s0) add a5,a4,a5 ld a5,0(a5) mv a1,a5 mv a0,a3 call strcmp@plt mv a5,a0 blez a5,.L8 .L7: lw a5,-52(s0) slli a5,a5,3 ld a4,-72(s0) add a5,a4,a5 ld a5,0(a5) sd a5,-24(s0) lw a5,-52(s0) addi a5,a5,1 slli a5,a5,3 ld a4,-72(s0) add a4,a4,a5 lw a5,-52(s0) slli a5,a5,3 ld a3,-72(s0) add a5,a3,a5 ld a4,0(a4) sd a4,0(a5) lw a5,-52(s0) addi a5,a5,1 slli a5,a5,3 ld a4,-72(s0) add a5,a4,a5 ld a4,-24(s0) sd a4,0(a5) .L8: lw a5,-52(s0) addiw a5,a5,1 sw a5,-52(s0) .L6: ld a5,-88(s0) lw a4,0(a5) lw a5,-56(s0) subw a5,a4,a5 sext.w a5,a5 addiw a5,a5,-1 sext.w a4,a5 lw a5,-52(s0) sext.w a5,a5 blt a5,a4,.L9 lw a5,-56(s0) addiw a5,a5,1 sw a5,-56(s0) .L5: ld a5,-88(s0) lw a5,0(a5) addiw a5,a5,-1 sext.w a4,a5 lw a5,-56(s0) sext.w a5,a5 blt a5,a4,.L10 ld a5,-88(s0) lw a5,0(a5) slli a5,a5,3 mv a0,a5 call malloc@plt mv a5,a0 sd a5,-48(s0) sw zero,-56(s0) j .L11 .L12: lw a5,-56(s0) slli a5,a5,3 ld a4,-72(s0) add a4,a4,a5 lw a5,-56(s0) slli a5,a5,3 ld a3,-48(s0) add a5,a3,a5 ld a4,0(a4) sd a4,0(a5) lw a5,-56(s0) addiw a5,a5,1 sw a5,-56(s0) .L11: ld a5,-88(s0) lw a4,0(a5) lw a5,-56(s0) sext.w a5,a5 blt a5,a4,.L12 ld a5,-48(s0) mv a0,a5 ld ra,88(sp) ld s0,80(sp) addi sp,sp,96 jr ra .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
eval/problem89/code.c
.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 rax, QWORD PTR -64[rbp] mov edx, DWORD PTR -44[rbp] mov DWORD PTR [rax], edx cmp DWORD PTR -44[rbp], 0 jne .L2 mov rax, QWORD PTR -56[rbp] mov QWORD PTR [rax], 0 jmp .L1 .L2: 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 -56[rbp] mov rax, QWORD PTR [rax] test rax, rax jne .L4 mov edi, 1 call exit@PLT .L4: mov DWORD PTR -24[rbp], 0 jmp .L5 .L6: mov eax, DWORD PTR -24[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 rax, QWORD PTR [rax] mov edx, DWORD PTR -24[rbp] movsx rdx, edx sal rdx, 2 add rdx, rax mov eax, DWORD PTR [rcx] mov DWORD PTR [rdx], eax add DWORD PTR -24[rbp], 1 .L5: mov eax, DWORD PTR -24[rbp] cmp eax, DWORD PTR -44[rbp] jl .L6 mov rax, QWORD PTR -40[rbp] mov edx, DWORD PTR [rax] mov eax, DWORD PTR -44[rbp] cdqe sal rax, 2 lea rcx, -4[rax] mov rax, QWORD PTR -40[rbp] add rax, rcx mov eax, DWORD PTR [rax] add edx, eax mov eax, edx sar eax, 31 shr eax, 31 add edx, eax and edx, 1 sub edx, eax mov eax, edx cmp eax, 1 sete al movzx eax, al mov DWORD PTR -12[rbp], eax mov DWORD PTR -20[rbp], 0 jmp .L7 .L12: mov eax, DWORD PTR -20[rbp] add eax, 1 mov DWORD PTR -16[rbp], eax jmp .L8 .L11: cmp DWORD PTR -12[rbp], 0 je .L9 mov rax, QWORD PTR -56[rbp] mov rax, QWORD PTR [rax] mov edx, DWORD PTR -20[rbp] movsx rdx, edx sal rdx, 2 add rax, rdx mov edx, DWORD PTR [rax] mov rax, QWORD PTR -56[rbp] mov rax, QWORD PTR [rax] mov ecx, DWORD PTR -16[rbp] movsx rcx, ecx sal rcx, 2 add rax, rcx mov eax, DWORD PTR [rax] cmp edx, eax jle .L10 mov rax, QWORD PTR -56[rbp] mov rax, QWORD PTR [rax] mov edx, DWORD PTR -20[rbp] movsx rdx, edx sal rdx, 2 add rax, rdx mov eax, DWORD PTR [rax] mov DWORD PTR -4[rbp], eax mov rax, QWORD PTR -56[rbp] mov rax, QWORD PTR [rax] mov edx, DWORD PTR -16[rbp] movsx rdx, edx sal rdx, 2 lea rcx, [rax+rdx] mov rax, QWORD PTR -56[rbp] mov rax, QWORD PTR [rax] mov edx, DWORD PTR -20[rbp] movsx rdx, edx sal rdx, 2 add rdx, rax mov eax, DWORD PTR [rcx] mov DWORD PTR [rdx], eax mov rax, QWORD PTR -56[rbp] mov rax, QWORD PTR [rax] mov edx, DWORD PTR -16[rbp] movsx rdx, edx sal rdx, 2 add rdx, rax mov eax, DWORD PTR -4[rbp] mov DWORD PTR [rdx], eax jmp .L10 .L9: mov rax, QWORD PTR -56[rbp] mov rax, QWORD PTR [rax] mov edx, DWORD PTR -20[rbp] movsx rdx, edx sal rdx, 2 add rax, rdx mov edx, DWORD PTR [rax] mov rax, QWORD PTR -56[rbp] mov rax, QWORD PTR [rax] mov ecx, DWORD PTR -16[rbp] movsx rcx, ecx sal rcx, 2 add rax, rcx mov eax, DWORD PTR [rax] cmp edx, eax jge .L10 mov rax, QWORD PTR -56[rbp] mov rax, QWORD PTR [rax] mov edx, DWORD PTR -20[rbp] movsx rdx, edx sal rdx, 2 add rax, rdx mov eax, DWORD PTR [rax] mov DWORD PTR -8[rbp], eax mov rax, QWORD PTR -56[rbp] mov rax, QWORD PTR [rax] mov edx, DWORD PTR -16[rbp] movsx rdx, edx sal rdx, 2 lea rcx, [rax+rdx] mov rax, QWORD PTR -56[rbp] mov rax, QWORD PTR [rax] mov edx, DWORD PTR -20[rbp] movsx rdx, edx sal rdx, 2 add rdx, rax mov eax, DWORD PTR [rcx] mov DWORD PTR [rdx], eax mov rax, QWORD PTR -56[rbp] mov rax, QWORD PTR [rax] mov edx, DWORD PTR -16[rbp] movsx rdx, edx sal rdx, 2 add rdx, rax mov eax, DWORD PTR -8[rbp] mov DWORD PTR [rdx], eax .L10: add DWORD PTR -16[rbp], 1 .L8: mov eax, DWORD PTR -16[rbp] cmp eax, DWORD PTR -44[rbp] jl .L11 add DWORD PTR -20[rbp], 1 .L7: mov eax, DWORD PTR -44[rbp] sub eax, 1 cmp DWORD PTR -20[rbp], eax jl .L12 .L1: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 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" .option pic .text .align 1 .globl func0 .type func0, @function func0: addi sp,sp,-80 sd ra,72(sp) sd s0,64(sp) addi s0,sp,80 sd a0,-56(s0) mv a5,a1 sd a2,-72(s0) sd a3,-80(s0) sw a5,-60(s0) ld a5,-80(s0) lw a4,-60(s0) sw a4,0(a5) lw a5,-60(s0) sext.w a5,a5 bnez a5,.L2 ld a5,-72(s0) sd zero,0(a5) j .L1 .L2: lw a5,-60(s0) slli a5,a5,2 mv a0,a5 call malloc@plt mv a5,a0 mv a4,a5 ld a5,-72(s0) sd a4,0(a5) ld a5,-72(s0) ld a5,0(a5) bnez a5,.L4 li a0,1 call exit@plt .L4: sw zero,-40(s0) j .L5 .L6: lw a5,-40(s0) slli a5,a5,2 ld a4,-56(s0) add a4,a4,a5 ld a5,-72(s0) ld a3,0(a5) lw a5,-40(s0) slli a5,a5,2 add a5,a3,a5 lw a4,0(a4) sw a4,0(a5) lw a5,-40(s0) addiw a5,a5,1 sw a5,-40(s0) .L5: lw a4,-40(s0) lw a5,-60(s0) sext.w a4,a4 sext.w a5,a5 blt a4,a5,.L6 ld a5,-56(s0) lw a4,0(a5) lw a5,-60(s0) slli a5,a5,2 addi a5,a5,-4 ld a3,-56(s0) add a5,a3,a5 lw a5,0(a5) addw a5,a4,a5 sext.w a5,a5 mv a4,a5 sraiw a5,a4,31 srliw a5,a5,31 addw a4,a4,a5 andi a4,a4,1 subw a5,a4,a5 sext.w a5,a5 mv a4,a5 li a5,1 sub a5,a4,a5 seqz a5,a5 andi a5,a5,0xff sw a5,-28(s0) sw zero,-36(s0) j .L7 .L12: lw a5,-36(s0) addiw a5,a5,1 sw a5,-32(s0) j .L8 .L11: lw a5,-28(s0) sext.w a5,a5 beqz a5,.L9 ld a5,-72(s0) ld a4,0(a5) lw a5,-36(s0) slli a5,a5,2 add a5,a4,a5 lw a3,0(a5) ld a5,-72(s0) ld a4,0(a5) lw a5,-32(s0) slli a5,a5,2 add a5,a4,a5 lw a5,0(a5) mv a4,a3 ble a4,a5,.L10 ld a5,-72(s0) ld a4,0(a5) lw a5,-36(s0) slli a5,a5,2 add a5,a4,a5 lw a5,0(a5) sw a5,-20(s0) ld a5,-72(s0) ld a4,0(a5) lw a5,-32(s0) slli a5,a5,2 add a4,a4,a5 ld a5,-72(s0) ld a3,0(a5) lw a5,-36(s0) slli a5,a5,2 add a5,a3,a5 lw a4,0(a4) sw a4,0(a5) ld a5,-72(s0) ld a4,0(a5) lw a5,-32(s0) slli a5,a5,2 add a5,a4,a5 lw a4,-20(s0) sw a4,0(a5) j .L10 .L9: ld a5,-72(s0) ld a4,0(a5) lw a5,-36(s0) slli a5,a5,2 add a5,a4,a5 lw a3,0(a5) ld a5,-72(s0) ld a4,0(a5) lw a5,-32(s0) slli a5,a5,2 add a5,a4,a5 lw a5,0(a5) mv a4,a3 bge a4,a5,.L10 ld a5,-72(s0) ld a4,0(a5) lw a5,-36(s0) slli a5,a5,2 add a5,a4,a5 lw a5,0(a5) sw a5,-24(s0) ld a5,-72(s0) ld a4,0(a5) lw a5,-32(s0) slli a5,a5,2 add a4,a4,a5 ld a5,-72(s0) ld a3,0(a5) lw a5,-36(s0) slli a5,a5,2 add a5,a3,a5 lw a4,0(a4) sw a4,0(a5) ld a5,-72(s0) ld a4,0(a5) lw a5,-32(s0) slli a5,a5,2 add a5,a4,a5 lw a4,-24(s0) sw a4,0(a5) .L10: lw a5,-32(s0) addiw a5,a5,1 sw a5,-32(s0) .L8: lw a4,-32(s0) lw a5,-60(s0) sext.w a4,a4 sext.w a5,a5 blt a4,a5,.L11 lw a5,-36(s0) addiw a5,a5,1 sw a5,-36(s0) .L7: lw a5,-60(s0) addiw a5,a5,-1 sext.w a4,a5 lw a5,-36(s0) sext.w a5,a5 blt a5,a4,.L12 .L1: ld ra,72(sp) ld s0,64(sp) addi sp,sp,80 jr ra .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
eval/problem152/code.c
.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, 56 .cfi_offset 3, -24 mov QWORD PTR -40[rbp], rdi mov DWORD PTR -44[rbp], esi mov QWORD PTR -24[rbp], 0 mov DWORD PTR -28[rbp], 0 jmp .L2 .L6: mov eax, DWORD PTR -28[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -40[rbp] add rax, rdx movss xmm0, DWORD PTR [rax] cvtss2sd xmm2, xmm0 movsd QWORD PTR -56[rbp], xmm2 mov eax, DWORD PTR -28[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -40[rbp] add rax, rdx movss xmm0, DWORD PTR [rax] cvtss2sd xmm0, xmm0 call round@PLT movsd xmm2, QWORD PTR -56[rbp] subsd xmm2, xmm0 movapd xmm0, xmm2 movq xmm1, QWORD PTR .LC0[rip] andpd xmm1, xmm0 movsd xmm0, QWORD PTR .LC1[rip] comisd xmm0, xmm1 jbe .L3 mov eax, DWORD PTR -28[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -40[rbp] add rax, rdx movss xmm0, DWORD PTR [rax] pxor xmm1, xmm1 comiss xmm0, xmm1 jbe .L3 mov eax, DWORD PTR -28[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -40[rbp] add rax, rdx movss xmm0, DWORD PTR [rax] cvtss2sd xmm0, xmm0 call round@PLT cvttsd2si eax, xmm0 cdq shr edx, 31 add eax, edx and eax, 1 sub eax, edx cmp eax, 1 jne .L3 mov eax, DWORD PTR -28[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -40[rbp] add rax, rdx movss xmm0, DWORD PTR [rax] cvtss2sd xmm0, xmm0 call round@PLT cvttsd2si ebx, xmm0 mov eax, DWORD PTR -28[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -40[rbp] add rax, rdx movss xmm0, DWORD PTR [rax] cvtss2sd xmm0, xmm0 call round@PLT cvttsd2si eax, xmm0 imul eax, ebx cdqe add QWORD PTR -24[rbp], rax .L3: add DWORD PTR -28[rbp], 1 .L2: mov eax, DWORD PTR -28[rbp] cmp eax, DWORD PTR -44[rbp] jl .L6 mov rax, QWORD PTR -24[rbp] add rsp, 56 pop rbx pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .section .rodata .align 16 .LC0: .long 4294967295 .long 2147483647 .long 0 .long 0 .align 8 .LC1: .long 3944497965 .long 1058682594 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 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" .option pic .text .align 1 .globl func0 .type func0, @function func0: addi sp,sp,-80 sd ra,72(sp) sd s0,64(sp) sd s1,56(sp) fsd fs0,40(sp) addi s0,sp,80 sd a0,-72(s0) mv a5,a1 sw a5,-76(s0) sd zero,-56(s0) sw zero,-60(s0) j .L2 .L6: lw a5,-60(s0) slli a5,a5,2 ld a4,-72(s0) add a5,a4,a5 flw fa5,0(a5) fcvt.d.s fs0,fa5 lw a5,-60(s0) slli a5,a5,2 ld a4,-72(s0) add a5,a4,a5 flw fa5,0(a5) fcvt.d.s fa5,fa5 fmv.d fa0,fa5 call round@plt fmv.d fa5,fa0 fsub.d fa5,fs0,fa5 fabs.d fa4,fa5 lla a5,.LC0 fld fa5,0(a5) flt.d a5,fa4,fa5 beqz a5,.L3 lw a5,-60(s0) slli a5,a5,2 ld a4,-72(s0) add a5,a4,a5 flw fa5,0(a5) fmv.s.x fa4,zero fgt.s a5,fa5,fa4 beqz a5,.L3 lw a5,-60(s0) slli a5,a5,2 ld a4,-72(s0) add a5,a4,a5 flw fa5,0(a5) fcvt.d.s fa5,fa5 fmv.d fa0,fa5 call round@plt fmv.d fa5,fa0 fcvt.w.d a5,fa5,rtz sext.w a5,a5 mv a4,a5 sraiw a5,a4,31 srliw a5,a5,31 addw a4,a4,a5 andi a4,a4,1 subw a5,a4,a5 sext.w a5,a5 mv a4,a5 li a5,1 bne a4,a5,.L3 lw a5,-60(s0) slli a5,a5,2 ld a4,-72(s0) add a5,a4,a5 flw fa5,0(a5) fcvt.d.s fa5,fa5 fmv.d fa0,fa5 call round@plt fmv.d fa5,fa0 fcvt.w.d a5,fa5,rtz sext.w s1,a5 lw a5,-60(s0) slli a5,a5,2 ld a4,-72(s0) add a5,a4,a5 flw fa5,0(a5) fcvt.d.s fa5,fa5 fmv.d fa0,fa5 call round@plt fmv.d fa5,fa0 fcvt.w.d a5,fa5,rtz sext.w a5,a5 mulw a5,s1,a5 sext.w a5,a5 mv a4,a5 ld a5,-56(s0) add a5,a5,a4 sd a5,-56(s0) .L3: lw a5,-60(s0) addiw a5,a5,1 sw a5,-60(s0) .L2: lw a4,-60(s0) lw a5,-76(s0) sext.w a4,a4 sext.w a5,a5 blt a4,a5,.L6 ld a5,-56(s0) mv a0,a5 ld ra,72(sp) ld s0,64(sp) ld s1,56(sp) fld fs0,40(sp) addi sp,sp,80 jr ra .size func0, .-func0 .section .rodata .align 3 .LC0: .word 3944497965 .word 1058682594 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
eval/problem25/code.c
.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 eax, edx test eax, eax jne .L3 mov eax, DWORD PTR -20[rbp] cdq idiv DWORD PTR -4[rbp] jmp .L4 .L3: add DWORD PTR -4[rbp], 1 .L2: mov eax, DWORD PTR -4[rbp] imul eax, eax cmp DWORD PTR -20[rbp], eax jge .L5 mov eax, 1 .L4: pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 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" .option pic .text .align 1 .globl func0 .type func0, @function func0: addi sp,sp,-48 sd s0,40(sp) addi s0,sp,48 mv a5,a0 sw a5,-36(s0) li a5,2 sw a5,-20(s0) j .L2 .L5: lw a4,-36(s0) lw a5,-20(s0) remw a5,a4,a5 sext.w a5,a5 bnez a5,.L3 lw a4,-36(s0) lw a5,-20(s0) divw a5,a4,a5 sext.w a5,a5 j .L4 .L3: lw a5,-20(s0) addiw a5,a5,1 sw a5,-20(s0) .L2: lw a5,-20(s0) mulw a5,a5,a5 sext.w a4,a5 lw a5,-36(s0) sext.w a5,a5 bge a5,a4,.L5 li a5,1 .L4: mv a0,a5 ld s0,40(sp) addi sp,sp,48 jr ra .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
eval/problem7/code.c
.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 QWORD PTR -8[rbp], 0 mov DWORD PTR -24[rbp], 0 mov DWORD PTR -20[rbp], 0 mov DWORD PTR -16[rbp], 0 mov DWORD PTR -12[rbp], 0 mov DWORD PTR -16[rbp], 0 jmp .L2 .L5: 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 -25[rbp], al cmp BYTE PTR -25[rbp], 40 jne .L3 add DWORD PTR -24[rbp], 1 mov eax, DWORD PTR -24[rbp] cmp eax, DWORD PTR -20[rbp] jle .L4 mov eax, DWORD PTR -24[rbp] mov DWORD PTR -20[rbp], eax jmp .L4 .L3: cmp BYTE PTR -25[rbp], 41 jne .L4 sub DWORD PTR -24[rbp], 1 cmp DWORD PTR -24[rbp], 0 jne .L4 mov eax, DWORD PTR -12[rbp] add eax, 1 cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] mov rsi, rdx mov rdi, rax call realloc@PLT mov QWORD PTR -8[rbp], 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 -20[rbp] mov DWORD PTR [rdx], eax mov DWORD PTR -20[rbp], 0 .L4: 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 .L5 mov rax, QWORD PTR -48[rbp] mov edx, DWORD PTR -12[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 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 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" .option pic .text .align 1 .globl func0 .type func0, @function func0: addi sp,sp,-64 sd ra,56(sp) sd s0,48(sp) addi s0,sp,64 sd a0,-56(s0) sd a1,-64(s0) sd zero,-24(s0) sw zero,-40(s0) sw zero,-36(s0) sw zero,-32(s0) sw zero,-28(s0) sw zero,-32(s0) j .L2 .L5: lw a5,-32(s0) ld a4,-56(s0) add a5,a4,a5 lbu a5,0(a5) sb a5,-41(s0) lbu a5,-41(s0) andi a4,a5,0xff li a5,40 bne a4,a5,.L3 lw a5,-40(s0) addiw a5,a5,1 sw a5,-40(s0) lw a4,-40(s0) lw a5,-36(s0) sext.w a4,a4 sext.w a5,a5 ble a4,a5,.L4 lw a5,-40(s0) sw a5,-36(s0) j .L4 .L3: lbu a5,-41(s0) andi a4,a5,0xff li a5,41 bne a4,a5,.L4 lw a5,-40(s0) addiw a5,a5,-1 sw a5,-40(s0) lw a5,-40(s0) sext.w a5,a5 bnez a5,.L4 lw a5,-28(s0) addiw a5,a5,1 sext.w a5,a5 slli a5,a5,2 mv a1,a5 ld a0,-24(s0) call realloc@plt sd a0,-24(s0) lw a5,-28(s0) addiw a4,a5,1 sw a4,-28(s0) slli a5,a5,2 ld a4,-24(s0) add a5,a4,a5 lw a4,-36(s0) sw a4,0(a5) sw zero,-36(s0) .L4: lw a5,-32(s0) addiw a5,a5,1 sw a5,-32(s0) .L2: lw a5,-32(s0) ld a4,-56(s0) add a5,a4,a5 lbu a5,0(a5) bnez a5,.L5 ld a5,-64(s0) lw a4,-28(s0) sw a4,0(a5) ld a5,-24(s0) mv a0,a5 ld ra,56(sp) ld s0,48(sp) addi sp,sp,64 jr ra .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
eval/problem4/code.c
.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 .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 cmp DWORD PTR -8[rbp], 0 jns .L3 mov eax, 1 jmp .L4 .L3: add DWORD PTR -4[rbp], 1 .L2: mov eax, DWORD PTR -4[rbp] cmp eax, DWORD PTR -28[rbp] jl .L5 mov eax, 0 .L4: pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 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" .option pic .text .align 1 .globl func0 .type func0, @function func0: addi sp,sp,-48 sd s0,40(sp) addi s0,sp,48 sd a0,-40(s0) mv a5,a1 sw a5,-44(s0) sw zero,-24(s0) sw zero,-20(s0) j .L2 .L5: lw a5,-20(s0) slli a5,a5,2 ld a4,-40(s0) add a5,a4,a5 lw a5,0(a5) lw a4,-24(s0) addw a5,a4,a5 sw a5,-24(s0) lw a5,-24(s0) sext.w a5,a5 bgez a5,.L3 li a5,1 j .L4 .L3: lw a5,-20(s0) addiw a5,a5,1 sw a5,-20(s0) .L2: lw a4,-20(s0) lw a5,-44(s0) sext.w a4,a4 sext.w a5,a5 blt a4,a5,.L5 li a5,0 .L4: mv a0,a5 ld s0,40(sp) addi sp,sp,48 jr ra .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
eval/problem112/code.c
.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, 176 mov QWORD PTR -152[rbp], rdi mov QWORD PTR -160[rbp], rsi mov QWORD PTR -168[rbp], rdx mov QWORD PTR -176[rbp], rcx mov rax, QWORD PTR fs:40 mov QWORD PTR -8[rbp], rax xor eax, eax lea rdx, -112[rbp] mov eax, 0 mov ecx, 13 mov rdi, rdx rep stosq mov DWORD PTR -136[rbp], 0 mov rax, QWORD PTR -152[rbp] mov QWORD PTR -120[rbp], rax mov DWORD PTR -132[rbp], 0 jmp .L2 .L4: mov rax, QWORD PTR -120[rbp] movzx eax, BYTE PTR [rax] cmp al, 32 je .L3 mov rax, QWORD PTR -120[rbp] movzx eax, BYTE PTR [rax] movsx eax, al sub eax, 97 mov DWORD PTR -124[rbp], eax mov eax, DWORD PTR -124[rbp] cdqe mov eax, DWORD PTR -112[rbp+rax*4] lea edx, 1[rax] mov eax, DWORD PTR -124[rbp] cdqe mov DWORD PTR -112[rbp+rax*4], edx mov eax, DWORD PTR -124[rbp] cdqe mov eax, DWORD PTR -112[rbp+rax*4] cmp DWORD PTR -136[rbp], eax jge .L3 mov eax, DWORD PTR -124[rbp] cdqe mov eax, DWORD PTR -112[rbp+rax*4] mov DWORD PTR -136[rbp], eax .L3: add QWORD PTR -120[rbp], 1 .L2: mov rax, QWORD PTR -120[rbp] movzx eax, BYTE PTR [rax] test al, al jne .L4 mov DWORD PTR -128[rbp], 0 jmp .L5 .L7: mov eax, DWORD PTR -128[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -160[rbp] add rdx, rax mov eax, DWORD PTR -128[rbp] cdqe mov eax, DWORD PTR -112[rbp+rax*4] mov DWORD PTR [rdx], eax mov eax, DWORD PTR -128[rbp] cdqe mov eax, DWORD PTR -112[rbp+rax*4] cmp DWORD PTR -136[rbp], eax jne .L6 mov eax, DWORD PTR -128[rbp] lea ecx, 97[rax] mov eax, DWORD PTR -132[rbp] lea edx, 1[rax] mov DWORD PTR -132[rbp], edx movsx rdx, eax mov rax, QWORD PTR -176[rbp] add rax, rdx mov edx, ecx mov BYTE PTR [rax], dl .L6: add DWORD PTR -128[rbp], 1 .L5: cmp DWORD PTR -128[rbp], 25 jle .L7 mov rax, QWORD PTR -168[rbp] mov edx, DWORD PTR -136[rbp] mov DWORD PTR [rax], edx mov eax, DWORD PTR -132[rbp] movsx rdx, eax mov rax, QWORD PTR -176[rbp] add rax, rdx mov BYTE PTR [rax], 0 nop mov rax, QWORD PTR -8[rbp] xor rax, QWORD PTR fs:40 je .L8 call __stack_chk_fail@PLT .L8: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 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" .option pic .text .align 1 .globl func0 .type func0, @function func0: addi sp,sp,-192 sd ra,184(sp) sd s0,176(sp) addi s0,sp,192 sd a0,-168(s0) sd a1,-176(s0) sd a2,-184(s0) sd a3,-192(s0) la a5,__stack_chk_guard ld a5,0(a5) sd a5,-24(s0) sd zero,-128(s0) sd zero,-120(s0) sd zero,-112(s0) sd zero,-104(s0) sd zero,-96(s0) sd zero,-88(s0) sd zero,-80(s0) sd zero,-72(s0) sd zero,-64(s0) sd zero,-56(s0) sd zero,-48(s0) sd zero,-40(s0) sd zero,-32(s0) sw zero,-152(s0) ld a5,-168(s0) sd a5,-136(s0) sw zero,-148(s0) j .L2 .L4: ld a5,-136(s0) lbu a5,0(a5) mv a4,a5 li a5,32 beq a4,a5,.L3 ld a5,-136(s0) lbu a5,0(a5) sext.w a5,a5 addiw a5,a5,-97 sw a5,-140(s0) lw a5,-140(s0) slli a5,a5,2 addi a4,s0,-16 add a5,a4,a5 lw a5,-112(a5) addiw a5,a5,1 sext.w a4,a5 lw a5,-140(s0) slli a5,a5,2 addi a3,s0,-16 add a5,a3,a5 sw a4,-112(a5) lw a5,-140(s0) slli a5,a5,2 addi a4,s0,-16 add a5,a4,a5 lw a4,-112(a5) lw a5,-152(s0) sext.w a5,a5 bge a5,a4,.L3 lw a5,-140(s0) slli a5,a5,2 addi a4,s0,-16 add a5,a4,a5 lw a5,-112(a5) sw a5,-152(s0) .L3: ld a5,-136(s0) addi a5,a5,1 sd a5,-136(s0) .L2: ld a5,-136(s0) lbu a5,0(a5) bnez a5,.L4 sw zero,-144(s0) j .L5 .L7: lw a5,-144(s0) slli a5,a5,2 ld a4,-176(s0) add a4,a4,a5 lw a5,-144(s0) slli a5,a5,2 addi a3,s0,-16 add a5,a3,a5 lw a5,-112(a5) sw a5,0(a4) lw a5,-144(s0) slli a5,a5,2 addi a4,s0,-16 add a5,a4,a5 lw a4,-112(a5) lw a5,-152(s0) sext.w a5,a5 bne a5,a4,.L6 lw a5,-144(s0) andi a4,a5,0xff lw a5,-148(s0) addiw a3,a5,1 sw a3,-148(s0) mv a3,a5 ld a5,-192(s0) add a5,a5,a3 addiw a4,a4,97 andi a4,a4,0xff sb a4,0(a5) .L6: lw a5,-144(s0) addiw a5,a5,1 sw a5,-144(s0) .L5: lw a5,-144(s0) sext.w a4,a5 li a5,25 ble a4,a5,.L7 ld a5,-184(s0) lw a4,-152(s0) sw a4,0(a5) lw a5,-148(s0) ld a4,-192(s0) add a5,a4,a5 sb zero,0(a5) nop la a5,__stack_chk_guard ld a4,-24(s0) ld a5,0(a5) beq a4,a5,.L8 call __stack_chk_fail@plt .L8: ld ra,184(sp) ld s0,176(sp) addi sp,sp,192 jr ra .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
eval/problem134/code.c
.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 DWORD PTR -44[rbp], esi mov DWORD PTR -24[rbp], 0 mov DWORD PTR -20[rbp], 0 jmp .L2 .L3: mov eax, DWORD PTR -20[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -40[rbp] add rax, rdx movss xmm0, DWORD PTR [rax] cvtss2sd xmm0, xmm0 call ceil@PLT cvttsd2si ebx, xmm0 mov eax, DWORD PTR -20[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -40[rbp] add rax, rdx movss xmm0, DWORD PTR [rax] cvtss2sd xmm0, xmm0 call ceil@PLT cvttsd2si eax, xmm0 imul eax, ebx add DWORD PTR -24[rbp], eax add DWORD PTR -20[rbp], 1 .L2: mov eax, DWORD PTR -20[rbp] cmp eax, DWORD PTR -44[rbp] jl .L3 mov eax, DWORD PTR -24[rbp] add rsp, 40 pop rbx pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 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" .option pic .text .align 1 .globl func0 .type func0, @function func0: addi sp,sp,-64 sd ra,56(sp) sd s0,48(sp) sd s1,40(sp) addi s0,sp,64 sd a0,-56(s0) mv a5,a1 sw a5,-60(s0) sw zero,-40(s0) sw zero,-36(s0) j .L2 .L3: lw a5,-36(s0) slli a5,a5,2 ld a4,-56(s0) add a5,a4,a5 flw fa5,0(a5) fcvt.d.s fa5,fa5 fmv.d fa0,fa5 call ceil@plt fmv.d fa5,fa0 fcvt.w.d a5,fa5,rtz sext.w s1,a5 lw a5,-36(s0) slli a5,a5,2 ld a4,-56(s0) add a5,a4,a5 flw fa5,0(a5) fcvt.d.s fa5,fa5 fmv.d fa0,fa5 call ceil@plt fmv.d fa5,fa0 fcvt.w.d a5,fa5,rtz sext.w a5,a5 mulw a5,s1,a5 sext.w a5,a5 lw a4,-40(s0) addw a5,a4,a5 sw a5,-40(s0) lw a5,-36(s0) addiw a5,a5,1 sw a5,-36(s0) .L2: lw a4,-36(s0) lw a5,-60(s0) sext.w a4,a4 sext.w a5,a5 blt a4,a5,.L3 lw a5,-40(s0) mv a0,a5 ld ra,56(sp) ld s0,48(sp) ld s1,40(sp) addi sp,sp,64 jr ra .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
eval/problem100/code.c
.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 rax, QWORD PTR -24[rbp] mov rdi, rax call atof@PLT movq rax, xmm0 mov QWORD PTR -8[rbp], rax pxor xmm0, xmm0 comisd xmm0, QWORD PTR -8[rbp] jbe .L7 movsd xmm0, QWORD PTR -8[rbp] movsd xmm1, QWORD PTR .LC1[rip] subsd xmm0, xmm1 call ceil@PLT cvttsd2si eax, xmm0 jmp .L5 .L7: movsd xmm1, QWORD PTR -8[rbp] movsd xmm0, QWORD PTR .LC1[rip] addsd xmm0, xmm1 call floor@PLT cvttsd2si eax, xmm0 .L5: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .section .rodata .align 8 .LC1: .long 0 .long 1071644672 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 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" .option pic .text .align 1 .globl func0 .type func0, @function func0: addi sp,sp,-48 sd ra,40(sp) sd s0,32(sp) addi s0,sp,48 sd a0,-40(s0) ld a0,-40(s0) call atof@plt fsd fa0,-24(s0) fld fa5,-24(s0) fmv.d.x fa4,zero flt.d a5,fa5,fa4 beqz a5,.L7 fld fa4,-24(s0) lla a5,.LC0 fld fa5,0(a5) fsub.d fa5,fa4,fa5 fmv.d fa0,fa5 call ceil@plt fmv.d fa5,fa0 fcvt.w.d a5,fa5,rtz sext.w a5,a5 j .L4 .L7: fld fa4,-24(s0) lla a5,.LC0 fld fa5,0(a5) fadd.d fa5,fa4,fa5 fmv.d fa0,fa5 call floor@plt fmv.d fa5,fa0 fcvt.w.d a5,fa5,rtz sext.w a5,a5 .L4: mv a0,a5 ld ra,40(sp) ld s0,32(sp) addi sp,sp,48 jr ra .size func0, .-func0 .section .rodata .align 3 .LC0: .word 0 .word 1071644672 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
eval/problem16/code.c
.file "code.c" .intel_syntax noprefix .text .section .rodata .LC0: .string " %d" .LC1: .string "0" .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 DWORD PTR -28[rbp], 2 mov DWORD PTR -24[rbp], 1 jmp .L2 .L3: mov eax, DWORD PTR -24[rbp] mov ecx, eax lea rdx, .LC0[rip] mov esi, 0 mov edi, 0 mov eax, 0 call snprintf@PLT add DWORD PTR -28[rbp], eax add DWORD PTR -24[rbp], 1 .L2: mov eax, DWORD PTR -24[rbp] cmp eax, DWORD PTR -36[rbp] jle .L3 mov eax, DWORD PTR -28[rbp] 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 QWORD PTR -16[rbp], rax mov rax, QWORD PTR -16[rbp] lea rsi, .LC1[rip] mov rdi, rax mov eax, 0 call sprintf@PLT cdqe add QWORD PTR -16[rbp], rax mov DWORD PTR -20[rbp], 1 jmp .L6 .L7: mov edx, DWORD PTR -20[rbp] mov rax, QWORD PTR -16[rbp] lea rsi, .LC0[rip] mov rdi, rax mov eax, 0 call sprintf@PLT cdqe add QWORD PTR -16[rbp], rax add DWORD PTR -20[rbp], 1 .L6: mov eax, DWORD PTR -20[rbp] cmp eax, DWORD PTR -36[rbp] jle .L7 mov rax, QWORD PTR -8[rbp] .L5: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 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" .option pic .text .section .rodata .align 3 .LC0: .string " %d" .align 3 .LC1: .string "0" .text .align 1 .globl func0 .type func0, @function func0: addi sp,sp,-64 sd ra,56(sp) sd s0,48(sp) addi s0,sp,64 mv a5,a0 sw a5,-52(s0) li a5,2 sw a5,-44(s0) li a5,1 sw a5,-40(s0) j .L2 .L3: lw a5,-40(s0) mv a3,a5 lla a2,.LC0 li a1,0 li a0,0 call snprintf@plt mv a5,a0 mv a4,a5 lw a5,-44(s0) addw a5,a5,a4 sw a5,-44(s0) lw a5,-40(s0) addiw a5,a5,1 sw a5,-40(s0) .L2: lw a4,-40(s0) lw a5,-52(s0) sext.w a4,a4 sext.w a5,a5 ble a4,a5,.L3 lw a5,-44(s0) mv a0,a5 call malloc@plt mv a5,a0 sd a5,-24(s0) ld a5,-24(s0) bnez a5,.L4 li a5,0 j .L5 .L4: ld a5,-24(s0) sd a5,-32(s0) lla a1,.LC1 ld a0,-32(s0) call sprintf@plt mv a5,a0 mv a4,a5 ld a5,-32(s0) add a5,a5,a4 sd a5,-32(s0) li a5,1 sw a5,-36(s0) j .L6 .L7: lw a5,-36(s0) mv a2,a5 lla a1,.LC0 ld a0,-32(s0) call sprintf@plt mv a5,a0 mv a4,a5 ld a5,-32(s0) add a5,a5,a4 sd a5,-32(s0) lw a5,-36(s0) addiw a5,a5,1 sw a5,-36(s0) .L6: lw a4,-36(s0) lw a5,-52(s0) sext.w a4,a4 sext.w a5,a5 ble a4,a5,.L7 ld a5,-24(s0) .L5: mv a0,a5 ld ra,56(sp) ld s0,48(sp) addi sp,sp,64 jr ra .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
eval/problem129/code.c
.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 cmp DWORD PTR -28[rbp], 0 jne .L2 mov eax, -32768 jmp .L3 .L2: mov DWORD PTR -12[rbp], 0 mov DWORD PTR -8[rbp], 1 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] cdq xor eax, edx sub eax, edx 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] test eax, eax jne .L5 mov DWORD PTR -8[rbp], 0 .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] test eax, eax jns .L6 neg DWORD PTR -8[rbp] .L6: add DWORD PTR -4[rbp], 1 .L4: mov eax, DWORD PTR -4[rbp] cmp eax, DWORD PTR -28[rbp] jl .L7 mov eax, DWORD PTR -12[rbp] imul eax, DWORD PTR -8[rbp] .L3: pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 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" .option pic .text .align 1 .globl func0 .type func0, @function func0: addi sp,sp,-48 sd s0,40(sp) addi s0,sp,48 sd a0,-40(s0) mv a5,a1 sw a5,-44(s0) lw a5,-44(s0) sext.w a5,a5 bnez a5,.L2 li a5,-32768 j .L3 .L2: sw zero,-28(s0) li a5,1 sw a5,-24(s0) sw zero,-20(s0) j .L4 .L7: lw a5,-20(s0) slli a5,a5,2 ld a4,-40(s0) add a5,a4,a5 lw a4,0(a5) sraiw a5,a4,31 xor a4,a4,a5 subw a5,a4,a5 sext.w a5,a5 lw a4,-28(s0) addw a5,a4,a5 sw a5,-28(s0) lw a5,-20(s0) slli a5,a5,2 ld a4,-40(s0) add a5,a4,a5 lw a5,0(a5) bnez a5,.L5 sw zero,-24(s0) .L5: lw a5,-20(s0) slli a5,a5,2 ld a4,-40(s0) add a5,a4,a5 lw a5,0(a5) bgez a5,.L6 lw a5,-24(s0) negw a5,a5 sw a5,-24(s0) .L6: lw a5,-20(s0) addiw a5,a5,1 sw a5,-20(s0) .L4: lw a4,-20(s0) lw a5,-44(s0) sext.w a4,a4 sext.w a5,a5 blt a4,a5,.L7 lw a4,-28(s0) lw a5,-24(s0) mulw a5,a4,a5 sext.w a5,a5 .L3: mv a0,a5 ld s0,40(sp) addi sp,sp,48 jr ra .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
eval/problem81/code.c
.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 rax, QWORD PTR -40[rbp] mov rdi, rax call strlen@PLT cmp rax, 2 ja .L2 mov eax, 0 jmp .L3 .L2: mov DWORD PTR -20[rbp], 2 jmp .L4 .L7: mov eax, DWORD PTR -20[rbp] movsx rdx, eax mov rax, QWORD PTR -40[rbp] add rax, rdx movzx edx, BYTE PTR [rax] mov eax, DWORD PTR -20[rbp] cdqe lea rcx, -1[rax] mov rax, QWORD PTR -40[rbp] add rax, rcx movzx eax, BYTE PTR [rax] cmp dl, al je .L5 mov eax, DWORD PTR -20[rbp] movsx rdx, eax mov rax, QWORD PTR -40[rbp] add rax, rdx movzx edx, BYTE PTR [rax] mov eax, DWORD PTR -20[rbp] cdqe lea rcx, -2[rax] mov rax, QWORD PTR -40[rbp] add rax, rcx movzx eax, BYTE PTR [rax] cmp dl, al jne .L6 .L5: mov eax, 0 jmp .L3 .L6: add DWORD PTR -20[rbp], 1 .L4: 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 .L7 mov eax, 1 .L3: add rsp, 40 pop rbx pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 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" .option pic .text .align 1 .globl func0 .type func0, @function func0: addi sp,sp,-64 sd ra,56(sp) sd s0,48(sp) sd s1,40(sp) addi s0,sp,64 sd a0,-56(s0) ld a0,-56(s0) call strlen@plt mv a4,a0 li a5,2 bgtu a4,a5,.L2 li a5,0 j .L3 .L2: li a5,2 sw a5,-36(s0) j .L4 .L7: lw a5,-36(s0) ld a4,-56(s0) add a5,a4,a5 lbu a3,0(a5) lw a5,-36(s0) addi a5,a5,-1 ld a4,-56(s0) add a5,a4,a5 lbu a5,0(a5) mv a4,a3 beq a4,a5,.L5 lw a5,-36(s0) ld a4,-56(s0) add a5,a4,a5 lbu a3,0(a5) lw a5,-36(s0) addi a5,a5,-2 ld a4,-56(s0) add a5,a4,a5 lbu a5,0(a5) mv a4,a3 bne a4,a5,.L6 .L5: li a5,0 j .L3 .L6: lw a5,-36(s0) addiw a5,a5,1 sw a5,-36(s0) .L4: lw s1,-36(s0) ld a0,-56(s0) call strlen@plt mv a5,a0 bltu s1,a5,.L7 li a5,1 .L3: mv a0,a5 ld ra,56(sp) ld s0,48(sp) ld s1,40(sp) addi sp,sp,64 jr ra .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
eval/problem8/code.c
.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 QWORD PTR -8[rbp], 0 mov DWORD PTR -16[rbp], 0 mov DWORD PTR -12[rbp], 0 jmp .L2 .L4: 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 rdx, QWORD PTR -40[rbp] mov rsi, rdx mov rdi, rax call strstr@PLT test rax, rax je .L3 mov eax, DWORD PTR -16[rbp] add eax, 1 cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -8[rbp] mov rsi, rdx mov rdi, rax call realloc@PLT mov QWORD PTR -8[rbp], rax mov eax, DWORD PTR -12[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -24[rbp] add rax, rdx mov edx, DWORD PTR -16[rbp] movsx rdx, edx lea rcx, 0[0+rdx*8] mov rdx, QWORD PTR -8[rbp] add rdx, rcx mov rax, QWORD PTR [rax] mov QWORD PTR [rdx], rax add DWORD PTR -16[rbp], 1 .L3: add DWORD PTR -12[rbp], 1 .L2: mov eax, DWORD PTR -12[rbp] cmp eax, DWORD PTR -28[rbp] jl .L4 mov rax, QWORD PTR -48[rbp] mov edx, DWORD PTR -16[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 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 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" .option pic .text .align 1 .globl func0 .type func0, @function func0: addi sp,sp,-64 sd ra,56(sp) sd s0,48(sp) addi s0,sp,64 sd a0,-40(s0) mv a5,a1 sd a2,-56(s0) sd a3,-64(s0) sw a5,-44(s0) sd zero,-24(s0) sw zero,-32(s0) sw zero,-28(s0) j .L2 .L4: lw a5,-28(s0) slli a5,a5,3 ld a4,-40(s0) add a5,a4,a5 ld a5,0(a5) ld a1,-56(s0) mv a0,a5 call strstr@plt mv a5,a0 beqz a5,.L3 lw a5,-32(s0) addiw a5,a5,1 sext.w a5,a5 slli a5,a5,3 mv a1,a5 ld a0,-24(s0) call realloc@plt sd a0,-24(s0) lw a5,-28(s0) slli a5,a5,3 ld a4,-40(s0) add a4,a4,a5 lw a5,-32(s0) slli a5,a5,3 ld a3,-24(s0) add a5,a3,a5 ld a4,0(a4) sd a4,0(a5) lw a5,-32(s0) addiw a5,a5,1 sw a5,-32(s0) .L3: lw a5,-28(s0) addiw a5,a5,1 sw a5,-28(s0) .L2: lw a4,-28(s0) lw a5,-44(s0) sext.w a4,a4 sext.w a5,a5 blt a4,a5,.L4 ld a5,-64(s0) lw a4,-32(s0) sw a4,0(a5) ld a5,-24(s0) mv a0,a5 ld ra,56(sp) ld s0,48(sp) addi sp,sp,64 jr ra .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
eval/problem115/code.c
.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 rax, QWORD PTR -40[rbp] mov rax, QWORD PTR [rax] mov QWORD PTR -16[rbp], rax mov rax, QWORD PTR -40[rbp] mov rax, QWORD PTR [rax] mov QWORD PTR -8[rbp], rax mov DWORD PTR -20[rbp], 1 jmp .L2 .L6: cmp QWORD PTR -16[rbp], 0 jns .L3 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 rax, QWORD PTR -16[rbp] add rax, rdx jmp .L4 .L3: mov eax, DWORD PTR -20[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -40[rbp] add rax, rdx mov rax, QWORD PTR [rax] .L4: mov QWORD PTR -16[rbp], rax mov rax, QWORD PTR -16[rbp] cmp rax, QWORD PTR -8[rbp] jge .L5 mov rax, QWORD PTR -16[rbp] mov QWORD PTR -8[rbp], rax .L5: add DWORD PTR -20[rbp], 1 .L2: mov eax, DWORD PTR -20[rbp] cmp eax, DWORD PTR -44[rbp] jl .L6 mov rax, QWORD PTR -8[rbp] pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 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" .option pic .text .align 1 .globl func0 .type func0, @function func0: addi sp,sp,-64 sd s0,56(sp) addi s0,sp,64 sd a0,-56(s0) mv a5,a1 sw a5,-60(s0) ld a5,-56(s0) ld a5,0(a5) sd a5,-32(s0) ld a5,-56(s0) ld a5,0(a5) sd a5,-24(s0) li a5,1 sw a5,-36(s0) j .L2 .L6: ld a5,-32(s0) bgez a5,.L3 lw a5,-36(s0) slli a5,a5,3 ld a4,-56(s0) add a5,a4,a5 ld a4,0(a5) ld a5,-32(s0) add a5,a4,a5 j .L4 .L3: lw a5,-36(s0) slli a5,a5,3 ld a4,-56(s0) add a5,a4,a5 ld a5,0(a5) .L4: sd a5,-32(s0) ld a4,-32(s0) ld a5,-24(s0) bge a4,a5,.L5 ld a5,-32(s0) sd a5,-24(s0) .L5: lw a5,-36(s0) addiw a5,a5,1 sw a5,-36(s0) .L2: lw a4,-36(s0) lw a5,-60(s0) sext.w a4,a4 sext.w a5,a5 blt a4,a5,.L6 ld a5,-24(s0) mv a0,a5 ld s0,56(sp) addi sp,sp,64 jr ra .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
eval/problem62/code.c
.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 DWORD PTR -24[rbp], 0 mov DWORD PTR -20[rbp], 0 jmp .L2 .L7: 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, 40 jne .L3 add DWORD PTR -24[rbp], 1 .L3: 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, 41 jne .L4 sub DWORD PTR -24[rbp], 1 .L4: cmp DWORD PTR -24[rbp], 0 jns .L5 mov eax, 0 jmp .L6 .L5: 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 .L7 cmp DWORD PTR -24[rbp], 0 sete al .L6: add rsp, 40 pop rbx pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 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" .option pic .text .align 1 .globl func0 .type func0, @function func0: addi sp,sp,-64 sd ra,56(sp) sd s0,48(sp) sd s1,40(sp) addi s0,sp,64 sd a0,-56(s0) sw zero,-40(s0) sw zero,-36(s0) j .L2 .L7: lw a5,-36(s0) ld a4,-56(s0) add a5,a4,a5 lbu a5,0(a5) mv a4,a5 li a5,40 bne a4,a5,.L3 lw a5,-40(s0) addiw a5,a5,1 sw a5,-40(s0) .L3: lw a5,-36(s0) ld a4,-56(s0) add a5,a4,a5 lbu a5,0(a5) mv a4,a5 li a5,41 bne a4,a5,.L4 lw a5,-40(s0) addiw a5,a5,-1 sw a5,-40(s0) .L4: lw a5,-40(s0) sext.w a5,a5 bgez a5,.L5 li a5,0 j .L6 .L5: lw a5,-36(s0) addiw a5,a5,1 sw a5,-36(s0) .L2: lw s1,-36(s0) ld a0,-56(s0) call strlen@plt mv a5,a0 bltu s1,a5,.L7 lw a5,-40(s0) sext.w a5,a5 seqz a5,a5 andi a5,a5,0xff .L6: mv a0,a5 ld ra,56(sp) ld s0,48(sp) ld s1,40(sp) addi sp,sp,64 jr ra .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
eval/problem87/code.c
.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 add rsp, -128 mov QWORD PTR -120[rbp], rdi mov rax, QWORD PTR fs:40 mov QWORD PTR -8[rbp], rax xor eax, eax mov rax, QWORD PTR -120[rbp] mov rdi, rax call strlen@PLT mov DWORD PTR -76[rbp], eax mov eax, DWORD PTR -76[rbp] add eax, 2 cdqe mov rdi, rax call malloc@PLT mov QWORD PTR -72[rbp], rax mov DWORD PTR -100[rbp], 0 mov DWORD PTR -96[rbp], 0 mov DWORD PTR -92[rbp], 0 jmp .L2 .L14: mov eax, DWORD PTR -92[rbp] movsx rdx, eax mov rax, QWORD PTR -120[rbp] add rax, rdx movzx eax, BYTE PTR [rax] cmp al, 32 je .L3 mov eax, DWORD PTR -92[rbp] movsx rdx, eax mov rax, QWORD PTR -120[rbp] add rax, rdx movzx eax, BYTE PTR [rax] test al, al jne .L4 .L3: mov DWORD PTR -88[rbp], 0 jmp .L5 .L9: mov eax, DWORD PTR -88[rbp] add eax, 1 mov DWORD PTR -84[rbp], eax jmp .L6 .L8: mov eax, DWORD PTR -88[rbp] cdqe movzx edx, BYTE PTR -64[rbp+rax] mov eax, DWORD PTR -84[rbp] cdqe movzx eax, BYTE PTR -64[rbp+rax] cmp dl, al jle .L7 mov eax, DWORD PTR -88[rbp] cdqe movzx eax, BYTE PTR -64[rbp+rax] mov BYTE PTR -101[rbp], al mov eax, DWORD PTR -84[rbp] cdqe movzx edx, BYTE PTR -64[rbp+rax] mov eax, DWORD PTR -88[rbp] cdqe mov BYTE PTR -64[rbp+rax], dl mov eax, DWORD PTR -84[rbp] cdqe movzx edx, BYTE PTR -101[rbp] mov BYTE PTR -64[rbp+rax], dl .L7: add DWORD PTR -84[rbp], 1 .L6: mov eax, DWORD PTR -84[rbp] cmp eax, DWORD PTR -96[rbp] jl .L8 add DWORD PTR -88[rbp], 1 .L5: mov eax, DWORD PTR -96[rbp] sub eax, 1 cmp DWORD PTR -88[rbp], eax jl .L9 cmp DWORD PTR -100[rbp], 0 jle .L10 mov eax, DWORD PTR -100[rbp] lea edx, 1[rax] mov DWORD PTR -100[rbp], edx movsx rdx, eax mov rax, QWORD PTR -72[rbp] add rax, rdx mov BYTE PTR [rax], 32 .L10: mov DWORD PTR -80[rbp], 0 jmp .L11 .L12: mov eax, DWORD PTR -100[rbp] lea edx, 1[rax] mov DWORD PTR -100[rbp], edx movsx rdx, eax mov rax, QWORD PTR -72[rbp] add rdx, rax mov eax, DWORD PTR -80[rbp] cdqe movzx eax, BYTE PTR -64[rbp+rax] mov BYTE PTR [rdx], al add DWORD PTR -80[rbp], 1 .L11: mov eax, DWORD PTR -80[rbp] cmp eax, DWORD PTR -96[rbp] jl .L12 mov DWORD PTR -96[rbp], 0 jmp .L13 .L4: mov eax, DWORD PTR -92[rbp] movsx rdx, eax mov rax, QWORD PTR -120[rbp] lea rcx, [rdx+rax] mov eax, DWORD PTR -96[rbp] lea edx, 1[rax] mov DWORD PTR -96[rbp], edx movzx edx, BYTE PTR [rcx] cdqe mov BYTE PTR -64[rbp+rax], dl .L13: add DWORD PTR -92[rbp], 1 .L2: mov eax, DWORD PTR -92[rbp] cmp eax, DWORD PTR -76[rbp] jle .L14 mov eax, DWORD PTR -100[rbp] movsx rdx, eax mov rax, QWORD PTR -72[rbp] add rax, rdx mov BYTE PTR [rax], 0 mov rax, QWORD PTR -72[rbp] mov rsi, QWORD PTR -8[rbp] xor rsi, QWORD PTR fs:40 je .L16 call __stack_chk_fail@PLT .L16: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 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" .option pic .text .align 1 .globl func0 .type func0, @function func0: addi sp,sp,-144 sd ra,136(sp) sd s0,128(sp) addi s0,sp,144 sd a0,-136(s0) la a5,__stack_chk_guard ld a5,0(a5) sd a5,-24(s0) ld a0,-136(s0) call strlen@plt mv a5,a0 sw a5,-92(s0) lw a5,-92(s0) addiw a5,a5,2 sext.w a5,a5 mv a0,a5 call malloc@plt mv a5,a0 sd a5,-88(s0) sw zero,-116(s0) sw zero,-112(s0) sw zero,-108(s0) j .L2 .L14: lw a5,-108(s0) ld a4,-136(s0) add a5,a4,a5 lbu a5,0(a5) mv a4,a5 li a5,32 beq a4,a5,.L3 lw a5,-108(s0) ld a4,-136(s0) add a5,a4,a5 lbu a5,0(a5) bnez a5,.L4 .L3: sw zero,-104(s0) j .L5 .L9: lw a5,-104(s0) addiw a5,a5,1 sw a5,-100(s0) j .L6 .L8: lw a5,-104(s0) addi a4,s0,-16 add a5,a4,a5 lbu a4,-64(a5) lw a5,-100(s0) addi a3,s0,-16 add a5,a3,a5 lbu a5,-64(a5) bleu a4,a5,.L7 lw a5,-104(s0) addi a4,s0,-16 add a5,a4,a5 lbu a5,-64(a5) sb a5,-117(s0) lw a5,-100(s0) addi a4,s0,-16 add a5,a4,a5 lbu a4,-64(a5) lw a5,-104(s0) addi a3,s0,-16 add a5,a3,a5 sb a4,-64(a5) lw a5,-100(s0) addi a4,s0,-16 add a5,a4,a5 lbu a4,-117(s0) sb a4,-64(a5) .L7: lw a5,-100(s0) addiw a5,a5,1 sw a5,-100(s0) .L6: lw a4,-100(s0) lw a5,-112(s0) sext.w a4,a4 sext.w a5,a5 blt a4,a5,.L8 lw a5,-104(s0) addiw a5,a5,1 sw a5,-104(s0) .L5: lw a5,-112(s0) addiw a5,a5,-1 sext.w a4,a5 lw a5,-104(s0) sext.w a5,a5 blt a5,a4,.L9 lw a5,-116(s0) sext.w a5,a5 blez a5,.L10 lw a5,-116(s0) addiw a4,a5,1 sw a4,-116(s0) mv a4,a5 ld a5,-88(s0) add a5,a5,a4 li a4,32 sb a4,0(a5) .L10: sw zero,-96(s0) j .L11 .L12: lw a5,-116(s0) addiw a4,a5,1 sw a4,-116(s0) mv a4,a5 ld a5,-88(s0) add a5,a5,a4 lw a4,-96(s0) addi a3,s0,-16 add a4,a3,a4 lbu a4,-64(a4) sb a4,0(a5) lw a5,-96(s0) addiw a5,a5,1 sw a5,-96(s0) .L11: lw a4,-96(s0) lw a5,-112(s0) sext.w a4,a4 sext.w a5,a5 blt a4,a5,.L12 sw zero,-112(s0) j .L13 .L4: lw a5,-108(s0) ld a4,-136(s0) add a4,a4,a5 lw a5,-112(s0) addiw a3,a5,1 sw a3,-112(s0) lbu a4,0(a4) addi a3,s0,-16 add a5,a3,a5 sb a4,-64(a5) .L13: lw a5,-108(s0) addiw a5,a5,1 sw a5,-108(s0) .L2: lw a4,-108(s0) lw a5,-92(s0) sext.w a4,a4 sext.w a5,a5 ble a4,a5,.L14 lw a5,-116(s0) ld a4,-88(s0) add a5,a4,a5 sb zero,0(a5) ld a5,-88(s0) mv a3,a5 la a5,__stack_chk_guard ld a4,-24(s0) ld a5,0(a5) beq a4,a5,.L16 call __stack_chk_fail@plt .L16: mv a0,a3 ld ra,136(sp) ld s0,128(sp) addi sp,sp,144 jr ra .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
eval/problem159/code.c
.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, 320 mov QWORD PTR -312[rbp], rdi mov DWORD PTR -316[rbp], esi mov rax, QWORD PTR fs:40 mov QWORD PTR -8[rbp], rax xor eax, eax lea rax, .LC0[rip] mov QWORD PTR -280[rbp], rax mov DWORD PTR -300[rbp], 0 mov DWORD PTR -296[rbp], 0 jmp .L2 .L8: mov QWORD PTR -272[rbp], 0 mov QWORD PTR -264[rbp], 0 mov QWORD PTR -256[rbp], 0 mov QWORD PTR -248[rbp], 0 mov QWORD PTR -240[rbp], 0 mov QWORD PTR -232[rbp], 0 mov QWORD PTR -224[rbp], 0 mov QWORD PTR -216[rbp], 0 mov QWORD PTR -208[rbp], 0 mov QWORD PTR -200[rbp], 0 mov QWORD PTR -192[rbp], 0 mov QWORD PTR -184[rbp], 0 mov QWORD PTR -176[rbp], 0 mov QWORD PTR -168[rbp], 0 mov QWORD PTR -160[rbp], 0 mov QWORD PTR -152[rbp], 0 mov QWORD PTR -144[rbp], 0 mov QWORD PTR -136[rbp], 0 mov QWORD PTR -128[rbp], 0 mov QWORD PTR -120[rbp], 0 mov QWORD PTR -112[rbp], 0 mov QWORD PTR -104[rbp], 0 mov QWORD PTR -96[rbp], 0 mov QWORD PTR -88[rbp], 0 mov QWORD PTR -80[rbp], 0 mov QWORD PTR -72[rbp], 0 mov QWORD PTR -64[rbp], 0 mov QWORD PTR -56[rbp], 0 mov QWORD PTR -48[rbp], 0 mov QWORD PTR -40[rbp], 0 mov QWORD PTR -32[rbp], 0 mov QWORD PTR -24[rbp], 0 mov DWORD PTR -292[rbp], 0 mov DWORD PTR -288[rbp], 0 jmp .L3 .L5: mov eax, DWORD PTR -296[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -312[rbp] add rax, rdx mov rdx, QWORD PTR [rax] mov eax, DWORD PTR -288[rbp] cdqe add rax, rdx movzx eax, BYTE PTR [rax] movsx edx, al lea rax, -272[rbp] mov esi, edx mov rdi, rax call strchr@PLT test rax, rax jne .L4 lea rax, -272[rbp] mov rdi, rax call strlen@PLT mov DWORD PTR -284[rbp], eax mov eax, DWORD PTR -296[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -312[rbp] add rax, rdx mov rdx, QWORD PTR [rax] mov eax, DWORD PTR -288[rbp] cdqe add rax, rdx movzx edx, BYTE PTR [rax] mov eax, DWORD PTR -284[rbp] cdqe mov BYTE PTR -272[rbp+rax], dl mov eax, DWORD PTR -284[rbp] add eax, 1 cdqe mov BYTE PTR -272[rbp+rax], 0 add DWORD PTR -292[rbp], 1 .L4: add DWORD PTR -288[rbp], 1 .L3: mov eax, DWORD PTR -296[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -312[rbp] add rax, rdx mov rdx, QWORD PTR [rax] mov eax, DWORD PTR -288[rbp] cdqe add rax, rdx movzx eax, BYTE PTR [rax] test al, al jne .L5 mov eax, DWORD PTR -292[rbp] cmp eax, DWORD PTR -300[rbp] jg .L6 mov eax, DWORD PTR -292[rbp] cmp eax, DWORD PTR -300[rbp] jne .L7 mov eax, DWORD PTR -296[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -312[rbp] add rax, rdx mov rax, QWORD PTR [rax] mov rdx, QWORD PTR -280[rbp] mov rsi, rdx mov rdi, rax call strcmp@PLT test eax, eax jns .L7 .L6: mov eax, DWORD PTR -296[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -312[rbp] add rax, rdx mov rax, QWORD PTR [rax] mov QWORD PTR -280[rbp], rax mov eax, DWORD PTR -292[rbp] mov DWORD PTR -300[rbp], eax .L7: add DWORD PTR -296[rbp], 1 .L2: mov eax, DWORD PTR -296[rbp] cmp eax, DWORD PTR -316[rbp] jl .L8 mov rax, QWORD PTR -280[rbp] mov rcx, QWORD PTR -8[rbp] xor rcx, QWORD PTR fs:40 je .L10 call __stack_chk_fail@PLT .L10: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 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" .option pic .text .section .rodata .align 3 .LC0: .string "" .text .align 1 .globl func0 .type func0, @function func0: addi sp,sp,-336 sd ra,328(sp) sd s0,320(sp) addi s0,sp,336 sd a0,-328(s0) mv a5,a1 sw a5,-332(s0) la a5,__stack_chk_guard ld a5,0(a5) sd a5,-24(s0) lla a5,.LC0 sd a5,-288(s0) sw zero,-308(s0) sw zero,-304(s0) j .L2 .L8: sd zero,-280(s0) addi a5,s0,-272 li a4,248 mv a2,a4 li a1,0 mv a0,a5 call memset@plt sw zero,-300(s0) sw zero,-296(s0) j .L3 .L5: lw a5,-304(s0) slli a5,a5,3 ld a4,-328(s0) add a5,a4,a5 ld a4,0(a5) lw a5,-296(s0) add a5,a4,a5 lbu a5,0(a5) sext.w a4,a5 addi a5,s0,-280 mv a1,a4 mv a0,a5 call strchr@plt mv a5,a0 bnez a5,.L4 addi a5,s0,-280 mv a0,a5 call strlen@plt mv a5,a0 sw a5,-292(s0) lw a5,-304(s0) slli a5,a5,3 ld a4,-328(s0) add a5,a4,a5 ld a4,0(a5) lw a5,-296(s0) add a5,a4,a5 lbu a4,0(a5) lw a5,-292(s0) addi a3,s0,-16 add a5,a3,a5 sb a4,-264(a5) lw a5,-292(s0) addiw a5,a5,1 sext.w a5,a5 addi a4,s0,-16 add a5,a4,a5 sb zero,-264(a5) lw a5,-300(s0) addiw a5,a5,1 sw a5,-300(s0) .L4: lw a5,-296(s0) addiw a5,a5,1 sw a5,-296(s0) .L3: lw a5,-304(s0) slli a5,a5,3 ld a4,-328(s0) add a5,a4,a5 ld a4,0(a5) lw a5,-296(s0) add a5,a4,a5 lbu a5,0(a5) bnez a5,.L5 lw a4,-300(s0) lw a5,-308(s0) sext.w a4,a4 sext.w a5,a5 bgt a4,a5,.L6 lw a4,-300(s0) lw a5,-308(s0) sext.w a4,a4 sext.w a5,a5 bne a4,a5,.L7 lw a5,-304(s0) slli a5,a5,3 ld a4,-328(s0) add a5,a4,a5 ld a5,0(a5) ld a1,-288(s0) mv a0,a5 call strcmp@plt mv a5,a0 bgez a5,.L7 .L6: lw a5,-304(s0) slli a5,a5,3 ld a4,-328(s0) add a5,a4,a5 ld a5,0(a5) sd a5,-288(s0) lw a5,-300(s0) sw a5,-308(s0) .L7: lw a5,-304(s0) addiw a5,a5,1 sw a5,-304(s0) .L2: lw a4,-304(s0) lw a5,-332(s0) sext.w a4,a4 sext.w a5,a5 blt a4,a5,.L8 ld a5,-288(s0) mv a3,a5 la a5,__stack_chk_guard ld a4,-24(s0) ld a5,0(a5) beq a4,a5,.L10 call __stack_chk_fail@plt .L10: mv a0,a3 ld ra,328(sp) ld s0,320(sp) addi sp,sp,336 jr ra .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
eval/problem51/code.c
.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 je .L2 mov eax, 5 jmp .L3 .L2: mov eax, 21 .L3: mov DWORD PTR -24[rbp], eax mov rax, QWORD PTR -40[rbp] mov rdi, rax call strlen@PLT mov QWORD PTR -8[rbp], rax mov QWORD PTR -16[rbp], 0 jmp .L4 .L5: mov rdx, QWORD PTR -40[rbp] mov rax, QWORD PTR -16[rbp] add rax, rdx movzx eax, BYTE PTR [rax] movsx eax, al lea edx, -97[rax] mov eax, DWORD PTR -24[rbp] add edx, eax movsx rax, edx imul rax, rax, 1321528399 shr rax, 32 mov ecx, eax sar ecx, 3 mov eax, edx sar eax, 31 sub ecx, eax mov eax, ecx imul eax, eax, 26 sub edx, eax mov eax, edx add eax, 97 mov DWORD PTR -20[rbp], eax mov rdx, QWORD PTR -40[rbp] mov rax, QWORD PTR -16[rbp] add rax, rdx mov edx, DWORD PTR -20[rbp] mov BYTE PTR [rax], dl add QWORD PTR -16[rbp], 1 .L4: mov rax, QWORD PTR -16[rbp] cmp rax, QWORD PTR -8[rbp] jb .L5 nop nop leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 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" .option pic .text .align 1 .globl func0 .type func0, @function func0: addi sp,sp,-64 sd ra,56(sp) sd s0,48(sp) addi s0,sp,64 sd a0,-56(s0) mv a5,a1 sw a5,-60(s0) lw a5,-60(s0) sext.w a5,a5 beqz a5,.L2 li a5,5 j .L3 .L2: li a5,21 .L3: sw a5,-40(s0) ld a0,-56(s0) call strlen@plt sd a0,-24(s0) sd zero,-32(s0) j .L4 .L5: ld a4,-56(s0) ld a5,-32(s0) add a5,a4,a5 lbu a5,0(a5) sext.w a5,a5 addiw a5,a5,-97 sext.w a5,a5 lw a4,-40(s0) addw a5,a4,a5 sext.w a5,a5 mv a4,a5 li a5,26 remw a5,a4,a5 sext.w a5,a5 addiw a5,a5,97 sw a5,-36(s0) ld a4,-56(s0) ld a5,-32(s0) add a5,a4,a5 lw a4,-36(s0) andi a4,a4,0xff sb a4,0(a5) ld a5,-32(s0) addi a5,a5,1 sd a5,-32(s0) .L4: ld a4,-32(s0) ld a5,-24(s0) bltu a4,a5,.L5 nop nop ld ra,56(sp) ld s0,48(sp) addi sp,sp,64 jr ra .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
eval/problem14/code.c
.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 jmp .L2 .L3: mov eax, DWORD PTR -20[rbp] cdq idiv DWORD PTR -24[rbp] mov DWORD PTR -4[rbp], edx 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: cmp DWORD PTR -24[rbp], 0 jne .L3 mov eax, DWORD PTR -20[rbp] pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 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" .option pic .text .align 1 .globl func0 .type func0, @function func0: addi sp,sp,-48 sd s0,40(sp) addi s0,sp,48 mv a5,a0 mv a4,a1 sw a5,-36(s0) mv a5,a4 sw a5,-40(s0) j .L2 .L3: lw a4,-36(s0) lw a5,-40(s0) remw a5,a4,a5 sw a5,-20(s0) lw a5,-40(s0) sw a5,-36(s0) lw a5,-20(s0) sw a5,-40(s0) .L2: lw a5,-40(s0) sext.w a5,a5 bnez a5,.L3 lw a5,-36(s0) mv a0,a5 ld s0,40(sp) addi sp,sp,48 jr ra .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
eval/problem82/code.c
.file "code.c" .intel_syntax noprefix .text .section .rodata .LC1: .string "A+" .LC3: .string "A" .LC5: .string "A-" .LC7: .string "B+" .LC9: .string "B" .LC11: .string "B-" .LC13: .string "C+" .LC15: .string "C" .LC17: .string "C-" .LC19: .string "D+" .LC21: .string "D" .LC23: .string "D-" .LC24: .string "E" .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 mov eax, DWORD PTR -28[rbp] cdqe sal rax, 3 mov rdi, rax call malloc@PLT mov QWORD PTR -8[rbp], rax mov DWORD PTR -12[rbp], 0 jmp .L2 .L28: 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] cvtss2sd xmm0, xmm0 comisd xmm0, QWORD PTR .LC0[rip] jb .L42 mov eax, DWORD PTR -12[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -8[rbp] add rax, rdx lea rdx, .LC1[rip] mov QWORD PTR [rax], rdx jmp .L5 .L42: 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] cvtss2sd xmm0, xmm0 comisd xmm0, QWORD PTR .LC2[rip] jbe .L43 mov eax, DWORD PTR -12[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -8[rbp] add rax, rdx lea rdx, .LC3[rip] mov QWORD PTR [rax], rdx jmp .L5 .L43: 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] cvtss2sd xmm0, xmm0 comisd xmm0, QWORD PTR .LC4[rip] jbe .L44 mov eax, DWORD PTR -12[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -8[rbp] add rax, rdx lea rdx, .LC5[rip] mov QWORD PTR [rax], rdx jmp .L5 .L44: 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] cvtss2sd xmm0, xmm0 comisd xmm0, QWORD PTR .LC6[rip] jbe .L45 mov eax, DWORD PTR -12[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -8[rbp] add rax, rdx lea rdx, .LC7[rip] mov QWORD PTR [rax], rdx jmp .L5 .L45: 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] cvtss2sd xmm0, xmm0 comisd xmm0, QWORD PTR .LC8[rip] jbe .L46 mov eax, DWORD PTR -12[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -8[rbp] add rax, rdx lea rdx, .LC9[rip] mov QWORD PTR [rax], rdx jmp .L5 .L46: 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] cvtss2sd xmm0, xmm0 comisd xmm0, QWORD PTR .LC10[rip] jbe .L47 mov eax, DWORD PTR -12[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -8[rbp] add rax, rdx lea rdx, .LC11[rip] mov QWORD PTR [rax], rdx jmp .L5 .L47: 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] cvtss2sd xmm0, xmm0 comisd xmm0, QWORD PTR .LC12[rip] jbe .L48 mov eax, DWORD PTR -12[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -8[rbp] add rax, rdx lea rdx, .LC13[rip] mov QWORD PTR [rax], rdx jmp .L5 .L48: 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] cvtss2sd xmm0, xmm0 comisd xmm0, QWORD PTR .LC14[rip] jbe .L49 mov eax, DWORD PTR -12[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -8[rbp] add rax, rdx lea rdx, .LC15[rip] mov QWORD PTR [rax], rdx jmp .L5 .L49: 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] cvtss2sd xmm0, xmm0 comisd xmm0, QWORD PTR .LC16[rip] jbe .L50 mov eax, DWORD PTR -12[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -8[rbp] add rax, rdx lea rdx, .LC17[rip] mov QWORD PTR [rax], rdx jmp .L5 .L50: 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] cvtss2sd xmm0, xmm0 comisd xmm0, QWORD PTR .LC18[rip] jbe .L51 mov eax, DWORD PTR -12[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -8[rbp] add rax, rdx lea rdx, .LC19[rip] mov QWORD PTR [rax], rdx jmp .L5 .L51: 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] cvtss2sd xmm0, xmm0 comisd xmm0, QWORD PTR .LC20[rip] jbe .L52 mov eax, DWORD PTR -12[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -8[rbp] add rax, rdx lea rdx, .LC21[rip] mov QWORD PTR [rax], rdx jmp .L5 .L52: 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] cvtss2sd xmm0, xmm0 comisd xmm0, QWORD PTR .LC22[rip] jbe .L53 mov eax, DWORD PTR -12[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -8[rbp] add rax, rdx lea rdx, .LC23[rip] mov QWORD PTR [rax], rdx jmp .L5 .L53: mov eax, DWORD PTR -12[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -8[rbp] add rax, rdx lea rdx, .LC24[rip] mov QWORD PTR [rax], rdx .L5: add DWORD PTR -12[rbp], 1 .L2: mov eax, DWORD PTR -12[rbp] cmp eax, DWORD PTR -28[rbp] jl .L28 mov rax, QWORD PTR -8[rbp] leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .section .rodata .align 8 .LC0: .long 2453285319 .long 1074790347 .align 8 .LC2: .long 123695058 .long 1074633166 .align 8 .LC4: .long 3559668895 .long 1074423450 .align 8 .LC6: .long 1841681977 .long 1074266164 .align 8 .LC8: .long 123695058 .long 1074108878 .align 8 .LC10: .long 3559668895 .long 1073899162 .align 8 .LC12: .long 1841681977 .long 1073741876 .align 8 .LC14: .long 247390116 .long 1073427356 .align 8 .LC16: .long 2824370494 .long 1073007925 .align 8 .LC18: .long 3683363953 .long 1072693352 .align 8 .LC20: .long 494780232 .long 1072064312 .align 8 .LC22: .long 3944497965 .long 1058682594 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 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" .option pic .text .section .rodata .align 3 .LC1: .string "A+" .align 3 .LC3: .string "A" .align 3 .LC5: .string "A-" .align 3 .LC7: .string "B+" .align 3 .LC9: .string "B" .align 3 .LC11: .string "B-" .align 3 .LC13: .string "C+" .align 3 .LC15: .string "C" .align 3 .LC17: .string "C-" .align 3 .LC19: .string "D+" .align 3 .LC21: .string "D" .align 3 .LC23: .string "D-" .align 3 .LC24: .string "E" .text .align 1 .globl func0 .type func0, @function func0: addi sp,sp,-48 sd ra,40(sp) sd s0,32(sp) addi s0,sp,48 sd a0,-40(s0) mv a5,a1 sw a5,-44(s0) lw a5,-44(s0) slli a5,a5,3 mv a0,a5 call malloc@plt mv a5,a0 sd a5,-24(s0) sw zero,-28(s0) j .L2 .L28: lw a5,-28(s0) slli a5,a5,2 ld a4,-40(s0) add a5,a4,a5 flw fa5,0(a5) fcvt.d.s fa4,fa5 lla a5,.LC0 fld fa5,0(a5) fge.d a5,fa4,fa5 beqz a5,.L42 lw a5,-28(s0) slli a5,a5,3 ld a4,-24(s0) add a5,a4,a5 lla a4,.LC1 sd a4,0(a5) j .L5 .L42: lw a5,-28(s0) slli a5,a5,2 ld a4,-40(s0) add a5,a4,a5 flw fa5,0(a5) fcvt.d.s fa4,fa5 lla a5,.LC2 fld fa5,0(a5) fgt.d a5,fa4,fa5 beqz a5,.L43 lw a5,-28(s0) slli a5,a5,3 ld a4,-24(s0) add a5,a4,a5 lla a4,.LC3 sd a4,0(a5) j .L5 .L43: lw a5,-28(s0) slli a5,a5,2 ld a4,-40(s0) add a5,a4,a5 flw fa5,0(a5) fcvt.d.s fa4,fa5 lla a5,.LC4 fld fa5,0(a5) fgt.d a5,fa4,fa5 beqz a5,.L44 lw a5,-28(s0) slli a5,a5,3 ld a4,-24(s0) add a5,a4,a5 lla a4,.LC5 sd a4,0(a5) j .L5 .L44: lw a5,-28(s0) slli a5,a5,2 ld a4,-40(s0) add a5,a4,a5 flw fa5,0(a5) fcvt.d.s fa4,fa5 lla a5,.LC6 fld fa5,0(a5) fgt.d a5,fa4,fa5 beqz a5,.L45 lw a5,-28(s0) slli a5,a5,3 ld a4,-24(s0) add a5,a4,a5 lla a4,.LC7 sd a4,0(a5) j .L5 .L45: lw a5,-28(s0) slli a5,a5,2 ld a4,-40(s0) add a5,a4,a5 flw fa5,0(a5) fcvt.d.s fa4,fa5 lla a5,.LC8 fld fa5,0(a5) fgt.d a5,fa4,fa5 beqz a5,.L46 lw a5,-28(s0) slli a5,a5,3 ld a4,-24(s0) add a5,a4,a5 lla a4,.LC9 sd a4,0(a5) j .L5 .L46: lw a5,-28(s0) slli a5,a5,2 ld a4,-40(s0) add a5,a4,a5 flw fa5,0(a5) fcvt.d.s fa4,fa5 lla a5,.LC10 fld fa5,0(a5) fgt.d a5,fa4,fa5 beqz a5,.L47 lw a5,-28(s0) slli a5,a5,3 ld a4,-24(s0) add a5,a4,a5 lla a4,.LC11 sd a4,0(a5) j .L5 .L47: lw a5,-28(s0) slli a5,a5,2 ld a4,-40(s0) add a5,a4,a5 flw fa5,0(a5) fcvt.d.s fa4,fa5 lla a5,.LC12 fld fa5,0(a5) fgt.d a5,fa4,fa5 beqz a5,.L48 lw a5,-28(s0) slli a5,a5,3 ld a4,-24(s0) add a5,a4,a5 lla a4,.LC13 sd a4,0(a5) j .L5 .L48: lw a5,-28(s0) slli a5,a5,2 ld a4,-40(s0) add a5,a4,a5 flw fa5,0(a5) fcvt.d.s fa4,fa5 lla a5,.LC14 fld fa5,0(a5) fgt.d a5,fa4,fa5 beqz a5,.L49 lw a5,-28(s0) slli a5,a5,3 ld a4,-24(s0) add a5,a4,a5 lla a4,.LC15 sd a4,0(a5) j .L5 .L49: lw a5,-28(s0) slli a5,a5,2 ld a4,-40(s0) add a5,a4,a5 flw fa5,0(a5) fcvt.d.s fa4,fa5 lla a5,.LC16 fld fa5,0(a5) fgt.d a5,fa4,fa5 beqz a5,.L50 lw a5,-28(s0) slli a5,a5,3 ld a4,-24(s0) add a5,a4,a5 lla a4,.LC17 sd a4,0(a5) j .L5 .L50: lw a5,-28(s0) slli a5,a5,2 ld a4,-40(s0) add a5,a4,a5 flw fa5,0(a5) fcvt.d.s fa4,fa5 lla a5,.LC18 fld fa5,0(a5) fgt.d a5,fa4,fa5 beqz a5,.L51 lw a5,-28(s0) slli a5,a5,3 ld a4,-24(s0) add a5,a4,a5 lla a4,.LC19 sd a4,0(a5) j .L5 .L51: lw a5,-28(s0) slli a5,a5,2 ld a4,-40(s0) add a5,a4,a5 flw fa5,0(a5) fcvt.d.s fa4,fa5 lla a5,.LC20 fld fa5,0(a5) fgt.d a5,fa4,fa5 beqz a5,.L52 lw a5,-28(s0) slli a5,a5,3 ld a4,-24(s0) add a5,a4,a5 lla a4,.LC21 sd a4,0(a5) j .L5 .L52: lw a5,-28(s0) slli a5,a5,2 ld a4,-40(s0) add a5,a4,a5 flw fa5,0(a5) fcvt.d.s fa4,fa5 lla a5,.LC22 fld fa5,0(a5) fgt.d a5,fa4,fa5 beqz a5,.L53 lw a5,-28(s0) slli a5,a5,3 ld a4,-24(s0) add a5,a4,a5 lla a4,.LC23 sd a4,0(a5) j .L5 .L53: lw a5,-28(s0) slli a5,a5,3 ld a4,-24(s0) add a5,a4,a5 lla a4,.LC24 sd a4,0(a5) .L5: lw a5,-28(s0) addiw a5,a5,1 sw a5,-28(s0) .L2: lw a4,-28(s0) lw a5,-44(s0) sext.w a4,a4 sext.w a5,a5 blt a4,a5,.L28 ld a5,-24(s0) mv a0,a5 ld ra,40(sp) ld s0,32(sp) addi sp,sp,48 jr ra .size func0, .-func0 .section .rodata .align 3 .LC0: .word 2453285319 .word 1074790347 .align 3 .LC2: .word 123695058 .word 1074633166 .align 3 .LC4: .word 3559668895 .word 1074423450 .align 3 .LC6: .word 1841681977 .word 1074266164 .align 3 .LC8: .word 123695058 .word 1074108878 .align 3 .LC10: .word 3559668895 .word 1073899162 .align 3 .LC12: .word 1841681977 .word 1073741876 .align 3 .LC14: .word 247390116 .word 1073427356 .align 3 .LC16: .word 2824370494 .word 1073007925 .align 3 .LC18: .word 3683363953 .word 1072693352 .align 3 .LC20: .word 494780232 .word 1072064312 .align 3 .LC22: .word 3944497965 .word 1058682594 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
eval/problem98/code.c
.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 -4[rbp], edi mov DWORD PTR -8[rbp], esi mov eax, DWORD PTR -4[rbp] sar eax, 31 mov edx, eax xor edx, DWORD PTR -4[rbp] sub edx, eax movsx rax, edx imul rax, rax, 1717986919 shr rax, 32 mov ecx, eax sar ecx, 2 mov eax, edx sar eax, 31 mov esi, ecx sub esi, eax mov eax, esi sal eax, 2 add eax, esi add eax, eax mov esi, edx sub esi, eax mov eax, DWORD PTR -8[rbp] sar eax, 31 mov edx, eax xor edx, DWORD PTR -8[rbp] sub edx, eax movsx rax, edx imul rax, rax, 1717986919 shr rax, 32 mov ecx, eax sar ecx, 2 mov eax, edx sar eax, 31 sub ecx, eax mov eax, ecx sal eax, 2 add eax, ecx add eax, eax mov ecx, edx sub ecx, eax mov eax, esi imul eax, ecx pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 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" .option pic .text .align 1 .globl func0 .type func0, @function func0: addi sp,sp,-32 sd s0,24(sp) addi s0,sp,32 mv a5,a0 mv a4,a1 sw a5,-20(s0) mv a5,a4 sw a5,-24(s0) lw a5,-20(s0) sraiw a5,a5,31 lw a4,-20(s0) xor a4,a5,a4 subw a5,a4,a5 sext.w a5,a5 mv a4,a5 li a5,10 remw a5,a4,a5 sext.w a4,a5 lw a5,-24(s0) sraiw a5,a5,31 lw a3,-24(s0) xor a3,a5,a3 subw a5,a3,a5 sext.w a5,a5 mv a3,a5 li a5,10 remw a5,a3,a5 sext.w a5,a5 mulw a5,a4,a5 sext.w a5,a5 mv a0,a5 ld s0,24(sp) addi sp,sp,32 jr ra .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
eval/problem78/code.c
.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 DWORD PTR -4[rbp], 0 jmp .L2 .L5: mov eax, DWORD PTR -4[rbp] imul eax, eax imul eax, DWORD PTR -4[rbp] mov ecx, eax mov eax, DWORD PTR -20[rbp] cdq mov eax, edx xor eax, DWORD PTR -20[rbp] sub eax, edx cmp ecx, eax jne .L3 mov eax, 1 jmp .L4 .L3: add DWORD PTR -4[rbp], 1 .L2: mov eax, DWORD PTR -4[rbp] imul eax, eax imul eax, DWORD PTR -4[rbp] mov ecx, eax mov eax, DWORD PTR -20[rbp] cdq mov eax, edx xor eax, DWORD PTR -20[rbp] sub eax, edx cmp ecx, eax jle .L5 mov eax, 0 .L4: pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 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" .option pic .text .align 1 .globl func0 .type func0, @function func0: addi sp,sp,-48 sd s0,40(sp) addi s0,sp,48 mv a5,a0 sw a5,-36(s0) sw zero,-20(s0) j .L2 .L5: lw a5,-20(s0) mulw a5,a5,a5 sext.w a5,a5 lw a4,-20(s0) mulw a5,a4,a5 sext.w a3,a5 lw a5,-36(s0) sraiw a5,a5,31 lw a4,-36(s0) xor a4,a5,a4 subw a5,a4,a5 sext.w a5,a5 mv a4,a3 bne a4,a5,.L3 li a5,1 j .L4 .L3: lw a5,-20(s0) addiw a5,a5,1 sw a5,-20(s0) .L2: lw a5,-20(s0) mulw a5,a5,a5 sext.w a5,a5 lw a4,-20(s0) mulw a5,a4,a5 sext.w a3,a5 lw a5,-36(s0) sraiw a5,a5,31 lw a4,-36(s0) xor a4,a5,a4 subw a5,a4,a5 sext.w a5,a5 mv a4,a3 ble a4,a5,.L5 li a5,0 .L4: mv a0,a5 ld s0,40(sp) addi sp,sp,48 jr ra .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
eval/problem39/code.c
.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 -44[rbp], esi mov rax, QWORD PTR fs:40 mov QWORD PTR -8[rbp], rax xor eax, eax mov rax, QWORD PTR -40[rbp] mov rdi, rax call strlen@PLT mov DWORD PTR -24[rbp], eax mov eax, DWORD PTR -24[rbp] add eax, 2 movsx rdx, eax imul rdx, rdx, 1431655766 shr rdx, 32 sar eax, 31 mov ecx, edx sub ecx, eax mov eax, ecx mov DWORD PTR -20[rbp], eax mov DWORD PTR -28[rbp], 0 jmp .L2 .L7: mov eax, DWORD PTR -28[rbp] lea edx, 1[rax] mov eax, edx add eax, eax add eax, edx cmp DWORD PTR -24[rbp], eax jge .L3 mov eax, DWORD PTR -28[rbp] mov edx, eax sal eax, 2 sub edx, eax mov eax, DWORD PTR -24[rbp] add eax, edx jmp .L4 .L3: mov eax, 3 .L4: mov DWORD PTR -16[rbp], eax mov eax, DWORD PTR -16[rbp] movsx rcx, eax mov edx, DWORD PTR -28[rbp] mov eax, edx add eax, eax add eax, edx movsx rdx, eax mov rax, QWORD PTR -40[rbp] lea rsi, [rdx+rax] lea rax, -12[rbp] mov rdx, rcx mov rdi, rax call strncpy@PLT mov eax, DWORD PTR -16[rbp] cdqe mov BYTE PTR -12[rbp+rax], 0 cmp DWORD PTR -16[rbp], 3 jne .L5 cmp DWORD PTR -44[rbp], 0 je .L6 movzx eax, BYTE PTR -10[rbp] mov BYTE PTR -29[rbp], al movzx eax, BYTE PTR -11[rbp] mov BYTE PTR -10[rbp], al movzx eax, BYTE PTR -12[rbp] mov BYTE PTR -11[rbp], al movzx eax, BYTE PTR -29[rbp] mov BYTE PTR -12[rbp], al jmp .L5 .L6: movzx eax, BYTE PTR -12[rbp] mov BYTE PTR -30[rbp], al movzx eax, BYTE PTR -11[rbp] mov BYTE PTR -12[rbp], al movzx eax, BYTE PTR -10[rbp] mov BYTE PTR -11[rbp], al movzx eax, BYTE PTR -30[rbp] mov BYTE PTR -10[rbp], al .L5: mov eax, DWORD PTR -16[rbp] movsx rcx, eax mov edx, DWORD PTR -28[rbp] mov eax, edx add eax, eax add eax, edx movsx rdx, eax mov rax, QWORD PTR -40[rbp] lea rdi, [rdx+rax] lea rax, -12[rbp] mov rdx, rcx mov rsi, rax call strncpy@PLT add DWORD PTR -28[rbp], 1 .L2: mov eax, DWORD PTR -28[rbp] cmp eax, DWORD PTR -20[rbp] jl .L7 nop mov rax, QWORD PTR -8[rbp] xor rax, QWORD PTR fs:40 je .L8 call __stack_chk_fail@PLT .L8: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 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" .option pic .text .align 1 .globl func0 .type func0, @function func0: addi sp,sp,-80 sd ra,72(sp) sd s0,64(sp) addi s0,sp,80 sd a0,-72(s0) mv a5,a1 sw a5,-76(s0) la a5,__stack_chk_guard ld a5,0(a5) sd a5,-24(s0) ld a0,-72(s0) call strlen@plt mv a5,a0 sw a5,-44(s0) lw a5,-44(s0) addiw a5,a5,2 sext.w a5,a5 mv a4,a5 li a5,3 divw a5,a4,a5 sw a5,-40(s0) sw zero,-48(s0) j .L2 .L7: lw a5,-48(s0) addiw a5,a5,1 sext.w a5,a5 mv a4,a5 mv a5,a4 slliw a5,a5,1 addw a5,a5,a4 sext.w a4,a5 lw a5,-44(s0) sext.w a5,a5 bge a5,a4,.L3 lw a4,-48(s0) mv a5,a4 slliw a4,a4,2 subw a5,a5,a4 sext.w a5,a5 lw a4,-44(s0) addw a5,a4,a5 sext.w a5,a5 j .L4 .L3: li a5,3 .L4: sw a5,-36(s0) lw a4,-48(s0) mv a5,a4 slliw a5,a5,1 addw a5,a5,a4 sext.w a5,a5 mv a4,a5 ld a5,-72(s0) add a4,a5,a4 lw a3,-36(s0) addi a5,s0,-32 mv a2,a3 mv a1,a4 mv a0,a5 call strncpy@plt lw a5,-36(s0) addi a4,s0,-16 add a5,a4,a5 sb zero,-16(a5) lw a5,-36(s0) sext.w a4,a5 li a5,3 bne a4,a5,.L5 lw a5,-76(s0) sext.w a5,a5 beqz a5,.L6 lbu a5,-30(s0) sb a5,-49(s0) lbu a5,-31(s0) sb a5,-30(s0) lbu a5,-32(s0) sb a5,-31(s0) lbu a5,-49(s0) sb a5,-32(s0) j .L5 .L6: lbu a5,-32(s0) sb a5,-50(s0) lbu a5,-31(s0) sb a5,-32(s0) lbu a5,-30(s0) sb a5,-31(s0) lbu a5,-50(s0) sb a5,-30(s0) .L5: lw a4,-48(s0) mv a5,a4 slliw a5,a5,1 addw a5,a5,a4 sext.w a5,a5 mv a4,a5 ld a5,-72(s0) add a5,a5,a4 lw a3,-36(s0) addi a4,s0,-32 mv a2,a3 mv a1,a4 mv a0,a5 call strncpy@plt lw a5,-48(s0) addiw a5,a5,1 sw a5,-48(s0) .L2: lw a4,-48(s0) lw a5,-40(s0) sext.w a4,a4 sext.w a5,a5 blt a4,a5,.L7 nop la a5,__stack_chk_guard ld a4,-24(s0) ld a5,0(a5) beq a4,a5,.L8 call __stack_chk_fail@plt .L8: ld ra,72(sp) ld s0,64(sp) addi sp,sp,80 jr ra .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
eval/problem140/code.c
.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 QWORD PTR -16[rbp], 1 mov QWORD PTR -8[rbp], 1 mov DWORD PTR -20[rbp], 1 jmp .L2 .L3: mov eax, DWORD PTR -20[rbp] cdqe mov rdx, QWORD PTR -16[rbp] imul rax, rdx mov QWORD PTR -16[rbp], rax mov rax, QWORD PTR -8[rbp] imul rax, QWORD PTR -16[rbp] mov QWORD PTR -8[rbp], rax add DWORD PTR -20[rbp], 1 .L2: mov eax, DWORD PTR -20[rbp] cmp eax, DWORD PTR -36[rbp] jle .L3 mov rax, QWORD PTR -8[rbp] pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 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" .option pic .text .align 1 .globl func0 .type func0, @function func0: addi sp,sp,-64 sd s0,56(sp) addi s0,sp,64 mv a5,a0 sw a5,-52(s0) li a5,1 sd a5,-32(s0) li a5,1 sd a5,-24(s0) li a5,1 sw a5,-36(s0) j .L2 .L3: lw a5,-36(s0) ld a4,-32(s0) mul a5,a4,a5 sd a5,-32(s0) ld a4,-24(s0) ld a5,-32(s0) mul a5,a4,a5 sd a5,-24(s0) lw a5,-36(s0) addiw a5,a5,1 sw a5,-36(s0) .L2: lw a4,-36(s0) lw a5,-52(s0) sext.w a4,a4 sext.w a5,a5 ble a4,a5,.L3 ld a5,-24(s0) mv a0,a5 ld s0,56(sp) addi sp,sp,64 jr ra .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
eval/problem33/code.c
.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 -56[rbp], rdi mov DWORD PTR -60[rbp], esi pxor xmm0, xmm0 movsd QWORD PTR -32[rbp], xmm0 mov rax, QWORD PTR -56[rbp] movsd xmm0, QWORD PTR [rax] movsd QWORD PTR -24[rbp], xmm0 mov DWORD PTR -48[rbp], 1 jmp .L2 .L5: movsd xmm0, QWORD PTR .LC1[rip] movsd QWORD PTR -8[rbp], xmm0 mov DWORD PTR -44[rbp], 0 jmp .L3 .L4: movsd xmm0, QWORD PTR -8[rbp] mulsd xmm0, QWORD PTR -32[rbp] movsd QWORD PTR -8[rbp], xmm0 add DWORD PTR -44[rbp], 1 .L3: mov eax, DWORD PTR -44[rbp] cmp eax, DWORD PTR -48[rbp] jl .L4 mov eax, DWORD PTR -48[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -56[rbp] add rax, rdx movsd xmm0, QWORD PTR [rax] mulsd xmm0, QWORD PTR -8[rbp] movsd xmm1, QWORD PTR -24[rbp] addsd xmm0, xmm1 movsd QWORD PTR -24[rbp], xmm0 add DWORD PTR -48[rbp], 1 .L2: mov eax, DWORD PTR -48[rbp] cmp eax, DWORD PTR -60[rbp] jl .L5 jmp .L6 .L15: pxor xmm0, xmm0 movsd QWORD PTR -16[rbp], xmm0 mov DWORD PTR -48[rbp], 1 jmp .L7 .L10: movsd xmm0, QWORD PTR .LC1[rip] movsd QWORD PTR -8[rbp], xmm0 mov DWORD PTR -40[rbp], 1 jmp .L8 .L9: movsd xmm0, QWORD PTR -8[rbp] mulsd xmm0, QWORD PTR -32[rbp] movsd QWORD PTR -8[rbp], xmm0 add DWORD PTR -40[rbp], 1 .L8: mov eax, DWORD PTR -40[rbp] cmp eax, DWORD PTR -48[rbp] jl .L9 cvtsi2sd xmm1, DWORD PTR -48[rbp] mov eax, DWORD PTR -48[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -56[rbp] add rax, rdx movsd xmm0, QWORD PTR [rax] mulsd xmm0, xmm1 mulsd xmm0, QWORD PTR -8[rbp] movsd xmm1, QWORD PTR -16[rbp] addsd xmm0, xmm1 movsd QWORD PTR -16[rbp], xmm0 add DWORD PTR -48[rbp], 1 .L7: mov eax, DWORD PTR -48[rbp] cmp eax, DWORD PTR -60[rbp] jl .L10 movsd xmm0, QWORD PTR -24[rbp] movapd xmm1, xmm0 divsd xmm1, QWORD PTR -16[rbp] movsd xmm0, QWORD PTR -32[rbp] subsd xmm0, xmm1 movsd QWORD PTR -32[rbp], xmm0 mov rax, QWORD PTR -56[rbp] movsd xmm0, QWORD PTR [rax] movsd QWORD PTR -24[rbp], xmm0 mov DWORD PTR -48[rbp], 1 jmp .L11 .L14: movsd xmm0, QWORD PTR .LC1[rip] movsd QWORD PTR -8[rbp], xmm0 mov DWORD PTR -36[rbp], 0 jmp .L12 .L13: movsd xmm0, QWORD PTR -8[rbp] mulsd xmm0, QWORD PTR -32[rbp] movsd QWORD PTR -8[rbp], xmm0 add DWORD PTR -36[rbp], 1 .L12: mov eax, DWORD PTR -36[rbp] cmp eax, DWORD PTR -48[rbp] jl .L13 mov eax, DWORD PTR -48[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -56[rbp] add rax, rdx movsd xmm0, QWORD PTR [rax] mulsd xmm0, QWORD PTR -8[rbp] movsd xmm1, QWORD PTR -24[rbp] addsd xmm0, xmm1 movsd QWORD PTR -24[rbp], xmm0 add DWORD PTR -48[rbp], 1 .L11: mov eax, DWORD PTR -48[rbp] cmp eax, DWORD PTR -60[rbp] jl .L14 .L6: movsd xmm0, QWORD PTR -24[rbp] movq xmm1, QWORD PTR .LC2[rip] andpd xmm0, xmm1 comisd xmm0, QWORD PTR .LC3[rip] ja .L15 movsd xmm0, QWORD PTR -32[rbp] pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .section .rodata .align 8 .LC1: .long 0 .long 1072693248 .align 16 .LC2: .long 4294967295 .long 2147483647 .long 0 .long 0 .align 8 .LC3: .long 2696277389 .long 1051772663 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 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" .option pic .text .align 1 .globl func0 .type func0, @function func0: addi sp,sp,-80 sd s0,72(sp) addi s0,sp,80 sd a0,-72(s0) mv a5,a1 sw a5,-76(s0) sd zero,-48(s0) ld a5,-72(s0) fld fa5,0(a5) fsd fa5,-40(s0) li a5,1 sw a5,-64(s0) j .L2 .L5: lla a5,.LC0 fld fa5,0(a5) fsd fa5,-24(s0) sw zero,-60(s0) j .L3 .L4: fld fa4,-24(s0) fld fa5,-48(s0) fmul.d fa5,fa4,fa5 fsd fa5,-24(s0) lw a5,-60(s0) addiw a5,a5,1 sw a5,-60(s0) .L3: lw a4,-60(s0) lw a5,-64(s0) sext.w a4,a4 sext.w a5,a5 blt a4,a5,.L4 lw a5,-64(s0) slli a5,a5,3 ld a4,-72(s0) add a5,a4,a5 fld fa4,0(a5) fld fa5,-24(s0) fmul.d fa5,fa4,fa5 fld fa4,-40(s0) fadd.d fa5,fa4,fa5 fsd fa5,-40(s0) lw a5,-64(s0) addiw a5,a5,1 sw a5,-64(s0) .L2: lw a4,-64(s0) lw a5,-76(s0) sext.w a4,a4 sext.w a5,a5 blt a4,a5,.L5 j .L6 .L15: sd zero,-32(s0) li a5,1 sw a5,-64(s0) j .L7 .L10: lla a5,.LC0 fld fa5,0(a5) fsd fa5,-24(s0) li a5,1 sw a5,-56(s0) j .L8 .L9: fld fa4,-24(s0) fld fa5,-48(s0) fmul.d fa5,fa4,fa5 fsd fa5,-24(s0) lw a5,-56(s0) addiw a5,a5,1 sw a5,-56(s0) .L8: lw a4,-56(s0) lw a5,-64(s0) sext.w a4,a4 sext.w a5,a5 blt a4,a5,.L9 lw a5,-64(s0) fcvt.d.w fa4,a5 lw a5,-64(s0) slli a5,a5,3 ld a4,-72(s0) add a5,a4,a5 fld fa5,0(a5) fmul.d fa4,fa4,fa5 fld fa5,-24(s0) fmul.d fa5,fa4,fa5 fld fa4,-32(s0) fadd.d fa5,fa4,fa5 fsd fa5,-32(s0) lw a5,-64(s0) addiw a5,a5,1 sw a5,-64(s0) .L7: lw a4,-64(s0) lw a5,-76(s0) sext.w a4,a4 sext.w a5,a5 blt a4,a5,.L10 fld fa4,-40(s0) fld fa5,-32(s0) fdiv.d fa5,fa4,fa5 fld fa4,-48(s0) fsub.d fa5,fa4,fa5 fsd fa5,-48(s0) ld a5,-72(s0) fld fa5,0(a5) fsd fa5,-40(s0) li a5,1 sw a5,-64(s0) j .L11 .L14: lla a5,.LC0 fld fa5,0(a5) fsd fa5,-24(s0) sw zero,-52(s0) j .L12 .L13: fld fa4,-24(s0) fld fa5,-48(s0) fmul.d fa5,fa4,fa5 fsd fa5,-24(s0) lw a5,-52(s0) addiw a5,a5,1 sw a5,-52(s0) .L12: lw a4,-52(s0) lw a5,-64(s0) sext.w a4,a4 sext.w a5,a5 blt a4,a5,.L13 lw a5,-64(s0) slli a5,a5,3 ld a4,-72(s0) add a5,a4,a5 fld fa4,0(a5) fld fa5,-24(s0) fmul.d fa5,fa4,fa5 fld fa4,-40(s0) fadd.d fa5,fa4,fa5 fsd fa5,-40(s0) lw a5,-64(s0) addiw a5,a5,1 sw a5,-64(s0) .L11: lw a4,-64(s0) lw a5,-76(s0) sext.w a4,a4 sext.w a5,a5 blt a4,a5,.L14 .L6: fld fa5,-40(s0) fabs.d fa4,fa5 lla a5,.LC1 fld fa5,0(a5) fgt.d a5,fa4,fa5 bnez a5,.L15 fld fa5,-48(s0) fmv.d fa0,fa5 ld s0,72(sp) addi sp,sp,80 jr ra .size func0, .-func0 .section .rodata .align 3 .LC0: .word 0 .word 1072693248 .align 3 .LC1: .word 2696277389 .word 1051772663 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
eval/problem58/code.c
.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 eax, DWORD PTR -8[rbp] mov DWORD PTR -12[rbp], eax mov DWORD PTR -4[rbp], 1 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 movss xmm0, DWORD PTR [rax] mov eax, DWORD PTR -4[rbp] cdqe sal rax, 2 lea rdx, -4[rax] mov rax, QWORD PTR -24[rbp] add rax, rdx movss xmm1, DWORD PTR [rax] comiss xmm0, xmm1 jbe .L3 mov DWORD PTR -12[rbp], 1 .L3: mov eax, DWORD PTR -4[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rax, rdx movss xmm1, DWORD PTR [rax] mov eax, DWORD PTR -4[rbp] cdqe sal rax, 2 lea rdx, -4[rax] mov rax, QWORD PTR -24[rbp] add rax, rdx movss xmm0, DWORD PTR [rax] comiss xmm0, xmm1 jbe .L5 mov DWORD PTR -8[rbp], 1 .L5: add DWORD PTR -4[rbp], 1 .L2: mov eax, DWORD PTR -4[rbp] cmp eax, DWORD PTR -28[rbp] jl .L7 mov edx, DWORD PTR -12[rbp] mov eax, DWORD PTR -8[rbp] add eax, edx cmp eax, 2 jne .L8 mov eax, 0 jmp .L9 .L8: mov eax, 1 .L9: pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 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" .option pic .text .align 1 .globl func0 .type func0, @function func0: addi sp,sp,-48 sd s0,40(sp) addi s0,sp,48 sd a0,-40(s0) mv a5,a1 sw a5,-44(s0) sw zero,-24(s0) lw a5,-24(s0) sw a5,-28(s0) li a5,1 sw a5,-20(s0) j .L2 .L7: lw a5,-20(s0) slli a5,a5,2 ld a4,-40(s0) add a5,a4,a5 flw fa4,0(a5) lw a5,-20(s0) slli a5,a5,2 addi a5,a5,-4 ld a4,-40(s0) add a5,a4,a5 flw fa5,0(a5) fgt.s a5,fa4,fa5 beqz a5,.L3 li a5,1 sw a5,-28(s0) .L3: lw a5,-20(s0) slli a5,a5,2 ld a4,-40(s0) add a5,a4,a5 flw fa4,0(a5) lw a5,-20(s0) slli a5,a5,2 addi a5,a5,-4 ld a4,-40(s0) add a5,a4,a5 flw fa5,0(a5) flt.s a5,fa4,fa5 beqz a5,.L5 li a5,1 sw a5,-24(s0) .L5: lw a5,-20(s0) addiw a5,a5,1 sw a5,-20(s0) .L2: lw a4,-20(s0) lw a5,-44(s0) sext.w a4,a4 sext.w a5,a5 blt a4,a5,.L7 lw a4,-28(s0) lw a5,-24(s0) addw a5,a4,a5 sext.w a5,a5 mv a4,a5 li a5,2 bne a4,a5,.L8 li a5,0 j .L9 .L8: li a5,1 .L9: mv a0,a5 ld s0,40(sp) addi sp,sp,48 jr ra .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
eval/problem23/code.c
.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 fs:40 mov QWORD PTR -8[rbp], rax xor eax, eax mov DWORD PTR -32[rbp], 0 mov rax, QWORD PTR -40[rbp] mov QWORD PTR -16[rbp], rax jmp .L2 .L5: add QWORD PTR -16[rbp], 1 .L3: mov rax, QWORD PTR -16[rbp] movzx eax, BYTE PTR [rax] test al, al je .L4 call __ctype_b_loc@PLT mov rdx, QWORD PTR [rax] mov rax, QWORD PTR -16[rbp] 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 jne .L4 mov rax, QWORD PTR -16[rbp] movzx eax, BYTE PTR [rax] cmp al, 45 jne .L5 .L4: mov rax, QWORD PTR -16[rbp] movzx eax, BYTE PTR [rax] test al, al je .L16 lea rcx, -24[rbp] mov rax, QWORD PTR -16[rbp] mov edx, 10 mov rsi, rcx mov rdi, rax call strtol@PLT mov DWORD PTR -28[rbp], eax mov rax, QWORD PTR -24[rbp] cmp QWORD PTR -16[rbp], rax je .L11 mov rax, QWORD PTR -24[rbp] movzx eax, BYTE PTR [rax] cmp al, 44 je .L9 mov rax, QWORD PTR -24[rbp] movzx eax, BYTE PTR [rax] test al, al jne .L11 .L9: mov eax, DWORD PTR -32[rbp] lea edx, 1[rax] mov DWORD PTR -32[rbp], edx cdqe lea rcx, 0[0+rax*4] lea rdx, out.3117[rip] mov eax, DWORD PTR -28[rbp] mov DWORD PTR [rcx+rdx], eax jmp .L10 .L12: mov rax, QWORD PTR -24[rbp] add rax, 1 mov QWORD PTR -24[rbp], rax .L11: mov rax, QWORD PTR -24[rbp] movzx eax, BYTE PTR [rax] test al, al je .L10 mov rax, QWORD PTR -24[rbp] movzx eax, BYTE PTR [rax] cmp al, 44 jne .L12 .L10: mov rax, QWORD PTR -24[rbp] mov QWORD PTR -16[rbp], rax .L2: mov rax, QWORD PTR -16[rbp] movzx eax, BYTE PTR [rax] test al, al jne .L3 jmp .L7 .L16: nop .L7: mov rax, QWORD PTR -48[rbp] mov edx, DWORD PTR -32[rbp] mov DWORD PTR [rax], edx lea rax, out.3117[rip] mov rsi, QWORD PTR -8[rbp] xor rsi, QWORD PTR fs:40 je .L15 call __stack_chk_fail@PLT .L15: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .local out.3117 .comm out.3117,1024,32 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 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" .option pic .text .align 1 .globl func0 .type func0, @function func0: addi sp,sp,-64 sd ra,56(sp) sd s0,48(sp) addi s0,sp,64 sd a0,-56(s0) sd a1,-64(s0) la a5,__stack_chk_guard ld a5,0(a5) sd a5,-24(s0) sw zero,-48(s0) ld a5,-56(s0) sd a5,-32(s0) j .L2 .L5: ld a5,-32(s0) addi a5,a5,1 sd a5,-32(s0) .L3: ld a5,-32(s0) lbu a5,0(a5) beqz a5,.L4 call __ctype_b_loc@plt mv a5,a0 ld a4,0(a5) ld a5,-32(s0) lbu a5,0(a5) slli a5,a5,1 add a5,a4,a5 lhu a5,0(a5) sext.w a4,a5 li a5,4096 addi a5,a5,-2048 and a5,a4,a5 sext.w a5,a5 bnez a5,.L4 ld a5,-32(s0) lbu a5,0(a5) mv a4,a5 li a5,45 bne a4,a5,.L5 .L4: ld a5,-32(s0) lbu a5,0(a5) beqz a5,.L16 addi a5,s0,-40 li a2,10 mv a1,a5 ld a0,-32(s0) call strtol@plt mv a5,a0 sw a5,-44(s0) ld a5,-40(s0) ld a4,-32(s0) beq a4,a5,.L11 ld a5,-40(s0) lbu a5,0(a5) mv a4,a5 li a5,44 beq a4,a5,.L9 ld a5,-40(s0) lbu a5,0(a5) bnez a5,.L11 .L9: lw a5,-48(s0) addiw a4,a5,1 sw a4,-48(s0) lla a4,out.2703 slli a5,a5,2 add a5,a4,a5 lw a4,-44(s0) sw a4,0(a5) j .L10 .L12: ld a5,-40(s0) addi a5,a5,1 sd a5,-40(s0) .L11: ld a5,-40(s0) lbu a5,0(a5) beqz a5,.L10 ld a5,-40(s0) lbu a5,0(a5) mv a4,a5 li a5,44 bne a4,a5,.L12 .L10: ld a5,-40(s0) sd a5,-32(s0) .L2: ld a5,-32(s0) lbu a5,0(a5) bnez a5,.L3 j .L7 .L16: nop .L7: ld a5,-64(s0) lw a4,-48(s0) sw a4,0(a5) lla a5,out.2703 mv a3,a5 la a5,__stack_chk_guard ld a4,-24(s0) ld a5,0(a5) beq a4,a5,.L15 call __stack_chk_fail@plt .L15: mv a0,a3 ld ra,56(sp) ld s0,48(sp) addi sp,sp,64 jr ra .size func0, .-func0 .local out.2703 .comm out.2703,1024,8 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
eval/problem139/code.c
.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] and eax, 1 test eax, eax jne .L2 cmp DWORD PTR -4[rbp], 7 jle .L2 mov eax, 1 jmp .L3 .L2: mov eax, 0 .L3: pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 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" .option pic .text .align 1 .globl func0 .type func0, @function func0: addi sp,sp,-32 sd s0,24(sp) addi s0,sp,32 mv a5,a0 sw a5,-20(s0) lw a5,-20(s0) andi a5,a5,1 sext.w a5,a5 bnez a5,.L2 lw a5,-20(s0) sext.w a4,a5 li a5,7 ble a4,a5,.L2 li a5,1 j .L3 .L2: li a5,0 .L3: mv a0,a5 ld s0,24(sp) addi sp,sp,32 jr ra .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
eval/problem53/code.c
.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 -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] cmp DWORD PTR -32[rbp], eax jg .L3 mov eax, 0 jmp .L4 .L3: add DWORD PTR -4[rbp], 1 .L2: mov eax, DWORD PTR -4[rbp] cmp eax, DWORD PTR -28[rbp] jl .L5 mov eax, 1 .L4: pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 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" .option pic .text .align 1 .globl func0 .type func0, @function func0: addi sp,sp,-48 sd s0,40(sp) addi s0,sp,48 sd a0,-40(s0) mv a5,a1 mv a4,a2 sw a5,-44(s0) mv a5,a4 sw a5,-48(s0) sw zero,-20(s0) j .L2 .L5: lw a5,-20(s0) slli a5,a5,2 ld a4,-40(s0) add a5,a4,a5 lw a4,0(a5) lw a5,-48(s0) sext.w a5,a5 bgt a5,a4,.L3 li a5,0 j .L4 .L3: lw a5,-20(s0) addiw a5,a5,1 sw a5,-20(s0) .L2: lw a4,-20(s0) lw a5,-44(s0) sext.w a4,a4 sext.w a5,a5 blt a4,a5,.L5 li a5,1 .L4: mv a0,a5 ld s0,40(sp) addi sp,sp,48 jr ra .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
eval/problem63/code.c
.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 -4[rbp], 1 jmp .L2 .L3: cvtsi2ss xmm1, DWORD PTR -4[rbp] 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] mov eax, DWORD PTR -4[rbp] cdqe sal rax, 2 lea rdx, -4[rax] mov rax, QWORD PTR -40[rbp] add rax, rdx mulss xmm0, xmm1 movss DWORD PTR [rax], xmm0 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 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 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" .option pic .text .align 1 .globl func0 .type func0, @function func0: addi sp,sp,-64 sd s0,56(sp) addi s0,sp,64 sd a0,-40(s0) mv a5,a1 sd a2,-56(s0) sw a5,-44(s0) li a5,1 sw a5,-20(s0) j .L2 .L3: lw a5,-20(s0) fcvt.s.w fa4,a5 lw a5,-20(s0) slli a5,a5,2 ld a4,-40(s0) add a5,a4,a5 flw fa5,0(a5) lw a5,-20(s0) slli a5,a5,2 addi a5,a5,-4 ld a4,-56(s0) add a5,a4,a5 fmul.s fa5,fa4,fa5 fsw fa5,0(a5) lw a5,-20(s0) addiw a5,a5,1 sw a5,-20(s0) .L2: lw a4,-20(s0) lw a5,-44(s0) sext.w a4,a4 sext.w a5,a5 blt a4,a5,.L3 nop nop ld s0,56(sp) addi sp,sp,64 jr ra .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
eval/problem22/code.c
.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 rax, QWORD PTR -24[rbp] movss xmm0, DWORD PTR [rax] movss DWORD PTR -16[rbp], xmm0 mov rax, QWORD PTR -24[rbp] movss xmm0, DWORD PTR [rax] movss DWORD PTR -12[rbp], xmm0 mov DWORD PTR -8[rbp], 1 jmp .L2 .L7: mov eax, DWORD PTR -8[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rax, rdx movss xmm1, DWORD PTR [rax] movss xmm0, DWORD PTR -16[rbp] comiss xmm0, xmm1 jbe .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 DWORD PTR -16[rbp], xmm0 .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] comiss xmm0, DWORD PTR -12[rbp] jbe .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] movss DWORD PTR -12[rbp], xmm0 .L5: add DWORD PTR -8[rbp], 1 .L2: mov eax, DWORD PTR -8[rbp] cmp eax, DWORD PTR -28[rbp] jl .L7 mov DWORD PTR -4[rbp], 0 jmp .L8 .L9: 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] subss xmm0, DWORD PTR -16[rbp] movss xmm1, DWORD PTR -12[rbp] subss xmm1, DWORD PTR -16[rbp] mov eax, DWORD PTR -4[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rax, rdx divss xmm0, xmm1 movss DWORD PTR [rax], xmm0 add DWORD PTR -4[rbp], 1 .L8: mov eax, DWORD PTR -4[rbp] cmp eax, DWORD PTR -28[rbp] jl .L9 nop nop pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 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" .option pic .text .align 1 .globl func0 .type func0, @function func0: addi sp,sp,-48 sd s0,40(sp) addi s0,sp,48 sd a0,-40(s0) mv a5,a1 sw a5,-44(s0) ld a5,-40(s0) flw fa5,0(a5) fsw fa5,-32(s0) ld a5,-40(s0) flw fa5,0(a5) fsw fa5,-28(s0) li a5,1 sw a5,-24(s0) j .L2 .L7: lw a5,-24(s0) slli a5,a5,2 ld a4,-40(s0) add a5,a4,a5 flw fa5,0(a5) flw fa4,-32(s0) fgt.s a5,fa4,fa5 beqz a5,.L3 lw a5,-24(s0) slli a5,a5,2 ld a4,-40(s0) add a5,a4,a5 flw fa5,0(a5) fsw fa5,-32(s0) .L3: lw a5,-24(s0) slli a5,a5,2 ld a4,-40(s0) add a5,a4,a5 flw fa5,0(a5) flw fa4,-28(s0) flt.s a5,fa4,fa5 beqz a5,.L5 lw a5,-24(s0) slli a5,a5,2 ld a4,-40(s0) add a5,a4,a5 flw fa5,0(a5) fsw fa5,-28(s0) .L5: lw a5,-24(s0) addiw a5,a5,1 sw a5,-24(s0) .L2: lw a4,-24(s0) lw a5,-44(s0) sext.w a4,a4 sext.w a5,a5 blt a4,a5,.L7 sw zero,-20(s0) j .L8 .L9: lw a5,-20(s0) slli a5,a5,2 ld a4,-40(s0) add a5,a4,a5 flw fa4,0(a5) flw fa5,-32(s0) fsub.s fa4,fa4,fa5 flw fa3,-28(s0) flw fa5,-32(s0) fsub.s fa5,fa3,fa5 lw a5,-20(s0) slli a5,a5,2 ld a4,-40(s0) add a5,a4,a5 fdiv.s fa5,fa4,fa5 fsw fa5,0(a5) lw a5,-20(s0) addiw a5,a5,1 sw a5,-20(s0) .L8: lw a4,-20(s0) lw a5,-44(s0) sext.w a4,a4 sext.w a5,a5 blt a4,a5,.L9 nop nop ld s0,40(sp) addi sp,sp,48 jr ra .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
eval/problem48/code.c
.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 -12[rbp], 0 jmp .L2 .L7: mov eax, DWORD PTR -12[rbp] add eax, 1 mov DWORD PTR -8[rbp], eax jmp .L3 .L6: 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] mov eax, DWORD PTR -8[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rax, rdx movss xmm1, DWORD PTR [rax] comiss xmm0, xmm1 jbe .L4 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] movss DWORD PTR -4[rbp], xmm0 mov eax, DWORD PTR -8[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rdx, rax mov eax, DWORD PTR -12[rbp] cdqe lea rcx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rax, rcx movss xmm0, DWORD PTR [rdx] movss DWORD PTR [rax], xmm0 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 -4[rbp] movss DWORD PTR [rax], xmm0 .L4: add DWORD PTR -8[rbp], 1 .L3: mov eax, DWORD PTR -8[rbp] cmp eax, DWORD PTR -28[rbp] jl .L6 add DWORD PTR -12[rbp], 1 .L2: mov eax, DWORD PTR -12[rbp] cmp eax, DWORD PTR -28[rbp] jl .L7 mov eax, DWORD PTR -28[rbp] cdq shr edx, 31 add eax, edx and eax, 1 sub eax, edx cmp eax, 1 jne .L8 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 movss xmm0, DWORD PTR [rax] jmp .L9 .L8: 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 movss xmm1, DWORD PTR [rax] mov eax, DWORD PTR -28[rbp] mov edx, eax shr edx, 31 add eax, edx sar eax cdqe sal rax, 2 lea rdx, -4[rax] mov rax, QWORD PTR -24[rbp] add rax, rdx movss xmm0, DWORD PTR [rax] addss xmm1, xmm0 movss xmm0, DWORD PTR .LC0[rip] mulss xmm0, xmm1 .L9: pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .section .rodata .align 4 .LC0: .long 1056964608 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 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" .option pic .text .align 1 .globl func0 .type func0, @function func0: addi sp,sp,-48 sd s0,40(sp) addi s0,sp,48 sd a0,-40(s0) mv a5,a1 sw a5,-44(s0) sw zero,-28(s0) j .L2 .L7: lw a5,-28(s0) addiw a5,a5,1 sw a5,-24(s0) j .L3 .L6: lw a5,-28(s0) slli a5,a5,2 ld a4,-40(s0) add a5,a4,a5 flw fa4,0(a5) lw a5,-24(s0) slli a5,a5,2 ld a4,-40(s0) add a5,a4,a5 flw fa5,0(a5) fgt.s a5,fa4,fa5 beqz a5,.L4 lw a5,-28(s0) slli a5,a5,2 ld a4,-40(s0) add a5,a4,a5 flw fa5,0(a5) fsw fa5,-20(s0) lw a5,-24(s0) slli a5,a5,2 ld a4,-40(s0) add a4,a4,a5 lw a5,-28(s0) slli a5,a5,2 ld a3,-40(s0) add a5,a3,a5 flw fa5,0(a4) fsw fa5,0(a5) lw a5,-24(s0) slli a5,a5,2 ld a4,-40(s0) add a5,a4,a5 flw fa5,-20(s0) fsw fa5,0(a5) .L4: lw a5,-24(s0) addiw a5,a5,1 sw a5,-24(s0) .L3: lw a4,-24(s0) lw a5,-44(s0) sext.w a4,a4 sext.w a5,a5 blt a4,a5,.L6 lw a5,-28(s0) addiw a5,a5,1 sw a5,-28(s0) .L2: lw a4,-28(s0) lw a5,-44(s0) sext.w a4,a4 sext.w a5,a5 blt a4,a5,.L7 lw a4,-44(s0) sraiw a5,a4,31 srliw a5,a5,31 addw a4,a4,a5 andi a4,a4,1 subw a5,a4,a5 sext.w a5,a5 mv a4,a5 li a5,1 bne a4,a5,.L8 lw a5,-44(s0) srliw a4,a5,31 addw a5,a4,a5 sraiw a5,a5,1 sext.w a5,a5 slli a5,a5,2 ld a4,-40(s0) add a5,a4,a5 flw fa5,0(a5) j .L9 .L8: lw a5,-44(s0) srliw a4,a5,31 addw a5,a4,a5 sraiw a5,a5,1 sext.w a5,a5 slli a5,a5,2 ld a4,-40(s0) add a5,a4,a5 flw fa4,0(a5) lw a5,-44(s0) srliw a4,a5,31 addw a5,a4,a5 sraiw a5,a5,1 sext.w a5,a5 slli a5,a5,2 addi a5,a5,-4 ld a4,-40(s0) add a5,a4,a5 flw fa5,0(a5) fadd.s fa4,fa4,fa5 lla a5,.LC0 flw fa5,0(a5) fmul.s fa5,fa4,fa5 .L9: fmv.s fa0,fa5 ld s0,40(sp) addi sp,sp,48 jr ra .size func0, .-func0 .section .rodata .align 2 .LC0: .word 1056964608 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
eval/problem85/code.c
.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, 64 mov DWORD PTR -52[rbp], edi mov rax, QWORD PTR fs:40 mov QWORD PTR -8[rbp], rax xor eax, eax mov edx, DWORD PTR -52[rbp] lea rax, -14[rbp] lea rsi, .LC0[rip] mov rdi, rax mov eax, 0 call sprintf@PLT mov DWORD PTR -40[rbp], 0 mov DWORD PTR -36[rbp], 0 jmp .L2 .L3: mov eax, DWORD PTR -36[rbp] cdqe movzx eax, BYTE PTR -14[rbp+rax] movsx eax, al sub eax, 48 add DWORD PTR -40[rbp], eax add DWORD PTR -36[rbp], 1 .L2: mov eax, DWORD PTR -36[rbp] cdqe movzx eax, BYTE PTR -14[rbp+rax] test al, al jne .L3 mov edi, 33 call malloc@PLT mov QWORD PTR -24[rbp], rax mov DWORD PTR -32[rbp], 0 cmp DWORD PTR -40[rbp], 0 jne .L6 mov eax, DWORD PTR -32[rbp] lea edx, 1[rax] mov DWORD PTR -32[rbp], edx movsx rdx, eax mov rax, QWORD PTR -24[rbp] add rax, rdx mov BYTE PTR [rax], 48 jmp .L5 .L7: mov eax, DWORD PTR -40[rbp] cdq shr edx, 31 add eax, edx and eax, 1 sub eax, edx lea ecx, 48[rax] mov eax, DWORD PTR -32[rbp] lea edx, 1[rax] mov DWORD PTR -32[rbp], edx movsx rdx, eax mov rax, QWORD PTR -24[rbp] add rax, rdx mov edx, ecx mov BYTE PTR [rax], dl mov eax, DWORD PTR -40[rbp] mov edx, eax shr edx, 31 add eax, edx sar eax mov DWORD PTR -40[rbp], eax .L6: cmp DWORD PTR -40[rbp], 0 jg .L7 .L5: mov eax, DWORD PTR -32[rbp] movsx rdx, eax mov rax, QWORD PTR -24[rbp] add rax, rdx mov BYTE PTR [rax], 0 mov DWORD PTR -28[rbp], 0 jmp .L8 .L9: mov eax, DWORD PTR -28[rbp] movsx rdx, eax mov rax, QWORD PTR -24[rbp] add rax, rdx movzx eax, BYTE PTR [rax] mov BYTE PTR -41[rbp], al mov eax, DWORD PTR -32[rbp] sub eax, DWORD PTR -28[rbp] cdqe lea rdx, -1[rax] mov rax, QWORD PTR -24[rbp] add rax, rdx mov edx, DWORD PTR -28[rbp] movsx rcx, edx mov rdx, QWORD PTR -24[rbp] add rdx, rcx movzx eax, BYTE PTR [rax] mov BYTE PTR [rdx], al mov eax, DWORD PTR -32[rbp] sub eax, DWORD PTR -28[rbp] cdqe lea rdx, -1[rax] mov rax, QWORD PTR -24[rbp] add rdx, rax movzx eax, BYTE PTR -41[rbp] mov BYTE PTR [rdx], al add DWORD PTR -28[rbp], 1 .L8: mov eax, DWORD PTR -32[rbp] mov edx, eax shr edx, 31 add eax, edx sar eax cmp DWORD PTR -28[rbp], eax jl .L9 mov rax, QWORD PTR -24[rbp] mov rsi, QWORD PTR -8[rbp] xor rsi, QWORD PTR fs:40 je .L11 call __stack_chk_fail@PLT .L11: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 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" .option pic .text .section .rodata .align 3 .LC0: .string "%d" .text .align 1 .globl func0 .type func0, @function func0: addi sp,sp,-80 sd ra,72(sp) sd s0,64(sp) addi s0,sp,80 mv a5,a0 sw a5,-68(s0) la a5,__stack_chk_guard ld a5,0(a5) sd a5,-24(s0) lw a4,-68(s0) addi a5,s0,-32 mv a2,a4 lla a1,.LC0 mv a0,a5 call sprintf@plt sw zero,-56(s0) sw zero,-52(s0) j .L2 .L3: lw a5,-52(s0) addi a4,s0,-16 add a5,a4,a5 lbu a5,-16(a5) sext.w a5,a5 addiw a5,a5,-48 sext.w a5,a5 lw a4,-56(s0) addw a5,a4,a5 sw a5,-56(s0) lw a5,-52(s0) addiw a5,a5,1 sw a5,-52(s0) .L2: lw a5,-52(s0) addi a4,s0,-16 add a5,a4,a5 lbu a5,-16(a5) bnez a5,.L3 li a0,33 call malloc@plt mv a5,a0 sd a5,-40(s0) sw zero,-48(s0) lw a5,-56(s0) sext.w a5,a5 bnez a5,.L6 lw a5,-48(s0) addiw a4,a5,1 sw a4,-48(s0) mv a4,a5 ld a5,-40(s0) add a5,a5,a4 li a4,48 sb a4,0(a5) j .L5 .L7: lw a4,-56(s0) sraiw a5,a4,31 srliw a5,a5,31 addw a4,a4,a5 andi a4,a4,1 subw a5,a4,a5 sext.w a5,a5 andi a4,a5,0xff lw a5,-48(s0) addiw a3,a5,1 sw a3,-48(s0) mv a3,a5 ld a5,-40(s0) add a5,a5,a3 addiw a4,a4,48 andi a4,a4,0xff sb a4,0(a5) lw a5,-56(s0) srliw a4,a5,31 addw a5,a4,a5 sraiw a5,a5,1 sw a5,-56(s0) .L6: lw a5,-56(s0) sext.w a5,a5 bgtz a5,.L7 .L5: lw a5,-48(s0) ld a4,-40(s0) add a5,a4,a5 sb zero,0(a5) sw zero,-44(s0) j .L8 .L9: lw a5,-44(s0) ld a4,-40(s0) add a5,a4,a5 lbu a5,0(a5) sb a5,-57(s0) lw a4,-48(s0) lw a5,-44(s0) subw a5,a4,a5 sext.w a5,a5 addi a5,a5,-1 ld a4,-40(s0) add a4,a4,a5 lw a5,-44(s0) ld a3,-40(s0) add a5,a3,a5 lbu a4,0(a4) sb a4,0(a5) lw a4,-48(s0) lw a5,-44(s0) subw a5,a4,a5 sext.w a5,a5 addi a5,a5,-1 ld a4,-40(s0) add a5,a4,a5 lbu a4,-57(s0) sb a4,0(a5) lw a5,-44(s0) addiw a5,a5,1 sw a5,-44(s0) .L8: lw a5,-48(s0) srliw a4,a5,31 addw a5,a4,a5 sraiw a5,a5,1 sext.w a4,a5 lw a5,-44(s0) sext.w a5,a5 blt a5,a4,.L9 ld a5,-40(s0) mv a3,a5 la a5,__stack_chk_guard ld a4,-24(s0) ld a5,0(a5) beq a4,a5,.L11 call __stack_chk_fail@plt .L11: mv a0,a3 ld ra,72(sp) ld s0,64(sp) addi sp,sp,80 jr ra .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
eval/problem84/code.c
.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 cmp DWORD PTR -20[rbp], 0 jg .L2 mov eax, 0 jmp .L3 .L2: cmp DWORD PTR -20[rbp], 1 jne .L4 mov eax, 1 jmp .L3 .L4: mov DWORD PTR -8[rbp], 18 mov DWORD PTR -4[rbp], 2 jmp .L5 .L6: mov edx, DWORD PTR -8[rbp] mov eax, edx sal eax, 2 add eax, edx add eax, eax mov DWORD PTR -8[rbp], eax add DWORD PTR -4[rbp], 1 .L5: mov eax, DWORD PTR -4[rbp] cmp eax, DWORD PTR -20[rbp] jl .L6 mov eax, DWORD PTR -8[rbp] .L3: pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 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" .option pic .text .align 1 .globl func0 .type func0, @function func0: addi sp,sp,-48 sd s0,40(sp) addi s0,sp,48 mv a5,a0 sw a5,-36(s0) lw a5,-36(s0) sext.w a5,a5 bgtz a5,.L2 li a5,0 j .L3 .L2: lw a5,-36(s0) sext.w a4,a5 li a5,1 bne a4,a5,.L4 li a5,1 j .L3 .L4: li a5,18 sw a5,-24(s0) li a5,2 sw a5,-20(s0) j .L5 .L6: lw a4,-24(s0) mv a5,a4 slliw a5,a5,2 addw a5,a5,a4 slliw a5,a5,1 sw a5,-24(s0) lw a5,-20(s0) addiw a5,a5,1 sw a5,-20(s0) .L5: lw a4,-20(s0) lw a5,-36(s0) sext.w a4,a4 sext.w a5,a5 blt a4,a5,.L6 lw a5,-24(s0) .L3: mv a0,a5 ld s0,40(sp) addi sp,sp,48 jr ra .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
eval/problem65/code.c
.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 -8[rbp], rax mov DWORD PTR -20[rbp], 0 mov rax, QWORD PTR -40[rbp] mov rdi, rax call strlen@PLT mov DWORD PTR -12[rbp], eax mov DWORD PTR -16[rbp], 0 jmp .L2 .L4: mov eax, DWORD PTR -16[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 -8[rbp] mov esi, edx mov rdi, rax call strchr@PLT test rax, rax je .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 -12[rbp] jl .L4 cmp DWORD PTR -12[rbp], 0 jle .L5 mov eax, DWORD PTR -12[rbp] cdqe lea rdx, -1[rax] mov rax, QWORD PTR -40[rbp] add rax, rdx movzx eax, BYTE PTR [rax] cmp al, 121 je .L6 mov eax, DWORD PTR -12[rbp] cdqe lea rdx, -1[rax] mov rax, QWORD PTR -40[rbp] add rax, rdx movzx eax, BYTE PTR [rax] cmp al, 89 jne .L5 .L6: add DWORD PTR -20[rbp], 1 .L5: mov eax, DWORD PTR -20[rbp] leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 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" .option pic .text .section .rodata .align 3 .LC0: .string "aeiouAEIOU" .text .align 1 .globl func0 .type func0, @function func0: addi sp,sp,-64 sd ra,56(sp) sd s0,48(sp) addi s0,sp,64 sd a0,-56(s0) lla a5,.LC0 sd a5,-24(s0) sw zero,-36(s0) ld a0,-56(s0) call strlen@plt mv a5,a0 sw a5,-28(s0) sw zero,-32(s0) j .L2 .L4: lw a5,-32(s0) ld a4,-56(s0) add a5,a4,a5 lbu a5,0(a5) sext.w a5,a5 mv a1,a5 ld a0,-24(s0) call strchr@plt mv a5,a0 beqz a5,.L3 lw a5,-36(s0) addiw a5,a5,1 sw a5,-36(s0) .L3: lw a5,-32(s0) addiw a5,a5,1 sw a5,-32(s0) .L2: lw a4,-32(s0) lw a5,-28(s0) sext.w a4,a4 sext.w a5,a5 blt a4,a5,.L4 lw a5,-28(s0) sext.w a5,a5 blez a5,.L5 lw a5,-28(s0) addi a5,a5,-1 ld a4,-56(s0) add a5,a4,a5 lbu a5,0(a5) mv a4,a5 li a5,121 beq a4,a5,.L6 lw a5,-28(s0) addi a5,a5,-1 ld a4,-56(s0) add a5,a4,a5 lbu a5,0(a5) mv a4,a5 li a5,89 bne a4,a5,.L5 .L6: lw a5,-36(s0) addiw a5,a5,1 sw a5,-36(s0) .L5: lw a5,-36(s0) mv a0,a5 ld ra,56(sp) ld s0,48(sp) addi sp,sp,64 jr ra .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
eval/problem37/code.c
.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], 0 mov DWORD PTR -8[rbp], 0 jmp .L2 .L8: mov ecx, DWORD PTR -8[rbp] movsx rax, ecx imul rax, rax, 780903145 shr rax, 32 mov edx, eax sar edx mov eax, ecx sar eax, 31 sub edx, eax mov eax, edx sal eax, 2 add eax, edx add eax, eax add eax, edx sub ecx, eax mov edx, ecx test edx, edx je .L3 mov ecx, DWORD PTR -8[rbp] movsx rax, ecx imul rax, rax, 1321528399 shr rax, 32 mov edx, eax sar edx, 2 mov eax, ecx sar eax, 31 sub edx, eax mov eax, edx add eax, eax add eax, edx sal eax, 2 add eax, edx sub ecx, eax mov edx, ecx test edx, edx jne .L4 .L3: mov eax, DWORD PTR -8[rbp] mov DWORD PTR -4[rbp], eax jmp .L5 .L7: mov ecx, DWORD PTR -4[rbp] movsx rax, ecx imul rax, rax, 1717986919 shr rax, 32 mov edx, eax sar edx, 2 mov eax, ecx sar eax, 31 sub edx, eax mov eax, edx sal eax, 2 add eax, edx add eax, eax sub ecx, eax mov edx, ecx cmp edx, 7 jne .L6 add DWORD PTR -12[rbp], 1 .L6: mov eax, DWORD PTR -4[rbp] movsx rdx, eax imul rdx, rdx, 1717986919 shr rdx, 32 sar edx, 2 sar eax, 31 sub edx, eax mov eax, edx mov DWORD PTR -4[rbp], eax .L5: cmp DWORD PTR -4[rbp], 0 jg .L7 .L4: add DWORD PTR -8[rbp], 1 .L2: mov eax, DWORD PTR -8[rbp] cmp eax, DWORD PTR -20[rbp] jl .L8 mov eax, DWORD PTR -12[rbp] pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 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" .option pic .text .align 1 .globl func0 .type func0, @function func0: addi sp,sp,-48 sd s0,40(sp) addi s0,sp,48 mv a5,a0 sw a5,-36(s0) sw zero,-28(s0) sw zero,-24(s0) j .L2 .L8: lw a4,-24(s0) li a5,11 remw a5,a4,a5 sext.w a5,a5 beqz a5,.L3 lw a4,-24(s0) li a5,13 remw a5,a4,a5 sext.w a5,a5 bnez a5,.L4 .L3: lw a5,-24(s0) sw a5,-20(s0) j .L5 .L7: lw a4,-20(s0) li a5,10 remw a5,a4,a5 sext.w a5,a5 mv a4,a5 li a5,7 bne a4,a5,.L6 lw a5,-28(s0) addiw a5,a5,1 sw a5,-28(s0) .L6: lw a4,-20(s0) li a5,10 divw a5,a4,a5 sw a5,-20(s0) .L5: lw a5,-20(s0) sext.w a5,a5 bgtz a5,.L7 .L4: lw a5,-24(s0) addiw a5,a5,1 sw a5,-24(s0) .L2: lw a4,-24(s0) lw a5,-36(s0) sext.w a4,a4 sext.w a5,a5 blt a4,a5,.L8 lw a5,-28(s0) mv a0,a5 ld s0,40(sp) addi sp,sp,48 jr ra .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
eval/problem42/code.c
.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] imul eax, eax pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 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" .option pic .text .align 1 .globl func0 .type func0, @function func0: addi sp,sp,-32 sd s0,24(sp) addi s0,sp,32 mv a5,a0 sw a5,-20(s0) lw a5,-20(s0) mulw a5,a5,a5 sext.w a5,a5 mv a0,a5 ld s0,24(sp) addi sp,sp,32 jr ra .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
eval/problem28/code.c
.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 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 eax, BYTE PTR [rax] mov BYTE PTR -9[rbp], al cmp BYTE PTR -9[rbp], 96 jle .L3 cmp BYTE PTR -9[rbp], 122 jg .L3 movzx eax, BYTE PTR -9[rbp] sub eax, 32 mov BYTE PTR -9[rbp], al jmp .L4 .L3: cmp BYTE PTR -9[rbp], 64 jle .L4 cmp BYTE PTR -9[rbp], 90 jg .L4 movzx eax, BYTE PTR -9[rbp] add eax, 32 mov BYTE PTR -9[rbp], al .L4: mov eax, DWORD PTR -8[rbp] movsx rdx, eax mov rax, QWORD PTR -32[rbp] add rdx, rax movzx eax, BYTE PTR -9[rbp] mov BYTE PTR [rdx], al add DWORD PTR -8[rbp], 1 .L2: mov eax, DWORD PTR -8[rbp] cmp eax, DWORD PTR -4[rbp] jl .L5 mov eax, DWORD PTR -4[rbp] movsx rdx, eax mov rax, QWORD PTR -32[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 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 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" .option pic .text .align 1 .globl func0 .type func0, @function func0: addi sp,sp,-48 sd ra,40(sp) sd s0,32(sp) addi s0,sp,48 sd a0,-40(s0) sd a1,-48(s0) ld a0,-40(s0) call strlen@plt mv a5,a0 sw a5,-20(s0) sw zero,-24(s0) j .L2 .L5: lw a5,-24(s0) ld a4,-40(s0) add a5,a4,a5 lbu a5,0(a5) sb a5,-25(s0) lbu a5,-25(s0) andi a4,a5,0xff li a5,96 bleu a4,a5,.L3 lbu a5,-25(s0) andi a4,a5,0xff li a5,122 bgtu a4,a5,.L3 lbu a5,-25(s0) addiw a5,a5,-32 sb a5,-25(s0) j .L4 .L3: lbu a5,-25(s0) andi a4,a5,0xff li a5,64 bleu a4,a5,.L4 lbu a5,-25(s0) andi a4,a5,0xff li a5,90 bgtu a4,a5,.L4 lbu a5,-25(s0) addiw a5,a5,32 sb a5,-25(s0) .L4: lw a5,-24(s0) ld a4,-48(s0) add a5,a4,a5 lbu a4,-25(s0) sb a4,0(a5) lw a5,-24(s0) addiw a5,a5,1 sw a5,-24(s0) .L2: lw a4,-24(s0) lw a5,-20(s0) sext.w a4,a4 sext.w a5,a5 blt a4,a5,.L5 lw a5,-20(s0) ld a4,-48(s0) add a5,a4,a5 sb zero,0(a5) nop ld ra,40(sp) ld s0,32(sp) addi sp,sp,48 jr ra .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
eval/problem21/code.c
.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 QWORD PTR -56[rbp], rdx movss xmm0, DWORD PTR .LC0[rip] movss DWORD PTR -20[rbp], xmm0 mov rax, QWORD PTR -40[rbp] movss xmm0, DWORD PTR [rax] mov rax, QWORD PTR -56[rbp] movss DWORD PTR [rax], xmm0 mov rax, QWORD PTR -56[rbp] lea rdx, 4[rax] mov rax, QWORD PTR -40[rbp] movss xmm0, DWORD PTR 4[rax] movss DWORD PTR [rdx], xmm0 mov DWORD PTR -16[rbp], 0 jmp .L2 .L7: mov eax, DWORD PTR -16[rbp] add eax, 1 mov DWORD PTR -12[rbp], eax jmp .L3 .L6: mov eax, DWORD PTR -16[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -40[rbp] add rax, rdx movss xmm0, DWORD PTR [rax] mov eax, DWORD PTR -12[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -40[rbp] add rax, rdx movss xmm1, DWORD PTR [rax] subss xmm0, xmm1 movss xmm1, DWORD PTR .LC1[rip] andps xmm0, xmm1 movss DWORD PTR -4[rbp], xmm0 movss xmm0, DWORD PTR -20[rbp] comiss xmm0, DWORD PTR -4[rbp] jbe .L4 movss xmm0, DWORD PTR -4[rbp] movss DWORD PTR -20[rbp], xmm0 mov eax, DWORD PTR -16[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -40[rbp] add rax, rdx movss xmm0, DWORD PTR [rax] mov rax, QWORD PTR -56[rbp] movss DWORD PTR [rax], xmm0 mov eax, DWORD PTR -12[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -40[rbp] add rdx, rax mov rax, QWORD PTR -56[rbp] add rax, 4 movss xmm0, DWORD PTR [rdx] movss DWORD PTR [rax], xmm0 .L4: add DWORD PTR -12[rbp], 1 .L3: mov eax, DWORD PTR -12[rbp] cmp eax, DWORD PTR -44[rbp] jl .L6 add DWORD PTR -16[rbp], 1 .L2: mov eax, DWORD PTR -16[rbp] cmp eax, DWORD PTR -44[rbp] jl .L7 mov rax, QWORD PTR -56[rbp] movss xmm0, DWORD PTR [rax] mov rax, QWORD PTR -56[rbp] add rax, 4 movss xmm1, DWORD PTR [rax] comiss xmm0, xmm1 ja .L11 jmp .L12 .L11: mov rax, QWORD PTR -56[rbp] movss xmm0, DWORD PTR [rax] movss DWORD PTR -8[rbp], xmm0 mov rax, QWORD PTR -56[rbp] movss xmm0, DWORD PTR 4[rax] mov rax, QWORD PTR -56[rbp] movss DWORD PTR [rax], xmm0 mov rax, QWORD PTR -56[rbp] add rax, 4 movss xmm0, DWORD PTR -8[rbp] movss DWORD PTR [rax], xmm0 .L12: nop pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .section .rodata .align 4 .LC0: .long 2139095039 .align 16 .LC1: .long 2147483647 .long 0 .long 0 .long 0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 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" .option pic .text .align 1 .globl func0 .type func0, @function func0: addi sp,sp,-80 sd s0,72(sp) addi s0,sp,80 sd a0,-56(s0) mv a5,a1 sd a2,-72(s0) sw a5,-60(s0) lla a5,.LC0 flw fa5,0(a5) fsw fa5,-36(s0) ld a5,-56(s0) flw fa5,0(a5) ld a5,-72(s0) fsw fa5,0(a5) ld a5,-72(s0) addi a5,a5,4 ld a4,-56(s0) flw fa5,4(a4) fsw fa5,0(a5) sw zero,-32(s0) j .L2 .L7: lw a5,-32(s0) addiw a5,a5,1 sw a5,-28(s0) j .L3 .L6: lw a5,-32(s0) slli a5,a5,2 ld a4,-56(s0) add a5,a4,a5 flw fa4,0(a5) lw a5,-28(s0) slli a5,a5,2 ld a4,-56(s0) add a5,a4,a5 flw fa5,0(a5) fsub.s fa5,fa4,fa5 fabs.s fa5,fa5 fsw fa5,-20(s0) flw fa4,-20(s0) flw fa5,-36(s0) flt.s a5,fa4,fa5 beqz a5,.L4 flw fa5,-20(s0) fsw fa5,-36(s0) lw a5,-32(s0) slli a5,a5,2 ld a4,-56(s0) add a5,a4,a5 flw fa5,0(a5) ld a5,-72(s0) fsw fa5,0(a5) lw a5,-28(s0) slli a5,a5,2 ld a4,-56(s0) add a4,a4,a5 ld a5,-72(s0) addi a5,a5,4 flw fa5,0(a4) fsw fa5,0(a5) .L4: lw a5,-28(s0) addiw a5,a5,1 sw a5,-28(s0) .L3: lw a4,-28(s0) lw a5,-60(s0) sext.w a4,a4 sext.w a5,a5 blt a4,a5,.L6 lw a5,-32(s0) addiw a5,a5,1 sw a5,-32(s0) .L2: lw a4,-32(s0) lw a5,-60(s0) sext.w a4,a4 sext.w a5,a5 blt a4,a5,.L7 ld a5,-72(s0) flw fa4,0(a5) ld a5,-72(s0) addi a5,a5,4 flw fa5,0(a5) fgt.s a5,fa4,fa5 bnez a5,.L11 j .L12 .L11: ld a5,-72(s0) flw fa5,0(a5) fsw fa5,-24(s0) ld a5,-72(s0) flw fa5,4(a5) ld a5,-72(s0) fsw fa5,0(a5) ld a5,-72(s0) addi a5,a5,4 flw fa5,-24(s0) fsw fa5,0(a5) .L12: nop ld s0,72(sp) addi sp,sp,80 jr ra .size func0, .-func0 .section .rodata .align 2 .LC0: .word 2139095039 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
eval/problem127/code.c
.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], 0 jne .L2 mov eax, 1 jmp .L3 .L2: mov DWORD PTR -4[rbp], 1 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 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 mov eax, 0 jmp .L3 .L5: cmp DWORD PTR -4[rbp], 1 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 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 jne .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, -8[rax] mov rax, QWORD PTR -24[rbp] add rax, rcx mov eax, DWORD PTR [rax] cmp edx, eax jne .L6 mov eax, 0 jmp .L3 .L6: add DWORD PTR -4[rbp], 1 .L4: mov eax, DWORD PTR -4[rbp] cmp eax, DWORD PTR -28[rbp] jl .L7 mov eax, 1 .L3: pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 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" .option pic .text .align 1 .globl func0 .type func0, @function func0: addi sp,sp,-48 sd s0,40(sp) addi s0,sp,48 sd a0,-40(s0) mv a5,a1 sw a5,-44(s0) lw a5,-44(s0) sext.w a5,a5 bnez a5,.L2 li a5,1 j .L3 .L2: li a5,1 sw a5,-20(s0) j .L4 .L7: lw a5,-20(s0) slli a5,a5,2 ld a4,-40(s0) add a5,a4,a5 lw a3,0(a5) lw a5,-20(s0) slli a5,a5,2 addi a5,a5,-4 ld a4,-40(s0) add a5,a4,a5 lw a5,0(a5) mv a4,a3 bge a4,a5,.L5 li a5,0 j .L3 .L5: lw a5,-20(s0) sext.w a4,a5 li a5,1 ble a4,a5,.L6 lw a5,-20(s0) slli a5,a5,2 ld a4,-40(s0) add a5,a4,a5 lw a3,0(a5) lw a5,-20(s0) slli a5,a5,2 addi a5,a5,-4 ld a4,-40(s0) add a5,a4,a5 lw a5,0(a5) mv a4,a3 bne a4,a5,.L6 lw a5,-20(s0) slli a5,a5,2 ld a4,-40(s0) add a5,a4,a5 lw a3,0(a5) lw a5,-20(s0) slli a5,a5,2 addi a5,a5,-8 ld a4,-40(s0) add a5,a4,a5 lw a5,0(a5) mv a4,a3 bne a4,a5,.L6 li a5,0 j .L3 .L6: lw a5,-20(s0) addiw a5,a5,1 sw a5,-20(s0) .L4: lw a4,-20(s0) lw a5,-44(s0) sext.w a4,a4 sext.w a5,a5 blt a4,a5,.L7 li a5,1 .L3: mv a0,a5 ld s0,40(sp) addi sp,sp,48 jr ra .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
eval/problem160/code.c
.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 DWORD PTR -12[rbp], edx mov QWORD PTR -24[rbp], rcx mov eax, DWORD PTR -8[rbp] cmp eax, DWORD PTR -12[rbp] jle .L2 mov edx, DWORD PTR -4[rbp] mov eax, DWORD PTR -12[rbp] add edx, eax mov rax, QWORD PTR -24[rbp] mov DWORD PTR [rax], edx mov rax, QWORD PTR -24[rbp] add rax, 4 mov DWORD PTR [rax], 0 jmp .L4 .L2: mov edx, DWORD PTR -4[rbp] mov eax, DWORD PTR -8[rbp] add edx, eax mov rax, QWORD PTR -24[rbp] mov DWORD PTR [rax], edx mov rax, QWORD PTR -24[rbp] lea rdx, 4[rax] mov eax, DWORD PTR -12[rbp] sub eax, DWORD PTR -8[rbp] mov DWORD PTR [rdx], eax .L4: nop pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 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" .option pic .text .align 1 .globl func0 .type func0, @function func0: addi sp,sp,-48 sd s0,40(sp) addi s0,sp,48 mv a5,a0 mv a4,a2 sd a3,-40(s0) sw a5,-20(s0) mv a5,a1 sw a5,-24(s0) mv a5,a4 sw a5,-28(s0) lw a4,-24(s0) lw a5,-28(s0) sext.w a4,a4 sext.w a5,a5 ble a4,a5,.L2 lw a4,-20(s0) lw a5,-28(s0) addw a5,a4,a5 sext.w a4,a5 ld a5,-40(s0) sw a4,0(a5) ld a5,-40(s0) addi a5,a5,4 sw zero,0(a5) j .L4 .L2: lw a4,-20(s0) lw a5,-24(s0) addw a5,a4,a5 sext.w a4,a5 ld a5,-40(s0) sw a4,0(a5) ld a5,-40(s0) addi a5,a5,4 lw a3,-28(s0) lw a4,-24(s0) subw a4,a3,a4 sext.w a4,a4 sw a4,0(a5) .L4: nop ld s0,40(sp) addi sp,sp,48 jr ra .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
eval/problem116/code.c
.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 -36[rbp], ecx mov DWORD PTR -16[rbp], 0 mov DWORD PTR -12[rbp], 0 jmp .L2 .L6: mov DWORD PTR -8[rbp], 0 mov DWORD PTR -4[rbp], 0 jmp .L3 .L4: 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 edx, DWORD PTR -4[rbp] movsx rdx, edx sal rdx, 2 add rax, rdx mov eax, DWORD PTR [rax] add DWORD PTR -8[rbp], eax add DWORD PTR -4[rbp], 1 .L3: mov eax, DWORD PTR -4[rbp] cmp eax, DWORD PTR -32[rbp] jl .L4 cmp DWORD PTR -8[rbp], 0 jle .L5 mov edx, DWORD PTR -8[rbp] mov eax, DWORD PTR -36[rbp] add eax, edx sub eax, 1 cdq idiv DWORD PTR -36[rbp] add DWORD PTR -16[rbp], eax .L5: add DWORD PTR -12[rbp], 1 .L2: mov eax, DWORD PTR -12[rbp] cmp eax, DWORD PTR -28[rbp] jl .L6 mov eax, DWORD PTR -16[rbp] pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 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" .option pic .text .align 1 .globl func0 .type func0, @function func0: addi sp,sp,-64 sd s0,56(sp) addi s0,sp,64 sd a0,-40(s0) mv a5,a1 mv a4,a3 sw a5,-44(s0) mv a5,a2 sw a5,-48(s0) mv a5,a4 sw a5,-52(s0) sw zero,-32(s0) sw zero,-28(s0) j .L2 .L6: sw zero,-24(s0) sw zero,-20(s0) j .L3 .L4: lw a5,-28(s0) slli a5,a5,3 ld a4,-40(s0) add a5,a4,a5 ld a4,0(a5) lw a5,-20(s0) slli a5,a5,2 add a5,a4,a5 lw a5,0(a5) lw a4,-24(s0) addw a5,a4,a5 sw a5,-24(s0) lw a5,-20(s0) addiw a5,a5,1 sw a5,-20(s0) .L3: lw a4,-20(s0) lw a5,-48(s0) sext.w a4,a4 sext.w a5,a5 blt a4,a5,.L4 lw a5,-24(s0) sext.w a5,a5 blez a5,.L5 lw a4,-24(s0) lw a5,-52(s0) addw a5,a4,a5 sext.w a5,a5 addiw a5,a5,-1 sext.w a4,a5 lw a5,-52(s0) divw a5,a4,a5 sext.w a5,a5 lw a4,-32(s0) addw a5,a4,a5 sw a5,-32(s0) .L5: lw a5,-28(s0) addiw a5,a5,1 sw a5,-28(s0) .L2: lw a4,-28(s0) lw a5,-44(s0) sext.w a4,a4 sext.w a5,a5 blt a4,a5,.L6 lw a5,-32(s0) mv a0,a5 ld s0,56(sp) addi sp,sp,64 jr ra .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
eval/problem120/code.c
.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 sub rsp, 48 mov QWORD PTR -40[rbp], rdi mov QWORD PTR -48[rbp], rsi mov DWORD PTR -20[rbp], 0 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 -12[rbp], 1 mov DWORD PTR -16[rbp], 0 jmp .L2 .L6: 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, 40 jne .L3 add DWORD PTR -20[rbp], 1 .L3: 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, 41 jne .L4 sub DWORD PTR -20[rbp], 1 .L4: cmp DWORD PTR -20[rbp], 0 jns .L5 mov DWORD PTR -12[rbp], 0 .L5: add DWORD PTR -16[rbp], 1 .L2: mov eax, DWORD PTR -16[rbp] cmp eax, DWORD PTR -8[rbp] jl .L6 mov DWORD PTR -16[rbp], 0 jmp .L7 .L11: mov eax, DWORD PTR -16[rbp] movsx rdx, eax mov rax, QWORD PTR -48[rbp] add rax, rdx movzx eax, BYTE PTR [rax] cmp al, 40 jne .L8 add DWORD PTR -20[rbp], 1 .L8: mov eax, DWORD PTR -16[rbp] movsx rdx, eax mov rax, QWORD PTR -48[rbp] add rax, rdx movzx eax, BYTE PTR [rax] cmp al, 41 jne .L9 sub DWORD PTR -20[rbp], 1 .L9: cmp DWORD PTR -20[rbp], 0 jns .L10 mov DWORD PTR -12[rbp], 0 .L10: add DWORD PTR -16[rbp], 1 .L7: mov eax, DWORD PTR -16[rbp] cmp eax, DWORD PTR -4[rbp] jl .L11 cmp DWORD PTR -20[rbp], 0 jne .L12 cmp DWORD PTR -12[rbp], 0 je .L12 lea rax, .LC0[rip] jmp .L13 .L12: mov DWORD PTR -20[rbp], 0 mov DWORD PTR -12[rbp], 1 mov DWORD PTR -16[rbp], 0 jmp .L14 .L18: mov eax, DWORD PTR -16[rbp] movsx rdx, eax mov rax, QWORD PTR -48[rbp] add rax, rdx movzx eax, BYTE PTR [rax] cmp al, 40 jne .L15 add DWORD PTR -20[rbp], 1 .L15: mov eax, DWORD PTR -16[rbp] movsx rdx, eax mov rax, QWORD PTR -48[rbp] add rax, rdx movzx eax, BYTE PTR [rax] cmp al, 41 jne .L16 sub DWORD PTR -20[rbp], 1 .L16: cmp DWORD PTR -20[rbp], 0 jns .L17 mov DWORD PTR -12[rbp], 0 .L17: add DWORD PTR -16[rbp], 1 .L14: mov eax, DWORD PTR -16[rbp] cmp eax, DWORD PTR -4[rbp] jl .L18 mov DWORD PTR -16[rbp], 0 jmp .L19 .L23: 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, 40 jne .L20 add DWORD PTR -20[rbp], 1 .L20: 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, 41 jne .L21 sub DWORD PTR -20[rbp], 1 .L21: cmp DWORD PTR -20[rbp], 0 jns .L22 mov DWORD PTR -12[rbp], 0 .L22: add DWORD PTR -16[rbp], 1 .L19: mov eax, DWORD PTR -16[rbp] cmp eax, DWORD PTR -8[rbp] jl .L23 cmp DWORD PTR -20[rbp], 0 jne .L24 cmp DWORD PTR -12[rbp], 0 je .L24 lea rax, .LC0[rip] jmp .L13 .L24: lea rax, .LC1[rip] .L13: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 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" .option pic .text .section .rodata .align 3 .LC0: .string "Yes" .align 3 .LC1: .string "No" .text .align 1 .globl func0 .type func0, @function func0: addi sp,sp,-64 sd ra,56(sp) sd s0,48(sp) addi s0,sp,64 sd a0,-56(s0) sd a1,-64(s0) sw zero,-36(s0) ld a0,-56(s0) call strlen@plt mv a5,a0 sw a5,-24(s0) ld a0,-64(s0) call strlen@plt mv a5,a0 sw a5,-20(s0) li a5,1 sw a5,-28(s0) sw zero,-32(s0) j .L2 .L6: lw a5,-32(s0) ld a4,-56(s0) add a5,a4,a5 lbu a5,0(a5) mv a4,a5 li a5,40 bne a4,a5,.L3 lw a5,-36(s0) addiw a5,a5,1 sw a5,-36(s0) .L3: lw a5,-32(s0) ld a4,-56(s0) add a5,a4,a5 lbu a5,0(a5) mv a4,a5 li a5,41 bne a4,a5,.L4 lw a5,-36(s0) addiw a5,a5,-1 sw a5,-36(s0) .L4: lw a5,-36(s0) sext.w a5,a5 bgez a5,.L5 sw zero,-28(s0) .L5: lw a5,-32(s0) addiw a5,a5,1 sw a5,-32(s0) .L2: lw a4,-32(s0) lw a5,-24(s0) sext.w a4,a4 sext.w a5,a5 blt a4,a5,.L6 sw zero,-32(s0) j .L7 .L11: lw a5,-32(s0) ld a4,-64(s0) add a5,a4,a5 lbu a5,0(a5) mv a4,a5 li a5,40 bne a4,a5,.L8 lw a5,-36(s0) addiw a5,a5,1 sw a5,-36(s0) .L8: lw a5,-32(s0) ld a4,-64(s0) add a5,a4,a5 lbu a5,0(a5) mv a4,a5 li a5,41 bne a4,a5,.L9 lw a5,-36(s0) addiw a5,a5,-1 sw a5,-36(s0) .L9: lw a5,-36(s0) sext.w a5,a5 bgez a5,.L10 sw zero,-28(s0) .L10: lw a5,-32(s0) addiw a5,a5,1 sw a5,-32(s0) .L7: lw a4,-32(s0) lw a5,-20(s0) sext.w a4,a4 sext.w a5,a5 blt a4,a5,.L11 lw a5,-36(s0) sext.w a5,a5 bnez a5,.L12 lw a5,-28(s0) sext.w a5,a5 beqz a5,.L12 lla a5,.LC0 j .L13 .L12: sw zero,-36(s0) li a5,1 sw a5,-28(s0) sw zero,-32(s0) j .L14 .L18: lw a5,-32(s0) ld a4,-64(s0) add a5,a4,a5 lbu a5,0(a5) mv a4,a5 li a5,40 bne a4,a5,.L15 lw a5,-36(s0) addiw a5,a5,1 sw a5,-36(s0) .L15: lw a5,-32(s0) ld a4,-64(s0) add a5,a4,a5 lbu a5,0(a5) mv a4,a5 li a5,41 bne a4,a5,.L16 lw a5,-36(s0) addiw a5,a5,-1 sw a5,-36(s0) .L16: lw a5,-36(s0) sext.w a5,a5 bgez a5,.L17 sw zero,-28(s0) .L17: lw a5,-32(s0) addiw a5,a5,1 sw a5,-32(s0) .L14: lw a4,-32(s0) lw a5,-20(s0) sext.w a4,a4 sext.w a5,a5 blt a4,a5,.L18 sw zero,-32(s0) j .L19 .L23: lw a5,-32(s0) ld a4,-56(s0) add a5,a4,a5 lbu a5,0(a5) mv a4,a5 li a5,40 bne a4,a5,.L20 lw a5,-36(s0) addiw a5,a5,1 sw a5,-36(s0) .L20: lw a5,-32(s0) ld a4,-56(s0) add a5,a4,a5 lbu a5,0(a5) mv a4,a5 li a5,41 bne a4,a5,.L21 lw a5,-36(s0) addiw a5,a5,-1 sw a5,-36(s0) .L21: lw a5,-36(s0) sext.w a5,a5 bgez a5,.L22 sw zero,-28(s0) .L22: lw a5,-32(s0) addiw a5,a5,1 sw a5,-32(s0) .L19: lw a4,-32(s0) lw a5,-24(s0) sext.w a4,a4 sext.w a5,a5 blt a4,a5,.L23 lw a5,-36(s0) sext.w a5,a5 bnez a5,.L24 lw a5,-28(s0) sext.w a5,a5 beqz a5,.L24 lla a5,.LC0 j .L13 .L24: lla a5,.LC1 .L13: mv a0,a5 ld ra,56(sp) ld s0,48(sp) addi sp,sp,64 jr ra .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
eval/problem34/code.c
.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] movsx rdx, eax imul rdx, rdx, 1431655766 shr rdx, 32 sar eax, 31 mov esi, edx sub esi, eax mov eax, esi add eax, 1 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 mov DWORD PTR -28[rbp], 0 jmp .L2 .L3: mov edx, DWORD PTR -28[rbp] mov eax, edx add eax, eax add eax, edx cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -40[rbp] add rax, rdx mov edx, DWORD PTR -28[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 add DWORD PTR -20[rbp], 1 add DWORD PTR -28[rbp], 1 .L2: mov edx, DWORD PTR -28[rbp] mov eax, edx add eax, eax add eax, edx cmp DWORD PTR -44[rbp], eax jg .L3 mov DWORD PTR -28[rbp], 0 jmp .L4 .L9: mov eax, DWORD PTR -28[rbp] mov DWORD PTR -16[rbp], eax mov eax, DWORD PTR -28[rbp] add eax, 1 mov DWORD PTR -24[rbp], eax jmp .L5 .L7: 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 -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 jge .L6 mov eax, DWORD PTR -24[rbp] mov DWORD PTR -16[rbp], eax .L6: add DWORD PTR -24[rbp], 1 .L5: mov eax, DWORD PTR -24[rbp] cmp eax, DWORD PTR -20[rbp] jl .L7 mov eax, DWORD PTR -16[rbp] cmp eax, DWORD PTR -28[rbp] je .L8 mov eax, DWORD PTR -28[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 -28[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 .L8: add DWORD PTR -28[rbp], 1 .L4: mov eax, DWORD PTR -20[rbp] sub eax, 1 cmp DWORD PTR -28[rbp], eax jl .L9 mov DWORD PTR -28[rbp], 0 jmp .L10 .L13: mov ecx, DWORD PTR -28[rbp] movsx rax, ecx imul rax, rax, 1431655766 shr rax, 32 mov rdx, rax mov eax, ecx sar eax, 31 mov edi, edx sub edi, eax mov eax, edi mov edx, eax add edx, edx add edx, eax mov eax, ecx sub eax, edx test eax, eax jne .L11 mov eax, DWORD PTR -28[rbp] movsx rdx, eax imul rdx, rdx, 1431655766 shr rdx, 32 sar eax, 31 mov esi, edx sub esi, eax mov eax, esi cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rdx mov edx, DWORD PTR -28[rbp] movsx rdx, edx lea rcx, 0[0+rdx*4] mov rdx, QWORD PTR -56[rbp] add rdx, rcx mov eax, DWORD PTR [rax] mov DWORD PTR [rdx], eax jmp .L12 .L11: 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 -28[rbp] movsx rdx, edx lea rcx, 0[0+rdx*4] mov rdx, QWORD PTR -56[rbp] add rdx, rcx mov eax, DWORD PTR [rax] mov DWORD PTR [rdx], eax .L12: add DWORD PTR -28[rbp], 1 .L10: mov eax, DWORD PTR -28[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 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 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" .option pic .text .align 1 .globl func0 .type func0, @function func0: addi sp,sp,-80 sd ra,72(sp) sd s0,64(sp) addi s0,sp,80 sd a0,-56(s0) mv a5,a1 sd a2,-72(s0) sw a5,-60(s0) lw a4,-60(s0) li a5,3 divw a5,a4,a5 sext.w a5,a5 addiw a5,a5,1 sext.w a5,a5 slli a5,a5,2 mv a0,a5 call malloc@plt mv a5,a0 sd a5,-24(s0) sw zero,-40(s0) sw zero,-36(s0) sw zero,-44(s0) j .L2 .L3: lw a4,-44(s0) mv a5,a4 slliw a5,a5,1 addw a5,a5,a4 sext.w a5,a5 slli a5,a5,2 ld a4,-56(s0) add a4,a4,a5 lw a5,-44(s0) slli a5,a5,2 ld a3,-24(s0) add a5,a3,a5 lw a4,0(a4) sw a4,0(a5) lw a5,-36(s0) addiw a5,a5,1 sw a5,-36(s0) lw a5,-44(s0) addiw a5,a5,1 sw a5,-44(s0) .L2: lw a4,-44(s0) mv a5,a4 slliw a5,a5,1 addw a5,a5,a4 sext.w a4,a5 lw a5,-60(s0) sext.w a5,a5 bgt a5,a4,.L3 sw zero,-44(s0) j .L4 .L9: lw a5,-44(s0) sw a5,-32(s0) lw a5,-44(s0) addiw a5,a5,1 sw a5,-40(s0) j .L5 .L7: lw a5,-40(s0) slli a5,a5,2 ld a4,-24(s0) add a5,a4,a5 lw a3,0(a5) lw a5,-32(s0) slli a5,a5,2 ld a4,-24(s0) add a5,a4,a5 lw a5,0(a5) mv a4,a3 bge a4,a5,.L6 lw a5,-40(s0) sw a5,-32(s0) .L6: lw a5,-40(s0) addiw a5,a5,1 sw a5,-40(s0) .L5: lw a4,-40(s0) lw a5,-36(s0) sext.w a4,a4 sext.w a5,a5 blt a4,a5,.L7 lw a4,-32(s0) lw a5,-44(s0) sext.w a4,a4 sext.w a5,a5 beq a4,a5,.L8 lw a5,-44(s0) slli a5,a5,2 ld a4,-24(s0) add a5,a4,a5 lw a5,0(a5) sw a5,-28(s0) lw a5,-32(s0) slli a5,a5,2 ld a4,-24(s0) add a4,a4,a5 lw a5,-44(s0) slli a5,a5,2 ld a3,-24(s0) add a5,a3,a5 lw a4,0(a4) sw a4,0(a5) lw a5,-32(s0) slli a5,a5,2 ld a4,-24(s0) add a5,a4,a5 lw a4,-28(s0) sw a4,0(a5) .L8: lw a5,-44(s0) addiw a5,a5,1 sw a5,-44(s0) .L4: lw a5,-36(s0) addiw a5,a5,-1 sext.w a4,a5 lw a5,-44(s0) sext.w a5,a5 blt a5,a4,.L9 sw zero,-44(s0) j .L10 .L13: lw a4,-44(s0) li a5,3 remw a5,a4,a5 sext.w a5,a5 bnez a5,.L11 lw a4,-44(s0) li a5,3 divw a5,a4,a5 sext.w a5,a5 slli a5,a5,2 ld a4,-24(s0) add a4,a4,a5 lw a5,-44(s0) slli a5,a5,2 ld a3,-72(s0) add a5,a3,a5 lw a4,0(a4) sw a4,0(a5) j .L12 .L11: lw a5,-44(s0) slli a5,a5,2 ld a4,-56(s0) add a4,a4,a5 lw a5,-44(s0) slli a5,a5,2 ld a3,-72(s0) add a5,a3,a5 lw a4,0(a4) sw a4,0(a5) .L12: lw a5,-44(s0) addiw a5,a5,1 sw a5,-44(s0) .L10: lw a4,-44(s0) lw a5,-60(s0) sext.w a4,a4 sext.w a5,a5 blt a4,a5,.L13 ld a0,-24(s0) call free@plt nop ld ra,72(sp) ld s0,64(sp) addi sp,sp,80 jr ra .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
eval/problem128/code.c
.file "code.c" .intel_syntax noprefix .text .section .rodata .LC0: .string "NO" .LC1: .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 mov DWORD PTR -20[rbp], edi mov DWORD PTR -24[rbp], esi mov DWORD PTR -28[rbp], edx mov DWORD PTR -32[rbp], ecx mov eax, DWORD PTR -20[rbp] cmp DWORD PTR -28[rbp], eax cmovge eax, DWORD PTR -28[rbp] mov DWORD PTR -12[rbp], eax mov eax, DWORD PTR -24[rbp] cmp DWORD PTR -32[rbp], eax cmovle eax, DWORD PTR -32[rbp] mov DWORD PTR -8[rbp], eax mov eax, DWORD PTR -8[rbp] sub eax, DWORD PTR -12[rbp] mov DWORD PTR -4[rbp], eax cmp DWORD PTR -4[rbp], 1 jg .L2 lea rax, .LC0[rip] jmp .L3 .L2: mov DWORD PTR -16[rbp], 2 jmp .L4 .L6: mov eax, DWORD PTR -4[rbp] cdq idiv DWORD PTR -16[rbp] mov eax, edx test eax, eax jne .L5 lea rax, .LC0[rip] jmp .L3 .L5: add DWORD PTR -16[rbp], 1 .L4: mov eax, DWORD PTR -16[rbp] imul eax, eax cmp DWORD PTR -4[rbp], eax jge .L6 lea rax, .LC1[rip] .L3: pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 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" .option pic .text .section .rodata .align 3 .LC0: .string "NO" .align 3 .LC1: .string "YES" .text .align 1 .globl func0 .type func0, @function func0: addi sp,sp,-48 sd s0,40(sp) addi s0,sp,48 mv a5,a0 mv a4,a3 sw a5,-36(s0) mv a5,a1 sw a5,-40(s0) mv a5,a2 sw a5,-44(s0) mv a5,a4 sw a5,-48(s0) lw a2,-36(s0) lw a5,-44(s0) sext.w a3,a5 sext.w a4,a2 bge a3,a4,.L2 mv a5,a2 .L2: sw a5,-28(s0) lw a2,-40(s0) lw a5,-48(s0) sext.w a3,a5 sext.w a4,a2 ble a3,a4,.L3 mv a5,a2 .L3: sw a5,-24(s0) lw a4,-24(s0) lw a5,-28(s0) subw a5,a4,a5 sw a5,-20(s0) lw a5,-20(s0) sext.w a4,a5 li a5,1 bgt a4,a5,.L4 lla a5,.LC0 j .L5 .L4: li a5,2 sw a5,-32(s0) j .L6 .L8: lw a4,-20(s0) lw a5,-32(s0) remw a5,a4,a5 sext.w a5,a5 bnez a5,.L7 lla a5,.LC0 j .L5 .L7: lw a5,-32(s0) addiw a5,a5,1 sw a5,-32(s0) .L6: lw a5,-32(s0) mulw a5,a5,a5 sext.w a4,a5 lw a5,-20(s0) sext.w a5,a5 bge a5,a4,.L8 lla a5,.LC1 .L5: mv a0,a5 ld s0,40(sp) addi sp,sp,48 jr ra .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
eval/problem118/code.c
.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 push rbx sub rsp, 88 .cfi_offset 3, -24 mov QWORD PTR -72[rbp], rdi mov DWORD PTR -76[rbp], esi mov QWORD PTR -88[rbp], rdx lea rax, .LC0[rip] mov QWORD PTR -40[rbp], rax mov QWORD PTR -48[rbp], 0 mov DWORD PTR -64[rbp], 0 mov DWORD PTR -60[rbp], 0 mov DWORD PTR -56[rbp], 0 mov rax, QWORD PTR -72[rbp] mov rdi, rax call strlen@PLT mov QWORD PTR -32[rbp], rax mov rax, QWORD PTR -32[rbp] add rax, 1 mov rdi, rax call malloc@PLT mov QWORD PTR -24[rbp], rax mov DWORD PTR -52[rbp], 0 jmp .L2 .L7: call __ctype_b_loc@PLT mov rax, QWORD PTR [rax] mov edx, DWORD PTR -52[rbp] movsx rcx, edx mov rdx, QWORD PTR -72[rbp] add rdx, rcx movzx edx, BYTE PTR [rdx] movsx rdx, dl add rdx, rdx add rax, rdx movzx eax, WORD PTR [rax] movzx eax, ax and eax, 8192 test eax, eax jne .L3 mov eax, DWORD PTR -52[rbp] movsx rdx, eax mov rax, QWORD PTR -72[rbp] add rax, rdx movzx eax, BYTE PTR [rax] test al, al jne .L4 .L3: mov eax, DWORD PTR -64[rbp] cmp eax, DWORD PTR -76[rbp] jne .L5 mov eax, DWORD PTR -52[rbp] sub eax, DWORD PTR -56[rbp] movsx rdx, eax mov rax, QWORD PTR -24[rbp] add rax, rdx mov BYTE PTR [rax], 0 mov eax, DWORD PTR -60[rbp] add eax, 1 cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -48[rbp] mov rsi, rdx mov rdi, rax call realloc@PLT mov QWORD PTR -48[rbp], rax mov rax, QWORD PTR -24[rbp] mov rdi, rax call strlen@PLT add rax, 1 mov edx, DWORD PTR -60[rbp] movsx rdx, edx lea rcx, 0[0+rdx*8] mov rdx, QWORD PTR -48[rbp] lea rbx, [rcx+rdx] mov rdi, rax call malloc@PLT mov QWORD PTR [rbx], rax mov eax, DWORD PTR -60[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -48[rbp] add rax, rdx mov rax, QWORD PTR [rax] mov rdx, QWORD PTR -24[rbp] mov rsi, rdx mov rdi, rax call strcpy@PLT add DWORD PTR -60[rbp], 1 .L5: mov eax, DWORD PTR -52[rbp] add eax, 1 mov DWORD PTR -56[rbp], eax mov DWORD PTR -64[rbp], 0 jmp .L6 .L4: mov eax, DWORD PTR -52[rbp] movsx rdx, eax mov rax, QWORD PTR -72[rbp] lea rcx, [rdx+rax] mov eax, DWORD PTR -52[rbp] sub eax, DWORD PTR -56[rbp] movsx rdx, eax mov rax, QWORD PTR -24[rbp] add rdx, rax movzx eax, BYTE PTR [rcx] mov BYTE PTR [rdx], al mov eax, DWORD PTR -52[rbp] movsx rdx, eax mov rax, QWORD PTR -72[rbp] add rax, rdx movzx eax, BYTE PTR [rax] movsx edx, al mov rax, QWORD PTR -40[rbp] mov esi, edx mov rdi, rax call strchr@PLT test rax, rax jne .L6 call __ctype_b_loc@PLT mov rax, QWORD PTR [rax] mov edx, DWORD PTR -52[rbp] movsx rcx, edx mov rdx, QWORD PTR -72[rbp] add rdx, rcx movzx edx, BYTE PTR [rdx] movzx edx, dl add rdx, rdx add rax, rdx movzx eax, WORD PTR [rax] movzx eax, ax and eax, 1024 test eax, eax je .L6 add DWORD PTR -64[rbp], 1 .L6: add DWORD PTR -52[rbp], 1 .L2: mov eax, DWORD PTR -52[rbp] cdqe cmp QWORD PTR -32[rbp], rax jnb .L7 mov rax, QWORD PTR -24[rbp] mov rdi, rax call free@PLT mov rax, QWORD PTR -88[rbp] mov edx, DWORD PTR -60[rbp] mov DWORD PTR [rax], edx mov rax, QWORD PTR -48[rbp] add rsp, 88 pop rbx pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 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" .option pic .text .section .rodata .align 3 .LC0: .string "aeiouAEIOU" .text .align 1 .globl func0 .type func0, @function func0: addi sp,sp,-112 sd ra,104(sp) sd s0,96(sp) sd s1,88(sp) addi s0,sp,112 sd a0,-88(s0) mv a5,a1 sd a2,-104(s0) sw a5,-92(s0) lla a5,.LC0 sd a5,-56(s0) sd zero,-64(s0) sw zero,-80(s0) sw zero,-76(s0) sw zero,-72(s0) ld a0,-88(s0) call strlen@plt sd a0,-48(s0) ld a5,-48(s0) addi a5,a5,1 mv a0,a5 call malloc@plt mv a5,a0 sd a5,-40(s0) sw zero,-68(s0) j .L2 .L7: call __ctype_b_loc@plt mv a5,a0 ld a4,0(a5) lw a5,-68(s0) ld a3,-88(s0) add a5,a3,a5 lbu a5,0(a5) slli a5,a5,1 add a5,a4,a5 lhu a5,0(a5) sext.w a4,a5 li a5,8192 and a5,a4,a5 sext.w a5,a5 bnez a5,.L3 lw a5,-68(s0) ld a4,-88(s0) add a5,a4,a5 lbu a5,0(a5) bnez a5,.L4 .L3: lw a4,-80(s0) lw a5,-92(s0) sext.w a4,a4 sext.w a5,a5 bne a4,a5,.L5 lw a4,-68(s0) lw a5,-72(s0) subw a5,a4,a5 sext.w a5,a5 mv a4,a5 ld a5,-40(s0) add a5,a5,a4 sb zero,0(a5) lw a5,-76(s0) addiw a5,a5,1 sext.w a5,a5 slli a5,a5,3 mv a1,a5 ld a0,-64(s0) call realloc@plt sd a0,-64(s0) ld a0,-40(s0) call strlen@plt mv a5,a0 addi a3,a5,1 lw a5,-76(s0) slli a5,a5,3 ld a4,-64(s0) add s1,a4,a5 mv a0,a3 call malloc@plt mv a5,a0 sd a5,0(s1) lw a5,-76(s0) slli a5,a5,3 ld a4,-64(s0) add a5,a4,a5 ld a5,0(a5) ld a1,-40(s0) mv a0,a5 call strcpy@plt lw a5,-76(s0) addiw a5,a5,1 sw a5,-76(s0) .L5: lw a5,-68(s0) addiw a5,a5,1 sw a5,-72(s0) sw zero,-80(s0) j .L6 .L4: lw a5,-68(s0) ld a4,-88(s0) add a4,a4,a5 lw a3,-68(s0) lw a5,-72(s0) subw a5,a3,a5 sext.w a5,a5 mv a3,a5 ld a5,-40(s0) add a5,a5,a3 lbu a4,0(a4) sb a4,0(a5) lw a5,-68(s0) ld a4,-88(s0) add a5,a4,a5 lbu a5,0(a5) sext.w a5,a5 mv a1,a5 ld a0,-56(s0) call strchr@plt mv a5,a0 bnez a5,.L6 call __ctype_b_loc@plt mv a5,a0 ld a4,0(a5) lw a5,-68(s0) ld a3,-88(s0) add a5,a3,a5 lbu a5,0(a5) slli a5,a5,1 add a5,a4,a5 lhu a5,0(a5) sext.w a5,a5 andi a5,a5,1024 sext.w a5,a5 beqz a5,.L6 lw a5,-80(s0) addiw a5,a5,1 sw a5,-80(s0) .L6: lw a5,-68(s0) addiw a5,a5,1 sw a5,-68(s0) .L2: lw a5,-68(s0) ld a4,-48(s0) bgeu a4,a5,.L7 ld a0,-40(s0) call free@plt ld a5,-104(s0) lw a4,-76(s0) sw a4,0(a5) ld a5,-64(s0) mv a0,a5 ld ra,104(sp) ld s0,96(sp) ld s1,88(sp) addi sp,sp,112 jr ra .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
eval/problem133/code.c
.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 DWORD PTR -28[rbp], 0 mov DWORD PTR -24[rbp], 0 mov DWORD PTR -20[rbp], 0 jmp .L2 .L9: 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, 91 jne .L3 add DWORD PTR -28[rbp], 1 .L3: 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, 93 jne .L4 sub DWORD PTR -28[rbp], 1 .L4: cmp DWORD PTR -28[rbp], 0 jns .L5 mov DWORD PTR -28[rbp], 0 .L5: mov eax, DWORD PTR -28[rbp] cmp eax, DWORD PTR -24[rbp] jle .L6 mov eax, DWORD PTR -28[rbp] mov DWORD PTR -24[rbp], eax .L6: mov eax, DWORD PTR -24[rbp] sub eax, 1 cmp DWORD PTR -28[rbp], eax jge .L7 mov eax, 1 jmp .L8 .L7: 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 .L9 mov eax, 0 .L8: add rsp, 40 pop rbx pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 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" .option pic .text .align 1 .globl func0 .type func0, @function func0: addi sp,sp,-64 sd ra,56(sp) sd s0,48(sp) sd s1,40(sp) addi s0,sp,64 sd a0,-56(s0) sw zero,-44(s0) sw zero,-40(s0) sw zero,-36(s0) j .L2 .L9: lw a5,-36(s0) ld a4,-56(s0) add a5,a4,a5 lbu a5,0(a5) mv a4,a5 li a5,91 bne a4,a5,.L3 lw a5,-44(s0) addiw a5,a5,1 sw a5,-44(s0) .L3: lw a5,-36(s0) ld a4,-56(s0) add a5,a4,a5 lbu a5,0(a5) mv a4,a5 li a5,93 bne a4,a5,.L4 lw a5,-44(s0) addiw a5,a5,-1 sw a5,-44(s0) .L4: lw a5,-44(s0) sext.w a5,a5 bgez a5,.L5 sw zero,-44(s0) .L5: lw a4,-44(s0) lw a5,-40(s0) sext.w a4,a4 sext.w a5,a5 ble a4,a5,.L6 lw a5,-44(s0) sw a5,-40(s0) .L6: lw a5,-40(s0) addiw a5,a5,-1 sext.w a4,a5 lw a5,-44(s0) sext.w a5,a5 bge a5,a4,.L7 li a5,1 j .L8 .L7: lw a5,-36(s0) addiw a5,a5,1 sw a5,-36(s0) .L2: lw s1,-36(s0) ld a0,-56(s0) call strlen@plt mv a5,a0 bltu s1,a5,.L9 li a5,0 .L8: mv a0,a5 ld ra,56(sp) ld s0,48(sp) ld s1,40(sp) addi sp,sp,64 jr ra .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
eval/problem80/code.c
.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, 64 call malloc@PLT mov QWORD PTR -16[rbp], rax cmp QWORD PTR -16[rbp], 0 jne .L2 mov eax, 0 jmp .L3 .L2: mov DWORD PTR -28[rbp], 62 mov rax, QWORD PTR -16[rbp] add rax, 63 mov BYTE PTR [rax], 0 cmp DWORD PTR -36[rbp], 0 jne .L6 mov eax, DWORD PTR -28[rbp] lea edx, -1[rax] mov DWORD PTR -28[rbp], edx movsx rdx, eax mov rax, QWORD PTR -16[rbp] add rax, rdx mov BYTE PTR [rax], 48 jmp .L5 .L7: mov eax, DWORD PTR -36[rbp] cdq shr edx, 31 add eax, edx and eax, 1 sub eax, edx lea ecx, 48[rax] mov eax, DWORD PTR -28[rbp] lea edx, -1[rax] mov DWORD PTR -28[rbp], edx movsx rdx, eax mov rax, QWORD PTR -16[rbp] add rax, rdx mov edx, ecx mov BYTE PTR [rax], dl mov eax, DWORD PTR -36[rbp] mov edx, eax shr edx, 31 add eax, edx sar eax mov DWORD PTR -36[rbp], eax .L6: cmp DWORD PTR -36[rbp], 0 jg .L7 .L5: mov eax, DWORD PTR -28[rbp] lea edx, -1[rax] mov DWORD PTR -28[rbp], edx movsx rdx, eax mov rax, QWORD PTR -16[rbp] add rax, rdx mov BYTE PTR [rax], 98 mov eax, DWORD PTR -28[rbp] lea edx, -1[rax] mov DWORD PTR -28[rbp], edx movsx rdx, eax mov rax, QWORD PTR -16[rbp] add rax, rdx mov BYTE PTR [rax], 100 mov eax, DWORD PTR -28[rbp] add eax, 1 mov DWORD PTR -24[rbp], eax mov eax, 62 sub eax, DWORD PTR -24[rbp] mov DWORD PTR -20[rbp], eax mov eax, DWORD PTR -20[rbp] add eax, 3 cdqe mov rdi, rax call malloc@PLT mov QWORD PTR -8[rbp], rax cmp QWORD PTR -8[rbp], 0 jne .L8 mov rax, QWORD PTR -16[rbp] mov rdi, rax call free@PLT mov eax, 0 jmp .L3 .L8: mov eax, DWORD PTR -24[rbp] movsx rdx, eax mov rax, QWORD PTR -16[rbp] add rdx, rax mov rax, QWORD PTR -8[rbp] mov rsi, rdx mov rdi, rax call strcpy@PLT mov rax, QWORD PTR -8[rbp] mov rcx, -1 mov rdx, rax mov eax, 0 mov rdi, rdx repnz scasb mov rax, rcx not rax lea rdx, -1[rax] mov rax, QWORD PTR -8[rbp] add rax, rdx mov WORD PTR [rax], 25188 mov BYTE PTR 2[rax], 0 mov rax, QWORD PTR -16[rbp] mov rdi, rax call free@PLT mov rax, QWORD PTR -8[rbp] .L3: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 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" .option pic .text .align 1 .globl func0 .type func0, @function func0: addi sp,sp,-64 sd ra,56(sp) sd s0,48(sp) addi s0,sp,64 mv a5,a0 sw a5,-52(s0) li a0,64 call malloc@plt mv a5,a0 sd a5,-32(s0) ld a5,-32(s0) bnez a5,.L2 li a5,0 j .L3 .L2: li a5,62 sw a5,-44(s0) ld a5,-32(s0) addi a5,a5,63 sb zero,0(a5) lw a5,-52(s0) sext.w a5,a5 bnez a5,.L6 lw a5,-44(s0) addiw a4,a5,-1 sw a4,-44(s0) mv a4,a5 ld a5,-32(s0) add a5,a5,a4 li a4,48 sb a4,0(a5) j .L5 .L7: lw a4,-52(s0) sraiw a5,a4,31 srliw a5,a5,31 addw a4,a4,a5 andi a4,a4,1 subw a5,a4,a5 sext.w a5,a5 andi a4,a5,0xff lw a5,-44(s0) addiw a3,a5,-1 sw a3,-44(s0) mv a3,a5 ld a5,-32(s0) add a5,a5,a3 addiw a4,a4,48 andi a4,a4,0xff sb a4,0(a5) lw a5,-52(s0) srliw a4,a5,31 addw a5,a4,a5 sraiw a5,a5,1 sw a5,-52(s0) .L6: lw a5,-52(s0) sext.w a5,a5 bgtz a5,.L7 .L5: lw a5,-44(s0) addiw a4,a5,-1 sw a4,-44(s0) mv a4,a5 ld a5,-32(s0) add a5,a5,a4 li a4,98 sb a4,0(a5) lw a5,-44(s0) addiw a4,a5,-1 sw a4,-44(s0) mv a4,a5 ld a5,-32(s0) add a5,a5,a4 li a4,100 sb a4,0(a5) lw a5,-44(s0) addiw a5,a5,1 sw a5,-40(s0) li a4,62 lw a5,-40(s0) subw a5,a4,a5 sw a5,-36(s0) lw a5,-36(s0) addiw a5,a5,3 sext.w a5,a5 mv a0,a5 call malloc@plt mv a5,a0 sd a5,-24(s0) ld a5,-24(s0) bnez a5,.L8 ld a0,-32(s0) call free@plt li a5,0 j .L3 .L8: lw a5,-40(s0) ld a4,-32(s0) add a5,a4,a5 mv a1,a5 ld a0,-24(s0) call strcpy@plt ld a0,-24(s0) call strlen@plt mv a5,a0 mv a4,a5 ld a5,-24(s0) add a5,a5,a4 li a4,100 sb a4,0(a5) li a4,98 sb a4,1(a5) sb zero,2(a5) ld a0,-32(s0) call free@plt ld a5,-24(s0) .L3: mv a0,a5 ld ra,56(sp) ld s0,48(sp) addi sp,sp,64 jr ra .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
eval/problem109/code.c
.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 -16[rbp], 0 mov DWORD PTR -12[rbp], 0 jmp .L2 .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] test eax, eax jle .L3 add DWORD PTR -16[rbp], 1 jmp .L4 .L3: mov DWORD PTR -8[rbp], 0 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, edx sar eax, 31 xor edx, eax mov DWORD PTR -4[rbp], edx sub DWORD PTR -4[rbp], eax jmp .L5 .L6: mov ecx, DWORD PTR -4[rbp] movsx rax, ecx imul rax, rax, 1717986919 shr rax, 32 mov edx, eax sar edx, 2 mov eax, ecx sar eax, 31 sub edx, eax mov eax, edx sal eax, 2 add eax, edx add eax, eax sub ecx, eax mov edx, ecx add DWORD PTR -8[rbp], edx mov eax, DWORD PTR -4[rbp] movsx rdx, eax imul rdx, rdx, 1717986919 shr rdx, 32 sar edx, 2 sar eax, 31 sub edx, eax mov eax, edx mov DWORD PTR -4[rbp], eax .L5: cmp DWORD PTR -4[rbp], 9 jg .L6 mov eax, DWORD PTR -4[rbp] sub DWORD PTR -8[rbp], eax cmp DWORD PTR -8[rbp], 0 jle .L4 add DWORD PTR -16[rbp], 1 .L4: add DWORD PTR -12[rbp], 1 .L2: mov eax, DWORD PTR -12[rbp] cmp eax, DWORD PTR -28[rbp] jl .L7 mov eax, DWORD PTR -16[rbp] pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 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" .option pic .text .align 1 .globl func0 .type func0, @function func0: addi sp,sp,-48 sd s0,40(sp) addi s0,sp,48 sd a0,-40(s0) mv a5,a1 sw a5,-44(s0) sw zero,-32(s0) sw zero,-28(s0) j .L2 .L7: lw a5,-28(s0) slli a5,a5,2 ld a4,-40(s0) add a5,a4,a5 lw a5,0(a5) blez a5,.L3 lw a5,-32(s0) addiw a5,a5,1 sw a5,-32(s0) j .L4 .L3: sw zero,-24(s0) lw a5,-28(s0) slli a5,a5,2 ld a4,-40(s0) add a5,a4,a5 lw a4,0(a5) sraiw a5,a4,31 xor a4,a4,a5 subw a5,a4,a5 sw a5,-20(s0) j .L5 .L6: lw a4,-20(s0) li a5,10 remw a5,a4,a5 sext.w a5,a5 lw a4,-24(s0) addw a5,a4,a5 sw a5,-24(s0) lw a4,-20(s0) li a5,10 divw a5,a4,a5 sw a5,-20(s0) .L5: lw a5,-20(s0) sext.w a4,a5 li a5,9 bgt a4,a5,.L6 lw a4,-24(s0) lw a5,-20(s0) subw a5,a4,a5 sw a5,-24(s0) lw a5,-24(s0) sext.w a5,a5 blez a5,.L4 lw a5,-32(s0) addiw a5,a5,1 sw a5,-32(s0) .L4: lw a5,-28(s0) addiw a5,a5,1 sw a5,-28(s0) .L2: lw a4,-28(s0) lw a5,-44(s0) sext.w a4,a4 sext.w a5,a5 blt a4,a5,.L7 lw a5,-32(s0) mv a0,a5 ld s0,40(sp) addi sp,sp,48 jr ra .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
eval/problem50/code.c
.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 .L3: mov eax, DWORD PTR -8[rbp] add eax, eax cdq idiv DWORD PTR -24[rbp] mov DWORD PTR -8[rbp], edx add DWORD PTR -4[rbp], 1 .L2: mov eax, DWORD PTR -4[rbp] cmp eax, DWORD PTR -20[rbp] jl .L3 mov eax, DWORD PTR -8[rbp] pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 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" .option pic .text .align 1 .globl func0 .type func0, @function func0: addi sp,sp,-48 sd s0,40(sp) addi s0,sp,48 mv a5,a0 mv a4,a1 sw a5,-36(s0) mv a5,a4 sw a5,-40(s0) li a5,1 sw a5,-24(s0) sw zero,-20(s0) j .L2 .L3: lw a5,-24(s0) slliw a5,a5,1 sext.w a5,a5 mv a4,a5 lw a5,-40(s0) remw a5,a4,a5 sw a5,-24(s0) lw a5,-20(s0) addiw a5,a5,1 sw a5,-20(s0) .L2: lw a4,-20(s0) lw a5,-36(s0) sext.w a4,a4 sext.w a5,a5 blt a4,a5,.L3 lw a5,-24(s0) mv a0,a5 ld s0,40(sp) addi sp,sp,48 jr ra .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
eval/problem70/code.c
.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 mov eax, DWORD PTR -28[rbp] add eax, 1 cdqe mov esi, 4 mov rdi, rax call calloc@PLT mov QWORD PTR -8[rbp], rax mov DWORD PTR -16[rbp], -1 mov DWORD PTR -12[rbp], 0 jmp .L2 .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] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rdx mov edx, DWORD PTR [rax] add edx, 1 mov DWORD PTR [rax], edx 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] 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 -12[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 jl .L3 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 .L3 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 .L3: add DWORD PTR -12[rbp], 1 .L2: mov eax, DWORD PTR -12[rbp] cmp eax, DWORD PTR -28[rbp] jl .L4 mov rax, QWORD PTR -8[rbp] mov rdi, rax call free@PLT mov eax, DWORD PTR -16[rbp] leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 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" .option pic .text .align 1 .globl func0 .type func0, @function func0: addi sp,sp,-48 sd ra,40(sp) sd s0,32(sp) addi s0,sp,48 sd a0,-40(s0) mv a5,a1 sw a5,-44(s0) lw a5,-44(s0) addiw a5,a5,1 sext.w a5,a5 li a1,4 mv a0,a5 call calloc@plt mv a5,a0 sd a5,-24(s0) li a5,-1 sw a5,-32(s0) sw zero,-28(s0) j .L2 .L4: lw a5,-28(s0) slli a5,a5,2 ld a4,-40(s0) add a5,a4,a5 lw a5,0(a5) slli a5,a5,2 ld a4,-24(s0) add a5,a4,a5 lw a4,0(a5) addiw a4,a4,1 sext.w a4,a4 sw a4,0(a5) lw a5,-28(s0) slli a5,a5,2 ld a4,-40(s0) add a5,a4,a5 lw a5,0(a5) slli a5,a5,2 ld a4,-24(s0) add a5,a4,a5 lw a3,0(a5) lw a5,-28(s0) slli a5,a5,2 ld a4,-40(s0) add a5,a4,a5 lw a5,0(a5) mv a4,a3 blt a4,a5,.L3 lw a5,-28(s0) slli a5,a5,2 ld a4,-40(s0) add a5,a4,a5 lw a4,0(a5) lw a5,-32(s0) sext.w a5,a5 bge a5,a4,.L3 lw a5,-28(s0) slli a5,a5,2 ld a4,-40(s0) add a5,a4,a5 lw a5,0(a5) sw a5,-32(s0) .L3: lw a5,-28(s0) addiw a5,a5,1 sw a5,-28(s0) .L2: lw a4,-28(s0) lw a5,-44(s0) sext.w a4,a4 sext.w a5,a5 blt a4,a5,.L4 ld a0,-24(s0) call free@plt lw a5,-32(s0) mv a0,a5 ld ra,40(sp) ld s0,32(sp) addi sp,sp,48 jr ra .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
eval/problem88/code.c
.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 -56[rbp], rdi mov DWORD PTR -60[rbp], esi mov QWORD PTR -72[rbp], rdx mov DWORD PTR -64[rbp], ecx mov QWORD PTR -80[rbp], r8 mov edi, 800 call malloc@PLT mov QWORD PTR -24[rbp], rax mov DWORD PTR -36[rbp], 0 mov DWORD PTR -32[rbp], 0 jmp .L2 .L6: mov eax, DWORD PTR -32[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -72[rbp] add rax, rdx mov eax, DWORD PTR [rax] sub eax, 1 mov DWORD PTR -28[rbp], eax jmp .L3 .L5: mov eax, DWORD PTR -32[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -56[rbp] add rax, rdx mov rax, QWORD PTR [rax] mov edx, DWORD PTR -28[rbp] movsx rdx, edx sal rdx, 2 add rax, rdx mov eax, DWORD PTR [rax] cmp DWORD PTR -64[rbp], eax jne .L4 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, 8 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 edx, DWORD PTR -32[rbp] mov DWORD PTR [rax], edx 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] lea rdx, 4[rax] mov eax, DWORD PTR -28[rbp] mov DWORD PTR [rdx], eax add DWORD PTR -36[rbp], 1 .L4: sub DWORD PTR -28[rbp], 1 .L3: cmp DWORD PTR -28[rbp], 0 jns .L5 add DWORD PTR -32[rbp], 1 .L2: mov eax, DWORD PTR -32[rbp] cmp eax, DWORD PTR -60[rbp] jl .L6 mov rax, QWORD PTR -80[rbp] mov edx, DWORD PTR -36[rbp] mov DWORD PTR [rax], edx mov rax, QWORD PTR -24[rbp] add rsp, 72 pop rbx pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 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" .option pic .text .align 1 .globl func0 .type func0, @function func0: addi sp,sp,-96 sd ra,88(sp) sd s0,80(sp) sd s1,72(sp) addi s0,sp,96 sd a0,-72(s0) mv a5,a1 sd a2,-88(s0) sd a4,-96(s0) sw a5,-76(s0) mv a5,a3 sw a5,-80(s0) li a0,800 call malloc@plt mv a5,a0 sd a5,-40(s0) sw zero,-52(s0) sw zero,-48(s0) j .L2 .L6: lw a5,-48(s0) slli a5,a5,2 ld a4,-88(s0) add a5,a4,a5 lw a5,0(a5) addiw a5,a5,-1 sw a5,-44(s0) j .L3 .L5: lw a5,-48(s0) slli a5,a5,3 ld a4,-72(s0) add a5,a4,a5 ld a4,0(a5) lw a5,-44(s0) slli a5,a5,2 add a5,a4,a5 lw a4,0(a5) lw a5,-80(s0) sext.w a5,a5 bne a5,a4,.L4 lw a5,-52(s0) slli a5,a5,3 ld a4,-40(s0) add s1,a4,a5 li a0,8 call malloc@plt mv a5,a0 sd a5,0(s1) lw a5,-52(s0) slli a5,a5,3 ld a4,-40(s0) add a5,a4,a5 ld a5,0(a5) lw a4,-48(s0) sw a4,0(a5) lw a5,-52(s0) slli a5,a5,3 ld a4,-40(s0) add a5,a4,a5 ld a5,0(a5) addi a5,a5,4 lw a4,-44(s0) sw a4,0(a5) lw a5,-52(s0) addiw a5,a5,1 sw a5,-52(s0) .L4: lw a5,-44(s0) addiw a5,a5,-1 sw a5,-44(s0) .L3: lw a5,-44(s0) sext.w a5,a5 bgez a5,.L5 lw a5,-48(s0) addiw a5,a5,1 sw a5,-48(s0) .L2: lw a4,-48(s0) lw a5,-76(s0) sext.w a4,a4 sext.w a5,a5 blt a4,a5,.L6 ld a5,-96(s0) lw a4,-52(s0) sw a4,0(a5) ld a5,-40(s0) mv a0,a5 ld ra,88(sp) ld s0,80(sp) ld s1,72(sp) addi sp,sp,96 jr ra .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
eval/problem45/code.c
.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, 80 mov DWORD PTR -68[rbp], edi mov DWORD PTR -72[rbp], esi mov QWORD PTR -80[rbp], rdx mov rax, QWORD PTR fs:40 mov QWORD PTR -8[rbp], rax xor eax, eax mov DWORD PTR -56[rbp], 0 jmp .L2 .L3: mov eax, DWORD PTR -68[rbp] cdq idiv DWORD PTR -72[rbp] mov eax, edx lea ecx, 48[rax] mov eax, DWORD PTR -56[rbp] lea edx, 1[rax] mov DWORD PTR -56[rbp], edx mov edx, ecx cdqe mov BYTE PTR -48[rbp+rax], dl mov eax, DWORD PTR -68[rbp] cdq idiv DWORD PTR -72[rbp] mov DWORD PTR -68[rbp], eax .L2: cmp DWORD PTR -68[rbp], 0 jg .L3 mov DWORD PTR -52[rbp], 0 jmp .L4 .L5: sub DWORD PTR -56[rbp], 1 mov eax, DWORD PTR -52[rbp] lea edx, 1[rax] mov DWORD PTR -52[rbp], edx movsx rdx, eax mov rax, QWORD PTR -80[rbp] add rdx, rax mov eax, DWORD PTR -56[rbp] cdqe movzx eax, BYTE PTR -48[rbp+rax] mov BYTE PTR [rdx], al .L4: cmp DWORD PTR -56[rbp], 0 jg .L5 mov eax, DWORD PTR -52[rbp] movsx rdx, eax mov rax, QWORD PTR -80[rbp] add rax, rdx mov BYTE PTR [rax], 0 nop mov rax, QWORD PTR -8[rbp] xor rax, QWORD PTR fs:40 je .L6 call __stack_chk_fail@PLT .L6: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 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" .option pic .text .align 1 .globl func0 .type func0, @function func0: addi sp,sp,-96 sd ra,88(sp) sd s0,80(sp) addi s0,sp,96 mv a5,a0 mv a4,a1 sd a2,-96(s0) sw a5,-84(s0) mv a5,a4 sw a5,-88(s0) la a5,__stack_chk_guard ld a5,0(a5) sd a5,-24(s0) sw zero,-72(s0) j .L2 .L3: lw a4,-84(s0) lw a5,-88(s0) remw a5,a4,a5 sext.w a5,a5 andi a4,a5,0xff lw a5,-72(s0) addiw a3,a5,1 sw a3,-72(s0) addiw a4,a4,48 andi a4,a4,0xff addi a3,s0,-16 add a5,a3,a5 sb a4,-48(a5) lw a4,-84(s0) lw a5,-88(s0) divw a5,a4,a5 sw a5,-84(s0) .L2: lw a5,-84(s0) sext.w a5,a5 bgtz a5,.L3 sw zero,-68(s0) j .L4 .L5: lw a5,-72(s0) addiw a5,a5,-1 sw a5,-72(s0) lw a5,-68(s0) addiw a4,a5,1 sw a4,-68(s0) mv a4,a5 ld a5,-96(s0) add a5,a5,a4 lw a4,-72(s0) addi a3,s0,-16 add a4,a3,a4 lbu a4,-48(a4) sb a4,0(a5) .L4: lw a5,-72(s0) sext.w a5,a5 bgtz a5,.L5 lw a5,-68(s0) ld a4,-96(s0) add a5,a4,a5 sb zero,0(a5) nop la a5,__stack_chk_guard ld a4,-24(s0) ld a5,0(a5) beq a4,a5,.L6 call __stack_chk_fail@plt .L6: ld ra,88(sp) ld s0,80(sp) addi sp,sp,96 jr ra .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
eval/problem124/code.c
.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 -20[rbp], edi mov QWORD PTR -32[rbp], rsi mov QWORD PTR -40[rbp], rdx mov DWORD PTR -16[rbp], 10 mov rax, QWORD PTR -40[rbp] mov DWORD PTR [rax], 1 mov rax, QWORD PTR -32[rbp] mov DWORD PTR [rax], 1 jmp .L2 .L5: mov eax, DWORD PTR -20[rbp] cdq shr edx, 31 add eax, edx and eax, 1 sub eax, edx cmp eax, 1 jne .L3 mov rax, QWORD PTR -40[rbp] mov eax, DWORD PTR [rax] cmp DWORD PTR -16[rbp], eax jg .L4 sal DWORD PTR -16[rbp] mov eax, DWORD PTR -16[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -32[rbp] mov rsi, rdx mov rdi, rax call realloc@PLT mov QWORD PTR -32[rbp], rax .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 -20[rbp] mov DWORD PTR [rdx], eax mov edx, DWORD PTR -20[rbp] mov eax, edx add eax, eax add eax, edx add eax, 1 mov DWORD PTR -20[rbp], eax jmp .L2 .L3: mov eax, DWORD PTR -20[rbp] mov edx, eax shr edx, 31 add eax, edx sar eax mov DWORD PTR -20[rbp], eax .L2: cmp DWORD PTR -20[rbp], 1 jne .L5 mov DWORD PTR -12[rbp], 1 jmp .L6 .L10: mov eax, DWORD PTR -12[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 -4[rbp], eax mov eax, DWORD PTR -12[rbp] sub eax, 1 mov DWORD PTR -8[rbp], eax jmp .L7 .L9: mov eax, DWORD PTR -8[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -32[rbp] add rax, rdx mov edx, DWORD PTR -8[rbp] movsx rdx, edx add rdx, 1 lea rcx, 0[0+rdx*4] mov rdx, QWORD PTR -32[rbp] add rdx, rcx mov eax, DWORD PTR [rax] mov DWORD PTR [rdx], eax sub DWORD PTR -8[rbp], 1 .L7: cmp DWORD PTR -8[rbp], 0 js .L8 mov eax, DWORD PTR -8[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -32[rbp] add rax, rdx mov eax, DWORD PTR [rax] cmp DWORD PTR -4[rbp], eax jl .L9 .L8: mov eax, DWORD PTR -8[rbp] cdqe add rax, 1 lea rdx, 0[0+rax*4] mov rax, QWORD PTR -32[rbp] add rdx, rax mov eax, DWORD PTR -4[rbp] mov DWORD PTR [rdx], eax add DWORD PTR -12[rbp], 1 .L6: mov rax, QWORD PTR -40[rbp] mov eax, DWORD PTR [rax] cmp DWORD PTR -12[rbp], eax jl .L10 nop nop leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 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" .option pic .text .align 1 .globl func0 .type func0, @function func0: addi sp,sp,-64 sd ra,56(sp) sd s0,48(sp) addi s0,sp,64 mv a5,a0 sd a1,-48(s0) sd a2,-56(s0) sw a5,-36(s0) li a5,10 sw a5,-32(s0) ld a5,-56(s0) li a4,1 sw a4,0(a5) ld a5,-48(s0) li a4,1 sw a4,0(a5) j .L2 .L5: lw a4,-36(s0) sraiw a5,a4,31 srliw a5,a5,31 addw a4,a4,a5 andi a4,a4,1 subw a5,a4,a5 sext.w a5,a5 mv a4,a5 li a5,1 bne a4,a5,.L3 ld a5,-56(s0) lw a4,0(a5) lw a5,-32(s0) sext.w a5,a5 bgt a5,a4,.L4 lw a5,-32(s0) slliw a5,a5,1 sw a5,-32(s0) lw a5,-32(s0) slli a5,a5,2 mv a1,a5 ld a0,-48(s0) call realloc@plt sd a0,-48(s0) .L4: ld a5,-56(s0) lw a5,0(a5) addiw a4,a5,1 sext.w a3,a4 ld a4,-56(s0) sw a3,0(a4) slli a5,a5,2 ld a4,-48(s0) add a5,a4,a5 lw a4,-36(s0) sw a4,0(a5) lw a4,-36(s0) mv a5,a4 slliw a5,a5,1 addw a5,a5,a4 sext.w a5,a5 addiw a5,a5,1 sw a5,-36(s0) j .L2 .L3: lw a5,-36(s0) srliw a4,a5,31 addw a5,a4,a5 sraiw a5,a5,1 sw a5,-36(s0) .L2: lw a5,-36(s0) sext.w a4,a5 li a5,1 bne a4,a5,.L5 li a5,1 sw a5,-28(s0) j .L6 .L10: lw a5,-28(s0) slli a5,a5,2 ld a4,-48(s0) add a5,a4,a5 lw a5,0(a5) sw a5,-20(s0) lw a5,-28(s0) addiw a5,a5,-1 sw a5,-24(s0) j .L7 .L9: lw a5,-24(s0) slli a5,a5,2 ld a4,-48(s0) add a4,a4,a5 lw a5,-24(s0) addi a5,a5,1 slli a5,a5,2 ld a3,-48(s0) add a5,a3,a5 lw a4,0(a4) sw a4,0(a5) lw a5,-24(s0) addiw a5,a5,-1 sw a5,-24(s0) .L7: lw a5,-24(s0) sext.w a5,a5 bltz a5,.L8 lw a5,-24(s0) slli a5,a5,2 ld a4,-48(s0) add a5,a4,a5 lw a4,0(a5) lw a5,-20(s0) sext.w a5,a5 blt a5,a4,.L9 .L8: lw a5,-24(s0) addi a5,a5,1 slli a5,a5,2 ld a4,-48(s0) add a5,a4,a5 lw a4,-20(s0) sw a4,0(a5) lw a5,-28(s0) addiw a5,a5,1 sw a5,-28(s0) .L6: ld a5,-56(s0) lw a4,0(a5) lw a5,-28(s0) sext.w a5,a5 blt a5,a4,.L10 nop nop ld ra,56(sp) ld s0,48(sp) addi sp,sp,64 jr ra .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits