filename
stringlengths 10
11
| arm64-apple-macos
stringlengths 1.63k
25.8k
| alignments_arm64-apple-macos
sequencelengths 2
2
| x86_64-pc-linux-gnu
stringlengths 1.46k
26.2k
| alignments_x86_64-pc-linux-gnu
sequencelengths 2
2
|
---|---|---|---|---|
problem12.c | .section __TEXT,__text,regular,pure_instructions
.build_version macos, 12, 0 sdk_version 12, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
mov x8, #1
str x8, [sp, #16]
str x8, [sp, #8]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x0, [sp, #8]
bl _divisor_count
subs w8, w0, #500
b.hs LBB0_3
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #16]
add x9, x8, #1
str x9, [sp, #16]
ldr x8, [sp, #8]
add x8, x8, x9
str x8, [sp, #8]
b LBB0_1
LBB0_3:
ldr x8, [sp, #8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
mov x9, sp
str x8, [x9]
bl _printf
mov w0, #0
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function divisor_count
_divisor_count: ; @divisor_count
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, #24]
mov w8, #1
str w8, [sp, #20]
mov x8, #2
str x8, [sp, #8]
b LBB1_1
LBB1_1: ; =>This Loop Header: Depth=1
; Child Loop BB1_3 Depth 2
ldr x8, [sp, #8]
ldr x9, [sp, #24]
subs x8, x8, x9
b.hi LBB1_7
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
str wzr, [sp, #4]
b LBB1_3
LBB1_3: ; Parent Loop BB1_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr x8, [sp, #24]
ldr x10, [sp, #8]
udiv x9, x8, x10
mul x9, x9, x10
subs x8, x8, x9
cbnz x8, LBB1_5
b LBB1_4
LBB1_4: ; in Loop: Header=BB1_3 Depth=2
ldr w8, [sp, #4]
add w8, w8, #1
str w8, [sp, #4]
ldr x9, [sp, #8]
ldr x8, [sp, #24]
udiv x8, x8, x9
str x8, [sp, #24]
b LBB1_3
LBB1_5: ; in Loop: Header=BB1_1 Depth=1
ldr w8, [sp, #4]
add w9, w8, #1
ldr w8, [sp, #20]
mul w8, w8, w9
str w8, [sp, #20]
b LBB1_6
LBB1_6: ; in Loop: Header=BB1_1 Depth=1
ldr x8, [sp, #8]
add x8, x8, #1
str x8, [sp, #8]
b LBB1_1
LBB1_7:
ldr w0, [sp, #20]
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%lu\n"
.subsections_via_symbols
| [
222,
181
] | .text
.file "problem12.c"
.globl main # -- Begin function main
.p2align 4, 0x90
.type main,@function
main: # @main
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movl $0, -4(%rbp)
movq $1, -16(%rbp)
movq $1, -24(%rbp)
.LBB0_1: # =>This Inner Loop Header: Depth=1
movq -24(%rbp), %rdi
callq divisor_count
cmpl $500, %eax # imm = 0x1F4
jae .LBB0_3
# %bb.2: # in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
addq $1, %rax
movq %rax, -16(%rbp)
addq -24(%rbp), %rax
movq %rax, -24(%rbp)
jmp .LBB0_1
.LBB0_3:
movq -24(%rbp), %rsi
leaq .L.str(%rip), %rdi
movb $0, %al
callq printf@PLT
xorl %eax, %eax
addq $32, %rsp
popq %rbp
.cfi_def_cfa %rsp, 8
retq
.Lfunc_end0:
.size main, .Lfunc_end0-main
.cfi_endproc
# -- End function
.p2align 4, 0x90 # -- Begin function divisor_count
.type divisor_count,@function
divisor_count: # @divisor_count
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rdi, -8(%rbp)
movl $1, -12(%rbp)
movq $2, -24(%rbp)
.LBB1_1: # =>This Loop Header: Depth=1
# Child Loop BB1_3 Depth 2
movq -24(%rbp), %rax
cmpq -8(%rbp), %rax
ja .LBB1_7
# %bb.2: # in Loop: Header=BB1_1 Depth=1
movl $0, -28(%rbp)
.LBB1_3: # Parent Loop BB1_1 Depth=1
# => This Inner Loop Header: Depth=2
movq -8(%rbp), %rax
xorl %ecx, %ecx
movl %ecx, %edx
divq -24(%rbp)
cmpq $0, %rdx
jne .LBB1_5
# %bb.4: # in Loop: Header=BB1_3 Depth=2
movl -28(%rbp), %eax
addl $1, %eax
movl %eax, -28(%rbp)
movq -24(%rbp), %rcx
movq -8(%rbp), %rax
xorl %edx, %edx
# kill: def $rdx killed $edx
divq %rcx
movq %rax, -8(%rbp)
jmp .LBB1_3
.LBB1_5: # in Loop: Header=BB1_1 Depth=1
movl -28(%rbp), %eax
addl $1, %eax
imull -12(%rbp), %eax
movl %eax, -12(%rbp)
# %bb.6: # in Loop: Header=BB1_1 Depth=1
movq -24(%rbp), %rax
addq $1, %rax
movq %rax, -24(%rbp)
jmp .LBB1_1
.LBB1_7:
movl -12(%rbp), %eax
popq %rbp
.cfi_def_cfa %rsp, 8
retq
.Lfunc_end1:
.size divisor_count, .Lfunc_end1-divisor_count
.cfi_endproc
# -- End function
.type .L.str,@object # @.str
.section .rodata.str1.1,"aMS",@progbits,1
.L.str:
.asciz "%lu\n"
.size .L.str, 5
.ident "Ubuntu clang version 14.0.0-1ubuntu1.1"
.section ".note.GNU-stack","",@progbits
.addrsig
.addrsig_sym divisor_count
.addrsig_sym printf
| [
441,
345
] |
problem7.c | .section __TEXT,__text,regular,pure_instructions
.build_version macos, 12, 0 sdk_version 12, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #80
stp x29, x30, [sp, #64] ; 16-byte Folded Spill
add x29, sp, #64
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
stur wzr, [x29, #-28]
mov x8, #16960
movk x8, #15, lsl #16
str x8, [sp, #24]
mov w8, #10001
str w8, [sp, #20]
ldr x0, [sp, #24]
mov x1, #1
bl _calloc
stur x0, [x29, #-16]
mov x8, #2
stur x8, [x29, #-24]
b LBB0_1
LBB0_1: ; =>This Loop Header: Depth=1
; Child Loop BB0_6 Depth 2
ldur x8, [x29, #-24]
ldr x9, [sp, #24]
subs x8, x8, x9
b.hs LBB0_12
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-16]
ldur x9, [x29, #-24]
add x8, x8, x9
ldrb w8, [x8]
cbnz w8, LBB0_10
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-28]
add w8, w8, #1
stur w8, [x29, #-28]
ldur w8, [x29, #-28]
mov w9, #10001
subs w8, w8, w9
b.ne LBB0_5
b LBB0_4
LBB0_4:
ldur x8, [x29, #-24]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
mov x9, sp
str x8, [x9]
bl _printf
b LBB0_12
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-24]
lsl x8, x8, #1
str x8, [sp, #8]
b LBB0_6
LBB0_6: ; Parent Loop BB0_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr x8, [sp, #8]
ldr x9, [sp, #24]
subs x8, x8, x9
b.hs LBB0_9
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_6 Depth=2
ldur x8, [x29, #-16]
ldr x9, [sp, #8]
add x9, x8, x9
mov w8, #1
strb w8, [x9]
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_6 Depth=2
ldur x9, [x29, #-24]
ldr x8, [sp, #8]
add x8, x8, x9
str x8, [sp, #8]
b LBB0_6
LBB0_9: ; in Loop: Header=BB0_1 Depth=1
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_1 Depth=1
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-24]
add x8, x8, #1
stur x8, [x29, #-24]
b LBB0_1
LBB0_12:
ldur x0, [x29, #-16]
bl _free
mov w0, #0
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%lu\n"
.subsections_via_symbols
| [
222,
180
] | .text
.file "problem7.c"
.globl main # -- Begin function main
.p2align 4, 0x90
.type main,@function
main: # @main
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $64, %rsp
movl $0, -4(%rbp)
movl $0, -28(%rbp)
movq $1000000, -40(%rbp) # imm = 0xF4240
movl $10001, -44(%rbp) # imm = 0x2711
movq -40(%rbp), %rdi
movl $1, %esi
callq calloc@PLT
movq %rax, -16(%rbp)
movq $2, -24(%rbp)
.LBB0_1: # =>This Loop Header: Depth=1
# Child Loop BB0_6 Depth 2
movq -24(%rbp), %rax
cmpq -40(%rbp), %rax
jae .LBB0_12
# %bb.2: # in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
movq -24(%rbp), %rcx
cmpb $0, (%rax,%rcx)
jne .LBB0_10
# %bb.3: # in Loop: Header=BB0_1 Depth=1
movl -28(%rbp), %eax
addl $1, %eax
movl %eax, -28(%rbp)
cmpl $10001, -28(%rbp) # imm = 0x2711
jne .LBB0_5
# %bb.4:
movq -24(%rbp), %rsi
leaq .L.str(%rip), %rdi
movb $0, %al
callq printf@PLT
jmp .LBB0_12
.LBB0_5: # in Loop: Header=BB0_1 Depth=1
movq -24(%rbp), %rax
shlq $1, %rax
movq %rax, -56(%rbp)
.LBB0_6: # Parent Loop BB0_1 Depth=1
# => This Inner Loop Header: Depth=2
movq -56(%rbp), %rax
cmpq -40(%rbp), %rax
jae .LBB0_9
# %bb.7: # in Loop: Header=BB0_6 Depth=2
movq -16(%rbp), %rax
movq -56(%rbp), %rcx
movb $1, (%rax,%rcx)
# %bb.8: # in Loop: Header=BB0_6 Depth=2
movq -24(%rbp), %rax
addq -56(%rbp), %rax
movq %rax, -56(%rbp)
jmp .LBB0_6
.LBB0_9: # in Loop: Header=BB0_1 Depth=1
jmp .LBB0_10
.LBB0_10: # in Loop: Header=BB0_1 Depth=1
jmp .LBB0_11
.LBB0_11: # in Loop: Header=BB0_1 Depth=1
movq -24(%rbp), %rax
addq $1, %rax
movq %rax, -24(%rbp)
jmp .LBB0_1
.LBB0_12:
movq -16(%rbp), %rdi
callq free@PLT
xorl %eax, %eax
addq $64, %rsp
popq %rbp
.cfi_def_cfa %rsp, 8
retq
.Lfunc_end0:
.size main, .Lfunc_end0-main
.cfi_endproc
# -- End function
.type .L.str,@object # @.str
.section .rodata.str1.1,"aMS",@progbits,1
.L.str:
.asciz "%lu\n"
.size .L.str, 5
.ident "Ubuntu clang version 14.0.0-1ubuntu1.1"
.section ".note.GNU-stack","",@progbits
.addrsig
.addrsig_sym calloc
.addrsig_sym printf
.addrsig_sym free
| [
429,
344
] |
problem10.c | .section __TEXT,__text,regular,pure_instructions
.build_version macos, 12, 0 sdk_version 12, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
mov x8, #33920
movk x8, #30, lsl #16
str x8, [sp, #16]
str xzr, [sp, #8]
ldr x0, [sp, #16]
mov x1, #1
bl _calloc
stur x0, [x29, #-16]
mov w8, #2
stur w8, [x29, #-20]
b LBB0_1
LBB0_1: ; =>This Loop Header: Depth=1
; Child Loop BB0_4 Depth 2
ldur w8, [x29, #-20]
; kill: def $x8 killed $w8
ldr x9, [sp, #16]
subs x8, x8, x9
b.hs LBB0_10
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-16]
ldur w9, [x29, #-20]
; kill: def $x9 killed $w9
add x8, x8, x9
ldrb w8, [x8]
cbnz w8, LBB0_8
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-20]
mov x9, x8
ldr x8, [sp, #8]
add x8, x8, x9
str x8, [sp, #8]
ldur w8, [x29, #-20]
lsl w8, w8, #1
str w8, [sp, #24]
b LBB0_4
LBB0_4: ; Parent Loop BB0_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #24]
; kill: def $x8 killed $w8
ldr x9, [sp, #16]
subs x8, x8, x9
b.hs LBB0_7
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_4 Depth=2
ldur x8, [x29, #-16]
ldr w9, [sp, #24]
; kill: def $x9 killed $w9
add x9, x8, x9
mov w8, #1
strb w8, [x9]
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_4 Depth=2
ldur w9, [x29, #-20]
ldr w8, [sp, #24]
add w8, w8, w9
str w8, [sp, #24]
b LBB0_4
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_1 Depth=1
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-20]
add w8, w8, #1
stur w8, [x29, #-20]
b LBB0_1
LBB0_10:
ldur x0, [x29, #-16]
bl _free
ldr x8, [sp, #8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
mov x9, sp
str x8, [x9]
bl _printf
mov w0, #0
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%llu\n"
.subsections_via_symbols
| [
222,
181
] | .text
.file "problem10.c"
.globl main # -- Begin function main
.p2align 4, 0x90
.type main,@function
main: # @main
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movl $0, -4(%rbp)
movq $2000000, -32(%rbp) # imm = 0x1E8480
movq $0, -40(%rbp)
movq -32(%rbp), %rdi
movl $1, %esi
callq calloc@PLT
movq %rax, -16(%rbp)
movl $2, -20(%rbp)
.LBB0_1: # =>This Loop Header: Depth=1
# Child Loop BB0_4 Depth 2
movl -20(%rbp), %eax
# kill: def $rax killed $eax
cmpq -32(%rbp), %rax
jae .LBB0_10
# %bb.2: # in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
movl -20(%rbp), %ecx
# kill: def $rcx killed $ecx
cmpb $0, (%rax,%rcx)
jne .LBB0_8
# %bb.3: # in Loop: Header=BB0_1 Depth=1
movl -20(%rbp), %eax
# kill: def $rax killed $eax
addq -40(%rbp), %rax
movq %rax, -40(%rbp)
movl -20(%rbp), %eax
shll $1, %eax
movl %eax, -24(%rbp)
.LBB0_4: # Parent Loop BB0_1 Depth=1
# => This Inner Loop Header: Depth=2
movl -24(%rbp), %eax
# kill: def $rax killed $eax
cmpq -32(%rbp), %rax
jae .LBB0_7
# %bb.5: # in Loop: Header=BB0_4 Depth=2
movq -16(%rbp), %rax
movl -24(%rbp), %ecx
# kill: def $rcx killed $ecx
movb $1, (%rax,%rcx)
# %bb.6: # in Loop: Header=BB0_4 Depth=2
movl -20(%rbp), %eax
addl -24(%rbp), %eax
movl %eax, -24(%rbp)
jmp .LBB0_4
.LBB0_7: # in Loop: Header=BB0_1 Depth=1
jmp .LBB0_8
.LBB0_8: # in Loop: Header=BB0_1 Depth=1
jmp .LBB0_9
.LBB0_9: # in Loop: Header=BB0_1 Depth=1
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp .LBB0_1
.LBB0_10:
movq -16(%rbp), %rdi
callq free@PLT
movq -40(%rbp), %rsi
leaq .L.str(%rip), %rdi
movb $0, %al
callq printf@PLT
xorl %eax, %eax
addq $48, %rsp
popq %rbp
.cfi_def_cfa %rsp, 8
retq
.Lfunc_end0:
.size main, .Lfunc_end0-main
.cfi_endproc
# -- End function
.type .L.str,@object # @.str
.section .rodata.str1.1,"aMS",@progbits,1
.L.str:
.asciz "%llu\n"
.size .L.str, 6
.ident "Ubuntu clang version 14.0.0-1ubuntu1.1"
.section ".note.GNU-stack","",@progbits
.addrsig
.addrsig_sym calloc
.addrsig_sym free
.addrsig_sym printf
| [
468,
345
] |
problem17.c | .section __TEXT,__text,regular,pure_instructions
.build_version macos, 12, 0 sdk_version 12, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #192
stp x29, x30, [sp, #176] ; 16-byte Folded Spill
add x29, sp, #176
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
str wzr, [sp, #44]
sub x0, x29, #48
adrp x1, l___const.main.s1@PAGE
add x1, x1, l___const.main.s1@PAGEOFF
mov x2, #40
str x2, [sp, #8] ; 8-byte Folded Spill
bl _memcpy
ldr x2, [sp, #8] ; 8-byte Folded Reload
add x0, sp, #88
adrp x1, l___const.main.s2@PAGE
add x1, x1, l___const.main.s2@PAGEOFF
bl _memcpy
ldr x2, [sp, #8] ; 8-byte Folded Reload
add x0, sp, #48
adrp x1, l___const.main.s3@PAGE
add x1, x1, l___const.main.s3@PAGEOFF
bl _memcpy
mov w8, #7
str w8, [sp, #40]
mov w8, #3
str w8, [sp, #36]
mov w8, #8
str w8, [sp, #32]
str wzr, [sp, #24]
mov w8, #1
str w8, [sp, #28]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #28]
subs w8, w8, #10
b.hs LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #28]
mov x9, x8
sub x8, x29, #48
ldr w9, [x8, x9, lsl #2]
ldr w8, [sp, #24]
add w8, w8, w9
str w8, [sp, #24]
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #28]
add w8, w8, #1
str w8, [sp, #28]
b LBB0_1
LBB0_4:
str wzr, [sp, #28]
b LBB0_5
LBB0_5: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #28]
subs w8, w8, #10
b.hs LBB0_8
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_5 Depth=1
ldr w8, [sp, #28]
mov x9, x8
add x8, sp, #88
ldr w9, [x8, x9, lsl #2]
ldr w8, [sp, #24]
add w8, w8, w9
str w8, [sp, #24]
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_5 Depth=1
ldr w8, [sp, #28]
add w8, w8, #1
str w8, [sp, #28]
b LBB0_5
LBB0_8:
mov w8, #20
str w8, [sp, #28]
b LBB0_9
LBB0_9: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #28]
subs w8, w8, #100
b.hs LBB0_12
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_9 Depth=1
ldr w8, [sp, #28]
mov w11, #10
udiv w9, w8, w11
add x8, sp, #48
ldr w8, [x8, w9, uxtw #2]
ldr w9, [sp, #28]
udiv w10, w9, w11
mul w10, w10, w11
subs w10, w9, w10
sub x9, x29, #48
ldr w9, [x9, w10, uxtw #2]
add w9, w8, w9
ldr w8, [sp, #24]
add w8, w8, w9
str w8, [sp, #24]
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_9 Depth=1
ldr w8, [sp, #28]
add w8, w8, #1
str w8, [sp, #28]
b LBB0_9
LBB0_12:
mov w8, #1
str w8, [sp, #28]
b LBB0_13
LBB0_13: ; =>This Loop Header: Depth=1
; Child Loop BB0_15 Depth 2
; Child Loop BB0_19 Depth 2
; Child Loop BB0_23 Depth 2
ldr w8, [sp, #28]
subs w8, w8, #10
b.hs LBB0_28
b LBB0_14
LBB0_14: ; in Loop: Header=BB0_13 Depth=1
ldr w8, [sp, #28]
mov x9, x8
sub x8, x29, #48
ldr w8, [x8, x9, lsl #2]
ldr w9, [sp, #40]
add w9, w8, w9
ldr w8, [sp, #24]
add w8, w8, w9
str w8, [sp, #24]
mov w8, #1
str w8, [sp, #20]
b LBB0_15
LBB0_15: ; Parent Loop BB0_13 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #20]
subs w8, w8, #10
b.ge LBB0_18
b LBB0_16
LBB0_16: ; in Loop: Header=BB0_15 Depth=2
ldr w8, [sp, #28]
; kill: def $x8 killed $w8
sub x9, x29, #48
ldr w8, [x9, x8, lsl #2]
ldr w10, [sp, #40]
add w8, w8, w10
ldr w10, [sp, #36]
add w8, w8, w10
ldrsw x10, [sp, #20]
ldr w9, [x9, x10, lsl #2]
add w9, w8, w9
ldr w8, [sp, #24]
add w8, w8, w9
str w8, [sp, #24]
b LBB0_17
LBB0_17: ; in Loop: Header=BB0_15 Depth=2
ldr w8, [sp, #20]
add w8, w8, #1
str w8, [sp, #20]
b LBB0_15
LBB0_18: ; in Loop: Header=BB0_13 Depth=1
str wzr, [sp, #20]
b LBB0_19
LBB0_19: ; Parent Loop BB0_13 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #20]
subs w8, w8, #10
b.ge LBB0_22
b LBB0_20
LBB0_20: ; in Loop: Header=BB0_19 Depth=2
ldr w8, [sp, #28]
mov x9, x8
sub x8, x29, #48
ldr w8, [x8, x9, lsl #2]
ldr w9, [sp, #40]
add w8, w8, w9
ldr w9, [sp, #36]
add w8, w8, w9
ldrsw x10, [sp, #20]
add x9, sp, #88
ldr w9, [x9, x10, lsl #2]
add w9, w8, w9
ldr w8, [sp, #24]
add w8, w8, w9
str w8, [sp, #24]
b LBB0_21
LBB0_21: ; in Loop: Header=BB0_19 Depth=2
ldr w8, [sp, #20]
add w8, w8, #1
str w8, [sp, #20]
b LBB0_19
LBB0_22: ; in Loop: Header=BB0_13 Depth=1
mov w8, #20
str w8, [sp, #20]
b LBB0_23
LBB0_23: ; Parent Loop BB0_13 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #20]
subs w8, w8, #100
b.ge LBB0_26
b LBB0_24
LBB0_24: ; in Loop: Header=BB0_23 Depth=2
ldr w8, [sp, #28]
; kill: def $x8 killed $w8
sub x9, x29, #48
ldr w8, [x9, x8, lsl #2]
ldr w10, [sp, #40]
add w8, w8, w10
ldr w10, [sp, #36]
add w8, w8, w10
ldr w10, [sp, #20]
mov w12, #10
sdiv w11, w10, w12
add x10, sp, #48
ldr w10, [x10, w11, sxtw #2]
add w8, w8, w10
ldr w10, [sp, #20]
sdiv w11, w10, w12
mul w11, w11, w12
subs w10, w10, w11
ldr w9, [x9, w10, sxtw #2]
add w9, w8, w9
ldr w8, [sp, #24]
add w8, w8, w9
str w8, [sp, #24]
b LBB0_25
LBB0_25: ; in Loop: Header=BB0_23 Depth=2
ldr w8, [sp, #20]
add w8, w8, #1
str w8, [sp, #20]
b LBB0_23
LBB0_26: ; in Loop: Header=BB0_13 Depth=1
b LBB0_27
LBB0_27: ; in Loop: Header=BB0_13 Depth=1
ldr w8, [sp, #28]
add w8, w8, #1
str w8, [sp, #28]
b LBB0_13
LBB0_28:
ldur w8, [x29, #-44]
ldr w9, [sp, #32]
add w9, w8, w9
ldr w8, [sp, #24]
add w8, w8, w9
str w8, [sp, #24]
ldr w9, [sp, #24]
; implicit-def: $x8
mov x8, x9
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
mov x9, sp
str x8, [x9]
bl _printf
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
ldur x9, [x29, #-8]
subs x8, x8, x9
b.ne LBB0_30
b LBB0_29
LBB0_29:
mov w0, #0
ldp x29, x30, [sp, #176] ; 16-byte Folded Reload
add sp, sp, #192
ret
LBB0_30:
bl ___stack_chk_fail
.cfi_endproc
; -- End function
.section __TEXT,__const
.p2align 2 ; @__const.main.s1
l___const.main.s1:
.long 0 ; 0x0
.long 3 ; 0x3
.long 3 ; 0x3
.long 5 ; 0x5
.long 4 ; 0x4
.long 4 ; 0x4
.long 3 ; 0x3
.long 5 ; 0x5
.long 5 ; 0x5
.long 4 ; 0x4
.p2align 2 ; @__const.main.s2
l___const.main.s2:
.long 3 ; 0x3
.long 6 ; 0x6
.long 6 ; 0x6
.long 8 ; 0x8
.long 8 ; 0x8
.long 7 ; 0x7
.long 7 ; 0x7
.long 9 ; 0x9
.long 8 ; 0x8
.long 8 ; 0x8
.p2align 2 ; @__const.main.s3
l___const.main.s3:
.long 0 ; 0x0
.long 0 ; 0x0
.long 6 ; 0x6
.long 6 ; 0x6
.long 5 ; 0x5
.long 5 ; 0x5
.long 5 ; 0x5
.long 7 ; 0x7
.long 6 ; 0x6
.long 6 ; 0x6
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%u\n"
.subsections_via_symbols
| [
222,
181
] | .text
.file "problem17.c"
.globl main # -- Begin function main
.p2align 4, 0x90
.type main,@function
main: # @main
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $192, %rsp
movl $0, -4(%rbp)
leaq -48(%rbp), %rdi
leaq .L__const.main.s1(%rip), %rsi
movl $40, %edx
callq memcpy@PLT
leaq -96(%rbp), %rdi
leaq .L__const.main.s2(%rip), %rsi
movl $40, %edx
callq memcpy@PLT
leaq -144(%rbp), %rdi
leaq .L__const.main.s3(%rip), %rsi
movl $40, %edx
callq memcpy@PLT
movl $7, -148(%rbp)
movl $3, -152(%rbp)
movl $8, -156(%rbp)
movl $0, -164(%rbp)
movl $1, -160(%rbp)
.LBB0_1: # =>This Inner Loop Header: Depth=1
cmpl $10, -160(%rbp)
jae .LBB0_4
# %bb.2: # in Loop: Header=BB0_1 Depth=1
movl -160(%rbp), %eax
# kill: def $rax killed $eax
movl -48(%rbp,%rax,4), %eax
addl -164(%rbp), %eax
movl %eax, -164(%rbp)
# %bb.3: # in Loop: Header=BB0_1 Depth=1
movl -160(%rbp), %eax
addl $1, %eax
movl %eax, -160(%rbp)
jmp .LBB0_1
.LBB0_4:
movl $0, -160(%rbp)
.LBB0_5: # =>This Inner Loop Header: Depth=1
cmpl $10, -160(%rbp)
jae .LBB0_8
# %bb.6: # in Loop: Header=BB0_5 Depth=1
movl -160(%rbp), %eax
# kill: def $rax killed $eax
movl -96(%rbp,%rax,4), %eax
addl -164(%rbp), %eax
movl %eax, -164(%rbp)
# %bb.7: # in Loop: Header=BB0_5 Depth=1
movl -160(%rbp), %eax
addl $1, %eax
movl %eax, -160(%rbp)
jmp .LBB0_5
.LBB0_8:
movl $20, -160(%rbp)
.LBB0_9: # =>This Inner Loop Header: Depth=1
cmpl $100, -160(%rbp)
jae .LBB0_12
# %bb.10: # in Loop: Header=BB0_9 Depth=1
movl -160(%rbp), %eax
movl $10, %ecx
xorl %edx, %edx
divl %ecx
movl %eax, %eax
# kill: def $rax killed $eax
movl -144(%rbp,%rax,4), %eax
movl %eax, -172(%rbp) # 4-byte Spill
movl -160(%rbp), %eax
movl $10, %ecx
xorl %edx, %edx
divl %ecx
movl -172(%rbp), %eax # 4-byte Reload
movl %edx, %ecx
# kill: def $rcx killed $ecx
addl -48(%rbp,%rcx,4), %eax
addl -164(%rbp), %eax
movl %eax, -164(%rbp)
# %bb.11: # in Loop: Header=BB0_9 Depth=1
movl -160(%rbp), %eax
addl $1, %eax
movl %eax, -160(%rbp)
jmp .LBB0_9
.LBB0_12:
movl $1, -160(%rbp)
.LBB0_13: # =>This Loop Header: Depth=1
# Child Loop BB0_15 Depth 2
# Child Loop BB0_19 Depth 2
# Child Loop BB0_23 Depth 2
cmpl $10, -160(%rbp)
jae .LBB0_28
# %bb.14: # in Loop: Header=BB0_13 Depth=1
movl -160(%rbp), %eax
# kill: def $rax killed $eax
movl -48(%rbp,%rax,4), %eax
addl -148(%rbp), %eax
addl -164(%rbp), %eax
movl %eax, -164(%rbp)
movl $1, -168(%rbp)
.LBB0_15: # Parent Loop BB0_13 Depth=1
# => This Inner Loop Header: Depth=2
cmpl $10, -168(%rbp)
jge .LBB0_18
# %bb.16: # in Loop: Header=BB0_15 Depth=2
movl -160(%rbp), %eax
# kill: def $rax killed $eax
movl -48(%rbp,%rax,4), %eax
addl -148(%rbp), %eax
addl -152(%rbp), %eax
movslq -168(%rbp), %rcx
addl -48(%rbp,%rcx,4), %eax
addl -164(%rbp), %eax
movl %eax, -164(%rbp)
# %bb.17: # in Loop: Header=BB0_15 Depth=2
movl -168(%rbp), %eax
addl $1, %eax
movl %eax, -168(%rbp)
jmp .LBB0_15
.LBB0_18: # in Loop: Header=BB0_13 Depth=1
movl $0, -168(%rbp)
.LBB0_19: # Parent Loop BB0_13 Depth=1
# => This Inner Loop Header: Depth=2
cmpl $10, -168(%rbp)
jge .LBB0_22
# %bb.20: # in Loop: Header=BB0_19 Depth=2
movl -160(%rbp), %eax
# kill: def $rax killed $eax
movl -48(%rbp,%rax,4), %eax
addl -148(%rbp), %eax
addl -152(%rbp), %eax
movslq -168(%rbp), %rcx
addl -96(%rbp,%rcx,4), %eax
addl -164(%rbp), %eax
movl %eax, -164(%rbp)
# %bb.21: # in Loop: Header=BB0_19 Depth=2
movl -168(%rbp), %eax
addl $1, %eax
movl %eax, -168(%rbp)
jmp .LBB0_19
.LBB0_22: # in Loop: Header=BB0_13 Depth=1
movl $20, -168(%rbp)
.LBB0_23: # Parent Loop BB0_13 Depth=1
# => This Inner Loop Header: Depth=2
cmpl $100, -168(%rbp)
jge .LBB0_26
# %bb.24: # in Loop: Header=BB0_23 Depth=2
movl -160(%rbp), %eax
# kill: def $rax killed $eax
movl -48(%rbp,%rax,4), %eax
addl -148(%rbp), %eax
addl -152(%rbp), %eax
movl %eax, -180(%rbp) # 4-byte Spill
movl -168(%rbp), %eax
movl $10, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl -180(%rbp), %eax # 4-byte Reload
movslq %ecx, %rcx
addl -144(%rbp,%rcx,4), %eax
movl %eax, -176(%rbp) # 4-byte Spill
movl -168(%rbp), %eax
movl $10, %ecx
cltd
idivl %ecx
movl -176(%rbp), %eax # 4-byte Reload
movslq %edx, %rcx
addl -48(%rbp,%rcx,4), %eax
addl -164(%rbp), %eax
movl %eax, -164(%rbp)
# %bb.25: # in Loop: Header=BB0_23 Depth=2
movl -168(%rbp), %eax
addl $1, %eax
movl %eax, -168(%rbp)
jmp .LBB0_23
.LBB0_26: # in Loop: Header=BB0_13 Depth=1
jmp .LBB0_27
.LBB0_27: # in Loop: Header=BB0_13 Depth=1
movl -160(%rbp), %eax
addl $1, %eax
movl %eax, -160(%rbp)
jmp .LBB0_13
.LBB0_28:
movl -44(%rbp), %eax
addl -156(%rbp), %eax
addl -164(%rbp), %eax
movl %eax, -164(%rbp)
movl -164(%rbp), %esi
leaq .L.str(%rip), %rdi
movb $0, %al
callq printf@PLT
xorl %eax, %eax
addq $192, %rsp
popq %rbp
.cfi_def_cfa %rsp, 8
retq
.Lfunc_end0:
.size main, .Lfunc_end0-main
.cfi_endproc
# -- End function
.type .L__const.main.s1,@object # @__const.main.s1
.section .rodata,"a",@progbits
.p2align 4
.L__const.main.s1:
.long 0 # 0x0
.long 3 # 0x3
.long 3 # 0x3
.long 5 # 0x5
.long 4 # 0x4
.long 4 # 0x4
.long 3 # 0x3
.long 5 # 0x5
.long 5 # 0x5
.long 4 # 0x4
.size .L__const.main.s1, 40
.type .L__const.main.s2,@object # @__const.main.s2
.p2align 4
.L__const.main.s2:
.long 3 # 0x3
.long 6 # 0x6
.long 6 # 0x6
.long 8 # 0x8
.long 8 # 0x8
.long 7 # 0x7
.long 7 # 0x7
.long 9 # 0x9
.long 8 # 0x8
.long 8 # 0x8
.size .L__const.main.s2, 40
.type .L__const.main.s3,@object # @__const.main.s3
.p2align 4
.L__const.main.s3:
.long 0 # 0x0
.long 0 # 0x0
.long 6 # 0x6
.long 6 # 0x6
.long 5 # 0x5
.long 5 # 0x5
.long 5 # 0x5
.long 7 # 0x7
.long 6 # 0x6
.long 6 # 0x6
.size .L__const.main.s3, 40
.type .L.str,@object # @.str
.section .rodata.str1.1,"aMS",@progbits,1
.L.str:
.asciz "%u\n"
.size .L.str, 4
.ident "Ubuntu clang version 14.0.0-1ubuntu1.1"
.section ".note.GNU-stack","",@progbits
.addrsig
.addrsig_sym printf
| [
708,
346
] |
problem2.c | .section __TEXT,__text,regular,pure_instructions
.build_version macos, 12, 0 sdk_version 12, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
mov w8, #1
stur w8, [x29, #-8]
stur w8, [x29, #-12]
mov w8, #2
str w8, [sp, #16]
str wzr, [sp, #12]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #16]
mov w9, #2304
movk w9, #61, lsl #16
subs w8, w8, w9
b.hs LBB0_3
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-8]
ldur w9, [x29, #-12]
add w8, w8, w9
str w8, [sp, #16]
ldr w8, [sp, #16]
ldr w9, [sp, #16]
mov w11, #2
udiv w10, w9, w11
mul w10, w10, w11
subs w9, w9, w10
subs w9, w9, #0
cset w9, eq
and w9, w9, #0x1
mul w9, w8, w9
ldr w8, [sp, #12]
add w8, w8, w9
str w8, [sp, #12]
ldur w8, [x29, #-12]
stur w8, [x29, #-8]
ldr w8, [sp, #16]
stur w8, [x29, #-12]
b LBB0_1
LBB0_3:
ldr w9, [sp, #12]
; implicit-def: $x8
mov x8, x9
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
mov x9, sp
str x8, [x9]
bl _printf
mov w0, #0
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%u\n"
.subsections_via_symbols
| [
222,
180
] | .text
.file "problem2.c"
.globl main # -- Begin function main
.p2align 4, 0x90
.type main,@function
main: # @main
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movl $0, -4(%rbp)
movl $1, -8(%rbp)
movl $1, -12(%rbp)
movl $2, -16(%rbp)
movl $0, -20(%rbp)
.LBB0_1: # =>This Inner Loop Header: Depth=1
cmpl $4000000, -16(%rbp) # imm = 0x3D0900
jae .LBB0_3
# %bb.2: # in Loop: Header=BB0_1 Depth=1
movl -8(%rbp), %eax
addl -12(%rbp), %eax
movl %eax, -16(%rbp)
movl -16(%rbp), %eax
movl -16(%rbp), %ecx
andl $1, %ecx
cmpl $0, %ecx
setne %cl
xorb $-1, %cl
andb $1, %cl
movzbl %cl, %ecx
imull %ecx, %eax
addl -20(%rbp), %eax
movl %eax, -20(%rbp)
movl -12(%rbp), %eax
movl %eax, -8(%rbp)
movl -16(%rbp), %eax
movl %eax, -12(%rbp)
jmp .LBB0_1
.LBB0_3:
movl -20(%rbp), %esi
leaq .L.str(%rip), %rdi
movb $0, %al
callq printf@PLT
xorl %eax, %eax
addq $32, %rsp
popq %rbp
.cfi_def_cfa %rsp, 8
retq
.Lfunc_end0:
.size main, .Lfunc_end0-main
.cfi_endproc
# -- End function
.type .L.str,@object # @.str
.section .rodata.str1.1,"aMS",@progbits,1
.L.str:
.asciz "%u\n"
.size .L.str, 4
.ident "Ubuntu clang version 14.0.0-1ubuntu1.1"
.section ".note.GNU-stack","",@progbits
.addrsig
.addrsig_sym printf
| [
441,
344
] |
problem3.c | .section __TEXT,__text,regular,pure_instructions
.build_version macos, 12, 0 sdk_version 12, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
mov x8, #60103
movk x8, #58761, lsl #16
movk x8, #139, lsl #32
str x8, [sp, #16]
mov x8, #2
str x8, [sp, #8]
b LBB0_1
LBB0_1: ; =>This Loop Header: Depth=1
; Child Loop BB0_3 Depth 2
ldr x8, [sp, #8]
ldr x9, [sp, #16]
subs x8, x8, x9
b.hs LBB0_7
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
b LBB0_3
LBB0_3: ; Parent Loop BB0_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr x8, [sp, #16]
ldr x10, [sp, #8]
udiv x9, x8, x10
mul x9, x9, x10
subs x8, x8, x9
cbnz x8, LBB0_5
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=2
ldr x9, [sp, #8]
ldr x8, [sp, #16]
udiv x8, x8, x9
str x8, [sp, #16]
b LBB0_3
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #8]
add x8, x8, #1
str x8, [sp, #8]
b LBB0_1
LBB0_7:
ldr x8, [sp, #16]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
mov x9, sp
str x8, [x9]
bl _printf
mov w0, #0
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%llu\n"
.subsections_via_symbols
| [
222,
180
] | .text
.file "problem3.c"
.globl main # -- Begin function main
.p2align 4, 0x90
.type main,@function
main: # @main
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movl $0, -4(%rbp)
movabsq $600851475143, %rax # imm = 0x8BE589EAC7
movq %rax, -16(%rbp)
movq $2, -24(%rbp)
.LBB0_1: # =>This Loop Header: Depth=1
# Child Loop BB0_3 Depth 2
movq -24(%rbp), %rax
cmpq -16(%rbp), %rax
jae .LBB0_7
# %bb.2: # in Loop: Header=BB0_1 Depth=1
jmp .LBB0_3
.LBB0_3: # Parent Loop BB0_1 Depth=1
# => This Inner Loop Header: Depth=2
movq -16(%rbp), %rax
xorl %ecx, %ecx
movl %ecx, %edx
divq -24(%rbp)
cmpq $0, %rdx
jne .LBB0_5
# %bb.4: # in Loop: Header=BB0_3 Depth=2
movq -24(%rbp), %rcx
movq -16(%rbp), %rax
xorl %edx, %edx
# kill: def $rdx killed $edx
divq %rcx
movq %rax, -16(%rbp)
jmp .LBB0_3
.LBB0_5: # in Loop: Header=BB0_1 Depth=1
jmp .LBB0_6
.LBB0_6: # in Loop: Header=BB0_1 Depth=1
movq -24(%rbp), %rax
addq $1, %rax
movq %rax, -24(%rbp)
jmp .LBB0_1
.LBB0_7:
movq -16(%rbp), %rsi
leaq .L.str(%rip), %rdi
movb $0, %al
callq printf@PLT
xorl %eax, %eax
addq $32, %rsp
popq %rbp
.cfi_def_cfa %rsp, 8
retq
.Lfunc_end0:
.size main, .Lfunc_end0-main
.cfi_endproc
# -- End function
.type .L.str,@object # @.str
.section .rodata.str1.1,"aMS",@progbits,1
.L.str:
.asciz "%llu\n"
.size .L.str, 6
.ident "Ubuntu clang version 14.0.0-1ubuntu1.1"
.section ".note.GNU-stack","",@progbits
.addrsig
.addrsig_sym printf
| [
495,
344
] |
problem1.c | .section __TEXT,__text,regular,pure_instructions
.build_version macos, 12, 0 sdk_version 12, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
stur wzr, [x29, #-8]
stur wzr, [x29, #-12]
str wzr, [sp, #16]
str wzr, [sp, #12]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #12]
subs w8, w8, #1000
b.ge LBB0_10
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #12]
mov w10, #3
sdiv w9, w8, w10
mul w9, w9, w10
subs w8, w8, w9
cbnz w8, LBB0_4
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr w9, [sp, #12]
ldur w8, [x29, #-8]
add w8, w8, w9
stur w8, [x29, #-8]
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #12]
mov w10, #5
sdiv w9, w8, w10
mul w9, w9, w10
subs w8, w8, w9
cbnz w8, LBB0_6
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
ldr w9, [sp, #12]
ldur w8, [x29, #-12]
add w8, w8, w9
stur w8, [x29, #-12]
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #12]
mov w10, #15
sdiv w9, w8, w10
mul w9, w9, w10
subs w8, w8, w9
cbnz w8, LBB0_8
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
ldr w9, [sp, #12]
ldr w8, [sp, #16]
add w8, w8, w9
str w8, [sp, #16]
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_1 Depth=1
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #12]
add w8, w8, #1
str w8, [sp, #12]
b LBB0_1
LBB0_10:
ldur w8, [x29, #-8]
ldur w9, [x29, #-12]
add w8, w8, w9
ldr w9, [sp, #16]
subs w10, w8, w9
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
mov x9, sp
; implicit-def: $x8
mov x8, x10
str x8, [x9]
bl _printf
mov w0, #0
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%d\n"
.subsections_via_symbols
| [
222,
180
] | .text
.file "problem1.c"
.globl main # -- Begin function main
.p2align 4, 0x90
.type main,@function
main: # @main
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movl $0, -4(%rbp)
movl $0, -8(%rbp)
movl $0, -12(%rbp)
movl $0, -16(%rbp)
movl $0, -20(%rbp)
.LBB0_1: # =>This Inner Loop Header: Depth=1
cmpl $1000, -20(%rbp) # imm = 0x3E8
jge .LBB0_10
# %bb.2: # in Loop: Header=BB0_1 Depth=1
movl -20(%rbp), %eax
movl $3, %ecx
cltd
idivl %ecx
cmpl $0, %edx
jne .LBB0_4
# %bb.3: # in Loop: Header=BB0_1 Depth=1
movl -20(%rbp), %eax
addl -8(%rbp), %eax
movl %eax, -8(%rbp)
.LBB0_4: # in Loop: Header=BB0_1 Depth=1
movl -20(%rbp), %eax
movl $5, %ecx
cltd
idivl %ecx
cmpl $0, %edx
jne .LBB0_6
# %bb.5: # in Loop: Header=BB0_1 Depth=1
movl -20(%rbp), %eax
addl -12(%rbp), %eax
movl %eax, -12(%rbp)
.LBB0_6: # in Loop: Header=BB0_1 Depth=1
movl -20(%rbp), %eax
movl $15, %ecx
cltd
idivl %ecx
cmpl $0, %edx
jne .LBB0_8
# %bb.7: # in Loop: Header=BB0_1 Depth=1
movl -20(%rbp), %eax
addl -16(%rbp), %eax
movl %eax, -16(%rbp)
.LBB0_8: # in Loop: Header=BB0_1 Depth=1
jmp .LBB0_9
.LBB0_9: # in Loop: Header=BB0_1 Depth=1
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp .LBB0_1
.LBB0_10:
movl -8(%rbp), %esi
addl -12(%rbp), %esi
subl -16(%rbp), %esi
leaq .L.str(%rip), %rdi
movb $0, %al
callq printf@PLT
xorl %eax, %eax
addq $32, %rsp
popq %rbp
.cfi_def_cfa %rsp, 8
retq
.Lfunc_end0:
.size main, .Lfunc_end0-main
.cfi_endproc
# -- End function
.type .L.str,@object # @.str
.section .rodata.str1.1,"aMS",@progbits,1
.L.str:
.asciz "%d\n"
.size .L.str, 4
.ident "Ubuntu clang version 14.0.0-1ubuntu1.1"
.section ".note.GNU-stack","",@progbits
.addrsig
.addrsig_sym printf
| [
429,
344
] |
problem11.c | .section __TEXT,__text,regular,pure_instructions
.build_version macos, 12, 0 sdk_version 12, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
sub sp, sp, #1680
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w27, -24
.cfi_offset w28, -32
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-24]
str wzr, [sp, #68]
add x0, sp, #72
adrp x1, l___const.main.grid@PAGE
add x1, x1, l___const.main.grid@PAGEOFF
mov x2, #1600
bl _memcpy
str wzr, [sp, #64]
str wzr, [sp, #60]
b LBB0_1
LBB0_1: ; =>This Loop Header: Depth=1
; Child Loop BB0_3 Depth 2
ldr w8, [sp, #60]
subs w8, w8, #17
b.hs LBB0_8
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
str wzr, [sp, #56]
b LBB0_3
LBB0_3: ; Parent Loop BB0_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #56]
subs w8, w8, #17
b.hs LBB0_6
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=2
ldr w8, [sp, #60]
; kill: def $x8 killed $w8
mov x9, #80
mul x10, x8, x9
add x12, sp, #72
str x12, [sp, #16] ; 8-byte Folded Spill
mov x8, x12
add x8, x8, x10
ldr w10, [sp, #56]
; kill: def $x10 killed $w10
ldr w8, [x8, x10, lsl #2]
ldr w10, [sp, #60]
; kill: def $x10 killed $w10
mul x11, x10, x9
mov x10, x12
add x10, x10, x11
ldr w11, [sp, #56]
add w11, w11, #1
ldr w10, [x10, w11, uxtw #2]
mul w8, w8, w10
ldr w10, [sp, #60]
; kill: def $x10 killed $w10
mul x11, x10, x9
mov x10, x12
add x10, x10, x11
ldr w11, [sp, #56]
add w11, w11, #2
ldr w10, [x10, w11, uxtw #2]
mul w8, w8, w10
ldr w10, [sp, #60]
; kill: def $x10 killed $w10
mul x11, x10, x9
mov x10, x12
add x10, x10, x11
ldr w11, [sp, #56]
add w11, w11, #3
ldr w10, [x10, w11, uxtw #2]
mul w8, w8, w10
str w8, [sp, #52]
ldr w8, [sp, #56]
; kill: def $x8 killed $w8
mul x10, x8, x9
mov x8, x12
add x8, x8, x10
ldr w10, [sp, #60]
; kill: def $x10 killed $w10
ldr w8, [x8, x10, lsl #2]
ldr w10, [sp, #56]
add w10, w10, #1
mov x13, x12
mov w11, #80
umaddl x10, w10, w11, x13
ldr w11, [sp, #60]
; kill: def $x11 killed $w11
ldr w10, [x10, x11, lsl #2]
mul w8, w8, w10
ldr w10, [sp, #56]
add w10, w10, #2
mov x13, x12
mov w11, #80
umaddl x10, w10, w11, x13
ldr w11, [sp, #60]
; kill: def $x11 killed $w11
ldr w10, [x10, x11, lsl #2]
mul w8, w8, w10
ldr w10, [sp, #56]
add w10, w10, #3
mov x13, x12
mov w11, #80
umaddl x10, w10, w11, x13
ldr w11, [sp, #60]
; kill: def $x11 killed $w11
ldr w10, [x10, x11, lsl #2]
mul w8, w8, w10
str w8, [sp, #48]
ldr w8, [sp, #60]
; kill: def $x8 killed $w8
mul x10, x8, x9
mov x8, x12
add x8, x8, x10
ldr w10, [sp, #56]
; kill: def $x10 killed $w10
ldr w8, [x8, x10, lsl #2]
ldr w10, [sp, #60]
add w10, w10, #1
mov x13, x12
mov w11, #80
umaddl x10, w10, w11, x13
ldr w11, [sp, #56]
add w11, w11, #1
ldr w10, [x10, w11, uxtw #2]
mul w8, w8, w10
ldr w10, [sp, #60]
add w10, w10, #2
mov x13, x12
mov w11, #80
umaddl x10, w10, w11, x13
ldr w11, [sp, #56]
add w11, w11, #2
ldr w10, [x10, w11, uxtw #2]
mul w8, w8, w10
ldr w10, [sp, #60]
add w10, w10, #3
mov x13, x12
mov w11, #80
umaddl x10, w10, w11, x13
ldr w11, [sp, #56]
add w11, w11, #3
ldr w10, [x10, w11, uxtw #2]
mul w8, w8, w10
str w8, [sp, #44]
ldr w8, [sp, #60]
; kill: def $x8 killed $w8
mul x9, x8, x9
mov x8, x12
add x8, x8, x9
ldr w9, [sp, #56]
mov w10, #20
subs w9, w10, w9
subs w9, w9, #1
ldr w8, [x8, w9, uxtw #2]
ldr w9, [sp, #60]
add w9, w9, #1
mov x13, x12
mov w11, #80
umaddl x9, w9, w11, x13
ldr w11, [sp, #56]
subs w11, w10, w11
subs w11, w11, #2
ldr w9, [x9, w11, uxtw #2]
mul w8, w8, w9
ldr w9, [sp, #60]
add w9, w9, #2
mov x13, x12
mov w11, #80
umaddl x9, w9, w11, x13
ldr w11, [sp, #56]
subs w11, w10, w11
subs w11, w11, #3
ldr w9, [x9, w11, uxtw #2]
mul w8, w8, w9
ldr w9, [sp, #60]
add w9, w9, #3
mov w11, #80
umaddl x9, w9, w11, x12
ldr w11, [sp, #56]
subs w10, w10, w11
subs w10, w10, #4
ldr w9, [x9, w10, uxtw #2]
mul w8, w8, w9
str w8, [sp, #40]
ldr w8, [sp, #64]
str w8, [sp, #36] ; 4-byte Folded Spill
ldr w8, [sp, #52]
str w8, [sp, #32] ; 4-byte Folded Spill
ldr w8, [sp, #48]
str w8, [sp, #28] ; 4-byte Folded Spill
ldr w0, [sp, #44]
ldr w1, [sp, #40]
bl _max
mov x1, x0
ldr w0, [sp, #28] ; 4-byte Folded Reload
bl _max
mov x1, x0
ldr w0, [sp, #32] ; 4-byte Folded Reload
bl _max
mov x1, x0
ldr w0, [sp, #36] ; 4-byte Folded Reload
bl _max
str w0, [sp, #64]
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_3 Depth=2
ldr w8, [sp, #56]
add w8, w8, #1
str w8, [sp, #56]
b LBB0_3
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #60]
add w8, w8, #1
str w8, [sp, #60]
b LBB0_1
LBB0_8:
ldr w9, [sp, #64]
; implicit-def: $x8
mov x8, x9
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
mov x9, sp
str x8, [x9]
bl _printf
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
ldur x9, [x29, #-24]
subs x8, x8, x9
b.ne LBB0_10
b LBB0_9
LBB0_9:
mov w0, #0
add sp, sp, #1680
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x28, x27, [sp], #32 ; 16-byte Folded Reload
ret
LBB0_10:
bl ___stack_chk_fail
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function max
_max: ; @max
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, #12]
str w1, [sp, #8]
ldr w8, [sp, #12]
ldr w9, [sp, #8]
subs w8, w8, w9
b.ls LBB1_2
b LBB1_1
LBB1_1:
ldr w8, [sp, #12]
str w8, [sp, #4] ; 4-byte Folded Spill
b LBB1_3
LBB1_2:
ldr w8, [sp, #8]
str w8, [sp, #4] ; 4-byte Folded Spill
b LBB1_3
LBB1_3:
ldr w0, [sp, #4] ; 4-byte Folded Reload
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.section __TEXT,__const
.p2align 2 ; @__const.main.grid
l___const.main.grid:
.long 8 ; 0x8
.long 2 ; 0x2
.long 22 ; 0x16
.long 97 ; 0x61
.long 38 ; 0x26
.long 15 ; 0xf
.long 0 ; 0x0
.long 40 ; 0x28
.long 0 ; 0x0
.long 75 ; 0x4b
.long 4 ; 0x4
.long 5 ; 0x5
.long 7 ; 0x7
.long 78 ; 0x4e
.long 52 ; 0x34
.long 12 ; 0xc
.long 50 ; 0x32
.long 77 ; 0x4d
.long 91 ; 0x5b
.long 8 ; 0x8
.long 49 ; 0x31
.long 49 ; 0x31
.long 99 ; 0x63
.long 40 ; 0x28
.long 17 ; 0x11
.long 81 ; 0x51
.long 18 ; 0x12
.long 57 ; 0x39
.long 60 ; 0x3c
.long 87 ; 0x57
.long 17 ; 0x11
.long 40 ; 0x28
.long 98 ; 0x62
.long 43 ; 0x2b
.long 69 ; 0x45
.long 48 ; 0x30
.long 4 ; 0x4
.long 56 ; 0x38
.long 62 ; 0x3e
.long 0 ; 0x0
.long 81 ; 0x51
.long 49 ; 0x31
.long 31 ; 0x1f
.long 73 ; 0x49
.long 55 ; 0x37
.long 79 ; 0x4f
.long 14 ; 0xe
.long 29 ; 0x1d
.long 93 ; 0x5d
.long 71 ; 0x47
.long 40 ; 0x28
.long 67 ; 0x43
.long 53 ; 0x35
.long 88 ; 0x58
.long 30 ; 0x1e
.long 3 ; 0x3
.long 49 ; 0x31
.long 13 ; 0xd
.long 36 ; 0x24
.long 65 ; 0x41
.long 52 ; 0x34
.long 70 ; 0x46
.long 95 ; 0x5f
.long 23 ; 0x17
.long 4 ; 0x4
.long 60 ; 0x3c
.long 11 ; 0xb
.long 42 ; 0x2a
.long 69 ; 0x45
.long 24 ; 0x18
.long 68 ; 0x44
.long 56 ; 0x38
.long 1 ; 0x1
.long 32 ; 0x20
.long 56 ; 0x38
.long 71 ; 0x47
.long 37 ; 0x25
.long 2 ; 0x2
.long 36 ; 0x24
.long 91 ; 0x5b
.long 22 ; 0x16
.long 31 ; 0x1f
.long 16 ; 0x10
.long 71 ; 0x47
.long 51 ; 0x33
.long 67 ; 0x43
.long 63 ; 0x3f
.long 89 ; 0x59
.long 41 ; 0x29
.long 92 ; 0x5c
.long 36 ; 0x24
.long 54 ; 0x36
.long 22 ; 0x16
.long 40 ; 0x28
.long 40 ; 0x28
.long 28 ; 0x1c
.long 66 ; 0x42
.long 33 ; 0x21
.long 13 ; 0xd
.long 80 ; 0x50
.long 24 ; 0x18
.long 47 ; 0x2f
.long 32 ; 0x20
.long 60 ; 0x3c
.long 99 ; 0x63
.long 3 ; 0x3
.long 45 ; 0x2d
.long 2 ; 0x2
.long 44 ; 0x2c
.long 75 ; 0x4b
.long 33 ; 0x21
.long 53 ; 0x35
.long 78 ; 0x4e
.long 36 ; 0x24
.long 84 ; 0x54
.long 20 ; 0x14
.long 35 ; 0x23
.long 17 ; 0x11
.long 12 ; 0xc
.long 50 ; 0x32
.long 32 ; 0x20
.long 98 ; 0x62
.long 81 ; 0x51
.long 28 ; 0x1c
.long 64 ; 0x40
.long 23 ; 0x17
.long 67 ; 0x43
.long 10 ; 0xa
.long 26 ; 0x1a
.long 38 ; 0x26
.long 40 ; 0x28
.long 67 ; 0x43
.long 59 ; 0x3b
.long 54 ; 0x36
.long 70 ; 0x46
.long 66 ; 0x42
.long 18 ; 0x12
.long 38 ; 0x26
.long 64 ; 0x40
.long 70 ; 0x46
.long 67 ; 0x43
.long 26 ; 0x1a
.long 20 ; 0x14
.long 68 ; 0x44
.long 2 ; 0x2
.long 62 ; 0x3e
.long 12 ; 0xc
.long 20 ; 0x14
.long 95 ; 0x5f
.long 63 ; 0x3f
.long 94 ; 0x5e
.long 39 ; 0x27
.long 63 ; 0x3f
.long 8 ; 0x8
.long 40 ; 0x28
.long 91 ; 0x5b
.long 66 ; 0x42
.long 49 ; 0x31
.long 94 ; 0x5e
.long 21 ; 0x15
.long 24 ; 0x18
.long 55 ; 0x37
.long 58 ; 0x3a
.long 5 ; 0x5
.long 66 ; 0x42
.long 73 ; 0x49
.long 99 ; 0x63
.long 26 ; 0x1a
.long 97 ; 0x61
.long 17 ; 0x11
.long 78 ; 0x4e
.long 78 ; 0x4e
.long 96 ; 0x60
.long 83 ; 0x53
.long 14 ; 0xe
.long 88 ; 0x58
.long 34 ; 0x22
.long 89 ; 0x59
.long 63 ; 0x3f
.long 72 ; 0x48
.long 21 ; 0x15
.long 36 ; 0x24
.long 23 ; 0x17
.long 9 ; 0x9
.long 75 ; 0x4b
.long 0 ; 0x0
.long 76 ; 0x4c
.long 44 ; 0x2c
.long 20 ; 0x14
.long 45 ; 0x2d
.long 35 ; 0x23
.long 14 ; 0xe
.long 0 ; 0x0
.long 61 ; 0x3d
.long 33 ; 0x21
.long 97 ; 0x61
.long 34 ; 0x22
.long 31 ; 0x1f
.long 33 ; 0x21
.long 95 ; 0x5f
.long 78 ; 0x4e
.long 17 ; 0x11
.long 53 ; 0x35
.long 28 ; 0x1c
.long 22 ; 0x16
.long 75 ; 0x4b
.long 31 ; 0x1f
.long 67 ; 0x43
.long 15 ; 0xf
.long 94 ; 0x5e
.long 3 ; 0x3
.long 80 ; 0x50
.long 4 ; 0x4
.long 62 ; 0x3e
.long 16 ; 0x10
.long 14 ; 0xe
.long 9 ; 0x9
.long 53 ; 0x35
.long 56 ; 0x38
.long 92 ; 0x5c
.long 16 ; 0x10
.long 39 ; 0x27
.long 5 ; 0x5
.long 42 ; 0x2a
.long 96 ; 0x60
.long 35 ; 0x23
.long 31 ; 0x1f
.long 47 ; 0x2f
.long 55 ; 0x37
.long 58 ; 0x3a
.long 88 ; 0x58
.long 24 ; 0x18
.long 0 ; 0x0
.long 17 ; 0x11
.long 54 ; 0x36
.long 24 ; 0x18
.long 36 ; 0x24
.long 29 ; 0x1d
.long 85 ; 0x55
.long 57 ; 0x39
.long 86 ; 0x56
.long 56 ; 0x38
.long 0 ; 0x0
.long 48 ; 0x30
.long 35 ; 0x23
.long 71 ; 0x47
.long 89 ; 0x59
.long 7 ; 0x7
.long 5 ; 0x5
.long 44 ; 0x2c
.long 44 ; 0x2c
.long 37 ; 0x25
.long 44 ; 0x2c
.long 60 ; 0x3c
.long 21 ; 0x15
.long 58 ; 0x3a
.long 51 ; 0x33
.long 54 ; 0x36
.long 17 ; 0x11
.long 58 ; 0x3a
.long 19 ; 0x13
.long 80 ; 0x50
.long 81 ; 0x51
.long 68 ; 0x44
.long 5 ; 0x5
.long 94 ; 0x5e
.long 47 ; 0x2f
.long 69 ; 0x45
.long 28 ; 0x1c
.long 73 ; 0x49
.long 92 ; 0x5c
.long 13 ; 0xd
.long 86 ; 0x56
.long 52 ; 0x34
.long 17 ; 0x11
.long 77 ; 0x4d
.long 4 ; 0x4
.long 89 ; 0x59
.long 55 ; 0x37
.long 40 ; 0x28
.long 4 ; 0x4
.long 52 ; 0x34
.long 8 ; 0x8
.long 83 ; 0x53
.long 97 ; 0x61
.long 35 ; 0x23
.long 99 ; 0x63
.long 16 ; 0x10
.long 7 ; 0x7
.long 97 ; 0x61
.long 57 ; 0x39
.long 32 ; 0x20
.long 16 ; 0x10
.long 26 ; 0x1a
.long 26 ; 0x1a
.long 79 ; 0x4f
.long 33 ; 0x21
.long 27 ; 0x1b
.long 98 ; 0x62
.long 66 ; 0x42
.long 88 ; 0x58
.long 36 ; 0x24
.long 68 ; 0x44
.long 87 ; 0x57
.long 57 ; 0x39
.long 62 ; 0x3e
.long 20 ; 0x14
.long 72 ; 0x48
.long 3 ; 0x3
.long 46 ; 0x2e
.long 33 ; 0x21
.long 67 ; 0x43
.long 46 ; 0x2e
.long 55 ; 0x37
.long 12 ; 0xc
.long 32 ; 0x20
.long 63 ; 0x3f
.long 93 ; 0x5d
.long 53 ; 0x35
.long 69 ; 0x45
.long 4 ; 0x4
.long 42 ; 0x2a
.long 16 ; 0x10
.long 73 ; 0x49
.long 38 ; 0x26
.long 25 ; 0x19
.long 39 ; 0x27
.long 11 ; 0xb
.long 24 ; 0x18
.long 94 ; 0x5e
.long 72 ; 0x48
.long 18 ; 0x12
.long 8 ; 0x8
.long 46 ; 0x2e
.long 29 ; 0x1d
.long 32 ; 0x20
.long 40 ; 0x28
.long 62 ; 0x3e
.long 76 ; 0x4c
.long 36 ; 0x24
.long 20 ; 0x14
.long 69 ; 0x45
.long 36 ; 0x24
.long 41 ; 0x29
.long 72 ; 0x48
.long 30 ; 0x1e
.long 23 ; 0x17
.long 88 ; 0x58
.long 34 ; 0x22
.long 62 ; 0x3e
.long 99 ; 0x63
.long 69 ; 0x45
.long 82 ; 0x52
.long 67 ; 0x43
.long 59 ; 0x3b
.long 85 ; 0x55
.long 74 ; 0x4a
.long 4 ; 0x4
.long 36 ; 0x24
.long 16 ; 0x10
.long 20 ; 0x14
.long 73 ; 0x49
.long 35 ; 0x23
.long 29 ; 0x1d
.long 78 ; 0x4e
.long 31 ; 0x1f
.long 90 ; 0x5a
.long 1 ; 0x1
.long 74 ; 0x4a
.long 31 ; 0x1f
.long 49 ; 0x31
.long 71 ; 0x47
.long 48 ; 0x30
.long 86 ; 0x56
.long 81 ; 0x51
.long 16 ; 0x10
.long 23 ; 0x17
.long 57 ; 0x39
.long 5 ; 0x5
.long 54 ; 0x36
.long 1 ; 0x1
.long 70 ; 0x46
.long 54 ; 0x36
.long 71 ; 0x47
.long 83 ; 0x53
.long 51 ; 0x33
.long 54 ; 0x36
.long 69 ; 0x45
.long 16 ; 0x10
.long 92 ; 0x5c
.long 33 ; 0x21
.long 48 ; 0x30
.long 61 ; 0x3d
.long 43 ; 0x2b
.long 52 ; 0x34
.long 1 ; 0x1
.long 89 ; 0x59
.long 19 ; 0x13
.long 67 ; 0x43
.long 48 ; 0x30
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%u\n"
.subsections_via_symbols
| [
222,
181
] | .text
.file "problem11.c"
.globl main # -- Begin function main
.p2align 4, 0x90
.type main,@function
main: # @main
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $1664, %rsp # imm = 0x680
movl $0, -4(%rbp)
leaq -1616(%rbp), %rdi
leaq .L__const.main.grid(%rip), %rsi
movl $1600, %edx # imm = 0x640
callq memcpy@PLT
movl $0, -1620(%rbp)
movl $0, -1624(%rbp)
.LBB0_1: # =>This Loop Header: Depth=1
# Child Loop BB0_3 Depth 2
cmpl $17, -1624(%rbp)
jae .LBB0_8
# %bb.2: # in Loop: Header=BB0_1 Depth=1
movl $0, -1628(%rbp)
.LBB0_3: # Parent Loop BB0_1 Depth=1
# => This Inner Loop Header: Depth=2
cmpl $17, -1628(%rbp)
jae .LBB0_6
# %bb.4: # in Loop: Header=BB0_3 Depth=2
movl -1624(%rbp), %eax
movl %eax, %ecx
leaq -1616(%rbp), %rax
imulq $80, %rcx, %rcx
addq %rcx, %rax
movl -1628(%rbp), %ecx
# kill: def $rcx killed $ecx
movl (%rax,%rcx,4), %eax
movl -1624(%rbp), %ecx
movl %ecx, %edx
leaq -1616(%rbp), %rcx
imulq $80, %rdx, %rdx
addq %rdx, %rcx
movl -1628(%rbp), %edx
addl $1, %edx
movl %edx, %edx
# kill: def $rdx killed $edx
imull (%rcx,%rdx,4), %eax
movl -1624(%rbp), %ecx
movl %ecx, %edx
leaq -1616(%rbp), %rcx
imulq $80, %rdx, %rdx
addq %rdx, %rcx
movl -1628(%rbp), %edx
addl $2, %edx
movl %edx, %edx
# kill: def $rdx killed $edx
imull (%rcx,%rdx,4), %eax
movl -1624(%rbp), %ecx
movl %ecx, %edx
leaq -1616(%rbp), %rcx
imulq $80, %rdx, %rdx
addq %rdx, %rcx
movl -1628(%rbp), %edx
addl $3, %edx
movl %edx, %edx
# kill: def $rdx killed $edx
imull (%rcx,%rdx,4), %eax
movl %eax, -1632(%rbp)
movl -1628(%rbp), %eax
movl %eax, %ecx
leaq -1616(%rbp), %rax
imulq $80, %rcx, %rcx
addq %rcx, %rax
movl -1624(%rbp), %ecx
# kill: def $rcx killed $ecx
movl (%rax,%rcx,4), %eax
movl -1628(%rbp), %ecx
addl $1, %ecx
movl %ecx, %ecx
movl %ecx, %edx
leaq -1616(%rbp), %rcx
imulq $80, %rdx, %rdx
addq %rdx, %rcx
movl -1624(%rbp), %edx
# kill: def $rdx killed $edx
imull (%rcx,%rdx,4), %eax
movl -1628(%rbp), %ecx
addl $2, %ecx
movl %ecx, %ecx
movl %ecx, %edx
leaq -1616(%rbp), %rcx
imulq $80, %rdx, %rdx
addq %rdx, %rcx
movl -1624(%rbp), %edx
# kill: def $rdx killed $edx
imull (%rcx,%rdx,4), %eax
movl -1628(%rbp), %ecx
addl $3, %ecx
movl %ecx, %ecx
movl %ecx, %edx
leaq -1616(%rbp), %rcx
imulq $80, %rdx, %rdx
addq %rdx, %rcx
movl -1624(%rbp), %edx
# kill: def $rdx killed $edx
imull (%rcx,%rdx,4), %eax
movl %eax, -1636(%rbp)
movl -1624(%rbp), %eax
movl %eax, %ecx
leaq -1616(%rbp), %rax
imulq $80, %rcx, %rcx
addq %rcx, %rax
movl -1628(%rbp), %ecx
# kill: def $rcx killed $ecx
movl (%rax,%rcx,4), %eax
movl -1624(%rbp), %ecx
addl $1, %ecx
movl %ecx, %ecx
movl %ecx, %edx
leaq -1616(%rbp), %rcx
imulq $80, %rdx, %rdx
addq %rdx, %rcx
movl -1628(%rbp), %edx
addl $1, %edx
movl %edx, %edx
# kill: def $rdx killed $edx
imull (%rcx,%rdx,4), %eax
movl -1624(%rbp), %ecx
addl $2, %ecx
movl %ecx, %ecx
movl %ecx, %edx
leaq -1616(%rbp), %rcx
imulq $80, %rdx, %rdx
addq %rdx, %rcx
movl -1628(%rbp), %edx
addl $2, %edx
movl %edx, %edx
# kill: def $rdx killed $edx
imull (%rcx,%rdx,4), %eax
movl -1624(%rbp), %ecx
addl $3, %ecx
movl %ecx, %ecx
movl %ecx, %edx
leaq -1616(%rbp), %rcx
imulq $80, %rdx, %rdx
addq %rdx, %rcx
movl -1628(%rbp), %edx
addl $3, %edx
movl %edx, %edx
# kill: def $rdx killed $edx
imull (%rcx,%rdx,4), %eax
movl %eax, -1640(%rbp)
movl -1624(%rbp), %eax
movl %eax, %ecx
leaq -1616(%rbp), %rax
imulq $80, %rcx, %rcx
addq %rcx, %rax
movl $20, %ecx
subl -1628(%rbp), %ecx
subl $1, %ecx
movl %ecx, %ecx
# kill: def $rcx killed $ecx
movl (%rax,%rcx,4), %eax
movl -1624(%rbp), %ecx
addl $1, %ecx
movl %ecx, %ecx
movl %ecx, %edx
leaq -1616(%rbp), %rcx
imulq $80, %rdx, %rdx
addq %rdx, %rcx
movl $20, %edx
subl -1628(%rbp), %edx
subl $2, %edx
movl %edx, %edx
# kill: def $rdx killed $edx
imull (%rcx,%rdx,4), %eax
movl -1624(%rbp), %ecx
addl $2, %ecx
movl %ecx, %ecx
movl %ecx, %edx
leaq -1616(%rbp), %rcx
imulq $80, %rdx, %rdx
addq %rdx, %rcx
movl $20, %edx
subl -1628(%rbp), %edx
subl $3, %edx
movl %edx, %edx
# kill: def $rdx killed $edx
imull (%rcx,%rdx,4), %eax
movl -1624(%rbp), %ecx
addl $3, %ecx
movl %ecx, %ecx
movl %ecx, %edx
leaq -1616(%rbp), %rcx
imulq $80, %rdx, %rdx
addq %rdx, %rcx
movl $20, %edx
subl -1628(%rbp), %edx
subl $4, %edx
movl %edx, %edx
# kill: def $rdx killed $edx
imull (%rcx,%rdx,4), %eax
movl %eax, -1644(%rbp)
movl -1620(%rbp), %eax
movl %eax, -1648(%rbp) # 4-byte Spill
movl -1632(%rbp), %eax
movl %eax, -1652(%rbp) # 4-byte Spill
movl -1636(%rbp), %eax
movl %eax, -1656(%rbp) # 4-byte Spill
movl -1640(%rbp), %edi
movl -1644(%rbp), %esi
callq max
movl -1656(%rbp), %edi # 4-byte Reload
movl %eax, %esi
callq max
movl -1652(%rbp), %edi # 4-byte Reload
movl %eax, %esi
callq max
movl -1648(%rbp), %edi # 4-byte Reload
movl %eax, %esi
callq max
movl %eax, -1620(%rbp)
# %bb.5: # in Loop: Header=BB0_3 Depth=2
movl -1628(%rbp), %eax
addl $1, %eax
movl %eax, -1628(%rbp)
jmp .LBB0_3
.LBB0_6: # in Loop: Header=BB0_1 Depth=1
jmp .LBB0_7
.LBB0_7: # in Loop: Header=BB0_1 Depth=1
movl -1624(%rbp), %eax
addl $1, %eax
movl %eax, -1624(%rbp)
jmp .LBB0_1
.LBB0_8:
movl -1620(%rbp), %esi
leaq .L.str(%rip), %rdi
movb $0, %al
callq printf@PLT
xorl %eax, %eax
addq $1664, %rsp # imm = 0x680
popq %rbp
.cfi_def_cfa %rsp, 8
retq
.Lfunc_end0:
.size main, .Lfunc_end0-main
.cfi_endproc
# -- End function
.p2align 4, 0x90 # -- Begin function max
.type max,@function
max: # @max
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl %edi, -4(%rbp)
movl %esi, -8(%rbp)
movl -4(%rbp), %eax
cmpl -8(%rbp), %eax
jbe .LBB1_2
# %bb.1:
movl -4(%rbp), %eax
movl %eax, -12(%rbp) # 4-byte Spill
jmp .LBB1_3
.LBB1_2:
movl -8(%rbp), %eax
movl %eax, -12(%rbp) # 4-byte Spill
.LBB1_3:
movl -12(%rbp), %eax # 4-byte Reload
popq %rbp
.cfi_def_cfa %rsp, 8
retq
.Lfunc_end1:
.size max, .Lfunc_end1-max
.cfi_endproc
# -- End function
.type .L__const.main.grid,@object # @__const.main.grid
.section .rodata,"a",@progbits
.p2align 4
.L__const.main.grid:
.long 8 # 0x8
.long 2 # 0x2
.long 22 # 0x16
.long 97 # 0x61
.long 38 # 0x26
.long 15 # 0xf
.long 0 # 0x0
.long 40 # 0x28
.long 0 # 0x0
.long 75 # 0x4b
.long 4 # 0x4
.long 5 # 0x5
.long 7 # 0x7
.long 78 # 0x4e
.long 52 # 0x34
.long 12 # 0xc
.long 50 # 0x32
.long 77 # 0x4d
.long 91 # 0x5b
.long 8 # 0x8
.long 49 # 0x31
.long 49 # 0x31
.long 99 # 0x63
.long 40 # 0x28
.long 17 # 0x11
.long 81 # 0x51
.long 18 # 0x12
.long 57 # 0x39
.long 60 # 0x3c
.long 87 # 0x57
.long 17 # 0x11
.long 40 # 0x28
.long 98 # 0x62
.long 43 # 0x2b
.long 69 # 0x45
.long 48 # 0x30
.long 4 # 0x4
.long 56 # 0x38
.long 62 # 0x3e
.long 0 # 0x0
.long 81 # 0x51
.long 49 # 0x31
.long 31 # 0x1f
.long 73 # 0x49
.long 55 # 0x37
.long 79 # 0x4f
.long 14 # 0xe
.long 29 # 0x1d
.long 93 # 0x5d
.long 71 # 0x47
.long 40 # 0x28
.long 67 # 0x43
.long 53 # 0x35
.long 88 # 0x58
.long 30 # 0x1e
.long 3 # 0x3
.long 49 # 0x31
.long 13 # 0xd
.long 36 # 0x24
.long 65 # 0x41
.long 52 # 0x34
.long 70 # 0x46
.long 95 # 0x5f
.long 23 # 0x17
.long 4 # 0x4
.long 60 # 0x3c
.long 11 # 0xb
.long 42 # 0x2a
.long 69 # 0x45
.long 24 # 0x18
.long 68 # 0x44
.long 56 # 0x38
.long 1 # 0x1
.long 32 # 0x20
.long 56 # 0x38
.long 71 # 0x47
.long 37 # 0x25
.long 2 # 0x2
.long 36 # 0x24
.long 91 # 0x5b
.long 22 # 0x16
.long 31 # 0x1f
.long 16 # 0x10
.long 71 # 0x47
.long 51 # 0x33
.long 67 # 0x43
.long 63 # 0x3f
.long 89 # 0x59
.long 41 # 0x29
.long 92 # 0x5c
.long 36 # 0x24
.long 54 # 0x36
.long 22 # 0x16
.long 40 # 0x28
.long 40 # 0x28
.long 28 # 0x1c
.long 66 # 0x42
.long 33 # 0x21
.long 13 # 0xd
.long 80 # 0x50
.long 24 # 0x18
.long 47 # 0x2f
.long 32 # 0x20
.long 60 # 0x3c
.long 99 # 0x63
.long 3 # 0x3
.long 45 # 0x2d
.long 2 # 0x2
.long 44 # 0x2c
.long 75 # 0x4b
.long 33 # 0x21
.long 53 # 0x35
.long 78 # 0x4e
.long 36 # 0x24
.long 84 # 0x54
.long 20 # 0x14
.long 35 # 0x23
.long 17 # 0x11
.long 12 # 0xc
.long 50 # 0x32
.long 32 # 0x20
.long 98 # 0x62
.long 81 # 0x51
.long 28 # 0x1c
.long 64 # 0x40
.long 23 # 0x17
.long 67 # 0x43
.long 10 # 0xa
.long 26 # 0x1a
.long 38 # 0x26
.long 40 # 0x28
.long 67 # 0x43
.long 59 # 0x3b
.long 54 # 0x36
.long 70 # 0x46
.long 66 # 0x42
.long 18 # 0x12
.long 38 # 0x26
.long 64 # 0x40
.long 70 # 0x46
.long 67 # 0x43
.long 26 # 0x1a
.long 20 # 0x14
.long 68 # 0x44
.long 2 # 0x2
.long 62 # 0x3e
.long 12 # 0xc
.long 20 # 0x14
.long 95 # 0x5f
.long 63 # 0x3f
.long 94 # 0x5e
.long 39 # 0x27
.long 63 # 0x3f
.long 8 # 0x8
.long 40 # 0x28
.long 91 # 0x5b
.long 66 # 0x42
.long 49 # 0x31
.long 94 # 0x5e
.long 21 # 0x15
.long 24 # 0x18
.long 55 # 0x37
.long 58 # 0x3a
.long 5 # 0x5
.long 66 # 0x42
.long 73 # 0x49
.long 99 # 0x63
.long 26 # 0x1a
.long 97 # 0x61
.long 17 # 0x11
.long 78 # 0x4e
.long 78 # 0x4e
.long 96 # 0x60
.long 83 # 0x53
.long 14 # 0xe
.long 88 # 0x58
.long 34 # 0x22
.long 89 # 0x59
.long 63 # 0x3f
.long 72 # 0x48
.long 21 # 0x15
.long 36 # 0x24
.long 23 # 0x17
.long 9 # 0x9
.long 75 # 0x4b
.long 0 # 0x0
.long 76 # 0x4c
.long 44 # 0x2c
.long 20 # 0x14
.long 45 # 0x2d
.long 35 # 0x23
.long 14 # 0xe
.long 0 # 0x0
.long 61 # 0x3d
.long 33 # 0x21
.long 97 # 0x61
.long 34 # 0x22
.long 31 # 0x1f
.long 33 # 0x21
.long 95 # 0x5f
.long 78 # 0x4e
.long 17 # 0x11
.long 53 # 0x35
.long 28 # 0x1c
.long 22 # 0x16
.long 75 # 0x4b
.long 31 # 0x1f
.long 67 # 0x43
.long 15 # 0xf
.long 94 # 0x5e
.long 3 # 0x3
.long 80 # 0x50
.long 4 # 0x4
.long 62 # 0x3e
.long 16 # 0x10
.long 14 # 0xe
.long 9 # 0x9
.long 53 # 0x35
.long 56 # 0x38
.long 92 # 0x5c
.long 16 # 0x10
.long 39 # 0x27
.long 5 # 0x5
.long 42 # 0x2a
.long 96 # 0x60
.long 35 # 0x23
.long 31 # 0x1f
.long 47 # 0x2f
.long 55 # 0x37
.long 58 # 0x3a
.long 88 # 0x58
.long 24 # 0x18
.long 0 # 0x0
.long 17 # 0x11
.long 54 # 0x36
.long 24 # 0x18
.long 36 # 0x24
.long 29 # 0x1d
.long 85 # 0x55
.long 57 # 0x39
.long 86 # 0x56
.long 56 # 0x38
.long 0 # 0x0
.long 48 # 0x30
.long 35 # 0x23
.long 71 # 0x47
.long 89 # 0x59
.long 7 # 0x7
.long 5 # 0x5
.long 44 # 0x2c
.long 44 # 0x2c
.long 37 # 0x25
.long 44 # 0x2c
.long 60 # 0x3c
.long 21 # 0x15
.long 58 # 0x3a
.long 51 # 0x33
.long 54 # 0x36
.long 17 # 0x11
.long 58 # 0x3a
.long 19 # 0x13
.long 80 # 0x50
.long 81 # 0x51
.long 68 # 0x44
.long 5 # 0x5
.long 94 # 0x5e
.long 47 # 0x2f
.long 69 # 0x45
.long 28 # 0x1c
.long 73 # 0x49
.long 92 # 0x5c
.long 13 # 0xd
.long 86 # 0x56
.long 52 # 0x34
.long 17 # 0x11
.long 77 # 0x4d
.long 4 # 0x4
.long 89 # 0x59
.long 55 # 0x37
.long 40 # 0x28
.long 4 # 0x4
.long 52 # 0x34
.long 8 # 0x8
.long 83 # 0x53
.long 97 # 0x61
.long 35 # 0x23
.long 99 # 0x63
.long 16 # 0x10
.long 7 # 0x7
.long 97 # 0x61
.long 57 # 0x39
.long 32 # 0x20
.long 16 # 0x10
.long 26 # 0x1a
.long 26 # 0x1a
.long 79 # 0x4f
.long 33 # 0x21
.long 27 # 0x1b
.long 98 # 0x62
.long 66 # 0x42
.long 88 # 0x58
.long 36 # 0x24
.long 68 # 0x44
.long 87 # 0x57
.long 57 # 0x39
.long 62 # 0x3e
.long 20 # 0x14
.long 72 # 0x48
.long 3 # 0x3
.long 46 # 0x2e
.long 33 # 0x21
.long 67 # 0x43
.long 46 # 0x2e
.long 55 # 0x37
.long 12 # 0xc
.long 32 # 0x20
.long 63 # 0x3f
.long 93 # 0x5d
.long 53 # 0x35
.long 69 # 0x45
.long 4 # 0x4
.long 42 # 0x2a
.long 16 # 0x10
.long 73 # 0x49
.long 38 # 0x26
.long 25 # 0x19
.long 39 # 0x27
.long 11 # 0xb
.long 24 # 0x18
.long 94 # 0x5e
.long 72 # 0x48
.long 18 # 0x12
.long 8 # 0x8
.long 46 # 0x2e
.long 29 # 0x1d
.long 32 # 0x20
.long 40 # 0x28
.long 62 # 0x3e
.long 76 # 0x4c
.long 36 # 0x24
.long 20 # 0x14
.long 69 # 0x45
.long 36 # 0x24
.long 41 # 0x29
.long 72 # 0x48
.long 30 # 0x1e
.long 23 # 0x17
.long 88 # 0x58
.long 34 # 0x22
.long 62 # 0x3e
.long 99 # 0x63
.long 69 # 0x45
.long 82 # 0x52
.long 67 # 0x43
.long 59 # 0x3b
.long 85 # 0x55
.long 74 # 0x4a
.long 4 # 0x4
.long 36 # 0x24
.long 16 # 0x10
.long 20 # 0x14
.long 73 # 0x49
.long 35 # 0x23
.long 29 # 0x1d
.long 78 # 0x4e
.long 31 # 0x1f
.long 90 # 0x5a
.long 1 # 0x1
.long 74 # 0x4a
.long 31 # 0x1f
.long 49 # 0x31
.long 71 # 0x47
.long 48 # 0x30
.long 86 # 0x56
.long 81 # 0x51
.long 16 # 0x10
.long 23 # 0x17
.long 57 # 0x39
.long 5 # 0x5
.long 54 # 0x36
.long 1 # 0x1
.long 70 # 0x46
.long 54 # 0x36
.long 71 # 0x47
.long 83 # 0x53
.long 51 # 0x33
.long 54 # 0x36
.long 69 # 0x45
.long 16 # 0x10
.long 92 # 0x5c
.long 33 # 0x21
.long 48 # 0x30
.long 61 # 0x3d
.long 43 # 0x2b
.long 52 # 0x34
.long 1 # 0x1
.long 89 # 0x59
.long 19 # 0x13
.long 67 # 0x43
.long 48 # 0x30
.size .L__const.main.grid, 1600
.type .L.str,@object # @.str
.section .rodata.str1.1,"aMS",@progbits,1
.L.str:
.asciz "%u\n"
.size .L.str, 4
.ident "Ubuntu clang version 14.0.0-1ubuntu1.1"
.section ".note.GNU-stack","",@progbits
.addrsig
.addrsig_sym max
.addrsig_sym printf
| [
759,
381
] |
problem9.c | .section __TEXT,__text,regular,pure_instructions
.build_version macos, 12, 0 sdk_version 12, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
mov w8, #1
stur w8, [x29, #-8]
b LBB0_1
LBB0_1: ; =>This Loop Header: Depth=1
; Child Loop BB0_3 Depth 2
ldur w8, [x29, #-8]
subs w8, w8, #333
b.gt LBB0_10
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-8]
stur w8, [x29, #-12]
b LBB0_3
LBB0_3: ; Parent Loop BB0_1 Depth=1
; => This Inner Loop Header: Depth=2
ldur w8, [x29, #-12]
subs w8, w8, #666
b.gt LBB0_8
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=2
ldur w9, [x29, #-8]
mov w8, #1000
subs w8, w8, w9
ldur w9, [x29, #-12]
subs w8, w8, w9
str w8, [sp, #16]
ldur w8, [x29, #-8]
ldur w9, [x29, #-8]
mul w8, w8, w9
ldur w9, [x29, #-12]
ldur w10, [x29, #-12]
mul w9, w9, w10
add w8, w8, w9
ldr w9, [sp, #16]
ldr w10, [sp, #16]
mul w9, w9, w10
subs w8, w8, w9
b.ne LBB0_6
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_3 Depth=2
ldur w8, [x29, #-8]
ldur w9, [x29, #-12]
mul w8, w8, w9
ldr w9, [sp, #16]
mul w10, w8, w9
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
mov x9, sp
; implicit-def: $x8
mov x8, x10
str x8, [x9]
bl _printf
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_3 Depth=2
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_3 Depth=2
ldur w8, [x29, #-12]
add w8, w8, #1
stur w8, [x29, #-12]
b LBB0_3
LBB0_8: ; in Loop: Header=BB0_1 Depth=1
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-8]
add w8, w8, #1
stur w8, [x29, #-8]
b LBB0_1
LBB0_10:
mov w0, #0
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%d\n"
.subsections_via_symbols
| [
222,
180
] | .text
.file "problem9.c"
.globl main # -- Begin function main
.p2align 4, 0x90
.type main,@function
main: # @main
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl $0, -4(%rbp)
movl $1, -8(%rbp)
.LBB0_1: # =>This Loop Header: Depth=1
# Child Loop BB0_3 Depth 2
cmpl $333, -8(%rbp) # imm = 0x14D
jg .LBB0_10
# %bb.2: # in Loop: Header=BB0_1 Depth=1
movl -8(%rbp), %eax
movl %eax, -12(%rbp)
.LBB0_3: # Parent Loop BB0_1 Depth=1
# => This Inner Loop Header: Depth=2
cmpl $666, -12(%rbp) # imm = 0x29A
jg .LBB0_8
# %bb.4: # in Loop: Header=BB0_3 Depth=2
movl $1000, %eax # imm = 0x3E8
subl -8(%rbp), %eax
subl -12(%rbp), %eax
movl %eax, -16(%rbp)
movl -8(%rbp), %eax
imull -8(%rbp), %eax
movl -12(%rbp), %ecx
imull -12(%rbp), %ecx
addl %ecx, %eax
movl -16(%rbp), %ecx
imull -16(%rbp), %ecx
cmpl %ecx, %eax
jne .LBB0_6
# %bb.5: # in Loop: Header=BB0_3 Depth=2
movl -8(%rbp), %esi
imull -12(%rbp), %esi
imull -16(%rbp), %esi
leaq .L.str(%rip), %rdi
movb $0, %al
callq printf@PLT
.LBB0_6: # in Loop: Header=BB0_3 Depth=2
jmp .LBB0_7
.LBB0_7: # in Loop: Header=BB0_3 Depth=2
movl -12(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
jmp .LBB0_3
.LBB0_8: # in Loop: Header=BB0_1 Depth=1
jmp .LBB0_9
.LBB0_9: # in Loop: Header=BB0_1 Depth=1
movl -8(%rbp), %eax
addl $1, %eax
movl %eax, -8(%rbp)
jmp .LBB0_1
.LBB0_10:
xorl %eax, %eax
addq $16, %rsp
popq %rbp
.cfi_def_cfa %rsp, 8
retq
.Lfunc_end0:
.size main, .Lfunc_end0-main
.cfi_endproc
# -- End function
.type .L.str,@object # @.str
.section .rodata.str1.1,"aMS",@progbits,1
.L.str:
.asciz "%d\n"
.size .L.str, 4
.ident "Ubuntu clang version 14.0.0-1ubuntu1.1"
.section ".note.GNU-stack","",@progbits
.addrsig
.addrsig_sym printf
| [
441,
344
] |
problem4.c | .section __TEXT,__text,regular,pure_instructions
.build_version macos, 12, 0 sdk_version 12, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
str wzr, [sp, #16]
mov w8, #100
stur w8, [x29, #-8]
b LBB0_1
LBB0_1: ; =>This Loop Header: Depth=1
; Child Loop BB0_3 Depth 2
ldur w8, [x29, #-8]
subs w8, w8, #999
b.hi LBB0_11
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
mov w8, #100
stur w8, [x29, #-12]
b LBB0_3
LBB0_3: ; Parent Loop BB0_1 Depth=1
; => This Inner Loop Header: Depth=2
ldur w8, [x29, #-12]
subs w8, w8, #999
b.hi LBB0_9
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=2
ldur w8, [x29, #-8]
ldur w9, [x29, #-12]
mul w8, w8, w9
str w8, [sp, #12]
ldr w0, [sp, #12]
bl _is_palindromic
cbz w0, LBB0_7
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_3 Depth=2
ldr w8, [sp, #12]
ldr w9, [sp, #16]
subs w8, w8, w9
b.ls LBB0_7
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_3 Depth=2
ldr w8, [sp, #12]
str w8, [sp, #16]
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_3 Depth=2
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_3 Depth=2
ldur w8, [x29, #-12]
add w8, w8, #1
stur w8, [x29, #-12]
b LBB0_3
LBB0_9: ; in Loop: Header=BB0_1 Depth=1
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-8]
add w8, w8, #1
stur w8, [x29, #-8]
b LBB0_1
LBB0_11:
ldr w9, [sp, #16]
; implicit-def: $x8
mov x8, x9
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
mov x9, sp
str x8, [x9]
bl _printf
mov w0, #0
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function is_palindromic
_is_palindromic: ; @is_palindromic
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, #12]
str wzr, [sp, #8]
ldr w8, [sp, #12]
str w8, [sp, #4]
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #4]
cbz w8, LBB1_3
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
ldr w8, [sp, #8]
mov w9, #10
mul w8, w9, w8
ldr w10, [sp, #4]
udiv w11, w10, w9
mul w11, w11, w9
subs w10, w10, w11
add w8, w8, w10
str w8, [sp, #8]
ldr w8, [sp, #4]
udiv w8, w8, w9
str w8, [sp, #4]
b LBB1_1
LBB1_3:
ldr w8, [sp, #8]
ldr w9, [sp, #12]
subs w8, w8, w9
cset w8, eq
and w0, w8, #0x1
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%u\n"
.subsections_via_symbols
| [
222,
180
] | .text
.file "problem4.c"
.globl main # -- Begin function main
.p2align 4, 0x90
.type main,@function
main: # @main
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movl $0, -4(%rbp)
movl $0, -16(%rbp)
movl $100, -8(%rbp)
.LBB0_1: # =>This Loop Header: Depth=1
# Child Loop BB0_3 Depth 2
cmpl $999, -8(%rbp) # imm = 0x3E7
ja .LBB0_11
# %bb.2: # in Loop: Header=BB0_1 Depth=1
movl $100, -12(%rbp)
.LBB0_3: # Parent Loop BB0_1 Depth=1
# => This Inner Loop Header: Depth=2
cmpl $999, -12(%rbp) # imm = 0x3E7
ja .LBB0_9
# %bb.4: # in Loop: Header=BB0_3 Depth=2
movl -8(%rbp), %eax
imull -12(%rbp), %eax
movl %eax, -20(%rbp)
movl -20(%rbp), %edi
callq is_palindromic
cmpl $0, %eax
je .LBB0_7
# %bb.5: # in Loop: Header=BB0_3 Depth=2
movl -20(%rbp), %eax
cmpl -16(%rbp), %eax
jbe .LBB0_7
# %bb.6: # in Loop: Header=BB0_3 Depth=2
movl -20(%rbp), %eax
movl %eax, -16(%rbp)
.LBB0_7: # in Loop: Header=BB0_3 Depth=2
jmp .LBB0_8
.LBB0_8: # in Loop: Header=BB0_3 Depth=2
movl -12(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
jmp .LBB0_3
.LBB0_9: # in Loop: Header=BB0_1 Depth=1
jmp .LBB0_10
.LBB0_10: # in Loop: Header=BB0_1 Depth=1
movl -8(%rbp), %eax
addl $1, %eax
movl %eax, -8(%rbp)
jmp .LBB0_1
.LBB0_11:
movl -16(%rbp), %esi
leaq .L.str(%rip), %rdi
movb $0, %al
callq printf@PLT
xorl %eax, %eax
addq $32, %rsp
popq %rbp
.cfi_def_cfa %rsp, 8
retq
.Lfunc_end0:
.size main, .Lfunc_end0-main
.cfi_endproc
# -- End function
.p2align 4, 0x90 # -- Begin function is_palindromic
.type is_palindromic,@function
is_palindromic: # @is_palindromic
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl %edi, -4(%rbp)
movl $0, -8(%rbp)
movl -4(%rbp), %eax
movl %eax, -12(%rbp)
.LBB1_1: # =>This Inner Loop Header: Depth=1
cmpl $0, -12(%rbp)
je .LBB1_3
# %bb.2: # in Loop: Header=BB1_1 Depth=1
imull $10, -8(%rbp), %eax
movl %eax, -16(%rbp) # 4-byte Spill
movl -12(%rbp), %eax
movl $10, %ecx
xorl %edx, %edx
divl %ecx
movl -16(%rbp), %eax # 4-byte Reload
addl %edx, %eax
movl %eax, -8(%rbp)
movl -12(%rbp), %eax
movl $10, %ecx
xorl %edx, %edx
divl %ecx
movl %eax, -12(%rbp)
jmp .LBB1_1
.LBB1_3:
movl -8(%rbp), %eax
cmpl -4(%rbp), %eax
sete %al
andb $1, %al
movzbl %al, %eax
popq %rbp
.cfi_def_cfa %rsp, 8
retq
.Lfunc_end1:
.size is_palindromic, .Lfunc_end1-is_palindromic
.cfi_endproc
# -- End function
.type .L.str,@object # @.str
.section .rodata.str1.1,"aMS",@progbits,1
.L.str:
.asciz "%u\n"
.size .L.str, 4
.ident "Ubuntu clang version 14.0.0-1ubuntu1.1"
.section ".note.GNU-stack","",@progbits
.addrsig
.addrsig_sym is_palindromic
.addrsig_sym printf
| [
429,
344
] |
problem8.c | .section __TEXT,__text,regular,pure_instructions
.build_version macos, 12, 0 sdk_version 12, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
sub sp, sp, #1056
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w27, -24
.cfi_offset w28, -32
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-24]
str wzr, [sp, #40]
add x0, sp, #47
adrp x1, l___const.main.str@PAGE
add x1, x1, l___const.main.str@PAGEOFF
mov x2, #1001
bl _memcpy
mov x8, #1000
str x8, [sp, #32]
str wzr, [sp, #20]
str xzr, [sp, #24]
b LBB0_1
LBB0_1: ; =>This Loop Header: Depth=1
; Child Loop BB0_3 Depth 2
ldr x8, [sp, #24]
ldr x9, [sp, #32]
subs x9, x9, #4
subs x8, x8, x9
b.hs LBB0_10
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
mov w8, #1
str w8, [sp, #16]
str xzr, [sp, #8]
b LBB0_3
LBB0_3: ; Parent Loop BB0_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr x8, [sp, #8]
subs x8, x8, #5
b.hs LBB0_6
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=2
ldr x8, [sp, #24]
ldr x9, [sp, #8]
add x9, x8, x9
add x8, sp, #47
ldrsb w8, [x8, x9]
subs w9, w8, #48
ldr w8, [sp, #16]
mul w8, w8, w9
str w8, [sp, #16]
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_3 Depth=2
ldr x8, [sp, #8]
add x8, x8, #1
str x8, [sp, #8]
b LBB0_3
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #16]
ldr w9, [sp, #20]
subs w8, w8, w9
b.ls LBB0_8
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #16]
str w8, [sp, #20]
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_1 Depth=1
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #24]
add x8, x8, #1
str x8, [sp, #24]
b LBB0_1
LBB0_10:
ldr w9, [sp, #20]
; implicit-def: $x8
mov x8, x9
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
mov x9, sp
str x8, [x9]
bl _printf
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
ldur x9, [x29, #-24]
subs x8, x8, x9
b.ne LBB0_12
b LBB0_11
LBB0_11:
mov w0, #0
add sp, sp, #1056
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x28, x27, [sp], #32 ; 16-byte Folded Reload
ret
LBB0_12:
bl ___stack_chk_fail
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l___const.main.str: ; @__const.main.str
.asciz "7316717653133062491922511967442657474235534919493496983520312774506326239578318016984801869478851843858615607891129494954595017379583319528532088055111254069874715852386305071569329096329522744304355766896648950445244523161731856403098711121722383113622298934233803081353362766142828064444866452387493035890729629049156044077239071381051585930796086670172427121883998797908792274921901699720888093776657273330010533678812202354218097512545405947522435258490771167055601360483958644670632441572215539753697817977846174064955149290862569321978468622482839722413756570560574902614079729686524145351004748216637048440319989000889524345065854122758866688116427171479924442928230863465674813919123162824586178664583591245665294765456828489128831426076900422421902267105562632111110937054421750694165896040807198403850962455444362981230987879927244284909188845801561660979191338754992005240636899125607176060588611646710940507754100225698315520005593572972571636269561882670428252483600823257530420752963450"
l_.str: ; @.str
.asciz "%u\n"
.subsections_via_symbols
| [
222,
180
] | .text
.file "problem8.c"
.globl main # -- Begin function main
.p2align 4, 0x90
.type main,@function
main: # @main
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $1040, %rsp # imm = 0x410
movl $0, -4(%rbp)
leaq -1008(%rbp), %rdi
leaq .L__const.main.str(%rip), %rsi
movl $1001, %edx # imm = 0x3E9
callq memcpy@PLT
movq $1000, -1016(%rbp) # imm = 0x3E8
movl $0, -1028(%rbp)
movq $0, -1024(%rbp)
.LBB0_1: # =>This Loop Header: Depth=1
# Child Loop BB0_3 Depth 2
movq -1024(%rbp), %rax
movq -1016(%rbp), %rcx
subq $4, %rcx
cmpq %rcx, %rax
jae .LBB0_10
# %bb.2: # in Loop: Header=BB0_1 Depth=1
movl $1, -1032(%rbp)
movq $0, -1040(%rbp)
.LBB0_3: # Parent Loop BB0_1 Depth=1
# => This Inner Loop Header: Depth=2
cmpq $5, -1040(%rbp)
jae .LBB0_6
# %bb.4: # in Loop: Header=BB0_3 Depth=2
movq -1024(%rbp), %rax
addq -1040(%rbp), %rax
movsbl -1008(%rbp,%rax), %eax
subl $48, %eax
imull -1032(%rbp), %eax
movl %eax, -1032(%rbp)
# %bb.5: # in Loop: Header=BB0_3 Depth=2
movq -1040(%rbp), %rax
addq $1, %rax
movq %rax, -1040(%rbp)
jmp .LBB0_3
.LBB0_6: # in Loop: Header=BB0_1 Depth=1
movl -1032(%rbp), %eax
cmpl -1028(%rbp), %eax
jbe .LBB0_8
# %bb.7: # in Loop: Header=BB0_1 Depth=1
movl -1032(%rbp), %eax
movl %eax, -1028(%rbp)
.LBB0_8: # in Loop: Header=BB0_1 Depth=1
jmp .LBB0_9
.LBB0_9: # in Loop: Header=BB0_1 Depth=1
movq -1024(%rbp), %rax
addq $1, %rax
movq %rax, -1024(%rbp)
jmp .LBB0_1
.LBB0_10:
movl -1028(%rbp), %esi
leaq .L.str(%rip), %rdi
movb $0, %al
callq printf@PLT
xorl %eax, %eax
addq $1040, %rsp # imm = 0x410
popq %rbp
.cfi_def_cfa %rsp, 8
retq
.Lfunc_end0:
.size main, .Lfunc_end0-main
.cfi_endproc
# -- End function
.type .L__const.main.str,@object # @__const.main.str
.section .rodata.str1.16,"aMS",@progbits,1
.p2align 4
.L__const.main.str:
.asciz "7316717653133062491922511967442657474235534919493496983520312774506326239578318016984801869478851843858615607891129494954595017379583319528532088055111254069874715852386305071569329096329522744304355766896648950445244523161731856403098711121722383113622298934233803081353362766142828064444866452387493035890729629049156044077239071381051585930796086670172427121883998797908792274921901699720888093776657273330010533678812202354218097512545405947522435258490771167055601360483958644670632441572215539753697817977846174064955149290862569321978468622482839722413756570560574902614079729686524145351004748216637048440319989000889524345065854122758866688116427171479924442928230863465674813919123162824586178664583591245665294765456828489128831426076900422421902267105562632111110937054421750694165896040807198403850962455444362981230987879927244284909188845801561660979191338754992005240636899125607176060588611646710940507754100225698315520005593572972571636269561882670428252483600823257530420752963450"
.size .L__const.main.str, 1001
.type .L.str,@object # @.str
.section .rodata.str1.1,"aMS",@progbits,1
.L.str:
.asciz "%u\n"
.size .L.str, 4
.ident "Ubuntu clang version 14.0.0-1ubuntu1.1"
.section ".note.GNU-stack","",@progbits
.addrsig
.addrsig_sym printf
| [
757,
380
] |
problem6.c | .section __TEXT,__text,regular,pure_instructions
.build_version macos, 12, 0 sdk_version 12, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
stur wzr, [x29, #-8]
stur wzr, [x29, #-12]
mov w8, #1
str w8, [sp, #16]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #16]
subs w8, w8, #100
b.hi LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #16]
ldr w9, [sp, #16]
mul w9, w8, w9
ldur w8, [x29, #-8]
add w8, w8, w9
stur w8, [x29, #-8]
ldr w9, [sp, #16]
ldur w8, [x29, #-12]
add w8, w8, w9
stur w8, [x29, #-12]
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #16]
add w8, w8, #1
str w8, [sp, #16]
b LBB0_1
LBB0_4:
ldur w8, [x29, #-12]
ldur w9, [x29, #-12]
mul w8, w8, w9
ldur w9, [x29, #-8]
subs w10, w8, w9
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
mov x9, sp
; implicit-def: $x8
mov x8, x10
str x8, [x9]
bl _printf
mov w0, #0
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%u\n"
.subsections_via_symbols
| [
222,
180
] | .text
.file "problem6.c"
.globl main # -- Begin function main
.p2align 4, 0x90
.type main,@function
main: # @main
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl $0, -4(%rbp)
movl $0, -8(%rbp)
movl $0, -12(%rbp)
movl $1, -16(%rbp)
.LBB0_1: # =>This Inner Loop Header: Depth=1
cmpl $100, -16(%rbp)
ja .LBB0_4
# %bb.2: # in Loop: Header=BB0_1 Depth=1
movl -16(%rbp), %eax
imull -16(%rbp), %eax
addl -8(%rbp), %eax
movl %eax, -8(%rbp)
movl -16(%rbp), %eax
addl -12(%rbp), %eax
movl %eax, -12(%rbp)
# %bb.3: # in Loop: Header=BB0_1 Depth=1
movl -16(%rbp), %eax
addl $1, %eax
movl %eax, -16(%rbp)
jmp .LBB0_1
.LBB0_4:
movl -12(%rbp), %esi
imull -12(%rbp), %esi
subl -8(%rbp), %esi
leaq .L.str(%rip), %rdi
movb $0, %al
callq printf@PLT
xorl %eax, %eax
addq $16, %rsp
popq %rbp
.cfi_def_cfa %rsp, 8
retq
.Lfunc_end0:
.size main, .Lfunc_end0-main
.cfi_endproc
# -- End function
.type .L.str,@object # @.str
.section .rodata.str1.1,"aMS",@progbits,1
.L.str:
.asciz "%u\n"
.size .L.str, 4
.ident "Ubuntu clang version 14.0.0-1ubuntu1.1"
.section ".note.GNU-stack","",@progbits
.addrsig
.addrsig_sym printf
| [
429,
344
] |
README.md exists but content is empty.
- Downloads last month
- 25