filename
stringlengths 4
18
| x86_assembly
stringlengths 892
262k
| arm64_assembly
stringlengths 1k
268k
|
---|---|---|
spirograph | .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function spirograph
LCPI0_0:
.quad 0x3ff0000000000000 ## double 1
LCPI0_1:
.quad 0x400921fb54442d18 ## double 3.1415926535897931
.section __TEXT,__literal16,16byte_literals
.p2align 4
LCPI0_2:
.long 1127219200 ## 0x43300000
.long 1160773632 ## 0x45300000
.long 0 ## 0x0
.long 0 ## 0x0
LCPI0_3:
.quad 0x4330000000000000 ## double 4503599627370496
.quad 0x4530000000000000 ## double 1.9342813113834067E+25
.section __TEXT,__text,regular,pure_instructions
.globl _spirograph
.p2align 4, 0x90
_spirograph: ## @spirograph
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $160, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movsd %xmm0, -24(%rbp)
movsd %xmm1, -32(%rbp)
movq %rdx, -40(%rbp)
movsd %xmm2, -48(%rbp)
movsd -48(%rbp), %xmm0 ## xmm0 = mem[0],zero
addsd %xmm0, %xmm0
movsd LCPI0_1(%rip), %xmm1 ## xmm1 = mem[0],zero
mulsd %xmm1, %xmm0
movaps LCPI0_2(%rip), %xmm2 ## xmm2 = [1127219200,1160773632,0,0]
movq -40(%rbp), %xmm1 ## xmm1 = mem[0],zero
punpckldq %xmm2, %xmm1 ## xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd LCPI0_3(%rip), %xmm2 ## xmm2 = [4.503599627370496E+15,1.9342813113834067E+25]
subpd %xmm2, %xmm1
movaps %xmm1, %xmm2
unpckhpd %xmm1, %xmm1 ## xmm1 = xmm1[1,1]
addsd %xmm2, %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, -56(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -64(%rbp)
movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -72(%rbp)
movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero
subsd -32(%rbp), %xmm0
movsd %xmm0, -80(%rbp)
movq $0, -88(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -88(%rbp), %rax
cmpq -40(%rbp), %rax
jae LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movsd -72(%rbp), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -128(%rbp) ## 8-byte Spill
movsd -80(%rbp), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -144(%rbp) ## 8-byte Spill
movsd -64(%rbp), %xmm0 ## xmm0 = mem[0],zero
callq _libmin_cos
movsd %xmm0, -136(%rbp) ## 8-byte Spill
movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero
mulsd -32(%rbp), %xmm0
movsd %xmm0, -152(%rbp) ## 8-byte Spill
movsd -80(%rbp), %xmm0 ## xmm0 = mem[0],zero
mulsd -64(%rbp), %xmm0
divsd -32(%rbp), %xmm0
callq _libmin_cos
movsd -152(%rbp), %xmm2 ## 8-byte Reload
## xmm2 = mem[0],zero
movsd -144(%rbp), %xmm1 ## 8-byte Reload
## xmm1 = mem[0],zero
movsd -136(%rbp), %xmm3 ## 8-byte Reload
## xmm3 = mem[0],zero
movaps %xmm0, %xmm4
movsd -128(%rbp), %xmm0 ## 8-byte Reload
## xmm0 = mem[0],zero
mulsd %xmm4, %xmm2
mulsd %xmm3, %xmm1
addsd %xmm2, %xmm1
mulsd %xmm1, %xmm0
movq -8(%rbp), %rax
movq -88(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movsd -72(%rbp), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -96(%rbp) ## 8-byte Spill
movsd -80(%rbp), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -112(%rbp) ## 8-byte Spill
movsd -64(%rbp), %xmm0 ## xmm0 = mem[0],zero
callq _libmin_sin
movsd %xmm0, -104(%rbp) ## 8-byte Spill
movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero
mulsd -32(%rbp), %xmm0
movsd %xmm0, -120(%rbp) ## 8-byte Spill
movsd -80(%rbp), %xmm0 ## xmm0 = mem[0],zero
mulsd -64(%rbp), %xmm0
divsd -32(%rbp), %xmm0
callq _libmin_sin
movsd -120(%rbp), %xmm2 ## 8-byte Reload
## xmm2 = mem[0],zero
movsd -112(%rbp), %xmm1 ## 8-byte Reload
## xmm1 = mem[0],zero
movsd -104(%rbp), %xmm3 ## 8-byte Reload
## xmm3 = mem[0],zero
movaps %xmm0, %xmm4
movsd -96(%rbp), %xmm0 ## 8-byte Reload
## xmm0 = mem[0],zero
mulsd %xmm4, %xmm2
movq %xmm2, %rax
movabsq $-9223372036854775808, %rcx ## imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm2
mulsd %xmm3, %xmm1
addsd %xmm2, %xmm1
mulsd %xmm1, %xmm0
movq -16(%rbp), %rax
movq -88(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movq -88(%rbp), %rax
addq $1, %rax
movq %rax, -88(%rbp)
movsd -56(%rbp), %xmm0 ## xmm0 = mem[0],zero
addsd -64(%rbp), %xmm0
movsd %xmm0, -64(%rbp)
jmp LBB0_1
LBB0_4:
addq $160, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function test
LCPI1_0:
.quad 0x4024000000000000 ## double 10
LCPI1_1:
.quad 0x3fe8000000000000 ## double 0.75
LCPI1_2:
.quad 0x3fd3333333333333 ## double 0.29999999999999999
.section __TEXT,__text,regular,pure_instructions
.globl _test
.p2align 4, 0x90
_test: ## @test
.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
movq $500, -8(%rbp) ## imm = 0x1F4
movsd LCPI1_2(%rip), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -16(%rbp)
movsd LCPI1_1(%rip), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -24(%rbp)
movsd LCPI1_0(%rip), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -32(%rbp)
movq -8(%rbp), %rdi
shlq $3, %rdi
callq _libmin_malloc
movq %rax, -40(%rbp)
movq -8(%rbp), %rdi
shlq $3, %rdi
callq _libmin_malloc
movq %rax, -48(%rbp)
movq -40(%rbp), %rdi
movq -48(%rbp), %rsi
movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero
movsd -24(%rbp), %xmm1 ## xmm1 = mem[0],zero
movq -8(%rbp), %rdx
movsd -32(%rbp), %xmm2 ## xmm2 = mem[0],zero
callq _spirograph
movq $0, -56(%rbp)
LBB1_1: ## =>This Inner Loop Header: Depth=1
movq -56(%rbp), %rax
cmpq -8(%rbp), %rax
jae LBB1_4
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movq -40(%rbp), %rax
movq -56(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
movq -48(%rbp), %rax
movq -56(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm1 ## xmm1 = mem[0],zero
leaq L_.str(%rip), %rdi
movb $2, %al
callq _libmin_printf
## %bb.3: ## in Loop: Header=BB1_1 Depth=1
movq -56(%rbp), %rax
addq $1, %rax
movq %rax, -56(%rbp)
jmp LBB1_1
LBB1_4:
movq -40(%rbp), %rdi
callq _libmin_free
movq -48(%rbp), %rdi
callq _libmin_free
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_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 %edi, -8(%rbp)
movq %rsi, -16(%rbp)
callq _test
callq _libmin_success
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%.5lf, %.5lf\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__literal8,8byte_literals
.p2align 3 ; -- Begin function spirograph
lCPI0_0:
.quad 0x400921fb54442d18 ; double 3.1415926535897931
.section __TEXT,__text,regular,pure_instructions
.globl _spirograph
.p2align 2
_spirograph: ; @spirograph
.cfi_startproc
; %bb.0:
sub sp, sp, #176
.cfi_def_cfa_offset 176
stp x29, x30, [sp, #160] ; 16-byte Folded Spill
add x29, sp, #160
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur x1, [x29, #-16]
stur d0, [x29, #-24]
stur d1, [x29, #-32]
stur x2, [x29, #-40]
stur d2, [x29, #-48]
ldur d0, [x29, #-48]
fmov d1, #2.00000000
fmul d0, d0, d1
adrp x8, lCPI0_0@PAGE
ldr d1, [x8, lCPI0_0@PAGEOFF]
fmul d0, d0, d1
ldur d1, [x29, #-40]
ucvtf d1, d1
fdiv d0, d0, d1
stur d0, [x29, #-56]
movi d0, #0000000000000000
stur d0, [x29, #-64]
fmov d0, #1.00000000
stur d0, [x29, #-72]
ldur d1, [x29, #-32]
fsub d0, d0, d1
str d0, [sp, #80]
str xzr, [sp, #72]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #72]
ldur x9, [x29, #-40]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur d0, [x29, #-72]
str d0, [sp, #32] ; 8-byte Folded Spill
ldr d0, [sp, #80]
str d0, [sp, #24] ; 8-byte Folded Spill
ldur d0, [x29, #-64]
bl _libmin_cos
str d0, [sp, #16] ; 8-byte Folded Spill
ldur d0, [x29, #-24]
ldur d1, [x29, #-32]
fmul d0, d0, d1
str d0, [sp, #8] ; 8-byte Folded Spill
ldr d0, [sp, #80]
ldur d1, [x29, #-64]
fmul d0, d0, d1
ldur d1, [x29, #-32]
fdiv d0, d0, d1
bl _libmin_cos
ldr d3, [sp, #8] ; 8-byte Folded Reload
ldr d2, [sp, #16] ; 8-byte Folded Reload
ldr d1, [sp, #24] ; 8-byte Folded Reload
fmov d4, d0
ldr d0, [sp, #32] ; 8-byte Folded Reload
fmul d3, d3, d4
fmadd d1, d1, d2, d3
fmul d0, d0, d1
ldur x8, [x29, #-8]
ldr x9, [sp, #72]
str d0, [x8, x9, lsl #3]
ldur d0, [x29, #-72]
str d0, [sp, #64] ; 8-byte Folded Spill
ldr d0, [sp, #80]
str d0, [sp, #56] ; 8-byte Folded Spill
ldur d0, [x29, #-64]
bl _libmin_sin
str d0, [sp, #48] ; 8-byte Folded Spill
ldur d0, [x29, #-24]
ldur d1, [x29, #-32]
fmul d0, d0, d1
str d0, [sp, #40] ; 8-byte Folded Spill
ldr d0, [sp, #80]
ldur d1, [x29, #-64]
fmul d0, d0, d1
ldur d1, [x29, #-32]
fdiv d0, d0, d1
bl _libmin_sin
ldr d3, [sp, #40] ; 8-byte Folded Reload
ldr d2, [sp, #48] ; 8-byte Folded Reload
ldr d1, [sp, #56] ; 8-byte Folded Reload
fmov d4, d0
ldr d0, [sp, #64] ; 8-byte Folded Reload
fmul d3, d3, d4
fnmsub d1, d1, d2, d3
fmul d0, d0, d1
ldur x8, [x29, #-16]
ldr x9, [sp, #72]
str d0, [x8, x9, lsl #3]
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #72]
add x8, x8, #1
str x8, [sp, #72]
ldur d1, [x29, #-56]
ldur d0, [x29, #-64]
fadd d0, d0, d1
stur d0, [x29, #-64]
b LBB0_1
LBB0_4:
ldp x29, x30, [sp, #160] ; 16-byte Folded Reload
add sp, sp, #176
ret
.cfi_endproc
; -- End function
.section __TEXT,__literal8,8byte_literals
.p2align 3 ; -- Begin function test
lCPI1_0:
.quad 0x3fd3333333333333 ; double 0.29999999999999999
.section __TEXT,__text,regular,pure_instructions
.globl _test
.p2align 2
_test: ; @test
.cfi_startproc
; %bb.0:
sub sp, sp, #96
.cfi_def_cfa_offset 96
stp x29, x30, [sp, #80] ; 16-byte Folded Spill
add x29, sp, #80
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov x8, #500
stur x8, [x29, #-8]
adrp x8, lCPI1_0@PAGE
ldr d0, [x8, lCPI1_0@PAGEOFF]
stur d0, [x29, #-16]
fmov d0, #0.75000000
stur d0, [x29, #-24]
fmov d0, #10.00000000
stur d0, [x29, #-32]
ldur x8, [x29, #-8]
lsl x0, x8, #3
bl _libmin_malloc
str x0, [sp, #40]
ldur x8, [x29, #-8]
lsl x0, x8, #3
bl _libmin_malloc
str x0, [sp, #32]
ldr x0, [sp, #40]
ldr x1, [sp, #32]
ldur d0, [x29, #-16]
ldur d1, [x29, #-24]
ldur x2, [x29, #-8]
ldur d2, [x29, #-32]
bl _spirograph
str xzr, [sp, #24]
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #24]
ldur x9, [x29, #-8]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB1_4
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
ldr x8, [sp, #40]
ldr x9, [sp, #24]
ldr d1, [x8, x9, lsl #3]
ldr x8, [sp, #32]
ldr x9, [sp, #24]
ldr d0, [x8, x9, lsl #3]
mov x8, sp
str d1, [x8]
str d0, [x8, #8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _libmin_printf
b LBB1_3
LBB1_3: ; in Loop: Header=BB1_1 Depth=1
ldr x8, [sp, #24]
add x8, x8, #1
str x8, [sp, #24]
b LBB1_1
LBB1_4:
ldr x0, [sp, #40]
bl _libmin_free
ldr x0, [sp, #32]
bl _libmin_free
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
add sp, sp, #96
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 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
mov w8, #0
str w8, [sp, #12] ; 4-byte Folded Spill
stur wzr, [x29, #-4]
stur w0, [x29, #-8]
str x1, [sp, #16]
bl _test
bl _libmin_success
ldr w0, [sp, #12] ; 4-byte Folded Reload
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 "%.5lf, %.5lf\n"
.subsections_via_symbols
|
mandelbrot | .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _color ## -- Begin function color
.p2align 4, 0x90
_color: ## @color
.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 %edi, -4(%rbp)
movl %esi, -8(%rbp)
movl %edx, -12(%rbp)
movl -4(%rbp), %esi
movl -8(%rbp), %edx
movl -12(%rbp), %ecx
leaq L_.str(%rip), %rdi
movb $0, %al
callq _libmin_printf
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function main
LCPI1_0:
.quad 0x3ff0000000000000 ## double 1
LCPI1_1:
.quad 0x4008000000000000 ## double 3
LCPI1_2:
.quad 0x3fe0000000000000 ## double 0.5
LCPI1_3:
.quad 0xbfe6666666666666 ## double -0.69999999999999996
LCPI1_4:
.quad 0x4059000000000000 ## double 100
LCPI1_5:
.quad 0x4000000000000000 ## double 2
.section __TEXT,__text,regular,pure_instructions
.globl _main
.p2align 4, 0x90
_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 $80, %rsp
movl $0, -4(%rbp)
movl $100, -64(%rbp)
movsd LCPI1_0(%rip), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -72(%rbp)
movl $78, -76(%rbp)
movl $48, -80(%rbp)
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _libmin_printf
movl -76(%rbp), %esi
movl -80(%rbp), %edx
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _libmin_printf
movl $1, -60(%rbp)
LBB1_1: ## =>This Loop Header: Depth=1
## Child Loop BB1_3 Depth 2
## Child Loop BB1_5 Depth 3
movl -60(%rbp), %eax
cmpl -80(%rbp), %eax
jg LBB1_17
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movl $1, -56(%rbp)
LBB1_3: ## Parent Loop BB1_1 Depth=1
## => This Loop Header: Depth=2
## Child Loop BB1_5 Depth 3
movl -56(%rbp), %eax
cmpl -76(%rbp), %eax
jg LBB1_15
## %bb.4: ## in Loop: Header=BB1_3 Depth=2
cvtsi2ssl -56(%rbp), %xmm0
cvtsi2ssl -76(%rbp), %xmm1
divss %xmm1, %xmm0
cvtss2sd %xmm0, %xmm0
movsd LCPI1_2(%rip), %xmm1 ## xmm1 = mem[0],zero
subsd %xmm1, %xmm0
divsd -72(%rbp), %xmm0
movsd LCPI1_1(%rip), %xmm1 ## xmm1 = mem[0],zero
mulsd %xmm1, %xmm0
movsd LCPI1_3(%rip), %xmm1 ## xmm1 = mem[0],zero
addsd %xmm1, %xmm0
movsd %xmm0, -40(%rbp)
cvtsi2ssl -60(%rbp), %xmm0
cvtsi2ssl -80(%rbp), %xmm1
divss %xmm1, %xmm0
cvtss2sd %xmm0, %xmm0
movsd LCPI1_2(%rip), %xmm1 ## xmm1 = mem[0],zero
subsd %xmm1, %xmm0
divsd -72(%rbp), %xmm0
movsd LCPI1_1(%rip), %xmm1 ## xmm1 = mem[0],zero
mulsd %xmm1, %xmm0
movsd %xmm0, -48(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -16(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -32(%rbp)
movl $1, -52(%rbp)
LBB1_5: ## Parent Loop BB1_1 Depth=1
## Parent Loop BB1_3 Depth=2
## => This Inner Loop Header: Depth=3
movl -52(%rbp), %eax
cmpl -64(%rbp), %eax
jge LBB1_10
## %bb.6: ## in Loop: Header=BB1_5 Depth=3
movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero
movsd -16(%rbp), %xmm2 ## xmm2 = mem[0],zero
movsd -32(%rbp), %xmm1 ## xmm1 = mem[0],zero
mulsd -32(%rbp), %xmm1
movq %xmm1, %rax
movabsq $-9223372036854775808, %rcx ## imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
addsd -40(%rbp), %xmm0
movsd %xmm0, -24(%rbp)
movsd LCPI1_5(%rip), %xmm0 ## xmm0 = mem[0],zero
mulsd -16(%rbp), %xmm0
movsd -32(%rbp), %xmm2 ## xmm2 = mem[0],zero
movsd -48(%rbp), %xmm1 ## xmm1 = mem[0],zero
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, -32(%rbp)
movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -16(%rbp)
movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero
movsd -16(%rbp), %xmm2 ## xmm2 = mem[0],zero
movsd -32(%rbp), %xmm1 ## xmm1 = mem[0],zero
mulsd -32(%rbp), %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd LCPI1_4(%rip), %xmm1 ## xmm1 = mem[0],zero
ucomisd %xmm1, %xmm0
jbe LBB1_8
## %bb.7: ## in Loop: Header=BB1_5 Depth=3
movl $999999, -52(%rbp) ## imm = 0xF423F
LBB1_8: ## in Loop: Header=BB1_5 Depth=3
jmp LBB1_9
LBB1_9: ## in Loop: Header=BB1_5 Depth=3
movl -52(%rbp), %eax
addl $1, %eax
movl %eax, -52(%rbp)
jmp LBB1_5
LBB1_10: ## in Loop: Header=BB1_3 Depth=2
cmpl $99999, -52(%rbp) ## imm = 0x1869F
jge LBB1_12
## %bb.11: ## in Loop: Header=BB1_3 Depth=2
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _libmin_printf
jmp LBB1_13
LBB1_12: ## in Loop: Header=BB1_3 Depth=2
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _libmin_printf
LBB1_13: ## in Loop: Header=BB1_3 Depth=2
jmp LBB1_14
LBB1_14: ## in Loop: Header=BB1_3 Depth=2
movl -56(%rbp), %eax
addl $1, %eax
movl %eax, -56(%rbp)
jmp LBB1_3
LBB1_15: ## in Loop: Header=BB1_1 Depth=1
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _libmin_printf
## %bb.16: ## in Loop: Header=BB1_1 Depth=1
movl -60(%rbp), %eax
addl $1, %eax
movl %eax, -60(%rbp)
jmp LBB1_1
LBB1_17:
callq _libmin_success
xorl %eax, %eax
addq $80, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "<%d,%d,%d>\n"
L_.str.1: ## @.str.1
.asciz "** Mandelbrot ASCII image\n"
L_.str.2: ## @.str.2
.asciz "** xres: %d, yres: %d\n"
L_.str.3: ## @.str.3
.asciz " "
L_.str.4: ## @.str.4
.asciz "0"
L_.str.5: ## @.str.5
.asciz "\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _color ; -- Begin function color
.p2align 2
_color: ; @color
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 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 w0, [x29, #-4]
stur w1, [x29, #-8]
stur w2, [x29, #-12]
ldur w8, [x29, #-4]
; implicit-def: $x11
mov x11, x8
ldur w8, [x29, #-8]
; implicit-def: $x10
mov x10, x8
ldur w9, [x29, #-12]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x11, [x9]
str x10, [x9, #8]
str x8, [x9, #16]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _libmin_printf
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.section __TEXT,__literal8,8byte_literals
.p2align 3 ; -- Begin function main
lCPI1_0:
.quad 0x4059000000000000 ; double 100
lCPI1_1:
.quad 0xbfe6666666666666 ; double -0.69999999999999996
.section __TEXT,__text,regular,pure_instructions
.globl _main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #112
.cfi_def_cfa_offset 112
stp x29, x30, [sp, #96] ; 16-byte Folded Spill
add x29, sp, #96
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
mov w8, #100
str w8, [sp, #32]
fmov d0, #1.00000000
str d0, [sp, #24]
mov w8, #78
str w8, [sp, #20]
mov w8, #48
str w8, [sp, #16]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _libmin_printf
ldr w8, [sp, #20]
; implicit-def: $x10
mov x10, x8
ldr w9, [sp, #16]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _libmin_printf
mov w8, #1
str w8, [sp, #36]
b LBB1_1
LBB1_1: ; =>This Loop Header: Depth=1
; Child Loop BB1_3 Depth 2
; Child Loop BB1_5 Depth 3
ldr w8, [sp, #36]
ldr w9, [sp, #16]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB1_17
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
mov w8, #1
str w8, [sp, #40]
b LBB1_3
LBB1_3: ; Parent Loop BB1_1 Depth=1
; => This Loop Header: Depth=2
; Child Loop BB1_5 Depth 3
ldr w8, [sp, #40]
ldr w9, [sp, #20]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB1_15
b LBB1_4
LBB1_4: ; in Loop: Header=BB1_3 Depth=2
ldr s0, [sp, #40]
scvtf s0, s0
ldr s1, [sp, #20]
scvtf s1, s1
fdiv s0, s0, s1
fcvt d0, s0
fmov d2, #0.50000000
fsub d0, d0, d2
ldr d1, [sp, #24]
fdiv d0, d0, d1
adrp x8, lCPI1_1@PAGE
ldr d3, [x8, lCPI1_1@PAGEOFF]
fmov d1, #3.00000000
fmadd d0, d0, d1, d3
stur d0, [x29, #-40]
ldr s0, [sp, #36]
scvtf s0, s0
ldr s3, [sp, #16]
scvtf s3, s3
fdiv s0, s0, s3
fcvt d0, s0
fsub d0, d0, d2
ldr d2, [sp, #24]
fdiv d0, d0, d2
fmul d0, d0, d1
str d0, [sp, #48]
movi d0, #0000000000000000
stur d0, [x29, #-16]
stur d0, [x29, #-32]
mov w8, #1
str w8, [sp, #44]
b LBB1_5
LBB1_5: ; Parent Loop BB1_1 Depth=1
; Parent Loop BB1_3 Depth=2
; => This Inner Loop Header: Depth=3
ldr w8, [sp, #44]
ldr w9, [sp, #32]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB1_10
b LBB1_6
LBB1_6: ; in Loop: Header=BB1_5 Depth=3
ldur d0, [x29, #-16]
ldur d1, [x29, #-16]
ldur d2, [x29, #-32]
ldur d3, [x29, #-32]
fmul d2, d2, d3
fnmsub d0, d0, d1, d2
ldur d1, [x29, #-40]
fadd d0, d0, d1
stur d0, [x29, #-24]
ldur d1, [x29, #-16]
fmov d0, #2.00000000
fmul d0, d0, d1
ldur d1, [x29, #-32]
ldr d2, [sp, #48]
fmadd d0, d0, d1, d2
stur d0, [x29, #-32]
ldur d0, [x29, #-24]
stur d0, [x29, #-16]
ldur d0, [x29, #-16]
ldur d1, [x29, #-16]
ldur d2, [x29, #-32]
ldur d3, [x29, #-32]
fmul d2, d2, d3
fmadd d0, d0, d1, d2
adrp x8, lCPI1_0@PAGE
ldr d1, [x8, lCPI1_0@PAGEOFF]
fcmp d0, d1
cset w8, le
tbnz w8, #0, LBB1_8
b LBB1_7
LBB1_7: ; in Loop: Header=BB1_5 Depth=3
mov w8, #16959
movk w8, #15, lsl #16
str w8, [sp, #44]
b LBB1_8
LBB1_8: ; in Loop: Header=BB1_5 Depth=3
b LBB1_9
LBB1_9: ; in Loop: Header=BB1_5 Depth=3
ldr w8, [sp, #44]
add w8, w8, #1
str w8, [sp, #44]
b LBB1_5
LBB1_10: ; in Loop: Header=BB1_3 Depth=2
ldr w8, [sp, #44]
mov w9, #34463
movk w9, #1, lsl #16
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB1_12
b LBB1_11
LBB1_11: ; in Loop: Header=BB1_3 Depth=2
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _libmin_printf
b LBB1_13
LBB1_12: ; in Loop: Header=BB1_3 Depth=2
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _libmin_printf
b LBB1_13
LBB1_13: ; in Loop: Header=BB1_3 Depth=2
b LBB1_14
LBB1_14: ; in Loop: Header=BB1_3 Depth=2
ldr w8, [sp, #40]
add w8, w8, #1
str w8, [sp, #40]
b LBB1_3
LBB1_15: ; in Loop: Header=BB1_1 Depth=1
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _libmin_printf
b LBB1_16
LBB1_16: ; in Loop: Header=BB1_1 Depth=1
ldr w8, [sp, #36]
add w8, w8, #1
str w8, [sp, #36]
b LBB1_1
LBB1_17:
bl _libmin_success
mov w0, #0
ldp x29, x30, [sp, #96] ; 16-byte Folded Reload
add sp, sp, #112
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "<%d,%d,%d>\n"
l_.str.1: ; @.str.1
.asciz "** Mandelbrot ASCII image\n"
l_.str.2: ; @.str.2
.asciz "** xres: %d, yres: %d\n"
l_.str.3: ; @.str.3
.asciz " "
l_.str.4: ; @.str.4
.asciz "0"
l_.str.5: ; @.str.5
.asciz "\n"
.subsections_via_symbols
|
simple-grep | .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_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 $576, %rsp ## imm = 0x240
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -548(%rbp)
movl $3, -552(%rbp)
movq l___const.main.av(%rip), %rax
movq %rax, -32(%rbp)
movq l___const.main.av+8(%rip), %rax
movq %rax, -24(%rbp)
movq l___const.main.av+16(%rip), %rax
movq %rax, -16(%rbp)
leaq _speech(%rip), %rax
movq %rax, -560(%rbp)
movl $0, -564(%rbp)
cmpl $3, -552(%rbp)
jge LBB0_2
## %bb.1:
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _libmin_printf
movl $1, -548(%rbp)
jmp LBB0_10
LBB0_2:
leaq _speech(%rip), %rdi
leaq L_.str.4(%rip), %rsi
callq _libmin_mopen
cmpq $0, -560(%rbp)
jne LBB0_4
## %bb.3:
movq -24(%rbp), %rsi
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _libmin_printf
movl $2, -548(%rbp)
jmp LBB0_10
LBB0_4:
jmp LBB0_5
LBB0_5: ## =>This Inner Loop Header: Depth=1
leaq -544(%rbp), %rdi
movq -560(%rbp), %rdx
movl $511, %esi ## imm = 0x1FF
callq _libmin_mgets
cmpq $0, %rax
je LBB0_9
## %bb.6: ## in Loop: Header=BB0_5 Depth=1
leaq -544(%rbp), %rdi
movq -16(%rbp), %rsi
callq _libmin_strstr
cmpq $0, %rax
je LBB0_8
## %bb.7: ## in Loop: Header=BB0_5 Depth=1
leaq -544(%rbp), %rsi
leaq L_.str.6(%rip), %rdi
movb $0, %al
callq _libmin_printf
movl -564(%rbp), %eax
addl $1, %eax
movl %eax, -564(%rbp)
LBB0_8: ## in Loop: Header=BB0_5 Depth=1
jmp LBB0_5
LBB0_9:
movq -560(%rbp), %rdi
callq _libmin_mclose
movl -564(%rbp), %esi
movq -16(%rbp), %rdx
leaq L_.str.7(%rip), %rdi
movb $0, %al
callq _libmin_printf
callq _libmin_success
movl $0, -548(%rbp)
LBB0_10:
movl -548(%rbp), %eax
movl %eax, -568(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_12
## %bb.11:
movl -568(%rbp), %eax ## 4-byte Reload
addq $576, %rsp ## imm = 0x240
popq %rbp
retq
LBB0_12:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__const
.globl ___speech ## @__speech
.p2align 4
___speech:
.ascii "Kurt Vonnegut\nSpeech to Class of 1994: Syracuse University Commencement\nSunday, May 8th, 1994\nThere are three things that I very much want to say to the Class of 1994 in this brief hail and farewell. They are things which haven\342\200\231t been said enough to you freshly minted graduates nor to your parents or guardians, nor to me, nor to your teachers. I will say these in the body of my speech, I\342\200\231m just setting you up for this.\n\nFirst, I will say thank you. Second, I will say I am truly sorry - now that is the striking novelty among the three. We live in a time when nobody ever seems to apologize for anything; they just weep and raise hell on the Oprah Winfrey Show. The third thing I want to say to you at some point - probably close to the end - is, \"We love you.\" Now if I fail to say any of those three things in the body of this great speech, hold up your hands, and I will remedy the deficiency.\n\nAnd I\342\200\231m going to ask you to hold up your hands this early in the proceedings for another reason. I first declare to you that the most wonderful thing, the most valuable thing you can get from an education is this - the memory of one person who could really teach, whose lessons made life and yourselves much more interesting and full of possibilities than you had previously supposed possible. I ask this of everyone here, including all of us up here on the platform - How many of us, how many of you, had such a teacher? Kindergarten counts. Please hold up your hands. Hurry. You may want to remember the name of that great teacher.\n\nI thank you for being educated. There, I\342\200\231ve thanked you now; that way I don\342\200\231t have to speak to a bunch of nincompoops. For you freshly minted college graduates, this is a puberty ceremony long overdue. We, whose principal achievement is that we are older than you, have to acknowledge at last that you are grown-ups, too. there are old poops possibly among us on this very day who will say that you are not grown-ups until you have somehow survived, as they have, some famous calamity - The Great Depression, World War II, Vietnam, whatever. Storytellers are responsible for this destructive, not to say suicidal, myth. Again and again in stories, after some terrible mess, the character is able to say at last, \"Today, I am a woman; today I am a man. The end.\"\n\nWhen I got home from World War II, my Uncle Dan clapped me on the back, and he said, \"You\342\200\231re a man now.\" So I killed him. Not really, but I certainly felt like doing it.\n\nNow you young twerps want a new name for your generation? Probably not, you just want jobs, right? Well, the media do us all such tremendous favors when they call you Generation X, right? Two clicks from the very end of the alphabet. I hereby declare you Generation A, as much at the beginning of a series of astonishing triumphs and failures as Adam and Eve were so long ago.\n\nI apologize. I said I would apologize; I apologize now. I apologize because of the terrible mess the planet is in. But it has always been a mess. There have never been any \"Good Old Days,\" there have just been days. And as I say to my grandchildren, \"Don\342\200\231t look at me. I just got here myself.\"\n\nSo you know what I\342\200\231m going to do? I declare everybody here a member of Generation A. Tomorrow is another day for all of us.\n\nHaving said that, I have made us, for a few hours at least, what most of us do not have and what we need so desperately - I have made us an extended family, one for all and all for one. A husband, a wife and some kids is not a family; it\342\200\231s a terribly vulnerable survival unit. Now those of you who get married or are married, when you fight with your spouse, what each of you will be saying to the other one actually is, \"You\342\200\231re not enough people. You\342\200\231re only one person. I should have hundreds of people around.\"\n\nI met a man and a wife in Nigeria - Ibos. They just had a new baby. They had a thousand relatives there in southern Nigeria, and they were going to take that baby around and visit all the other relatives. We should all have families like that.\n\nNow, you take Dan and Marilyn Quayle, who imagine themselves as a brave, clean-cut little couple. They are surrounded by an enormous extended family, what we should all have - I mean judges, senators, newspaper editors, lawyers, bankers. They are not alone. And one reason they are so comfortable is that they are members of extended families, and I would really, over the long run, hope America would find some way to provide all of our citizens with extended families - a large group of people they could call on for help.\n\nNow, I\342\200\231ve made us an extended family. Does our family have a flag? Well, you bet. It\342\200\231s a big orange rectangle. Orange is a very good color and maybe the best one. It\342\200\231s full of vitamin C and cheerful associations, if one could forget the troubles in Ireland.\n\nNow this gathering is a work of art. The teacher whose name I mentioned when we all remembered good teachers asked me one time, \"What is it artists do?\" And I mumbled something. \"They do two things,\" he said. \"First, they admit they can\342\200\231t straighten out the whole universe. And then second, they make at least one little part of it exactly as it should be. A blob of clay, a square of canvas, a piece of paper, or whatever.\" We have all worked so hard and well to make these moments and this place exactly what it should be.\n\nAs I have told you, I had a bad uncle named Dan, who said a male can\342\200\231t be a man unless he\342\200\231d gone to war. But I had a good uncle named Alex, who said, when life was most agreeable - and it could be just a pitcher of lemonade in the shade - he would say, \"If this isn\342\200\231t nice, what is?\" So I say that about what we have achieved here right now. If he hadn\342\200\231t said that so regularly, maybe five or six times a month, we might not have paused to notice how rewarding life can be sometimes. Perhaps my good uncle Alex will live on in some of you members of the Syracuse Class of 1994 if, in the future, you will pause to say out loud every so often, \"If this isn\342\200\231t nice, what is?\"\n\nNow, my time is up and I haven\342\200\231t even inspired you with heroic tales of the past - Teddy Roosevelt\342\200\231s cavalry charge up San Juan Hill, Desert Storm - nor given you visions of a glorious future - computer programs, interactive TV, the information superhighway, speed the day. I spent too much time celebrating this very moment and place - once the future we dreamed of so long ago. This is it. We\342\200\231re here. How the heck did we do it?\n\nA neighbor of mine, I hired him - he was a handyman - to build and \"L\" on my house where I could write. He did the whole damn thing - he built the foundation, and then the side walls and the roof. He did it all by himself. And when it was all done, he stood back and he aid, \"How the hell did I ever do that?\" How the hell did we ever do this? We did it! And if this isn\342\200\231t nice, what is?\n\nI got a letter from a sappy woman a while back - she knew I was sappy too, which is to say a lifelong Democrat. She was pregnant, and she wanted to know if I thought it was a mistake to bring a little baby into a world as troubled as this one is. And I replied, what made being alive almost worthwhile for me was the saints I met. They could be almost anywhere. By saints I meant people who behaved decently and honorably in societies which were so often obscene. Perhaps many of us here, regardless of our ages or power or wealth, can be saints for her child to meet.\n\nThere was one thing I forgot to say, and I promised I would say, ant that is, \"We love you. We really do.\"\n"
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "speech.txt"
.section __DATA,__data
.globl _speech ## @speech
.p2align 3
_speech:
.quad L_.str
.quad 7577 ## 0x1d99
.quad ___speech
.long 0 ## 0x0
.space 4
.section __TEXT,__cstring,cstring_literals
L_.str.1: ## @.str.1
.asciz "simple-grep"
L_.str.2: ## @.str.2
.asciz "the"
.section __DATA,__const
.p2align 4 ## @__const.main.av
l___const.main.av:
.quad L_.str.1
.quad L_.str
.quad L_.str.2
.section __TEXT,__cstring,cstring_literals
L_.str.3: ## @.str.3
.asciz "A string pattern and a file name are required\n"
L_.str.4: ## @.str.4
.asciz "r"
L_.str.5: ## @.str.5
.asciz "Error - unable to open %s\n"
L_.str.6: ## @.str.6
.asciz "%s"
L_.str.7: ## @.str.7
.asciz "INFO: found (at least) %d occurrences of the word `%s'.\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
.cfi_offset w27, -24
.cfi_offset w28, -32
sub sp, sp, #608
sub x9, x29, #48
str x9, [sp, #32] ; 8-byte Folded Spill
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-24]
str wzr, [sp, #60]
mov w8, #3
str w8, [sp, #56]
adrp x8, l___const.main.av@PAGE
add x8, x8, l___const.main.av@PAGEOFF
ldr q0, [x8]
str q0, [x9]
ldr x8, [x8, #16]
str x8, [x9, #16]
adrp x8, _speech@PAGE
add x8, x8, _speech@PAGEOFF
str x8, [sp, #48]
str wzr, [sp, #44]
ldr w8, [sp, #56]
subs w8, w8, #3
cset w8, ge
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _libmin_printf
mov w8, #1
str w8, [sp, #60]
b LBB0_10
LBB0_2:
adrp x0, _speech@PAGE
add x0, x0, _speech@PAGEOFF
adrp x1, l_.str.4@PAGE
add x1, x1, l_.str.4@PAGEOFF
bl _libmin_mopen
ldr x8, [sp, #48]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldr x8, [x8, #8]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _libmin_printf
mov w8, #2
str w8, [sp, #60]
b LBB0_10
LBB0_4:
b LBB0_5
LBB0_5: ; =>This Inner Loop Header: Depth=1
ldr x2, [sp, #48]
add x0, sp, #64
mov x1, #511
bl _libmin_mgets
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_9
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_5 Depth=1
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldr x1, [x8, #16]
add x0, sp, #64
bl _libmin_strstr
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_5 Depth=1
mov x9, sp
add x8, sp, #64
str x8, [x9]
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _libmin_printf
ldr w8, [sp, #44]
add w8, w8, #1
str w8, [sp, #44]
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_5 Depth=1
b LBB0_5
LBB0_9:
ldr x0, [sp, #48]
bl _libmin_mclose
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldr w9, [sp, #44]
; implicit-def: $x10
mov x10, x9
ldr x8, [x8, #16]
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _libmin_printf
bl _libmin_success
str wzr, [sp, #60]
b LBB0_10
LBB0_10:
ldr w8, [sp, #60]
str w8, [sp, #28] ; 4-byte Folded Spill
ldur x9, [x29, #-24]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_12
b LBB0_11
LBB0_11:
bl ___stack_chk_fail
LBB0_12:
ldr w0, [sp, #28] ; 4-byte Folded Reload
add sp, sp, #608
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x28, x27, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.section __TEXT,__const
.globl ___speech ; @__speech
___speech:
.ascii "Kurt Vonnegut\nSpeech to Class of 1994: Syracuse University Commencement\nSunday, May 8th, 1994\nThere are three things that I very much want to say to the Class of 1994 in this brief hail and farewell. They are things which haven\342\200\231t been said enough to you freshly minted graduates nor to your parents or guardians, nor to me, nor to your teachers. I will say these in the body of my speech, I\342\200\231m just setting you up for this.\n\nFirst, I will say thank you. Second, I will say I am truly sorry - now that is the striking novelty among the three. We live in a time when nobody ever seems to apologize for anything; they just weep and raise hell on the Oprah Winfrey Show. The third thing I want to say to you at some point - probably close to the end - is, \"We love you.\" Now if I fail to say any of those three things in the body of this great speech, hold up your hands, and I will remedy the deficiency.\n\nAnd I\342\200\231m going to ask you to hold up your hands this early in the proceedings for another reason. I first declare to you that the most wonderful thing, the most valuable thing you can get from an education is this - the memory of one person who could really teach, whose lessons made life and yourselves much more interesting and full of possibilities than you had previously supposed possible. I ask this of everyone here, including all of us up here on the platform - How many of us, how many of you, had such a teacher? Kindergarten counts. Please hold up your hands. Hurry. You may want to remember the name of that great teacher.\n\nI thank you for being educated. There, I\342\200\231ve thanked you now; that way I don\342\200\231t have to speak to a bunch of nincompoops. For you freshly minted college graduates, this is a puberty ceremony long overdue. We, whose principal achievement is that we are older than you, have to acknowledge at last that you are grown-ups, too. there are old poops possibly among us on this very day who will say that you are not grown-ups until you have somehow survived, as they have, some famous calamity - The Great Depression, World War II, Vietnam, whatever. Storytellers are responsible for this destructive, not to say suicidal, myth. Again and again in stories, after some terrible mess, the character is able to say at last, \"Today, I am a woman; today I am a man. The end.\"\n\nWhen I got home from World War II, my Uncle Dan clapped me on the back, and he said, \"You\342\200\231re a man now.\" So I killed him. Not really, but I certainly felt like doing it.\n\nNow you young twerps want a new name for your generation? Probably not, you just want jobs, right? Well, the media do us all such tremendous favors when they call you Generation X, right? Two clicks from the very end of the alphabet. I hereby declare you Generation A, as much at the beginning of a series of astonishing triumphs and failures as Adam and Eve were so long ago.\n\nI apologize. I said I would apologize; I apologize now. I apologize because of the terrible mess the planet is in. But it has always been a mess. There have never been any \"Good Old Days,\" there have just been days. And as I say to my grandchildren, \"Don\342\200\231t look at me. I just got here myself.\"\n\nSo you know what I\342\200\231m going to do? I declare everybody here a member of Generation A. Tomorrow is another day for all of us.\n\nHaving said that, I have made us, for a few hours at least, what most of us do not have and what we need so desperately - I have made us an extended family, one for all and all for one. A husband, a wife and some kids is not a family; it\342\200\231s a terribly vulnerable survival unit. Now those of you who get married or are married, when you fight with your spouse, what each of you will be saying to the other one actually is, \"You\342\200\231re not enough people. You\342\200\231re only one person. I should have hundreds of people around.\"\n\nI met a man and a wife in Nigeria - Ibos. They just had a new baby. They had a thousand relatives there in southern Nigeria, and they were going to take that baby around and visit all the other relatives. We should all have families like that.\n\nNow, you take Dan and Marilyn Quayle, who imagine themselves as a brave, clean-cut little couple. They are surrounded by an enormous extended family, what we should all have - I mean judges, senators, newspaper editors, lawyers, bankers. They are not alone. And one reason they are so comfortable is that they are members of extended families, and I would really, over the long run, hope America would find some way to provide all of our citizens with extended families - a large group of people they could call on for help.\n\nNow, I\342\200\231ve made us an extended family. Does our family have a flag? Well, you bet. It\342\200\231s a big orange rectangle. Orange is a very good color and maybe the best one. It\342\200\231s full of vitamin C and cheerful associations, if one could forget the troubles in Ireland.\n\nNow this gathering is a work of art. The teacher whose name I mentioned when we all remembered good teachers asked me one time, \"What is it artists do?\" And I mumbled something. \"They do two things,\" he said. \"First, they admit they can\342\200\231t straighten out the whole universe. And then second, they make at least one little part of it exactly as it should be. A blob of clay, a square of canvas, a piece of paper, or whatever.\" We have all worked so hard and well to make these moments and this place exactly what it should be.\n\nAs I have told you, I had a bad uncle named Dan, who said a male can\342\200\231t be a man unless he\342\200\231d gone to war. But I had a good uncle named Alex, who said, when life was most agreeable - and it could be just a pitcher of lemonade in the shade - he would say, \"If this isn\342\200\231t nice, what is?\" So I say that about what we have achieved here right now. If he hadn\342\200\231t said that so regularly, maybe five or six times a month, we might not have paused to notice how rewarding life can be sometimes. Perhaps my good uncle Alex will live on in some of you members of the Syracuse Class of 1994 if, in the future, you will pause to say out loud every so often, \"If this isn\342\200\231t nice, what is?\"\n\nNow, my time is up and I haven\342\200\231t even inspired you with heroic tales of the past - Teddy Roosevelt\342\200\231s cavalry charge up San Juan Hill, Desert Storm - nor given you visions of a glorious future - computer programs, interactive TV, the information superhighway, speed the day. I spent too much time celebrating this very moment and place - once the future we dreamed of so long ago. This is it. We\342\200\231re here. How the heck did we do it?\n\nA neighbor of mine, I hired him - he was a handyman - to build and \"L\" on my house where I could write. He did the whole damn thing - he built the foundation, and then the side walls and the roof. He did it all by himself. And when it was all done, he stood back and he aid, \"How the hell did I ever do that?\" How the hell did we ever do this? We did it! And if this isn\342\200\231t nice, what is?\n\nI got a letter from a sappy woman a while back - she knew I was sappy too, which is to say a lifelong Democrat. She was pregnant, and she wanted to know if I thought it was a mistake to bring a little baby into a world as troubled as this one is. And I replied, what made being alive almost worthwhile for me was the saints I met. They could be almost anywhere. By saints I meant people who behaved decently and honorably in societies which were so often obscene. Perhaps many of us here, regardless of our ages or power or wealth, can be saints for her child to meet.\n\nThere was one thing I forgot to say, and I promised I would say, ant that is, \"We love you. We really do.\"\n"
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "speech.txt"
.section __DATA,__data
.globl _speech ; @speech
.p2align 3
_speech:
.quad l_.str
.quad 7577 ; 0x1d99
.quad ___speech
.long 0 ; 0x0
.space 4
.section __TEXT,__cstring,cstring_literals
l_.str.1: ; @.str.1
.asciz "simple-grep"
l_.str.2: ; @.str.2
.asciz "the"
.section __DATA,__const
.p2align 3 ; @__const.main.av
l___const.main.av:
.quad l_.str.1
.quad l_.str
.quad l_.str.2
.section __TEXT,__cstring,cstring_literals
l_.str.3: ; @.str.3
.asciz "A string pattern and a file name are required\n"
l_.str.4: ; @.str.4
.asciz "r"
l_.str.5: ; @.str.5
.asciz "Error - unable to open %s\n"
l_.str.6: ; @.str.6
.asciz "%s"
l_.str.7: ; @.str.7
.asciz "INFO: found (at least) %d occurrences of the word `%s'.\n"
.subsections_via_symbols
|
shortest-path | .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _floydWarshall ## -- Begin function floydWarshall
.p2align 4, 0x90
_floydWarshall: ## @floydWarshall
.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 $0, -12(%rbp)
LBB0_1: ## =>This Loop Header: Depth=1
## Child Loop BB0_3 Depth 2
cmpl $8, -12(%rbp)
jge LBB0_8
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl $0, -16(%rbp)
LBB0_3: ## Parent Loop BB0_1 Depth=1
## => This Inner Loop Header: Depth=2
cmpl $8, -16(%rbp)
jge LBB0_6
## %bb.4: ## in Loop: Header=BB0_3 Depth=2
movq -8(%rbp), %rax
movslq -12(%rbp), %rcx
shlq $5, %rcx
addq %rcx, %rax
movslq -16(%rbp), %rcx
movl (%rax,%rcx,4), %edx
movslq -12(%rbp), %rcx
movq _dist@GOTPCREL(%rip), %rax
shlq $5, %rcx
addq %rcx, %rax
movslq -16(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
## %bb.5: ## in Loop: Header=BB0_3 Depth=2
movl -16(%rbp), %eax
addl $1, %eax
movl %eax, -16(%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 -12(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
jmp LBB0_1
LBB0_8:
movl $0, -20(%rbp)
LBB0_9: ## =>This Loop Header: Depth=1
## Child Loop BB0_11 Depth 2
## Child Loop BB0_13 Depth 3
cmpl $8, -20(%rbp)
jge LBB0_22
## %bb.10: ## in Loop: Header=BB0_9 Depth=1
movl $0, -12(%rbp)
LBB0_11: ## Parent Loop BB0_9 Depth=1
## => This Loop Header: Depth=2
## Child Loop BB0_13 Depth 3
cmpl $8, -12(%rbp)
jge LBB0_20
## %bb.12: ## in Loop: Header=BB0_11 Depth=2
movl $0, -16(%rbp)
LBB0_13: ## Parent Loop BB0_9 Depth=1
## Parent Loop BB0_11 Depth=2
## => This Inner Loop Header: Depth=3
cmpl $8, -16(%rbp)
jge LBB0_18
## %bb.14: ## in Loop: Header=BB0_13 Depth=3
movslq -12(%rbp), %rcx
movq _dist@GOTPCREL(%rip), %rax
shlq $5, %rcx
addq %rcx, %rax
movslq -20(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movslq -20(%rbp), %rdx
movq _dist@GOTPCREL(%rip), %rcx
shlq $5, %rdx
addq %rdx, %rcx
movslq -16(%rbp), %rdx
addl (%rcx,%rdx,4), %eax
movslq -12(%rbp), %rdx
movq _dist@GOTPCREL(%rip), %rcx
shlq $5, %rdx
addq %rdx, %rcx
movslq -16(%rbp), %rdx
cmpl (%rcx,%rdx,4), %eax
jge LBB0_16
## %bb.15: ## in Loop: Header=BB0_13 Depth=3
movslq -12(%rbp), %rcx
movq _dist@GOTPCREL(%rip), %rax
shlq $5, %rcx
addq %rcx, %rax
movslq -20(%rbp), %rcx
movl (%rax,%rcx,4), %edx
movslq -20(%rbp), %rcx
movq _dist@GOTPCREL(%rip), %rax
shlq $5, %rcx
addq %rcx, %rax
movslq -16(%rbp), %rcx
addl (%rax,%rcx,4), %edx
movslq -12(%rbp), %rcx
movq _dist@GOTPCREL(%rip), %rax
shlq $5, %rcx
addq %rcx, %rax
movslq -16(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
LBB0_16: ## in Loop: Header=BB0_13 Depth=3
jmp LBB0_17
LBB0_17: ## in Loop: Header=BB0_13 Depth=3
movl -16(%rbp), %eax
addl $1, %eax
movl %eax, -16(%rbp)
jmp LBB0_13
LBB0_18: ## in Loop: Header=BB0_11 Depth=2
jmp LBB0_19
LBB0_19: ## in Loop: Header=BB0_11 Depth=2
movl -12(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
jmp LBB0_11
LBB0_20: ## in Loop: Header=BB0_9 Depth=1
jmp LBB0_21
LBB0_21: ## in Loop: Header=BB0_9 Depth=1
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB0_9
LBB0_22:
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _printSolution ## -- Begin function printSolution
.p2align 4, 0x90
_printSolution: ## @printSolution
.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
movq %rdi, -8(%rbp)
leaq L_.str(%rip), %rdi
movb $0, %al
callq _libmin_printf
movl $0, -12(%rbp)
LBB1_1: ## =>This Loop Header: Depth=1
## Child Loop BB1_3 Depth 2
cmpl $8, -12(%rbp)
jge LBB1_11
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movl $0, -16(%rbp)
LBB1_3: ## Parent Loop BB1_1 Depth=1
## => This Inner Loop Header: Depth=2
cmpl $8, -16(%rbp)
jge LBB1_9
## %bb.4: ## in Loop: Header=BB1_3 Depth=2
movq -8(%rbp), %rax
movslq -12(%rbp), %rcx
shlq $5, %rcx
addq %rcx, %rax
movslq -16(%rbp), %rcx
cmpl $99999, (%rax,%rcx,4) ## imm = 0x1869F
jne LBB1_6
## %bb.5: ## in Loop: Header=BB1_3 Depth=2
leaq L_.str.1(%rip), %rdi
leaq L_.str.2(%rip), %rsi
movb $0, %al
callq _libmin_printf
jmp LBB1_7
LBB1_6: ## in Loop: Header=BB1_3 Depth=2
movq -8(%rbp), %rax
movslq -12(%rbp), %rcx
shlq $5, %rcx
addq %rcx, %rax
movslq -16(%rbp), %rcx
movl (%rax,%rcx,4), %esi
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _libmin_printf
LBB1_7: ## in Loop: Header=BB1_3 Depth=2
jmp LBB1_8
LBB1_8: ## in Loop: Header=BB1_3 Depth=2
movl -16(%rbp), %eax
addl $1, %eax
movl %eax, -16(%rbp)
jmp LBB1_3
LBB1_9: ## in Loop: Header=BB1_1 Depth=1
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _libmin_printf
## %bb.10: ## in Loop: Header=BB1_1 Depth=1
movl -12(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
jmp LBB1_1
LBB1_11:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_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 $288, %rsp ## imm = 0x120
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -276(%rbp)
leaq -272(%rbp), %rdi
leaq l___const.main.graph(%rip), %rsi
movl $256, %edx ## imm = 0x100
callq _memcpy
leaq -272(%rbp), %rdi
callq _floydWarshall
movq _dist@GOTPCREL(%rip), %rdi
callq _printSolution
callq _libmin_success
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB2_2
## %bb.1:
xorl %eax, %eax
addq $288, %rsp ## imm = 0x120
popq %rbp
retq
LBB2_2:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.comm _dist,256,4 ## @dist
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Following matrix shows the shortest distances between every pair of vertices \n"
L_.str.1: ## @.str.1
.asciz "%7s"
L_.str.2: ## @.str.2
.asciz "INF"
L_.str.3: ## @.str.3
.asciz "%7d"
L_.str.4: ## @.str.4
.asciz "\n"
.section __TEXT,__const
.p2align 4 ## @__const.main.graph
l___const.main.graph:
.long 0 ## 0x0
.long 99999 ## 0x1869f
.long 4 ## 0x4
.long 99999 ## 0x1869f
.long 99999 ## 0x1869f
.long 7 ## 0x7
.long 99999 ## 0x1869f
.long 99999 ## 0x1869f
.long 99999 ## 0x1869f
.long 0 ## 0x0
.long 99999 ## 0x1869f
.long 99999 ## 0x1869f
.long 9 ## 0x9
.long 99999 ## 0x1869f
.long 99999 ## 0x1869f
.long 3 ## 0x3
.long 4 ## 0x4
.long 99999 ## 0x1869f
.long 0 ## 0x0
.long 3 ## 0x3
.long 99999 ## 0x1869f
.long 2 ## 0x2
.long 9 ## 0x9
.long 99999 ## 0x1869f
.long 99999 ## 0x1869f
.long 99999 ## 0x1869f
.long 3 ## 0x3
.long 0 ## 0x0
.long 3 ## 0x3
.long 99999 ## 0x1869f
.long 7 ## 0x7
.long 99999 ## 0x1869f
.long 99999 ## 0x1869f
.long 9 ## 0x9
.long 99999 ## 0x1869f
.long 3 ## 0x3
.long 0 ## 0x0
.long 99999 ## 0x1869f
.long 2 ## 0x2
.long 7 ## 0x7
.long 7 ## 0x7
.long 99999 ## 0x1869f
.long 2 ## 0x2
.long 99999 ## 0x1869f
.long 99999 ## 0x1869f
.long 0 ## 0x0
.long 8 ## 0x8
.long 99999 ## 0x1869f
.long 99999 ## 0x1869f
.long 99999 ## 0x1869f
.long 9 ## 0x9
.long 7 ## 0x7
.long 2 ## 0x2
.long 8 ## 0x8
.long 0 ## 0x0
.long 3 ## 0x3
.long 99999 ## 0x1869f
.long 3 ## 0x3
.long 99999 ## 0x1869f
.long 99999 ## 0x1869f
.long 7 ## 0x7
.long 99999 ## 0x1869f
.long 3 ## 0x3
.long 0 ## 0x0
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _floydWarshall ; -- Begin function floydWarshall
.p2align 2
_floydWarshall: ; @floydWarshall
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
adrp x8, _dist@GOTPAGE
ldr x8, [x8, _dist@GOTPAGEOFF]
str x8, [sp] ; 8-byte Folded Spill
str x0, [sp, #24]
str wzr, [sp, #20]
b LBB0_1
LBB0_1: ; =>This Loop Header: Depth=1
; Child Loop BB0_3 Depth 2
ldr w8, [sp, #20]
subs w8, w8, #8
cset w8, ge
tbnz w8, #0, LBB0_8
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
str wzr, [sp, #16]
b LBB0_3
LBB0_3: ; Parent Loop BB0_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #16]
subs w8, w8, #8
cset w8, ge
tbnz w8, #0, LBB0_6
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=2
ldr x9, [sp] ; 8-byte Folded Reload
ldr x8, [sp, #24]
ldrsw x10, [sp, #20]
add x8, x8, x10, lsl #5
ldrsw x10, [sp, #16]
ldr w8, [x8, x10, lsl #2]
ldrsw x10, [sp, #20]
add x9, x9, x10, lsl #5
ldrsw x10, [sp, #16]
str w8, [x9, x10, lsl #2]
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_3 Depth=2
ldr w8, [sp, #16]
add w8, w8, #1
str w8, [sp, #16]
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, #20]
add w8, w8, #1
str w8, [sp, #20]
b LBB0_1
LBB0_8:
str wzr, [sp, #12]
b LBB0_9
LBB0_9: ; =>This Loop Header: Depth=1
; Child Loop BB0_11 Depth 2
; Child Loop BB0_13 Depth 3
ldr w8, [sp, #12]
subs w8, w8, #8
cset w8, ge
tbnz w8, #0, LBB0_22
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_9 Depth=1
str wzr, [sp, #20]
b LBB0_11
LBB0_11: ; Parent Loop BB0_9 Depth=1
; => This Loop Header: Depth=2
; Child Loop BB0_13 Depth 3
ldr w8, [sp, #20]
subs w8, w8, #8
cset w8, ge
tbnz w8, #0, LBB0_20
b LBB0_12
LBB0_12: ; in Loop: Header=BB0_11 Depth=2
str wzr, [sp, #16]
b LBB0_13
LBB0_13: ; Parent Loop BB0_9 Depth=1
; Parent Loop BB0_11 Depth=2
; => This Inner Loop Header: Depth=3
ldr w8, [sp, #16]
subs w8, w8, #8
cset w8, ge
tbnz w8, #0, LBB0_18
b LBB0_14
LBB0_14: ; in Loop: Header=BB0_13 Depth=3
ldr x9, [sp] ; 8-byte Folded Reload
ldrsw x10, [sp, #20]
mov x8, x9
add x8, x8, x10, lsl #5
ldrsw x10, [sp, #12]
ldr w8, [x8, x10, lsl #2]
ldrsw x11, [sp, #12]
mov x10, x9
add x10, x10, x11, lsl #5
ldrsw x11, [sp, #16]
ldr w10, [x10, x11, lsl #2]
add w8, w8, w10
ldrsw x10, [sp, #20]
add x9, x9, x10, lsl #5
ldrsw x10, [sp, #16]
ldr w9, [x9, x10, lsl #2]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_16
b LBB0_15
LBB0_15: ; in Loop: Header=BB0_13 Depth=3
ldr x9, [sp] ; 8-byte Folded Reload
ldrsw x10, [sp, #20]
mov x8, x9
add x8, x8, x10, lsl #5
ldrsw x10, [sp, #12]
ldr w8, [x8, x10, lsl #2]
ldrsw x11, [sp, #12]
mov x10, x9
add x10, x10, x11, lsl #5
ldrsw x11, [sp, #16]
ldr w10, [x10, x11, lsl #2]
add w8, w8, w10
ldrsw x10, [sp, #20]
add x9, x9, x10, lsl #5
ldrsw x10, [sp, #16]
str w8, [x9, x10, lsl #2]
b LBB0_16
LBB0_16: ; in Loop: Header=BB0_13 Depth=3
b LBB0_17
LBB0_17: ; in Loop: Header=BB0_13 Depth=3
ldr w8, [sp, #16]
add w8, w8, #1
str w8, [sp, #16]
b LBB0_13
LBB0_18: ; in Loop: Header=BB0_11 Depth=2
b LBB0_19
LBB0_19: ; in Loop: Header=BB0_11 Depth=2
ldr w8, [sp, #20]
add w8, w8, #1
str w8, [sp, #20]
b LBB0_11
LBB0_20: ; in Loop: Header=BB0_9 Depth=1
b LBB0_21
LBB0_21: ; in Loop: Header=BB0_9 Depth=1
ldr w8, [sp, #12]
add w8, w8, #1
str w8, [sp, #12]
b LBB0_9
LBB0_22:
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _printSolution ; -- Begin function printSolution
.p2align 2
_printSolution: ; @printSolution
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 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 x0, [x29, #-8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _libmin_printf
stur wzr, [x29, #-12]
b LBB1_1
LBB1_1: ; =>This Loop Header: Depth=1
; Child Loop BB1_3 Depth 2
ldur w8, [x29, #-12]
subs w8, w8, #8
cset w8, ge
tbnz w8, #0, LBB1_11
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
str wzr, [sp, #16]
b LBB1_3
LBB1_3: ; Parent Loop BB1_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #16]
subs w8, w8, #8
cset w8, ge
tbnz w8, #0, LBB1_9
b LBB1_4
LBB1_4: ; in Loop: Header=BB1_3 Depth=2
ldur x8, [x29, #-8]
ldursw x9, [x29, #-12]
add x8, x8, x9, lsl #5
ldrsw x9, [sp, #16]
ldr w8, [x8, x9, lsl #2]
mov w9, #34463
movk w9, #1, lsl #16
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB1_6
b LBB1_5
LBB1_5: ; in Loop: Header=BB1_3 Depth=2
mov x9, sp
adrp x8, l_.str.2@PAGE
add x8, x8, l_.str.2@PAGEOFF
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _libmin_printf
b LBB1_7
LBB1_6: ; in Loop: Header=BB1_3 Depth=2
ldur x8, [x29, #-8]
ldursw x9, [x29, #-12]
add x8, x8, x9, lsl #5
ldrsw x9, [sp, #16]
ldr w9, [x8, x9, lsl #2]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _libmin_printf
b LBB1_7
LBB1_7: ; in Loop: Header=BB1_3 Depth=2
b LBB1_8
LBB1_8: ; in Loop: Header=BB1_3 Depth=2
ldr w8, [sp, #16]
add w8, w8, #1
str w8, [sp, #16]
b LBB1_3
LBB1_9: ; in Loop: Header=BB1_1 Depth=1
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _libmin_printf
b LBB1_10
LBB1_10: ; in Loop: Header=BB1_1 Depth=1
ldur w8, [x29, #-12]
add w8, w8, #1
stur w8, [x29, #-12]
b LBB1_1
LBB1_11:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #320
.cfi_def_cfa_offset 320
stp x28, x27, [sp, #288] ; 16-byte Folded Spill
stp x29, x30, [sp, #304] ; 16-byte Folded Spill
add x29, sp, #304
.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, #20]
add x0, sp, #24
str x0, [sp, #8] ; 8-byte Folded Spill
adrp x1, l___const.main.graph@PAGE
add x1, x1, l___const.main.graph@PAGEOFF
mov x2, #256
bl _memcpy
ldr x0, [sp, #8] ; 8-byte Folded Reload
bl _floydWarshall
adrp x0, _dist@GOTPAGE
ldr x0, [x0, _dist@GOTPAGEOFF]
bl _printSolution
bl _libmin_success
ldur x9, [x29, #-24]
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB2_2
b LBB2_1
LBB2_1:
bl ___stack_chk_fail
LBB2_2:
mov w0, #0
ldp x29, x30, [sp, #304] ; 16-byte Folded Reload
ldp x28, x27, [sp, #288] ; 16-byte Folded Reload
add sp, sp, #320
ret
.cfi_endproc
; -- End function
.comm _dist,256,2 ; @dist
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Following matrix shows the shortest distances between every pair of vertices \n"
l_.str.1: ; @.str.1
.asciz "%7s"
l_.str.2: ; @.str.2
.asciz "INF"
l_.str.3: ; @.str.3
.asciz "%7d"
l_.str.4: ; @.str.4
.asciz "\n"
.section __TEXT,__const
.p2align 2 ; @__const.main.graph
l___const.main.graph:
.long 0 ; 0x0
.long 99999 ; 0x1869f
.long 4 ; 0x4
.long 99999 ; 0x1869f
.long 99999 ; 0x1869f
.long 7 ; 0x7
.long 99999 ; 0x1869f
.long 99999 ; 0x1869f
.long 99999 ; 0x1869f
.long 0 ; 0x0
.long 99999 ; 0x1869f
.long 99999 ; 0x1869f
.long 9 ; 0x9
.long 99999 ; 0x1869f
.long 99999 ; 0x1869f
.long 3 ; 0x3
.long 4 ; 0x4
.long 99999 ; 0x1869f
.long 0 ; 0x0
.long 3 ; 0x3
.long 99999 ; 0x1869f
.long 2 ; 0x2
.long 9 ; 0x9
.long 99999 ; 0x1869f
.long 99999 ; 0x1869f
.long 99999 ; 0x1869f
.long 3 ; 0x3
.long 0 ; 0x0
.long 3 ; 0x3
.long 99999 ; 0x1869f
.long 7 ; 0x7
.long 99999 ; 0x1869f
.long 99999 ; 0x1869f
.long 9 ; 0x9
.long 99999 ; 0x1869f
.long 3 ; 0x3
.long 0 ; 0x0
.long 99999 ; 0x1869f
.long 2 ; 0x2
.long 7 ; 0x7
.long 7 ; 0x7
.long 99999 ; 0x1869f
.long 2 ; 0x2
.long 99999 ; 0x1869f
.long 99999 ; 0x1869f
.long 0 ; 0x0
.long 8 ; 0x8
.long 99999 ; 0x1869f
.long 99999 ; 0x1869f
.long 99999 ; 0x1869f
.long 9 ; 0x9
.long 7 ; 0x7
.long 2 ; 0x2
.long 8 ; 0x8
.long 0 ; 0x0
.long 3 ; 0x3
.long 99999 ; 0x1869f
.long 3 ; 0x3
.long 99999 ; 0x1869f
.long 99999 ; 0x1869f
.long 7 ; 0x7
.long 99999 ; 0x1869f
.long 3 ; 0x3
.long 0 ; 0x0
.subsections_via_symbols
|
c-interp | "\t.section\t__TEXT,__text,regular,pure_instructions\n\t.build_version macos, 13, 0\tsdk_version 13,(...TRUNCATED) | "\t.section\t__TEXT,__text,regular,pure_instructions\n\t.build_version macos, 13, 0\tsdk_version 13,(...TRUNCATED) |
audio-codec | "\t.section\t__TEXT,__text,regular,pure_instructions\n\t.build_version macos, 13, 0\tsdk_version 13,(...TRUNCATED) | "\t.section\t__TEXT,__text,regular,pure_instructions\n\t.build_version macos, 13, 0\tsdk_version 13,(...TRUNCATED) |
totient | "\t.section\t__TEXT,__text,regular,pure_instructions\n\t.build_version macos, 13, 0\tsdk_version 13,(...TRUNCATED) | "\t.section\t__TEXT,__text,regular,pure_instructions\n\t.build_version macos, 13, 0\tsdk_version 13,(...TRUNCATED) |
bloom-filter | "\t.section\t__TEXT,__text,regular,pure_instructions\n\t.build_version macos, 13, 0\tsdk_version 13,(...TRUNCATED) | "\t.section\t__TEXT,__text,regular,pure_instructions\n\t.build_version macos, 13, 0\tsdk_version 13,(...TRUNCATED) |
sieve | "\t.section\t__TEXT,__text,regular,pure_instructions\n\t.build_version macos, 13, 0\tsdk_version 13,(...TRUNCATED) | "\t.section\t__TEXT,__text,regular,pure_instructions\n\t.build_version macos, 13, 0\tsdk_version 13,(...TRUNCATED) |
regex-parser | "\t.section\t__TEXT,__text,regular,pure_instructions\n\t.build_version macos, 13, 0\tsdk_version 13,(...TRUNCATED) | "\t.section\t__TEXT,__text,regular,pure_instructions\n\t.build_version macos, 13, 0\tsdk_version 13,(...TRUNCATED) |
End of preview. Expand
in Dataset Viewer.
README.md exists but content is empty.
- Downloads last month
- 4