files
stringlengths 20
22
| arm_O2
stringlengths 589
3.73k
| arm_O0
stringlengths 763
6.5k
|
---|---|---|
eval/problem145/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.global __aeabi_idivmod
.section .rodata.cst4,"aM",%progbits,4
.align 2
.LC0:
.word __stack_chk_guard
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 216
@ frame_needed = 0, uses_anonymous_args = 0
push {r4, r5, r6, r7, r8, r9, lr}
ldrb r3, [r0] @ zero_extendqisi2
ldr r2, .L22
sub sp, sp, #220
cmp r3, #47
mov r6, r0
mov r5, r1
ldr r2, [r2]
str r2, [sp, #212]
mov r2,#0
beq .L11
mov r2, r0
add r1, sp, #3
rsb ip, r0, #1
.L3:
strb r3, [r1, #1]!
add r0, ip, r2
ldrb r3, [r2, #1]! @ zero_extendqisi2
cmp r3, #47
bne .L3
add r7, r0, #1
mov r8, r7
.L2:
mov r1, #0
add r3, sp, #216
add r3, r3, r0
mov r2, #10
add r0, sp, #4
strb r1, [r3, #-212]
bl strtol
ldrb r2, [r6, r8] @ zero_extendqisi2
mov r4, r0
cmp r2, #0
beq .L12
add r3, r7, #1
add r3, r6, r3
add r0, r6, r7
add r1, sp, #107
.L5:
strb r2, [r1, #1]!
sub ip, r3, r0
ldrb r2, [r3], #1 @ zero_extendqisi2
cmp r2, #0
bne .L5
.L4:
mov r7, #0
add r3, sp, #216
add ip, r3, ip
mov r1, r7
mov r2, #10
add r0, sp, #108
strb r7, [ip, #-108]
bl strtol
ldrb r3, [r5] @ zero_extendqisi2
mov r6, r0
cmp r3, #47
beq .L13
mov r2, r5
add r0, sp, #3
rsb r1, r5, #1
.L7:
strb r3, [r0, #1]!
add ip, r1, r2
ldrb r3, [r2, #1]! @ zero_extendqisi2
cmp r3, #47
bne .L7
add r8, ip, #1
mov r9, r8
.L6:
mov r1, #0
add r3, sp, #216
mov r2, #10
add ip, r3, ip
add r0, sp, #4
strb r1, [ip, #-212]
bl strtol
ldrb r2, [r5, r9] @ zero_extendqisi2
mov r7, r0
cmp r2, #0
beq .L14
add r3, r8, #1
add r3, r5, r3
add ip, sp, #107
add r5, r5, r8
.L9:
strb r2, [ip, #1]!
sub r0, r3, r5
ldrb r2, [r3], #1 @ zero_extendqisi2
cmp r2, #0
bne .L9
.L8:
mov r1, #0
add r3, sp, #216
add r3, r3, r0
mov r2, #10
add r0, sp, #108
strb r1, [r3, #-108]
bl strtol
mov r1, r0
mul r0, r7, r4
mul r1, r6, r1
bl __aeabi_idivmod
ldr r3, .L22
clz r0, r1
ldr r2, [r3]
ldr r3, [sp, #212]
eors r2, r3, r2
mov r3, #0
lsr r0, r0, #5
bne .L21
add sp, sp, #220
@ sp needed
pop {r4, r5, r6, r7, r8, r9, pc}
.L11:
mov r8, #1
mov r0, #0
mov r7, r8
b .L2
.L12:
mov ip, r2
b .L4
.L13:
mov r9, #1
mov ip, r7
mov r8, r9
b .L6
.L14:
mov r0, r2
b .L8
.L21:
bl __stack_chk_fail
.L23:
.align 2
.L22:
.word .LC0
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.global __aeabi_idivmod
.section .rodata
.align 2
.LC0:
.word __stack_chk_guard
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 248
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #248
str r0, [fp, #-248]
str r1, [fp, #-252]
ldr r3, .L14
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
mov r3, #0
str r3, [fp, #-240]
b .L2
.L3:
ldr r3, [fp, #-240]
ldr r2, [fp, #-248]
add r3, r2, r3
ldrb r1, [r3] @ zero_extendqisi2
sub r2, fp, #216
ldr r3, [fp, #-240]
add r3, r2, r3
mov r2, r1
strb r2, [r3]
ldr r3, [fp, #-240]
add r3, r3, #1
str r3, [fp, #-240]
.L2:
ldr r3, [fp, #-240]
ldr r2, [fp, #-248]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #47
bne .L3
sub r2, fp, #216
ldr r3, [fp, #-240]
add r3, r2, r3
mov r2, #0
strb r2, [r3]
sub r3, fp, #216
mov r0, r3
bl atoi
str r0, [fp, #-232]
mov r3, #0
str r3, [fp, #-236]
ldr r3, [fp, #-240]
add r3, r3, #1
str r3, [fp, #-240]
b .L4
.L5:
ldr r3, [fp, #-240]
ldr r2, [fp, #-248]
add r3, r2, r3
ldrb r1, [r3] @ zero_extendqisi2
sub r2, fp, #112
ldr r3, [fp, #-236]
add r3, r2, r3
mov r2, r1
strb r2, [r3]
ldr r3, [fp, #-240]
add r3, r3, #1
str r3, [fp, #-240]
ldr r3, [fp, #-236]
add r3, r3, #1
str r3, [fp, #-236]
.L4:
ldr r3, [fp, #-240]
ldr r2, [fp, #-248]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
bne .L5
sub r2, fp, #112
ldr r3, [fp, #-236]
add r3, r2, r3
mov r2, #0
strb r2, [r3]
sub r3, fp, #112
mov r0, r3
bl atoi
str r0, [fp, #-228]
mov r3, #0
str r3, [fp, #-240]
b .L6
.L7:
ldr r3, [fp, #-240]
ldr r2, [fp, #-252]
add r3, r2, r3
ldrb r1, [r3] @ zero_extendqisi2
sub r2, fp, #216
ldr r3, [fp, #-240]
add r3, r2, r3
mov r2, r1
strb r2, [r3]
ldr r3, [fp, #-240]
add r3, r3, #1
str r3, [fp, #-240]
.L6:
ldr r3, [fp, #-240]
ldr r2, [fp, #-252]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #47
bne .L7
sub r2, fp, #216
ldr r3, [fp, #-240]
add r3, r2, r3
mov r2, #0
strb r2, [r3]
sub r3, fp, #216
mov r0, r3
bl atoi
str r0, [fp, #-224]
mov r3, #0
str r3, [fp, #-236]
ldr r3, [fp, #-240]
add r3, r3, #1
str r3, [fp, #-240]
b .L8
.L9:
ldr r3, [fp, #-240]
ldr r2, [fp, #-252]
add r3, r2, r3
ldrb r1, [r3] @ zero_extendqisi2
sub r2, fp, #112
ldr r3, [fp, #-236]
add r3, r2, r3
mov r2, r1
strb r2, [r3]
ldr r3, [fp, #-240]
add r3, r3, #1
str r3, [fp, #-240]
ldr r3, [fp, #-236]
add r3, r3, #1
str r3, [fp, #-236]
.L8:
ldr r3, [fp, #-240]
ldr r2, [fp, #-252]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
bne .L9
sub r2, fp, #112
ldr r3, [fp, #-236]
add r3, r2, r3
mov r2, #0
strb r2, [r3]
sub r3, fp, #112
mov r0, r3
bl atoi
str r0, [fp, #-220]
ldr r3, [fp, #-232]
ldr r2, [fp, #-224]
mul r0, r2, r3
ldr r3, [fp, #-228]
ldr r2, [fp, #-220]
mul r3, r2, r3
mov r1, r3
bl __aeabi_idivmod
mov r3, r1
cmp r3, #0
bne .L10
mov r3, #1
b .L12
.L10:
mov r3, #0
.L12:
ldr r2, .L14
ldr r1, [r2]
ldr r2, [fp, #-8]
eors r1, r2, r1
mov r2, #0
beq .L13
bl __stack_chk_fail
.L13:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L15:
.align 2
.L14:
.word .LC0
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem44/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
cmp r1, #0
ble .L5
push {r4, lr}
mov r4, #0
sub lr, r0, #4
.L4:
add r4, r4, #1
cmp r1, r4
beq .L6
ldr ip, [lr, #4]!
mov r3, r4
mov r2, lr
b .L3
.L14:
cmp r1, r3
beq .L4
.L3:
ldr r0, [r2, #4]!
add r3, r3, #1
cmn ip, r0
bne .L14
mov r0, #1
pop {r4, pc}
.L6:
mov r0, #0
pop {r4, pc}
.L5:
mov r0, #0
bx lr
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #20
str r0, [fp, #-16]
str r1, [fp, #-20]
mov r3, #0
str r3, [fp, #-12]
b .L2
.L7:
ldr r3, [fp, #-12]
add r3, r3, #1
str r3, [fp, #-8]
b .L3
.L6:
ldr r3, [fp, #-12]
lsl r3, r3, #2
ldr r2, [fp, #-16]
add r3, r2, r3
ldr r2, [r3]
ldr r3, [fp, #-8]
lsl r3, r3, #2
ldr r1, [fp, #-16]
add r3, r1, r3
ldr r3, [r3]
add r3, r2, r3
cmp r3, #0
bne .L4
mov r3, #1
b .L5
.L4:
ldr r3, [fp, #-8]
add r3, r3, #1
str r3, [fp, #-8]
.L3:
ldr r2, [fp, #-8]
ldr r3, [fp, #-20]
cmp r2, r3
blt .L6
ldr r3, [fp, #-12]
add r3, r3, #1
str r3, [fp, #-12]
.L2:
ldr r2, [fp, #-12]
ldr r3, [fp, #-20]
cmp r2, r3
blt .L7
mov r3, #0
.L5:
mov r0, r3
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem55/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
push {r4, r5, r6, r7, r8, r9, r10, lr}
mov r8, r1
mov r6, r0
bl strlen
mov r5, r0
mov r0, r8
bl strlen
cmp r5, #0
subne r4, r6, #1
subne r1, r8, #1
addne r9, r4, r5
addne lr, r1, r0
beq .L26
.L11:
cmp r0, #0
popeq {r4, r5, r6, r7, r8, r9, r10, pc}
mov r7, r1
mov r3, r1
ldrb ip, [r4, #1]! @ zero_extendqisi2
b .L5
.L27:
cmp r3, lr
beq .L23
.L5:
ldrb r2, [r3, #1]! @ zero_extendqisi2
cmp r2, ip
bne .L27
cmp r4, r9
bne .L11
.L12:
mov lr, r7
rsb r8, r8, #1
.L13:
cmp r5, #0
beq .L23
sub r3, r6, #1
ldrb r1, [lr, #1]! @ zero_extendqisi2
add ip, r3, r5
b .L9
.L28:
cmp r3, ip
beq .L23
.L9:
ldrb r2, [r3, #1]! @ zero_extendqisi2
cmp r2, r1
bne .L28
add r3, r8, lr
cmp r0, r3
bgt .L13
.L24:
mov r0, #1
pop {r4, r5, r6, r7, r8, r9, r10, pc}
.L23:
mov r0, #0
pop {r4, r5, r6, r7, r8, r9, r10, pc}
.L26:
cmp r0, #0
beq .L24
sub r7, r8, #1
b .L12
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 40
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #40
str r0, [fp, #-40]
str r1, [fp, #-44]
ldr r0, [fp, #-40]
bl strlen
mov r3, r0
str r3, [fp, #-12]
ldr r0, [fp, #-44]
bl strlen
mov r3, r0
str r3, [fp, #-8]
mov r3, #0
str r3, [fp, #-28]
b .L2
.L9:
mov r3, #0
strb r3, [fp, #-30]
mov r3, #0
str r3, [fp, #-24]
b .L3
.L6:
ldr r3, [fp, #-28]
ldr r2, [fp, #-40]
add r3, r2, r3
ldrb r2, [r3] @ zero_extendqisi2
ldr r3, [fp, #-24]
ldr r1, [fp, #-44]
add r3, r1, r3
ldrb r3, [r3] @ zero_extendqisi2
cmp r2, r3
bne .L4
mov r3, #1
strb r3, [fp, #-30]
b .L5
.L4:
ldr r3, [fp, #-24]
add r3, r3, #1
str r3, [fp, #-24]
.L3:
ldr r2, [fp, #-24]
ldr r3, [fp, #-8]
cmp r2, r3
blt .L6
.L5:
ldrb r3, [fp, #-30]
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L7
mov r3, #0
b .L8
.L7:
ldr r3, [fp, #-28]
add r3, r3, #1
str r3, [fp, #-28]
.L2:
ldr r2, [fp, #-28]
ldr r3, [fp, #-12]
cmp r2, r3
blt .L9
mov r3, #0
str r3, [fp, #-20]
b .L10
.L16:
mov r3, #0
strb r3, [fp, #-29]
mov r3, #0
str r3, [fp, #-16]
b .L11
.L14:
ldr r3, [fp, #-20]
ldr r2, [fp, #-44]
add r3, r2, r3
ldrb r2, [r3] @ zero_extendqisi2
ldr r3, [fp, #-16]
ldr r1, [fp, #-40]
add r3, r1, r3
ldrb r3, [r3] @ zero_extendqisi2
cmp r2, r3
bne .L12
mov r3, #1
strb r3, [fp, #-29]
b .L13
.L12:
ldr r3, [fp, #-16]
add r3, r3, #1
str r3, [fp, #-16]
.L11:
ldr r2, [fp, #-16]
ldr r3, [fp, #-12]
cmp r2, r3
blt .L14
.L13:
ldrb r3, [fp, #-29]
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L15
mov r3, #0
b .L8
.L15:
ldr r3, [fp, #-20]
add r3, r3, #1
str r3, [fp, #-20]
.L10:
ldr r2, [fp, #-20]
ldr r3, [fp, #-8]
cmp r2, r3
blt .L16
mov r3, #1
.L8:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem61/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
@ link register save eliminated.
add r3, r0, #1
mul r0, r3, r0
add r0, r0, r0, lsr #31
asr r0, r0, #1
bx lr
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #12
str r0, [fp, #-8]
ldr r3, [fp, #-8]
add r3, r3, #1
ldr r2, [fp, #-8]
mul r3, r2, r3
lsr r2, r3, #31
add r3, r2, r3
asr r3, r3, #1
mov r0, r3
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem10/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
cmp r1, #0
ble .L10
push {r4, r5, r6, lr}
lsl r5, r1, #2
mov r4, r0
mov r0, r5
bl malloc
cmp r0, #0
beq .L2
ldr r3, [r4]
mov ip, r4
mov r1, r3
sub lr, r5, #4
add lr, r0, lr
sub r2, r0, #4
.L4:
cmp r3, r1
movlt r3, r1
str r3, [r2, #4]!
cmp r2, lr
popeq {r4, r5, r6, pc}
ldr r1, [ip, #4]!
b .L4
.L2:
mov r0, #0
pop {r4, r5, r6, pc}
.L10:
mov r0, #0
bx lr
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 24
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #24
str r0, [fp, #-24]
str r1, [fp, #-28]
ldr r3, [fp, #-28]
cmp r3, #0
bgt .L2
mov r3, #0
b .L3
.L2:
ldr r3, [fp, #-28]
lsl r3, r3, #2
mov r0, r3
bl malloc
mov r3, r0
str r3, [fp, #-8]
ldr r3, [fp, #-8]
cmp r3, #0
bne .L4
mov r3, #0
b .L3
.L4:
ldr r3, [fp, #-24]
ldr r3, [r3]
str r3, [fp, #-16]
mov r3, #0
str r3, [fp, #-12]
b .L5
.L7:
ldr r3, [fp, #-12]
lsl r3, r3, #2
ldr r2, [fp, #-24]
add r3, r2, r3
ldr r3, [r3]
ldr r2, [fp, #-16]
cmp r2, r3
bge .L6
ldr r3, [fp, #-12]
lsl r3, r3, #2
ldr r2, [fp, #-24]
add r3, r2, r3
ldr r3, [r3]
str r3, [fp, #-16]
.L6:
ldr r3, [fp, #-12]
lsl r3, r3, #2
ldr r2, [fp, #-8]
add r3, r2, r3
ldr r2, [fp, #-16]
str r2, [r3]
ldr r3, [fp, #-12]
add r3, r3, #1
str r3, [fp, #-12]
.L5:
ldr r2, [fp, #-12]
ldr r3, [fp, #-28]
cmp r2, r3
blt .L7
ldr r3, [fp, #-8]
.L3:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem56/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.section .rodata.cst4,"aM",%progbits,4
.align 2
.LC0:
.word __stack_chk_guard
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 4008
@ frame_needed = 0, uses_anonymous_args = 0
push {r4, lr}
sub sp, sp, #4000
sub sp, sp, #8
ldr r3, .L12
mov r4, r0
mov r2, #4000
mov r1, #0
add r0, sp, #4
ldr r3, [r3]
str r3, [sp, #4004]
mov r3,#0
bl memset
mov r2, #1
cmp r4, r2
str r2, [sp, #8]
lslle r4, r4, #2
ble .L2
mov ip, sp
mov r1, #0
add ip, ip, r4, lsl #2
add r3, sp, #8
lsl r4, r4, #2
b .L3
.L10:
ldr r1, [r3], #4
.L3:
add r2, r2, r1
cmp r3, ip
str r2, [r3, #4]
bne .L10
.L2:
add r3, sp, #4000
add r3, r3, #8
add r4, r3, r4
ldr r3, .L12
ldr r0, [r4, #-4004]
ldr r2, [r3]
ldr r3, [sp, #4004]
eors r2, r3, r2
mov r3, #0
bne .L11
add sp, sp, #4000
add sp, sp, #8
@ sp needed
pop {r4, pc}
.L11:
bl __stack_chk_fail
.L13:
.align 2
.L12:
.word .LC0
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.section .rodata
.align 2
.LC0:
.word __stack_chk_guard
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 4016
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #4016
str r0, [fp, #-4016]
ldr r3, .L6
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
sub r3, fp, #4000
sub r3, r3, #4
sub r3, r3, #4
mov r2, #4000
mov r1, #0
mov r0, r3
bl memset
mov r3, #0
str r3, [fp, #-4008]
mov r3, #1
str r3, [fp, #-4004]
mov r3, #2
str r3, [fp, #-4012]
b .L2
.L3:
ldr r3, [fp, #-4012]
sub r3, r3, #1
lsl r3, r3, #2
sub r2, fp, #4
add r3, r2, r3
ldr r2, [r3, #-4004]
ldr r3, [fp, #-4012]
sub r3, r3, #2
lsl r3, r3, #2
sub r1, fp, #4
add r3, r1, r3
ldr r3, [r3, #-4004]
add r2, r2, r3
ldr r3, [fp, #-4012]
lsl r3, r3, #2
sub r1, fp, #4
add r3, r1, r3
str r2, [r3, #-4004]
ldr r3, [fp, #-4012]
add r3, r3, #1
str r3, [fp, #-4012]
.L2:
ldr r2, [fp, #-4012]
ldr r3, [fp, #-4016]
cmp r2, r3
ble .L3
ldr r3, [fp, #-4016]
lsl r3, r3, #2
sub r2, fp, #4
add r3, r2, r3
ldr r3, [r3, #-4004]
ldr r2, .L6
ldr r1, [r2]
ldr r2, [fp, #-8]
eors r1, r2, r1
mov r2, #0
beq .L5
bl __stack_chk_fail
.L5:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L7:
.align 2
.L6:
.word .LC0
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem11/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
push {r4, r5, r6, r7, r8, r9, r10, lr}
mov r9, r0
bl strlen
mov r4, r0
lsl r0, r0, #1
add r0, r0, #1
bl malloc
subs r8, r0, #0
beq .L1
cmp r4, #0
beq .L8
mov r5, #0
sub r7, r4, #1
sub r10, r9, #1
.L13:
sub r0, r4, r5
add r0, r0, r0, lsr #31
cmp r5, r7
asr r0, r0, #1
beq .L6
add r6, r9, r4
mov ip, r6
add lr, r10, r5
b .L5
.L27:
cmp r0, r3
ble .L6
.L5:
ldrb r2, [ip, #-1]! @ zero_extendqisi2
ldrb r1, [lr, #1]! @ zero_extendqisi2
sub r3, r9, ip
cmp r1, r2
add r3, r3, r4
beq .L27
add r5, r5, #1
cmp r4, r5
bne .L13
mov r2, r4
mov r1, r9
mov r0, r8
bl strncpy
add r7, r8, r7
.L10:
ldrb r3, [r6, #-1]! @ zero_extendqisi2
cmp r6, r9
strb r3, [r7, #1]!
bne .L10
.L8:
mov r3, #0
strb r3, [r8, r4, lsl #1]
.L1:
mov r0, r8
pop {r4, r5, r6, r7, r8, r9, r10, pc}
.L6:
mov r2, r4
mov r1, r9
mov r0, r8
bl strncpy
cmp r5, #0
addne r7, r8, r7
addne r3, r9, r5
beq .L12
.L7:
ldrb r2, [r3, #-1]! @ zero_extendqisi2
cmp r9, r3
strb r2, [r7, #1]!
bne .L7
.L12:
mov r3, #0
add r4, r8, r4
mov r0, r8
strb r3, [r4, r5]
pop {r4, r5, r6, r7, r8, r9, r10, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 32
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #32
str r0, [fp, #-32]
ldr r0, [fp, #-32]
bl strlen
mov r3, r0
str r3, [fp, #-12]
ldr r3, [fp, #-12]
lsl r3, r3, #1
add r3, r3, #1
mov r0, r3
bl malloc
mov r3, r0
str r3, [fp, #-8]
ldr r3, [fp, #-8]
cmp r3, #0
bne .L2
mov r3, #0
b .L3
.L2:
mov r3, #0
str r3, [fp, #-24]
b .L4
.L12:
mov r3, #1
str r3, [fp, #-16]
mov r3, #0
str r3, [fp, #-20]
b .L5
.L8:
ldr r2, [fp, #-24]
ldr r3, [fp, #-20]
add r3, r2, r3
mov r2, r3
ldr r3, [fp, #-32]
add r3, r3, r2
ldrb r2, [r3] @ zero_extendqisi2
ldr r3, [fp, #-12]
sub r1, r3, #1
ldr r3, [fp, #-20]
sub r3, r1, r3
mov r1, r3
ldr r3, [fp, #-32]
add r3, r3, r1
ldrb r3, [r3] @ zero_extendqisi2
cmp r2, r3
beq .L6
mov r3, #0
str r3, [fp, #-16]
b .L7
.L6:
ldr r3, [fp, #-20]
add r3, r3, #1
str r3, [fp, #-20]
.L5:
ldr r2, [fp, #-12]
ldr r3, [fp, #-24]
sub r3, r2, r3
lsr r2, r3, #31
add r3, r2, r3
asr r3, r3, #1
mov r2, r3
ldr r3, [fp, #-20]
cmp r3, r2
blt .L8
.L7:
ldr r3, [fp, #-16]
cmp r3, #0
beq .L9
ldr r3, [fp, #-12]
mov r2, r3
ldr r1, [fp, #-32]
ldr r0, [fp, #-8]
bl strncpy
mov r3, #0
str r3, [fp, #-20]
b .L10
.L11:
ldr r2, [fp, #-24]
ldr r3, [fp, #-20]
sub r3, r2, r3
sub r3, r3, #1
ldr r2, [fp, #-32]
add r2, r2, r3
ldr r1, [fp, #-12]
ldr r3, [fp, #-20]
add r3, r1, r3
mov r1, r3
ldr r3, [fp, #-8]
add r3, r3, r1
ldrb r2, [r2] @ zero_extendqisi2
strb r2, [r3]
ldr r3, [fp, #-20]
add r3, r3, #1
str r3, [fp, #-20]
.L10:
ldr r2, [fp, #-20]
ldr r3, [fp, #-24]
cmp r2, r3
blt .L11
ldr r2, [fp, #-12]
ldr r3, [fp, #-24]
add r3, r2, r3
mov r2, r3
ldr r3, [fp, #-8]
add r3, r3, r2
mov r2, #0
strb r2, [r3]
ldr r3, [fp, #-8]
b .L3
.L9:
ldr r3, [fp, #-24]
add r3, r3, #1
str r3, [fp, #-24]
.L4:
ldr r2, [fp, #-24]
ldr r3, [fp, #-12]
cmp r2, r3
blt .L12
ldr r3, [fp, #-12]
mov r2, r3
ldr r1, [fp, #-32]
ldr r0, [fp, #-8]
bl strncpy
mov r3, #0
str r3, [fp, #-20]
b .L13
.L14:
ldr r2, [fp, #-12]
ldr r3, [fp, #-20]
sub r3, r2, r3
sub r3, r3, #1
ldr r2, [fp, #-32]
add r2, r2, r3
ldr r1, [fp, #-12]
ldr r3, [fp, #-20]
add r3, r1, r3
mov r1, r3
ldr r3, [fp, #-8]
add r3, r3, r1
ldrb r2, [r2] @ zero_extendqisi2
strb r2, [r3]
ldr r3, [fp, #-20]
add r3, r3, #1
str r3, [fp, #-20]
.L13:
ldr r2, [fp, #-20]
ldr r3, [fp, #-12]
cmp r2, r3
blt .L14
ldr r3, [fp, #-12]
lsl r3, r3, #1
mov r2, r3
ldr r3, [fp, #-8]
add r3, r3, r2
mov r2, #0
strb r2, [r3]
ldr r3, [fp, #-8]
.L3:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem5/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.global __aeabi_i2f
.global __aeabi_fadd
.global __aeabi_fsub
.global __aeabi_fdiv
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
push {r4, r5, r6, r7, r8, lr}
mov r6, r1
mov r5, r0
mov r0, r1
bl __aeabi_i2f
cmp r6, #0
mov r7, r0
ble .L6
sub r5, r5, #4
mov r4, r5
mov r3, #0
add r6, r5, r6, lsl #2
.L3:
mov r0, r3
ldr r1, [r4, #4]! @ float
bl __aeabi_fadd
cmp r6, r4
mov r3, r0
bne .L3
mov r1, r7
bl __aeabi_fdiv
mov r4, #0
mov r8, r0
.L5:
mov r1, r8
ldr r0, [r5, #4]! @ float
bl __aeabi_fsub
bic r1, r0, #-2147483648
mov r0, r4
bl __aeabi_fadd
cmp r6, r5
mov r4, r0
bne .L5
.L2:
mov r1, r7
mov r0, r4
bl __aeabi_fdiv
pop {r4, r5, r6, r7, r8, pc}
.L6:
mov r4, #0
b .L2
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.global __aeabi_fadd
.global __aeabi_i2f
.global __aeabi_fdiv
.global __aeabi_fsub
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 24
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #24
str r0, [fp, #-24]
str r1, [fp, #-28]
mov r3, #0
str r3, [fp, #-20] @ float
mov r3, #0
str r3, [fp, #-12]
mov r3, #0
str r3, [fp, #-12]
b .L2
.L3:
ldr r3, [fp, #-12]
lsl r3, r3, #2
ldr r2, [fp, #-24]
add r3, r2, r3
ldr r3, [r3] @ float
mov r1, r3
ldr r0, [fp, #-20] @ float
bl __aeabi_fadd
mov r3, r0
str r3, [fp, #-20] @ float
ldr r3, [fp, #-12]
add r3, r3, #1
str r3, [fp, #-12]
.L2:
ldr r2, [fp, #-12]
ldr r3, [fp, #-28]
cmp r2, r3
blt .L3
ldr r0, [fp, #-28]
bl __aeabi_i2f
mov r3, r0
mov r1, r3
ldr r0, [fp, #-20] @ float
bl __aeabi_fdiv
mov r3, r0
str r3, [fp, #-8] @ float
mov r3, #0
str r3, [fp, #-16] @ float
mov r3, #0
str r3, [fp, #-12]
b .L4
.L5:
ldr r3, [fp, #-12]
lsl r3, r3, #2
ldr r2, [fp, #-24]
add r3, r2, r3
ldr r3, [r3] @ float
ldr r1, [fp, #-8] @ float
mov r0, r3
bl __aeabi_fsub
mov r3, r0
bic r3, r3, #-2147483648
mov r1, r3
ldr r0, [fp, #-16] @ float
bl __aeabi_fadd
mov r3, r0
str r3, [fp, #-16] @ float
ldr r3, [fp, #-12]
add r3, r3, #1
str r3, [fp, #-12]
.L4:
ldr r2, [fp, #-12]
ldr r3, [fp, #-28]
cmp r2, r3
blt .L5
ldr r0, [fp, #-28]
bl __aeabi_i2f
mov r3, r0
mov r1, r3
ldr r0, [fp, #-16] @ float
bl __aeabi_fdiv
mov r3, r0
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem15/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 0, uses_anonymous_args = 0
push {r4, r5, r6, r7, r8, r9, r10, fp, lr}
sub sp, sp, #12
str r1, [sp, #4]
mov r5, r0
bl strlen
mov r9, r0
lsl r0, r0, #2
bl malloc
mov r7, #0
mov r10, r0
add r0, r9, #1
bl malloc
cmp r9, r7
mov r4, r0
strb r7, [r0]
beq .L2
sub r5, r5, #1
add r8, r5, r9
sub r6, r10, #4
.L3:
mov r0, r4
bl strlen
mov fp, r0
mov r0, r4
add r1, fp, #2
bl realloc
mov r3, r0
ldrb r1, [r5, #1]! @ zero_extendqisi2
mov r4, r0
strb r1, [r3, fp]!
strb r7, [r3, #1]
bl strlen
add fp, r0, #1
mov r0, fp
bl malloc
mov r2, fp
mov r1, r4
str r0, [r6, #4]!
bl memcpy
cmp r5, r8
bne .L3
.L2:
mov r0, r4
bl free
mov r0, r10
ldr r3, [sp, #4]
str r9, [r3]
add sp, sp, #12
@ sp needed
pop {r4, r5, r6, r7, r8, r9, r10, fp, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 32
@ frame_needed = 1, uses_anonymous_args = 0
push {r4, fp, lr}
add fp, sp, #8
sub sp, sp, #36
str r0, [fp, #-40]
str r1, [fp, #-44]
ldr r0, [fp, #-40]
bl strlen
mov r3, r0
str r3, [fp, #-24]
ldr r3, [fp, #-24]
lsl r3, r3, #2
mov r0, r3
bl malloc
mov r3, r0
str r3, [fp, #-20]
ldr r3, [fp, #-24]
add r3, r3, #1
mov r0, r3
bl malloc
mov r3, r0
str r3, [fp, #-32]
ldr r3, [fp, #-32]
mov r2, #0
strb r2, [r3]
mov r3, #0
str r3, [fp, #-28]
b .L2
.L3:
ldr r0, [fp, #-32]
bl strlen
str r0, [fp, #-16]
ldr r3, [fp, #-16]
add r3, r3, #2
mov r1, r3
ldr r0, [fp, #-32]
bl realloc
str r0, [fp, #-32]
ldr r3, [fp, #-28]
ldr r2, [fp, #-40]
add r2, r2, r3
ldr r1, [fp, #-32]
ldr r3, [fp, #-16]
add r3, r1, r3
ldrb r2, [r2] @ zero_extendqisi2
strb r2, [r3]
ldr r3, [fp, #-16]
add r3, r3, #1
ldr r2, [fp, #-32]
add r3, r2, r3
mov r2, #0
strb r2, [r3]
ldr r0, [fp, #-32]
bl strlen
mov r3, r0
add r1, r3, #1
ldr r3, [fp, #-28]
lsl r3, r3, #2
ldr r2, [fp, #-20]
add r4, r2, r3
mov r0, r1
bl malloc
mov r3, r0
str r3, [r4]
ldr r3, [fp, #-28]
lsl r3, r3, #2
ldr r2, [fp, #-20]
add r3, r2, r3
ldr r3, [r3]
ldr r1, [fp, #-32]
mov r0, r3
bl strcpy
ldr r3, [fp, #-28]
add r3, r3, #1
str r3, [fp, #-28]
.L2:
ldr r2, [fp, #-28]
ldr r3, [fp, #-24]
cmp r2, r3
blt .L3
ldr r0, [fp, #-32]
bl free
ldr r3, [fp, #-44]
ldr r2, [fp, #-24]
str r2, [r3]
ldr r3, [fp, #-20]
mov r0, r3
sub sp, fp, #8
@ sp needed
pop {r4, fp, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem41/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
cmp r1, #0
ble .L7
push {r4, r5, r6, lr}
mov r6, #0
.L6:
add r6, r6, #1
cmp r1, r6
beq .L8
mov r5, r0
mov r4, r6
.L5:
add r4, r4, #1
cmp r1, r4
beq .L3
ldr ip, [r5, #4]!
ldr lr, [r0]
mov r3, r4
mov r2, r5
add lr, lr, ip
b .L4
.L17:
cmp r1, r3
beq .L5
.L4:
ldr ip, [r2, #4]!
add r3, r3, #1
cmn lr, ip
bne .L17
mov r0, #1
pop {r4, r5, r6, pc}
.L8:
mov r0, #0
pop {r4, r5, r6, pc}
.L3:
add r0, r0, #4
b .L6
.L7:
mov r0, #0
bx lr
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 24
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #28
str r0, [fp, #-24]
str r1, [fp, #-28]
mov r3, #0
str r3, [fp, #-16]
b .L2
.L9:
ldr r3, [fp, #-16]
add r3, r3, #1
str r3, [fp, #-12]
b .L3
.L8:
ldr r3, [fp, #-12]
add r3, r3, #1
str r3, [fp, #-8]
b .L4
.L7:
ldr r3, [fp, #-16]
lsl r3, r3, #2
ldr r2, [fp, #-24]
add r3, r2, r3
ldr r2, [r3]
ldr r3, [fp, #-12]
lsl r3, r3, #2
ldr r1, [fp, #-24]
add r3, r1, r3
ldr r3, [r3]
add r2, r2, r3
ldr r3, [fp, #-8]
lsl r3, r3, #2
ldr r1, [fp, #-24]
add r3, r1, r3
ldr r3, [r3]
add r3, r2, r3
cmp r3, #0
bne .L5
mov r3, #1
b .L6
.L5:
ldr r3, [fp, #-8]
add r3, r3, #1
str r3, [fp, #-8]
.L4:
ldr r2, [fp, #-8]
ldr r3, [fp, #-28]
cmp r2, r3
blt .L7
ldr r3, [fp, #-12]
add r3, r3, #1
str r3, [fp, #-12]
.L3:
ldr r2, [fp, #-12]
ldr r3, [fp, #-28]
cmp r2, r3
blt .L8
ldr r3, [fp, #-16]
add r3, r3, #1
str r3, [fp, #-16]
.L2:
ldr r2, [fp, #-16]
ldr r3, [fp, #-28]
cmp r2, r3
blt .L9
mov r3, #0
.L6:
mov r0, r3
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem107/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
push {r4, lr}
mov r4, r0
lsl r0, r0, #2
bl malloc
cmp r4, #0
pople {r4, pc}
mov r3, #1
mov r1, #0
mov r2, r3
add ip, r4, r3
sub lr, r0, #4
.L5:
mul r2, r3, r2
tst r3, #1
add r1, r1, r3
streq r2, [lr, r3, lsl #2]
strne r1, [lr, r3, lsl #2]
add r3, r3, #1
cmp ip, r3
bne .L5
pop {r4, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 24
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #24
str r0, [fp, #-24]
ldr r3, [fp, #-24]
lsl r3, r3, #2
mov r0, r3
bl malloc
mov r3, r0
str r3, [fp, #-8]
mov r3, #0
str r3, [fp, #-20]
mov r3, #1
str r3, [fp, #-16]
mov r3, #1
str r3, [fp, #-12]
b .L2
.L5:
ldr r2, [fp, #-20]
ldr r3, [fp, #-12]
add r3, r2, r3
str r3, [fp, #-20]
ldr r3, [fp, #-16]
ldr r2, [fp, #-12]
mul r3, r2, r3
str r3, [fp, #-16]
ldr r3, [fp, #-12]
and r3, r3, #1
cmp r3, #0
bne .L3
ldr r3, [fp, #-12]
sub r3, r3, #-1073741823
lsl r3, r3, #2
ldr r2, [fp, #-8]
add r3, r2, r3
ldr r2, [fp, #-16]
str r2, [r3]
b .L4
.L3:
ldr r3, [fp, #-12]
sub r3, r3, #-1073741823
lsl r3, r3, #2
ldr r2, [fp, #-8]
add r3, r2, r3
ldr r2, [fp, #-20]
str r2, [r3]
.L4:
ldr r3, [fp, #-12]
add r3, r3, #1
str r3, [fp, #-12]
.L2:
ldr r2, [fp, #-12]
ldr r3, [fp, #-24]
cmp r2, r3
ble .L5
ldr r3, [fp, #-8]
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem110/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
cmp r1, #0
beq .L7
cmp r1, #1
push {r4, lr}
ble .L8
mov r3, r0
mov lr, #0
sub r4, r0, #4
add r4, r4, r1, lsl #2
.L5:
ldm r3, {r2, ip}
add r3, r3, #4
cmp ip, r2
addlt lr, lr, #1
cmp r3, r4
bne .L5
.L3:
sub r1, r1, #-1073741823
ldr r2, [r0, r1, lsl #2]
ldr r3, [r0]
cmp r2, r3
addgt lr, lr, #1
cmp lr, #1
movgt r0, #0
movle r0, #1
pop {r4, pc}
.L7:
mov r0, #1
bx lr
.L8:
mov lr, #0
b .L3
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #20
str r0, [fp, #-16]
str r1, [fp, #-20]
mov r3, #0
str r3, [fp, #-12]
ldr r3, [fp, #-20]
cmp r3, #0
bne .L2
mov r3, #1
b .L3
.L2:
mov r3, #1
str r3, [fp, #-8]
b .L4
.L6:
ldr r3, [fp, #-8]
lsl r3, r3, #2
ldr r2, [fp, #-16]
add r3, r2, r3
ldr r2, [r3]
ldr r3, [fp, #-8]
sub r3, r3, #-1073741823
lsl r3, r3, #2
ldr r1, [fp, #-16]
add r3, r1, r3
ldr r3, [r3]
cmp r2, r3
bge .L5
ldr r3, [fp, #-12]
add r3, r3, #1
str r3, [fp, #-12]
.L5:
ldr r3, [fp, #-8]
add r3, r3, #1
str r3, [fp, #-8]
.L4:
ldr r2, [fp, #-8]
ldr r3, [fp, #-20]
cmp r2, r3
blt .L6
ldr r3, [fp, #-20]
sub r3, r3, #-1073741823
lsl r3, r3, #2
ldr r2, [fp, #-16]
add r3, r2, r3
ldr r2, [r3]
ldr r3, [fp, #-16]
ldr r3, [r3]
cmp r2, r3
ble .L7
ldr r3, [fp, #-12]
add r3, r3, #1
str r3, [fp, #-12]
.L7:
ldr r3, [fp, #-12]
cmp r3, #1
bgt .L8
mov r3, #1
b .L3
.L8:
mov r3, #0
.L3:
mov r0, r3
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem119/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.section .rodata.str1.4,"aMS",%progbits,1
.align 2
.LC0:
.ascii "AEIOUaeiou\000"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
push {r4, r5, r6, r7, r8, lr}
mov r7, r0
bl strlen
sub r3, r0, #2
cmp r3, #0
ble .L2
add r4, r7, r0
ldr r6, .L12
add r7, r7, #2
b .L5
.L3:
sub r4, r4, #1
cmp r7, r4
beq .L2
.L5:
ldrb r5, [r4, #-2] @ zero_extendqisi2
mov r0, r6
mov r1, r5
bl strchr
cmp r0, #0
beq .L3
mov r0, r6
ldrb r1, [r4, #-1] @ zero_extendqisi2
bl strchr
cmp r0, #0
bne .L3
mov r0, r6
ldrb r1, [r4, #-3] @ zero_extendqisi2
bl strchr
cmp r0, #0
bne .L3
ldr r3, .L12+4
ldr r0, .L12+4
strb r5, [r3]
pop {r4, r5, r6, r7, r8, pc}
.L2:
mov r2, #0
ldr r3, .L12+4
ldr r0, .L12+4
strb r2, [r3]
pop {r4, r5, r6, r7, r8, pc}
.L13:
.align 2
.L12:
.word .LC0
.word .LANCHOR0
.size func0, .-func0
.bss
.align 2
.set .LANCHOR0,. + 0
.type out.5042, %object
.size out.5042, 2
out.5042:
.space 2
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.section .rodata
.align 2
.LC0:
.ascii "AEIOUaeiou\000"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 24
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #24
str r0, [fp, #-24]
ldr r3, .L6
str r3, [fp, #-12]
ldr r0, [fp, #-24]
bl strlen
str r0, [fp, #-8]
ldr r3, [fp, #-8]
sub r3, r3, #2
str r3, [fp, #-16]
b .L2
.L5:
ldr r3, [fp, #-16]
ldr r2, [fp, #-24]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
mov r1, r3
ldr r0, [fp, #-12]
bl strchr
mov r3, r0
cmp r3, #0
beq .L3
ldr r3, [fp, #-16]
add r3, r3, #1
ldr r2, [fp, #-24]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
mov r1, r3
ldr r0, [fp, #-12]
bl strchr
mov r3, r0
cmp r3, #0
bne .L3
ldr r3, [fp, #-16]
sub r3, r3, #1
ldr r2, [fp, #-24]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
mov r1, r3
ldr r0, [fp, #-12]
bl strchr
mov r3, r0
cmp r3, #0
bne .L3
ldr r3, [fp, #-16]
ldr r2, [fp, #-24]
add r3, r2, r3
ldrb r2, [r3] @ zero_extendqisi2
ldr r3, .L6+4
strb r2, [r3]
ldr r3, .L6+4
b .L4
.L3:
ldr r3, [fp, #-16]
sub r3, r3, #1
str r3, [fp, #-16]
.L2:
ldr r3, [fp, #-16]
cmp r3, #0
bgt .L5
ldr r3, .L6+4
mov r2, #0
strb r2, [r3]
ldr r3, .L6+4
.L4:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L7:
.align 2
.L6:
.word .LC0
.word out.4781
.size func0, .-func0
.local out.4781
.comm out.4781,2,4
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem153/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
cmp r3, #0
bxle lr
sub r0, r0, #4
str lr, [sp, #-4]!
sub r1, r1, #4
add lr, r0, r3, lsl #2
sub r2, r2, #4
.L3:
ldr r3, [r0, #4]!
ldr ip, [r1, #4]!
sub r3, r3, ip
cmp r3, #0
rsblt r3, r3, #0
cmp r0, lr
str r3, [r2, #4]!
bne .L3
ldr pc, [sp], #4
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 24
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #28
str r0, [fp, #-16]
str r1, [fp, #-20]
str r2, [fp, #-24]
str r3, [fp, #-28]
mov r3, #0
str r3, [fp, #-8]
b .L2
.L3:
ldr r3, [fp, #-8]
lsl r3, r3, #2
ldr r2, [fp, #-16]
add r3, r2, r3
ldr r2, [r3]
ldr r3, [fp, #-8]
lsl r3, r3, #2
ldr r1, [fp, #-20]
add r3, r1, r3
ldr r3, [r3]
sub r2, r2, r3
ldr r3, [fp, #-8]
lsl r3, r3, #2
ldr r1, [fp, #-24]
add r3, r1, r3
cmp r2, #0
rsblt r2, r2, #0
str r2, [r3]
ldr r3, [fp, #-8]
add r3, r3, #1
str r3, [fp, #-8]
.L2:
ldr r2, [fp, #-8]
ldr r3, [fp, #-28]
cmp r2, r3
blt .L3
nop
nop
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem136/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
cmp r1, #1
ble .L5
mov r2, r0
mov r3, #1
mvn r0, #0
str lr, [sp, #-4]!
.L4:
ldm r2, {ip, lr}
cmp lr, ip
movlt r0, r3
add r3, r3, #1
cmp r1, r3
add r2, r2, #4
bne .L4
ldr pc, [sp], #4
.L5:
mvn r0, #0
bx lr
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #20
str r0, [fp, #-16]
str r1, [fp, #-20]
mvn r3, #0
str r3, [fp, #-12]
mov r3, #1
str r3, [fp, #-8]
b .L2
.L4:
ldr r3, [fp, #-8]
lsl r3, r3, #2
ldr r2, [fp, #-16]
add r3, r2, r3
ldr r2, [r3]
ldr r3, [fp, #-8]
sub r3, r3, #-1073741823
lsl r3, r3, #2
ldr r1, [fp, #-16]
add r3, r1, r3
ldr r3, [r3]
cmp r2, r3
bge .L3
ldr r3, [fp, #-8]
str r3, [fp, #-12]
.L3:
ldr r3, [fp, #-8]
add r3, r3, #1
str r3, [fp, #-8]
.L2:
ldr r2, [fp, #-8]
ldr r3, [fp, #-20]
cmp r2, r3
blt .L4
ldr r3, [fp, #-12]
mov r0, r3
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem151/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.global __aeabi_idivmod
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
cmp r0, #1
push {r4, r5, r6, r7, r8, lr}
movle r6, #0
movgt r6, #1
cmp r0, #3
mov r7, r1
mov r8, r2
ble .L2
mov r5, r0
mov r4, #2
.L4:
mov r1, r4
mov r0, r5
bl __aeabi_idivmod
add r4, r4, #1
mul r3, r4, r4
cmp r1, #0
moveq r6, #0
cmp r3, r5
ble .L4
.L2:
cmp r6, #0
moveq r0, r8
movne r0, r7
pop {r4, r5, r6, r7, r8, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.global __aeabi_idivmod
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 24
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #24
str r0, [fp, #-16]
str r1, [fp, #-20]
str r2, [fp, #-24]
mov r3, #1
str r3, [fp, #-12]
ldr r3, [fp, #-16]
cmp r3, #1
bgt .L2
mov r3, #0
str r3, [fp, #-12]
.L2:
mov r3, #2
str r3, [fp, #-8]
b .L3
.L5:
ldr r3, [fp, #-16]
ldr r1, [fp, #-8]
mov r0, r3
bl __aeabi_idivmod
mov r3, r1
cmp r3, #0
bne .L4
mov r3, #0
str r3, [fp, #-12]
.L4:
ldr r3, [fp, #-8]
add r3, r3, #1
str r3, [fp, #-8]
.L3:
ldr r3, [fp, #-8]
mov r2, r3
mul r2, r3, r2
mov r3, r2
ldr r2, [fp, #-16]
cmp r2, r3
bge .L5
ldr r3, [fp, #-12]
cmp r3, #0
beq .L6
ldr r3, [fp, #-20]
b .L7
.L6:
ldr r3, [fp, #-24]
.L7:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem158/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.global __aeabi_fmul
.global __aeabi_fadd
.global __aeabi_fsub
.global __aeabi_f2d
.global __aeabi_dcmplt
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
push {r4, r5, r6, lr}
mov r5, r1
mov r1, r0
mov r6, r2
bl __aeabi_fmul
mov r1, r5
mov r4, r0
mov r0, r5
bl __aeabi_fmul
mov r1, r6
mov r5, r0
mov r0, r6
bl __aeabi_fmul
mov r6, r0
mov r1, r5
mov r0, r4
bl __aeabi_fadd
mov r1, r6
bl __aeabi_fsub
bic r0, r0, #-2147483648
bl __aeabi_f2d
ldr r2, .L8
ldr r3, .L8+4
bl __aeabi_dcmplt
cmp r0, #0
bne .L5
mov r1, r6
mov r0, r4
bl __aeabi_fadd
mov r1, r5
bl __aeabi_fsub
bic r0, r0, #-2147483648
bl __aeabi_f2d
ldr r2, .L8
ldr r3, .L8+4
bl __aeabi_dcmplt
cmp r0, #0
bne .L5
mov r1, r6
mov r0, r5
bl __aeabi_fadd
mov r1, r4
bl __aeabi_fsub
bic r0, r0, #-2147483648
bl __aeabi_f2d
ldr r2, .L8
ldr r3, .L8+4
bl __aeabi_dcmplt
subs r0, r0, #0
movne r0, #1
pop {r4, r5, r6, pc}
.L5:
mov r0, #1
pop {r4, r5, r6, pc}
.L9:
.align 2
.L8:
.word -350469331
.word 1058682594
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.global __aeabi_fmul
.global __aeabi_fadd
.global __aeabi_fsub
.global __aeabi_f2d
.global __aeabi_dcmplt
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
push {r4, fp, lr}
add fp, sp, #8
sub sp, sp, #20
str r0, [fp, #-16] @ float
str r1, [fp, #-20] @ float
str r2, [fp, #-24] @ float
ldr r1, [fp, #-16] @ float
ldr r0, [fp, #-16] @ float
bl __aeabi_fmul
mov r3, r0
mov r4, r3
ldr r1, [fp, #-20] @ float
ldr r0, [fp, #-20] @ float
bl __aeabi_fmul
mov r3, r0
mov r1, r3
mov r0, r4
bl __aeabi_fadd
mov r3, r0
mov r4, r3
ldr r1, [fp, #-24] @ float
ldr r0, [fp, #-24] @ float
bl __aeabi_fmul
mov r3, r0
mov r1, r3
mov r0, r4
bl __aeabi_fsub
mov r3, r0
bic r3, r3, #-2147483648
mov r0, r3
bl __aeabi_f2d
ldr r2, .L7
ldr r3, .L7+4
bl __aeabi_dcmplt
mov r3, r0
cmp r3, #0
bne .L2
ldr r1, [fp, #-16] @ float
ldr r0, [fp, #-16] @ float
bl __aeabi_fmul
mov r3, r0
mov r4, r3
ldr r1, [fp, #-24] @ float
ldr r0, [fp, #-24] @ float
bl __aeabi_fmul
mov r3, r0
mov r1, r3
mov r0, r4
bl __aeabi_fadd
mov r3, r0
mov r4, r3
ldr r1, [fp, #-20] @ float
ldr r0, [fp, #-20] @ float
bl __aeabi_fmul
mov r3, r0
mov r1, r3
mov r0, r4
bl __aeabi_fsub
mov r3, r0
bic r3, r3, #-2147483648
mov r0, r3
bl __aeabi_f2d
ldr r2, .L7
ldr r3, .L7+4
bl __aeabi_dcmplt
mov r3, r0
cmp r3, #0
bne .L2
ldr r1, [fp, #-20] @ float
ldr r0, [fp, #-20] @ float
bl __aeabi_fmul
mov r3, r0
mov r4, r3
ldr r1, [fp, #-24] @ float
ldr r0, [fp, #-24] @ float
bl __aeabi_fmul
mov r3, r0
mov r1, r3
mov r0, r4
bl __aeabi_fadd
mov r3, r0
mov r4, r3
ldr r1, [fp, #-16] @ float
ldr r0, [fp, #-16] @ float
bl __aeabi_fmul
mov r3, r0
mov r1, r3
mov r0, r4
bl __aeabi_fsub
mov r3, r0
bic r3, r3, #-2147483648
mov r0, r3
bl __aeabi_f2d
ldr r2, .L7
ldr r3, .L7+4
bl __aeabi_dcmplt
mov r3, r0
cmp r3, #0
beq .L6
.L2:
mov r3, #1
b .L5
.L6:
mov r3, #0
.L5:
mov r0, r3
sub sp, fp, #8
@ sp needed
pop {r4, fp, pc}
.L8:
.align 2
.L7:
.word -350469331
.word 1058682594
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem6/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
push {r4, r5, r6, lr}
subs r6, r1, #0
ble .L2
mov r4, r0
lsl r0, r6, #1
sub r0, r0, #1
str r0, [r3]
lsl r0, r0, #2
mov r5, r2
bl malloc
ldr r3, [r4]
cmp r6, #1
str r3, [r0]
popeq {r4, r5, r6, pc}
mov r3, r4
mov ip, r0
sub r2, r4, #4
add r2, r2, r6, lsl #2
.L4:
ldr r1, [r3, #4]!
str r5, [ip, #4]
cmp r2, r3
str r1, [ip, #8]!
bne .L4
pop {r4, r5, r6, pc}
.L2:
mov r0, #0
pop {r4, r5, r6, lr}
str r0, [r3]
b malloc
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 32
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #32
str r0, [fp, #-24]
str r1, [fp, #-28]
str r2, [fp, #-32]
str r3, [fp, #-36]
ldr r3, [fp, #-28]
cmp r3, #0
ble .L2
ldr r3, [fp, #-28]
lsl r3, r3, #1
sub r3, r3, #1
b .L3
.L2:
mov r3, #0
.L3:
ldr r2, [fp, #-36]
str r3, [r2]
ldr r3, [fp, #-36]
ldr r3, [r3]
lsl r3, r3, #2
mov r0, r3
bl malloc
mov r3, r0
str r3, [fp, #-8]
ldr r3, [fp, #-28]
cmp r3, #0
ble .L4
ldr r3, [fp, #-24]
ldr r2, [r3]
ldr r3, [fp, #-8]
str r2, [r3]
.L4:
mov r3, #1
str r3, [fp, #-16]
mov r3, #1
str r3, [fp, #-12]
b .L5
.L6:
ldr r3, [fp, #-12]
add r2, r3, #1
str r2, [fp, #-12]
lsl r3, r3, #2
ldr r2, [fp, #-8]
add r3, r2, r3
ldr r2, [fp, #-32]
str r2, [r3]
ldr r3, [fp, #-16]
lsl r3, r3, #2
ldr r2, [fp, #-24]
add r2, r2, r3
ldr r3, [fp, #-12]
add r1, r3, #1
str r1, [fp, #-12]
lsl r3, r3, #2
ldr r1, [fp, #-8]
add r3, r1, r3
ldr r2, [r2]
str r2, [r3]
ldr r3, [fp, #-16]
add r3, r3, #1
str r3, [fp, #-16]
.L5:
ldr r2, [fp, #-16]
ldr r3, [fp, #-28]
cmp r2, r3
blt .L6
ldr r3, [fp, #-8]
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem106/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.section .rodata.str1.4,"aMS",%progbits,1
.align 2
.LC0:
.ascii "\000"
.align 2
.LC1:
.ascii "One\000"
.align 2
.LC2:
.ascii "Two\000"
.align 2
.LC3:
.ascii "Three\000"
.align 2
.LC4:
.ascii "Four\000"
.align 2
.LC5:
.ascii "Five\000"
.align 2
.LC6:
.ascii "Six\000"
.align 2
.LC7:
.ascii "Seven\000"
.align 2
.LC8:
.ascii "Eight\000"
.align 2
.LC9:
.ascii "Nine\000"
.text
.section .rodata.cst4,"aM",%progbits,4
.align 2
.LC12:
.word __stack_chk_guard
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 48
@ frame_needed = 0, uses_anonymous_args = 0
mov ip, r1
push {r4, r5, r6, r7, r8, lr}
ldr r5, .L26
sub sp, sp, #48
add lr, sp, #4
mov r8, r0
mov r7, r2
mov r6, r3
ldmia r5!, {r0, r1, r2, r3}
stmia lr!, {r0, r1, r2, r3}
ldmia r5!, {r0, r1, r2, r3}
stmia lr!, {r0, r1, r2, r3}
ldm r5, {r0, r1}
ldr r3, .L26+4
sub r5, ip, #1
cmp r5, #0
ldr r3, [r3]
str r3, [sp, #44]
mov r3,#0
stm lr, {r0, r1}
ble .L2
mov r3, r5
sub r4, r8, #4
add r4, r4, ip, lsl #2
lsl r2, ip, #2
.L3:
mov r1, r8
.L5:
ldr ip, [r1]
ldr lr, [r1, #4]!
cmp ip, lr
strgt lr, [r1, #-4]
strgt ip, [r1]
cmp r1, r4
bne .L5
subs r3, r3, #1
sub r4, r1, #4
bne .L3
str r3, [r6]
.L16:
add r8, r8, r2
mov r2, r8
mov r3, r5
mov r0, #0
.L9:
ldr r1, [r2, #-4]!
sub r1, r1, #1
cmp r1, #8
addls r0, r0, #1
strls r0, [r6]
subs r3, r3, #1
bcs .L9
lsl r0, r0, #2
bl malloc
ldr ip, [r6]
mov r2, #0
str r0, [r7]
b .L12
.L14:
ldr r3, [r8, #-4]!
sub r1, r3, #1
cmp r1, #8
addls r1, sp, #48
addls r3, r1, r3, lsl #2
ldrls r3, [r3, #-44]
strls r3, [r0, r2, lsl #2]
addls r2, r2, #1
subs r5, r5, #1
bcc .L1
.L12:
cmp ip, r2
bgt .L14
.L1:
ldr r3, .L26+4
ldr r2, [r3]
ldr r3, [sp, #44]
eors r2, r3, r2
mov r3, #0
bne .L24
add sp, sp, #48
@ sp needed
pop {r4, r5, r6, r7, r8, pc}
.L2:
mov r0, #0
str r0, [r6]
beq .L25
bl malloc
str r0, [r7]
b .L1
.L25:
lsl r2, ip, #2
b .L16
.L24:
bl __stack_chk_fail
.L27:
.align 2
.L26:
.word .LANCHOR0
.word .LC12
.size func0, .-func0
.section .rodata
.align 2
.set .LANCHOR0,. + 0
.LC11:
.word .LC0
.word .LC1
.word .LC2
.word .LC3
.word .LC4
.word .LC5
.word .LC6
.word .LC7
.word .LC8
.word .LC9
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.section .rodata
.align 2
.LC0:
.ascii "\000"
.align 2
.LC1:
.ascii "One\000"
.align 2
.LC2:
.ascii "Two\000"
.align 2
.LC3:
.ascii "Three\000"
.align 2
.LC4:
.ascii "Four\000"
.align 2
.LC5:
.ascii "Five\000"
.align 2
.LC6:
.ascii "Six\000"
.align 2
.LC7:
.ascii "Seven\000"
.align 2
.LC8:
.ascii "Eight\000"
.align 2
.LC9:
.ascii "Nine\000"
.text
.section .rodata
.align 2
.LC11:
.word .LC0
.word .LC1
.word .LC2
.word .LC3
.word .LC4
.word .LC5
.word .LC6
.word .LC7
.word .LC8
.word .LC9
.align 2
.LC12:
.word __stack_chk_guard
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 72
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #72
str r0, [fp, #-64]
str r1, [fp, #-68]
str r2, [fp, #-72]
str r3, [fp, #-76]
ldr r3, .L16
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
ldr r3, .L16+4
sub ip, fp, #48
mov lr, r3
ldmia lr!, {r0, r1, r2, r3}
stmia ip!, {r0, r1, r2, r3}
ldmia lr!, {r0, r1, r2, r3}
stmia ip!, {r0, r1, r2, r3}
ldm lr, {r0, r1}
stm ip, {r0, r1}
mov r3, #0
str r3, [fp, #-60]
b .L2
.L6:
mov r3, #0
str r3, [fp, #-56]
b .L3
.L5:
ldr r3, [fp, #-56]
lsl r3, r3, #2
ldr r2, [fp, #-64]
add r3, r2, r3
ldr r2, [r3]
ldr r3, [fp, #-56]
add r3, r3, #1
lsl r3, r3, #2
ldr r1, [fp, #-64]
add r3, r1, r3
ldr r3, [r3]
cmp r2, r3
ble .L4
ldr r3, [fp, #-56]
lsl r3, r3, #2
ldr r2, [fp, #-64]
add r3, r2, r3
ldr r3, [r3]
str r3, [fp, #-52]
ldr r3, [fp, #-56]
add r3, r3, #1
lsl r3, r3, #2
ldr r2, [fp, #-64]
add r2, r2, r3
ldr r3, [fp, #-56]
lsl r3, r3, #2
ldr r1, [fp, #-64]
add r3, r1, r3
ldr r2, [r2]
str r2, [r3]
ldr r3, [fp, #-56]
add r3, r3, #1
lsl r3, r3, #2
ldr r2, [fp, #-64]
add r3, r2, r3
ldr r2, [fp, #-52]
str r2, [r3]
.L4:
ldr r3, [fp, #-56]
add r3, r3, #1
str r3, [fp, #-56]
.L3:
ldr r2, [fp, #-68]
ldr r3, [fp, #-60]
sub r3, r2, r3
sub r3, r3, #1
ldr r2, [fp, #-56]
cmp r2, r3
blt .L5
ldr r3, [fp, #-60]
add r3, r3, #1
str r3, [fp, #-60]
.L2:
ldr r3, [fp, #-68]
sub r3, r3, #1
ldr r2, [fp, #-60]
cmp r2, r3
blt .L6
ldr r3, [fp, #-76]
mov r2, #0
str r2, [r3]
ldr r3, [fp, #-68]
sub r3, r3, #1
str r3, [fp, #-60]
b .L7
.L9:
ldr r3, [fp, #-60]
lsl r3, r3, #2
ldr r2, [fp, #-64]
add r3, r2, r3
ldr r3, [r3]
cmp r3, #0
ble .L8
ldr r3, [fp, #-60]
lsl r3, r3, #2
ldr r2, [fp, #-64]
add r3, r2, r3
ldr r3, [r3]
cmp r3, #9
bgt .L8
ldr r3, [fp, #-76]
ldr r3, [r3]
add r2, r3, #1
ldr r3, [fp, #-76]
str r2, [r3]
.L8:
ldr r3, [fp, #-60]
sub r3, r3, #1
str r3, [fp, #-60]
.L7:
ldr r3, [fp, #-60]
cmp r3, #0
bge .L9
ldr r3, [fp, #-76]
ldr r3, [r3]
lsl r3, r3, #2
mov r0, r3
bl malloc
mov r3, r0
mov r2, r3
ldr r3, [fp, #-72]
str r2, [r3]
ldr r3, [fp, #-68]
sub r3, r3, #1
str r3, [fp, #-60]
mov r3, #0
str r3, [fp, #-56]
b .L10
.L13:
ldr r3, [fp, #-60]
lsl r3, r3, #2
ldr r2, [fp, #-64]
add r3, r2, r3
ldr r3, [r3]
cmp r3, #0
ble .L11
ldr r3, [fp, #-60]
lsl r3, r3, #2
ldr r2, [fp, #-64]
add r3, r2, r3
ldr r3, [r3]
cmp r3, #9
bgt .L11
ldr r3, [fp, #-60]
lsl r3, r3, #2
ldr r2, [fp, #-64]
add r3, r2, r3
ldr r1, [r3]
ldr r3, [fp, #-72]
ldr r2, [r3]
ldr r3, [fp, #-56]
add r0, r3, #1
str r0, [fp, #-56]
lsl r3, r3, #2
add r2, r2, r3
lsl r3, r1, #2
sub r1, fp, #4
add r3, r1, r3
ldr r3, [r3, #-44]
str r3, [r2]
.L11:
ldr r3, [fp, #-60]
sub r3, r3, #1
str r3, [fp, #-60]
.L10:
ldr r3, [fp, #-60]
cmp r3, #0
blt .L15
ldr r3, [fp, #-76]
ldr r3, [r3]
ldr r2, [fp, #-56]
cmp r2, r3
blt .L13
.L15:
nop
ldr r3, .L16
ldr r2, [r3]
ldr r3, [fp, #-8]
eors r2, r3, r2
mov r3, #0
beq .L14
bl __stack_chk_fail
.L14:
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L17:
.align 2
.L16:
.word .LC12
.word .LC11
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem47/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.section .rodata.cst4,"aM",%progbits,4
.align 2
.LC0:
.word __stack_chk_guard
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 408
@ frame_needed = 0, uses_anonymous_args = 0
mov r1, #0
mov r3, #2
push {r4, lr}
ldr r2, .L12
sub sp, sp, #408
cmp r0, #3
ldr r2, [r2]
str r2, [sp, #404]
mov r2,#0
lslle r0, r0, r3
str r1, [sp, #4]
str r1, [sp, #8]
str r1, [sp, #16]
str r3, [sp, #12]
ble .L2
sub r2, sp, #8
add r4, r2, r0, lsl #2
mov ip, r3
mov lr, r1
mov r3, r1
lsl r0, r0, #2
add r2, sp, #8
b .L3
.L10:
ldr ip, [r2, #8]
ldr lr, [r2, #4]
ldr r1, [r2], #4
.L3:
add r3, r3, ip
add r3, r3, lr
add r3, r3, r1
cmp r2, r4
str r3, [r2, #12]
bne .L10
.L2:
add r3, sp, #408
add r0, r3, r0
ldr r3, .L12
ldr r0, [r0, #-404]
ldr r2, [r3]
ldr r3, [sp, #404]
eors r2, r3, r2
mov r3, #0
bne .L11
add sp, sp, #408
@ sp needed
pop {r4, pc}
.L11:
bl __stack_chk_fail
.L13:
.align 2
.L12:
.word .LC0
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.section .rodata
.align 2
.LC0:
.word __stack_chk_guard
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 416
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #416
str r0, [fp, #-416]
ldr r3, .L6
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
mov r3, #0
str r3, [fp, #-408]
mov r3, #0
str r3, [fp, #-404]
mov r3, #2
str r3, [fp, #-400]
mov r3, #0
str r3, [fp, #-396]
mov r3, #4
str r3, [fp, #-412]
b .L2
.L3:
ldr r3, [fp, #-412]
sub r3, r3, #1
lsl r3, r3, #2
sub r2, fp, #4
add r3, r2, r3
ldr r2, [r3, #-404]
ldr r3, [fp, #-412]
sub r3, r3, #2
lsl r3, r3, #2
sub r1, fp, #4
add r3, r1, r3
ldr r3, [r3, #-404]
add r2, r2, r3
ldr r3, [fp, #-412]
sub r3, r3, #3
lsl r3, r3, #2
sub r1, fp, #4
add r3, r1, r3
ldr r3, [r3, #-404]
add r2, r2, r3
ldr r3, [fp, #-412]
sub r3, r3, #4
lsl r3, r3, #2
sub r1, fp, #4
add r3, r1, r3
ldr r3, [r3, #-404]
add r2, r2, r3
ldr r3, [fp, #-412]
lsl r3, r3, #2
sub r1, fp, #4
add r3, r1, r3
str r2, [r3, #-404]
ldr r3, [fp, #-412]
add r3, r3, #1
str r3, [fp, #-412]
.L2:
ldr r2, [fp, #-412]
ldr r3, [fp, #-416]
cmp r2, r3
ble .L3
ldr r3, [fp, #-416]
lsl r3, r3, #2
sub r2, fp, #4
add r3, r2, r3
ldr r3, [r3, #-404]
ldr r2, .L6
ldr r1, [r2]
ldr r2, [fp, #-8]
eors r1, r2, r1
mov r2, #0
beq .L5
bl __stack_chk_fail
.L5:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L7:
.align 2
.L6:
.word .LC0
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem92/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
push {r4, r5, r6, lr}
ldrb r4, [r0] @ zero_extendqisi2
cmp r4, #0
beq .L9
mov r5, r0
bl __ctype_b_loc
mov r3, r0
mov r0, #0
mov r1, r5
mov lr, r0
mov r2, #1
ldr r5, [r3]
b .L7
.L20:
cmp lr, #0
addne r0, r0, #1
cmp ip, #0
bne .L10
.L8:
cmp r4, #63
cmpne r4, #46
moveq r3, #1
movne r3, #0
cmp r4, #33
movne r4, r3
orreq r4, r3, #1
cmp r4, #0
movne r2, #1
mov lr, #0
.L6:
ldrb r4, [r1, #1]! @ zero_extendqisi2
cmp r4, #0
popeq {r4, r5, r6, pc}
.L7:
lsl r3, r4, #1
ldrh r3, [r5, r3]
cmp r4, #73
movne ip, #0
andeq ip, r2, #1
ands r3, r3, #8192
bne .L20
cmp ip, #0
moveq r2, ip
beq .L8
mov r2, r3
.L5:
mov lr, #1
b .L6
.L10:
mov r2, #1
b .L5
.L9:
mov r0, r4
pop {r4, r5, r6, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 24
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #24
str r0, [fp, #-24]
mov r3, #1
str r3, [fp, #-20]
mov r3, #0
str r3, [fp, #-16]
mov r3, #0
str r3, [fp, #-12]
mov r3, #0
str r3, [fp, #-8]
b .L2
.L9:
bl __ctype_b_loc
mov r3, r0
ldr r2, [r3]
ldr r3, [fp, #-8]
ldr r1, [fp, #-24]
add r3, r1, r3
ldrb r3, [r3] @ zero_extendqisi2
lsl r3, r3, #1
add r3, r2, r3
ldrh r3, [r3]
and r3, r3, #8192
cmp r3, #0
beq .L3
ldr r3, [fp, #-16]
cmp r3, #0
beq .L3
mov r3, #0
str r3, [fp, #-16]
ldr r3, [fp, #-12]
add r3, r3, #1
str r3, [fp, #-12]
.L3:
ldr r3, [fp, #-8]
ldr r2, [fp, #-24]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #73
bne .L4
ldr r3, [fp, #-20]
cmp r3, #0
beq .L4
mov r3, #1
str r3, [fp, #-16]
b .L5
.L4:
bl __ctype_b_loc
mov r3, r0
ldr r2, [r3]
ldr r3, [fp, #-8]
ldr r1, [fp, #-24]
add r3, r1, r3
ldrb r3, [r3] @ zero_extendqisi2
lsl r3, r3, #1
add r3, r2, r3
ldrh r3, [r3]
and r3, r3, #8192
cmp r3, #0
bne .L5
mov r3, #0
str r3, [fp, #-16]
.L5:
bl __ctype_b_loc
mov r3, r0
ldr r2, [r3]
ldr r3, [fp, #-8]
ldr r1, [fp, #-24]
add r3, r1, r3
ldrb r3, [r3] @ zero_extendqisi2
lsl r3, r3, #1
add r3, r2, r3
ldrh r3, [r3]
and r3, r3, #8192
cmp r3, #0
bne .L6
mov r3, #0
str r3, [fp, #-20]
.L6:
ldr r3, [fp, #-8]
ldr r2, [fp, #-24]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #46
beq .L7
ldr r3, [fp, #-8]
ldr r2, [fp, #-24]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #63
beq .L7
ldr r3, [fp, #-8]
ldr r2, [fp, #-24]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #33
bne .L8
.L7:
mov r3, #1
str r3, [fp, #-20]
.L8:
ldr r3, [fp, #-8]
add r3, r3, #1
str r3, [fp, #-8]
.L2:
ldr r3, [fp, #-8]
ldr r2, [fp, #-24]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
bne .L9
ldr r3, [fp, #-12]
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem52/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.section .rodata.str1.4,"aMS",%progbits,1
.align 2
.LC0:
.ascii "AEIOUaeiou\000"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
push {r4, r5, r6, r7, r8, lr}
ldrb r4, [r0] @ zero_extendqisi2
mov r5, r0
cmp r4, #0
beq .L2
mov r6, r0
ldr r7, .L11
.L4:
mov r1, r4
mov r0, r7
bl strchr
cmp r0, #0
moveq r0, r5
strbeq r4, [r0], #1
ldrb r4, [r6, #1]! @ zero_extendqisi2
moveq r5, r0
cmp r4, #0
bne .L4
.L2:
mov r3, #0
strb r3, [r5]
pop {r4, r5, r6, r7, r8, pc}
.L12:
.align 2
.L11:
.word .LC0
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.section .rodata
.align 2
.LC0:
.ascii "AEIOUaeiou\000"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #16
str r0, [fp, #-16]
ldr r3, .L5
str r3, [fp, #-8]
ldr r3, [fp, #-16]
str r3, [fp, #-12]
b .L2
.L4:
ldr r3, [fp, #-16]
ldrb r3, [r3] @ zero_extendqisi2
mov r1, r3
ldr r0, [fp, #-8]
bl strchr
mov r3, r0
cmp r3, #0
bne .L3
ldr r3, [fp, #-12]
add r2, r3, #1
str r2, [fp, #-12]
ldr r2, [fp, #-16]
ldrb r2, [r2] @ zero_extendqisi2
strb r2, [r3]
.L3:
ldr r3, [fp, #-16]
add r3, r3, #1
str r3, [fp, #-16]
.L2:
ldr r3, [fp, #-16]
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
bne .L4
ldr r3, [fp, #-12]
mov r2, #0
strb r2, [r3]
nop
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L6:
.align 2
.L5:
.word .LC0
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem24/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
@ link register save eliminated.
mov r3, r0
ldrb r0, [r0] @ zero_extendqisi2
cmp r0, #0
bxeq lr
rsb r1, r3, #1
.L3:
add r0, r1, r3
ldrb r2, [r3, #1]! @ zero_extendqisi2
cmp r2, #0
bne .L3
bx lr
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #20
str r0, [fp, #-16]
mov r3, #0
str r3, [fp, #-8]
b .L2
.L3:
ldr r3, [fp, #-8]
add r3, r3, #1
str r3, [fp, #-8]
.L2:
ldr r3, [fp, #-8]
ldr r2, [fp, #-16]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
bne .L3
ldr r3, [fp, #-8]
mov r0, r3
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem71/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
push {r4, r5, r6, r7, r8, lr}
sub r6, r1, #1
cmp r6, #0
ble .L2
mov r4, r0
mov r7, #0
sub r8, r0, #4
add r5, r8, r1, lsl #2
.L4:
add r7, r7, #1
cmp r1, r7
movgt r3, r4
ble .L7
.L3:
ldr lr, [r3, #4]!
ldr ip, [r4]
cmp ip, lr
strgt lr, [r4]
strgt ip, [r3]
cmp r5, r3
bne .L3
.L7:
cmp r6, r7
add r4, r4, #4
bne .L4
.L5:
mov r1, #0
mov ip, r8
mov r3, r1
.L8:
ldr lr, [ip, #4]!
cmp r1, r6
str lr, [r2, r3, lsl #2]
ldrne lr, [r0, r6, lsl #2]
add r4, r2, r3, lsl #2
add r5, r3, #1
subne r6, r6, #1
add r1, r1, #1
moveq r3, r5
addne r3, r3, #2
strne lr, [r4, #4]
cmp r6, r1
bge .L8
pop {r4, r5, r6, r7, r8, pc}
.L2:
subeq r8, r0, #4
popne {r4, r5, r6, r7, r8, pc}
b .L5
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 40
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #44
str r0, [fp, #-32]
str r1, [fp, #-36]
str r2, [fp, #-40]
mov r3, #0
str r3, [fp, #-28]
b .L2
.L6:
ldr r3, [fp, #-28]
add r3, r3, #1
str r3, [fp, #-24]
b .L3
.L5:
ldr r3, [fp, #-28]
lsl r3, r3, #2
ldr r2, [fp, #-32]
add r3, r2, r3
ldr r2, [r3]
ldr r3, [fp, #-24]
lsl r3, r3, #2
ldr r1, [fp, #-32]
add r3, r1, r3
ldr r3, [r3]
cmp r2, r3
ble .L4
ldr r3, [fp, #-28]
lsl r3, r3, #2
ldr r2, [fp, #-32]
add r3, r2, r3
ldr r3, [r3]
str r3, [fp, #-8]
ldr r3, [fp, #-24]
lsl r3, r3, #2
ldr r2, [fp, #-32]
add r2, r2, r3
ldr r3, [fp, #-28]
lsl r3, r3, #2
ldr r1, [fp, #-32]
add r3, r1, r3
ldr r2, [r2]
str r2, [r3]
ldr r3, [fp, #-24]
lsl r3, r3, #2
ldr r2, [fp, #-32]
add r3, r2, r3
ldr r2, [fp, #-8]
str r2, [r3]
.L4:
ldr r3, [fp, #-24]
add r3, r3, #1
str r3, [fp, #-24]
.L3:
ldr r2, [fp, #-24]
ldr r3, [fp, #-36]
cmp r2, r3
blt .L5
ldr r3, [fp, #-28]
add r3, r3, #1
str r3, [fp, #-28]
.L2:
ldr r3, [fp, #-36]
sub r3, r3, #1
ldr r2, [fp, #-28]
cmp r2, r3
blt .L6
mov r3, #0
str r3, [fp, #-20]
ldr r3, [fp, #-36]
sub r3, r3, #1
str r3, [fp, #-16]
mov r3, #0
str r3, [fp, #-12]
b .L7
.L9:
ldr r2, [fp, #-20]
ldr r3, [fp, #-16]
cmp r2, r3
bne .L8
ldr r3, [fp, #-20]
add r2, r3, #1
str r2, [fp, #-20]
lsl r3, r3, #2
ldr r2, [fp, #-32]
add r2, r2, r3
ldr r3, [fp, #-12]
add r1, r3, #1
str r1, [fp, #-12]
lsl r3, r3, #2
ldr r1, [fp, #-40]
add r3, r1, r3
ldr r2, [r2]
str r2, [r3]
b .L7
.L8:
ldr r3, [fp, #-20]
add r2, r3, #1
str r2, [fp, #-20]
lsl r3, r3, #2
ldr r2, [fp, #-32]
add r2, r2, r3
ldr r3, [fp, #-12]
add r1, r3, #1
str r1, [fp, #-12]
lsl r3, r3, #2
ldr r1, [fp, #-40]
add r3, r1, r3
ldr r2, [r2]
str r2, [r3]
ldr r3, [fp, #-16]
sub r2, r3, #1
str r2, [fp, #-16]
lsl r3, r3, #2
ldr r2, [fp, #-32]
add r2, r2, r3
ldr r3, [fp, #-12]
add r1, r3, #1
str r1, [fp, #-12]
lsl r3, r3, #2
ldr r1, [fp, #-40]
add r3, r1, r3
ldr r2, [r2]
str r2, [r3]
.L7:
ldr r2, [fp, #-20]
ldr r3, [fp, #-16]
cmp r2, r3
ble .L9
nop
nop
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem27/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
push {r4, r5, r6, r7, r8, r9, r10, lr}
lsl r8, r1, #2
mov r10, r0
mov r0, r8
mov r9, r1
mov r6, r2
bl malloc
mov r1, #4
mov r5, r0
mov r0, r9
bl calloc
mov r1, #4
mov r4, r0
mov r0, r9
bl calloc
cmp r9, #0
mov r7, r0
ble .L14
mov r1, #0
sub r0, r10, #4
mov r10, r0
mov r9, r1
add r8, r0, r8
.L9:
cmp r1, #0
ldr r2, [r10, #4]!
beq .L3
mov r3, #0
sub ip, r7, #4
b .L5
.L32:
cmp r1, r3
beq .L3
.L5:
ldr lr, [ip, #4]!
add r3, r3, #1
cmp lr, r2
bne .L32
cmp r10, r8
bne .L9
.L35:
mov r9, #0
.L13:
cmp r1, #0
ldr r2, [r0, #4]!
beq .L10
mov r3, #0
sub ip, r7, #4
b .L12
.L33:
cmp r1, r3
beq .L10
.L12:
ldr lr, [ip, #4]!
add r3, r3, #1
cmp lr, r2
bne .L33
cmp r0, r8
bne .L13
.L2:
mov r0, r4
str r9, [r6]
bl free
mov r0, r7
bl free
mov r0, r5
pop {r4, r5, r6, r7, r8, r9, r10, pc}
.L3:
cmp r9, #0
beq .L6
mov r3, #0
sub ip, r4, #4
b .L8
.L34:
cmp r9, r3
beq .L6
.L8:
ldr lr, [ip, #4]!
add r3, r3, #1
cmp lr, r2
bne .L34
cmp r10, r8
str r2, [r7, r1, lsl #2]
add r1, r1, #1
bne .L9
b .L35
.L10:
cmp r0, r8
str r2, [r5, r9, lsl #2]
add r9, r9, #1
bne .L13
b .L2
.L6:
cmp r10, r8
str r2, [r4, r9, lsl #2]
add r9, r9, #1
bne .L9
b .L35
.L14:
mov r9, #0
b .L2
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 80
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #80
str r0, [fp, #-72]
str r1, [fp, #-76]
str r2, [fp, #-80]
ldr r3, [fp, #-76]
lsl r3, r3, #2
mov r0, r3
bl malloc
mov r3, r0
str r3, [fp, #-24]
ldr r3, [fp, #-76]
mov r1, #4
mov r0, r3
bl calloc
mov r3, r0
str r3, [fp, #-20]
ldr r3, [fp, #-76]
mov r1, #4
mov r0, r3
bl calloc
mov r3, r0
str r3, [fp, #-16]
mov r3, #0
str r3, [fp, #-68]
mov r3, #0
str r3, [fp, #-64]
mov r3, #0
str r3, [fp, #-60]
mov r3, #0
str r3, [fp, #-56]
b .L2
.L14:
ldr r3, [fp, #-56]
lsl r3, r3, #2
ldr r2, [fp, #-72]
add r3, r2, r3
ldr r3, [r3]
str r3, [fp, #-8]
mov r3, #0
str r3, [fp, #-52]
mov r3, #0
str r3, [fp, #-48]
b .L3
.L6:
ldr r3, [fp, #-48]
lsl r3, r3, #2
ldr r2, [fp, #-16]
add r3, r2, r3
ldr r3, [r3]
ldr r2, [fp, #-8]
cmp r2, r3
bne .L4
mov r3, #1
str r3, [fp, #-52]
b .L5
.L4:
ldr r3, [fp, #-48]
add r3, r3, #1
str r3, [fp, #-48]
.L3:
ldr r2, [fp, #-48]
ldr r3, [fp, #-64]
cmp r2, r3
blt .L6
.L5:
ldr r3, [fp, #-52]
cmp r3, #0
bne .L23
mov r3, #0
str r3, [fp, #-44]
mov r3, #0
str r3, [fp, #-40]
b .L9
.L12:
ldr r3, [fp, #-40]
lsl r3, r3, #2
ldr r2, [fp, #-20]
add r3, r2, r3
ldr r3, [r3]
ldr r2, [fp, #-8]
cmp r2, r3
bne .L10
mov r3, #1
str r3, [fp, #-44]
b .L11
.L10:
ldr r3, [fp, #-40]
add r3, r3, #1
str r3, [fp, #-40]
.L9:
ldr r2, [fp, #-40]
ldr r3, [fp, #-68]
cmp r2, r3
blt .L12
.L11:
ldr r3, [fp, #-44]
cmp r3, #0
beq .L13
ldr r3, [fp, #-64]
add r2, r3, #1
str r2, [fp, #-64]
lsl r3, r3, #2
ldr r2, [fp, #-16]
add r3, r2, r3
ldr r2, [fp, #-8]
str r2, [r3]
b .L8
.L13:
ldr r3, [fp, #-68]
add r2, r3, #1
str r2, [fp, #-68]
lsl r3, r3, #2
ldr r2, [fp, #-20]
add r3, r2, r3
ldr r2, [fp, #-8]
str r2, [r3]
b .L8
.L23:
nop
.L8:
ldr r3, [fp, #-56]
add r3, r3, #1
str r3, [fp, #-56]
.L2:
ldr r2, [fp, #-56]
ldr r3, [fp, #-76]
cmp r2, r3
blt .L14
mov r3, #0
str r3, [fp, #-36]
b .L15
.L21:
ldr r3, [fp, #-36]
lsl r3, r3, #2
ldr r2, [fp, #-72]
add r3, r2, r3
ldr r3, [r3]
str r3, [fp, #-12]
mov r3, #0
str r3, [fp, #-32]
mov r3, #0
str r3, [fp, #-28]
b .L16
.L19:
ldr r3, [fp, #-28]
lsl r3, r3, #2
ldr r2, [fp, #-16]
add r3, r2, r3
ldr r3, [r3]
ldr r2, [fp, #-12]
cmp r2, r3
bne .L17
mov r3, #1
str r3, [fp, #-32]
b .L18
.L17:
ldr r3, [fp, #-28]
add r3, r3, #1
str r3, [fp, #-28]
.L16:
ldr r2, [fp, #-28]
ldr r3, [fp, #-64]
cmp r2, r3
blt .L19
.L18:
ldr r3, [fp, #-32]
cmp r3, #0
bne .L20
ldr r3, [fp, #-60]
add r2, r3, #1
str r2, [fp, #-60]
lsl r3, r3, #2
ldr r2, [fp, #-24]
add r3, r2, r3
ldr r2, [fp, #-12]
str r2, [r3]
.L20:
ldr r3, [fp, #-36]
add r3, r3, #1
str r3, [fp, #-36]
.L15:
ldr r2, [fp, #-36]
ldr r3, [fp, #-76]
cmp r2, r3
blt .L21
ldr r3, [fp, #-80]
ldr r2, [fp, #-60]
str r2, [r3]
ldr r0, [fp, #-20]
bl free
ldr r0, [fp, #-16]
bl free
ldr r3, [fp, #-24]
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem36/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.global __aeabi_fcmpgt
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
cmp r1, #0
push {r4, r5, r6, r7, r8, lr}
ble .L6
sub r4, r0, #4
ldr r6, .L11
add r7, r4, r1, lsl #2
.L5:
ldr r5, [r4, #4]! @ float
mov r1, r6
mov r0, r5
bl __aeabi_fcmpgt
cmp r0, #0
movne r6, r5
cmp r4, r7
bne .L5
mov r0, r6
pop {r4, r5, r6, r7, r8, pc}
.L6:
ldr r6, .L11
mov r0, r6
pop {r4, r5, r6, r7, r8, pc}
.L12:
.align 2
.L11:
.word -971227136
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.global __aeabi_fcmplt
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #16
str r0, [fp, #-16]
str r1, [fp, #-20]
ldr r3, .L8
str r3, [fp, #-12] @ float
mov r3, #0
str r3, [fp, #-8]
b .L2
.L5:
ldr r3, [fp, #-8]
lsl r3, r3, #2
ldr r2, [fp, #-16]
add r3, r2, r3
ldr r3, [r3] @ float
mov r1, r3
ldr r0, [fp, #-12] @ float
bl __aeabi_fcmplt
mov r3, r0
cmp r3, #0
beq .L3
ldr r3, [fp, #-8]
lsl r3, r3, #2
ldr r2, [fp, #-16]
add r3, r2, r3
ldr r3, [r3] @ float
str r3, [fp, #-12] @ float
.L3:
ldr r3, [fp, #-8]
add r3, r3, #1
str r3, [fp, #-8]
.L2:
ldr r2, [fp, #-8]
ldr r3, [fp, #-20]
cmp r2, r3
blt .L5
ldr r3, [fp, #-12] @ float
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L9:
.align 2
.L8:
.word -971227136
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem31/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.global __aeabi_fcmpgt
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
push {r4, r5, r6, r7, r8, r9, r10, lr}
lsl r7, r1, #2
mov r4, r0
mov r0, r7
mov r5, r1
mov r6, r2
bl malloc
mov r3, #0
cmp r5, r3
mov r8, r0
str r3, [r6]
ble .L1
mov r9, #0
sub r4, r4, #4
add r7, r4, r7
.L5:
ldr r5, [r4, #4]! @ float
mov r1, r9
mov r0, r5
bl __aeabi_fcmpgt
cmp r0, #0
ldrne r3, [r6]
addne r2, r3, #1
strne r5, [r8, r3, lsl #2] @ float
strne r2, [r6]
cmp r4, r7
bne .L5
.L1:
mov r0, r8
pop {r4, r5, r6, r7, r8, r9, r10, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.global __aeabi_fcmpgt
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 24
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #24
str r0, [fp, #-16]
str r1, [fp, #-20]
str r2, [fp, #-24]
ldr r3, [fp, #-20]
lsl r3, r3, #2
mov r0, r3
bl malloc
mov r3, r0
str r3, [fp, #-8]
ldr r3, [fp, #-24]
mov r2, #0
str r2, [r3]
mov r3, #0
str r3, [fp, #-12]
b .L2
.L5:
ldr r3, [fp, #-12]
lsl r3, r3, #2
ldr r2, [fp, #-16]
add r3, r2, r3
ldr r3, [r3] @ float
mov r1, #0
mov r0, r3
bl __aeabi_fcmpgt
mov r3, r0
cmp r3, #0
beq .L3
ldr r3, [fp, #-12]
lsl r3, r3, #2
ldr r2, [fp, #-16]
add r2, r2, r3
ldr r3, [fp, #-24]
ldr r3, [r3]
add r0, r3, #1
ldr r1, [fp, #-24]
str r0, [r1]
lsl r3, r3, #2
ldr r1, [fp, #-8]
add r3, r1, r3
ldr r2, [r2] @ float
str r2, [r3] @ float
.L3:
ldr r3, [fp, #-12]
add r3, r3, #1
str r3, [fp, #-12]
.L2:
ldr r2, [fp, #-12]
ldr r3, [fp, #-20]
cmp r2, r3
blt .L5
ldr r3, [fp, #-8]
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem86/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
@ link register save eliminated.
cmp r1, #1
ble .L5
mov r3, r0
mov r0, #0
sub r1, r1, #2
lsr r2, r1, #1
add r1, r3, #8
add r1, r1, r2, lsl #3
.L4:
ldr r2, [r3, #4]
add r3, r3, #8
tst r2, #1
addeq r0, r0, r2
cmp r3, r1
bne .L4
bx lr
.L5:
mov r0, #0
bx lr
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #20
str r0, [fp, #-16]
str r1, [fp, #-20]
mov r3, #0
str r3, [fp, #-12]
mov r3, #0
str r3, [fp, #-8]
b .L2
.L4:
ldr r3, [fp, #-8]
lsl r3, r3, #3
add r3, r3, #4
ldr r2, [fp, #-16]
add r3, r2, r3
ldr r3, [r3]
and r3, r3, #1
cmp r3, #0
bne .L3
ldr r3, [fp, #-8]
lsl r3, r3, #3
add r3, r3, #4
ldr r2, [fp, #-16]
add r3, r2, r3
ldr r3, [r3]
ldr r2, [fp, #-12]
add r3, r2, r3
str r3, [fp, #-12]
.L3:
ldr r3, [fp, #-8]
add r3, r3, #1
str r3, [fp, #-8]
.L2:
ldr r3, [fp, #-8]
lsl r3, r3, #1
add r3, r3, #1
ldr r2, [fp, #-20]
cmp r2, r3
bgt .L4
ldr r3, [fp, #-12]
mov r0, r3
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem77/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
@ link register save eliminated.
subs ip, r0, #0
ble .L5
cmp ip, #1
beq .L7
mov r2, #0
mov r3, #1
.L3:
mul r3, r1, r3
add r2, r2, #1
cmp ip, r3
movlt r0, #0
movge r0, #1
cmp r2, #99
movgt r0, #0
cmp r0, #0
bxeq lr
cmp ip, r3
bne .L3
.L7:
mov r0, #1
bx lr
.L5:
mov r0, #0
bx lr
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #20
str r0, [fp, #-16]
str r1, [fp, #-20]
mov r3, #1
str r3, [fp, #-12]
mov r3, #0
str r3, [fp, #-8]
b .L2
.L6:
ldr r2, [fp, #-12]
ldr r3, [fp, #-16]
cmp r2, r3
bne .L3
mov r3, #1
b .L4
.L3:
ldr r3, [fp, #-12]
ldr r2, [fp, #-20]
mul r3, r2, r3
str r3, [fp, #-12]
ldr r3, [fp, #-8]
add r3, r3, #1
str r3, [fp, #-8]
.L2:
ldr r2, [fp, #-12]
ldr r3, [fp, #-16]
cmp r2, r3
bgt .L5
ldr r3, [fp, #-8]
cmp r3, #99
ble .L6
.L5:
mov r3, #0
.L4:
mov r0, r3
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem9/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
cmp r1, #0
str lr, [sp, #-4]!
mov ip, #1
mov lr, #0
ble .L2
sub r0, r0, #4
add r1, r0, r1, lsl #2
.L3:
ldr r3, [r0, #4]!
cmp r0, r1
mul ip, r3, ip
add lr, lr, r3
bne .L3
.L2:
str lr, [r2]
str ip, [r2, #4]
ldr pc, [sp], #4
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 32
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #36
str r0, [fp, #-24]
str r1, [fp, #-28]
str r2, [fp, #-32]
mov r3, #0
str r3, [fp, #-16]
mov r3, #1
str r3, [fp, #-12]
mov r3, #0
str r3, [fp, #-8]
b .L2
.L3:
ldr r3, [fp, #-8]
lsl r3, r3, #2
ldr r2, [fp, #-24]
add r3, r2, r3
ldr r3, [r3]
ldr r2, [fp, #-16]
add r3, r2, r3
str r3, [fp, #-16]
ldr r3, [fp, #-8]
lsl r3, r3, #2
ldr r2, [fp, #-24]
add r3, r2, r3
ldr r2, [r3]
ldr r3, [fp, #-12]
mul r3, r2, r3
str r3, [fp, #-12]
ldr r3, [fp, #-8]
add r3, r3, #1
str r3, [fp, #-8]
.L2:
ldr r2, [fp, #-8]
ldr r3, [fp, #-28]
cmp r2, r3
blt .L3
ldr r3, [fp, #-32]
ldr r2, [fp, #-16]
str r2, [r3]
ldr r3, [fp, #-32]
add r3, r3, #4
ldr r2, [fp, #-12]
str r2, [r3]
nop
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem64/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.section .rodata.cst4,"aM",%progbits,4
.align 2
.LC0:
.word __stack_chk_guard
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 408
@ frame_needed = 0, uses_anonymous_args = 0
push {r4, lr}
ldr r3, .L12
sub sp, sp, #408
mov r4, r0
mov r2, #400
mov r1, #0
add r0, sp, #4
ldr r3, [r3]
str r3, [sp, #404]
mov r3,#0
bl memset
mov r3, #1
cmp r4, #2
str r3, [sp, #12]
lslle r4, r4, #2
ble .L2
mov r1, #0
sub r2, sp, #4
add lr, r2, r4, lsl #2
mov ip, r1
lsl r4, r4, #2
add r2, sp, #8
b .L3
.L10:
ldr ip, [r2, #4]
ldr r1, [r2], #4
.L3:
add r3, r3, ip
add r3, r3, r1
cmp r2, lr
str r3, [r2, #8]
bne .L10
.L2:
add r3, sp, #408
add r4, r3, r4
ldr r3, .L12
ldr r0, [r4, #-404]
ldr r2, [r3]
ldr r3, [sp, #404]
eors r2, r3, r2
mov r3, #0
bne .L11
add sp, sp, #408
@ sp needed
pop {r4, pc}
.L11:
bl __stack_chk_fail
.L13:
.align 2
.L12:
.word .LC0
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.section .rodata
.align 2
.LC0:
.word __stack_chk_guard
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 416
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #416
str r0, [fp, #-416]
ldr r3, .L6
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
sub r3, fp, #408
mov r2, #400
mov r1, #0
mov r0, r3
bl memset
mov r3, #0
str r3, [fp, #-404]
mov r3, #1
str r3, [fp, #-400]
mov r3, #3
str r3, [fp, #-412]
b .L2
.L3:
ldr r3, [fp, #-412]
sub r3, r3, #1
lsl r3, r3, #2
sub r2, fp, #4
add r3, r2, r3
ldr r2, [r3, #-404]
ldr r3, [fp, #-412]
sub r3, r3, #2
lsl r3, r3, #2
sub r1, fp, #4
add r3, r1, r3
ldr r3, [r3, #-404]
add r2, r2, r3
ldr r3, [fp, #-412]
sub r3, r3, #3
lsl r3, r3, #2
sub r1, fp, #4
add r3, r1, r3
ldr r3, [r3, #-404]
add r2, r2, r3
ldr r3, [fp, #-412]
lsl r3, r3, #2
sub r1, fp, #4
add r3, r1, r3
str r2, [r3, #-404]
ldr r3, [fp, #-412]
add r3, r3, #1
str r3, [fp, #-412]
.L2:
ldr r2, [fp, #-412]
ldr r3, [fp, #-416]
cmp r2, r3
ble .L3
ldr r3, [fp, #-416]
lsl r3, r3, #2
sub r2, fp, #4
add r3, r2, r3
ldr r3, [r3, #-404]
ldr r2, .L6
ldr r1, [r2]
ldr r2, [fp, #-8]
eors r1, r2, r1
mov r2, #0
beq .L5
bl __stack_chk_fail
.L5:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L7:
.align 2
.L6:
.word .LC0
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem123/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
@ link register save eliminated.
cmp r1, #0
mov r3, r0
mov r0, #0
bxle lr
sub r3, r3, #4
add ip, r3, r1, lsl #2
.L4:
ldr r2, [r3, #4]!
add r1, r2, #99
cmp r1, #198
addls r0, r0, r2
cmp r3, ip
bne .L4
bx lr
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #20
str r0, [fp, #-16]
str r1, [fp, #-20]
mov r3, #0
str r3, [fp, #-12]
mov r3, #0
str r3, [fp, #-8]
b .L2
.L4:
ldr r3, [fp, #-8]
lsl r3, r3, #2
ldr r2, [fp, #-16]
add r3, r2, r3
ldr r3, [r3]
cmn r3, #99
blt .L3
ldr r3, [fp, #-8]
lsl r3, r3, #2
ldr r2, [fp, #-16]
add r3, r2, r3
ldr r3, [r3]
cmp r3, #99
bgt .L3
ldr r3, [fp, #-8]
lsl r3, r3, #2
ldr r2, [fp, #-16]
add r3, r2, r3
ldr r3, [r3]
ldr r2, [fp, #-12]
add r3, r2, r3
str r3, [fp, #-12]
.L3:
ldr r3, [fp, #-8]
add r3, r3, #1
str r3, [fp, #-8]
.L2:
ldr r2, [fp, #-8]
ldr r3, [fp, #-20]
cmp r2, r3
blt .L4
ldr r3, [fp, #-12]
mov r0, r3
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem114/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.section .rodata.str1.4,"aMS",%progbits,1
.align 2
.LC0:
.ascii "the number of odd elements %d in the string %d of t"
.ascii "he %d input.\000"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
push {r4, r5, r6, r7, r8, r9, lr}
lsl r6, r1, #2
mov r5, r1
mov r4, r0
sub sp, sp, #20
mov r0, r6
bl malloc
cmp r5, #0
mov r8, r0
ble .L1
sub r4, r4, #4
ldr r7, .L14
add r6, r4, r6
sub r5, r0, #4
.L3:
ldr r2, [r4, #4]!
ldrb r3, [r2] @ zero_extendqisi2
cmp r3, #0
moveq r9, r3
beq .L7
mov r9, #0
.L5:
sub r1, r3, #48
cmp r1, #9
bhi .L4
tst r3, #1
addne r9, r9, #1
.L4:
ldrb r3, [r2, #1]! @ zero_extendqisi2
cmp r3, #0
bne .L5
.L7:
mov r0, #100
bl malloc
str r9, [sp, #8]
str r9, [sp, #4]
str r9, [sp]
mov r3, r7
mov r2, #100
mov r1, #1
str r0, [r5, #4]!
bl __sprintf_chk
cmp r4, r6
bne .L3
.L1:
mov r0, r8
add sp, sp, #20
@ sp needed
pop {r4, r5, r6, r7, r8, r9, pc}
.L15:
.align 2
.L14:
.word .LC0
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.section .rodata
.align 2
.LC0:
.ascii "the number of odd elements %d in the string %d of t"
.ascii "he %d input.\000"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 24
@ frame_needed = 1, uses_anonymous_args = 0
push {r4, fp, lr}
add fp, sp, #8
sub sp, sp, #36
str r0, [fp, #-32]
str r1, [fp, #-36]
ldr r3, [fp, #-36]
lsl r3, r3, #2
mov r0, r3
bl malloc
mov r3, r0
str r3, [fp, #-16]
mov r3, #0
str r3, [fp, #-28]
b .L2
.L6:
mov r3, #0
str r3, [fp, #-24]
mov r3, #0
str r3, [fp, #-20]
b .L3
.L5:
ldr r3, [fp, #-28]
lsl r3, r3, #2
ldr r2, [fp, #-32]
add r3, r2, r3
ldr r2, [r3]
ldr r3, [fp, #-20]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #47
bls .L4
ldr r3, [fp, #-28]
lsl r3, r3, #2
ldr r2, [fp, #-32]
add r3, r2, r3
ldr r2, [r3]
ldr r3, [fp, #-20]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #57
bhi .L4
ldr r3, [fp, #-28]
lsl r3, r3, #2
ldr r2, [fp, #-32]
add r3, r2, r3
ldr r2, [r3]
ldr r3, [fp, #-20]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
sub r3, r3, #48
cmp r3, #0
and r3, r3, #1
rsblt r3, r3, #0
cmp r3, #1
bne .L4
ldr r3, [fp, #-24]
add r3, r3, #1
str r3, [fp, #-24]
.L4:
ldr r3, [fp, #-20]
add r3, r3, #1
str r3, [fp, #-20]
.L3:
ldr r3, [fp, #-28]
lsl r3, r3, #2
ldr r2, [fp, #-32]
add r3, r2, r3
ldr r2, [r3]
ldr r3, [fp, #-20]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
bne .L5
ldr r3, [fp, #-28]
lsl r3, r3, #2
ldr r2, [fp, #-16]
add r4, r2, r3
mov r0, #100
bl malloc
mov r3, r0
str r3, [r4]
ldr r3, [fp, #-28]
lsl r3, r3, #2
ldr r2, [fp, #-16]
add r3, r2, r3
ldr r0, [r3]
ldr r3, [fp, #-24]
str r3, [sp]
ldr r3, [fp, #-24]
ldr r2, [fp, #-24]
ldr r1, .L8
bl sprintf
ldr r3, [fp, #-28]
add r3, r3, #1
str r3, [fp, #-28]
.L2:
ldr r2, [fp, #-28]
ldr r3, [fp, #-36]
cmp r2, r3
blt .L6
ldr r3, [fp, #-16]
mov r0, r3
sub sp, fp, #8
@ sp needed
pop {r4, fp, pc}
.L9:
.align 2
.L8:
.word .LC0
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem105/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
push {r4, r5, r6, r7, r8, lr}
lsl r7, r1, #2
mov r4, r0
mov r0, r7
mov r6, r1
mov r8, r2
mov r5, r3
bl malloc
mov ip, #0
cmp r6, ip
str r0, [r8]
str ip, [r5]
pople {r4, r5, r6, r7, r8, pc}
mov r3, ip
sub r4, r4, #4
ldr lr, .L21
add r7, r4, r7
.L6:
ldr r6, [r4, #4]!
cmp r6, #0
beq .L3
ble .L4
mov r2, r6
.L5:
mvn r1, r2
and r1, r1, #1
eor ip, r1, #1
cmp r2, #9
movle ip, #0
andgt ip, ip, #1
umull r8, r2, lr, r2
cmp ip, #0
lsr r2, r2, #3
bne .L5
cmp r1, #0
bne .L3
.L4:
str r6, [r0, r3, lsl #2]
add r3, r3, #1
str r3, [r5]
.L3:
cmp r7, r4
bne .L6
sub lr, r3, #1
cmp lr, #0
pople {r4, r5, r6, r7, r8, pc}
sub ip, r0, #4
add ip, ip, r3, lsl #2
.L7:
mov r3, r0
.L9:
ldr r2, [r3]
ldr r1, [r3, #4]!
cmp r2, r1
stmdagt r3, {r1, r2}
cmp ip, r3
bne .L9
subs lr, lr, #1
sub ip, ip, #4
bne .L7
pop {r4, r5, r6, r7, r8, pc}
.L22:
.align 2
.L21:
.word -858993459
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 40
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #40
str r0, [fp, #-32]
str r1, [fp, #-36]
str r2, [fp, #-40]
str r3, [fp, #-44]
ldr r3, [fp, #-36]
lsl r3, r3, #2
mov r0, r3
bl malloc
mov r3, r0
mov r2, r3
ldr r3, [fp, #-40]
str r2, [r3]
ldr r3, [fp, #-44]
mov r2, #0
str r2, [r3]
mov r3, #0
str r3, [fp, #-24]
b .L2
.L9:
ldr r3, [fp, #-24]
lsl r3, r3, #2
ldr r2, [fp, #-32]
add r3, r2, r3
ldr r3, [r3]
str r3, [fp, #-20]
mov r3, #0
strb r3, [fp, #-25]
ldr r3, [fp, #-20]
cmp r3, #0
bne .L4
mov r3, #1
strb r3, [fp, #-25]
b .L4
.L7:
ldr r3, [fp, #-20]
and r3, r3, #1
cmp r3, #0
bne .L5
mov r3, #1
strb r3, [fp, #-25]
.L5:
ldr r3, [fp, #-20]
ldr r2, .L15
smull r1, r2, r3, r2
asr r2, r2, #2
asr r3, r3, #31
sub r3, r2, r3
str r3, [fp, #-20]
.L4:
ldr r3, [fp, #-20]
cmp r3, #0
ble .L6
ldrb r3, [fp, #-25]
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
bne .L7
.L6:
ldrb r3, [fp, #-25]
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L8
ldr r3, [fp, #-24]
lsl r3, r3, #2
ldr r2, [fp, #-32]
add r2, r2, r3
ldr r3, [fp, #-40]
ldr r1, [r3]
ldr r3, [fp, #-44]
ldr r3, [r3]
lsl r3, r3, #2
add r3, r1, r3
ldr r2, [r2]
str r2, [r3]
ldr r3, [fp, #-44]
ldr r3, [r3]
add r2, r3, #1
ldr r3, [fp, #-44]
str r2, [r3]
.L8:
ldr r3, [fp, #-24]
add r3, r3, #1
str r3, [fp, #-24]
.L2:
ldr r2, [fp, #-24]
ldr r3, [fp, #-36]
cmp r2, r3
blt .L9
mov r3, #0
str r3, [fp, #-16]
b .L10
.L14:
mov r3, #0
str r3, [fp, #-12]
b .L11
.L13:
ldr r3, [fp, #-40]
ldr r2, [r3]
ldr r3, [fp, #-12]
lsl r3, r3, #2
add r3, r2, r3
ldr r2, [r3]
ldr r3, [fp, #-40]
ldr r1, [r3]
ldr r3, [fp, #-12]
add r3, r3, #1
lsl r3, r3, #2
add r3, r1, r3
ldr r3, [r3]
cmp r2, r3
ble .L12
ldr r3, [fp, #-40]
ldr r2, [r3]
ldr r3, [fp, #-12]
lsl r3, r3, #2
add r3, r2, r3
ldr r3, [r3]
str r3, [fp, #-8]
ldr r3, [fp, #-40]
ldr r2, [r3]
ldr r3, [fp, #-12]
add r3, r3, #1
lsl r3, r3, #2
add r2, r2, r3
ldr r3, [fp, #-40]
ldr r1, [r3]
ldr r3, [fp, #-12]
lsl r3, r3, #2
add r3, r1, r3
ldr r2, [r2]
str r2, [r3]
ldr r3, [fp, #-40]
ldr r2, [r3]
ldr r3, [fp, #-12]
add r3, r3, #1
lsl r3, r3, #2
add r3, r2, r3
ldr r2, [fp, #-8]
str r2, [r3]
.L12:
ldr r3, [fp, #-12]
add r3, r3, #1
str r3, [fp, #-12]
.L11:
ldr r3, [fp, #-44]
ldr r2, [r3]
ldr r3, [fp, #-16]
sub r3, r2, r3
sub r3, r3, #1
ldr r2, [fp, #-12]
cmp r2, r3
blt .L13
ldr r3, [fp, #-16]
add r3, r3, #1
str r3, [fp, #-16]
.L10:
ldr r3, [fp, #-44]
ldr r3, [r3]
sub r3, r3, #1
ldr r2, [fp, #-16]
cmp r2, r3
blt .L14
nop
nop
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L16:
.align 2
.L15:
.word 1717986919
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem113/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.section .rodata.str1.4,"aMS",%progbits,1
.align 2
.LC0:
.ascii "False\000"
.align 2
.LC1:
.ascii "True\000"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
push {r4, r5, r6, r7, r8, r9, r10, lr}
mov r5, r0
mov r9, r1
mov r7, r2
mov r6, r3
bl strlen
add r0, r0, #1
bl malloc
ldrb r4, [r5] @ zero_extendqisi2
mov r8, r0
cmp r4, #0
beq .L11
mov r2, #0
ldrb r3, [r9] @ zero_extendqisi2
.L3:
cmp r3, #0
movne lr, r9
movne ip, r3
bne .L5
b .L6
.L21:
ldrb ip, [lr, #1]! @ zero_extendqisi2
cmp ip, #0
beq .L6
.L5:
cmp r4, ip
bne .L21
ldrb r4, [r5, #1]! @ zero_extendqisi2
cmp r4, #0
bne .L3
.L23:
add r2, r8, r2
.L2:
mov r3, #0
mov r0, r8
strb r3, [r2]
bl strlen
asrs r4, r0, #1
beq .L7
sub r1, r8, #1
add r4, r1, r4
add r3, r8, r0
b .L9
.L22:
cmp r4, r1
beq .L7
.L9:
ldrb lr, [r1, #1]! @ zero_extendqisi2
ldrb ip, [r3, #-1]! @ zero_extendqisi2
cmp lr, ip
beq .L22
mov r1, r8
add r2, r0, #1
mov r0, r7
bl memcpy
ldr r1, .L24
.L10:
mov r0, r6
bl strcpy
mov r0, r8
pop {r4, r5, r6, r7, r8, r9, r10, lr}
b free
.L6:
strb r4, [r8, r2]
ldrb r4, [r5, #1]! @ zero_extendqisi2
add r2, r2, #1
cmp r4, #0
bne .L3
b .L23
.L7:
mov r1, r8
add r2, r0, #1
mov r0, r7
bl memcpy
ldr r1, .L24+4
b .L10
.L11:
mov r2, r0
b .L2
.L25:
.align 2
.L24:
.word .LC0
.word .LC1
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.section .rodata
.align 2
.LC0:
.ascii "True\000"
.align 2
.LC1:
.ascii "False\000"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 48
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #48
str r0, [fp, #-40]
str r1, [fp, #-44]
str r2, [fp, #-48]
str r3, [fp, #-52]
ldr r0, [fp, #-40]
bl strlen
mov r3, r0
str r3, [fp, #-16]
ldr r3, [fp, #-16]
add r3, r3, #1
mov r0, r3
bl malloc
mov r3, r0
str r3, [fp, #-12]
mov r3, #0
str r3, [fp, #-32]
mov r3, #0
str r3, [fp, #-28]
b .L2
.L8:
ldr r3, [fp, #-44]
str r3, [fp, #-24]
mov r3, #0
strb r3, [fp, #-34]
b .L3
.L6:
ldr r3, [fp, #-28]
ldr r2, [fp, #-40]
add r3, r2, r3
ldrb r2, [r3] @ zero_extendqisi2
ldr r3, [fp, #-24]
ldrb r3, [r3] @ zero_extendqisi2
cmp r2, r3
bne .L4
mov r3, #1
strb r3, [fp, #-34]
b .L5
.L4:
ldr r3, [fp, #-24]
add r3, r3, #1
str r3, [fp, #-24]
.L3:
ldr r3, [fp, #-24]
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
bne .L6
.L5:
ldrb r3, [fp, #-34]
eor r3, r3, #1
and r3, r3, #255
cmp r3, #0
beq .L7
ldr r3, [fp, #-28]
ldr r2, [fp, #-40]
add r2, r2, r3
ldr r3, [fp, #-32]
add r1, r3, #1
str r1, [fp, #-32]
mov r1, r3
ldr r3, [fp, #-12]
add r3, r3, r1
ldrb r2, [r2] @ zero_extendqisi2
strb r2, [r3]
.L7:
ldr r3, [fp, #-28]
add r3, r3, #1
str r3, [fp, #-28]
.L2:
ldr r3, [fp, #-28]
ldr r2, [fp, #-40]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
bne .L8
ldr r3, [fp, #-32]
ldr r2, [fp, #-12]
add r3, r2, r3
mov r2, #0
strb r2, [r3]
ldr r0, [fp, #-12]
bl strlen
mov r3, r0
str r3, [fp, #-8]
mov r3, #1
strb r3, [fp, #-33]
mov r3, #0
str r3, [fp, #-20]
b .L9
.L12:
ldr r3, [fp, #-20]
ldr r2, [fp, #-12]
add r3, r2, r3
ldrb r2, [r3] @ zero_extendqisi2
ldr r3, [fp, #-8]
sub r1, r3, #1
ldr r3, [fp, #-20]
sub r3, r1, r3
mov r1, r3
ldr r3, [fp, #-12]
add r3, r3, r1
ldrb r3, [r3] @ zero_extendqisi2
cmp r2, r3
beq .L10
mov r3, #0
strb r3, [fp, #-33]
b .L11
.L10:
ldr r3, [fp, #-20]
add r3, r3, #1
str r3, [fp, #-20]
.L9:
ldr r3, [fp, #-8]
lsr r2, r3, #31
add r3, r2, r3
asr r3, r3, #1
mov r2, r3
ldr r3, [fp, #-20]
cmp r3, r2
blt .L12
.L11:
ldr r1, [fp, #-12]
ldr r0, [fp, #-48]
bl strcpy
ldrb r3, [fp, #-33] @ zero_extendqisi2
cmp r3, #0
beq .L13
ldr r3, .L15
b .L14
.L13:
ldr r3, .L15+4
.L14:
mov r1, r3
ldr r0, [fp, #-52]
bl strcpy
ldr r0, [fp, #-12]
bl free
nop
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L16:
.align 2
.L15:
.word .LC0
.word .LC1
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem108/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
push {r4, r5, r6, lr}
mov r5, r0
mov r0, #8
bl malloc
mov r3, #0
cmp r5, r3
str r3, [r0]
str r3, [r0, #4]
pople {r4, r5, r6, pc}
mov r4, #1
ldr lr, .L11
add r5, r5, r4
.L6:
mov ip, r4
mov r2, #0
.L3:
umull r1, r3, lr, ip
lsr r3, r3, #3
add r1, r3, r3, lsl #2
sub r1, ip, r1, lsl #1
add r2, r2, r2, lsl #2
subs ip, r3, #0
add r2, r1, r2, lsl #1
bne .L3
cmp r4, r2
bne .L4
tst r4, #1
ldreq r3, [r0]
ldrne r3, [r0, #4]
addeq r3, r3, #1
addne r3, r3, #1
streq r3, [r0]
strne r3, [r0, #4]
.L4:
add r4, r4, #1
cmp r5, r4
bne .L6
pop {r4, r5, r6, pc}
.L12:
.align 2
.L11:
.word -858993459
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 32
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #32
str r0, [fp, #-32]
mov r0, #8
bl malloc
mov r3, r0
str r3, [fp, #-12]
ldr r3, [fp, #-12]
mov r2, #0
str r2, [r3]
ldr r3, [fp, #-12]
add r3, r3, #4
mov r2, #0
str r2, [r3]
mov r3, #1
str r3, [fp, #-24]
b .L2
.L7:
mov r3, #0
str r3, [fp, #-20]
ldr r3, [fp, #-24]
str r3, [fp, #-8]
ldr r3, [fp, #-24]
str r3, [fp, #-16]
b .L3
.L4:
ldr r2, [fp, #-20]
mov r3, r2
lsl r3, r3, #2
add r3, r3, r2
lsl r3, r3, #1
mov r0, r3
ldr r1, [fp, #-16]
ldr r3, .L9
smull r2, r3, r1, r3
asr r2, r3, #2
asr r3, r1, #31
sub r2, r2, r3
mov r3, r2
lsl r3, r3, #2
add r3, r3, r2
lsl r3, r3, #1
sub r2, r1, r3
add r3, r0, r2
str r3, [fp, #-20]
ldr r3, [fp, #-16]
ldr r2, .L9
smull r1, r2, r3, r2
asr r2, r2, #2
asr r3, r3, #31
sub r3, r2, r3
str r3, [fp, #-16]
.L3:
ldr r3, [fp, #-16]
cmp r3, #0
bne .L4
ldr r2, [fp, #-8]
ldr r3, [fp, #-20]
cmp r2, r3
bne .L5
ldr r3, [fp, #-8]
and r3, r3, #1
cmp r3, #0
bne .L6
ldr r3, [fp, #-12]
ldr r3, [r3]
add r2, r3, #1
ldr r3, [fp, #-12]
str r2, [r3]
b .L5
.L6:
ldr r3, [fp, #-12]
add r3, r3, #4
ldr r2, [r3]
add r2, r2, #1
str r2, [r3]
.L5:
ldr r3, [fp, #-24]
add r3, r3, #1
str r3, [fp, #-24]
.L2:
ldr r2, [fp, #-24]
ldr r3, [fp, #-32]
cmp r2, r3
ble .L7
ldr r3, [fp, #-12]
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L10:
.align 2
.L9:
.word 1717986919
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem83/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.global __aeabi_uidivmod
.global __aeabi_idivmod
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
push {r4, r5, r6, lr}
bl strlen
cmp r0, #1
bls .L5
cmp r0, #3
mov r5, r0
bls .L6
ands r1, r0, #1
beq .L5
mov r4, #2
b .L3
.L4:
mov r1, r4
mov r0, r5
bl __aeabi_idivmod
cmp r1, #0
beq .L5
.L3:
add r4, r4, #1
mul r3, r4, r4
cmp r3, r5
ble .L4
.L6:
mov r0, #1
pop {r4, r5, r6, pc}
.L5:
mov r0, #0
pop {r4, r5, r6, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.global __aeabi_idivmod
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #16
str r0, [fp, #-16]
ldr r0, [fp, #-16]
bl strlen
mov r3, r0
str r3, [fp, #-8]
ldr r3, [fp, #-8]
cmp r3, #1
bgt .L2
mov r3, #0
b .L3
.L2:
mov r3, #2
str r3, [fp, #-12]
b .L4
.L6:
ldr r3, [fp, #-8]
ldr r1, [fp, #-12]
mov r0, r3
bl __aeabi_idivmod
mov r3, r1
cmp r3, #0
bne .L5
mov r3, #0
b .L3
.L5:
ldr r3, [fp, #-12]
add r3, r3, #1
str r3, [fp, #-12]
.L4:
ldr r3, [fp, #-12]
mov r2, r3
mul r2, r3, r2
mov r3, r2
ldr r2, [fp, #-8]
cmp r2, r3
bge .L6
mov r3, #1
.L3:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem144/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.global __aeabi_uidivmod
.global __aeabi_idivmod
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
push {r4, r5, r6, r7, r8, r9, r10, lr}
ldrb r3, [r0] @ zero_extendqisi2
mov r7, r1
cmp r3, #0
beq .L2
mov r10, #0
mov r6, r0
mov r9, #32
mov r8, r10
mov r4, r10
b .L8
.L4:
add r10, r10, #1
ldrb r3, [r6, r10] @ zero_extendqisi2
cmp r3, #0
beq .L31
.L8:
cmp r3, #32
addne r4, r4, #1
bne .L4
cmp r4, #1
bgt .L32
.L17:
add r10, r10, #1
ldrb r3, [r6, r10] @ zero_extendqisi2
mov r4, #0
cmp r3, #0
bne .L8
.L31:
cmp r4, #1
ble .L29
cmp r4, #3
ble .L10
tst r4, #1
movne r5, #2
bne .L11
b .L29
.L12:
mov r1, r5
mov r0, r4
bl __aeabi_idivmod
cmp r1, #0
beq .L29
.L11:
add r5, r5, #1
mul r3, r5, r5
cmp r3, r4
ble .L12
.L10:
cmp r8, #0
moveq r5, r4
moveq r0, r7
beq .L16
mov r3, #32
add r5, r8, #1
add r0, r7, r5
strb r3, [r7, r8]
add r5, r4, r5
.L16:
sub r1, r10, r4
mov r2, r4
add r1, r6, r1
bl memcpy
add r7, r7, r5
.L2:
mov r3, #0
strb r3, [r7]
pop {r4, r5, r6, r7, r8, r9, r10, pc}
.L32:
cmp r4, #3
ble .L5
ands r3, r4, #1
beq .L17
mov r5, #2
b .L6
.L7:
mov r1, r5
mov r0, r4
bl __aeabi_idivmod
cmp r1, #0
beq .L19
.L6:
add r5, r5, #1
mul r3, r5, r5
cmp r3, r4
ble .L7
.L5:
cmp r8, #0
moveq r8, r4
moveq r0, r7
addne r3, r8, #1
strbne r9, [r7, r8]
addne r0, r7, r3
addne r8, r3, r4
.L14:
sub r1, r10, r4
mov r2, r4
add r1, r6, r1
bl memcpy
mov r4, #0
b .L4
.L29:
add r7, r7, r8
b .L2
.L19:
mov r4, r1
b .L4
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.global __aeabi_idivmod
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 32
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #32
str r0, [fp, #-32]
str r1, [fp, #-36]
mov r3, #0
str r3, [fp, #-8]
mov r3, #0
str r3, [fp, #-24]
mov r3, #0
str r3, [fp, #-20]
mov r3, #0
str r3, [fp, #-16]
b .L2
.L13:
ldr r3, [fp, #-16]
ldr r2, [fp, #-32]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #32
beq .L3
ldr r3, [fp, #-24]
add r3, r3, #1
str r3, [fp, #-24]
b .L4
.L3:
ldr r3, [fp, #-24]
cmp r3, #1
ble .L5
mov r3, #1
strb r3, [fp, #-25]
mov r3, #2
str r3, [fp, #-12]
b .L6
.L9:
ldr r3, [fp, #-24]
ldr r1, [fp, #-12]
mov r0, r3
bl __aeabi_idivmod
mov r3, r1
cmp r3, #0
bne .L7
mov r3, #0
strb r3, [fp, #-25]
b .L10
.L7:
ldr r3, [fp, #-12]
add r3, r3, #1
str r3, [fp, #-12]
.L6:
ldr r3, [fp, #-12]
mov r2, r3
mul r2, r3, r2
mov r3, r2
ldr r2, [fp, #-24]
cmp r2, r3
bge .L9
b .L10
.L5:
mov r3, #0
strb r3, [fp, #-25]
.L10:
ldrb r3, [fp, #-25] @ zero_extendqisi2
cmp r3, #0
beq .L11
ldr r3, [fp, #-20]
cmp r3, #0
ble .L12
ldr r3, [fp, #-20]
add r2, r3, #1
str r2, [fp, #-20]
mov r2, r3
ldr r3, [fp, #-36]
add r3, r3, r2
mov r2, #32
strb r2, [r3]
.L12:
ldr r3, [fp, #-20]
ldr r2, [fp, #-36]
add r0, r2, r3
ldr r2, [fp, #-16]
ldr r3, [fp, #-24]
sub r3, r2, r3
ldr r2, [fp, #-32]
add r3, r2, r3
ldr r2, [fp, #-24]
mov r1, r3
bl memcpy
ldr r2, [fp, #-20]
ldr r3, [fp, #-24]
add r3, r2, r3
str r3, [fp, #-20]
.L11:
mov r3, #0
str r3, [fp, #-24]
.L4:
ldr r3, [fp, #-16]
add r3, r3, #1
str r3, [fp, #-16]
.L2:
ldr r3, [fp, #-16]
ldr r2, [fp, #-32]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
bne .L13
ldr r3, [fp, #-24]
cmp r3, #1
ble .L14
mov r3, #1
strb r3, [fp, #-25]
mov r3, #2
str r3, [fp, #-12]
b .L15
.L18:
ldr r3, [fp, #-24]
ldr r1, [fp, #-12]
mov r0, r3
bl __aeabi_idivmod
mov r3, r1
cmp r3, #0
bne .L16
mov r3, #0
strb r3, [fp, #-25]
b .L19
.L16:
ldr r3, [fp, #-12]
add r3, r3, #1
str r3, [fp, #-12]
.L15:
ldr r3, [fp, #-12]
mov r2, r3
mul r2, r3, r2
mov r3, r2
ldr r2, [fp, #-24]
cmp r2, r3
bge .L18
b .L19
.L14:
mov r3, #0
strb r3, [fp, #-25]
.L19:
ldrb r3, [fp, #-25] @ zero_extendqisi2
cmp r3, #0
beq .L20
ldr r3, [fp, #-20]
cmp r3, #0
ble .L21
ldr r3, [fp, #-20]
add r2, r3, #1
str r2, [fp, #-20]
mov r2, r3
ldr r3, [fp, #-36]
add r3, r3, r2
mov r2, #32
strb r2, [r3]
.L21:
ldr r3, [fp, #-20]
ldr r2, [fp, #-36]
add r0, r2, r3
ldr r2, [fp, #-16]
ldr r3, [fp, #-24]
sub r3, r2, r3
ldr r2, [fp, #-32]
add r3, r2, r3
ldr r2, [fp, #-24]
mov r1, r3
bl memcpy
ldr r2, [fp, #-20]
ldr r3, [fp, #-24]
add r3, r2, r3
str r3, [fp, #-20]
.L20:
ldr r3, [fp, #-20]
ldr r2, [fp, #-36]
add r3, r2, r3
mov r2, #0
strb r2, [r3]
nop
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem141/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
push {r4, r5, r6, r7, r8, r9, r10, lr}
mov r9, r1
mov r4, #0
mov r5, r0
mov r6, r4
bl strlen
mov r7, #95
mov ip, r9
mov r2, r4
mov r8, #45
b .L2
.L5:
cmp r2, #2
bne .L16
strb r7, [ip]
strb r7, [r0]
add r1, r6, #2
ldrb r3, [r5, r4] @ zero_extendqisi2
add r0, r9, r1
.L6:
strb r3, [r0]
mov r0, r5
add r6, r1, #1
bl strlen
mov r2, #0
add ip, r9, r6
.L4:
add r4, r4, #1
.L2:
cmp r0, r4
bls .L17
ldrb r3, [r5, r4] @ zero_extendqisi2
cmp r3, #32
addeq r2, r2, #1
beq .L4
add r1, r6, #1
cmp r2, #1
add r0, r9, r1
bne .L5
strb r7, [ip]
ldrb r3, [r5, r4] @ zero_extendqisi2
b .L6
.L16:
movle r0, ip
movle r1, r6
strbgt r8, [ip]
ldrbgt r3, [r5, r4] @ zero_extendqisi2
b .L6
.L17:
cmp r2, #1
moveq r3, #95
addeq r6, r6, #1
strbeq r3, [ip]
beq .L11
cmp r2, #2
bne .L18
mov r2, #95
add r3, r6, #1
strb r2, [ip]
add r6, r6, #2
strb r2, [r9, r3]
.L11:
mov r3, #0
strb r3, [r9, r6]
pop {r4, r5, r6, r7, r8, r9, r10, pc}
.L18:
movgt r3, #45
addgt r6, r6, #1
strbgt r3, [ip]
b .L11
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 24
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #24
str r0, [fp, #-24]
str r1, [fp, #-28]
mov r3, #0
str r3, [fp, #-16]
mov r3, #0
str r3, [fp, #-12]
mov r3, #0
str r3, [fp, #-8]
b .L2
.L8:
ldr r3, [fp, #-8]
ldr r2, [fp, #-24]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #32
bne .L3
ldr r3, [fp, #-16]
add r3, r3, #1
str r3, [fp, #-16]
b .L4
.L3:
ldr r3, [fp, #-16]
cmp r3, #1
bne .L5
ldr r3, [fp, #-12]
add r2, r3, #1
str r2, [fp, #-12]
mov r2, r3
ldr r3, [fp, #-28]
add r3, r3, r2
mov r2, #95
strb r2, [r3]
.L5:
ldr r3, [fp, #-16]
cmp r3, #2
bne .L6
ldr r3, [fp, #-12]
add r2, r3, #1
str r2, [fp, #-12]
mov r2, r3
ldr r3, [fp, #-28]
add r3, r3, r2
mov r2, #95
strb r2, [r3]
ldr r3, [fp, #-12]
add r2, r3, #1
str r2, [fp, #-12]
mov r2, r3
ldr r3, [fp, #-28]
add r3, r3, r2
mov r2, #95
strb r2, [r3]
.L6:
ldr r3, [fp, #-16]
cmp r3, #2
ble .L7
ldr r3, [fp, #-12]
add r2, r3, #1
str r2, [fp, #-12]
mov r2, r3
ldr r3, [fp, #-28]
add r3, r3, r2
mov r2, #45
strb r2, [r3]
.L7:
mov r3, #0
str r3, [fp, #-16]
ldr r3, [fp, #-8]
ldr r2, [fp, #-24]
add r2, r2, r3
ldr r3, [fp, #-12]
add r1, r3, #1
str r1, [fp, #-12]
mov r1, r3
ldr r3, [fp, #-28]
add r3, r3, r1
ldrb r2, [r2] @ zero_extendqisi2
strb r2, [r3]
.L4:
ldr r3, [fp, #-8]
add r3, r3, #1
str r3, [fp, #-8]
.L2:
ldr r0, [fp, #-24]
bl strlen
mov r2, r0
ldr r3, [fp, #-8]
cmp r2, r3
bhi .L8
ldr r3, [fp, #-16]
cmp r3, #1
bne .L9
ldr r3, [fp, #-12]
add r2, r3, #1
str r2, [fp, #-12]
mov r2, r3
ldr r3, [fp, #-28]
add r3, r3, r2
mov r2, #95
strb r2, [r3]
.L9:
ldr r3, [fp, #-16]
cmp r3, #2
bne .L10
ldr r3, [fp, #-12]
add r2, r3, #1
str r2, [fp, #-12]
mov r2, r3
ldr r3, [fp, #-28]
add r3, r3, r2
mov r2, #95
strb r2, [r3]
ldr r3, [fp, #-12]
add r2, r3, #1
str r2, [fp, #-12]
mov r2, r3
ldr r3, [fp, #-28]
add r3, r3, r2
mov r2, #95
strb r2, [r3]
.L10:
ldr r3, [fp, #-16]
cmp r3, #2
ble .L11
ldr r3, [fp, #-12]
add r2, r3, #1
str r2, [fp, #-12]
mov r2, r3
ldr r3, [fp, #-28]
add r3, r3, r2
mov r2, #45
strb r2, [r3]
.L11:
ldr r3, [fp, #-12]
ldr r2, [fp, #-28]
add r3, r2, r3
mov r2, #0
strb r2, [r3]
nop
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem3/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.global __aeabi_f2iz
.global __aeabi_i2f
.global __aeabi_fsub
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
push {r4, lr}
mov r4, r0
bl __aeabi_f2iz
bl __aeabi_i2f
mov r1, r0
mov r0, r4
bl __aeabi_fsub
pop {r4, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.global __aeabi_f2iz
.global __aeabi_i2f
.global __aeabi_fsub
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #8
str r0, [fp, #-8] @ float
ldr r0, [fp, #-8] @ float
bl __aeabi_f2iz
mov r3, r0
mov r0, r3
bl __aeabi_i2f
mov r3, r0
mov r1, r3
ldr r0, [fp, #-8] @ float
bl __aeabi_fsub
mov r3, r0
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem94/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.section .rodata.str1.4,"aMS",%progbits,1
.align 2
.LC0:
.ascii "aeiouAEIOU\000"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
push {r4, r5, r6, r7, r8, r9, r10, lr}
ldrb r4, [r0] @ zero_extendqisi2
mov r7, r1
cmp r4, #0
beq .L2
mov r6, r0
bl __ctype_b_loc
mov r8, r0
sub r5, r7, #1
rsb r9, r7, #1
.L8:
ldr r2, [r8]
lsl r3, r4, #1
ldrh r3, [r2, r3]
tst r3, #512
beq .L3
bl __ctype_toupper_loc
ldr r3, [r0]
ldrb r4, [r3, r4, lsl #2] @ zero_extendqisi2
.L4:
mov r3, #97
mov r2, #0
ldr ip, .L19
b .L7
.L5:
ldrb r3, [ip, #1]! @ zero_extendqisi2
add r2, r2, #1
cmp r3, #0
beq .L6
.L7:
cmp r4, r3
bne .L5
cmp r2, #9
addle r4, r4, #2
andle r4, r4, #255
.L6:
add r5, r5, #1
mov r3, r5
strb r4, [r3], r9
ldrb r4, [r6, #1]! @ zero_extendqisi2
cmp r4, #0
bne .L8
add r7, r7, r3
.L2:
mov r3, #0
strb r3, [r7]
pop {r4, r5, r6, r7, r8, r9, r10, pc}
.L3:
tst r3, #256
beq .L4
bl __ctype_tolower_loc
ldr r3, [r0]
ldrb r4, [r3, r4, lsl #2] @ zero_extendqisi2
b .L4
.L20:
.align 2
.L19:
.word .LC0
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.section .rodata
.align 2
.LC0:
.ascii "aeiouAEIOU\000"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 24
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #24
str r0, [fp, #-24]
str r1, [fp, #-28]
ldr r3, .L12
str r3, [fp, #-8]
mov r3, #0
str r3, [fp, #-16]
b .L2
.L10:
ldr r3, [fp, #-16]
ldr r2, [fp, #-24]
add r3, r2, r3
ldrb r3, [r3]
strb r3, [fp, #-17]
bl __ctype_b_loc
mov r3, r0
ldr r2, [r3]
ldrb r3, [fp, #-17] @ zero_extendqisi2
lsl r3, r3, #1
add r3, r2, r3
ldrh r3, [r3]
and r3, r3, #512
cmp r3, #0
beq .L3
ldrb r3, [fp, #-17] @ zero_extendqisi2
mov r0, r3
bl toupper
mov r3, r0
strb r3, [fp, #-17]
b .L4
.L3:
bl __ctype_b_loc
mov r3, r0
ldr r2, [r3]
ldrb r3, [fp, #-17] @ zero_extendqisi2
lsl r3, r3, #1
add r3, r2, r3
ldrh r3, [r3]
and r3, r3, #256
cmp r3, #0
beq .L4
ldrb r3, [fp, #-17] @ zero_extendqisi2
mov r0, r3
bl tolower
mov r3, r0
strb r3, [fp, #-17]
.L4:
mov r3, #0
str r3, [fp, #-12]
b .L5
.L9:
ldr r3, [fp, #-12]
ldr r2, [fp, #-8]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
ldrb r2, [fp, #-17] @ zero_extendqisi2
cmp r2, r3
bne .L6
ldr r3, [fp, #-12]
cmp r3, #9
bgt .L11
ldrb r3, [fp, #-17]
add r3, r3, #2
strb r3, [fp, #-17]
b .L11
.L6:
ldr r3, [fp, #-12]
add r3, r3, #1
str r3, [fp, #-12]
.L5:
ldr r3, [fp, #-12]
ldr r2, [fp, #-8]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
bne .L9
b .L8
.L11:
nop
.L8:
ldr r3, [fp, #-16]
ldr r2, [fp, #-28]
add r3, r2, r3
ldrb r2, [fp, #-17]
strb r2, [r3]
ldr r3, [fp, #-16]
add r3, r3, #1
str r3, [fp, #-16]
.L2:
ldr r3, [fp, #-16]
ldr r2, [fp, #-24]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
bne .L10
ldr r3, [fp, #-16]
ldr r2, [fp, #-28]
add r3, r2, r3
mov r2, #0
strb r2, [r3]
nop
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L13:
.align 2
.L12:
.word .LC0
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem130/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
push {r4, r5, r6, r7, r8, r9, r10, lr}
subs r9, r1, #0
mov r8, r2
ble .L2
mov r7, #0
sub r2, r0, #4
.L3:
ldr lr, [r2, #4]!
mov r1, #0
sub lr, lr, #4
b .L5
.L14:
mov r1, ip
.L5:
ldr r6, [lr, #4]!
add ip, r1, #1
cmp r6, #1
moveq r4, r1
moveq r5, r7
cmp r9, ip
bne .L14
cmp r1, r7
add r7, r7, #1
bne .L3
.L2:
cmp r5, #0
mul r6, r9, r9
beq .L6
sub r2, r5, #-1073741823
ldr r2, [r0, r2, lsl #2]
ldr r2, [r2, r4, lsl #2]
cmp r6, r2
movge r6, r2
.L6:
sub r9, r9, #1
cmp r9, r5
ble .L7
add r2, r5, #1
ldr r2, [r0, r2, lsl #2]
ldr r2, [r2, r4, lsl #2]
cmp r6, r2
movge r6, r2
.L7:
cmp r4, #0
beq .L8
ldr r2, [r0, r5, lsl #2]
sub r1, r4, #-1073741823
ldr r2, [r2, r1, lsl #2]
cmp r6, r2
movge r6, r2
.L8:
cmp r9, r4
ble .L9
ldr r2, [r0, r5, lsl #2]
add r4, r4, #1
ldr r2, [r2, r4, lsl #2]
cmp r6, r2
movge r6, r2
.L9:
str r8, [r3]
lsl r0, r8, #2
bl malloc
cmp r8, #0
pople {r4, r5, r6, r7, r8, r9, r10, pc}
mov r3, #0
mov r2, #1
.L10:
tst r3, #1
streq r2, [r0, r3, lsl #2]
strne r6, [r0, r3, lsl #2]
add r3, r3, #1
cmp r8, r3
bne .L10
pop {r4, r5, r6, r7, r8, r9, r10, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 40
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #40
str r0, [fp, #-32]
str r1, [fp, #-36]
str r2, [fp, #-40]
str r3, [fp, #-44]
mov r3, #0
str r3, [fp, #-28]
b .L2
.L6:
mov r3, #0
str r3, [fp, #-24]
b .L3
.L5:
ldr r3, [fp, #-28]
lsl r3, r3, #2
ldr r2, [fp, #-32]
add r3, r2, r3
ldr r2, [r3]
ldr r3, [fp, #-24]
lsl r3, r3, #2
add r3, r2, r3
ldr r3, [r3]
cmp r3, #1
bne .L4
ldr r3, [fp, #-28]
str r3, [fp, #-20]
ldr r3, [fp, #-24]
str r3, [fp, #-16]
.L4:
ldr r3, [fp, #-24]
add r3, r3, #1
str r3, [fp, #-24]
.L3:
ldr r2, [fp, #-24]
ldr r3, [fp, #-36]
cmp r2, r3
blt .L5
ldr r3, [fp, #-28]
add r3, r3, #1
str r3, [fp, #-28]
.L2:
ldr r2, [fp, #-28]
ldr r3, [fp, #-36]
cmp r2, r3
blt .L6
ldr r3, [fp, #-36]
mov r2, r3
mul r2, r3, r2
mov r3, r2
str r3, [fp, #-12]
ldr r3, [fp, #-20]
cmp r3, #0
ble .L7
ldr r3, [fp, #-20]
sub r3, r3, #-1073741823
lsl r3, r3, #2
ldr r2, [fp, #-32]
add r3, r2, r3
ldr r2, [r3]
ldr r3, [fp, #-16]
lsl r3, r3, #2
add r3, r2, r3
ldr r3, [r3]
ldr r2, [fp, #-12]
cmp r2, r3
ble .L7
ldr r3, [fp, #-20]
sub r3, r3, #-1073741823
lsl r3, r3, #2
ldr r2, [fp, #-32]
add r3, r2, r3
ldr r2, [r3]
ldr r3, [fp, #-16]
lsl r3, r3, #2
add r3, r2, r3
ldr r3, [r3]
str r3, [fp, #-12]
.L7:
ldr r3, [fp, #-36]
sub r3, r3, #1
ldr r2, [fp, #-20]
cmp r2, r3
bge .L8
ldr r3, [fp, #-20]
add r3, r3, #1
lsl r3, r3, #2
ldr r2, [fp, #-32]
add r3, r2, r3
ldr r2, [r3]
ldr r3, [fp, #-16]
lsl r3, r3, #2
add r3, r2, r3
ldr r3, [r3]
ldr r2, [fp, #-12]
cmp r2, r3
ble .L8
ldr r3, [fp, #-20]
add r3, r3, #1
lsl r3, r3, #2
ldr r2, [fp, #-32]
add r3, r2, r3
ldr r2, [r3]
ldr r3, [fp, #-16]
lsl r3, r3, #2
add r3, r2, r3
ldr r3, [r3]
str r3, [fp, #-12]
.L8:
ldr r3, [fp, #-16]
cmp r3, #0
ble .L9
ldr r3, [fp, #-20]
lsl r3, r3, #2
ldr r2, [fp, #-32]
add r3, r2, r3
ldr r2, [r3]
ldr r3, [fp, #-16]
sub r3, r3, #-1073741823
lsl r3, r3, #2
add r3, r2, r3
ldr r3, [r3]
ldr r2, [fp, #-12]
cmp r2, r3
ble .L9
ldr r3, [fp, #-20]
lsl r3, r3, #2
ldr r2, [fp, #-32]
add r3, r2, r3
ldr r2, [r3]
ldr r3, [fp, #-16]
sub r3, r3, #-1073741823
lsl r3, r3, #2
add r3, r2, r3
ldr r3, [r3]
str r3, [fp, #-12]
.L9:
ldr r3, [fp, #-36]
sub r3, r3, #1
ldr r2, [fp, #-16]
cmp r2, r3
bge .L10
ldr r3, [fp, #-20]
lsl r3, r3, #2
ldr r2, [fp, #-32]
add r3, r2, r3
ldr r2, [r3]
ldr r3, [fp, #-16]
add r3, r3, #1
lsl r3, r3, #2
add r3, r2, r3
ldr r3, [r3]
ldr r2, [fp, #-12]
cmp r2, r3
ble .L10
ldr r3, [fp, #-20]
lsl r3, r3, #2
ldr r2, [fp, #-32]
add r3, r2, r3
ldr r2, [r3]
ldr r3, [fp, #-16]
add r3, r3, #1
lsl r3, r3, #2
add r3, r2, r3
ldr r3, [r3]
str r3, [fp, #-12]
.L10:
ldr r3, [fp, #-44]
ldr r2, [fp, #-40]
str r2, [r3]
ldr r3, [fp, #-40]
lsl r3, r3, #2
mov r0, r3
bl malloc
mov r3, r0
str r3, [fp, #-8]
mov r3, #0
str r3, [fp, #-28]
b .L11
.L14:
ldr r3, [fp, #-28]
and r3, r3, #1
cmp r3, #0
bne .L12
ldr r3, [fp, #-28]
lsl r3, r3, #2
ldr r2, [fp, #-8]
add r3, r2, r3
mov r2, #1
str r2, [r3]
b .L13
.L12:
ldr r3, [fp, #-28]
lsl r3, r3, #2
ldr r2, [fp, #-8]
add r3, r2, r3
ldr r2, [fp, #-12]
str r2, [r3]
.L13:
ldr r3, [fp, #-28]
add r3, r3, #1
str r3, [fp, #-28]
.L11:
ldr r2, [fp, #-28]
ldr r3, [fp, #-40]
cmp r2, r3
blt .L14
ldr r3, [fp, #-8]
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem99/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.section .rodata.str1.4,"aMS",%progbits,1
.align 2
.LC0:
.ascii "AEIOU\000"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
push {r4, r5, r6, r7, r8, lr}
ldrb r5, [r0] @ zero_extendqisi2
cmp r5, #0
beq .L1
mov r8, r0
bl strlen
mvn r7, #1
add r4, r8, #1
add r6, r0, #1
sub r7, r7, r8
mov r5, #0
ldr r8, .L15
add r6, r4, r6, lsr #1
b .L3
.L5:
ldrb r1, [r7, r4, lsl #1] @ zero_extendqisi2
mov r0, r8
bl strchr
ldrb r3, [r4], #1 @ zero_extendqisi2
cmp r0, #0
addne r5, r5, #1
cmp r3, #0
beq .L1
.L3:
cmp r4, r6
bne .L5
.L1:
mov r0, r5
pop {r4, r5, r6, r7, r8, pc}
.L16:
.align 2
.L15:
.word .LC0
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.section .rodata
.align 2
.LC0:
.ascii "AEIOU\000"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 24
@ frame_needed = 1, uses_anonymous_args = 0
push {r4, fp, lr}
add fp, sp, #8
sub sp, sp, #28
str r0, [fp, #-32]
ldr r3, .L7
str r3, [fp, #-16]
mov r3, #0
str r3, [fp, #-24]
mov r3, #0
str r3, [fp, #-20]
b .L2
.L5:
ldr r3, [fp, #-20]
lsl r3, r3, #1
mov r2, r3
ldr r3, [fp, #-32]
add r3, r3, r2
ldrb r3, [r3] @ zero_extendqisi2
mov r1, r3
ldr r0, [fp, #-16]
bl strchr
mov r3, r0
cmp r3, #0
beq .L3
ldr r3, [fp, #-24]
add r3, r3, #1
str r3, [fp, #-24]
.L3:
ldr r3, [fp, #-20]
add r3, r3, #1
str r3, [fp, #-20]
.L2:
ldr r3, [fp, #-20]
ldr r2, [fp, #-32]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L4
ldr r3, [fp, #-20]
lsl r3, r3, #1
mov r4, r3
ldr r0, [fp, #-32]
bl strlen
mov r3, r0
cmp r4, r3
bcc .L5
.L4:
ldr r3, [fp, #-24]
mov r0, r3
sub sp, fp, #8
@ sp needed
pop {r4, fp, pc}
.L8:
.align 2
.L7:
.word .LC0
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem12/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
push {r4, r5, r6, lr}
mov r5, r1
mov r4, r0
bl strlen
mov r6, r0
mov r0, r5
bl strlen
cmp r6, r0
movge r6, r0
add r0, r6, #1
bl malloc
cmp r0, #0
popeq {r4, r5, r6, pc}
cmp r6, #0
beq .L3
sub r2, r4, #1
sub r1, r5, #1
add r4, r2, r6
sub ip, r0, #1
.L5:
ldrb r3, [r2, #1]! @ zero_extendqisi2
ldrb lr, [r1, #1]! @ zero_extendqisi2
cmp r3, lr
moveq r3, #48
movne r3, #49
cmp r2, r4
strb r3, [ip, #1]!
bne .L5
.L3:
mov r3, #0
strb r3, [r0, r6]
pop {r4, r5, r6, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 32
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #32
str r0, [fp, #-32]
str r1, [fp, #-36]
ldr r0, [fp, #-32]
bl strlen
mov r3, r0
str r3, [fp, #-20]
ldr r0, [fp, #-36]
bl strlen
mov r3, r0
str r3, [fp, #-16]
ldr r2, [fp, #-16]
ldr r3, [fp, #-20]
cmp r2, r3
movlt r3, r2
movge r3, r3
str r3, [fp, #-12]
ldr r3, [fp, #-12]
add r3, r3, #1
mov r0, r3
bl malloc
mov r3, r0
str r3, [fp, #-8]
ldr r3, [fp, #-8]
cmp r3, #0
bne .L2
mov r3, #0
b .L3
.L2:
mov r3, #0
str r3, [fp, #-24]
b .L4
.L7:
ldr r3, [fp, #-24]
ldr r2, [fp, #-32]
add r3, r2, r3
ldrb r2, [r3] @ zero_extendqisi2
ldr r3, [fp, #-24]
ldr r1, [fp, #-36]
add r3, r1, r3
ldrb r3, [r3] @ zero_extendqisi2
cmp r2, r3
bne .L5
mov r1, #48
b .L6
.L5:
mov r1, #49
.L6:
ldr r3, [fp, #-24]
ldr r2, [fp, #-8]
add r3, r2, r3
mov r2, r1
strb r2, [r3]
ldr r3, [fp, #-24]
add r3, r3, #1
str r3, [fp, #-24]
.L4:
ldr r2, [fp, #-24]
ldr r3, [fp, #-12]
cmp r2, r3
blt .L7
ldr r3, [fp, #-12]
ldr r2, [fp, #-8]
add r3, r2, r3
mov r2, #0
strb r2, [r3]
ldr r3, [fp, #-8]
.L3:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem155/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
push {r4, r5, r6, r7, r8, r9, r10, lr}
mov r9, r0
mov r0, r1
mov r7, r1
bl strlen
mov r5, r0
lsl r0, r0, #1
add r0, r0, #1
bl malloc
cmp r5, #0
movne r4, #0
mov r6, r0
movne r10, r4
addne r8, r0, r5
bne .L5
b .L6
.L4:
cmp r5, r4
beq .L6
.L5:
sub r2, r5, r4
add r1, r7, r4
mov r0, r6
bl strncpy
mov r2, r4
mov r1, r7
sub r0, r8, r4
bl strncpy
mov r1, r6
mov r0, r9
strb r10, [r8]
bl strstr
cmp r0, #0
add r4, r4, #1
beq .L4
mov r0, r6
bl free
mov r0, #1
pop {r4, r5, r6, r7, r8, r9, r10, pc}
.L6:
mov r0, r6
bl free
mov r0, #0
pop {r4, r5, r6, r7, r8, r9, r10, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 24
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #24
str r0, [fp, #-24]
str r1, [fp, #-28]
ldr r0, [fp, #-24]
bl strlen
mov r3, r0
str r3, [fp, #-16]
ldr r0, [fp, #-28]
bl strlen
mov r3, r0
str r3, [fp, #-12]
ldr r3, [fp, #-12]
lsl r3, r3, #1
add r3, r3, #1
mov r0, r3
bl malloc
mov r3, r0
str r3, [fp, #-8]
mov r3, #0
str r3, [fp, #-20]
b .L2
.L5:
ldr r3, [fp, #-20]
ldr r2, [fp, #-28]
add r1, r2, r3
ldr r2, [fp, #-12]
ldr r3, [fp, #-20]
sub r3, r2, r3
mov r2, r3
ldr r0, [fp, #-8]
bl strncpy
ldr r2, [fp, #-12]
ldr r3, [fp, #-20]
sub r3, r2, r3
ldr r2, [fp, #-8]
add r3, r2, r3
ldr r2, [fp, #-20]
ldr r1, [fp, #-28]
mov r0, r3
bl strncpy
ldr r3, [fp, #-12]
ldr r2, [fp, #-8]
add r3, r2, r3
mov r2, #0
strb r2, [r3]
ldr r1, [fp, #-8]
ldr r0, [fp, #-24]
bl strstr
mov r3, r0
cmp r3, #0
beq .L3
ldr r0, [fp, #-8]
bl free
mov r3, #1
b .L4
.L3:
ldr r3, [fp, #-20]
add r3, r3, #1
str r3, [fp, #-20]
.L2:
ldr r2, [fp, #-20]
ldr r3, [fp, #-12]
cmp r2, r3
blt .L5
ldr r0, [fp, #-8]
bl free
mov r3, #0
.L4:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem67/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
@ link register save eliminated.
ldrb r3, [r0] @ zero_extendqisi2
mov r2, r0
cmp r3, #0
beq .L5
mov r0, #0
.L4:
sub r1, r3, #65
cmp r1, #25
addls r0, r0, r3
ldrb r3, [r2, #1]! @ zero_extendqisi2
cmp r3, #0
bne .L4
bx lr
.L5:
mov r0, r3
bx lr
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #20
str r0, [fp, #-16]
mov r3, #0
str r3, [fp, #-12]
mov r3, #0
str r3, [fp, #-8]
b .L2
.L4:
ldr r3, [fp, #-8]
ldr r2, [fp, #-16]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #64
bls .L3
ldr r3, [fp, #-8]
ldr r2, [fp, #-16]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #90
bhi .L3
ldr r3, [fp, #-8]
ldr r2, [fp, #-16]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
mov r2, r3
ldr r3, [fp, #-12]
add r3, r3, r2
str r3, [fp, #-12]
.L3:
ldr r3, [fp, #-8]
add r3, r3, #1
str r3, [fp, #-8]
.L2:
ldr r3, [fp, #-8]
ldr r2, [fp, #-16]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
bne .L4
ldr r3, [fp, #-12]
mov r0, r3
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem57/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
@ link register save eliminated.
ldrb r3, [r0] @ zero_extendqisi2
cmp r3, #0
beq .L7
mov r2, #0
b .L6
.L4:
ldrb r3, [r0, #1]! @ zero_extendqisi2
cmp r3, #0
beq .L11
.L6:
cmp r3, #60
addeq r2, r2, #1
beq .L4
cmp r3, #62
bne .L4
subs r2, r2, #1
bcs .L4
mov r0, #0
bx lr
.L11:
clz r0, r2
lsr r0, r0, #5
bx lr
.L7:
mov r0, #1
bx lr
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #20
str r0, [fp, #-16]
mov r3, #0
str r3, [fp, #-12]
mov r3, #0
str r3, [fp, #-8]
b .L2
.L7:
ldr r3, [fp, #-8]
ldr r2, [fp, #-16]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #60
bne .L3
ldr r3, [fp, #-12]
add r3, r3, #1
str r3, [fp, #-12]
.L3:
ldr r3, [fp, #-8]
ldr r2, [fp, #-16]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #62
bne .L4
ldr r3, [fp, #-12]
sub r3, r3, #1
str r3, [fp, #-12]
.L4:
ldr r3, [fp, #-12]
cmp r3, #0
bge .L5
mov r3, #0
b .L6
.L5:
ldr r3, [fp, #-8]
add r3, r3, #1
str r3, [fp, #-8]
.L2:
ldr r3, [fp, #-8]
ldr r2, [fp, #-16]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
bne .L7
ldr r3, [fp, #-12]
cmp r3, #0
beq .L8
mov r3, #0
b .L6
.L8:
mov r3, #1
.L6:
mov r0, r3
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem101/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
push {r4, r5, r6, lr}
lsl r5, r0, #2
mov r4, r0
mov r0, r5
bl malloc
cmp r4, #1
str r4, [r0]
pople {r4, r5, r6, pc}
mov r3, r0
sub r2, r5, #4
add r2, r2, r0
.L3:
add r4, r4, #2
str r4, [r3, #4]!
cmp r3, r2
bne .L3
pop {r4, r5, r6, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #16
str r0, [fp, #-16]
ldr r3, [fp, #-16]
lsl r3, r3, #2
mov r0, r3
bl malloc
mov r3, r0
str r3, [fp, #-8]
ldr r3, [fp, #-8]
ldr r2, [fp, #-16]
str r2, [r3]
mov r3, #1
str r3, [fp, #-12]
b .L2
.L3:
ldr r3, [fp, #-12]
sub r3, r3, #-1073741823
lsl r3, r3, #2
ldr r2, [fp, #-8]
add r3, r2, r3
ldr r2, [r3]
ldr r3, [fp, #-12]
lsl r3, r3, #2
ldr r1, [fp, #-8]
add r3, r1, r3
add r2, r2, #2
str r2, [r3]
ldr r3, [fp, #-12]
add r3, r3, #1
str r3, [fp, #-12]
.L2:
ldr r2, [fp, #-12]
ldr r3, [fp, #-16]
cmp r2, r3
blt .L3
ldr r3, [fp, #-8]
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem54/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
@ link register save eliminated.
add r0, r0, r1
bx lr
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #12
str r0, [fp, #-8]
str r1, [fp, #-12]
ldr r2, [fp, #-8]
ldr r3, [fp, #-12]
add r3, r2, r3
mov r0, r3
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem148/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 32
@ frame_needed = 0, uses_anonymous_args = 0
push {r4, r5, r6, r7, r8, r9, r10, fp, lr}
lsl r9, r0, #2
sub sp, sp, #36
mov r5, r0
str r0, [sp, #28]
mov r0, r9
bl malloc
mov r3, r0
add r4, r9, #4
mov r0, r4
str r3, [sp, #16]
bl malloc
mov r3, r0
mov r0, r4
str r3, [sp, #8]
bl malloc
cmp r5, #0
str r0, [sp, #4]
blt .L30
ldr r3, [sp, #8]
ldr r2, [sp, #4]
sub r4, r3, #4
sub r5, r2, #4
add r6, r3, r9
.L6:
mov r1, #4
mov r0, #3
bl calloc
mov r3, r0
mov r1, #4
str r3, [r4, #4]!
mov r0, #3
bl calloc
cmp r4, r6
str r0, [r5, #4]!
bne .L6
mov r3, #0
ldr r4, [sp, #8]
ldr r2, [sp, #4]
ldr r1, [sp, #28]
ldr r2, [r2]
ldr r0, [r4]
cmp r1, r3
str r2, [sp, #20]
str r3, [r0, #8]
str r3, [r0, #4]
str r3, [r0]
str r3, [r2, #8]
str r3, [r2, #4]
str r3, [r2]
ble .L8
ldr r3, [sp, #16]
add r7, r1, #1
sub r5, r3, #4
mov r1, #1
mov r3, r0
ldr r6, .L33
.L5:
mov ip, r3
sub r2, r1, #1
mul r2, r1, r2
add r2, r2, #1
umull r3, lr, r6, r2
bic r3, lr, #1
add r3, r3, lr, lsr #1
sub r2, r2, r3
str r2, [r5, #4]!
ldr lr, [ip]
ldr r3, [r4, #4]!
add r1, r1, #1
str lr, [r3]
ldr lr, [ip, #4]
cmp r1, r7
str lr, [r3, #4]
ldr ip, [ip, #8]
str ip, [r3, #8]
ldr ip, [r3, r2, lsl #2]
add ip, ip, #1
str ip, [r3, r2, lsl #2]
bne .L5
.L8:
ldr r3, [sp, #4]
mov r7, #0
add r9, r9, r3
mov r3, #2
ldr r8, .L33+4
ldr fp, [sp, #28]
str r3, [sp, #24]
str r0, [sp, #12]
.L9:
cmp fp, #0
ble .L17
ldmib sp, {r5, r10, lr}
mov ip, lr
ldr r3, [sp, #16]
sub r6, r3, #4
ldr r3, [sp, #20]
.L13:
ldr r0, [r3]
ldr r1, [r5, #4]!
ldr r2, [r6, #4]!
str r0, [r1]
ldr r0, [r3, #4]
str r0, [r1, #4]
ldr r3, [r3, #8]
sub r0, ip, #4
str r3, [r1, #8]
add ip, ip, #8
.L10:
smull lr, r3, r8, r2
sub r3, r3, r2, asr #31
add r3, r3, r3, lsl #1
sub r3, r2, r3
ldr lr, [r1, r3, lsl #2]
ldr r4, [r0, #4]!
add r2, r2, #1
add lr, lr, r4
cmp r0, ip
str lr, [r1, r3, lsl #2]
bne .L10
cmp r9, r5
beq .L14
mov r3, r1
ldr ip, [r10, #4]!
b .L13
.L17:
bne .L15
.L14:
mov r1, #0
ldr r4, [sp, #8]
ldr lr, [sp, #4]
ldr r2, [sp, #12]
ldr r3, [sp, #20]
b .L12
.L31:
ldr r3, [lr, #4]!
ldr r2, [r4, #4]!
.L12:
ldm r3, {r0, ip}
add r1, r1, #1
str r0, [r2]
ldr r0, [r3, #8]
cmp fp, r1
str r7, [r3]
str ip, [r2, #4]
str r7, [r3, #4]
str r0, [r2, #8]
str r7, [r3, #8]
bge .L31
.L15:
ldr r3, [sp, #24]
cmp r3, #1
movne r3, #1
strne r3, [sp, #24]
bne .L9
.L16:
ldr r2, [sp, #28]
ldr r5, [sp, #8]
cmp r2, #0
ldr r3, [r5, r2, lsl #2]
ldr r0, [sp, #12]
ldr r6, [r3]
blt .L18
ldr r3, [sp, #4]
sub r4, r3, #4
b .L19
.L32:
ldr r0, [r5, #4]!
.L19:
bl free
ldr r0, [r4, #4]!
bl free
cmp r9, r4
bne .L32
.L18:
ldr r0, [sp, #8]
bl free
ldr r0, [sp, #4]
bl free
ldr r0, [sp, #16]
bl free
mov r0, r6
add sp, sp, #36
@ sp needed
pop {r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L30:
mov r3, #0
ldr r2, [sp, #8]
ldr r0, [r2]
ldr r2, [sp, #4]
str r3, [r0, #8]
ldr r2, [r2]
str r3, [r0, #4]
str r2, [sp, #20]
str r3, [r0]
str r3, [r2, #8]
str r3, [r2, #4]
str r3, [r2]
b .L8
.L34:
.align 2
.L33:
.word -1431655765
.word 1431655766
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 64
@ frame_needed = 1, uses_anonymous_args = 0
push {r4, fp, lr}
add fp, sp, #8
sub sp, sp, #68
str r0, [fp, #-72]
ldr r3, [fp, #-72]
lsl r3, r3, #2
mov r0, r3
bl malloc
mov r3, r0
str r3, [fp, #-28]
ldr r3, [fp, #-72]
add r3, r3, #1
lsl r3, r3, #2
mov r0, r3
bl malloc
mov r3, r0
str r3, [fp, #-24]
ldr r3, [fp, #-72]
add r3, r3, #1
lsl r3, r3, #2
mov r0, r3
bl malloc
mov r3, r0
str r3, [fp, #-20]
mov r3, #0
str r3, [fp, #-68]
b .L2
.L3:
ldr r3, [fp, #-68]
lsl r3, r3, #2
ldr r2, [fp, #-24]
add r4, r2, r3
mov r1, #4
mov r0, #3
bl calloc
mov r3, r0
str r3, [r4]
ldr r3, [fp, #-68]
lsl r3, r3, #2
ldr r2, [fp, #-20]
add r4, r2, r3
mov r1, #4
mov r0, #3
bl calloc
mov r3, r0
str r3, [r4]
ldr r3, [fp, #-68]
add r3, r3, #1
str r3, [fp, #-68]
.L2:
ldr r2, [fp, #-68]
ldr r3, [fp, #-72]
cmp r2, r3
ble .L3
ldr r3, [fp, #-24]
ldr r3, [r3]
add r2, r3, #8
mov r3, #0
str r3, [r2]
ldr r3, [fp, #-24]
ldr r3, [r3]
add r3, r3, #4
ldr r2, [r2]
str r2, [r3]
ldr r2, [fp, #-24]
ldr r2, [r2]
ldr r3, [r3]
str r3, [r2]
ldr r3, [fp, #-20]
ldr r3, [r3]
add r2, r3, #8
mov r3, #0
str r3, [r2]
ldr r3, [fp, #-20]
ldr r3, [r3]
add r3, r3, #4
ldr r2, [r2]
str r2, [r3]
ldr r2, [fp, #-20]
ldr r2, [r2]
ldr r3, [r3]
str r3, [r2]
mov r3, #1
str r3, [fp, #-64]
b .L4
.L7:
ldr r3, [fp, #-64]
mul r2, r3, r3
ldr r3, [fp, #-64]
sub r3, r2, r3
add r1, r3, #1
ldr r3, [fp, #-64]
sub r3, r3, #-1073741823
lsl r3, r3, #2
ldr r2, [fp, #-28]
add r0, r2, r3
ldr r3, .L24
smull ip, r2, r3, r1
asr r3, r1, #31
sub r2, r2, r3
mov r3, r2
lsl r3, r3, #1
add r3, r3, r2
sub r2, r1, r3
str r2, [r0]
mov r3, #0
str r3, [fp, #-60]
b .L5
.L6:
ldr r3, [fp, #-64]
sub r3, r3, #-1073741823
lsl r3, r3, #2
ldr r2, [fp, #-24]
add r3, r2, r3
ldr r2, [r3]
ldr r3, [fp, #-60]
lsl r3, r3, #2
add r2, r2, r3
ldr r3, [fp, #-64]
lsl r3, r3, #2
ldr r1, [fp, #-24]
add r3, r1, r3
ldr r1, [r3]
ldr r3, [fp, #-60]
lsl r3, r3, #2
add r3, r1, r3
ldr r2, [r2]
str r2, [r3]
ldr r3, [fp, #-60]
add r3, r3, #1
str r3, [fp, #-60]
.L5:
ldr r3, [fp, #-60]
cmp r3, #2
ble .L6
ldr r3, [fp, #-64]
lsl r3, r3, #2
ldr r2, [fp, #-24]
add r3, r2, r3
ldr r2, [r3]
ldr r3, [fp, #-64]
sub r3, r3, #-1073741823
lsl r3, r3, #2
ldr r1, [fp, #-28]
add r3, r1, r3
ldr r3, [r3]
lsl r3, r3, #2
add r3, r2, r3
ldr r2, [r3]
ldr r3, [fp, #-64]
lsl r3, r3, #2
ldr r1, [fp, #-24]
add r3, r1, r3
ldr r1, [r3]
ldr r3, [fp, #-64]
sub r3, r3, #-1073741823
lsl r3, r3, #2
ldr r0, [fp, #-28]
add r3, r0, r3
ldr r3, [r3]
lsl r3, r3, #2
add r3, r1, r3
add r2, r2, #1
str r2, [r3]
ldr r3, [fp, #-64]
add r3, r3, #1
str r3, [fp, #-64]
.L4:
ldr r2, [fp, #-64]
ldr r3, [fp, #-72]
cmp r2, r3
ble .L7
mov r3, #1
str r3, [fp, #-56]
b .L8
.L20:
mov r3, #1
str r3, [fp, #-52]
b .L9
.L15:
mov r3, #0
str r3, [fp, #-48]
b .L10
.L11:
ldr r3, [fp, #-52]
sub r3, r3, #-1073741823
lsl r3, r3, #2
ldr r2, [fp, #-20]
add r3, r2, r3
ldr r2, [r3]
ldr r3, [fp, #-48]
lsl r3, r3, #2
add r2, r2, r3
ldr r3, [fp, #-52]
lsl r3, r3, #2
ldr r1, [fp, #-20]
add r3, r1, r3
ldr r1, [r3]
ldr r3, [fp, #-48]
lsl r3, r3, #2
add r3, r1, r3
ldr r2, [r2]
str r2, [r3]
ldr r3, [fp, #-48]
add r3, r3, #1
str r3, [fp, #-48]
.L10:
ldr r3, [fp, #-48]
cmp r3, #2
ble .L11
ldr r3, [fp, #-52]
cmp r3, #0
ble .L12
mov r3, #0
str r3, [fp, #-44]
b .L13
.L14:
ldr r3, [fp, #-52]
lsl r3, r3, #2
ldr r2, [fp, #-20]
add r3, r2, r3
ldr r0, [r3]
ldr r3, [fp, #-52]
sub r3, r3, #-1073741823
lsl r3, r3, #2
ldr r2, [fp, #-28]
add r3, r2, r3
ldr r2, [r3]
ldr r3, [fp, #-44]
add r2, r2, r3
ldr r3, .L24
smull ip, r1, r3, r2
asr r3, r2, #31
sub r1, r1, r3
mov r3, r1
lsl r3, r3, #1
add r3, r3, r1
sub r1, r2, r3
mov r3, r1
lsl r3, r3, #2
add r3, r0, r3
ldr r0, [r3]
ldr r3, [fp, #-52]
sub r3, r3, #-1073741823
lsl r3, r3, #2
ldr r2, [fp, #-24]
add r3, r2, r3
ldr r2, [r3]
ldr r3, [fp, #-44]
lsl r3, r3, #2
add r3, r2, r3
ldr r2, [r3]
ldr r3, [fp, #-52]
lsl r3, r3, #2
ldr ip, [fp, #-20]
add r3, ip, r3
ldr ip, [r3]
mov r3, r1
lsl r3, r3, #2
add r3, ip, r3
add r2, r0, r2
str r2, [r3]
ldr r3, [fp, #-44]
add r3, r3, #1
str r3, [fp, #-44]
.L13:
ldr r3, [fp, #-44]
cmp r3, #2
ble .L14
.L12:
ldr r3, [fp, #-52]
add r3, r3, #1
str r3, [fp, #-52]
.L9:
ldr r2, [fp, #-52]
ldr r3, [fp, #-72]
cmp r2, r3
ble .L15
mov r3, #0
str r3, [fp, #-40]
b .L16
.L19:
mov r3, #0
str r3, [fp, #-36]
b .L17
.L18:
ldr r3, [fp, #-40]
lsl r3, r3, #2
ldr r2, [fp, #-20]
add r3, r2, r3
ldr r2, [r3]
ldr r3, [fp, #-36]
lsl r3, r3, #2
add r2, r2, r3
ldr r3, [fp, #-40]
lsl r3, r3, #2
ldr r1, [fp, #-24]
add r3, r1, r3
ldr r1, [r3]
ldr r3, [fp, #-36]
lsl r3, r3, #2
add r3, r1, r3
ldr r2, [r2]
str r2, [r3]
ldr r3, [fp, #-40]
lsl r3, r3, #2
ldr r2, [fp, #-20]
add r3, r2, r3
ldr r2, [r3]
ldr r3, [fp, #-36]
lsl r3, r3, #2
add r3, r2, r3
mov r2, #0
str r2, [r3]
ldr r3, [fp, #-36]
add r3, r3, #1
str r3, [fp, #-36]
.L17:
ldr r3, [fp, #-36]
cmp r3, #2
ble .L18
ldr r3, [fp, #-40]
add r3, r3, #1
str r3, [fp, #-40]
.L16:
ldr r2, [fp, #-40]
ldr r3, [fp, #-72]
cmp r2, r3
ble .L19
ldr r3, [fp, #-56]
add r3, r3, #1
str r3, [fp, #-56]
.L8:
ldr r3, [fp, #-56]
cmp r3, #2
ble .L20
ldr r3, [fp, #-72]
lsl r3, r3, #2
ldr r2, [fp, #-24]
add r3, r2, r3
ldr r3, [r3]
ldr r3, [r3]
str r3, [fp, #-16]
mov r3, #0
str r3, [fp, #-32]
b .L21
.L22:
ldr r3, [fp, #-32]
lsl r3, r3, #2
ldr r2, [fp, #-24]
add r3, r2, r3
ldr r3, [r3]
mov r0, r3
bl free
ldr r3, [fp, #-32]
lsl r3, r3, #2
ldr r2, [fp, #-20]
add r3, r2, r3
ldr r3, [r3]
mov r0, r3
bl free
ldr r3, [fp, #-32]
add r3, r3, #1
str r3, [fp, #-32]
.L21:
ldr r2, [fp, #-32]
ldr r3, [fp, #-72]
cmp r2, r3
ble .L22
ldr r0, [fp, #-24]
bl free
ldr r0, [fp, #-20]
bl free
ldr r0, [fp, #-28]
bl free
ldr r3, [fp, #-16]
mov r0, r3
sub sp, fp, #8
@ sp needed
pop {r4, fp, pc}
.L25:
.align 2
.L24:
.word 1431655766
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem137/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
mov ip, #0
cmp r1, #0
push {r4, lr}
mov lr, ip
ble .L2
sub r0, r0, #4
add r4, r0, r1, lsl #2
b .L5
.L3:
beq .L4
cmp r3, ip
movge r1, #0
movlt r1, #1
cmp ip, #0
moveq r1, #1
cmp r1, #0
movne ip, r3
.L4:
cmp r4, r0
beq .L2
.L5:
ldr r3, [r0, #4]!
cmp r3, #0
bge .L3
clz r1, lr
lsr r1, r1, #5
cmp r3, lr
orrgt r1, r1, #1
cmp r1, #0
movne lr, r3
cmp r4, r0
bne .L5
.L2:
str lr, [r2]
str ip, [r2, #4]
pop {r4, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 32
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #36
str r0, [fp, #-24]
str r1, [fp, #-28]
str r2, [fp, #-32]
mov r3, #0
str r3, [fp, #-16]
mov r3, #0
str r3, [fp, #-12]
mov r3, #0
str r3, [fp, #-8]
b .L2
.L7:
ldr r3, [fp, #-8]
lsl r3, r3, #2
ldr r2, [fp, #-24]
add r3, r2, r3
ldr r3, [r3]
cmp r3, #0
bge .L3
ldr r3, [fp, #-16]
cmp r3, #0
beq .L4
ldr r3, [fp, #-8]
lsl r3, r3, #2
ldr r2, [fp, #-24]
add r3, r2, r3
ldr r3, [r3]
ldr r2, [fp, #-16]
cmp r2, r3
bge .L3
.L4:
ldr r3, [fp, #-8]
lsl r3, r3, #2
ldr r2, [fp, #-24]
add r3, r2, r3
ldr r3, [r3]
str r3, [fp, #-16]
.L3:
ldr r3, [fp, #-8]
lsl r3, r3, #2
ldr r2, [fp, #-24]
add r3, r2, r3
ldr r3, [r3]
cmp r3, #0
ble .L5
ldr r3, [fp, #-12]
cmp r3, #0
beq .L6
ldr r3, [fp, #-8]
lsl r3, r3, #2
ldr r2, [fp, #-24]
add r3, r2, r3
ldr r3, [r3]
ldr r2, [fp, #-12]
cmp r2, r3
ble .L5
.L6:
ldr r3, [fp, #-8]
lsl r3, r3, #2
ldr r2, [fp, #-24]
add r3, r2, r3
ldr r3, [r3]
str r3, [fp, #-12]
.L5:
ldr r3, [fp, #-8]
add r3, r3, #1
str r3, [fp, #-8]
.L2:
ldr r2, [fp, #-8]
ldr r3, [fp, #-28]
cmp r2, r3
blt .L7
ldr r3, [fp, #-32]
ldr r2, [fp, #-16]
str r2, [r3]
ldr r3, [fp, #-32]
add r3, r3, #4
ldr r2, [fp, #-12]
str r2, [r3]
nop
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem59/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 4, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
push {r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
mov r9, r1
mov r10, r0
lsl r0, r1, #2
mov fp, r2
mov r8, r3
ldr r5, [sp, #40]
bl malloc
cmp r9, #0
movle r6, #0
ble .L3
mov r1, #0
mov r6, r1
.L2:
cmp r6, #0
beq .L10
mov ip, #0
ldr r7, [r10, r1, lsl #2]
sub lr, r0, #4
b .L5
.L23:
cmp ip, r6
beq .L10
.L5:
ldr r4, [lr, #4]!
add ip, ip, #1
cmp r4, r7
bne .L23
.L4:
add r1, r1, #1
cmp r9, r1
bne .L2
.L24:
sub lr, r6, #1
cmp lr, #0
ble .L3
sub ip, r0, #4
add ip, ip, r6, lsl #2
.L11:
mov r3, r0
.L13:
ldr r2, [r3]
ldr r1, [r3, #4]!
cmp r2, r1
stmdagt r3, {r1, r2}
cmp r3, ip
bne .L13
subs lr, lr, #1
sub ip, ip, #4
bne .L11
.L3:
str r6, [r5]
pop {r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L10:
cmp r8, #0
ble .L4
mov r3, #0
ldr lr, [r10, r1, lsl #2]
sub r2, fp, #4
b .L7
.L6:
cmp r8, r3
beq .L4
.L7:
ldr ip, [r2, #4]!
add r3, r3, #1
cmp lr, ip
bne .L6
add r1, r1, #1
cmp r9, r1
str lr, [r0, r6, lsl #2]
add r6, r6, #1
bne .L2
b .L24
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 4, pretend = 0, frame = 48
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #48
str r0, [fp, #-40]
str r1, [fp, #-44]
str r2, [fp, #-48]
str r3, [fp, #-52]
ldr r3, [fp, #-44]
lsl r3, r3, #2
mov r0, r3
bl malloc
mov r3, r0
str r3, [fp, #-12]
mov r3, #0
str r3, [fp, #-32]
mov r3, #0
str r3, [fp, #-28]
b .L2
.L11:
mov r3, #0
str r3, [fp, #-16]
mov r3, #0
str r3, [fp, #-20]
b .L3
.L6:
ldr r3, [fp, #-20]
lsl r3, r3, #2
ldr r2, [fp, #-12]
add r3, r2, r3
ldr r2, [r3]
ldr r3, [fp, #-28]
lsl r3, r3, #2
ldr r1, [fp, #-40]
add r3, r1, r3
ldr r3, [r3]
cmp r2, r3
bne .L4
mov r3, #1
str r3, [fp, #-16]
b .L5
.L4:
ldr r3, [fp, #-20]
add r3, r3, #1
str r3, [fp, #-20]
.L3:
ldr r2, [fp, #-20]
ldr r3, [fp, #-32]
cmp r2, r3
blt .L6
.L5:
ldr r3, [fp, #-16]
cmp r3, #0
bne .L7
mov r3, #0
str r3, [fp, #-24]
b .L8
.L10:
ldr r3, [fp, #-28]
lsl r3, r3, #2
ldr r2, [fp, #-40]
add r3, r2, r3
ldr r2, [r3]
ldr r3, [fp, #-24]
lsl r3, r3, #2
ldr r1, [fp, #-48]
add r3, r1, r3
ldr r3, [r3]
cmp r2, r3
bne .L9
ldr r3, [fp, #-28]
lsl r3, r3, #2
ldr r2, [fp, #-40]
add r2, r2, r3
ldr r3, [fp, #-32]
add r1, r3, #1
str r1, [fp, #-32]
lsl r3, r3, #2
ldr r1, [fp, #-12]
add r3, r1, r3
ldr r2, [r2]
str r2, [r3]
b .L7
.L9:
ldr r3, [fp, #-24]
add r3, r3, #1
str r3, [fp, #-24]
.L8:
ldr r2, [fp, #-24]
ldr r3, [fp, #-52]
cmp r2, r3
blt .L10
.L7:
ldr r3, [fp, #-28]
add r3, r3, #1
str r3, [fp, #-28]
.L2:
ldr r2, [fp, #-28]
ldr r3, [fp, #-44]
cmp r2, r3
blt .L11
mov r3, #0
str r3, [fp, #-28]
b .L12
.L16:
mov r3, #0
str r3, [fp, #-24]
b .L13
.L15:
ldr r3, [fp, #-24]
lsl r3, r3, #2
ldr r2, [fp, #-12]
add r3, r2, r3
ldr r2, [r3]
ldr r3, [fp, #-24]
add r3, r3, #1
lsl r3, r3, #2
ldr r1, [fp, #-12]
add r3, r1, r3
ldr r3, [r3]
cmp r2, r3
ble .L14
ldr r3, [fp, #-24]
lsl r3, r3, #2
ldr r2, [fp, #-12]
add r3, r2, r3
ldr r3, [r3]
str r3, [fp, #-8]
ldr r3, [fp, #-24]
add r3, r3, #1
lsl r3, r3, #2
ldr r2, [fp, #-12]
add r2, r2, r3
ldr r3, [fp, #-24]
lsl r3, r3, #2
ldr r1, [fp, #-12]
add r3, r1, r3
ldr r2, [r2]
str r2, [r3]
ldr r3, [fp, #-24]
add r3, r3, #1
lsl r3, r3, #2
ldr r2, [fp, #-12]
add r3, r2, r3
ldr r2, [fp, #-8]
str r2, [r3]
.L14:
ldr r3, [fp, #-24]
add r3, r3, #1
str r3, [fp, #-24]
.L13:
ldr r2, [fp, #-32]
ldr r3, [fp, #-28]
sub r3, r2, r3
sub r3, r3, #1
ldr r2, [fp, #-24]
cmp r2, r3
blt .L15
ldr r3, [fp, #-28]
add r3, r3, #1
str r3, [fp, #-28]
.L12:
ldr r3, [fp, #-32]
sub r3, r3, #1
ldr r2, [fp, #-28]
cmp r2, r3
blt .L16
ldr r3, [fp, #4]
ldr r2, [fp, #-32]
str r2, [r3]
ldr r3, [fp, #-12]
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem132/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
subs r2, r0, #0
ble .L5
push {r4, lr}
mov r0, #0
mov r4, #1
ldr r1, .L17
.L4:
umull ip, r3, r1, r2
mov ip, r3
lsr r3, r3, #3
add r3, r3, r3, lsl #2
ands lr, r2, #1
sub r3, r2, r3, lsl #1
movne r0, lr
mulne r4, r3, r4
cmp r2, #9
lsr r2, ip, #3
bgt .L4
cmp r0, #0
movne r0, r4
pop {r4, pc}
.L5:
mov r0, #0
bx lr
.L18:
.align 2
.L17:
.word -858993459
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 24
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #28
str r0, [fp, #-24]
mov r3, #1
str r3, [fp, #-16]
mov r3, #0
str r3, [fp, #-12]
b .L2
.L4:
ldr r2, [fp, #-24]
ldr r3, .L8
smull r1, r3, r2, r3
asr r1, r3, #2
asr r3, r2, #31
sub r1, r1, r3
mov r3, r1
lsl r3, r3, #2
add r3, r3, r1
lsl r3, r3, #1
sub r3, r2, r3
str r3, [fp, #-8]
ldr r3, [fp, #-8]
cmp r3, #0
and r3, r3, #1
rsblt r3, r3, #0
cmp r3, #1
bne .L3
mov r3, #1
str r3, [fp, #-12]
ldr r3, [fp, #-16]
ldr r2, [fp, #-8]
mul r3, r2, r3
str r3, [fp, #-16]
.L3:
ldr r3, [fp, #-24]
ldr r2, .L8
smull r1, r2, r3, r2
asr r2, r2, #2
asr r3, r3, #31
sub r3, r2, r3
str r3, [fp, #-24]
.L2:
ldr r3, [fp, #-24]
cmp r3, #0
bgt .L4
ldr r3, [fp, #-12]
cmp r3, #0
beq .L5
ldr r3, [fp, #-16]
b .L7
.L5:
mov r3, #0
.L7:
mov r0, r3
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.L9:
.align 2
.L8:
.word 1717986919
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem46/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.global __aeabi_fmul
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
push {r4, lr}
bl __aeabi_fmul
mov r1, #1056964608
bl __aeabi_fmul
pop {r4, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.global __aeabi_fmul
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #8
str r0, [fp, #-8] @ float
str r1, [fp, #-12] @ float
ldr r1, [fp, #-12] @ float
ldr r0, [fp, #-8] @ float
bl __aeabi_fmul
mov r3, r0
mov r1, #1056964608
mov r0, r3
bl __aeabi_fmul
mov r3, r0
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem117/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
push {r4, r5, r6, r7, r8, lr}
subs r8, r1, #0
pople {r4, r5, r6, r7, r8, pc}
mov r5, r0
mov r7, #0
sub r6, r0, #4
add r6, r6, r8, lsl #2
.L10:
add r7, r7, #1
cmp r8, r7
popeq {r4, r5, r6, r7, r8, pc}
mov r4, r5
.L9:
ldr ip, [r5]
ldr lr, [r4, #4]!
cmp ip, #0
ble .L3
mov r3, ip
mov r1, #0
.L4:
and r2, r3, #1
asrs r3, r3, #1
add r1, r1, r2
bne .L4
cmp lr, #0
ble .L5
.L11:
mov r2, lr
mov r3, #0
.L6:
and r0, r2, #1
asrs r2, r2, #1
add r3, r3, r0
bne .L6
.L5:
cmp r1, r3
bgt .L7
moveq r3, #1
movne r3, #0
.L12:
cmp ip, lr
movle r3, #0
andgt r3, r3, #1
cmp r3, #0
bne .L7
.L8:
cmp r6, r4
bne .L9
add r5, r5, #4
b .L10
.L7:
str lr, [r5]
str ip, [r4]
b .L8
.L3:
cmp lr, #0
movle r3, #1
ble .L12
mov r1, #0
b .L11
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 32
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #36
str r0, [fp, #-32]
str r1, [fp, #-36]
mov r3, #0
str r3, [fp, #-16]
b .L2
.L11:
ldr r3, [fp, #-16]
add r3, r3, #1
str r3, [fp, #-12]
b .L3
.L10:
mov r3, #0
str r3, [fp, #-28]
ldr r3, [fp, #-16]
lsl r3, r3, #2
ldr r2, [fp, #-32]
add r3, r2, r3
ldr r3, [r3]
str r3, [fp, #-24]
ldr r3, [fp, #-12]
lsl r3, r3, #2
ldr r2, [fp, #-32]
add r3, r2, r3
ldr r3, [r3]
str r3, [fp, #-20]
b .L4
.L5:
ldr r3, [fp, #-24]
and r3, r3, #1
ldr r2, [fp, #-28]
add r3, r2, r3
str r3, [fp, #-28]
ldr r3, [fp, #-24]
asr r3, r3, #1
str r3, [fp, #-24]
.L4:
ldr r3, [fp, #-24]
cmp r3, #0
bgt .L5
ldr r3, [fp, #-28]
str r3, [fp, #-24]
mov r3, #0
str r3, [fp, #-28]
b .L6
.L7:
ldr r3, [fp, #-20]
and r3, r3, #1
ldr r2, [fp, #-28]
add r3, r2, r3
str r3, [fp, #-28]
ldr r3, [fp, #-20]
asr r3, r3, #1
str r3, [fp, #-20]
.L6:
ldr r3, [fp, #-20]
cmp r3, #0
bgt .L7
ldr r3, [fp, #-28]
str r3, [fp, #-20]
ldr r2, [fp, #-20]
ldr r3, [fp, #-24]
cmp r2, r3
blt .L8
ldr r2, [fp, #-20]
ldr r3, [fp, #-24]
cmp r2, r3
bne .L9
ldr r3, [fp, #-12]
lsl r3, r3, #2
ldr r2, [fp, #-32]
add r3, r2, r3
ldr r2, [r3]
ldr r3, [fp, #-16]
lsl r3, r3, #2
ldr r1, [fp, #-32]
add r3, r1, r3
ldr r3, [r3]
cmp r2, r3
bge .L9
.L8:
ldr r3, [fp, #-16]
lsl r3, r3, #2
ldr r2, [fp, #-32]
add r3, r2, r3
ldr r3, [r3]
str r3, [fp, #-8]
ldr r3, [fp, #-12]
lsl r3, r3, #2
ldr r2, [fp, #-32]
add r2, r2, r3
ldr r3, [fp, #-16]
lsl r3, r3, #2
ldr r1, [fp, #-32]
add r3, r1, r3
ldr r2, [r2]
str r2, [r3]
ldr r3, [fp, #-12]
lsl r3, r3, #2
ldr r2, [fp, #-32]
add r3, r2, r3
ldr r2, [fp, #-8]
str r2, [r3]
.L9:
ldr r3, [fp, #-12]
add r3, r3, #1
str r3, [fp, #-12]
.L3:
ldr r2, [fp, #-12]
ldr r3, [fp, #-36]
cmp r2, r3
blt .L10
ldr r3, [fp, #-16]
add r3, r3, #1
str r3, [fp, #-16]
.L2:
ldr r2, [fp, #-16]
ldr r3, [fp, #-36]
cmp r2, r3
blt .L11
nop
nop
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem69/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
cmp r1, #0
ble .L5
push {r4, r5, r6, lr}
mov r3, #0
mvn r5, #0
mvn r6, #-2147483648
sub lr, r0, #4
.L4:
ldr ip, [lr, #4]!
tst ip, #1
bne .L3
cmn r5, #1
movne r4, #0
moveq r4, #1
cmp ip, r6
orrlt r4, r4, #1
cmp r4, #0
movne r5, r3
movne r6, ip
.L3:
add r3, r3, #1
cmp r1, r3
bne .L4
cmn r5, #1
beq .L6
mov r0, r2
str r6, [r2]
str r5, [r2, #4]
pop {r4, r5, r6, pc}
.L5:
mov r0, #0
bx lr
.L6:
mov r0, #0
pop {r4, r5, r6, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 32
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #36
str r0, [fp, #-24]
str r1, [fp, #-28]
str r2, [fp, #-32]
mvn r3, #-2147483648
str r3, [fp, #-16]
mvn r3, #0
str r3, [fp, #-12]
mov r3, #0
str r3, [fp, #-8]
b .L2
.L5:
ldr r3, [fp, #-8]
lsl r3, r3, #2
ldr r2, [fp, #-24]
add r3, r2, r3
ldr r3, [r3]
and r3, r3, #1
cmp r3, #0
bne .L3
ldr r3, [fp, #-8]
lsl r3, r3, #2
ldr r2, [fp, #-24]
add r3, r2, r3
ldr r3, [r3]
ldr r2, [fp, #-16]
cmp r2, r3
bgt .L4
ldr r3, [fp, #-12]
cmn r3, #1
bne .L3
.L4:
ldr r3, [fp, #-8]
lsl r3, r3, #2
ldr r2, [fp, #-24]
add r3, r2, r3
ldr r3, [r3]
str r3, [fp, #-16]
ldr r3, [fp, #-8]
str r3, [fp, #-12]
.L3:
ldr r3, [fp, #-8]
add r3, r3, #1
str r3, [fp, #-8]
.L2:
ldr r2, [fp, #-8]
ldr r3, [fp, #-28]
cmp r2, r3
blt .L5
ldr r3, [fp, #-12]
cmn r3, #1
bne .L6
mov r3, #0
b .L7
.L6:
ldr r3, [fp, #-32]
ldr r2, [fp, #-16]
str r2, [r3]
ldr r3, [fp, #-32]
add r3, r3, #4
ldr r2, [fp, #-12]
str r2, [r3]
ldr r3, [fp, #-32]
.L7:
mov r0, r3
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem96/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
push {r4, r5, r6, r7, r8, r9, r10, lr}
subs r7, r1, #0
beq .L12
ble .L9
mov r10, #0
mov r9, r0
mov r8, r10
mov r6, r10
.L7:
ldr r5, [r9, r10, lsl #3]
ldrb r4, [r5] @ zero_extendqisi2
cmp r4, #0
beq .L3
bl __ctype_b_loc
mov r2, r5
ldr ip, [r0]
b .L6
.L22:
cmp r3, #0
movne r6, #1
.L5:
add r3, r6, r8
cmp r3, #2
beq .L12
ldrb r4, [r2, #1]! @ zero_extendqisi2
cmp r4, #0
beq .L3
.L6:
lsl r4, r4, #1
ldrh r3, [ip, r4]
ands r0, r3, #1024
popeq {r4, r5, r6, r7, r8, r9, r10, pc}
tst r3, #256
and r3, r3, #512
beq .L22
cmp r3, #0
moveq r8, #1
beq .L5
.L12:
mov r0, #0
pop {r4, r5, r6, r7, r8, r9, r10, pc}
.L3:
add r10, r10, #1
cmp r7, r10
bne .L7
.L9:
mov r0, #1
pop {r4, r5, r6, r7, r8, r9, r10, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 32
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #32
str r0, [fp, #-32]
str r1, [fp, #-36]
ldr r3, [fp, #-36]
cmp r3, #0
bne .L2
mov r3, #0
b .L3
.L2:
mov r3, #0
str r3, [fp, #-24]
mov r3, #0
str r3, [fp, #-20]
mov r3, #0
str r3, [fp, #-16]
b .L4
.L11:
ldr r3, [fp, #-16]
lsl r3, r3, #3
ldr r2, [fp, #-32]
add r3, r2, r3
ldr r3, [r3]
str r3, [fp, #-8]
mov r3, #0
str r3, [fp, #-12]
b .L5
.L10:
bl __ctype_b_loc
mov r3, r0
ldr r2, [r3]
ldr r3, [fp, #-12]
ldr r1, [fp, #-8]
add r3, r1, r3
ldrb r3, [r3] @ zero_extendqisi2
lsl r3, r3, #1
add r3, r2, r3
ldrh r3, [r3]
and r3, r3, #1024
cmp r3, #0
bne .L6
mov r3, #0
b .L3
.L6:
bl __ctype_b_loc
mov r3, r0
ldr r2, [r3]
ldr r3, [fp, #-12]
ldr r1, [fp, #-8]
add r3, r1, r3
ldrb r3, [r3] @ zero_extendqisi2
lsl r3, r3, #1
add r3, r2, r3
ldrh r3, [r3]
and r3, r3, #256
cmp r3, #0
beq .L7
mov r3, #1
str r3, [fp, #-20]
.L7:
bl __ctype_b_loc
mov r3, r0
ldr r2, [r3]
ldr r3, [fp, #-12]
ldr r1, [fp, #-8]
add r3, r1, r3
ldrb r3, [r3] @ zero_extendqisi2
lsl r3, r3, #1
add r3, r2, r3
ldrh r3, [r3]
and r3, r3, #512
cmp r3, #0
beq .L8
mov r3, #1
str r3, [fp, #-24]
.L8:
ldr r2, [fp, #-20]
ldr r3, [fp, #-24]
add r3, r2, r3
cmp r3, #2
bne .L9
mov r3, #0
b .L3
.L9:
ldr r3, [fp, #-12]
add r3, r3, #1
str r3, [fp, #-12]
.L5:
ldr r3, [fp, #-12]
ldr r2, [fp, #-8]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
bne .L10
ldr r3, [fp, #-16]
add r3, r3, #1
str r3, [fp, #-16]
.L4:
ldr r2, [fp, #-16]
ldr r3, [fp, #-36]
cmp r2, r3
blt .L11
mov r3, #1
.L3:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem49/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
push {r4, lr}
mov r4, r0
bl strlen
asrs ip, r0, #1
beq .L4
sub r3, r4, #1
add r0, r4, r0
add ip, r3, ip
b .L3
.L9:
cmp r3, ip
beq .L4
.L3:
ldrb r1, [r3, #1]! @ zero_extendqisi2
ldrb r2, [r0, #-1]! @ zero_extendqisi2
cmp r1, r2
beq .L9
mov r0, #0
pop {r4, pc}
.L4:
mov r0, #1
pop {r4, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #16
str r0, [fp, #-16]
ldr r0, [fp, #-16]
bl strlen
mov r3, r0
str r3, [fp, #-8]
mov r3, #0
str r3, [fp, #-12]
b .L2
.L5:
ldr r3, [fp, #-12]
ldr r2, [fp, #-16]
add r3, r2, r3
ldrb r2, [r3] @ zero_extendqisi2
ldr r3, [fp, #-8]
sub r1, r3, #1
ldr r3, [fp, #-12]
sub r3, r1, r3
mov r1, r3
ldr r3, [fp, #-16]
add r3, r3, r1
ldrb r3, [r3] @ zero_extendqisi2
cmp r2, r3
beq .L3
mov r3, #0
b .L4
.L3:
ldr r3, [fp, #-12]
add r3, r3, #1
str r3, [fp, #-12]
.L2:
ldr r3, [fp, #-8]
lsr r2, r3, #31
add r3, r2, r3
asr r3, r3, #1
mov r2, r3
ldr r3, [fp, #-12]
cmp r3, r2
blt .L5
mov r3, #1
.L4:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem38/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.global __aeabi_fcmpgt
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 0, uses_anonymous_args = 0
push {r4, r5, r6, r7, r8, r9, r10, fp, lr}
mov r10, r0
add r0, r1, r1, lsr #31
asr r0, r0, #1
add r0, r0, #1
mov r9, r1
sub sp, sp, #12
lsl r0, r0, #2
str r2, [sp, #4]
bl malloc
cmp r9, #0
mov r8, r0
ble .L2
mov r3, #0
sub r2, r0, #4
.L3:
ldr r1, [r10, r3, lsl #2] @ float
add r3, r3, #2
cmp r9, r3
str r1, [r2, #4]! @ float
bgt .L3
sub r7, r9, #1
lsrs r7, r7, #1
beq .L4
add r6, r8, r7, lsl #2
.L5:
cmp r7, #0
movgt r4, r8
ble .L9
.L8:
ldr r5, [r4] @ float
ldr fp, [r4, #4]! @ float
mov r0, r5
mov r1, fp
bl __aeabi_fcmpgt
cmp r0, #0
strne fp, [r4, #-4] @ float
strne r5, [r4] @ float
cmp r4, r6
bne .L8
.L9:
sub r6, r6, #4
cmp r8, r6
sub r7, r7, #1
bne .L5
.L4:
mov r3, #0
.L12:
asr r2, r3, #1
tst r3, #1
ldrne r2, [r10, r3, lsl #2] @ float
ldreq r2, [r8, r2, lsl #2] @ float
ldr r1, [sp, #4]
str r2, [r1, r3, lsl #2] @ float
add r3, r3, #1
cmp r9, r3
bne .L12
.L2:
mov r0, r8
add sp, sp, #12
@ sp needed
pop {r4, r5, r6, r7, r8, r9, r10, fp, lr}
b free
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.global __aeabi_fcmpgt
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 40
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #40
str r0, [fp, #-32]
str r1, [fp, #-36]
str r2, [fp, #-40]
ldr r3, [fp, #-36]
lsr r2, r3, #31
add r3, r2, r3
asr r3, r3, #1
add r3, r3, #1
lsl r3, r3, #2
mov r0, r3
bl malloc
mov r3, r0
str r3, [fp, #-12]
mov r3, #0
str r3, [fp, #-16]
mov r3, #0
str r3, [fp, #-24]
b .L2
.L3:
ldr r3, [fp, #-24]
lsl r3, r3, #2
ldr r2, [fp, #-32]
add r2, r2, r3
ldr r3, [fp, #-16]
add r1, r3, #1
str r1, [fp, #-16]
lsl r3, r3, #2
ldr r1, [fp, #-12]
add r3, r1, r3
ldr r2, [r2] @ float
str r2, [r3] @ float
ldr r3, [fp, #-24]
add r3, r3, #2
str r3, [fp, #-24]
.L2:
ldr r2, [fp, #-24]
ldr r3, [fp, #-36]
cmp r2, r3
blt .L3
mov r3, #0
str r3, [fp, #-24]
b .L4
.L9:
mov r3, #0
str r3, [fp, #-20]
b .L5
.L8:
ldr r3, [fp, #-20]
lsl r3, r3, #2
ldr r2, [fp, #-12]
add r3, r2, r3
ldr r0, [r3] @ float
ldr r3, [fp, #-20]
add r3, r3, #1
lsl r3, r3, #2
ldr r2, [fp, #-12]
add r3, r2, r3
ldr r3, [r3] @ float
mov r1, r3
bl __aeabi_fcmpgt
mov r3, r0
cmp r3, #0
beq .L6
ldr r3, [fp, #-20]
lsl r3, r3, #2
ldr r2, [fp, #-12]
add r3, r2, r3
ldr r3, [r3] @ float
str r3, [fp, #-8] @ float
ldr r3, [fp, #-20]
add r3, r3, #1
lsl r3, r3, #2
ldr r2, [fp, #-12]
add r2, r2, r3
ldr r3, [fp, #-20]
lsl r3, r3, #2
ldr r1, [fp, #-12]
add r3, r1, r3
ldr r2, [r2] @ float
str r2, [r3] @ float
ldr r3, [fp, #-20]
add r3, r3, #1
lsl r3, r3, #2
ldr r2, [fp, #-12]
add r3, r2, r3
ldr r2, [fp, #-8] @ float
str r2, [r3] @ float
.L6:
ldr r3, [fp, #-20]
add r3, r3, #1
str r3, [fp, #-20]
.L5:
ldr r2, [fp, #-16]
ldr r3, [fp, #-24]
sub r3, r2, r3
sub r3, r3, #1
ldr r2, [fp, #-20]
cmp r2, r3
blt .L8
ldr r3, [fp, #-24]
add r3, r3, #1
str r3, [fp, #-24]
.L4:
ldr r3, [fp, #-16]
sub r3, r3, #1
ldr r2, [fp, #-24]
cmp r2, r3
blt .L9
mov r3, #0
str r3, [fp, #-24]
b .L10
.L13:
ldr r3, [fp, #-24]
and r3, r3, #1
cmp r3, #0
bne .L11
ldr r3, [fp, #-24]
lsr r2, r3, #31
add r3, r2, r3
asr r3, r3, #1
lsl r3, r3, #2
ldr r2, [fp, #-12]
add r2, r2, r3
ldr r3, [fp, #-24]
lsl r3, r3, #2
ldr r1, [fp, #-40]
add r3, r1, r3
ldr r2, [r2] @ float
str r2, [r3] @ float
b .L12
.L11:
ldr r3, [fp, #-24]
lsl r3, r3, #2
ldr r2, [fp, #-32]
add r2, r2, r3
ldr r3, [fp, #-24]
lsl r3, r3, #2
ldr r1, [fp, #-40]
add r3, r1, r3
ldr r2, [r2] @ float
str r2, [r3] @ float
.L12:
ldr r3, [fp, #-24]
add r3, r3, #1
str r3, [fp, #-24]
.L10:
ldr r2, [fp, #-24]
ldr r3, [fp, #-36]
cmp r2, r3
blt .L13
ldr r0, [fp, #-12]
bl free
nop
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem76/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.global __aeabi_idiv
.global __aeabi_idivmod
.global __aeabi_uidivmod
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
cmp r0, #1
ble .L10
cmp r0, #3
push {r4, r5, r6, lr}
mov r4, r0
movgt r5, #2
movgt r6, #0
ble .L21
.L3:
mov r1, r5
mov r0, r4
bl __aeabi_idivmod
cmp r1, #0
bne .L7
.L5:
mov r0, r4
mov r1, r5
bl __aeabi_idiv
mov r1, r5
mov r4, r0
bl __aeabi_idivmod
cmp r1, #0
add r6, r6, #1
beq .L5
.L7:
add r5, r5, #1
mul r3, r5, r5
cmp r3, r4
ble .L3
cmp r4, #1
suble r0, r6, #3
subgt r0, r6, #2
clz r0, r0
lsr r0, r0, #5
pop {r4, r5, r6, pc}
.L10:
mov r0, #0
bx lr
.L21:
mov r0, #0
pop {r4, r5, r6, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.global __aeabi_idiv
.global __aeabi_idivmod
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #16
str r0, [fp, #-16]
ldr r3, [fp, #-16]
cmp r3, #1
bgt .L2
mov r3, #0
b .L3
.L2:
mov r3, #0
str r3, [fp, #-12]
mov r3, #2
str r3, [fp, #-8]
b .L4
.L6:
ldr r1, [fp, #-8]
ldr r0, [fp, #-16]
bl __aeabi_idiv
mov r3, r0
str r3, [fp, #-16]
ldr r3, [fp, #-12]
add r3, r3, #1
str r3, [fp, #-12]
.L5:
ldr r3, [fp, #-16]
ldr r1, [fp, #-8]
mov r0, r3
bl __aeabi_idivmod
mov r3, r1
cmp r3, #0
beq .L6
ldr r3, [fp, #-8]
add r3, r3, #1
str r3, [fp, #-8]
.L4:
ldr r3, [fp, #-8]
mov r2, r3
mul r2, r3, r2
mov r3, r2
ldr r2, [fp, #-16]
cmp r2, r3
bge .L5
ldr r3, [fp, #-16]
cmp r3, #1
ble .L8
ldr r3, [fp, #-12]
add r3, r3, #1
str r3, [fp, #-12]
.L8:
ldr r3, [fp, #-12]
cmp r3, #3
moveq r3, #1
movne r3, #0
and r3, r3, #255
.L3:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem66/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.section .rodata.str1.4,"aMS",%progbits,1
.align 2
.LC0:
.ascii "%d\000"
.section .rodata.cst4,"aM",%progbits,4
.align 2
.LC1:
.word __stack_chk_guard
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 56
@ frame_needed = 0, uses_anonymous_args = 0
push {r4, r5, r6, lr}
ldr r5, .L12
sub sp, sp, #64
ldr ip, .L12+4
str r0, [sp]
mov r6, r1
mov r2, #50
mov r1, #1
ldr r3, .L12+8
mov r0, r5
ldr ip, [ip]
str ip, [sp, #60]
mov ip,#0
bl __sprintf_chk
mov r0, r5
bl strlen
cmp r0, r6
bge .L2
asrs ip, r0, #1
beq .L4
mov r1, r5
add r3, r5, r0
add ip, r5, ip
.L5:
ldrb r0, [r3, #-1]! @ zero_extendqisi2
ldrb r2, [r1] @ zero_extendqisi2
strb r0, [r1], #1
cmp r1, ip
strb r2, [r3]
bne .L5
.L4:
ldr r3, .L12+4
ldr r2, [r3]
ldr r3, [sp, #60]
eors r2, r3, r2
mov r3, #0
bne .L11
ldr r0, .L12
add sp, sp, #64
@ sp needed
pop {r4, r5, r6, pc}
.L2:
sub r4, r0, r6
add r1, r5, r4
mov r2, #50
add r0, sp, #8
bl __strcpy_chk
mov ip, #0
add r3, sp, #64
mov r2, r4
mov r1, r5
add r6, r3, r6
add r0, sp, #8
mov r3, #50
strb ip, [r6, #-56]
bl __strncat_chk
mov r0, r5
mov r2, #50
add r1, sp, #8
bl __strcpy_chk
b .L4
.L11:
bl __stack_chk_fail
.L13:
.align 2
.L12:
.word .LANCHOR0
.word .LC1
.word .LC0
.size func0, .-func0
.bss
.align 2
.set .LANCHOR0,. + 0
.type xs.5674, %object
.size xs.5674, 50
xs.5674:
.space 50
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.section .rodata
.align 2
.LC0:
.ascii "%d\000"
.align 2
.LC1:
.word __stack_chk_guard
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 80
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #80
str r0, [fp, #-80]
str r1, [fp, #-84]
ldr r3, .L8
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
ldr r2, [fp, #-80]
ldr r1, .L8+4
ldr r0, .L8+8
bl sprintf
ldr r0, .L8+8
bl strlen
mov r3, r0
str r3, [fp, #-64]
ldr r2, [fp, #-64]
ldr r3, [fp, #-84]
cmp r2, r3
bge .L2
mov r3, #0
str r3, [fp, #-68]
b .L3
.L4:
ldr r2, .L8+8
ldr r3, [fp, #-68]
add r3, r2, r3
ldrb r3, [r3]
strb r3, [fp, #-69]
ldr r3, [fp, #-64]
sub r2, r3, #1
ldr r3, [fp, #-68]
sub r3, r2, r3
ldr r2, .L8+8
ldrb r1, [r2, r3] @ zero_extendqisi2
ldr r2, .L8+8
ldr r3, [fp, #-68]
add r3, r2, r3
mov r2, r1
strb r2, [r3]
ldr r3, [fp, #-64]
sub r2, r3, #1
ldr r3, [fp, #-68]
sub r3, r2, r3
ldr r1, .L8+8
ldrb r2, [fp, #-69]
strb r2, [r1, r3]
ldr r3, [fp, #-68]
add r3, r3, #1
str r3, [fp, #-68]
.L3:
ldr r3, [fp, #-64]
lsr r2, r3, #31
add r3, r2, r3
asr r3, r3, #1
mov r2, r3
ldr r3, [fp, #-68]
cmp r3, r2
blt .L4
b .L5
.L2:
ldr r2, [fp, #-64]
ldr r3, [fp, #-84]
sub r3, r2, r3
ldr r2, .L8+8
add r2, r3, r2
sub r3, fp, #60
mov r1, r2
mov r0, r3
bl strcpy
sub r2, fp, #60
ldr r3, [fp, #-84]
add r3, r2, r3
mov r2, #0
strb r2, [r3]
ldr r2, [fp, #-64]
ldr r3, [fp, #-84]
sub r3, r2, r3
mov r2, r3
sub r3, fp, #60
ldr r1, .L8+8
mov r0, r3
bl strncat
sub r3, fp, #60
mov r1, r3
ldr r0, .L8+8
bl strcpy
.L5:
ldr r3, .L8+8
ldr r2, .L8
ldr r1, [r2]
ldr r2, [fp, #-8]
eors r1, r2, r1
mov r2, #0
beq .L7
bl __stack_chk_fail
.L7:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L9:
.align 2
.L8:
.word .LC1
.word .LC0
.word xs.5299
.size func0, .-func0
.local xs.5299
.comm xs.5299,50,4
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem147/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
cmp r1, #0
ble .L6
mov ip, r0
sub ip, ip, #4
push {r4, r5, lr}
mov r0, #0
ldr lr, .L21
add r4, ip, r1, lsl #2
b .L5
.L3:
cmp ip, r4
popeq {r4, r5, pc}
.L5:
ldr r1, [ip, #4]!
cmp r1, #10
ble .L3
mov r3, r1
.L4:
umull r5, r2, lr, r3
cmp r3, #99
lsr r3, r2, #3
bgt .L4
tst r3, #1
beq .L3
tst r1, #1
addne r0, r0, #1
cmp ip, r4
bne .L5
pop {r4, r5, pc}
.L6:
mov r0, #0
bx lr
.L22:
.align 2
.L21:
.word -858993459
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 32
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #36
str r0, [fp, #-32]
str r1, [fp, #-36]
mov r3, #0
str r3, [fp, #-24]
mov r3, #0
str r3, [fp, #-20]
b .L2
.L6:
ldr r3, [fp, #-20]
lsl r3, r3, #2
ldr r2, [fp, #-32]
add r3, r2, r3
ldr r3, [r3]
cmp r3, #10
ble .L3
ldr r3, [fp, #-20]
lsl r3, r3, #2
ldr r2, [fp, #-32]
add r3, r2, r3
ldr r2, [r3]
ldr r3, .L8
smull r1, r3, r2, r3
asr r1, r3, #2
asr r3, r2, #31
sub r1, r1, r3
mov r3, r1
lsl r3, r3, #2
add r3, r3, r1
lsl r3, r3, #1
sub r3, r2, r3
str r3, [fp, #-12]
ldr r3, [fp, #-20]
lsl r3, r3, #2
ldr r2, [fp, #-32]
add r3, r2, r3
ldr r3, [r3]
str r3, [fp, #-16]
b .L4
.L5:
ldr r3, [fp, #-16]
ldr r2, .L8
smull r1, r2, r3, r2
asr r2, r2, #2
asr r3, r3, #31
sub r3, r2, r3
str r3, [fp, #-16]
.L4:
ldr r3, [fp, #-16]
cmp r3, #9
bgt .L5
ldr r3, [fp, #-16]
str r3, [fp, #-8]
ldr r3, [fp, #-8]
cmp r3, #0
and r3, r3, #1
rsblt r3, r3, #0
cmp r3, #1
bne .L3
ldr r3, [fp, #-12]
cmp r3, #0
and r3, r3, #1
rsblt r3, r3, #0
cmp r3, #1
bne .L3
ldr r3, [fp, #-24]
add r3, r3, #1
str r3, [fp, #-24]
.L3:
ldr r3, [fp, #-20]
add r3, r3, #1
str r3, [fp, #-20]
.L2:
ldr r2, [fp, #-20]
ldr r3, [fp, #-36]
cmp r2, r3
blt .L6
ldr r3, [fp, #-24]
mov r0, r3
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.L9:
.align 2
.L8:
.word 1717986919
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem79/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.section .rodata.str1.4,"aMS",%progbits,1
.align 2
.LC0:
.ascii "2357BD\000"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
push {r4, r5, r6, r7, r8, lr}
mov r4, r0
bl strlen
sub r4, r4, #1
mov r5, #0
ldr r7, .L10
add r6, r4, r0
b .L2
.L4:
mov r0, r7
ldrb r1, [r4, #1]! @ zero_extendqisi2
bl strchr
cmp r0, #0
addne r5, r5, #1
.L2:
cmp r4, r6
bne .L4
mov r0, r5
pop {r4, r5, r6, r7, r8, pc}
.L11:
.align 2
.L10:
.word .LC0
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.section .rodata
.align 2
.LC0:
.ascii "2357BD\000"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 24
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #24
str r0, [fp, #-24]
ldr r3, .L6
str r3, [fp, #-8]
mov r3, #0
str r3, [fp, #-16]
mov r3, #0
str r3, [fp, #-12]
b .L2
.L4:
ldr r3, [fp, #-12]
ldr r2, [fp, #-24]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
mov r1, r3
ldr r0, [fp, #-8]
bl strchr
mov r3, r0
cmp r3, #0
beq .L3
ldr r3, [fp, #-16]
add r3, r3, #1
str r3, [fp, #-16]
.L3:
ldr r3, [fp, #-12]
add r3, r3, #1
str r3, [fp, #-12]
.L2:
ldr r0, [fp, #-24]
bl strlen
mov r2, r0
ldr r3, [fp, #-12]
cmp r2, r3
bhi .L4
ldr r3, [fp, #-16]
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L7:
.align 2
.L6:
.word .LC0
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem149/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.section .rodata.str1.4,"aMS",%progbits,1
.align 2
.LC0:
.ascii "Mercury\000"
.align 2
.LC1:
.ascii "Venus\000"
.align 2
.LC2:
.ascii "Earth\000"
.align 2
.LC3:
.ascii "Mars\000"
.align 2
.LC4:
.ascii "Jupiter\000"
.align 2
.LC5:
.ascii "Saturn\000"
.align 2
.LC6:
.ascii "Uranus\000"
.align 2
.LC7:
.ascii "Neptune\000"
.text
.section .rodata.cst4,"aM",%progbits,4
.align 2
.LC10:
.word __stack_chk_guard
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 40
@ frame_needed = 0, uses_anonymous_args = 0
push {r4, r5, r6, r7, r8, r9, r10, fp, lr}
mvn r5, #0
sub sp, sp, #44
add r8, sp, #4
mov ip, r8
mov r7, r5
mov r4, #0
ldr r3, .L16
ldr lr, .L16+4
ldr r3, [r3]
str r3, [sp, #36]
mov r3,#0
mov fp, r0
mov r9, r1
mov r10, r2
ldmia lr!, {r0, r1, r2, r3}
stmia ip!, {r0, r1, r2, r3}
ldm lr, {r0, r1, r2, r3}
stm ip, {r0, r1, r2, r3}
.L4:
ldr r6, [r8], #4
mov r1, fp
mov r0, r6
bl strcmp
mov r3, r0
mov r1, r9
cmp r3, #0
mov r0, r6
moveq r7, r4
bl strcmp
cmp r0, #0
moveq r5, r4
add r4, r4, #1
cmp r4, #8
bne .L4
cmn r7, #1
cmnne r5, #1
moveq r3, #1
movne r3, #0
cmp r7, r5
orreq r3, r3, #1
cmp r3, #0
bne .L8
cmp r7, r5
movgt r4, r5
movle r4, r7
movgt r5, r7
sub r0, r5, r4
sub r0, r0, #1
cmp r0, #0
str r0, [r10]
ble .L8
lsl r0, r0, #2
add r4, r4, #1
bl malloc
cmp r5, r4
ble .L1
lsl r4, r4, #2
sub r1, r4, #4
rsb r5, r1, r5, lsl #2
add r2, sp, #4
sub r3, r5, #8
add r1, r2, r1
add r3, r0, r3
sub r2, r0, #4
.L9:
ldr ip, [r1, #4]!
str ip, [r2, #4]!
cmp r2, r3
bne .L9
.L1:
ldr r3, .L16
ldr r2, [r3]
ldr r3, [sp, #36]
eors r2, r3, r2
mov r3, #0
bne .L15
add sp, sp, #44
@ sp needed
pop {r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L8:
mov r0, #0
str r0, [r10]
b .L1
.L15:
bl __stack_chk_fail
.L17:
.align 2
.L16:
.word .LC10
.word .LANCHOR0
.size func0, .-func0
.section .rodata
.align 2
.set .LANCHOR0,. + 0
.LC9:
.word .LC0
.word .LC1
.word .LC2
.word .LC3
.word .LC4
.word .LC5
.word .LC6
.word .LC7
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.section .rodata
.align 2
.LC0:
.ascii "Mercury\000"
.align 2
.LC1:
.ascii "Venus\000"
.align 2
.LC2:
.ascii "Earth\000"
.align 2
.LC3:
.ascii "Mars\000"
.align 2
.LC4:
.ascii "Jupiter\000"
.align 2
.LC5:
.ascii "Saturn\000"
.align 2
.LC6:
.ascii "Uranus\000"
.align 2
.LC7:
.ascii "Neptune\000"
.text
.section .rodata
.align 2
.LC9:
.word .LC0
.word .LC1
.word .LC2
.word .LC3
.word .LC4
.word .LC5
.word .LC6
.word .LC7
.align 2
.LC10:
.word __stack_chk_guard
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 72
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #72
str r0, [fp, #-64]
str r1, [fp, #-68]
str r2, [fp, #-72]
ldr r3, .L15
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
ldr r3, .L15+4
sub ip, fp, #40
mov lr, r3
ldmia lr!, {r0, r1, r2, r3}
stmia ip!, {r0, r1, r2, r3}
ldm lr, {r0, r1, r2, r3}
stm ip, {r0, r1, r2, r3}
mvn r3, #0
str r3, [fp, #-60]
mvn r3, #0
str r3, [fp, #-56]
mov r3, #0
str r3, [fp, #-52]
b .L2
.L5:
ldr r3, [fp, #-52]
lsl r3, r3, #2
sub r2, fp, #4
add r3, r2, r3
ldr r3, [r3, #-36]
ldr r1, [fp, #-64]
mov r0, r3
bl strcmp
mov r3, r0
cmp r3, #0
bne .L3
ldr r3, [fp, #-52]
str r3, [fp, #-60]
.L3:
ldr r3, [fp, #-52]
lsl r3, r3, #2
sub r2, fp, #4
add r3, r2, r3
ldr r3, [r3, #-36]
ldr r1, [fp, #-68]
mov r0, r3
bl strcmp
mov r3, r0
cmp r3, #0
bne .L4
ldr r3, [fp, #-52]
str r3, [fp, #-56]
.L4:
ldr r3, [fp, #-52]
add r3, r3, #1
str r3, [fp, #-52]
.L2:
ldr r3, [fp, #-52]
cmp r3, #7
ble .L5
ldr r3, [fp, #-60]
cmn r3, #1
beq .L6
ldr r3, [fp, #-56]
cmn r3, #1
beq .L6
ldr r2, [fp, #-60]
ldr r3, [fp, #-56]
cmp r2, r3
bne .L7
.L6:
ldr r3, [fp, #-72]
mov r2, #0
str r2, [r3]
mov r3, #0
b .L13
.L7:
ldr r2, [fp, #-60]
ldr r3, [fp, #-56]
cmp r2, r3
ble .L9
ldr r3, [fp, #-60]
str r3, [fp, #-48]
ldr r3, [fp, #-56]
str r3, [fp, #-60]
ldr r3, [fp, #-48]
str r3, [fp, #-56]
.L9:
ldr r2, [fp, #-56]
ldr r3, [fp, #-60]
sub r3, r2, r3
sub r2, r3, #1
ldr r3, [fp, #-72]
str r2, [r3]
ldr r3, [fp, #-72]
ldr r3, [r3]
cmp r3, #0
bgt .L10
ldr r3, [fp, #-72]
mov r2, #0
str r2, [r3]
mov r3, #0
b .L13
.L10:
ldr r3, [fp, #-72]
ldr r3, [r3]
lsl r3, r3, #2
mov r0, r3
bl malloc
mov r3, r0
str r3, [fp, #-44]
ldr r3, [fp, #-60]
add r3, r3, #1
str r3, [fp, #-52]
b .L11
.L12:
ldr r2, [fp, #-52]
ldr r3, [fp, #-60]
sub r3, r2, r3
sub r3, r3, #-1073741823
lsl r3, r3, #2
ldr r2, [fp, #-44]
add r2, r2, r3
ldr r3, [fp, #-52]
lsl r3, r3, #2
sub r1, fp, #4
add r3, r1, r3
ldr r3, [r3, #-36]
str r3, [r2]
ldr r3, [fp, #-52]
add r3, r3, #1
str r3, [fp, #-52]
.L11:
ldr r2, [fp, #-52]
ldr r3, [fp, #-56]
cmp r2, r3
blt .L12
ldr r3, [fp, #-44]
.L13:
ldr r2, .L15
ldr r1, [r2]
ldr r2, [fp, #-8]
eors r1, r2, r1
mov r2, #0
beq .L14
bl __stack_chk_fail
.L14:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L16:
.align 2
.L15:
.word .LC10
.word .LC9
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem73/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
push {r4, r5, r6, r7, lr}
cmp r1, #1
add r7, r1, r1, lsr #31
asr r7, r7, #1
ble .L6
mov r3, #0
sub r5, r0, #4
mov lr, r3
add r4, r0, r1, lsl #2
b .L4
.L11:
cmp r3, r7
add lr, lr, ip, lsl #1
bge .L2
.L4:
ldr ip, [r5, #4]!
ldr r6, [r4, #-4]!
add r3, r3, #1
cmp ip, r6
beq .L11
mov r0, #0
pop {r4, r5, r6, r7, pc}
.L6:
mov lr, #0
.L2:
cmp r1, #0
and r1, r1, #1
rsblt r1, r1, #0
cmp r1, #1
ldreq r3, [r0, r7, lsl #2]
addeq lr, lr, r3
cmp lr, r2
movgt r0, #0
movle r0, #1
pop {r4, r5, r6, r7, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 24
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #28
str r0, [fp, #-16]
str r1, [fp, #-20]
str r2, [fp, #-24]
mov r3, #0
str r3, [fp, #-12]
mov r3, #0
str r3, [fp, #-8]
b .L2
.L5:
ldr r3, [fp, #-8]
lsl r3, r3, #2
ldr r2, [fp, #-16]
add r3, r2, r3
ldr r2, [r3]
ldr r3, [fp, #-20]
sub r1, r3, #1
ldr r3, [fp, #-8]
sub r3, r1, r3
lsl r3, r3, #2
ldr r1, [fp, #-16]
add r3, r1, r3
ldr r3, [r3]
cmp r2, r3
beq .L3
mov r3, #0
b .L4
.L3:
ldr r3, [fp, #-8]
lsl r3, r3, #2
ldr r2, [fp, #-16]
add r3, r2, r3
ldr r2, [r3]
ldr r3, [fp, #-20]
sub r1, r3, #1
ldr r3, [fp, #-8]
sub r3, r1, r3
lsl r3, r3, #2
ldr r1, [fp, #-16]
add r3, r1, r3
ldr r3, [r3]
add r3, r2, r3
ldr r2, [fp, #-12]
add r3, r2, r3
str r3, [fp, #-12]
ldr r3, [fp, #-8]
add r3, r3, #1
str r3, [fp, #-8]
.L2:
ldr r3, [fp, #-20]
lsr r2, r3, #31
add r3, r2, r3
asr r3, r3, #1
mov r2, r3
ldr r3, [fp, #-8]
cmp r3, r2
blt .L5
ldr r3, [fp, #-20]
cmp r3, #0
and r3, r3, #1
rsblt r3, r3, #0
cmp r3, #1
bne .L6
ldr r3, [fp, #-20]
lsr r2, r3, #31
add r3, r2, r3
asr r3, r3, #1
lsl r3, r3, #2
ldr r2, [fp, #-16]
add r3, r2, r3
ldr r3, [r3]
ldr r2, [fp, #-12]
add r3, r2, r3
str r3, [fp, #-12]
.L6:
ldr r2, [fp, #-12]
ldr r3, [fp, #-24]
cmp r2, r3
movle r3, #1
movgt r3, #0
and r3, r3, #255
.L4:
mov r0, r3
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem156/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
mov r2, #0
mov ip, r2
push {r4, lr}
cmp r0, #0
ldr lr, .L8
rsblt r0, r0, #0
.L4:
umull r4, r3, lr, r0
tst r0, #1
addeq ip, ip, #1
addne r2, r2, #1
cmp r0, #9
lsr r0, r3, #3
bgt .L4
str ip, [r1]
str r2, [r1, #4]
pop {r4, pc}
.L9:
.align 2
.L8:
.word -858993459
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 24
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #28
str r0, [fp, #-24]
str r1, [fp, #-28]
mov r3, #0
str r3, [fp, #-16]
mov r3, #0
str r3, [fp, #-12]
ldr r3, [fp, #-24]
cmp r3, #0
rsblt r3, r3, #0
str r3, [fp, #-24]
.L4:
ldr r2, [fp, #-24]
ldr r3, .L5
smull r1, r3, r2, r3
asr r1, r3, #2
asr r3, r2, #31
sub r1, r1, r3
mov r3, r1
lsl r3, r3, #2
add r3, r3, r1
lsl r3, r3, #1
sub r3, r2, r3
str r3, [fp, #-8]
ldr r3, [fp, #-8]
and r3, r3, #1
cmp r3, #0
bne .L2
ldr r3, [fp, #-16]
add r3, r3, #1
str r3, [fp, #-16]
b .L3
.L2:
ldr r3, [fp, #-12]
add r3, r3, #1
str r3, [fp, #-12]
.L3:
ldr r3, [fp, #-24]
ldr r2, .L5
smull r1, r2, r3, r2
asr r2, r2, #2
asr r3, r3, #31
sub r3, r2, r3
str r3, [fp, #-24]
ldr r3, [fp, #-24]
cmp r3, #0
bgt .L4
ldr r3, [fp, #-28]
ldr r2, [fp, #-16]
str r2, [r3]
ldr r3, [fp, #-28]
add r3, r3, #4
ldr r2, [fp, #-12]
str r2, [r3]
nop
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.L6:
.align 2
.L5:
.word 1717986919
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem162/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
push {r4, r5, r6, r7, r8, r9, r10, lr}
mov r7, r0
bl strlen
subs r6, r0, #0
beq .L2
bl __ctype_b_loc
sub r4, r7, #1
mov r9, #0
mov r8, r0
add r10, r4, r6
b .L6
.L23:
bl __ctype_tolower_loc
ldr r3, [r0]
ldr r3, [r3, r5, lsl #2]
strb r3, [r4]
.L5:
cmp r4, r10
beq .L22
.L6:
ldrb r5, [r4, #1]! @ zero_extendqisi2
ldr r2, [r8]
lsl r3, r5, #1
ldrh r3, [r2, r3]
tst r3, #1024
addeq r9, r9, #1
beq .L5
tst r3, #256
bne .L23
tst r3, #512
beq .L5
bl __ctype_toupper_loc
ldr r3, [r0]
cmp r4, r10
ldr r3, [r3, r5, lsl #2]
strb r3, [r4]
bne .L6
.L22:
cmp r6, r9
beq .L2
.L7:
mov r0, r7
pop {r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
asrs ip, r6, #1
beq .L7
sub r2, r7, #1
add r3, r7, r6
add ip, r2, ip
.L8:
ldrb r1, [r2, #1]! @ zero_extendqisi2
ldrb r0, [r3, #-1]! @ zero_extendqisi2
cmp r2, ip
strb r0, [r2]
strb r1, [r3]
bne .L8
mov r0, r7
pop {r4, r5, r6, r7, r8, r9, r10, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 32
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #32
str r0, [fp, #-32]
mov r3, #0
str r3, [fp, #-20]
ldr r0, [fp, #-32]
bl strlen
mov r3, r0
str r3, [fp, #-8]
mov r3, #0
str r3, [fp, #-16]
b .L2
.L6:
bl __ctype_b_loc
mov r3, r0
ldr r2, [r3]
ldr r3, [fp, #-16]
ldr r1, [fp, #-32]
add r3, r1, r3
ldrb r3, [r3] @ zero_extendqisi2
lsl r3, r3, #1
add r3, r2, r3
ldrh r3, [r3]
and r3, r3, #1024
cmp r3, #0
beq .L3
bl __ctype_b_loc
mov r3, r0
ldr r2, [r3]
ldr r3, [fp, #-16]
ldr r1, [fp, #-32]
add r3, r1, r3
ldrb r3, [r3] @ zero_extendqisi2
lsl r3, r3, #1
add r3, r2, r3
ldrh r3, [r3]
and r3, r3, #256
cmp r3, #0
beq .L4
ldr r3, [fp, #-16]
ldr r2, [fp, #-32]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
mov r0, r3
bl tolower
mov r1, r0
ldr r3, [fp, #-16]
ldr r2, [fp, #-32]
add r3, r2, r3
and r2, r1, #255
strb r2, [r3]
b .L5
.L4:
bl __ctype_b_loc
mov r3, r0
ldr r2, [r3]
ldr r3, [fp, #-16]
ldr r1, [fp, #-32]
add r3, r1, r3
ldrb r3, [r3] @ zero_extendqisi2
lsl r3, r3, #1
add r3, r2, r3
ldrh r3, [r3]
and r3, r3, #512
cmp r3, #0
beq .L5
ldr r3, [fp, #-16]
ldr r2, [fp, #-32]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
mov r0, r3
bl toupper
mov r1, r0
ldr r3, [fp, #-16]
ldr r2, [fp, #-32]
add r3, r2, r3
and r2, r1, #255
strb r2, [r3]
b .L5
.L3:
ldr r3, [fp, #-20]
add r3, r3, #1
str r3, [fp, #-20]
.L5:
ldr r3, [fp, #-16]
add r3, r3, #1
str r3, [fp, #-16]
.L2:
ldr r2, [fp, #-16]
ldr r3, [fp, #-8]
cmp r2, r3
blt .L6
ldr r2, [fp, #-20]
ldr r3, [fp, #-8]
cmp r2, r3
bne .L7
mov r3, #0
str r3, [fp, #-12]
b .L8
.L9:
ldr r3, [fp, #-12]
ldr r2, [fp, #-32]
add r3, r2, r3
ldrb r3, [r3]
strb r3, [fp, #-21]
ldr r2, [fp, #-8]
ldr r3, [fp, #-12]
sub r3, r2, r3
sub r3, r3, #1
ldr r2, [fp, #-32]
add r2, r2, r3
ldr r3, [fp, #-12]
ldr r1, [fp, #-32]
add r3, r1, r3
ldrb r2, [r2] @ zero_extendqisi2
strb r2, [r3]
ldr r2, [fp, #-8]
ldr r3, [fp, #-12]
sub r3, r2, r3
sub r3, r3, #1
ldr r2, [fp, #-32]
add r3, r2, r3
ldrb r2, [fp, #-21]
strb r2, [r3]
ldr r3, [fp, #-12]
add r3, r3, #1
str r3, [fp, #-12]
.L8:
ldr r3, [fp, #-8]
lsr r2, r3, #31
add r3, r2, r3
asr r3, r3, #1
mov r2, r3
ldr r3, [fp, #-12]
cmp r3, r2
blt .L9
.L7:
ldr r3, [fp, #-32]
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem68/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.section .rodata.cst4,"aM",%progbits,4
.align 2
.LC0:
.word __stack_chk_guard
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 32
@ frame_needed = 0, uses_anonymous_args = 0
push {r4, r5, r6, r7, lr}
mov r4, #0
ldrb r5, [r0] @ zero_extendqisi2
ldr r3, .L16
sub sp, sp, #36
cmp r5, r4
ldr r3, [r3]
str r3, [sp, #28]
mov r3,#0
mov r7, r1
str r4, [sp, #4]
str r4, [sp, #8]
str r4, [sp, #16]
str r4, [sp, #20]
strh r4, [sp, #12] @ movhi
strh r4, [sp, #24] @ movhi
beq .L7
mov r6, r0
bl __ctype_b_loc
mov r3, r4
mov r2, r6
mov ip, r4
ldr lr, [r0]
b .L6
.L14:
add r1, sp, #32
add r1, r1, r3
cmp ip, #0
strbeq r5, [r1, #-28]
strbne r5, [r1, #-16]
ldrb r5, [r2, #1]! @ zero_extendqisi2
add r3, r3, #1
cmp r5, #0
beq .L7
.L6:
lsl r1, r5, #1
ldrh r1, [lr, r1]
tst r1, #2048
bne .L14
cmp r3, #0
movle r0, #0
movgt r0, #1
cmp ip, #0
movne r0, #0
ldrb r5, [r2, #1]! @ zero_extendqisi2
cmp r0, #0
movne r3, #0
movne ip, #1
cmp r5, #0
bne .L6
.L7:
mov r2, #10
mov r1, #0
add r0, sp, #4
bl strtol
mov r3, r0
mov r2, #10
mov r1, #0
add r0, sp, #16
sub r7, r7, r3
bl strtol
ldr r3, .L16
sub r0, r7, r0
ldr r2, [r3]
ldr r3, [sp, #28]
eors r2, r3, r2
mov r3, #0
bne .L15
add sp, sp, #36
@ sp needed
pop {r4, r5, r6, r7, pc}
.L15:
bl __stack_chk_fail
.L17:
.align 2
.L16:
.word .LC0
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.section .rodata
.align 2
.LC0:
.word __stack_chk_guard
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 48
@ frame_needed = 1, uses_anonymous_args = 0
push {r4, fp, lr}
add fp, sp, #8
sub sp, sp, #52
str r0, [fp, #-56]
str r1, [fp, #-60]
ldr r3, .L9
ldr r3, [r3]
str r3, [fp, #-16]
mov r3,#0
mov r3, #0
str r3, [fp, #-40]
sub r3, fp, #36
mov r2, #0
str r2, [r3]
strh r2, [r3, #4] @ movhi
mov r3, #0
str r3, [fp, #-28]
sub r3, fp, #24
mov r2, #0
str r2, [r3]
strh r2, [r3, #4] @ movhi
mov r3, #0
str r3, [fp, #-52]
mov r3, #0
str r3, [fp, #-48]
mov r3, #0
str r3, [fp, #-44]
b .L2
.L6:
bl __ctype_b_loc
mov r3, r0
ldr r2, [r3]
ldr r3, [fp, #-44]
ldr r1, [fp, #-56]
add r3, r1, r3
ldrb r3, [r3] @ zero_extendqisi2
lsl r3, r3, #1
add r3, r2, r3
ldrh r3, [r3]
and r3, r3, #2048
cmp r3, #0
beq .L3
ldr r3, [fp, #-52]
cmp r3, #0
bne .L4
ldr r3, [fp, #-44]
ldr r2, [fp, #-56]
add r2, r2, r3
ldr r3, [fp, #-48]
add r1, r3, #1
str r1, [fp, #-48]
ldrb r2, [r2] @ zero_extendqisi2
sub r1, fp, #12
add r3, r1, r3
strb r2, [r3, #-28]
b .L5
.L4:
ldr r3, [fp, #-44]
ldr r2, [fp, #-56]
add r2, r2, r3
ldr r3, [fp, #-48]
add r1, r3, #1
str r1, [fp, #-48]
ldrb r2, [r2] @ zero_extendqisi2
sub r1, fp, #12
add r3, r1, r3
strb r2, [r3, #-16]
b .L5
.L3:
ldr r3, [fp, #-52]
cmp r3, #0
bne .L5
ldr r3, [fp, #-48]
cmp r3, #0
ble .L5
mov r3, #1
str r3, [fp, #-52]
mov r3, #0
str r3, [fp, #-48]
.L5:
ldr r3, [fp, #-44]
add r3, r3, #1
str r3, [fp, #-44]
.L2:
ldr r3, [fp, #-44]
ldr r2, [fp, #-56]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
bne .L6
sub r3, fp, #40
mov r0, r3
bl atoi
mov r2, r0
ldr r3, [fp, #-60]
sub r4, r3, r2
sub r3, fp, #28
mov r0, r3
bl atoi
mov r3, r0
sub r3, r4, r3
ldr r2, .L9
ldr r1, [r2]
ldr r2, [fp, #-16]
eors r1, r2, r1
mov r2, #0
beq .L8
bl __stack_chk_fail
.L8:
mov r0, r3
sub sp, fp, #8
@ sp needed
pop {r4, fp, pc}
.L10:
.align 2
.L9:
.word .LC0
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem18/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.section .rodata.str1.4,"aMS",%progbits,1
.align 2
.LC1:
.ascii " \000"
.section .rodata.cst4,"aM",%progbits,4
.align 2
.LC2:
.word __stack_chk_guard
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 0, uses_anonymous_args = 0
push {r4, r5, r6, r7, r8, r9, r10, fp, lr}
mov r7, #0
ldr r3, .L29
sub sp, sp, #20
ldrb r3, [r3] @ zero_extendqisi2
ldr r2, .L29+4
str r1, [sp, #4]
ldr r2, [r2]
str r2, [sp, #12]
mov r2,#0
mov r4, r0
strb r3, [sp, #8]
strb r7, [sp, #9]
strb r7, [sp, #10]
bl strlen
mov r5, r0
add r0, r0, #2
bl malloc
mov r6, r0
mov r2, r5
mov r1, r4
bl memcpy
add r0, r6, r5
mov r2, #2
ldr r1, .L29+8
bl memcpy
mov r10, r7
mov r8, r7
add r5, r5, #1
sub fp, r6, #1
b .L16
.L2:
add r0, sp, #8
bl strlen
cmp r0, #2
addne r3, sp, #16
addne r0, r3, r0
movne r3, #0
add r4, r4, #2
sub r4, r4, r6
strbne r9, [r0, #-8]
strbne r3, [r0, #-7]
cmp r5, r4
ble .L27
.L16:
mov r4, fp
ldrb r9, [fp, #1]! @ zero_extendqisi2
cmp r9, #32
bne .L2
ldrb r1, [sp, #8] @ zero_extendqisi2
cmp r1, #111
bne .L4
ldrb r1, [sp, #9] @ zero_extendqisi2
cmp r1, #0
bne .L4
cmp r10, r7
bne .L5
cmp r10, #0
mov r0, r8
moveq r1, #16
lslne r1, r10, #3
moveq r7, #4
lslne r7, r10, #1
bl realloc
mov r8, r0
.L5:
mov r1, #4
str r1, [r8, r10, lsl #2]
add r10, r10, #1
.L4:
ldrb r1, [sp, #8] @ zero_extendqisi2
cmp r1, #111
bne .L8
ldrb r1, [sp, #9] @ zero_extendqisi2
cmp r1, #124
bne .L8
ldrb r1, [sp, #10] @ zero_extendqisi2
cmp r1, #0
bne .L8
cmp r10, r7
bne .L9
cmp r10, #0
mov r0, r8
moveq r1, #16
lslne r1, r10, #3
moveq r7, #4
lslne r7, r10, #1
bl realloc
mov r8, r0
.L9:
mov r1, #2
str r1, [r8, r10, lsl #2]
add r10, r10, #1
.L8:
ldrb r1, [sp, #8] @ zero_extendqisi2
cmp r1, #46
bne .L12
ldrb r1, [sp, #9] @ zero_extendqisi2
cmp r1, #124
bne .L12
ldrb r1, [sp, #10] @ zero_extendqisi2
cmp r1, #0
bne .L12
cmp r10, r7
bne .L13
cmp r10, #0
mov r0, r8
moveq r1, #16
lslne r1, r10, #3
moveq r7, #4
lslne r7, r10, #1
bl realloc
mov r8, r0
.L13:
mov r3, #1
str r3, [r8, r10, lsl #2]
add r10, r10, r3
.L12:
mov r3, #0
add r4, r4, #2
sub r4, r4, r6
cmp r5, r4
strb r3, [sp, #8]
bgt .L16
.L27:
mov r0, r6
bl free
ldr r3, [sp, #4]
str r10, [r3]
ldr r3, .L29+4
ldr r2, [r3]
ldr r3, [sp, #12]
eors r2, r3, r2
mov r3, #0
bne .L28
mov r0, r8
add sp, sp, #20
@ sp needed
pop {r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L28:
bl __stack_chk_fail
.L30:
.align 2
.L29:
.word .LANCHOR0
.word .LC2
.word .LC1
.size func0, .-func0
.section .rodata
.align 2
.set .LANCHOR0,. + 0
.LC0:
.ascii "\000"
.space 2
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.section .rodata
.align 2
.LC1:
.ascii " \000"
.align 2
.LC2:
.ascii "o\000"
.align 2
.LC3:
.ascii "o|\000"
.align 2
.LC4:
.ascii ".|\000"
.align 2
.LC0:
.ascii "\000"
.space 2
.align 2
.LC5:
.word __stack_chk_guard
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 48
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #48
str r0, [fp, #-48]
str r1, [fp, #-52]
ldr r3, .L20
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
mov r3, #0
str r3, [fp, #-40]
mov r3, #0
str r3, [fp, #-36]
mov r3, #0
str r3, [fp, #-32]
ldr r3, .L20+4
ldrb r3, [r3]
strb r3, [fp, #-12]
sub r3, fp, #11
mov r1, #0
mov r2, r1
strb r2, [r3]
mov r2, r1
strb r2, [r3, #1]
ldr r0, [fp, #-48]
bl strlen
mov r3, r0
add r3, r3, #1
str r3, [fp, #-24]
ldr r3, [fp, #-24]
add r3, r3, #1
mov r0, r3
bl malloc
mov r3, r0
str r3, [fp, #-20]
ldr r1, [fp, #-48]
ldr r0, [fp, #-20]
bl strcpy
ldr r0, [fp, #-20]
bl strlen
mov r3, r0
mov r2, r3
ldr r3, [fp, #-20]
add r3, r3, r2
ldr r2, .L20+8
mov r0, r3
mov r1, r2
mov r3, #2
mov r2, r3
bl memcpy
mov r3, #0
str r3, [fp, #-28]
b .L2
.L17:
ldr r3, [fp, #-28]
ldr r2, [fp, #-20]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #32
bne .L3
sub r3, fp, #12
ldr r1, .L20+12
mov r0, r3
bl strcmp
mov r3, r0
cmp r3, #0
bne .L4
ldr r2, [fp, #-36]
ldr r3, [fp, #-32]
cmp r2, r3
bne .L5
ldr r3, [fp, #-32]
cmp r3, #0
ble .L6
ldr r3, [fp, #-32]
lsl r3, r3, #1
b .L7
.L6:
mov r3, #4
.L7:
str r3, [fp, #-32]
ldr r3, [fp, #-32]
lsl r3, r3, #2
mov r1, r3
ldr r0, [fp, #-40]
bl realloc
str r0, [fp, #-40]
.L5:
ldr r3, [fp, #-36]
add r2, r3, #1
str r2, [fp, #-36]
lsl r3, r3, #2
ldr r2, [fp, #-40]
add r3, r2, r3
mov r2, #4
str r2, [r3]
.L4:
sub r3, fp, #12
ldr r1, .L20+16
mov r0, r3
bl strcmp
mov r3, r0
cmp r3, #0
bne .L8
ldr r2, [fp, #-36]
ldr r3, [fp, #-32]
cmp r2, r3
bne .L9
ldr r3, [fp, #-32]
cmp r3, #0
ble .L10
ldr r3, [fp, #-32]
lsl r3, r3, #1
b .L11
.L10:
mov r3, #4
.L11:
str r3, [fp, #-32]
ldr r3, [fp, #-32]
lsl r3, r3, #2
mov r1, r3
ldr r0, [fp, #-40]
bl realloc
str r0, [fp, #-40]
.L9:
ldr r3, [fp, #-36]
add r2, r3, #1
str r2, [fp, #-36]
lsl r3, r3, #2
ldr r2, [fp, #-40]
add r3, r2, r3
mov r2, #2
str r2, [r3]
.L8:
sub r3, fp, #12
ldr r1, .L20+20
mov r0, r3
bl strcmp
mov r3, r0
cmp r3, #0
bne .L12
ldr r2, [fp, #-36]
ldr r3, [fp, #-32]
cmp r2, r3
bne .L13
ldr r3, [fp, #-32]
cmp r3, #0
ble .L14
ldr r3, [fp, #-32]
lsl r3, r3, #1
b .L15
.L14:
mov r3, #4
.L15:
str r3, [fp, #-32]
ldr r3, [fp, #-32]
lsl r3, r3, #2
mov r1, r3
ldr r0, [fp, #-40]
bl realloc
str r0, [fp, #-40]
.L13:
ldr r3, [fp, #-36]
add r2, r3, #1
str r2, [fp, #-36]
lsl r3, r3, #2
ldr r2, [fp, #-40]
add r3, r2, r3
mov r2, #1
str r2, [r3]
.L12:
mov r3, #0
strb r3, [fp, #-12]
b .L16
.L3:
sub r3, fp, #12
mov r0, r3
bl strlen
str r0, [fp, #-16]
ldr r3, [fp, #-16]
cmp r3, #1
bhi .L16
ldr r3, [fp, #-28]
ldr r2, [fp, #-20]
add r3, r2, r3
ldrb r1, [r3] @ zero_extendqisi2
sub r2, fp, #12
ldr r3, [fp, #-16]
add r3, r2, r3
mov r2, r1
strb r2, [r3]
ldr r3, [fp, #-16]
add r3, r3, #1
sub r2, fp, #4
add r3, r2, r3
mov r2, #0
strb r2, [r3, #-8]
.L16:
ldr r3, [fp, #-28]
add r3, r3, #1
str r3, [fp, #-28]
.L2:
ldr r2, [fp, #-28]
ldr r3, [fp, #-24]
cmp r2, r3
blt .L17
ldr r0, [fp, #-20]
bl free
ldr r3, [fp, #-52]
ldr r2, [fp, #-36]
str r2, [r3]
ldr r3, [fp, #-40]
ldr r2, .L20
ldr r1, [r2]
ldr r2, [fp, #-8]
eors r1, r2, r1
mov r2, #0
beq .L19
bl __stack_chk_fail
.L19:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L21:
.align 2
.L20:
.word .LC5
.word .LC0
.word .LC1
.word .LC2
.word .LC3
.word .LC4
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem17/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.section .rodata.cst4,"aM",%progbits,4
.align 2
.LC0:
.word __stack_chk_guard
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 1032
@ frame_needed = 0, uses_anonymous_args = 0
push {r4, r5, r6, r7, r8, r9, lr}
mov r5, r0
sub sp, sp, #1024
sub sp, sp, #12
ldr r3, .L14
mov r2, #1024
mov r1, #0
add r0, sp, #4
ldr r3, [r3]
str r3, [sp, #1028]
mov r3,#0
bl memset
ldrb r4, [r5] @ zero_extendqisi2
cmp r4, #0
beq .L6
bl __ctype_tolower_loc
mov r7, #0
mov r8, #1
ldr r9, [r0]
.L4:
ldrb r4, [r9, r4, lsl #2] @ zero_extendqisi2
add r3, sp, #1024
add r3, r3, #8
add r6, r3, r4, lsl #2
ldr r3, [r6, #-1028]
cmp r3, #0
bne .L3
bl __ctype_b_loc
ldr r3, [r0]
lsl r4, r4, #1
ldrh r3, [r3, r4]
tst r3, #1024
strne r8, [r6, #-1028]
addne r7, r7, #1
.L3:
ldrb r4, [r5, #1]! @ zero_extendqisi2
cmp r4, #0
bne .L4
.L1:
ldr r3, .L14
ldr r2, [r3]
ldr r3, [sp, #1028]
eors r2, r3, r2
mov r3, #0
bne .L13
mov r0, r7
add sp, sp, #1024
add sp, sp, #12
@ sp needed
pop {r4, r5, r6, r7, r8, r9, pc}
.L6:
mov r7, r4
b .L1
.L13:
bl __stack_chk_fail
.L15:
.align 2
.L14:
.word .LC0
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.section .rodata
.align 2
.LC0:
.word __stack_chk_guard
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 1048
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #1040
sub sp, sp, #8
str r0, [fp, #-1048]
ldr r3, .L7
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
mov r3, #0
str r3, [fp, #-1040]
sub r3, fp, #1024
sub r3, r3, #4
sub r3, r3, #4
mov r2, #1024
mov r1, #0
mov r0, r3
bl memset
mov r3, #0
str r3, [fp, #-1036]
b .L2
.L4:
ldr r3, [fp, #-1036]
ldr r2, [fp, #-1048]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
mov r0, r3
bl tolower
mov r3, r0
strb r3, [fp, #-1041]
ldrb r3, [fp, #-1041] @ zero_extendqisi2
lsl r3, r3, #2
sub r2, fp, #4
add r3, r2, r3
ldr r3, [r3, #-1028]
cmp r3, #0
bne .L3
bl __ctype_b_loc
mov r3, r0
ldr r2, [r3]
ldrb r3, [fp, #-1041] @ zero_extendqisi2
lsl r3, r3, #1
add r3, r2, r3
ldrh r3, [r3]
and r3, r3, #1024
cmp r3, #0
beq .L3
ldrb r3, [fp, #-1041] @ zero_extendqisi2
lsl r3, r3, #2
sub r2, fp, #4
add r3, r2, r3
mov r2, #1
str r2, [r3, #-1028]
ldr r3, [fp, #-1040]
add r3, r3, #1
str r3, [fp, #-1040]
.L3:
ldr r3, [fp, #-1036]
add r3, r3, #1
str r3, [fp, #-1036]
.L2:
ldr r3, [fp, #-1036]
ldr r2, [fp, #-1048]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
bne .L4
ldr r3, [fp, #-1040]
ldr r2, .L7
ldr r1, [r2]
ldr r2, [fp, #-8]
eors r1, r2, r1
mov r2, #0
beq .L6
bl __stack_chk_fail
.L6:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L8:
.align 2
.L7:
.word .LC0
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem125/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.section .rodata.cst4,"aM",%progbits,4
.align 2
.LC0:
.word __stack_chk_guard
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 24
@ frame_needed = 0, uses_anonymous_args = 0
push {r4, r5, r6, lr}
ldr r3, .L23
sub sp, sp, #24
ldr r3, [r3]
str r3, [sp, #20]
mov r3,#0
mov r5, r0
bl strlen
cmp r0, #10
bne .L5
mov r4, #0
sub r2, r5, #1
b .L7
.L21:
cmp r3, #45
bne .L5
.L6:
add r4, r4, #1
cmp r4, #10
beq .L20
.L7:
cmp r4, #5
cmpne r4, #2
ldrb r3, [r2, #1]! @ zero_extendqisi2
beq .L21
sub r3, r3, #48
cmp r3, #9
bls .L6
.L5:
mov r0, #0
.L1:
ldr r3, .L23
ldr r2, [r3]
ldr r3, [sp, #20]
eors r2, r3, r2
mov r3, #0
bne .L22
add sp, sp, #24
@ sp needed
pop {r4, r5, r6, pc}
.L20:
mov r6, #0
ldrb r3, [r5] @ zero_extendqisi2
ldrb r2, [r5, #1] @ zero_extendqisi2
ldrb r0, [r5, #3] @ zero_extendqisi2
strb r3, [sp, #4]
ldrb r3, [r5, #4] @ zero_extendqisi2
strb r2, [sp, #5]
strb r0, [sp, #8]
ldrb r2, [r5, #6] @ zero_extendqisi2
ldrb r0, [r5, #7] @ zero_extendqisi2
ldrb ip, [r5, #8] @ zero_extendqisi2
strb r3, [sp, #9]
ldrb r3, [r5, #9] @ zero_extendqisi2
mov r1, r6
strb r2, [sp, #12]
strb r0, [sp, #13]
mov r2, r4
add r0, sp, #4
strb ip, [sp, #14]
strb r3, [sp, #15]
strb r6, [sp, #6]
strb r6, [sp, #10]
strb r6, [sp, #16]
bl strtol
mov r2, r4
mov r5, r0
mov r1, r6
add r0, sp, #8
bl strtol
mov r3, r0
mov r2, r4
mov r1, r6
add r0, sp, #12
mov r4, r3
bl strtol
sub r3, r5, #1
cmp r3, #11
bhi .L5
sub r3, r4, #1
cmp r3, #30
bhi .L5
bic r3, r5, #2
cmp r3, #4
beq .L8
cmp r3, #9
bne .L9
.L8:
cmp r4, #31
beq .L5
.L9:
sub r5, r5, #2
clz r5, r5
cmp r4, #29
lsr r5, r5, #5
movle r5, #0
eor r0, r5, #1
b .L1
.L22:
bl __stack_chk_fail
.L24:
.align 2
.L23:
.word .LC0
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.section .rodata
.align 2
.LC0:
.word __stack_chk_guard
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 48
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #48
str r0, [fp, #-48]
ldr r3, .L20
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
ldr r0, [fp, #-48]
bl strlen
mov r3, r0
cmp r3, #10
beq .L2
mov r3, #0
b .L18
.L2:
mov r3, #0
str r3, [fp, #-40]
b .L4
.L10:
ldr r3, [fp, #-40]
cmp r3, #2
beq .L5
ldr r3, [fp, #-40]
cmp r3, #5
bne .L6
.L5:
ldr r3, [fp, #-40]
ldr r2, [fp, #-48]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #45
beq .L8
mov r3, #0
b .L18
.L6:
ldr r3, [fp, #-40]
ldr r2, [fp, #-48]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #47
bls .L9
ldr r3, [fp, #-40]
ldr r2, [fp, #-48]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #57
bls .L8
.L9:
mov r3, #0
b .L18
.L8:
ldr r3, [fp, #-40]
add r3, r3, #1
str r3, [fp, #-40]
.L4:
ldr r3, [fp, #-40]
cmp r3, #9
ble .L10
ldr r3, [fp, #-48]
ldrb r3, [r3] @ zero_extendqisi2
strb r3, [fp, #-24]
ldr r3, [fp, #-48]
ldrb r3, [r3, #1] @ zero_extendqisi2
strb r3, [fp, #-23]
mov r3, #0
strb r3, [fp, #-22]
ldr r3, [fp, #-48]
ldrb r3, [r3, #3] @ zero_extendqisi2
strb r3, [fp, #-20]
ldr r3, [fp, #-48]
ldrb r3, [r3, #4] @ zero_extendqisi2
strb r3, [fp, #-19]
mov r3, #0
strb r3, [fp, #-18]
ldr r3, [fp, #-48]
ldrb r3, [r3, #6] @ zero_extendqisi2
strb r3, [fp, #-16]
ldr r3, [fp, #-48]
ldrb r3, [r3, #7] @ zero_extendqisi2
strb r3, [fp, #-15]
ldr r3, [fp, #-48]
ldrb r3, [r3, #8] @ zero_extendqisi2
strb r3, [fp, #-14]
ldr r3, [fp, #-48]
ldrb r3, [r3, #9] @ zero_extendqisi2
strb r3, [fp, #-13]
mov r3, #0
strb r3, [fp, #-12]
sub r3, fp, #24
mov r0, r3
bl atoi
str r0, [fp, #-36]
sub r3, fp, #20
mov r0, r3
bl atoi
str r0, [fp, #-32]
sub r3, fp, #16
mov r0, r3
bl atoi
str r0, [fp, #-28]
ldr r3, [fp, #-36]
cmp r3, #0
ble .L11
ldr r3, [fp, #-36]
cmp r3, #12
ble .L12
.L11:
mov r3, #0
b .L18
.L12:
ldr r3, [fp, #-32]
cmp r3, #0
ble .L13
ldr r3, [fp, #-32]
cmp r3, #31
ble .L14
.L13:
mov r3, #0
b .L18
.L14:
ldr r3, [fp, #-36]
cmp r3, #4
beq .L15
ldr r3, [fp, #-36]
cmp r3, #6
beq .L15
ldr r3, [fp, #-36]
cmp r3, #9
beq .L15
ldr r3, [fp, #-36]
cmp r3, #11
bne .L16
.L15:
ldr r3, [fp, #-32]
cmp r3, #31
bne .L16
mov r3, #0
b .L18
.L16:
ldr r3, [fp, #-36]
cmp r3, #2
bne .L17
ldr r3, [fp, #-32]
cmp r3, #29
ble .L17
mov r3, #0
b .L18
.L17:
mov r3, #1
.L18:
ldr r2, .L20
ldr r1, [r2]
ldr r2, [fp, #-8]
eors r1, r2, r1
mov r2, #0
beq .L19
bl __stack_chk_fail
.L19:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L21:
.align 2
.L20:
.word .LC0
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem35/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
push {r4, r5, r6, r7, r8, lr}
mov r7, r1
lsl r5, r1, #2
mov r4, r0
mov r0, r5
mov r6, r2
bl malloc
cmp r7, #0
ble .L13
sub r2, r4, #4
mov r4, #0
add r5, r2, r5
.L3:
cmp r4, #0
movne r3, #0
ldr lr, [r2, #4]!
subne r1, r0, #4
bne .L5
b .L6
.L24:
cmp r3, r4
beq .L6
.L5:
ldr ip, [r1, #4]!
add r3, r3, #1
cmp ip, lr
bne .L24
cmp r2, r5
bne .L3
.L7:
cmp r4, #1
beq .L2
mov lr, r0
mov r2, #0
sub r5, r0, #4
add r5, r5, r4, lsl #2
sub r7, r4, #1
.L10:
add r2, r2, #1
cmp r4, r2
movgt r3, lr
ble .L12
.L9:
ldr ip, [r3, #4]!
ldr r1, [lr]
cmp r1, ip
strgt ip, [lr]
strgt r1, [r3]
cmp r3, r5
bne .L9
.L12:
cmp r2, r7
add lr, lr, #4
bne .L10
.L2:
str r4, [r6]
pop {r4, r5, r6, r7, r8, pc}
.L6:
cmp r2, r5
str lr, [r0, r4, lsl #2]
add r4, r4, #1
bne .L3
b .L7
.L13:
mov r4, #0
str r4, [r6]
pop {r4, r5, r6, r7, r8, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 40
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #40
str r0, [fp, #-32]
str r1, [fp, #-36]
str r2, [fp, #-40]
ldr r3, [fp, #-36]
lsl r3, r3, #2
mov r0, r3
bl malloc
mov r3, r0
str r3, [fp, #-12]
mov r3, #0
str r3, [fp, #-24]
mov r3, #0
str r3, [fp, #-20]
b .L2
.L8:
mov r3, #0
str r3, [fp, #-28]
mov r3, #0
str r3, [fp, #-16]
b .L3
.L6:
ldr r3, [fp, #-20]
lsl r3, r3, #2
ldr r2, [fp, #-32]
add r3, r2, r3
ldr r2, [r3]
ldr r3, [fp, #-16]
lsl r3, r3, #2
ldr r1, [fp, #-12]
add r3, r1, r3
ldr r3, [r3]
cmp r2, r3
bne .L4
mov r3, #1
str r3, [fp, #-28]
b .L5
.L4:
ldr r3, [fp, #-16]
add r3, r3, #1
str r3, [fp, #-16]
.L3:
ldr r2, [fp, #-16]
ldr r3, [fp, #-24]
cmp r2, r3
blt .L6
.L5:
ldr r3, [fp, #-28]
cmp r3, #0
bne .L7
ldr r3, [fp, #-20]
lsl r3, r3, #2
ldr r2, [fp, #-32]
add r2, r2, r3
ldr r3, [fp, #-24]
add r1, r3, #1
str r1, [fp, #-24]
lsl r3, r3, #2
ldr r1, [fp, #-12]
add r3, r1, r3
ldr r2, [r2]
str r2, [r3]
.L7:
ldr r3, [fp, #-20]
add r3, r3, #1
str r3, [fp, #-20]
.L2:
ldr r2, [fp, #-20]
ldr r3, [fp, #-36]
cmp r2, r3
blt .L8
mov r3, #0
str r3, [fp, #-20]
b .L9
.L13:
ldr r3, [fp, #-20]
add r3, r3, #1
str r3, [fp, #-16]
b .L10
.L12:
ldr r3, [fp, #-20]
lsl r3, r3, #2
ldr r2, [fp, #-12]
add r3, r2, r3
ldr r2, [r3]
ldr r3, [fp, #-16]
lsl r3, r3, #2
ldr r1, [fp, #-12]
add r3, r1, r3
ldr r3, [r3]
cmp r2, r3
ble .L11
ldr r3, [fp, #-20]
lsl r3, r3, #2
ldr r2, [fp, #-12]
add r3, r2, r3
ldr r3, [r3]
str r3, [fp, #-8]
ldr r3, [fp, #-16]
lsl r3, r3, #2
ldr r2, [fp, #-12]
add r2, r2, r3
ldr r3, [fp, #-20]
lsl r3, r3, #2
ldr r1, [fp, #-12]
add r3, r1, r3
ldr r2, [r2]
str r2, [r3]
ldr r3, [fp, #-16]
lsl r3, r3, #2
ldr r2, [fp, #-12]
add r3, r2, r3
ldr r2, [fp, #-8]
str r2, [r3]
.L11:
ldr r3, [fp, #-16]
add r3, r3, #1
str r3, [fp, #-16]
.L10:
ldr r2, [fp, #-16]
ldr r3, [fp, #-24]
cmp r2, r3
blt .L12
ldr r3, [fp, #-20]
add r3, r3, #1
str r3, [fp, #-20]
.L9:
ldr r3, [fp, #-24]
sub r3, r3, #1
ldr r2, [fp, #-20]
cmp r2, r3
blt .L13
ldr r3, [fp, #-40]
ldr r2, [fp, #-24]
str r2, [r3]
ldr r3, [fp, #-12]
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem75/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
cmp r1, #0
push {r4, r5, r6, r7, r8, r9, r10, lr}
mov r9, r0
mov r10, r2
mov r8, r3
ble .L2
mov r6, #0
sub r4, r0, #4
add r5, r4, r1, lsl #2
.L3:
ldr r0, [r4, #4]!
bl strlen
cmp r5, r4
add r6, r6, r0
bne .L3
cmp r8, #0
ble .L16
.L7:
mov r5, #0
mov r4, r5
sub r7, r10, #4
.L5:
ldr r0, [r7, #4]!
bl strlen
add r4, r4, #1
cmp r8, r4
add r5, r5, r0
bgt .L5
.L4:
cmp r6, r5
movle r0, r9
movgt r0, r10
pop {r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
cmp r3, #0
movgt r6, #0
bgt .L7
pop {r4, r5, r6, r7, r8, r9, r10, pc}
.L16:
mov r5, #0
b .L4
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 32
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #32
str r0, [fp, #-24]
str r1, [fp, #-28]
str r2, [fp, #-32]
str r3, [fp, #-36]
mov r3, #0
str r3, [fp, #-12]
mov r3, #0
str r3, [fp, #-8]
mov r3, #0
str r3, [fp, #-16]
b .L2
.L3:
ldr r3, [fp, #-16]
lsl r3, r3, #2
ldr r2, [fp, #-24]
add r3, r2, r3
ldr r3, [r3]
mov r0, r3
bl strlen
mov r2, r0
ldr r3, [fp, #-12]
add r3, r2, r3
str r3, [fp, #-12]
ldr r3, [fp, #-16]
add r3, r3, #1
str r3, [fp, #-16]
.L2:
ldr r2, [fp, #-16]
ldr r3, [fp, #-28]
cmp r2, r3
blt .L3
mov r3, #0
str r3, [fp, #-16]
b .L4
.L5:
ldr r3, [fp, #-16]
lsl r3, r3, #2
ldr r2, [fp, #-32]
add r3, r2, r3
ldr r3, [r3]
mov r0, r3
bl strlen
mov r2, r0
ldr r3, [fp, #-8]
add r3, r2, r3
str r3, [fp, #-8]
ldr r3, [fp, #-16]
add r3, r3, #1
str r3, [fp, #-16]
.L4:
ldr r2, [fp, #-16]
ldr r3, [fp, #-36]
cmp r2, r3
blt .L5
ldr r2, [fp, #-12]
ldr r3, [fp, #-8]
cmp r2, r3
bge .L6
ldr r3, [fp, #-24]
b .L7
.L6:
ldr r2, [fp, #-12]
ldr r3, [fp, #-8]
cmp r2, r3
ble .L8
ldr r3, [fp, #-32]
b .L7
.L8:
ldr r3, [fp, #-24]
.L7:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem97/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.global __aeabi_idivmod
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
push {r4, r5, r6, r7, r8, r9, r10, lr}
mov r10, r0
lsl r0, r0, #2
mov r9, r1
mov r7, #0
bl malloc
cmp r10, #2
mov r8, r0
movgt r5, #2
str r7, [r9]
ble .L1
.L2:
cmp r7, #0
movgt r4, #0
subgt r6, r8, #4
bgt .L6
b .L4
.L15:
mov r0, r5
bl __aeabi_idivmod
cmp r1, #0
beq .L5
cmp r4, r7
beq .L4
.L6:
ldr r1, [r6, #4]!
add r4, r4, #1
mul r3, r1, r1
cmp r3, r5
ble .L15
.L4:
add r3, r7, #1
str r5, [r8, r7, lsl #2]
str r3, [r9]
.L5:
add r5, r5, #1
cmp r10, r5
ldrne r7, [r9]
bne .L2
.L1:
mov r0, r8
pop {r4, r5, r6, r7, r8, r9, r10, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.global __aeabi_idivmod
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 32
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #32
str r0, [fp, #-32]
str r1, [fp, #-36]
ldr r3, [fp, #-32]
lsl r3, r3, #2
mov r0, r3
bl malloc
mov r3, r0
str r3, [fp, #-12]
ldr r3, [fp, #-36]
mov r2, #0
str r2, [r3]
mov r3, #2
str r3, [fp, #-24]
b .L2
.L9:
mov r3, #1
str r3, [fp, #-16]
mov r3, #0
str r3, [fp, #-20]
b .L3
.L7:
ldr r3, [fp, #-20]
lsl r3, r3, #2
ldr r2, [fp, #-12]
add r3, r2, r3
ldr r3, [r3]
str r3, [fp, #-8]
ldr r3, [fp, #-8]
mov r2, r3
mul r2, r3, r2
mov r3, r2
ldr r2, [fp, #-24]
cmp r2, r3
blt .L11
ldr r3, [fp, #-24]
ldr r1, [fp, #-8]
mov r0, r3
bl __aeabi_idivmod
mov r3, r1
cmp r3, #0
bne .L6
mov r3, #0
str r3, [fp, #-16]
b .L5
.L6:
ldr r3, [fp, #-20]
add r3, r3, #1
str r3, [fp, #-20]
.L3:
ldr r3, [fp, #-36]
ldr r3, [r3]
ldr r2, [fp, #-20]
cmp r2, r3
blt .L7
b .L5
.L11:
nop
.L5:
ldr r3, [fp, #-16]
cmp r3, #0
beq .L8
ldr r3, [fp, #-36]
ldr r3, [r3]
lsl r3, r3, #2
ldr r2, [fp, #-12]
add r3, r2, r3
ldr r2, [fp, #-24]
str r2, [r3]
ldr r3, [fp, #-36]
ldr r3, [r3]
add r2, r3, #1
ldr r3, [fp, #-36]
str r2, [r3]
.L8:
ldr r3, [fp, #-24]
add r3, r3, #1
str r3, [fp, #-24]
.L2:
ldr r2, [fp, #-24]
ldr r3, [fp, #-32]
cmp r2, r3
blt .L9
ldr r3, [fp, #-12]
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem32/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.global __aeabi_ldivmod
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
cmp r0, #2
sbcs r3, r1, #0
push {r4, r5, r6, r7, r8, lr}
blt .L8
cmp r0, #4
sbcs r3, r1, #0
mov r6, r0
mov r7, r1
blt .L6
mov r0, #0
mov r3, r0
and r2, r6, #1
orrs r3, r2, r3
popeq {r4, r5, r6, r7, r8, pc}
mov r4, #2
mov r5, r0
b .L3
.L4:
mov r2, r4
mov r3, r5
mov r0, r6
mov r1, r7
bl __aeabi_ldivmod
orrs r3, r2, r3
beq .L8
.L3:
adds r4, r4, #1
adc r5, r5, #0
umull r2, r3, r4, r4
mul r1, r4, r5
cmp r6, r2
add r3, r3, r1, lsl #1
sbcs r3, r7, r3
bge .L4
.L6:
mov r0, #1
pop {r4, r5, r6, r7, r8, pc}
.L8:
mov r0, #0
pop {r4, r5, r6, r7, r8, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.global __aeabi_ldivmod
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
push {r4, r5, fp, lr}
add fp, sp, #12
sub sp, sp, #16
str r0, [fp, #-28]
str r1, [fp, #-24]
sub r3, fp, #28
ldmia r3, {r2-r3}
cmp r2, #2
sbcs r3, r3, #0
bge .L2
mov r3, #0
b .L3
.L2:
mov r2, #2
mov r3, #0
str r2, [fp, #-20]
str r3, [fp, #-16]
b .L4
.L6:
sub r1, fp, #28
ldmia r1, {r0-r1}
sub r3, fp, #20
ldmia r3, {r2-r3}
bl __aeabi_ldivmod
orrs r3, r2, r3
bne .L5
mov r3, #0
b .L3
.L5:
sub r3, fp, #20
ldmia r3, {r2-r3}
adds r4, r2, #1
adc r5, r3, #0
str r4, [fp, #-20]
str r5, [fp, #-16]
.L4:
ldr r3, [fp, #-16]
ldr r2, [fp, #-20]
mul r2, r3, r2
ldr r3, [fp, #-16]
ldr r1, [fp, #-20]
mul r3, r1, r3
add r0, r2, r3
ldr r1, [fp, #-20]
umull r2, r3, r1, r1
add r1, r0, r3
mov r3, r1
sub r1, fp, #28
ldmia r1, {r0-r1}
cmp r0, r2
sbcs r3, r1, r3
bge .L6
mov r3, #1
.L3:
mov r0, r3
sub sp, fp, #12
@ sp needed
pop {r4, r5, fp, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem143/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
cmp r1, #0
ble .L7
mov ip, r0
mov r2, #0
push {r4, lr}
mov r0, r2
ldr lr, .L16
sub ip, ip, #4
b .L6
.L15:
mla r0, r3, r3, r0
.L4:
add r2, r2, #1
cmp r1, r2
popeq {r4, pc}
.L6:
add r3, r2, r2, lsl #2
add r3, r3, r3, lsl #4
add r3, r3, r3, lsl #8
add r3, r3, r3, lsl #16
add r3, r2, r3, lsl #1
cmp r3, lr
ldr r3, [ip, #4]!
bls .L15
tst r2, #3
muleq r4, r3, r3
addne r0, r0, r3
mlaeq r0, r3, r4, r0
b .L4
.L7:
mov r0, #0
bx lr
.L17:
.align 2
.L16:
.word 1431655765
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #20
str r0, [fp, #-16]
str r1, [fp, #-20]
mov r3, #0
str r3, [fp, #-12]
mov r3, #0
str r3, [fp, #-8]
b .L2
.L6:
ldr r1, [fp, #-8]
ldr r3, .L8
smull r0, r2, r3, r1
asr r3, r1, #31
sub r2, r2, r3
mov r3, r2
lsl r3, r3, #1
add r3, r3, r2
sub r2, r1, r3
cmp r2, #0
bne .L3
ldr r3, [fp, #-8]
lsl r3, r3, #2
ldr r2, [fp, #-16]
add r3, r2, r3
ldr r3, [r3]
ldr r2, [fp, #-8]
lsl r2, r2, #2
ldr r1, [fp, #-16]
add r2, r1, r2
ldr r2, [r2]
mul r3, r2, r3
ldr r2, [fp, #-12]
add r3, r2, r3
str r3, [fp, #-12]
b .L4
.L3:
ldr r3, [fp, #-8]
and r3, r3, #3
cmp r3, #0
bne .L5
ldr r3, [fp, #-8]
lsl r3, r3, #2
ldr r2, [fp, #-16]
add r3, r2, r3
ldr r3, [r3]
ldr r2, [fp, #-8]
lsl r2, r2, #2
ldr r1, [fp, #-16]
add r2, r1, r2
ldr r2, [r2]
mul r3, r2, r3
ldr r2, [fp, #-8]
lsl r2, r2, #2
ldr r1, [fp, #-16]
add r2, r1, r2
ldr r2, [r2]
mul r3, r2, r3
ldr r2, [fp, #-12]
add r3, r2, r3
str r3, [fp, #-12]
b .L4
.L5:
ldr r3, [fp, #-8]
lsl r3, r3, #2
ldr r2, [fp, #-16]
add r3, r2, r3
ldr r3, [r3]
ldr r2, [fp, #-12]
add r3, r2, r3
str r3, [fp, #-12]
.L4:
ldr r3, [fp, #-8]
add r3, r3, #1
str r3, [fp, #-8]
.L2:
ldr r2, [fp, #-8]
ldr r3, [fp, #-20]
cmp r2, r3
blt .L6
ldr r3, [fp, #-12]
mov r0, r3
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.L9:
.align 2
.L8:
.word 1431655766
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem29/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
cmp r1, #0
push {r4, r5, r6, r7, r8, lr}
ble .L2
sub r4, r0, #4
mov r5, r4
mov r7, #0
add r6, r4, r1, lsl #2
.L3:
ldr r0, [r5, #4]!
bl strlen
cmp r5, r6
add r7, r7, r0
bne .L3
add r0, r7, #1
bl malloc
subs r3, r0, #0
movne r2, #0
strbne r2, [r3]
beq .L8
.L7:
mov r0, r3
ldr r1, [r4, #4]!
bl strcat
cmp r4, r6
mov r3, r0
bne .L7
.L1:
mov r0, r3
pop {r4, r5, r6, r7, r8, pc}
.L2:
mov r0, #1
bl malloc
subs r3, r0, #0
movne r2, #0
strbne r2, [r3]
bne .L1
.L8:
mov r3, #0
b .L1
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 24
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #24
str r0, [fp, #-24]
str r1, [fp, #-28]
mov r3, #0
str r3, [fp, #-20]
mov r3, #0
str r3, [fp, #-16]
b .L2
.L3:
ldr r3, [fp, #-16]
lsl r3, r3, #2
ldr r2, [fp, #-24]
add r3, r2, r3
ldr r3, [r3]
mov r0, r3
bl strlen
mov r2, r0
ldr r3, [fp, #-20]
add r3, r2, r3
str r3, [fp, #-20]
ldr r3, [fp, #-16]
add r3, r3, #1
str r3, [fp, #-16]
.L2:
ldr r2, [fp, #-16]
ldr r3, [fp, #-28]
cmp r2, r3
blt .L3
ldr r3, [fp, #-20]
add r3, r3, #1
mov r0, r3
bl malloc
mov r3, r0
str r3, [fp, #-8]
ldr r3, [fp, #-8]
cmp r3, #0
bne .L4
mov r3, #0
b .L5
.L4:
ldr r3, [fp, #-8]
mov r2, #0
strb r2, [r3]
mov r3, #0
str r3, [fp, #-12]
b .L6
.L7:
ldr r3, [fp, #-12]
lsl r3, r3, #2
ldr r2, [fp, #-24]
add r3, r2, r3
ldr r3, [r3]
mov r1, r3
ldr r0, [fp, #-8]
bl strcat
ldr r3, [fp, #-12]
add r3, r3, #1
str r3, [fp, #-12]
.L6:
ldr r2, [fp, #-12]
ldr r3, [fp, #-28]
cmp r2, r3
blt .L7
ldr r3, [fp, #-8]
.L5:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem154/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.section .rodata.str1.4,"aMS",%progbits,1
.align 2
.LC0:
.ascii "%s.%s\000"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
push {r4, r5, r6, r7, r8, r9, lr}
cmp r2, #0
mov r9, r0
mov r7, #0
mov r0, r3
sub sp, sp, #12
ble .L2
sub r5, r1, #4
ldr r6, .L15
add r8, r5, r2, lsl #2
.L8:
ldr r4, [r5, #4]!
ldrb r2, [r4] @ zero_extendqisi2
cmp r2, #0
beq .L10
mov ip, r4
mov r1, #0
.L6:
sub lr, r2, #65
cmp lr, #25
sub r2, r2, #97
addls r1, r1, #1
bls .L5
cmp r2, #25
subls r1, r1, #1
.L5:
ldrb r2, [ip, #1]! @ zero_extendqisi2
cmp r2, #0
bne .L6
.L3:
cmp r6, r1
movlt r7, r4
movlt r6, r1
cmp r5, r8
bne .L8
.L2:
mvn r2, #0
mov r1, #1
ldr r3, .L15+4
str r7, [sp, #4]
str r9, [sp]
bl __sprintf_chk
add sp, sp, #12
@ sp needed
pop {r4, r5, r6, r7, r8, r9, pc}
.L10:
mov r1, r2
b .L3
.L16:
.align 2
.L15:
.word -1000
.word .LC0
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.section .rodata
.align 2
.LC0:
.ascii "%s.%s\000"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 48
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #48
str r0, [fp, #-40]
str r1, [fp, #-44]
str r2, [fp, #-48]
str r3, [fp, #-52]
ldr r3, .L9
str r3, [fp, #-28]
mov r3, #0
str r3, [fp, #-24]
mov r3, #0
str r3, [fp, #-20]
b .L2
.L8:
ldr r3, [fp, #-20]
lsl r3, r3, #2
ldr r2, [fp, #-44]
add r3, r2, r3
ldr r3, [r3]
str r3, [fp, #-8]
mov r3, #0
str r3, [fp, #-16]
mov r3, #0
str r3, [fp, #-12]
b .L3
.L6:
ldr r3, [fp, #-12]
ldr r2, [fp, #-8]
add r3, r2, r3
ldrb r3, [r3]
strb r3, [fp, #-29]
ldrb r3, [fp, #-29] @ zero_extendqisi2
cmp r3, #64
bls .L4
ldrb r3, [fp, #-29] @ zero_extendqisi2
cmp r3, #90
bhi .L4
ldr r3, [fp, #-16]
add r3, r3, #1
str r3, [fp, #-16]
.L4:
ldrb r3, [fp, #-29] @ zero_extendqisi2
cmp r3, #96
bls .L5
ldrb r3, [fp, #-29] @ zero_extendqisi2
cmp r3, #122
bhi .L5
ldr r3, [fp, #-16]
sub r3, r3, #1
str r3, [fp, #-16]
.L5:
ldr r3, [fp, #-12]
add r3, r3, #1
str r3, [fp, #-12]
.L3:
ldr r3, [fp, #-12]
ldr r2, [fp, #-8]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
bne .L6
ldr r2, [fp, #-16]
ldr r3, [fp, #-28]
cmp r2, r3
ble .L7
ldr r3, [fp, #-16]
str r3, [fp, #-28]
ldr r3, [fp, #-8]
str r3, [fp, #-24]
.L7:
ldr r3, [fp, #-20]
add r3, r3, #1
str r3, [fp, #-20]
.L2:
ldr r2, [fp, #-20]
ldr r3, [fp, #-48]
cmp r2, r3
blt .L8
ldr r3, [fp, #-24]
ldr r2, [fp, #-40]
ldr r1, .L9+4
ldr r0, [fp, #-52]
bl sprintf
nop
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L10:
.align 2
.L9:
.word -1000
.word .LC0
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem43/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
@ link register save eliminated.
cmp r1, #0
bxle lr
sub r0, r0, #4
add r1, r0, r1, lsl #2
.L3:
ldr r3, [r0, #4]!
add r3, r3, #1
cmp r0, r1
str r3, [r0]
bne .L3
bx lr
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #20
str r0, [fp, #-16]
str r1, [fp, #-20]
mov r3, #0
str r3, [fp, #-8]
b .L2
.L3:
ldr r3, [fp, #-8]
lsl r3, r3, #2
ldr r2, [fp, #-16]
add r3, r2, r3
ldr r2, [r3]
ldr r3, [fp, #-8]
lsl r3, r3, #2
ldr r1, [fp, #-16]
add r3, r1, r3
add r2, r2, #1
str r2, [r3]
ldr r3, [fp, #-8]
add r3, r3, #1
str r3, [fp, #-8]
.L2:
ldr r2, [fp, #-8]
ldr r3, [fp, #-20]
cmp r2, r3
blt .L3
nop
nop
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem26/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.global __aeabi_idiv
.global __aeabi_idivmod
.global __aeabi_uidivmod
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
push {r4, r5, r6, r7, r8, r9, r10, lr}
mov r4, r0
mov r0, #256
mov r7, r1
bl malloc
mov r3, #0
cmp r4, #3
mov r8, r0
movgt r9, #2
str r3, [r7]
ble .L3
.L2:
mov r1, r9
mov r0, r4
bl __aeabi_idivmod
cmp r1, #0
bne .L6
ldr r5, [r7]
sub r6, r5, #-1073741823
add r6, r8, r6, lsl #2
add r5, r5, #1
.L4:
mov r0, r4
mov r1, r9
bl __aeabi_idiv
mov r1, r9
str r9, [r6, #4]!
mov r4, r0
bl __aeabi_idivmod
cmp r1, #0
mov r3, r5
add r5, r5, #1
beq .L4
str r3, [r7]
.L6:
add r9, r9, #1
mul r3, r9, r9
cmp r3, r4
ble .L2
.L3:
cmp r4, #1
ldrgt r3, [r7]
mov r0, r8
addgt r2, r3, #1
strgt r4, [r8, r3, lsl #2]
strgt r2, [r7]
pop {r4, r5, r6, r7, r8, r9, r10, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.global __aeabi_idiv
.global __aeabi_idivmod
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #16
str r0, [fp, #-16]
str r1, [fp, #-20]
mov r0, #256
bl malloc
mov r3, r0
str r3, [fp, #-8]
ldr r3, [fp, #-20]
mov r2, #0
str r2, [r3]
mov r3, #2
str r3, [fp, #-12]
b .L2
.L4:
ldr r1, [fp, #-12]
ldr r0, [fp, #-16]
bl __aeabi_idiv
mov r3, r0
str r3, [fp, #-16]
ldr r3, [fp, #-20]
ldr r3, [r3]
add r1, r3, #1
ldr r2, [fp, #-20]
str r1, [r2]
lsl r3, r3, #2
ldr r2, [fp, #-8]
add r3, r2, r3
ldr r2, [fp, #-12]
str r2, [r3]
.L3:
ldr r3, [fp, #-16]
ldr r1, [fp, #-12]
mov r0, r3
bl __aeabi_idivmod
mov r3, r1
cmp r3, #0
beq .L4
ldr r3, [fp, #-12]
add r3, r3, #1
str r3, [fp, #-12]
.L2:
ldr r3, [fp, #-12]
mov r2, r3
mul r2, r3, r2
mov r3, r2
ldr r2, [fp, #-16]
cmp r2, r3
bge .L3
ldr r3, [fp, #-16]
cmp r3, #1
ble .L6
ldr r3, [fp, #-20]
ldr r3, [r3]
add r1, r3, #1
ldr r2, [fp, #-20]
str r1, [r2]
lsl r3, r3, #2
ldr r2, [fp, #-8]
add r3, r2, r3
ldr r2, [fp, #-16]
str r2, [r3]
.L6:
ldr r3, [fp, #-8]
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem131/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
push {r4, r5, r6, lr}
add r4, r0, #1
mov r5, r0
lsl r0, r4, #2
bl malloc
mov r3, #1
cmp r5, #0
str r3, [r0]
popeq {r4, r5, r6, pc}
mov r3, #3
cmp r5, #1
str r3, [r0, #4]
pople {r4, r5, r6, pc}
mov r1, r0
mov r3, #2
.L6:
and r2, r3, #1
cmp r2, #0
asr r2, r3, #1
add r2, r2, #1
ldmne r1, {r2, ip}
addne r2, r2, ip
addne r2, r2, #1
add r3, r3, #1
addne r2, r2, r3, asr #1
cmp r4, r3
str r2, [r1, #8]
add r1, r1, #4
bne .L6
pop {r4, r5, r6, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #16
str r0, [fp, #-16]
ldr r3, [fp, #-16]
add r3, r3, #1
lsl r3, r3, #2
mov r0, r3
bl malloc
mov r3, r0
str r3, [fp, #-8]
ldr r3, [fp, #-8]
mov r2, #1
str r2, [r3]
ldr r3, [fp, #-16]
cmp r3, #0
bne .L2
ldr r3, [fp, #-8]
b .L3
.L2:
ldr r3, [fp, #-8]
add r3, r3, #4
mov r2, #3
str r2, [r3]
mov r3, #2
str r3, [fp, #-12]
b .L4
.L7:
ldr r3, [fp, #-12]
and r3, r3, #1
cmp r3, #0
bne .L5
ldr r3, [fp, #-12]
lsr r2, r3, #31
add r3, r2, r3
asr r3, r3, #1
mov r1, r3
ldr r3, [fp, #-12]
lsl r3, r3, #2
ldr r2, [fp, #-8]
add r3, r2, r3
add r2, r1, #1
str r2, [r3]
b .L6
.L5:
ldr r3, [fp, #-12]
sub r3, r3, #-1073741823
lsl r3, r3, #2
ldr r2, [fp, #-8]
add r3, r2, r3
ldr r2, [r3]
ldr r3, [fp, #-12]
sub r3, r3, #-1073741822
lsl r3, r3, #2
ldr r1, [fp, #-8]
add r3, r1, r3
ldr r3, [r3]
add r3, r2, r3
add r2, r3, #1
ldr r3, [fp, #-12]
add r3, r3, #1
lsr r1, r3, #31
add r3, r1, r3
asr r3, r3, #1
mov r0, r3
ldr r3, [fp, #-12]
lsl r3, r3, #2
ldr r1, [fp, #-8]
add r3, r1, r3
add r2, r2, r0
str r2, [r3]
.L6:
ldr r3, [fp, #-12]
add r3, r3, #1
str r3, [fp, #-12]
.L4:
ldr r2, [fp, #-12]
ldr r3, [fp, #-16]
cmp r2, r3
ble .L7
ldr r3, [fp, #-8]
.L3:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem90/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
ldrb r3, [r0] @ zero_extendqisi2
cmp r3, #0
beq .L9
push {r4, r5, lr}
ldr r4, .L13
sub lr, r1, #1
.L3:
mov ip, lr
sub r3, r3, #93
smull r2, r5, r4, r3
asr r2, r3, #31
rsb r2, r2, r5, asr #3
add r5, r2, r2, lsl #1
add r2, r2, r5, lsl #2
sub r3, r3, r2, lsl #1
add r3, r3, #97
strb r3, [lr, #1]!
ldrb r3, [r0, #1]! @ zero_extendqisi2
add r2, ip, #2
cmp r3, #0
sub r2, r2, r1
bne .L3
mov r3, #0
add r1, r1, r2
strb r3, [r1]
pop {r4, r5, pc}
.L9:
mov r3, #0
strb r3, [r1]
bx lr
.L14:
.align 2
.L13:
.word 1321528399
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #20
str r0, [fp, #-16]
str r1, [fp, #-20]
mov r3, #0
str r3, [fp, #-12]
b .L2
.L3:
ldr r3, [fp, #-12]
ldr r2, [fp, #-16]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
sub r1, r3, #93
ldr r3, .L4
smull r2, r3, r1, r3
asr r2, r3, #3
asr r3, r1, #31
sub r2, r2, r3
mov r3, r2
lsl r3, r3, #1
add r3, r3, r2
lsl r3, r3, #2
add r3, r3, r2
lsl r3, r3, #1
sub r2, r1, r3
add r3, r2, #97
str r3, [fp, #-8]
ldr r3, [fp, #-12]
ldr r2, [fp, #-20]
add r3, r2, r3
ldr r2, [fp, #-8]
and r2, r2, #255
strb r2, [r3]
ldr r3, [fp, #-12]
add r3, r3, #1
str r3, [fp, #-12]
.L2:
ldr r3, [fp, #-12]
ldr r2, [fp, #-16]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
bne .L3
ldr r3, [fp, #-12]
ldr r2, [fp, #-20]
add r3, r2, r3
mov r2, #0
strb r2, [r3]
nop
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.L5:
.align 2
.L4:
.word 1321528399
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem30/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
push {r4, r5, r6, r7, r8, r9, r10, lr}
mov r5, r1
mov r4, r0
mov r0, r2
mov r6, r3
mov r7, r2
bl strlen
lsl r10, r5, #2
mov r8, r0
mov r0, r10
bl malloc
cmp r5, #0
str r0, [r6]
ble .L5
mov r9, r0
mov r6, #0
sub r4, r4, #4
add r10, r4, r10
.L4:
ldr r5, [r4, #4]!
mov r2, r8
mov r0, r5
mov r1, r7
bl strncmp
cmp r0, #0
streq r5, [r9, r6, lsl #2]
addeq r6, r6, #1
cmp r4, r10
bne .L4
mov r0, r6
pop {r4, r5, r6, r7, r8, r9, r10, pc}
.L5:
mov r6, #0
mov r0, r6
pop {r4, r5, r6, r7, r8, r9, r10, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 32
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #32
str r0, [fp, #-24]
str r1, [fp, #-28]
str r2, [fp, #-32]
str r3, [fp, #-36]
ldr r0, [fp, #-32]
bl strlen
mov r3, r0
str r3, [fp, #-8]
ldr r3, [fp, #-28]
lsl r3, r3, #2
mov r0, r3
bl malloc
mov r3, r0
mov r2, r3
ldr r3, [fp, #-36]
str r2, [r3]
mov r3, #0
str r3, [fp, #-16]
mov r3, #0
str r3, [fp, #-12]
b .L2
.L4:
ldr r3, [fp, #-12]
lsl r3, r3, #2
ldr r2, [fp, #-24]
add r3, r2, r3
ldr r3, [r3]
ldr r2, [fp, #-8]
ldr r1, [fp, #-32]
mov r0, r3
bl strncmp
mov r3, r0
cmp r3, #0
bne .L3
ldr r3, [fp, #-12]
lsl r3, r3, #2
ldr r2, [fp, #-24]
add r2, r2, r3
ldr r3, [fp, #-36]
ldr r1, [r3]
ldr r3, [fp, #-16]
add r0, r3, #1
str r0, [fp, #-16]
lsl r3, r3, #2
add r3, r1, r3
ldr r2, [r2]
str r2, [r3]
.L3:
ldr r3, [fp, #-12]
add r3, r3, #1
str r3, [fp, #-12]
.L2:
ldr r2, [fp, #-12]
ldr r3, [fp, #-28]
cmp r2, r3
blt .L4
ldr r3, [fp, #-16]
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem164/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
cmp r1, r0
str lr, [sp, #-4]!
mov lr, #0
movlt ip, r0
movge ip, r1
movlt r0, r1
str lr, [r3]
.L5:
cmp r0, #9
bgt .L4
tst r0, #1
ldreq r1, [r3]
addeq lr, r1, #1
streq lr, [r3]
streq r0, [r2, r1, lsl #2]
.L4:
add r0, r0, #1
cmp ip, r0
bge .L5
ldr pc, [sp], #4
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 24
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #28
str r0, [fp, #-16]
str r1, [fp, #-20]
str r2, [fp, #-24]
str r3, [fp, #-28]
ldr r3, [fp, #-28]
mov r2, #0
str r2, [r3]
ldr r2, [fp, #-20]
ldr r3, [fp, #-16]
cmp r2, r3
bge .L2
ldr r3, [fp, #-16]
str r3, [fp, #-8]
ldr r3, [fp, #-20]
str r3, [fp, #-16]
ldr r3, [fp, #-8]
str r3, [fp, #-20]
.L2:
ldr r3, [fp, #-16]
str r3, [fp, #-12]
b .L3
.L5:
ldr r3, [fp, #-12]
cmp r3, #9
bgt .L4
ldr r3, [fp, #-12]
and r3, r3, #1
cmp r3, #0
bne .L4
ldr r3, [fp, #-28]
ldr r3, [r3]
add r1, r3, #1
ldr r2, [fp, #-28]
str r1, [r2]
lsl r3, r3, #2
ldr r2, [fp, #-24]
add r3, r2, r3
ldr r2, [fp, #-12]
str r2, [r3]
.L4:
ldr r3, [fp, #-12]
add r3, r3, #1
str r3, [fp, #-12]
.L3:
ldr r2, [fp, #-12]
ldr r3, [fp, #-20]
cmp r2, r3
ble .L5
nop
nop
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem95/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.global __aeabi_idivmod
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
cmp r1, #0
ble .L9
push {r4, r5, r6, r7, r8, lr}
sub r7, r0, #4
mov r6, #0
add r8, r7, r1, lsl #2
b .L7
.L3:
cmp r7, r8
beq .L25
.L7:
ldr r5, [r7, #4]!
cmp r5, #1
ble .L3
cmp r5, #3
ble .L4
tst r5, #1
beq .L3
mov r4, #2
b .L5
.L6:
mov r1, r4
mov r0, r5
bl __aeabi_idivmod
cmp r1, #0
beq .L3
.L5:
add r4, r4, #1
mul r3, r4, r4
cmp r3, r5
ble .L6
.L4:
cmp r6, r5
movlt r6, r5
cmp r7, r8
bne .L7
.L25:
cmp r6, #0
beq .L10
mov r0, #0
ldr r1, .L26
.L8:
umull r2, r3, r1, r6
lsr r3, r3, #3
add r2, r3, r3, lsl #2
sub r2, r6, r2, lsl #1
subs r6, r3, #0
add r0, r0, r2
bne .L8
pop {r4, r5, r6, r7, r8, pc}
.L9:
mov r0, #0
bx lr
.L10:
mov r0, r6
pop {r4, r5, r6, r7, r8, pc}
.L27:
.align 2
.L26:
.word -858993459
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.global __aeabi_idivmod
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 32
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #32
str r0, [fp, #-32]
str r1, [fp, #-36]
mov r3, #0
str r3, [fp, #-28]
mov r3, #0
str r3, [fp, #-24]
mov r3, #0
str r3, [fp, #-20]
b .L2
.L8:
ldr r3, [fp, #-20]
lsl r3, r3, #2
ldr r2, [fp, #-32]
add r3, r2, r3
ldr r3, [r3]
str r3, [fp, #-8]
ldr r3, [fp, #-8]
cmp r3, #1
ble .L3
mov r3, #1
str r3, [fp, #-16]
mov r3, #2
str r3, [fp, #-12]
b .L4
.L7:
ldr r3, [fp, #-8]
ldr r1, [fp, #-12]
mov r0, r3
bl __aeabi_idivmod
mov r3, r1
cmp r3, #0
bne .L5
mov r3, #0
str r3, [fp, #-16]
b .L6
.L5:
ldr r3, [fp, #-12]
add r3, r3, #1
str r3, [fp, #-12]
.L4:
ldr r3, [fp, #-12]
mov r2, r3
mul r2, r3, r2
mov r3, r2
ldr r2, [fp, #-8]
cmp r2, r3
bge .L7
.L6:
ldr r3, [fp, #-16]
cmp r3, #0
beq .L3
ldr r2, [fp, #-28]
ldr r3, [fp, #-8]
cmp r2, r3
movge r3, r2
movlt r3, r3
str r3, [fp, #-28]
.L3:
ldr r3, [fp, #-20]
add r3, r3, #1
str r3, [fp, #-20]
.L2:
ldr r2, [fp, #-20]
ldr r3, [fp, #-36]
cmp r2, r3
blt .L8
b .L9
.L10:
ldr r1, [fp, #-28]
ldr r3, .L12
smull r2, r3, r1, r3
asr r2, r3, #2
asr r3, r1, #31
sub r2, r2, r3
mov r3, r2
lsl r3, r3, #2
add r3, r3, r2
lsl r3, r3, #1
sub r2, r1, r3
ldr r3, [fp, #-24]
add r3, r3, r2
str r3, [fp, #-24]
ldr r3, [fp, #-28]
ldr r2, .L12
smull r1, r2, r3, r2
asr r2, r2, #2
asr r3, r3, #31
sub r3, r2, r3
str r3, [fp, #-28]
.L9:
ldr r3, [fp, #-28]
cmp r3, #0
bgt .L10
ldr r3, [fp, #-24]
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L13:
.align 2
.L12:
.word 1717986919
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem103/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
@ link register save eliminated.
mov r3, r0
cmp r1, r3
mov r0, r1
blt .L4
cmp r1, #0
and r2, r1, #1
rsblt r2, r2, #0
cmp r1, r3
beq .L6
cmp r2, #1
subeq r0, r1, #1
bx lr
.L6:
cmp r2, #1
movne r0, r1
mvneq r0, #0
bx lr
.L4:
mvn r0, #0
bx lr
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #12
str r0, [fp, #-8]
str r1, [fp, #-12]
ldr r2, [fp, #-12]
ldr r3, [fp, #-8]
cmp r2, r3
bge .L2
mvn r3, #0
b .L3
.L2:
ldr r2, [fp, #-12]
ldr r3, [fp, #-8]
cmp r2, r3
bne .L4
ldr r3, [fp, #-12]
cmp r3, #0
and r3, r3, #1
rsblt r3, r3, #0
cmp r3, #1
bne .L4
mvn r3, #0
b .L3
.L4:
ldr r3, [fp, #-12]
cmp r3, #0
and r3, r3, #1
rsblt r3, r3, #0
cmp r3, #1
bne .L5
ldr r3, [fp, #-12]
sub r3, r3, #1
b .L3
.L5:
ldr r3, [fp, #-12]
.L3:
mov r0, r3
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem40/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.global __aeabi_idivmod
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
push {r4, r5, r6, r7, r8, lr}
subs r8, r0, #0
ble .L8
mov r7, #0
mov r6, #2
mov r3, #1
.L7:
cmp r6, #3
mov r5, r6
add r6, r6, r3
ble .L3
tst r5, #1
beq .L4
mov r4, #2
b .L5
.L6:
mov r1, r4
mov r0, r5
bl __aeabi_idivmod
cmp r1, #0
beq .L4
.L5:
add r4, r4, #1
mul r3, r4, r4
cmp r3, r5
ble .L6
.L3:
add r7, r7, #1
cmp r8, r7
beq .L1
.L4:
cmp r8, r7
mov r3, r5
bgt .L7
.L8:
mov r5, #0
.L1:
mov r0, r5
pop {r4, r5, r6, r7, r8, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.global __aeabi_idivmod
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 32
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #32
str r0, [fp, #-32]
mov r3, #1
str r3, [fp, #-28]
mov r3, #2
str r3, [fp, #-24]
mov r3, #0
str r3, [fp, #-20]
b .L2
.L9:
ldr r2, [fp, #-28]
ldr r3, [fp, #-24]
add r3, r2, r3
str r3, [fp, #-28]
ldr r3, [fp, #-28]
str r3, [fp, #-8]
ldr r3, [fp, #-24]
str r3, [fp, #-28]
ldr r3, [fp, #-8]
str r3, [fp, #-24]
mov r3, #1
str r3, [fp, #-16]
mov r3, #2
str r3, [fp, #-12]
b .L3
.L6:
ldr r3, [fp, #-28]
ldr r1, [fp, #-12]
mov r0, r3
bl __aeabi_idivmod
mov r3, r1
cmp r3, #0
bne .L4
mov r3, #0
str r3, [fp, #-16]
b .L5
.L4:
ldr r3, [fp, #-12]
add r3, r3, #1
str r3, [fp, #-12]
.L3:
ldr r3, [fp, #-12]
mov r2, r3
mul r2, r3, r2
mov r3, r2
ldr r2, [fp, #-28]
cmp r2, r3
bge .L6
.L5:
ldr r3, [fp, #-16]
cmp r3, #0
beq .L7
ldr r3, [fp, #-20]
add r3, r3, #1
str r3, [fp, #-20]
.L7:
ldr r2, [fp, #-20]
ldr r3, [fp, #-32]
cmp r2, r3
bne .L2
ldr r3, [fp, #-28]
b .L8
.L2:
ldr r2, [fp, #-20]
ldr r3, [fp, #-32]
cmp r2, r3
blt .L9
mov r3, #0
.L8:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem60/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.global __aeabi_uidiv
.global __aeabi_idiv
.global __aeabi_uidivmod
.global __aeabi_idivmod
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
cmp r0, #3
push {r4, r5, r6, lr}
mov r4, r0
movgt r5, #2
ble .L3
.L2:
mov r1, r5
mov r0, r4
b .L10
.L4:
mov r0, r4
mov r1, r5
bl __aeabi_idiv
mov r1, r5
mov r4, r0
.L10:
bl __aeabi_idivmod
cmp r4, r5
movle r3, #0
movgt r3, #1
cmp r1, #0
movne r3, #0
cmp r3, #0
bne .L4
add r5, r5, #1
mul r3, r5, r5
cmp r3, r4
ble .L2
.L3:
mov r0, r4
pop {r4, r5, r6, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.global __aeabi_idiv
.global __aeabi_idivmod
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #16
str r0, [fp, #-16]
mov r3, #2
str r3, [fp, #-8]
b .L2
.L5:
ldr r1, [fp, #-8]
ldr r0, [fp, #-16]
bl __aeabi_idiv
mov r3, r0
str r3, [fp, #-16]
.L3:
ldr r3, [fp, #-16]
ldr r1, [fp, #-8]
mov r0, r3
bl __aeabi_idivmod
mov r3, r1
cmp r3, #0
bne .L4
ldr r2, [fp, #-16]
ldr r3, [fp, #-8]
cmp r2, r3
bgt .L5
.L4:
ldr r3, [fp, #-8]
add r3, r3, #1
str r3, [fp, #-8]
.L2:
ldr r3, [fp, #-8]
mov r2, r3
mul r2, r3, r2
mov r3, r2
ldr r2, [fp, #-16]
cmp r2, r3
bge .L3
ldr r3, [fp, #-16]
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem122/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
cmp r1, #0
ble .L5
mov r2, #0
str lr, [sp, #-4]!
mov lr, r0
mov r0, r2
sub r1, r1, #1
lsr ip, r1, #1
add ip, ip, #1
.L4:
ldr r1, [lr, r2, lsl #3]
add r2, r2, #1
cmp r1, #0
and r3, r1, #1
rsblt r3, r3, #0
cmp r3, #1
addeq r0, r0, r1
cmp r2, ip
bne .L4
ldr pc, [sp], #4
.L5:
mov r0, #0
bx lr
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #20
str r0, [fp, #-16]
str r1, [fp, #-20]
mov r3, #0
str r3, [fp, #-12]
mov r3, #0
str r3, [fp, #-8]
b .L2
.L4:
ldr r3, [fp, #-8]
lsl r3, r3, #3
ldr r2, [fp, #-16]
add r3, r2, r3
ldr r3, [r3]
cmp r3, #0
and r3, r3, #1
rsblt r3, r3, #0
cmp r3, #1
bne .L3
ldr r3, [fp, #-8]
lsl r3, r3, #3
ldr r2, [fp, #-16]
add r3, r2, r3
ldr r3, [r3]
ldr r2, [fp, #-12]
add r3, r2, r3
str r3, [fp, #-12]
.L3:
ldr r3, [fp, #-8]
add r3, r3, #1
str r3, [fp, #-8]
.L2:
ldr r3, [fp, #-8]
lsl r3, r3, #1
ldr r2, [fp, #-20]
cmp r2, r3
bgt .L4
ldr r3, [fp, #-12]
mov r0, r3
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem146/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.section .rodata.str1.4,"aMS",%progbits,1
.align 2
.LC0:
.ascii "%d\000"
.section .rodata.cst4,"aM",%progbits,4
.align 2
.LC1:
.word __stack_chk_guard
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 0, uses_anonymous_args = 0
push {r4, r5, r6, r7, r8, r9, r10, fp, lr}
ldr r3, .L21
lsl r4, r1, #2
mov r6, r1
sub sp, sp, #28
mov r8, r0
mov r0, r4
ldr r3, [r3]
str r3, [sp, #20]
mov r3,#0
bl malloc
cmp r6, #0
mov r7, r0
ble .L2
sub r5, r8, #4
ldr fp, .L21+4
add r10, r5, r4
sub r9, r0, #4
.L7:
ldr r1, [r5, #4]!
mov r3, fp
cmp r1, #0
rsblt r1, r1, #0
mov r2, #12
str r1, [sp]
add r0, sp, #8
mov r1, #1
bl __sprintf_chk
add r0, sp, #8
bl strlen
cmp r0, #1
mov r1, #0
bls .L3
add r3, sp, #8
add r0, r3, r0
add r3, sp, #9
.L4:
ldrb r2, [r3], #1 @ zero_extendqisi2
sub r2, r2, #48
cmp r0, r3
add r1, r1, r2
bne .L4
.L3:
ldr r2, [r5]
ldrb r3, [sp, #8] @ zero_extendqisi2
cmp r2, #0
sub r3, r3, #48
addgt r1, r1, r3
suble r1, r1, r3
cmp r5, r10
str r1, [r9, #4]!
bne .L7
mov r5, #0
sub ip, r4, #4
add ip, ip, r7
.L8:
cmp r6, #1
movne r2, r8
movne r3, r7
beq .L11
.L10:
ldr r0, [r3]
ldr r1, [r3, #4]!
cmp r0, r1
ldrgt r4, [r2, #4]
ldrgt lr, [r2]
strgt r0, [r3]
stmgt r2, {r4, lr}
strgt r1, [r3, #-4]
cmp ip, r3
add r2, r2, #4
bne .L10
.L11:
add r5, r5, #1
cmp r6, r5
bne .L8
.L2:
mov r0, r7
bl free
ldr r3, .L21
ldr r2, [r3]
ldr r3, [sp, #20]
eors r2, r3, r2
mov r3, #0
bne .L20
mov r0, r8
add sp, sp, #28
@ sp needed
pop {r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L20:
bl __stack_chk_fail
.L22:
.align 2
.L21:
.word .LC1
.word .LC0
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.section .rodata
.align 2
.LC0:
.ascii "%d\000"
.align 2
.LC1:
.word __stack_chk_guard
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 56
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #56
str r0, [fp, #-56]
str r1, [fp, #-60]
ldr r3, .L15
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
ldr r3, [fp, #-60]
lsl r3, r3, #2
mov r0, r3
bl malloc
mov r3, r0
str r3, [fp, #-32]
mov r3, #0
str r3, [fp, #-52]
b .L2
.L7:
ldr r3, [fp, #-52]
lsl r3, r3, #2
ldr r2, [fp, #-56]
add r3, r2, r3
ldr r3, [r3]
eor r2, r3, r3, asr #31
sub r2, r2, r3, asr #31
sub r3, fp, #20
ldr r1, .L15+4
mov r0, r3
bl sprintf
mov r3, #0
str r3, [fp, #-48]
sub r3, fp, #20
mov r0, r3
bl strlen
mov r3, r0
str r3, [fp, #-24]
mov r3, #1
str r3, [fp, #-44]
b .L3
.L4:
sub r2, fp, #20
ldr r3, [fp, #-44]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
sub r3, r3, #48
ldr r2, [fp, #-48]
add r3, r2, r3
str r3, [fp, #-48]
ldr r3, [fp, #-44]
add r3, r3, #1
str r3, [fp, #-44]
.L3:
ldr r2, [fp, #-44]
ldr r3, [fp, #-24]
cmp r2, r3
blt .L4
ldr r3, [fp, #-52]
lsl r3, r3, #2
ldr r2, [fp, #-56]
add r3, r2, r3
ldr r3, [r3]
cmp r3, #0
ble .L5
ldrb r3, [fp, #-20] @ zero_extendqisi2
sub r3, r3, #48
ldr r2, [fp, #-48]
add r3, r2, r3
str r3, [fp, #-48]
b .L6
.L5:
ldrb r3, [fp, #-20] @ zero_extendqisi2
sub r3, r3, #48
ldr r2, [fp, #-48]
sub r3, r2, r3
str r3, [fp, #-48]
.L6:
ldr r3, [fp, #-52]
lsl r3, r3, #2
ldr r2, [fp, #-32]
add r3, r2, r3
ldr r2, [fp, #-48]
str r2, [r3]
ldr r3, [fp, #-52]
add r3, r3, #1
str r3, [fp, #-52]
.L2:
ldr r2, [fp, #-52]
ldr r3, [fp, #-60]
cmp r2, r3
blt .L7
mov r3, #0
str r3, [fp, #-40]
b .L8
.L12:
mov r3, #1
str r3, [fp, #-36]
b .L9
.L11:
ldr r3, [fp, #-36]
sub r3, r3, #-1073741823
lsl r3, r3, #2
ldr r2, [fp, #-32]
add r3, r2, r3
ldr r2, [r3]
ldr r3, [fp, #-36]
lsl r3, r3, #2
ldr r1, [fp, #-32]
add r3, r1, r3
ldr r3, [r3]
cmp r2, r3
ble .L10
ldr r3, [fp, #-36]
lsl r3, r3, #2
ldr r2, [fp, #-32]
add r3, r2, r3
ldr r3, [r3]
str r3, [fp, #-28]
ldr r3, [fp, #-36]
sub r3, r3, #-1073741823
lsl r3, r3, #2
ldr r2, [fp, #-32]
add r2, r2, r3
ldr r3, [fp, #-36]
lsl r3, r3, #2
ldr r1, [fp, #-32]
add r3, r1, r3
ldr r2, [r2]
str r2, [r3]
ldr r3, [fp, #-36]
sub r3, r3, #-1073741823
lsl r3, r3, #2
ldr r2, [fp, #-32]
add r3, r2, r3
ldr r2, [fp, #-28]
str r2, [r3]
ldr r3, [fp, #-36]
lsl r3, r3, #2
ldr r2, [fp, #-56]
add r3, r2, r3
ldr r3, [r3]
str r3, [fp, #-28]
ldr r3, [fp, #-36]
sub r3, r3, #-1073741823
lsl r3, r3, #2
ldr r2, [fp, #-56]
add r2, r2, r3
ldr r3, [fp, #-36]
lsl r3, r3, #2
ldr r1, [fp, #-56]
add r3, r1, r3
ldr r2, [r2]
str r2, [r3]
ldr r3, [fp, #-36]
sub r3, r3, #-1073741823
lsl r3, r3, #2
ldr r2, [fp, #-56]
add r3, r2, r3
ldr r2, [fp, #-28]
str r2, [r3]
.L10:
ldr r3, [fp, #-36]
add r3, r3, #1
str r3, [fp, #-36]
.L9:
ldr r2, [fp, #-36]
ldr r3, [fp, #-60]
cmp r2, r3
blt .L11
ldr r3, [fp, #-40]
add r3, r3, #1
str r3, [fp, #-40]
.L8:
ldr r2, [fp, #-40]
ldr r3, [fp, #-60]
cmp r2, r3
blt .L12
ldr r0, [fp, #-32]
bl free
ldr r3, [fp, #-56]
ldr r2, .L15
ldr r1, [r2]
ldr r2, [fp, #-8]
eors r1, r2, r1
mov r2, #0
beq .L14
bl __stack_chk_fail
.L14:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L16:
.align 2
.L15:
.word .LC1
.word .LC0
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem157/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.section .rodata.str1.4,"aMS",%progbits,1
.align 2
.LC0:
.ascii "m\000"
.align 2
.LC1:
.ascii "cm\000"
.align 2
.LC2:
.ascii "d\000"
.align 2
.LC3:
.ascii "cd\000"
.align 2
.LC4:
.ascii "c\000"
.align 2
.LC5:
.ascii "xc\000"
.align 2
.LC6:
.ascii "l\000"
.align 2
.LC7:
.ascii "xl\000"
.align 2
.LC8:
.ascii "x\000"
.align 2
.LC9:
.ascii "ix\000"
.align 2
.LC10:
.ascii "v\000"
.align 2
.LC11:
.ascii "iv\000"
.align 2
.LC12:
.ascii "i\000"
.text
.section .rodata.cst4,"aM",%progbits,4
.align 2
.LC16:
.word __stack_chk_guard
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 112
@ frame_needed = 0, uses_anonymous_args = 0
push {r4, r5, r6, r7, r8, r9, lr}
mov r4, r0
sub sp, sp, #116
mov r7, r1
mov r6, #0
ldr ip, .L16
add r5, sp, #4
ldmia ip!, {r0, r1, r2, r3}
stmia r5!, {r0, r1, r2, r3}
ldmia ip!, {r0, r1, r2, r3}
stmia r5!, {r0, r1, r2, r3}
ldmia ip!, {r0, r1, r2, r3}
stmia r5!, {r0, r1, r2, r3}
ldr r3, [ip], #4
ldr r2, .L16+4
add lr, sp, #56
ldr r2, [r2]
str r2, [sp, #108]
mov r2,#0
str r3, [r5]
ldmia ip!, {r0, r1, r2, r3}
stmia lr!, {r0, r1, r2, r3}
ldmia ip!, {r0, r1, r2, r3}
stmia lr!, {r0, r1, r2, r3}
ldmia ip!, {r0, r1, r2, r3}
stmia lr!, {r0, r1, r2, r3}
ldr r3, [ip]
cmp r4, #0
strb r6, [r7]
str r3, [lr]
ble .L1
add r8, sp, #4
add r9, sp, #52
.L3:
ldr r5, [r9, #4]!
cmp r5, r4
addgt r8, r8, #4
bgt .L3
ldr r6, [r8]
.L4:
mov r1, r6
mov r0, r7
sub r4, r4, r5
bl strcat
cmp r4, r5
bge .L4
cmp r4, #0
add r8, r8, #4
bne .L3
.L1:
ldr r3, .L16+4
ldr r2, [r3]
ldr r3, [sp, #108]
eors r2, r3, r2
mov r3, #0
bne .L15
add sp, sp, #116
@ sp needed
pop {r4, r5, r6, r7, r8, r9, pc}
.L15:
bl __stack_chk_fail
.L17:
.align 2
.L16:
.word .LANCHOR0
.word .LC16
.size func0, .-func0
.section .rodata
.align 2
.set .LANCHOR0,. + 0
.LC15:
.word .LC0
.word .LC1
.word .LC2
.word .LC3
.word .LC4
.word .LC5
.word .LC6
.word .LC7
.word .LC8
.word .LC9
.word .LC10
.word .LC11
.word .LC12
.LC14:
.word 1000
.word 900
.word 500
.word 400
.word 100
.word 90
.word 50
.word 40
.word 10
.word 9
.word 5
.word 4
.word 1
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.section .rodata
.align 2
.LC0:
.ascii "m\000"
.align 2
.LC1:
.ascii "cm\000"
.align 2
.LC2:
.ascii "d\000"
.align 2
.LC3:
.ascii "cd\000"
.align 2
.LC4:
.ascii "c\000"
.align 2
.LC5:
.ascii "xc\000"
.align 2
.LC6:
.ascii "l\000"
.align 2
.LC7:
.ascii "xl\000"
.align 2
.LC8:
.ascii "x\000"
.align 2
.LC9:
.ascii "ix\000"
.align 2
.LC10:
.ascii "v\000"
.align 2
.LC11:
.ascii "iv\000"
.align 2
.LC12:
.ascii "i\000"
.text
.section .rodata
.align 2
.LC15:
.word .LC0
.word .LC1
.word .LC2
.word .LC3
.word .LC4
.word .LC5
.word .LC6
.word .LC7
.word .LC8
.word .LC9
.word .LC10
.word .LC11
.word .LC12
.align 2
.LC14:
.word 1000
.word 900
.word 500
.word 400
.word 100
.word 90
.word 50
.word 40
.word 10
.word 9
.word 5
.word 4
.word 1
.align 2
.LC16:
.word __stack_chk_guard
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 120
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #120
str r0, [fp, #-120]
str r1, [fp, #-124]
ldr r3, .L7
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
ldr r3, .L7+4
sub ip, fp, #112
mov lr, r3
ldmia lr!, {r0, r1, r2, r3}
stmia ip!, {r0, r1, r2, r3}
ldmia lr!, {r0, r1, r2, r3}
stmia ip!, {r0, r1, r2, r3}
ldmia lr!, {r0, r1, r2, r3}
stmia ip!, {r0, r1, r2, r3}
ldr r3, [lr]
str r3, [ip]
ldr r3, .L7+8
sub ip, fp, #60
mov lr, r3
ldmia lr!, {r0, r1, r2, r3}
stmia ip!, {r0, r1, r2, r3}
ldmia lr!, {r0, r1, r2, r3}
stmia ip!, {r0, r1, r2, r3}
ldmia lr!, {r0, r1, r2, r3}
stmia ip!, {r0, r1, r2, r3}
ldr r3, [lr]
str r3, [ip]
mov r3, #0
str r3, [fp, #-116]
ldr r3, [fp, #-124]
mov r2, #0
strb r2, [r3]
b .L2
.L4:
ldr r3, [fp, #-116]
lsl r3, r3, #2
sub r2, fp, #4
add r3, r2, r3
ldr r3, [r3, #-108]
mov r1, r3
ldr r0, [fp, #-124]
bl strcat
ldr r3, [fp, #-116]
lsl r3, r3, #2
sub r2, fp, #4
add r3, r2, r3
ldr r3, [r3, #-56]
ldr r2, [fp, #-120]
sub r3, r2, r3
str r3, [fp, #-120]
.L3:
ldr r3, [fp, #-116]
lsl r3, r3, #2
sub r2, fp, #4
add r3, r2, r3
ldr r3, [r3, #-56]
ldr r2, [fp, #-120]
cmp r2, r3
bge .L4
ldr r3, [fp, #-120]
cmp r3, #0
ble .L2
ldr r3, [fp, #-116]
add r3, r3, #1
str r3, [fp, #-116]
.L2:
ldr r3, [fp, #-120]
cmp r3, #0
bgt .L3
nop
ldr r3, .L7
ldr r2, [r3]
ldr r3, [fp, #-8]
eors r2, r3, r2
mov r3, #0
beq .L6
bl __stack_chk_fail
.L6:
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L8:
.align 2
.L7:
.word .LC16
.word .LC15
.word .LC14
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem91/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
cmp r1, #1
ble .L5
mov r3, r0
mvn r0, #-2147483648
mov ip, r0
sub r3, r3, #4
str lr, [sp, #-4]!
add lr, r3, r1, lsl #2
.L4:
ldr r2, [r3, #4]!
cmp r2, ip
movlt r0, ip
movlt ip, r2
blt .L3
movne r1, #1
moveq r1, #0
cmp r2, r0
movge r1, #0
andlt r1, r1, #1
cmp r1, #0
movne r0, r2
.L3:
cmp r3, lr
bne .L4
cmn r0, #-2147483647
mvneq r0, #0
ldr pc, [sp], #4
.L5:
mvn r0, #0
bx lr
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 24
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #28
str r0, [fp, #-24]
str r1, [fp, #-28]
ldr r3, [fp, #-28]
cmp r3, #1
bgt .L2
mvn r3, #0
b .L3
.L2:
mvn r3, #-2147483648
str r3, [fp, #-16]
mvn r3, #-2147483648
str r3, [fp, #-12]
mov r3, #0
str r3, [fp, #-8]
b .L4
.L7:
ldr r3, [fp, #-8]
lsl r3, r3, #2
ldr r2, [fp, #-24]
add r3, r2, r3
ldr r3, [r3]
ldr r2, [fp, #-16]
cmp r2, r3
ble .L5
ldr r3, [fp, #-16]
str r3, [fp, #-12]
ldr r3, [fp, #-8]
lsl r3, r3, #2
ldr r2, [fp, #-24]
add r3, r2, r3
ldr r3, [r3]
str r3, [fp, #-16]
b .L6
.L5:
ldr r3, [fp, #-8]
lsl r3, r3, #2
ldr r2, [fp, #-24]
add r3, r2, r3
ldr r3, [r3]
ldr r2, [fp, #-12]
cmp r2, r3
ble .L6
ldr r3, [fp, #-8]
lsl r3, r3, #2
ldr r2, [fp, #-24]
add r3, r2, r3
ldr r3, [r3]
ldr r2, [fp, #-16]
cmp r2, r3
beq .L6
ldr r3, [fp, #-8]
lsl r3, r3, #2
ldr r2, [fp, #-24]
add r3, r2, r3
ldr r3, [r3]
str r3, [fp, #-12]
.L6:
ldr r3, [fp, #-8]
add r3, r3, #1
str r3, [fp, #-8]
.L4:
ldr r2, [fp, #-8]
ldr r3, [fp, #-28]
cmp r2, r3
blt .L7
ldr r3, [fp, #-12]
cmn r3, #-2147483647
bne .L8
mvn r3, #0
b .L3
.L8:
ldr r3, [fp, #-12]
.L3:
mov r0, r3
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem19/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
push {r4, r5, r6, r7, r8, lr}
mov r6, r1
mov r4, r0
bl strlen
subs r5, r0, #0
beq .L1
mov r0, r6
bl strlen
mov r7, r0
subs r0, r5, r0
mov r5, #0
bmi .L1
add r8, r4, #1
add r8, r8, r0
.L4:
mov r0, r4
mov r2, r7
mov r1, r6
bl strncmp
add r4, r4, #1
cmp r0, #0
addeq r5, r5, #1
cmp r4, r8
bne .L4
.L1:
mov r0, r5
pop {r4, r5, r6, r7, r8, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 24
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #24
str r0, [fp, #-24]
str r1, [fp, #-28]
mov r3, #0
str r3, [fp, #-20]
ldr r0, [fp, #-24]
bl strlen
mov r3, r0
str r3, [fp, #-12]
ldr r0, [fp, #-28]
bl strlen
mov r3, r0
str r3, [fp, #-8]
ldr r3, [fp, #-12]
cmp r3, #0
bne .L2
mov r3, #0
b .L3
.L2:
mov r3, #0
str r3, [fp, #-16]
b .L4
.L6:
ldr r3, [fp, #-16]
ldr r2, [fp, #-24]
add r3, r2, r3
ldr r2, [fp, #-8]
ldr r1, [fp, #-28]
mov r0, r3
bl strncmp
mov r3, r0
cmp r3, #0
bne .L5
ldr r3, [fp, #-20]
add r3, r3, #1
str r3, [fp, #-20]
.L5:
ldr r3, [fp, #-16]
add r3, r3, #1
str r3, [fp, #-16]
.L4:
ldr r2, [fp, #-12]
ldr r3, [fp, #-8]
sub r3, r2, r3
ldr r2, [fp, #-16]
cmp r2, r3
ble .L6
ldr r3, [fp, #-20]
.L3:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem13/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.section .rodata.str1.4,"aMS",%progbits,1
.align 2
.LC0:
.ascii "\000"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
cmp r1, #0
push {r4, r5, r6, r7, r8, lr}
ble .L5
mov r5, #0
sub r4, r0, #4
ldr r7, .L9
add r8, r4, r1, lsl #2
.L4:
ldr r6, [r4, #4]!
mov r0, r6
bl strlen
cmp r0, r5
movgt r5, r0
movgt r7, r6
cmp r4, r8
bne .L4
mov r0, r7
pop {r4, r5, r6, r7, r8, pc}
.L5:
ldr r7, .L9
mov r0, r7
pop {r4, r5, r6, r7, r8, pc}
.L10:
.align 2
.L9:
.word .LC0
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.section .rodata
.align 2
.LC0:
.ascii "\000"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 24
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #24
str r0, [fp, #-24]
str r1, [fp, #-28]
ldr r3, .L6
str r3, [fp, #-20]
mov r3, #0
str r3, [fp, #-16]
mov r3, #0
str r3, [fp, #-12]
b .L2
.L4:
ldr r3, [fp, #-12]
lsl r3, r3, #2
ldr r2, [fp, #-24]
add r3, r2, r3
ldr r3, [r3]
mov r0, r3
bl strlen
mov r3, r0
str r3, [fp, #-8]
ldr r2, [fp, #-8]
ldr r3, [fp, #-16]
cmp r2, r3
ble .L3
ldr r3, [fp, #-12]
lsl r3, r3, #2
ldr r2, [fp, #-24]
add r3, r2, r3
ldr r3, [r3]
str r3, [fp, #-20]
ldr r3, [fp, #-8]
str r3, [fp, #-16]
.L3:
ldr r3, [fp, #-12]
add r3, r3, #1
str r3, [fp, #-12]
.L2:
ldr r2, [fp, #-12]
ldr r3, [fp, #-28]
cmp r2, r3
blt .L4
ldr r3, [fp, #-20]
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L7:
.align 2
.L6:
.word .LC0
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem121/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
push {r4, r5, r6, lr}
sub r6, r1, #1
cmp r6, #0
ble .L2
sub r5, r0, #4
add r5, r5, r1, lsl #2
.L3:
mov ip, r0
.L5:
ldr lr, [ip]
ldr r4, [ip, #4]!
cmp lr, r4
stmdagt ip, {r4, lr}
cmp ip, r5
bne .L5
subs r6, r6, #1
sub r5, r5, #4
bne .L3
.L2:
cmp r2, #0
pople {r4, r5, r6, pc}
sub r1, r1, r2
sub r1, r1, #-1073741823
sub r3, r3, #4
add r1, r0, r1, lsl #2
add r2, r3, r2, lsl #2
.L7:
ldr r0, [r1, #4]!
str r0, [r3, #4]!
cmp r2, r3
bne .L7
pop {r4, r5, r6, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 32
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #36
str r0, [fp, #-24]
str r1, [fp, #-28]
str r2, [fp, #-32]
str r3, [fp, #-36]
mov r3, #0
str r3, [fp, #-20]
b .L2
.L6:
mov r3, #0
str r3, [fp, #-16]
b .L3
.L5:
ldr r3, [fp, #-16]
lsl r3, r3, #2
ldr r2, [fp, #-24]
add r3, r2, r3
ldr r2, [r3]
ldr r3, [fp, #-16]
add r3, r3, #1
lsl r3, r3, #2
ldr r1, [fp, #-24]
add r3, r1, r3
ldr r3, [r3]
cmp r2, r3
ble .L4
ldr r3, [fp, #-16]
lsl r3, r3, #2
ldr r2, [fp, #-24]
add r3, r2, r3
ldr r3, [r3]
str r3, [fp, #-8]
ldr r3, [fp, #-16]
add r3, r3, #1
lsl r3, r3, #2
ldr r2, [fp, #-24]
add r2, r2, r3
ldr r3, [fp, #-16]
lsl r3, r3, #2
ldr r1, [fp, #-24]
add r3, r1, r3
ldr r2, [r2]
str r2, [r3]
ldr r3, [fp, #-16]
add r3, r3, #1
lsl r3, r3, #2
ldr r2, [fp, #-24]
add r3, r2, r3
ldr r2, [fp, #-8]
str r2, [r3]
.L4:
ldr r3, [fp, #-16]
add r3, r3, #1
str r3, [fp, #-16]
.L3:
ldr r2, [fp, #-28]
ldr r3, [fp, #-20]
sub r3, r2, r3
sub r3, r3, #1
ldr r2, [fp, #-16]
cmp r2, r3
blt .L5
ldr r3, [fp, #-20]
add r3, r3, #1
str r3, [fp, #-20]
.L2:
ldr r3, [fp, #-28]
sub r3, r3, #1
ldr r2, [fp, #-20]
cmp r2, r3
blt .L6
mov r3, #0
str r3, [fp, #-12]
b .L7
.L8:
ldr r2, [fp, #-28]
ldr r3, [fp, #-32]
sub r2, r2, r3
ldr r3, [fp, #-12]
add r3, r2, r3
lsl r3, r3, #2
ldr r2, [fp, #-24]
add r2, r2, r3
ldr r3, [fp, #-12]
lsl r3, r3, #2
ldr r1, [fp, #-36]
add r3, r1, r3
ldr r2, [r2]
str r2, [r3]
ldr r3, [fp, #-12]
add r3, r3, #1
str r3, [fp, #-12]
.L7:
ldr r2, [fp, #-12]
ldr r3, [fp, #-32]
cmp r2, r3
blt .L8
nop
nop
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem20/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.section .rodata.str1.4,"aMS",%progbits,1
.align 2
.LC0:
.ascii "zero\000"
.align 2
.LC1:
.ascii "one\000"
.align 2
.LC2:
.ascii "two\000"
.align 2
.LC3:
.ascii "three\000"
.align 2
.LC4:
.ascii "four\000"
.align 2
.LC5:
.ascii "five\000"
.align 2
.LC6:
.ascii "six\000"
.align 2
.LC7:
.ascii "seven\000"
.align 2
.LC8:
.ascii "eight\000"
.align 2
.LC9:
.ascii "nine\000"
.text
.section .rodata.cst4,"aM",%progbits,4
.align 2
.LC12:
.word __stack_chk_guard
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 96
@ frame_needed = 0, uses_anonymous_args = 0
push {r4, r5, r6, r7, r8, r9, r10, fp, lr}
ldr r3, .L30
sub sp, sp, #100
mov r6, r0
mov r2, #40
mov r1, #0
add r0, sp, #4
add r4, sp, #44
ldr r3, [r3]
str r3, [sp, #92]
mov r3,#0
bl memset
mov ip, r4
ldr r5, .L30+4
ldrb lr, [r6] @ zero_extendqisi2
ldmia r5!, {r0, r1, r2, r3}
stmia ip!, {r0, r1, r2, r3}
ldmia r5!, {r0, r1, r2, r3}
stmia ip!, {r0, r1, r2, r3}
ldm r5, {r0, r1}
cmp lr, #0
stm ip, {r0, r1}
beq .L2
mov r7, #0
.L9:
ands r3, lr, #223
moveq r8, #1
beq .L3
mov r1, r6
mov r3, #0
add r2, sp, #83
.L4:
strb lr, [r2, #1]!
ldrb lr, [r1, #1]! @ zero_extendqisi2
mov r8, r3
tst lr, #223
add r3, r3, #1
bne .L4
add r8, r8, #2
.L3:
mov r5, #0
add r2, sp, #96
add r3, r2, r3
add r9, sp, #40
strb r7, [r3, #-12]
.L7:
ldr r1, [r9, #4]!
add r0, sp, #84
bl strcmp
cmp r0, #0
beq .L27
add r5, r5, #1
cmp r5, #10
bne .L7
add r6, r6, r8
ldrb r3, [r6, #-1] @ zero_extendqisi2
cmp r3, #0
beq .L28
.L8:
ldrb lr, [r6] @ zero_extendqisi2
b .L9
.L27:
add r3, sp, #96
add r5, r3, r5, lsl #2
ldr r3, [r5, #-92]
add r6, r6, r8
add r3, r3, #1
str r3, [r5, #-92]
ldrb r3, [r6, #-1] @ zero_extendqisi2
cmp r3, #0
bne .L8
.L28:
ldr lr, [sp, #4]
.L2:
mov r9, r4
mov r0, #0
mov r7, #32
ldr r6, .L30+8
add r10, sp, #8
.L15:
cmp lr, #0
ble .L11
mov ip, #0
ldr r5, [r9]
rsb r8, r5, #1
.L16:
ldrb r3, [r5] @ zero_extendqisi2
cmp r3, #0
movne r2, r5
addne r1, r6, r0
addne fp, r8, r0
beq .L13
.L10:
strb r3, [r1], #1
add r0, fp, r2
ldrb r3, [r2, #1]! @ zero_extendqisi2
cmp r3, #0
bne .L10
.L13:
add ip, ip, #1
cmp ip, lr
strb r7, [r6, r0]
add r0, r0, #1
bne .L16
.L11:
cmp r10, r4
add r9, r9, #4
ldrne lr, [r10], #4
bne .L15
.L14:
cmp r0, #0
movne r3, #0
addne r0, r6, r0
strbne r3, [r0, #-1]
ldr r3, .L30
strbeq r0, [r6]
ldr r2, [r3]
ldr r3, [sp, #92]
eors r2, r3, r2
mov r3, #0
bne .L29
ldr r0, .L30+8
add sp, sp, #100
@ sp needed
pop {r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L29:
bl __stack_chk_fail
.L31:
.align 2
.L30:
.word .LC12
.word .LANCHOR0
.word .LANCHOR1
.size func0, .-func0
.section .rodata
.align 2
.set .LANCHOR0,. + 0
.LC11:
.word .LC0
.word .LC1
.word .LC2
.word .LC3
.word .LC4
.word .LC5
.word .LC6
.word .LC7
.word .LC8
.word .LC9
.bss
.align 2
.set .LANCHOR1,. + 0
.type out.5048, %object
.size out.5048, 1000
out.5048:
.space 1000
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.section .rodata
.align 2
.LC0:
.ascii "zero\000"
.align 2
.LC1:
.ascii "one\000"
.align 2
.LC2:
.ascii "two\000"
.align 2
.LC3:
.ascii "three\000"
.align 2
.LC4:
.ascii "four\000"
.align 2
.LC5:
.ascii "five\000"
.align 2
.LC6:
.ascii "six\000"
.align 2
.LC7:
.ascii "seven\000"
.align 2
.LC8:
.ascii "eight\000"
.align 2
.LC9:
.ascii "nine\000"
.text
.section .rodata
.align 2
.LC11:
.word .LC0
.word .LC1
.word .LC2
.word .LC3
.word .LC4
.word .LC5
.word .LC6
.word .LC7
.word .LC8
.word .LC9
.align 2
.LC12:
.word __stack_chk_guard
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 120
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #120
str r0, [fp, #-120]
ldr r3, .L21
ldr r3, [r3]
str r3, [fp, #-8]
mov r3,#0
sub r3, fp, #96
mov r2, #40
mov r1, #0
mov r0, r3
bl memset
ldr r3, .L21+4
sub ip, fp, #56
mov lr, r3
ldmia lr!, {r0, r1, r2, r3}
stmia ip!, {r0, r1, r2, r3}
ldmia lr!, {r0, r1, r2, r3}
stmia ip!, {r0, r1, r2, r3}
ldm lr, {r0, r1}
stm ip, {r0, r1}
mov r3, #0
str r3, [fp, #-112]
ldr r3, [fp, #-120]
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
beq .L2
.L10:
mov r3, #0
str r3, [fp, #-108]
b .L3
.L5:
ldr r3, [fp, #-108]
ldr r2, [fp, #-120]
add r3, r2, r3
ldrb r1, [r3] @ zero_extendqisi2
sub r2, fp, #16
ldr r3, [fp, #-108]
add r3, r2, r3
mov r2, r1
strb r2, [r3]
ldr r3, [fp, #-108]
add r3, r3, #1
str r3, [fp, #-108]
.L3:
ldr r3, [fp, #-108]
ldr r2, [fp, #-120]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #32
beq .L4
ldr r3, [fp, #-108]
ldr r2, [fp, #-120]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
bne .L5
.L4:
sub r2, fp, #16
ldr r3, [fp, #-108]
add r3, r2, r3
mov r2, #0
strb r2, [r3]
mov r3, #0
str r3, [fp, #-104]
b .L6
.L9:
ldr r3, [fp, #-104]
lsl r3, r3, #2
sub r2, fp, #4
add r3, r2, r3
ldr r2, [r3, #-52]
sub r3, fp, #16
mov r1, r2
mov r0, r3
bl strcmp
mov r3, r0
cmp r3, #0
bne .L7
ldr r3, [fp, #-104]
lsl r3, r3, #2
sub r2, fp, #4
add r3, r2, r3
ldr r3, [r3, #-92]
add r2, r3, #1
ldr r3, [fp, #-104]
lsl r3, r3, #2
sub r1, fp, #4
add r3, r1, r3
str r2, [r3, #-92]
b .L8
.L7:
ldr r3, [fp, #-104]
add r3, r3, #1
str r3, [fp, #-104]
.L6:
ldr r3, [fp, #-104]
cmp r3, #9
ble .L9
.L8:
ldr r3, [fp, #-108]
add r3, r3, #1
ldr r2, [fp, #-120]
add r3, r2, r3
str r3, [fp, #-120]
ldr r3, [fp, #-120]
sub r3, r3, #1
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
bne .L10
.L2:
mov r3, #0
str r3, [fp, #-108]
b .L11
.L16:
mov r3, #0
str r3, [fp, #-104]
b .L12
.L15:
mov r3, #0
str r3, [fp, #-100]
b .L13
.L14:
ldr r3, [fp, #-108]
lsl r3, r3, #2
sub r2, fp, #4
add r3, r2, r3
ldr r2, [r3, #-52]
ldr r3, [fp, #-100]
add r3, r2, r3
ldrb r1, [r3] @ zero_extendqisi2
ldr r2, .L21+8
ldr r3, [fp, #-112]
add r3, r2, r3
mov r2, r1
strb r2, [r3]
ldr r3, [fp, #-100]
add r3, r3, #1
str r3, [fp, #-100]
ldr r3, [fp, #-112]
add r3, r3, #1
str r3, [fp, #-112]
.L13:
ldr r3, [fp, #-108]
lsl r3, r3, #2
sub r2, fp, #4
add r3, r2, r3
ldr r2, [r3, #-52]
ldr r3, [fp, #-100]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #0
bne .L14
ldr r3, [fp, #-112]
add r2, r3, #1
str r2, [fp, #-112]
ldr r2, .L21+8
mov r1, #32
strb r1, [r2, r3]
ldr r3, [fp, #-104]
add r3, r3, #1
str r3, [fp, #-104]
.L12:
ldr r3, [fp, #-108]
lsl r3, r3, #2
sub r2, fp, #4
add r3, r2, r3
ldr r3, [r3, #-92]
ldr r2, [fp, #-104]
cmp r2, r3
blt .L15
ldr r3, [fp, #-108]
add r3, r3, #1
str r3, [fp, #-108]
.L11:
ldr r3, [fp, #-108]
cmp r3, #9
ble .L16
ldr r3, [fp, #-112]
cmp r3, #0
ble .L17
ldr r3, [fp, #-112]
sub r3, r3, #1
ldr r2, .L21+8
mov r1, #0
strb r1, [r2, r3]
b .L18
.L17:
ldr r3, .L21+8
mov r2, #0
strb r2, [r3]
.L18:
ldr r3, .L21+8
ldr r2, .L21
ldr r1, [r2]
ldr r2, [fp, #-8]
eors r1, r2, r1
mov r2, #0
beq .L20
bl __stack_chk_fail
.L20:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L22:
.align 2
.L21:
.word .LC12
.word .LC11
.word out.4787
.size func0, .-func0
.local out.4787
.comm out.4787,1000,4
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem104/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.section .rodata.str1.4,"aMS",%progbits,1
.align 2
.LC0:
.ascii "-1\000"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
cmp r0, r1
ble .L12
ldr r0, .L13
bx lr
.L12:
add r0, r0, r1
add r3, r0, r0, lsr #31
push {r4, lr}
mov r0, #33
asr r4, r3, #1
bl malloc
mov r3, #0
add r1, r0, #31
strb r3, [r0]
strb r3, [r0, #32]
.L3:
cmp r4, #0
and r2, r4, #1
rsblt r2, r2, #0
add r2, r2, #48
cmp r4, #1
add r3, r4, r4, lsr #31
mov r0, r1
asr r4, r3, #1
strb r2, [r1], #-1
bgt .L3
pop {r4, pc}
.L14:
.align 2
.L13:
.word .LC0
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.section .rodata
.align 2
.LC0:
.ascii "-1\000"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 24
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #24
str r0, [fp, #-24]
str r1, [fp, #-28]
ldr r2, [fp, #-24]
ldr r3, [fp, #-28]
cmp r2, r3
ble .L2
ldr r3, .L5
b .L3
.L2:
ldr r2, [fp, #-28]
ldr r3, [fp, #-24]
add r3, r2, r3
lsr r2, r3, #31
add r3, r2, r3
asr r3, r3, #1
str r3, [fp, #-16]
mov r0, #33
bl malloc
mov r3, r0
str r3, [fp, #-8]
ldr r3, [fp, #-8]
mov r2, #0
strb r2, [r3]
mov r3, #32
str r3, [fp, #-12]
ldr r3, [fp, #-12]
sub r2, r3, #1
str r2, [fp, #-12]
mov r2, r3
ldr r3, [fp, #-8]
add r3, r3, r2
mov r2, #0
strb r2, [r3]
.L4:
ldr r3, [fp, #-16]
cmp r3, #0
and r3, r3, #1
rsblt r3, r3, #0
and r2, r3, #255
ldr r3, [fp, #-12]
sub r1, r3, #1
str r1, [fp, #-12]
mov r1, r3
ldr r3, [fp, #-8]
add r3, r3, r1
add r2, r2, #48
and r2, r2, #255
strb r2, [r3]
ldr r3, [fp, #-16]
lsr r2, r3, #31
add r3, r2, r3
asr r3, r3, #1
str r3, [fp, #-16]
ldr r3, [fp, #-16]
cmp r3, #0
bgt .L4
ldr r3, [fp, #-12]
add r3, r3, #1
ldr r2, [fp, #-8]
add r3, r2, r3
.L3:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L6:
.align 2
.L5:
.word .LC0
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem74/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
cmp r1, #1
push {r4, lr}
add r4, r1, r1, lsr #31
ble .L5
mov r3, #0
mov r2, r0
mov r0, r3
add r1, r2, r1, lsl #2
asr r4, r4, #1
sub r2, r2, #4
.L4:
ldr lr, [r2, #4]!
ldr ip, [r1, #-4]!
add r3, r3, #1
cmp lr, ip
addne r0, r0, #1
cmp r3, r4
blt .L4
pop {r4, pc}
.L5:
mov r0, #0
pop {r4, pc}
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 16
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #20
str r0, [fp, #-16]
str r1, [fp, #-20]
mov r3, #0
str r3, [fp, #-12]
mov r3, #0
str r3, [fp, #-8]
b .L2
.L4:
ldr r3, [fp, #-8]
lsl r3, r3, #2
ldr r2, [fp, #-16]
add r3, r2, r3
ldr r2, [r3]
ldr r3, [fp, #-20]
sub r1, r3, #1
ldr r3, [fp, #-8]
sub r3, r1, r3
lsl r3, r3, #2
ldr r1, [fp, #-16]
add r3, r1, r3
ldr r3, [r3]
cmp r2, r3
beq .L3
ldr r3, [fp, #-12]
add r3, r3, #1
str r3, [fp, #-12]
.L3:
ldr r3, [fp, #-8]
add r3, r3, #1
str r3, [fp, #-8]
.L2:
ldr r3, [fp, #-20]
lsr r2, r3, #31
add r3, r2, r3
asr r3, r3, #1
mov r2, r3
ldr r3, [fp, #-8]
cmp r3, r2
blt .L4
ldr r3, [fp, #-12]
mov r0, r3
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem111/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.section .rodata.str1.4,"aMS",%progbits,1
.align 2
.LC0:
.ascii "NO\000"
.align 2
.LC1:
.ascii "YES\000"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
cmp r1, #0
push {r4, r5, lr}
ble .L2
mov lr, #0
sub ip, r0, #4
add r5, ip, r1, lsl #2
.L4:
ldr r4, [ip, #4]!
tst r4, #1
addeq lr, lr, #1
cmp ip, r5
bne .L4
cmp r3, #0
ble .L5
.L9:
mov ip, #0
sub r2, r2, #4
.L7:
ldr r4, [r2, #4]!
add ip, ip, #1
tst r4, #1
addeq lr, lr, #1
cmp r3, ip
bgt .L7
.L5:
ldr r3, .L16
cmp r1, lr
ldr r0, .L16+4
movgt r0, r3
pop {r4, r5, pc}
.L2:
cmp r3, #0
movgt lr, #0
bgt .L9
ldr r0, .L16+4
pop {r4, r5, pc}
.L17:
.align 2
.L16:
.word .LC0
.word .LC1
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.section .rodata
.align 2
.LC0:
.ascii "YES\000"
.align 2
.LC1:
.ascii "NO\000"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 32
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
add fp, sp, #0
sub sp, sp, #36
str r0, [fp, #-24]
str r1, [fp, #-28]
str r2, [fp, #-32]
str r3, [fp, #-36]
mov r3, #0
str r3, [fp, #-16]
mov r3, #0
str r3, [fp, #-12]
b .L2
.L4:
ldr r3, [fp, #-12]
lsl r3, r3, #2
ldr r2, [fp, #-24]
add r3, r2, r3
ldr r3, [r3]
and r3, r3, #1
cmp r3, #0
bne .L3
ldr r3, [fp, #-16]
add r3, r3, #1
str r3, [fp, #-16]
.L3:
ldr r3, [fp, #-12]
add r3, r3, #1
str r3, [fp, #-12]
.L2:
ldr r2, [fp, #-12]
ldr r3, [fp, #-28]
cmp r2, r3
blt .L4
mov r3, #0
str r3, [fp, #-8]
b .L5
.L7:
ldr r3, [fp, #-8]
lsl r3, r3, #2
ldr r2, [fp, #-32]
add r3, r2, r3
ldr r3, [r3]
and r3, r3, #1
cmp r3, #0
bne .L6
ldr r3, [fp, #-16]
add r3, r3, #1
str r3, [fp, #-16]
.L6:
ldr r3, [fp, #-8]
add r3, r3, #1
str r3, [fp, #-8]
.L5:
ldr r2, [fp, #-8]
ldr r3, [fp, #-36]
cmp r2, r3
blt .L7
ldr r2, [fp, #-16]
ldr r3, [fp, #-28]
cmp r2, r3
blt .L8
ldr r3, .L10
b .L9
.L8:
ldr r3, .L10+4
.L9:
mov r0, r3
add sp, fp, #0
@ sp needed
ldr fp, [sp], #4
bx lr
.L11:
.align 2
.L10:
.word .LC0
.word .LC1
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
eval/problem142/code.c | .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.section .rodata.str1.4,"aMS",%progbits,1
.align 2
.LC0:
.ascii "No\000"
.align 2
.LC1:
.ascii "Yes\000"
.align 2
.LC2:
.ascii ".txt\000"
.align 2
.LC3:
.ascii ".exe\000"
.align 2
.LC4:
.ascii ".dll\000"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
push {r4, r5, r6, lr}
mov r5, r0
bl strlen
cmp r0, #4
bls .L9
ldrb r2, [r5] @ zero_extendqisi2
sub r3, r2, #65
cmp r3, #57
movls r3, #0
movhi r3, #1
sub r2, r2, #91
cmp r2, #5
orrls r3, r3, #1
cmp r3, #0
beq .L20
.L9:
ldr r0, .L22
pop {r4, r5, r6, pc}
.L20:
sub r6, r0, #4
add r6, r5, r6
mov r4, r0
ldr r1, .L22+4
mov r0, r6
bl strcmp
cmp r0, #0
bne .L21
.L3:
mov lr, #0
mov ip, lr
sub r2, r5, #1
.L6:
mov r3, r2
ldrb r1, [r2, #1]! @ zero_extendqisi2
sub r0, r1, #48
cmp r0, #9
addls ip, ip, #1
bls .L5
cmp r1, #46
addeq lr, lr, #1
.L5:
add r3, r3, #2
sub r3, r3, r5
cmp r3, r4
blt .L6
cmp ip, #3
cmple lr, #1
ldr r3, .L22
ldr r0, .L22+8
movne r0, r3
pop {r4, r5, r6, pc}
.L21:
mov r0, r6
ldr r1, .L22+12
bl strcmp
cmp r0, #0
beq .L3
mov r0, r6
ldr r1, .L22+16
bl strcmp
cmp r0, #0
beq .L3
b .L9
.L23:
.align 2
.L22:
.word .LC0
.word .LC2
.word .LC1
.word .LC3
.word .LC4
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
| .arch armv5t
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "code.c"
.text
.section .rodata
.align 2
.LC0:
.ascii "No\000"
.align 2
.LC1:
.ascii ".txt\000"
.align 2
.LC2:
.ascii ".exe\000"
.align 2
.LC3:
.ascii ".dll\000"
.align 2
.LC4:
.ascii "Yes\000"
.text
.align 2
.global func0
.syntax unified
.arm
.fpu softvfp
.type func0, %function
func0:
@ args = 0, pretend = 0, frame = 32
@ frame_needed = 1, uses_anonymous_args = 0
push {fp, lr}
add fp, sp, #4
sub sp, sp, #32
str r0, [fp, #-32]
mov r3, #0
str r3, [fp, #-24]
mov r3, #0
str r3, [fp, #-20]
ldr r0, [fp, #-32]
bl strlen
mov r3, r0
str r3, [fp, #-12]
ldr r3, [fp, #-12]
cmp r3, #4
bgt .L2
ldr r3, .L14
b .L3
.L2:
ldr r3, [fp, #-32]
ldrb r3, [r3]
strb r3, [fp, #-25]
ldrb r3, [fp, #-25] @ zero_extendqisi2
cmp r3, #64
bls .L4
ldrb r3, [fp, #-25] @ zero_extendqisi2
cmp r3, #90
bls .L5
ldrb r3, [fp, #-25] @ zero_extendqisi2
cmp r3, #96
bls .L4
.L5:
ldrb r3, [fp, #-25] @ zero_extendqisi2
cmp r3, #122
bls .L6
.L4:
ldr r3, .L14
b .L3
.L6:
ldr r3, [fp, #-12]
sub r3, r3, #4
ldr r2, [fp, #-32]
add r3, r2, r3
str r3, [fp, #-8]
ldr r1, .L14+4
ldr r0, [fp, #-8]
bl strcmp
mov r3, r0
cmp r3, #0
beq .L7
ldr r1, .L14+8
ldr r0, [fp, #-8]
bl strcmp
mov r3, r0
cmp r3, #0
beq .L7
ldr r1, .L14+12
ldr r0, [fp, #-8]
bl strcmp
mov r3, r0
cmp r3, #0
beq .L7
ldr r3, .L14
b .L3
.L7:
mov r3, #0
str r3, [fp, #-16]
b .L8
.L11:
ldr r3, [fp, #-16]
ldr r2, [fp, #-32]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #47
bls .L9
ldr r3, [fp, #-16]
ldr r2, [fp, #-32]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #57
bhi .L9
ldr r3, [fp, #-24]
add r3, r3, #1
str r3, [fp, #-24]
.L9:
ldr r3, [fp, #-16]
ldr r2, [fp, #-32]
add r3, r2, r3
ldrb r3, [r3] @ zero_extendqisi2
cmp r3, #46
bne .L10
ldr r3, [fp, #-20]
add r3, r3, #1
str r3, [fp, #-20]
.L10:
ldr r3, [fp, #-16]
add r3, r3, #1
str r3, [fp, #-16]
.L8:
ldr r2, [fp, #-16]
ldr r3, [fp, #-12]
cmp r2, r3
blt .L11
ldr r3, [fp, #-24]
cmp r3, #3
bgt .L12
ldr r3, [fp, #-20]
cmp r3, #1
beq .L13
.L12:
ldr r3, .L14
b .L3
.L13:
ldr r3, .L14+16
.L3:
mov r0, r3
sub sp, fp, #4
@ sp needed
pop {fp, pc}
.L15:
.align 2
.L14:
.word .LC0
.word .LC1
.word .LC2
.word .LC3
.word .LC4
.size func0, .-func0
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
.section .note.GNU-stack,"",%progbits
|
Subsets and Splits