x86
stringlengths
122
1.3M
arm
stringlengths
122
1.35M
file
stringlengths
20
207
source
stringclasses
2 values
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function GC_Description _GC_Description: ## @GC_Description .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "The `GC` type provides an interface to the Cello Garbage Collector. One instance of this type is created for each thread and can be retrieved using the `current` function. The Garbage Collector can be stopped and started using `start` and `stop` and objects can be added or removed from the Garbage Collector using `set` and `rem`." .no_dead_strip _GC_Description .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function GC_Description _GC_Description: ; @GC_Description .cfi_startproc ; %bb.0: Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "The `GC` type provides an interface to the Cello Garbage Collector. One instance of this type is created for each thread and can be retrieved using the `current` function. The Garbage Collector can be stopped and started using `start` and `stop` and objects can be added or removed from the Garbage Collector using `set` and `rem`." .no_dead_strip _GC_Description .subsections_via_symbols
AnghaBench/Cello/src/extr_GC.c_GC_Description.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function GC_Examples _GC_Examples: ## @GC_Examples .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq _GC_Examples.examples(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 4 ## @GC_Examples.examples _GC_Examples.examples: .quad L_.str .quad L_.str.1 .space 16 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Starting & Stopping" L_.str.1: ## @.str.1 .asciz "var gc = current(GC);\nstop(gc);\nvar x = new(Int, $I(10)); /* Not added to GC */\nshow($I(running(gc))); /* 0 */\ndel(x); /* Must be deleted when done */\nstart(gc);\n" .no_dead_strip _GC_Examples .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function GC_Examples _GC_Examples: ; @GC_Examples .cfi_startproc ; %bb.0: Lloh0: adrp x0, _GC_Examples.examples@PAGE Lloh1: add x0, x0, _GC_Examples.examples@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @GC_Examples.examples _GC_Examples.examples: .quad l_.str .quad l_.str.1 .space 16 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Starting & Stopping" l_.str.1: ; @.str.1 .asciz "var gc = current(GC);\nstop(gc);\nvar x = new(Int, $I(10)); /* Not added to GC */\nshow($I(running(gc))); /* 0 */\ndel(x); /* Must be deleted when done */\nstart(gc);\n" .no_dead_strip _GC_Examples .subsections_via_symbols
AnghaBench/Cello/src/extr_GC.c_GC_Examples.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function GC_Hash _GC_Hash: ## @GC_Hash .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, %rax shrq $3, %rax popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _GC_Hash .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function GC_Hash _GC_Hash: ; @GC_Hash .cfi_startproc ; %bb.0: lsr x0, x0, #3 ret .cfi_endproc ; -- End function .no_dead_strip _GC_Hash .subsections_via_symbols
AnghaBench/Cello/src/extr_GC.c_GC_Hash.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__literal16,16byte_literals .p2align 4 ## -- Begin function GC_Ideal_Size LCPI0_0: .long 1127219200 ## 0x43300000 .long 1160773632 ## 0x45300000 .long 0 ## 0x0 .long 0 ## 0x0 LCPI0_1: .quad 0x4330000000000000 ## double 4503599627370496 .quad 0x4530000000000000 ## double 1.9342813113834067E+25 .section __TEXT,__literal8,8byte_literals .p2align 3 LCPI0_2: .quad 0x43e0000000000000 ## double 9.2233720368547758E+18 .section __TEXT,__text,regular,pure_instructions .p2align 4, 0x90 _GC_Ideal_Size: ## @GC_Ideal_Size .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp incq %rdi movq %rdi, %xmm0 punpckldq LCPI0_0(%rip), %xmm0 ## xmm0 = xmm0[0],mem[0],xmm0[1],mem[1] subpd LCPI0_1(%rip), %xmm0 movapd %xmm0, %xmm1 unpckhpd %xmm0, %xmm1 ## xmm1 = xmm1[1],xmm0[1] addsd %xmm0, %xmm1 movq _GC_Load_Factor@GOTPCREL(%rip), %rax divsd (%rax), %xmm1 cvttsd2si %xmm1, %rax movq %rax, %rdx subsd LCPI0_2(%rip), %xmm1 cvttsd2si %xmm1, %rcx sarq $63, %rdx andq %rdx, %rcx orq %rax, %rcx movq _GC_PRIMES_COUNT@GOTPCREL(%rip), %rax movq (%rax), %rdx movq _GC_Primes@GOTPCREL(%rip), %rax movq (%rax), %rsi testq %rdx, %rdx je LBB0_4 ## %bb.1: xorl %edi, %edi .p2align 4, 0x90 LBB0_3: ## =>This Inner Loop Header: Depth=1 movq (%rsi,%rdi,8), %rax cmpq %rcx, %rax jae LBB0_6 ## %bb.2: ## in Loop: Header=BB0_3 Depth=1 incq %rdi cmpq %rdi, %rdx jne LBB0_3 LBB0_4: movq -8(%rsi,%rdx,8), %rdx movq %rdx, %rax negq %rax .p2align 4, 0x90 LBB0_5: ## =>This Inner Loop Header: Depth=1 addq %rdx, %rax cmpq %rcx, %rax jb LBB0_5 LBB0_6: popq %rbp retq .cfi_endproc ## -- End function .comm _GC_Load_Factor,8,3 ## @GC_Load_Factor .comm _GC_PRIMES_COUNT,8,3 ## @GC_PRIMES_COUNT .comm _GC_Primes,8,3 ## @GC_Primes .no_dead_strip _GC_Ideal_Size .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function GC_Ideal_Size _GC_Ideal_Size: ; @GC_Ideal_Size .cfi_startproc ; %bb.0: add x8, x0, #1 ucvtf d0, x8 Lloh0: adrp x8, _GC_Load_Factor@GOTPAGE Lloh1: ldr x8, [x8, _GC_Load_Factor@GOTPAGEOFF] Lloh2: ldr d1, [x8] fdiv d0, d0, d1 fcvtzu x8, d0 Lloh3: adrp x9, _GC_PRIMES_COUNT@GOTPAGE Lloh4: ldr x9, [x9, _GC_PRIMES_COUNT@GOTPAGEOFF] Lloh5: ldr x9, [x9] Lloh6: adrp x10, _GC_Primes@GOTPAGE Lloh7: ldr x10, [x10, _GC_Primes@GOTPAGEOFF] Lloh8: ldr x10, [x10] cbz x9, LBB0_4 ; %bb.1: mov x11, x10 mov x12, x9 LBB0_2: ; =>This Inner Loop Header: Depth=1 ldr x0, [x11] cmp x0, x8 b.hs LBB0_6 ; %bb.3: ; in Loop: Header=BB0_2 Depth=1 add x11, x11, #8 subs x12, x12, #1 b.ne LBB0_2 LBB0_4: add x9, x10, x9, lsl #3 ldur x9, [x9, #-8] neg x0, x9 LBB0_5: ; =>This Inner Loop Header: Depth=1 add x0, x0, x9 cmp x0, x8 b.lo LBB0_5 LBB0_6: ret .loh AdrpLdrGotLdr Lloh6, Lloh7, Lloh8 .loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _GC_Load_Factor,8,3 ; @GC_Load_Factor .comm _GC_PRIMES_COUNT,8,3 ; @GC_PRIMES_COUNT .comm _GC_Primes,8,3 ; @GC_Primes .no_dead_strip _GC_Ideal_Size .subsections_via_symbols
AnghaBench/Cello/src/extr_GC.c_GC_Ideal_Size.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function GC_Mark_And_Recurse _GC_Mark_And_Recurse: ## @GC_Mark_And_Recurse .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 movq %rsi, %r14 movq %rdi, %rbx callq _GC_Mark_Item movq %rbx, %rdi movq %r14, %rsi popq %rbx popq %r14 popq %rbp jmp _GC_Recurse ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _GC_Mark_And_Recurse .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function GC_Mark_And_Recurse _GC_Mark_And_Recurse: ; @GC_Mark_And_Recurse .cfi_startproc ; %bb.0: stp x20, x19, [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 w19, -24 .cfi_offset w20, -32 mov x19, x1 mov x20, x0 bl _GC_Mark_Item mov x0, x20 mov x1, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _GC_Recurse .cfi_endproc ; -- End function .no_dead_strip _GC_Mark_And_Recurse .subsections_via_symbols
AnghaBench/Cello/src/extr_GC.c_GC_Mark_And_Recurse.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function GC_Mark_Stack _GC_Mark_Stack: ## @GC_Mark_Stack .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $16, %rsp .cfi_offset %rbx, -48 .cfi_offset %r12, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq $0, -40(%rbp) movq (%rdi), %r15 leaq -40(%rbp), %r12 cmpq %r12, %r15 je LBB0_6 ## %bb.1: movq %rdi, %r14 jge LBB0_4 ## %bb.2: leaq -40(%rbp), %rbx .p2align 4, 0x90 LBB0_3: ## =>This Inner Loop Header: Depth=1 movq (%rbx), %rsi movq %r14, %rdi callq _GC_Mark_Item addq $-8, %rbx cmpq %rbx, %r15 jle LBB0_3 LBB0_4: cmpq %r12, %r15 jle LBB0_6 .p2align 4, 0x90 LBB0_5: ## =>This Inner Loop Header: Depth=1 movq (%r12), %rsi movq %r14, %rdi callq _GC_Mark_Item addq $8, %r12 cmpq %r12, %r15 jge LBB0_5 LBB0_6: addq $16, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _GC_Mark_Stack .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function GC_Mark_Stack _GC_Mark_Stack: ; @GC_Mark_Stack .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x22, x21, [sp, #16] ; 16-byte Folded Spill stp x20, x19, [sp, #32] ; 16-byte Folded Spill 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 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 str xzr, [sp, #8] ldr x20, [x0] add x8, sp, #8 cmp x20, x8 b.eq LBB0_7 ; %bb.1: mov x19, x0 b.ge LBB0_4 ; %bb.2: add x21, sp, #8 LBB0_3: ; =>This Inner Loop Header: Depth=1 ldr x1, [x21], #-8 mov x0, x19 bl _GC_Mark_Item cmp x20, x21 b.le LBB0_3 LBB0_4: add x8, sp, #8 cmp x20, x8 b.le LBB0_7 ; %bb.5: add x21, sp, #8 LBB0_6: ; =>This Inner Loop Header: Depth=1 ldr x1, [x21], #8 mov x0, x19 bl _GC_Mark_Item cmp x20, x21 b.ge LBB0_6 LBB0_7: ldp x29, x30, [sp, #48] ; 16-byte Folded Reload ldp x20, x19, [sp, #32] ; 16-byte Folded Reload ldp x22, x21, [sp, #16] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .no_dead_strip _GC_Mark_Stack .subsections_via_symbols
AnghaBench/Cello/src/extr_GC.c_GC_Mark_Stack.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function GC_Mark_Stack_Fake _GC_Mark_Stack_Fake: ## @GC_Mark_Stack_Fake .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _GC_Mark_Stack_Fake .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function GC_Mark_Stack_Fake _GC_Mark_Stack_Fake: ; @GC_Mark_Stack_Fake .cfi_startproc ; %bb.0: ret .cfi_endproc ; -- End function .no_dead_strip _GC_Mark_Stack_Fake .subsections_via_symbols
AnghaBench/Cello/src/extr_GC.c_GC_Mark_Stack_Fake.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function GC_Mem _GC_Mem: ## @GC_Mem .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp popq %rbp jmp _GC_Mem_Ptr ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _GC_Mem .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function GC_Mem _GC_Mem: ; @GC_Mem .cfi_startproc ; %bb.0: b _GC_Mem_Ptr .cfi_endproc ; -- End function .no_dead_strip _GC_Mem .subsections_via_symbols
AnghaBench/Cello/src/extr_GC.c_GC_Mem.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function GC_Name _GC_Name: ## @GC_Name .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "GC" .no_dead_strip _GC_Name .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function GC_Name _GC_Name: ; @GC_Name .cfi_startproc ; %bb.0: Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "GC" .no_dead_strip _GC_Name .subsections_via_symbols
AnghaBench/Cello/src/extr_GC.c_GC_Name.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function GC_Probe _GC_Probe: ## @GC_Probe .cfi_startproc ## %bb.0: movl %esi, %eax subl %edx, %eax incl %eax js LBB0_1 ## %bb.2: ## kill: def $eax killed $eax killed $rax retq LBB0_1: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp addq (%rdi), %rax popq %rbp ## kill: def $eax killed $eax killed $rax retq .cfi_endproc ## -- End function .no_dead_strip _GC_Probe .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function GC_Probe _GC_Probe: ; @GC_Probe .cfi_startproc ; %bb.0: mov x8, x0 sub w9, w1, w2 adds w0, w9, #1 b.mi LBB0_2 ; %bb.1: ; kill: def $w0 killed $w0 killed $x0 ret LBB0_2: ldr x8, [x8] add x0, x8, x0 ; kill: def $w0 killed $w0 killed $x0 ret .cfi_endproc ; -- End function .no_dead_strip _GC_Probe .subsections_via_symbols
AnghaBench/Cello/src/extr_GC.c_GC_Probe.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function GC_Resize_Less _GC_Resize_Less: ## @GC_Resize_Less .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %rbx pushq %rax .cfi_offset %rbx, -24 movq %rdi, %rbx movl 8(%rdi), %edi callq _GC_Ideal_Size cmpq (%rbx), %rax jae LBB0_1 ## %bb.2: movq %rbx, %rdi movq %rax, %rsi addq $8, %rsp popq %rbx popq %rbp jmp _GC_Rehash ## TAILCALL LBB0_1: addq $8, %rsp popq %rbx popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _GC_Resize_Less .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function GC_Resize_Less _GC_Resize_Less: ; @GC_Resize_Less .cfi_startproc ; %bb.0: stp x20, x19, [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 w19, -24 .cfi_offset w20, -32 mov x19, x0 ldr w0, [x0, #8] bl _GC_Ideal_Size ldr x8, [x19] cmp x0, x8 b.hs LBB0_2 ; %bb.1: mov x1, x0 mov x0, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _GC_Rehash LBB0_2: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .no_dead_strip _GC_Resize_Less .subsections_via_symbols
AnghaBench/Cello/src/extr_GC.c_GC_Resize_Less.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function GC_Resize_More _GC_Resize_More: ## @GC_Resize_More .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %rbx pushq %rax .cfi_offset %rbx, -24 movq %rdi, %rbx movl 8(%rdi), %edi callq _GC_Ideal_Size cmpq (%rbx), %rax jbe LBB0_1 ## %bb.2: movq %rbx, %rdi movq %rax, %rsi addq $8, %rsp popq %rbx popq %rbp jmp _GC_Rehash ## TAILCALL LBB0_1: addq $8, %rsp popq %rbx popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _GC_Resize_More .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function GC_Resize_More _GC_Resize_More: ; @GC_Resize_More .cfi_startproc ; %bb.0: stp x20, x19, [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 w19, -24 .cfi_offset w20, -32 mov x19, x0 ldr w0, [x0, #8] bl _GC_Ideal_Size ldr x8, [x19] cmp x0, x8 b.ls LBB0_2 ; %bb.1: mov x1, x0 mov x0, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _GC_Rehash LBB0_2: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .no_dead_strip _GC_Resize_More .subsections_via_symbols
AnghaBench/Cello/src/extr_GC.c_GC_Resize_More.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function GC_Running _GC_Running: ## @GC_Running .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl (%rdi), %eax popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _GC_Running .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function GC_Running _GC_Running: ; @GC_Running .cfi_startproc ; %bb.0: ldr w0, [x0] ret .cfi_endproc ; -- End function .no_dead_strip _GC_Running .subsections_via_symbols
AnghaBench/Cello/src/extr_GC.c_GC_Running.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function GC_Start _GC_Start: ## @GC_Start .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $1, (%rdi) popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _GC_Start .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function GC_Start _GC_Start: ; @GC_Start .cfi_startproc ; %bb.0: mov w8, #1 str w8, [x0] ret .cfi_endproc ; -- End function .no_dead_strip _GC_Start .subsections_via_symbols
AnghaBench/Cello/src/extr_GC.c_GC_Start.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function GC_Stop _GC_Stop: ## @GC_Stop .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $0, (%rdi) popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _GC_Stop .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function GC_Stop _GC_Stop: ; @GC_Stop .cfi_startproc ; %bb.0: str wzr, [x0] ret .cfi_endproc ; -- End function .no_dead_strip _GC_Stop .subsections_via_symbols
AnghaBench/Cello/src/extr_GC.c_GC_Stop.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Mark_Brief _Mark_Brief: ## @Mark_Brief .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Markable by GC" .no_dead_strip _Mark_Brief .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Mark_Brief _Mark_Brief: ; @Mark_Brief .cfi_startproc ; %bb.0: Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Markable by GC" .no_dead_strip _Mark_Brief .subsections_via_symbols
AnghaBench/Cello/src/extr_GC.c_Mark_Brief.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Mark_Definition _Mark_Definition: ## @Mark_Definition .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "struct Mark {\n void (*mark)(var, var, void(*)(var,void*));\n};\n" .no_dead_strip _Mark_Definition .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Mark_Definition _Mark_Definition: ; @Mark_Definition .cfi_startproc ; %bb.0: Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "struct Mark {\n void (*mark)(var, var, void(*)(var,void*));\n};\n" .no_dead_strip _Mark_Definition .subsections_via_symbols
AnghaBench/Cello/src/extr_GC.c_Mark_Definition.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Mark_Description _Mark_Description: ## @Mark_Description .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "The `Mark` class can be overridden to customize the behaviour of the Cello Garbage Collector on encountering a given type. By default the allocated memory for a structure is scanned for pointers to other Cello objects, but if a type does its own memory allocation it may store pointers to Cello objects in other locations.\n\nIf this is the case the `Mark` class can be overridden and the callback function `f` must be called on all pointers which might be Cello objects which are managed by the class. Alternately the `mark` function can be called on any sub object to start a chain of recursive marking." .no_dead_strip _Mark_Description .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Mark_Description _Mark_Description: ; @Mark_Description .cfi_startproc ; %bb.0: Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "The `Mark` class can be overridden to customize the behaviour of the Cello Garbage Collector on encountering a given type. By default the allocated memory for a structure is scanned for pointers to other Cello objects, but if a type does its own memory allocation it may store pointers to Cello objects in other locations.\n\nIf this is the case the `Mark` class can be overridden and the callback function `f` must be called on all pointers which might be Cello objects which are managed by the class. Alternately the `mark` function can be called on any sub object to start a chain of recursive marking." .no_dead_strip _Mark_Description .subsections_via_symbols
AnghaBench/Cello/src/extr_GC.c_Mark_Description.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Mark_Methods _Mark_Methods: ## @Mark_Methods .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq _Mark_Methods.methods(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 4 ## @Mark_Methods.methods _Mark_Methods.methods: .quad L_.str .quad L_.str.1 .quad L_.str.2 .space 24 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "mark" L_.str.1: ## @.str.1 .asciz "void mark(var self, var gc, void(*f)(var,void*));" L_.str.2: ## @.str.2 .asciz "Mark the object `self` with the Garbage Collector `gc` and the callback function `f`." .no_dead_strip _Mark_Methods .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Mark_Methods _Mark_Methods: ; @Mark_Methods .cfi_startproc ; %bb.0: Lloh0: adrp x0, _Mark_Methods.methods@PAGE Lloh1: add x0, x0, _Mark_Methods.methods@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @Mark_Methods.methods _Mark_Methods.methods: .quad l_.str .quad l_.str.1 .quad l_.str.2 .space 24 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "mark" l_.str.1: ; @.str.1 .asciz "void mark(var self, var gc, void(*f)(var,void*));" l_.str.2: ; @.str.2 .asciz "Mark the object `self` with the Garbage Collector `gc` and the callback function `f`." .no_dead_strip _Mark_Methods .subsections_via_symbols
AnghaBench/Cello/src/extr_GC.c_Mark_Methods.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Mark_Name _Mark_Name: ## @Mark_Name .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Mark" .no_dead_strip _Mark_Name .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Mark_Name _Mark_Name: ; @Mark_Name .cfi_startproc ; %bb.0: Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Mark" .no_dead_strip _Mark_Name .subsections_via_symbols
AnghaBench/Cello/src/extr_GC.c_Mark_Name.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Get_Brief _Get_Brief: ## @Get_Brief .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Gettable or Settable" .no_dead_strip _Get_Brief .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Get_Brief _Get_Brief: ; @Get_Brief .cfi_startproc ; %bb.0: Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Gettable or Settable" .no_dead_strip _Get_Brief .subsections_via_symbols
AnghaBench/Cello/src/extr_Get.c_Get_Brief.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Get_Definition _Get_Definition: ## @Get_Definition .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "struct Get {\n var (*get)(var, var);\n void (*set)(var, var, var);\n bool (*mem)(var, var);\n void (*rem)(var, var);\n var (*key_type)(var);\n var (*val_type)(var);\n};\n" .no_dead_strip _Get_Definition .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Get_Definition _Get_Definition: ; @Get_Definition .cfi_startproc ; %bb.0: Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "struct Get {\n var (*get)(var, var);\n void (*set)(var, var, var);\n bool (*mem)(var, var);\n void (*rem)(var, var);\n var (*key_type)(var);\n var (*val_type)(var);\n};\n" .no_dead_strip _Get_Definition .subsections_via_symbols
AnghaBench/Cello/src/extr_Get.c_Get_Definition.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Get_Description _Get_Description: ## @Get_Description .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "The `Get` class provides a method to _get_ or _set_ certain properties of an object using keys and value. Typically it is implemented by data lookup structures such as `Table` or `Map` but it is also used more generally such as using indices to look up items in `Array`, or as thread local storage for the `Thread` object." .no_dead_strip _Get_Description .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Get_Description _Get_Description: ; @Get_Description .cfi_startproc ; %bb.0: Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "The `Get` class provides a method to _get_ or _set_ certain properties of an object using keys and value. Typically it is implemented by data lookup structures such as `Table` or `Map` but it is also used more generally such as using indices to look up items in `Array`, or as thread local storage for the `Thread` object." .no_dead_strip _Get_Description .subsections_via_symbols
AnghaBench/Cello/src/extr_Get.c_Get_Description.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Get_Examples _Get_Examples: ## @Get_Examples .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq _Get_Examples.examples(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 4 ## @Get_Examples.examples _Get_Examples.examples: .quad L_.str .quad L_.str.1 .quad L_.str.2 .quad L_.str.3 .space 16 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Usage 1" L_.str.1: ## @.str.1 .asciz "var x = new(Array, String, \n $S(\"Hello\"), $S(\"There\"));\n\nshow(get(x, $I(0))); /* Hello */\nshow(get(x, $I(1))); /* There */\nset(x, $I(1), $S(\"Blah\"));\nshow(get(x, $I(1))); /* Blah */\n" L_.str.2: ## @.str.2 .asciz "Usage 2" L_.str.3: ## @.str.3 .asciz "var prices = new(Table, String, Int, \n $S(\"Apple\"), $I(12),\n $S(\"Banana\"), $I( 6),\n $S(\"Pear\"), $I(55));\n\nvar pear_price = get(prices, $S(\"Pear\"));\nvar banana_price = get(prices, $S(\"Banana\"));\nvar apple_price = get(prices, $S(\"Apple\"));\n\nshow(pear_price); /* 55 */\nshow(banana_price); /* 6 */\nshow(apple_price); /* 12 */\n" .no_dead_strip _Get_Examples .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Get_Examples _Get_Examples: ; @Get_Examples .cfi_startproc ; %bb.0: Lloh0: adrp x0, _Get_Examples.examples@PAGE Lloh1: add x0, x0, _Get_Examples.examples@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @Get_Examples.examples _Get_Examples.examples: .quad l_.str .quad l_.str.1 .quad l_.str.2 .quad l_.str.3 .space 16 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Usage 1" l_.str.1: ; @.str.1 .asciz "var x = new(Array, String, \n $S(\"Hello\"), $S(\"There\"));\n\nshow(get(x, $I(0))); /* Hello */\nshow(get(x, $I(1))); /* There */\nset(x, $I(1), $S(\"Blah\"));\nshow(get(x, $I(1))); /* Blah */\n" l_.str.2: ; @.str.2 .asciz "Usage 2" l_.str.3: ; @.str.3 .asciz "var prices = new(Table, String, Int, \n $S(\"Apple\"), $I(12),\n $S(\"Banana\"), $I( 6),\n $S(\"Pear\"), $I(55));\n\nvar pear_price = get(prices, $S(\"Pear\"));\nvar banana_price = get(prices, $S(\"Banana\"));\nvar apple_price = get(prices, $S(\"Apple\"));\n\nshow(pear_price); /* 55 */\nshow(banana_price); /* 6 */\nshow(apple_price); /* 12 */\n" .no_dead_strip _Get_Examples .subsections_via_symbols
AnghaBench/Cello/src/extr_Get.c_Get_Examples.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Get_Methods _Get_Methods: ## @Get_Methods .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq _Get_Methods.methods(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 4 ## @Get_Methods.methods _Get_Methods.methods: .quad L_.str .quad L_.str.1 .quad L_.str.2 .quad L_.str.3 .quad L_.str.4 .quad L_.str.5 .quad L_.str.6 .quad L_.str.7 .quad L_.str.8 .quad L_.str.9 .quad L_.str.10 .quad L_.str.11 .quad L_.str.12 .quad L_.str.13 .quad L_.str.14 .quad L_.str.15 .quad L_.str.16 .quad L_.str.17 .space 24 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "get" L_.str.1: ## @.str.1 .asciz "var get(var self, var key);" L_.str.2: ## @.str.2 .asciz "Get the value at a given `key` for object `self`." L_.str.3: ## @.str.3 .asciz "set" L_.str.4: ## @.str.4 .asciz "void set(var self, var key, var val);" L_.str.5: ## @.str.5 .asciz "Set the value at a given `key` for object `self`." L_.str.6: ## @.str.6 .asciz "mem" L_.str.7: ## @.str.7 .asciz "bool mem(var self, var key);" L_.str.8: ## @.str.8 .asciz "Returns true if `key` is a member of the object `self`." L_.str.9: ## @.str.9 .asciz "rem" L_.str.10: ## @.str.10 .asciz "void rem(var self, var key);" L_.str.11: ## @.str.11 .asciz "Removes the `key` from object `self`." L_.str.12: ## @.str.12 .asciz "key_type" L_.str.13: ## @.str.13 .asciz "var key_type(var self);" L_.str.14: ## @.str.14 .asciz "Returns the key type for the object `self`." L_.str.15: ## @.str.15 .asciz "val_type" L_.str.16: ## @.str.16 .asciz "var val_type(var self);" L_.str.17: ## @.str.17 .asciz "Returns the value type for the object `self`." .no_dead_strip _Get_Methods .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Get_Methods _Get_Methods: ; @Get_Methods .cfi_startproc ; %bb.0: Lloh0: adrp x0, _Get_Methods.methods@PAGE Lloh1: add x0, x0, _Get_Methods.methods@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @Get_Methods.methods _Get_Methods.methods: .quad l_.str .quad l_.str.1 .quad l_.str.2 .quad l_.str.3 .quad l_.str.4 .quad l_.str.5 .quad l_.str.6 .quad l_.str.7 .quad l_.str.8 .quad l_.str.9 .quad l_.str.10 .quad l_.str.11 .quad l_.str.12 .quad l_.str.13 .quad l_.str.14 .quad l_.str.15 .quad l_.str.16 .quad l_.str.17 .space 24 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "get" l_.str.1: ; @.str.1 .asciz "var get(var self, var key);" l_.str.2: ; @.str.2 .asciz "Get the value at a given `key` for object `self`." l_.str.3: ; @.str.3 .asciz "set" l_.str.4: ; @.str.4 .asciz "void set(var self, var key, var val);" l_.str.5: ; @.str.5 .asciz "Set the value at a given `key` for object `self`." l_.str.6: ; @.str.6 .asciz "mem" l_.str.7: ; @.str.7 .asciz "bool mem(var self, var key);" l_.str.8: ; @.str.8 .asciz "Returns true if `key` is a member of the object `self`." l_.str.9: ; @.str.9 .asciz "rem" l_.str.10: ; @.str.10 .asciz "void rem(var self, var key);" l_.str.11: ; @.str.11 .asciz "Removes the `key` from object `self`." l_.str.12: ; @.str.12 .asciz "key_type" l_.str.13: ; @.str.13 .asciz "var key_type(var self);" l_.str.14: ; @.str.14 .asciz "Returns the key type for the object `self`." l_.str.15: ; @.str.15 .asciz "val_type" l_.str.16: ; @.str.16 .asciz "var val_type(var self);" l_.str.17: ; @.str.17 .asciz "Returns the value type for the object `self`." .no_dead_strip _Get_Methods .subsections_via_symbols
AnghaBench/Cello/src/extr_Get.c_Get_Methods.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Get_Name _Get_Name: ## @Get_Name .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Get" .no_dead_strip _Get_Name .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Get_Name _Get_Name: ; @Get_Name .cfi_startproc ; %bb.0: Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Get" .no_dead_strip _Get_Name .subsections_via_symbols
AnghaBench/Cello/src/extr_Get.c_Get_Name.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _get ## -- Begin function get .p2align 4, 0x90 _get: ## @get .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %esi, %ecx movq _Get@GOTPCREL(%rip), %rax movl (%rax), %esi leaq _get(%rip), %rdx popq %rbp jmp _method ## TAILCALL .cfi_endproc ## -- End function .comm _Get,4,2 ## @Get .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _get ; -- Begin function get .p2align 2 _get: ; @get .cfi_startproc ; %bb.0: mov x3, x1 Lloh0: adrp x8, _Get@GOTPAGE Lloh1: ldr x8, [x8, _Get@GOTPAGEOFF] Lloh2: ldr w1, [x8] Lloh3: adrp x2, _get@PAGE Lloh4: add x2, x2, _get@PAGEOFF b _method .loh AdrpAdd Lloh3, Lloh4 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _Get,4,2 ; @Get .subsections_via_symbols
AnghaBench/Cello/src/extr_Get.c_get.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _key_type ## -- Begin function key_type .p2align 4, 0x90 _key_type: ## @key_type .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _Get@GOTPCREL(%rip), %rax movl (%rax), %esi leaq _key_type(%rip), %rdx popq %rbp jmp _method ## TAILCALL .cfi_endproc ## -- End function .comm _Get,4,2 ## @Get .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _key_type ; -- Begin function key_type .p2align 2 _key_type: ; @key_type .cfi_startproc ; %bb.0: Lloh0: adrp x8, _Get@GOTPAGE Lloh1: ldr x8, [x8, _Get@GOTPAGEOFF] Lloh2: ldr w1, [x8] Lloh3: adrp x2, _key_type@PAGE Lloh4: add x2, x2, _key_type@PAGEOFF b _method .loh AdrpAdd Lloh3, Lloh4 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _Get,4,2 ; @Get .subsections_via_symbols
AnghaBench/Cello/src/extr_Get.c_key_type.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _mem ## -- Begin function mem .p2align 4, 0x90 _mem: ## @mem .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %esi, %ecx movq _Get@GOTPCREL(%rip), %rax movl (%rax), %esi leaq _mem(%rip), %rdx popq %rbp jmp _method ## TAILCALL .cfi_endproc ## -- End function .comm _Get,4,2 ## @Get .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _mem ; -- Begin function mem .p2align 2 _mem: ; @mem .cfi_startproc ; %bb.0: mov x3, x1 Lloh0: adrp x8, _Get@GOTPAGE Lloh1: ldr x8, [x8, _Get@GOTPAGEOFF] Lloh2: ldr w1, [x8] Lloh3: adrp x2, _mem@PAGE Lloh4: add x2, x2, _mem@PAGEOFF b _method .loh AdrpAdd Lloh3, Lloh4 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _Get,4,2 ; @Get .subsections_via_symbols
AnghaBench/Cello/src/extr_Get.c_mem.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _rem ## -- Begin function rem .p2align 4, 0x90 _rem: ## @rem .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %esi, %ecx movq _Get@GOTPCREL(%rip), %rax movl (%rax), %esi leaq _rem(%rip), %rdx popq %rbp jmp _method ## TAILCALL .cfi_endproc ## -- End function .comm _Get,4,2 ## @Get .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _rem ; -- Begin function rem .p2align 2 _rem: ; @rem .cfi_startproc ; %bb.0: mov x3, x1 Lloh0: adrp x8, _Get@GOTPAGE Lloh1: ldr x8, [x8, _Get@GOTPAGEOFF] Lloh2: ldr w1, [x8] Lloh3: adrp x2, _rem@PAGE Lloh4: add x2, x2, _rem@PAGEOFF b _method .loh AdrpAdd Lloh3, Lloh4 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _Get,4,2 ; @Get .subsections_via_symbols
AnghaBench/Cello/src/extr_Get.c_rem.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _set ## -- Begin function set .p2align 4, 0x90 _set: ## @set .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edx, %r8d movl %esi, %ecx movq _Get@GOTPCREL(%rip), %rax movl (%rax), %esi leaq _set(%rip), %rdx popq %rbp jmp _method ## TAILCALL .cfi_endproc ## -- End function .comm _Get,4,2 ## @Get .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _set ; -- Begin function set .p2align 2 _set: ; @set .cfi_startproc ; %bb.0: mov x4, x2 mov x3, x1 Lloh0: adrp x8, _Get@GOTPAGE Lloh1: ldr x8, [x8, _Get@GOTPAGEOFF] Lloh2: adrp x2, _set@PAGE Lloh3: add x2, x2, _set@PAGEOFF Lloh4: ldr w1, [x8] b _method .loh AdrpAdd Lloh2, Lloh3 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh4 .cfi_endproc ; -- End function .comm _Get,4,2 ; @Get .subsections_via_symbols
AnghaBench/Cello/src/extr_Get.c_set.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _val_type ## -- Begin function val_type .p2align 4, 0x90 _val_type: ## @val_type .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _Get@GOTPCREL(%rip), %rax movl (%rax), %esi leaq _val_type(%rip), %rdx popq %rbp jmp _method ## TAILCALL .cfi_endproc ## -- End function .comm _Get,4,2 ## @Get .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _val_type ; -- Begin function val_type .p2align 2 _val_type: ; @val_type .cfi_startproc ; %bb.0: Lloh0: adrp x8, _Get@GOTPAGE Lloh1: ldr x8, [x8, _Get@GOTPAGEOFF] Lloh2: ldr w1, [x8] Lloh3: adrp x2, _val_type@PAGE Lloh4: add x2, x2, _val_type@PAGEOFF b _method .loh AdrpAdd Lloh3, Lloh4 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _Get,4,2 ; @Get .subsections_via_symbols
AnghaBench/Cello/src/extr_Get.c_val_type.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Hash_Brief _Hash_Brief: ## @Hash_Brief .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Hashable" .no_dead_strip _Hash_Brief .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Hash_Brief _Hash_Brief: ; @Hash_Brief .cfi_startproc ; %bb.0: Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Hashable" .no_dead_strip _Hash_Brief .subsections_via_symbols
AnghaBench/Cello/src/extr_Hash.c_Hash_Brief.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Hash_Definition _Hash_Definition: ## @Hash_Definition .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "struct Hash {\n uint64_t (*hash)(var);\n};\n" .no_dead_strip _Hash_Definition .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Hash_Definition _Hash_Definition: ; @Hash_Definition .cfi_startproc ; %bb.0: Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "struct Hash {\n uint64_t (*hash)(var);\n};\n" .no_dead_strip _Hash_Definition .subsections_via_symbols
AnghaBench/Cello/src/extr_Hash.c_Hash_Definition.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Hash_Description _Hash_Description: ## @Hash_Description .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "The `Hash` class provides a mechanism for hashing an object. This hash value should remain the same across objects that are also considered equal by the `Cmp` class. For objects that are not considered equal this value should aim to be evenly distributed across integers.\n\nThis is not a cryptographic hash. It is used for various objects or data structures that require fast hashing such as the `Table` type. Due to this it should not be used for cryptography or security.\n\nBy default an object is hashed by using its raw memory with the [Murmurhash](http://en.wikipedia.org/wiki/MurmurHash) algorithm. Due to the link between them it is recommended to only override `Hash` and `Cmp` in conjunction." .no_dead_strip _Hash_Description .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Hash_Description _Hash_Description: ; @Hash_Description .cfi_startproc ; %bb.0: Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "The `Hash` class provides a mechanism for hashing an object. This hash value should remain the same across objects that are also considered equal by the `Cmp` class. For objects that are not considered equal this value should aim to be evenly distributed across integers.\n\nThis is not a cryptographic hash. It is used for various objects or data structures that require fast hashing such as the `Table` type. Due to this it should not be used for cryptography or security.\n\nBy default an object is hashed by using its raw memory with the [Murmurhash](http://en.wikipedia.org/wiki/MurmurHash) algorithm. Due to the link between them it is recommended to only override `Hash` and `Cmp` in conjunction." .no_dead_strip _Hash_Description .subsections_via_symbols
AnghaBench/Cello/src/extr_Hash.c_Hash_Description.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Hash_Examples _Hash_Examples: ## @Hash_Examples .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq _Hash_Examples.examples(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 4 ## @Hash_Examples.examples _Hash_Examples.examples: .quad L_.str .quad L_.str.1 .space 16 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Usage" L_.str.1: ## @.str.1 .asciz "println(\"%li\", $I(hash($I( 1)))); /* 1 */\nprintln(\"%li\", $I(hash($I(123)))); /* 123 */\n\n/* 866003103 */\nprintln(\"%li\", $I(hash_data($I(123), size(Int))));\n\nprintln(\"%li\", $I(hash($S(\"Hello\")))); /* -1838682532 */\nprintln(\"%li\", $I(hash($S(\"There\")))); /* 961387266 */\nprintln(\"%li\", $I(hash($S(\"People\")))); /* 697467069 */\n" .no_dead_strip _Hash_Examples .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Hash_Examples _Hash_Examples: ; @Hash_Examples .cfi_startproc ; %bb.0: Lloh0: adrp x0, _Hash_Examples.examples@PAGE Lloh1: add x0, x0, _Hash_Examples.examples@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @Hash_Examples.examples _Hash_Examples.examples: .quad l_.str .quad l_.str.1 .space 16 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Usage" l_.str.1: ; @.str.1 .asciz "println(\"%li\", $I(hash($I( 1)))); /* 1 */\nprintln(\"%li\", $I(hash($I(123)))); /* 123 */\n\n/* 866003103 */\nprintln(\"%li\", $I(hash_data($I(123), size(Int))));\n\nprintln(\"%li\", $I(hash($S(\"Hello\")))); /* -1838682532 */\nprintln(\"%li\", $I(hash($S(\"There\")))); /* 961387266 */\nprintln(\"%li\", $I(hash($S(\"People\")))); /* 697467069 */\n" .no_dead_strip _Hash_Examples .subsections_via_symbols
AnghaBench/Cello/src/extr_Hash.c_Hash_Examples.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Hash_Methods _Hash_Methods: ## @Hash_Methods .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq _Hash_Methods.methods(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 4 ## @Hash_Methods.methods _Hash_Methods.methods: .quad L_.str .quad L_.str.1 .quad L_.str.2 .quad L_.str.3 .quad L_.str.4 .quad L_.str.5 .space 24 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "hash" L_.str.1: ## @.str.1 .asciz "uint64_t hash(var self);" L_.str.2: ## @.str.2 .asciz "Get the hash value for the object `self`." L_.str.3: ## @.str.3 .asciz "hash_data" L_.str.4: ## @.str.4 .asciz "uint64_t hash_data(void* data, size_t num);" L_.str.5: ## @.str.5 .asciz "Hash `num` bytes pointed to by `data` using [Murmurhash](http://en.wikipedia.org/wiki/MurmurHash)." .no_dead_strip _Hash_Methods .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Hash_Methods _Hash_Methods: ; @Hash_Methods .cfi_startproc ; %bb.0: Lloh0: adrp x0, _Hash_Methods.methods@PAGE Lloh1: add x0, x0, _Hash_Methods.methods@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @Hash_Methods.methods _Hash_Methods.methods: .quad l_.str .quad l_.str.1 .quad l_.str.2 .quad l_.str.3 .quad l_.str.4 .quad l_.str.5 .space 24 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "hash" l_.str.1: ; @.str.1 .asciz "uint64_t hash(var self);" l_.str.2: ; @.str.2 .asciz "Get the hash value for the object `self`." l_.str.3: ; @.str.3 .asciz "hash_data" l_.str.4: ; @.str.4 .asciz "uint64_t hash_data(void* data, size_t num);" l_.str.5: ; @.str.5 .asciz "Hash `num` bytes pointed to by `data` using [Murmurhash](http://en.wikipedia.org/wiki/MurmurHash)." .no_dead_strip _Hash_Methods .subsections_via_symbols
AnghaBench/Cello/src/extr_Hash.c_Hash_Methods.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Hash_Name _Hash_Name: ## @Hash_Name .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Hash" .no_dead_strip _Hash_Name .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Hash_Name _Hash_Name: ; @Hash_Name .cfi_startproc ; %bb.0: Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Hash" .no_dead_strip _Hash_Name .subsections_via_symbols
AnghaBench/Cello/src/extr_Hash.c_Hash_Name.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _hash_data ## -- Begin function hash_data .p2align 4, 0x90 _hash_data: ## @hash_data .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movabsq $-4132994306676758123, %r9 ## imm = 0xC6A4A7935BD1E995 movq %rsi, %rax shrq $3, %rax leaq (,%rax,8), %r10 movq %rsi, %r11 imulq %r9, %r11 xorq $844048, %r11 ## imm = 0xCE110 testq %r10, %r10 je LBB0_1 ## %bb.2: leaq (%rdi,%rax,8), %r8 xorl %eax, %eax .p2align 4, 0x90 LBB0_3: ## =>This Inner Loop Header: Depth=1 movq (%rdi,%rax), %rcx imulq %r9, %rcx movq %rcx, %rdx shrq $47, %rdx xorq %rcx, %rdx imulq %r9, %rdx xorq %rdx, %r11 imulq %r9, %r11 addq $8, %rax cmpq %rax, %r10 jne LBB0_3 jmp LBB0_4 LBB0_1: movq %rdi, %r8 LBB0_4: andl $7, %esi decq %rsi cmpq $6, %rsi ja LBB0_13 ## %bb.5: leaq LJTI0_0(%rip), %rax movslq (%rax,%rsi,4), %rcx addq %rax, %rcx jmpq *%rcx LBB0_6: movzbl 6(%r8), %eax shlq $48, %rax xorq %rax, %r11 LBB0_7: movzbl 5(%r8), %eax shlq $40, %rax xorq %rax, %r11 LBB0_8: movzbl 4(%r8), %eax shlq $32, %rax xorq %rax, %r11 LBB0_9: movzbl 3(%r8), %eax shlq $24, %rax xorq %rax, %r11 LBB0_10: movzbl 2(%r8), %eax shlq $16, %rax xorq %rax, %r11 LBB0_11: movzbl 1(%r8), %eax shlq $8, %rax xorq %rax, %r11 LBB0_12: movzbl (%r8), %eax xorq %r11, %rax imulq %r9, %rax movq %rax, %r11 LBB0_13: movq %r11, %rcx shrq $47, %rcx xorq %r11, %rcx imulq %r9, %rcx movq %rcx, %rax shrq $47, %rax xorq %rcx, %rax popq %rbp retq .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L0_0_set_12, LBB0_12-LJTI0_0 .set L0_0_set_11, LBB0_11-LJTI0_0 .set L0_0_set_10, LBB0_10-LJTI0_0 .set L0_0_set_9, LBB0_9-LJTI0_0 .set L0_0_set_8, LBB0_8-LJTI0_0 .set L0_0_set_7, LBB0_7-LJTI0_0 .set L0_0_set_6, LBB0_6-LJTI0_0 LJTI0_0: .long L0_0_set_12 .long L0_0_set_11 .long L0_0_set_10 .long L0_0_set_9 .long L0_0_set_8 .long L0_0_set_7 .long L0_0_set_6 .end_data_region ## -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _hash_data ; -- Begin function hash_data .p2align 2 _hash_data: ; @hash_data .cfi_startproc ; %bb.0: mov x8, #59797 movk x8, #23505, lsl #16 movk x8, #42899, lsl #32 movk x8, #50852, lsl #48 lsr x9, x1, #3 lsl x11, x9, #3 mul x9, x1, x8 mov w10, #57616 movk w10, #12, lsl #16 eor x9, x9, x10 cbz x11, LBB0_3 ; %bb.1: add x10, x0, x11 LBB0_2: ; =>This Inner Loop Header: Depth=1 ldr x12, [x0], #8 mul x12, x12, x8 eor x12, x12, x12, lsr #47 mul x12, x12, x8 eor x9, x12, x9 mul x9, x9, x8 subs x11, x11, #8 b.ne LBB0_2 b LBB0_4 LBB0_3: mov x10, x0 LBB0_4: and x11, x1, #0x7 sub x11, x11, #1 cmp x11, #6 b.hi LBB0_13 ; %bb.5: Lloh0: adrp x12, lJTI0_0@PAGE Lloh1: add x12, x12, lJTI0_0@PAGEOFF adr x13, LBB0_6 ldrb w14, [x12, x11] add x13, x13, x14, lsl #2 br x13 LBB0_6: ldrb w11, [x10, #6] eor x9, x9, x11, lsl #48 LBB0_7: ldrb w11, [x10, #5] eor x9, x9, x11, lsl #40 LBB0_8: ldrb w11, [x10, #4] eor x9, x9, x11, lsl #32 LBB0_9: ldrb w11, [x10, #3] eor x9, x9, x11, lsl #24 LBB0_10: ldrb w11, [x10, #2] eor x9, x9, x11, lsl #16 LBB0_11: ldrb w11, [x10, #1] eor x9, x9, x11, lsl #8 LBB0_12: ldrb w10, [x10] eor x9, x9, x10 mul x9, x9, x8 LBB0_13: eor x9, x9, x9, lsr #47 mul x8, x9, x8 eor x0, x8, x8, lsr #47 ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc .section __TEXT,__const lJTI0_0: .byte (LBB0_12-LBB0_6)>>2 .byte (LBB0_11-LBB0_6)>>2 .byte (LBB0_10-LBB0_6)>>2 .byte (LBB0_9-LBB0_6)>>2 .byte (LBB0_8-LBB0_6)>>2 .byte (LBB0_7-LBB0_6)>>2 .byte (LBB0_6-LBB0_6)>>2 ; -- End function .subsections_via_symbols
AnghaBench/Cello/src/extr_Hash.c_hash_data.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Filter_Brief _Filter_Brief: ## @Filter_Brief .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Filtered Iterable" .no_dead_strip _Filter_Brief .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Filter_Brief _Filter_Brief: ; @Filter_Brief .cfi_startproc ; %bb.0: Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Filtered Iterable" .no_dead_strip _Filter_Brief .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_Filter_Brief.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Filter_Definition _Filter_Definition: ## @Filter_Definition .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "struct Filter {\n var iter;\n var func;\n};\n" .no_dead_strip _Filter_Definition .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Filter_Definition _Filter_Definition: ; @Filter_Definition .cfi_startproc ; %bb.0: Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "struct Filter {\n var iter;\n var func;\n};\n" .no_dead_strip _Filter_Definition .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_Filter_Definition.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Filter_Description _Filter_Description: ## @Filter_Description .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "The `Filter` type can be used to filter the results of some iterable. Given a callable object `Filter` iterable returns only those items in the original iterable for where calling the function returns a non-`NULL` value." .no_dead_strip _Filter_Description .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Filter_Description _Filter_Description: ; @Filter_Description .cfi_startproc ; %bb.0: Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "The `Filter` type can be used to filter the results of some iterable. Given a callable object `Filter` iterable returns only those items in the original iterable for where calling the function returns a non-`NULL` value." .no_dead_strip _Filter_Description .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_Filter_Description.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Filter_Examples _Filter_Examples: ## @Filter_Examples .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq _Filter_Examples.examples(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 4 ## @Filter_Examples.examples _Filter_Examples.examples: .quad L_.str .quad L_.str.1 .quad L_.str.2 .quad L_.str.3 .space 16 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Usage" L_.str.1: ## @.str.1 .asciz "var greater_than_two(var x) {\n return c_int(x) > 2 ? x : NULL;\n}\n\nvar x = new(Array, Int, $I(0), $I(5), $I(2), $I(9));\n\nforeach (n in filter(x, $(Function, greater_than_two))) {\n show(n); /* 5, 9 */\n}\n" L_.str.2: ## @.str.2 .asciz "Usage 2" L_.str.3: ## @.str.3 .asciz "var mem_hello(var x) {\n return mem(x, $S(\"Hello\")) ? x : NULL;\n}\n\nvar x = new(Tuple, \n $S(\"Hello World\"), $S(\"Hello Dan\"), \n $S(\"Bonjour\"));\n\nvar y = new(Tuple);\nassign(y, filter(x, $(Function, mem_hello)));\nshow(y); /* tuple(\"Hello World\", \"Hello Dan\") */\n" .no_dead_strip _Filter_Examples .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Filter_Examples _Filter_Examples: ; @Filter_Examples .cfi_startproc ; %bb.0: Lloh0: adrp x0, _Filter_Examples.examples@PAGE Lloh1: add x0, x0, _Filter_Examples.examples@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @Filter_Examples.examples _Filter_Examples.examples: .quad l_.str .quad l_.str.1 .quad l_.str.2 .quad l_.str.3 .space 16 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Usage" l_.str.1: ; @.str.1 .asciz "var greater_than_two(var x) {\n return c_int(x) > 2 ? x : NULL;\n}\n\nvar x = new(Array, Int, $I(0), $I(5), $I(2), $I(9));\n\nforeach (n in filter(x, $(Function, greater_than_two))) {\n show(n); /* 5, 9 */\n}\n" l_.str.2: ; @.str.2 .asciz "Usage 2" l_.str.3: ; @.str.3 .asciz "var mem_hello(var x) {\n return mem(x, $S(\"Hello\")) ? x : NULL;\n}\n\nvar x = new(Tuple, \n $S(\"Hello World\"), $S(\"Hello Dan\"), \n $S(\"Bonjour\"));\n\nvar y = new(Tuple);\nassign(y, filter(x, $(Function, mem_hello)));\nshow(y); /* tuple(\"Hello World\", \"Hello Dan\") */\n" .no_dead_strip _Filter_Examples .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_Filter_Examples.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Filter_Iter_Type _Filter_Iter_Type: ## @Filter_Iter_Type .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl (%rdi), %edi popq %rbp jmp _iter_type ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _Filter_Iter_Type .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Filter_Iter_Type _Filter_Iter_Type: ; @Filter_Iter_Type .cfi_startproc ; %bb.0: ldr w0, [x0] b _iter_type .cfi_endproc ; -- End function .no_dead_strip _Filter_Iter_Type .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_Filter_Iter_Type.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Filter_Methods _Filter_Methods: ## @Filter_Methods .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq _Filter_Methods.methods(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 4 ## @Filter_Methods.methods _Filter_Methods.methods: .quad L_.str .quad L_.str.1 .quad L_.str.2 .space 24 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "filter" L_.str.1: ## @.str.1 .asciz "#define filter(I, F)" L_.str.2: ## @.str.2 .asciz "Construct a `Filter` object on the stack over iterable `I` with filter function `F`." .no_dead_strip _Filter_Methods .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Filter_Methods _Filter_Methods: ; @Filter_Methods .cfi_startproc ; %bb.0: Lloh0: adrp x0, _Filter_Methods.methods@PAGE Lloh1: add x0, x0, _Filter_Methods.methods@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @Filter_Methods.methods _Filter_Methods.methods: .quad l_.str .quad l_.str.1 .quad l_.str.2 .space 24 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "filter" l_.str.1: ; @.str.1 .asciz "#define filter(I, F)" l_.str.2: ; @.str.2 .asciz "Construct a `Filter` object on the stack over iterable `I` with filter function `F`." .no_dead_strip _Filter_Methods .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_Filter_Methods.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Filter_Name _Filter_Name: ## @Filter_Name .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Filter" .no_dead_strip _Filter_Name .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Filter_Name _Filter_Name: ; @Filter_Name .cfi_startproc ; %bb.0: Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Filter" .no_dead_strip _Filter_Name .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_Filter_Name.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Iter_Brief _Iter_Brief: ## @Iter_Brief .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Iterable" .no_dead_strip _Iter_Brief .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Iter_Brief _Iter_Brief: ; @Iter_Brief .cfi_startproc ; %bb.0: Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Iterable" .no_dead_strip _Iter_Brief .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_Iter_Brief.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Iter_Definition _Iter_Definition: ## @Iter_Definition .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "struct Iter {\n var (*iter_init)(var);\n var (*iter_next)(var, var);\n var (*iter_prev)(var, var);\n var (*iter_last)(var);\n var (*iter_type)(var);\n};\n" .no_dead_strip _Iter_Definition .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Iter_Definition _Iter_Definition: ; @Iter_Definition .cfi_startproc ; %bb.0: Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "struct Iter {\n var (*iter_init)(var);\n var (*iter_next)(var, var);\n var (*iter_prev)(var, var);\n var (*iter_last)(var);\n var (*iter_type)(var);\n};\n" .no_dead_strip _Iter_Definition .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_Iter_Definition.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Iter_Description _Iter_Description: ## @Iter_Description .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "The `Iter` class is implemented by types which can be looped over. This allows them to be used in conjunction with the `foreach` macro as well as various other components of Cello.\n\nTo signal that an interation has finished an iteration should return the Cello object `Terminal`. Due to this - the `Terminal` object cannot be placed inside of Tuples because it artificially shortens their length." .no_dead_strip _Iter_Description .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Iter_Description _Iter_Description: ; @Iter_Description .cfi_startproc ; %bb.0: Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "The `Iter` class is implemented by types which can be looped over. This allows them to be used in conjunction with the `foreach` macro as well as various other components of Cello.\n\nTo signal that an interation has finished an iteration should return the Cello object `Terminal`. Due to this - the `Terminal` object cannot be placed inside of Tuples because it artificially shortens their length." .no_dead_strip _Iter_Description .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_Iter_Description.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Iter_Examples _Iter_Examples: ## @Iter_Examples .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq _Iter_Examples.examples(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 4 ## @Iter_Examples.examples _Iter_Examples.examples: .quad L_.str .quad L_.str.1 .quad L_.str.2 .quad L_.str.3 .space 16 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Usage" L_.str.1: ## @.str.1 .asciz "var x = new(Array, Int, $I(1), $I(2), $I(5));\n\nforeach(o in x) {\n show(o); /* 1, 2, 5 */\n}\n" L_.str.2: ## @.str.2 .asciz "Table" L_.str.3: ## @.str.3 .asciz "var prices = new(Table, String, Int);\nset(prices, $S(\"Apple\"), $I(12));\nset(prices, $S(\"Banana\"), $I( 6));\nset(prices, $S(\"Pear\"), $I(55));\n\nforeach(key in prices) {\n var price = get(prices, key);\n print(\"Price of %$ is %$\\n\", key, price);\n}\n" .no_dead_strip _Iter_Examples .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Iter_Examples _Iter_Examples: ; @Iter_Examples .cfi_startproc ; %bb.0: Lloh0: adrp x0, _Iter_Examples.examples@PAGE Lloh1: add x0, x0, _Iter_Examples.examples@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @Iter_Examples.examples _Iter_Examples.examples: .quad l_.str .quad l_.str.1 .quad l_.str.2 .quad l_.str.3 .space 16 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Usage" l_.str.1: ; @.str.1 .asciz "var x = new(Array, Int, $I(1), $I(2), $I(5));\n\nforeach(o in x) {\n show(o); /* 1, 2, 5 */\n}\n" l_.str.2: ; @.str.2 .asciz "Table" l_.str.3: ; @.str.3 .asciz "var prices = new(Table, String, Int);\nset(prices, $S(\"Apple\"), $I(12));\nset(prices, $S(\"Banana\"), $I( 6));\nset(prices, $S(\"Pear\"), $I(55));\n\nforeach(key in prices) {\n var price = get(prices, key);\n print(\"Price of %$ is %$\\n\", key, price);\n}\n" .no_dead_strip _Iter_Examples .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_Iter_Examples.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Iter_Methods _Iter_Methods: ## @Iter_Methods .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq _Iter_Methods.methods(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 4 ## @Iter_Methods.methods _Iter_Methods.methods: .quad L_.str .quad L_.str.1 .quad L_.str.2 .quad L_.str.3 .quad L_.str.4 .quad L_.str.5 .quad L_.str.6 .quad L_.str.7 .quad L_.str.8 .quad L_.str.9 .quad L_.str.10 .quad L_.str.11 .space 24 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "foreach" L_.str.1: ## @.str.1 .asciz "#define foreach(...)\n" L_.str.2: ## @.str.2 .asciz "Iterate over elements in a loop." L_.str.3: ## @.str.3 .asciz "iter_init" L_.str.4: ## @.str.4 .asciz "var iter_init(var self);\nvar iter_last(var self);" L_.str.5: ## @.str.5 .asciz "Return the initial item (or final item) in the iteration over `self`." L_.str.6: ## @.str.6 .asciz "iter_next" L_.str.7: ## @.str.7 .asciz "var iter_next(var self, var curr);\nvar iter_prev(var self, var curr);" L_.str.8: ## @.str.8 .asciz "Given the current item `curr`, return the next (or previous) item in the iteration over `self`." L_.str.9: ## @.str.9 .asciz "iter_type" L_.str.10: ## @.str.10 .asciz "var iter_type(var self);" L_.str.11: ## @.str.11 .asciz "Returns the type of item that can be expected to be returned by the iterable." .no_dead_strip _Iter_Methods .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Iter_Methods _Iter_Methods: ; @Iter_Methods .cfi_startproc ; %bb.0: Lloh0: adrp x0, _Iter_Methods.methods@PAGE Lloh1: add x0, x0, _Iter_Methods.methods@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @Iter_Methods.methods _Iter_Methods.methods: .quad l_.str .quad l_.str.1 .quad l_.str.2 .quad l_.str.3 .quad l_.str.4 .quad l_.str.5 .quad l_.str.6 .quad l_.str.7 .quad l_.str.8 .quad l_.str.9 .quad l_.str.10 .quad l_.str.11 .space 24 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "foreach" l_.str.1: ; @.str.1 .asciz "#define foreach(...)\n" l_.str.2: ; @.str.2 .asciz "Iterate over elements in a loop." l_.str.3: ; @.str.3 .asciz "iter_init" l_.str.4: ; @.str.4 .asciz "var iter_init(var self);\nvar iter_last(var self);" l_.str.5: ; @.str.5 .asciz "Return the initial item (or final item) in the iteration over `self`." l_.str.6: ; @.str.6 .asciz "iter_next" l_.str.7: ; @.str.7 .asciz "var iter_next(var self, var curr);\nvar iter_prev(var self, var curr);" l_.str.8: ; @.str.8 .asciz "Given the current item `curr`, return the next (or previous) item in the iteration over `self`." l_.str.9: ; @.str.9 .asciz "iter_type" l_.str.10: ; @.str.10 .asciz "var iter_type(var self);" l_.str.11: ; @.str.11 .asciz "Returns the type of item that can be expected to be returned by the iterable." .no_dead_strip _Iter_Methods .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_Iter_Methods.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Iter_Name _Iter_Name: ## @Iter_Name .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Iter" .no_dead_strip _Iter_Name .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Iter_Name _Iter_Name: ; @Iter_Name .cfi_startproc ; %bb.0: Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Iter" .no_dead_strip _Iter_Name .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_Iter_Name.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Map_Brief _Map_Brief: ## @Map_Brief .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Apply Function to Iterable" .no_dead_strip _Map_Brief .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Map_Brief _Map_Brief: ; @Map_Brief .cfi_startproc ; %bb.0: Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Apply Function to Iterable" .no_dead_strip _Map_Brief .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_Map_Brief.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Map_Definition _Map_Definition: ## @Map_Definition .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "struct Map {\n var iter;\n var curr;\n var func;\n};\n" .no_dead_strip _Map_Definition .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Map_Definition _Map_Definition: ; @Map_Definition .cfi_startproc ; %bb.0: Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "struct Map {\n var iter;\n var curr;\n var func;\n};\n" .no_dead_strip _Map_Definition .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_Map_Definition.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Map_Description _Map_Description: ## @Map_Description .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "The `Map` type is an iterable that applies some callable to to each item in another iterable and returns the result. This can be useful to make more concise iteration when there are callback functions available.\n\nIf the mapping callable is a purely side-effect callable it is possible to use the `call` function on the `Map` object directly for a quick way to perform the iteration.\n\nOne downside of `Map` is that the `iter_type` becomes unknown (there is no way to know what type the callable will return so some objects such as `Array`s may revert to using `Ref` as the object type when assigned a `Map`." .no_dead_strip _Map_Description .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Map_Description _Map_Description: ; @Map_Description .cfi_startproc ; %bb.0: Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "The `Map` type is an iterable that applies some callable to to each item in another iterable and returns the result. This can be useful to make more concise iteration when there are callback functions available.\n\nIf the mapping callable is a purely side-effect callable it is possible to use the `call` function on the `Map` object directly for a quick way to perform the iteration.\n\nOne downside of `Map` is that the `iter_type` becomes unknown (there is no way to know what type the callable will return so some objects such as `Array`s may revert to using `Ref` as the object type when assigned a `Map`." .no_dead_strip _Map_Description .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_Map_Description.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Map_Examples _Map_Examples: ## @Map_Examples .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq _Map_Examples.examples(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 4 ## @Map_Examples.examples _Map_Examples.examples: .quad L_.str .quad L_.str.1 .quad L_.str.2 .quad L_.str.3 .space 16 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Usage" L_.str.1: ## @.str.1 .asciz "var convert_to_int(var x) {\n var y = new(Int);\n look_from(y, x, 0);\n return y;\n}\n\nvar x = tuple($S(\"1\"), $S(\"2\"), $S(\"3\"));\n\nforeach (y in map(x, $(Function, convert_to_int))) {\n show(y); /* 1, 2, 3 */\n};\n" L_.str.2: ## @.str.2 .asciz "Usage 2" L_.str.3: ## @.str.3 .asciz "var print_object(var x) {\n println(\"Object %$ is of type %$\", x, type_of(x));\n return NULL;\n}\n\nvar x = tuple($I(0), $S(\"Hello!\"), $F(2.4));\n\ncall(map(x, $(Function, print_object)));\n" .no_dead_strip _Map_Examples .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Map_Examples _Map_Examples: ; @Map_Examples .cfi_startproc ; %bb.0: Lloh0: adrp x0, _Map_Examples.examples@PAGE Lloh1: add x0, x0, _Map_Examples.examples@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @Map_Examples.examples _Map_Examples.examples: .quad l_.str .quad l_.str.1 .quad l_.str.2 .quad l_.str.3 .space 16 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Usage" l_.str.1: ; @.str.1 .asciz "var convert_to_int(var x) {\n var y = new(Int);\n look_from(y, x, 0);\n return y;\n}\n\nvar x = tuple($S(\"1\"), $S(\"2\"), $S(\"3\"));\n\nforeach (y in map(x, $(Function, convert_to_int))) {\n show(y); /* 1, 2, 3 */\n};\n" l_.str.2: ; @.str.2 .asciz "Usage 2" l_.str.3: ; @.str.3 .asciz "var print_object(var x) {\n println(\"Object %$ is of type %$\", x, type_of(x));\n return NULL;\n}\n\nvar x = tuple($I(0), $S(\"Hello!\"), $F(2.4));\n\ncall(map(x, $(Function, print_object)));\n" .no_dead_strip _Map_Examples .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_Map_Examples.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Map_Len _Map_Len: ## @Map_Len .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl (%rdi), %edi popq %rbp jmp _len ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _Map_Len .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Map_Len _Map_Len: ; @Map_Len .cfi_startproc ; %bb.0: ldr w0, [x0] b _len .cfi_endproc ; -- End function .no_dead_strip _Map_Len .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_Map_Len.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Map_Methods _Map_Methods: ## @Map_Methods .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq _Map_Methods.methods(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 4 ## @Map_Methods.methods _Map_Methods.methods: .quad L_.str .quad L_.str.1 .quad L_.str.2 .space 24 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "map" L_.str.1: ## @.str.1 .asciz "#define map(I, F)" L_.str.2: ## @.str.2 .asciz "Construct a `Map` object on the stack over iterable `I` applying function `F`." .no_dead_strip _Map_Methods .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Map_Methods _Map_Methods: ; @Map_Methods .cfi_startproc ; %bb.0: Lloh0: adrp x0, _Map_Methods.methods@PAGE Lloh1: add x0, x0, _Map_Methods.methods@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @Map_Methods.methods _Map_Methods.methods: .quad l_.str .quad l_.str.1 .quad l_.str.2 .space 24 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "map" l_.str.1: ; @.str.1 .asciz "#define map(I, F)" l_.str.2: ; @.str.2 .asciz "Construct a `Map` object on the stack over iterable `I` applying function `F`." .no_dead_strip _Map_Methods .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_Map_Methods.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Map_Name _Map_Name: ## @Map_Name .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Map" .no_dead_strip _Map_Name .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Map_Name _Map_Name: ; @Map_Name .cfi_startproc ; %bb.0: Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Map" .no_dead_strip _Map_Name .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_Map_Name.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Range_Assign _Range_Assign: ## @Range_Assign .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 movq %rsi, %rax movq %rdi, %r14 movq _Range@GOTPCREL(%rip), %rcx movl (%rcx), %esi movq %rax, %rdi callq _cast movq %rax, %rbx movl 12(%r14), %edi movl 12(%rax), %esi callq _assign movl 8(%rbx), %eax movl %eax, 8(%r14) movl 4(%rbx), %eax movl %eax, 4(%r14) movl (%rbx), %eax movl %eax, (%r14) popq %rbx popq %r14 popq %rbp retq .cfi_endproc ## -- End function .comm _Range,4,2 ## @Range .no_dead_strip _Range_Assign .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Range_Assign _Range_Assign: ; @Range_Assign .cfi_startproc ; %bb.0: stp x20, x19, [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 w19, -24 .cfi_offset w20, -32 mov x8, x1 mov x19, x0 Lloh0: adrp x9, _Range@GOTPAGE Lloh1: ldr x9, [x9, _Range@GOTPAGEOFF] Lloh2: ldr w1, [x9] mov x0, x8 bl _cast mov x20, x0 ldr w0, [x19, #12] ldr w1, [x20, #12] bl _assign ldr w8, [x20, #8] str w8, [x19, #8] ldr d0, [x20] str d0, [x19] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _Range,4,2 ; @Range .no_dead_strip _Range_Assign .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_Range_Assign.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Range_Brief _Range_Brief: ## @Range_Brief .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Integer Sequence" .no_dead_strip _Range_Brief .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Range_Brief _Range_Brief: ; @Range_Brief .cfi_startproc ; %bb.0: Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Integer Sequence" .no_dead_strip _Range_Brief .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_Range_Brief.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Range_Cmp _Range_Cmp: ## @Range_Cmp .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %rbx pushq %rax .cfi_offset %rbx, -24 movq %rsi, %rax movq %rdi, %rbx movq _Range@GOTPCREL(%rip), %rcx movl (%rcx), %esi movq %rax, %rdi callq _cast movq %rbx, %rdi movq %rax, %rsi movl $12, %edx addq $8, %rsp popq %rbx popq %rbp jmp _memcmp ## TAILCALL .cfi_endproc ## -- End function .comm _Range,4,2 ## @Range .no_dead_strip _Range_Cmp .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Range_Cmp _Range_Cmp: ; @Range_Cmp .cfi_startproc ; %bb.0: stp x20, x19, [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 w19, -24 .cfi_offset w20, -32 mov x8, x1 mov x19, x0 Lloh0: adrp x9, _Range@GOTPAGE Lloh1: ldr x9, [x9, _Range@GOTPAGEOFF] Lloh2: ldr w1, [x9] mov x0, x8 bl _cast mov x1, x0 mov x0, x19 mov w2, #12 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _memcmp .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _Range,4,2 ; @Range .no_dead_strip _Range_Cmp .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_Range_Cmp.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Range_Definition _Range_Definition: ## @Range_Definition .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "struct Range {\n var value;\n int64_t start;\n int64_t stop;\n int64_t step;\n};\n" .no_dead_strip _Range_Definition .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Range_Definition _Range_Definition: ; @Range_Definition .cfi_startproc ; %bb.0: Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "struct Range {\n var value;\n int64_t start;\n int64_t stop;\n int64_t step;\n};\n" .no_dead_strip _Range_Definition .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_Range_Definition.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Range_Del _Range_Del: ## @Range_Del .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl (%rdi), %edi popq %rbp jmp _del ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _Range_Del .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Range_Del _Range_Del: ; @Range_Del .cfi_startproc ; %bb.0: ldr w0, [x0] b _del .cfi_endproc ; -- End function .no_dead_strip _Range_Del .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_Range_Del.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Range_Description _Range_Description: ## @Range_Description .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "The `Range` type is a basic iterable which acts as a virtual sequence of integers, starting from some value, stopping at some value and incrementing by some step.\n\nThis can be a useful replacement for the standard C `for` loop with decent performance but returning a Cello `Int`. It is constructable on the stack with the `range` macro which makes it practical and easy to use." .no_dead_strip _Range_Description .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Range_Description _Range_Description: ; @Range_Description .cfi_startproc ; %bb.0: Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "The `Range` type is a basic iterable which acts as a virtual sequence of integers, starting from some value, stopping at some value and incrementing by some step.\n\nThis can be a useful replacement for the standard C `for` loop with decent performance but returning a Cello `Int`. It is constructable on the stack with the `range` macro which makes it practical and easy to use." .no_dead_strip _Range_Description .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_Range_Description.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Range_Examples _Range_Examples: ## @Range_Examples .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq _Range_Examples.examples(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 4 ## @Range_Examples.examples _Range_Examples.examples: .quad L_.str .quad L_.str.1 .space 16 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Usage" L_.str.1: ## @.str.1 .asciz "/* Iterate 0 to 10 */\nforeach (i in range($I(10))) {\n print(\"%i\\n\", i);\n}\n\n/* Iterate 10 to 20 */\nforeach (i in range($I(10), $I(20))) {\n print(\"%i\\n\", i);\n}\n\n/* Iterate 10 to 20 with a step of 5 */\nforeach (i in range($I(10), $I(20), $I(5))) {\n print(\"%i\\n\", i);\n}\n\n/* Iterate 20 to 10 */\nforeach (i in range($I(10), $I(20), $I(-1))) {\n print(\"%i\\n\", i);\n}\n" .no_dead_strip _Range_Examples .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Range_Examples _Range_Examples: ; @Range_Examples .cfi_startproc ; %bb.0: Lloh0: adrp x0, _Range_Examples.examples@PAGE Lloh1: add x0, x0, _Range_Examples.examples@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @Range_Examples.examples _Range_Examples.examples: .quad l_.str .quad l_.str.1 .space 16 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Usage" l_.str.1: ; @.str.1 .asciz "/* Iterate 0 to 10 */\nforeach (i in range($I(10))) {\n print(\"%i\\n\", i);\n}\n\n/* Iterate 10 to 20 */\nforeach (i in range($I(10), $I(20))) {\n print(\"%i\\n\", i);\n}\n\n/* Iterate 10 to 20 with a step of 5 */\nforeach (i in range($I(10), $I(20), $I(5))) {\n print(\"%i\\n\", i);\n}\n\n/* Iterate 20 to 10 */\nforeach (i in range($I(10), $I(20), $I(-1))) {\n print(\"%i\\n\", i);\n}\n" .no_dead_strip _Range_Examples .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_Range_Examples.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Range_Iter_Type _Range_Iter_Type: ## @Range_Iter_Type .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _Int@GOTPCREL(%rip), %rax movl (%rax), %eax popq %rbp retq .cfi_endproc ## -- End function .comm _Int,4,2 ## @Int .no_dead_strip _Range_Iter_Type .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Range_Iter_Type _Range_Iter_Type: ; @Range_Iter_Type .cfi_startproc ; %bb.0: Lloh0: adrp x8, _Int@GOTPAGE Lloh1: ldr x8, [x8, _Int@GOTPAGEOFF] Lloh2: ldr w0, [x8] ret .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _Int,4,2 ; @Int .no_dead_strip _Range_Iter_Type .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_Range_Iter_Type.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Range_Len _Range_Len: ## @Range_Len .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl (%rdi), %ecx testl %ecx, %ecx je LBB0_1 ## %bb.2: movl 8(%rdi), %eax notl %eax addl 4(%rdi), %eax movl %ecx, %esi negl %esi cmovsl %ecx, %esi cltd idivl %esi incl %eax cltq popq %rbp retq LBB0_1: xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _Range_Len .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Range_Len _Range_Len: ; @Range_Len .cfi_startproc ; %bb.0: ldr w8, [x0] cbz w8, LBB0_2 ; %bb.1: ldp w9, w10, [x0, #4] mvn w10, w10 add w9, w9, w10 cmp w8, #0 cneg w8, w8, mi sdiv w8, w9, w8 add w8, w8, #1 sxtw x0, w8 ret LBB0_2: mov x0, #0 ret .cfi_endproc ; -- End function .no_dead_strip _Range_Len .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_Range_Len.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Range_Methods _Range_Methods: ## @Range_Methods .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq _Range_Methods.methods(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 4 ## @Range_Methods.methods _Range_Methods.methods: .quad L_.str .quad L_.str.1 .quad L_.str.2 .space 24 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "range" L_.str.1: ## @.str.1 .asciz "#define range(...)" L_.str.2: ## @.str.2 .asciz "Construct a `Range` object on the stack." .no_dead_strip _Range_Methods .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Range_Methods _Range_Methods: ; @Range_Methods .cfi_startproc ; %bb.0: Lloh0: adrp x0, _Range_Methods.methods@PAGE Lloh1: add x0, x0, _Range_Methods.methods@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @Range_Methods.methods _Range_Methods.methods: .quad l_.str .quad l_.str.1 .quad l_.str.2 .space 24 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "range" l_.str.1: ; @.str.1 .asciz "#define range(...)" l_.str.2: ; @.str.2 .asciz "Construct a `Range` object on the stack." .no_dead_strip _Range_Methods .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_Range_Methods.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Range_Name _Range_Name: ## @Range_Name .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Range" .no_dead_strip _Range_Name .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Range_Name _Range_Name: ; @Range_Name .cfi_startproc ; %bb.0: Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Range" .no_dead_strip _Range_Name .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_Range_Name.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Range_New _Range_New: ## @Range_New .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 movq %rsi, %r14 movq %rdi, %rbx movq _Int@GOTPCREL(%rip), %rax movl (%rax), %edi callq _new movl %eax, (%rbx) movq %rbx, %rdi movq %r14, %rsi popq %rbx popq %r14 popq %rbp jmp _range_stack ## TAILCALL .cfi_endproc ## -- End function .comm _Int,4,2 ## @Int .no_dead_strip _Range_New .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Range_New _Range_New: ; @Range_New .cfi_startproc ; %bb.0: stp x20, x19, [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 w19, -24 .cfi_offset w20, -32 mov x19, x1 mov x20, x0 Lloh0: adrp x8, _Int@GOTPAGE Lloh1: ldr x8, [x8, _Int@GOTPAGEOFF] Lloh2: ldr w0, [x8] bl _new str w0, [x20] mov x0, x20 mov x1, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _range_stack .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _Int,4,2 ; @Int .no_dead_strip _Range_New .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_Range_New.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Slice_Assign _Slice_Assign: ## @Slice_Assign .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %rbx pushq %rax .cfi_offset %rbx, -24 movq %rsi, %rax movq %rdi, %rbx movq _Slice@GOTPCREL(%rip), %rcx movl (%rcx), %esi movq %rax, %rdi callq _cast movl 4(%rax), %ecx movl %ecx, 4(%rbx) movl (%rbx), %edi movl (%rax), %esi addq $8, %rsp popq %rbx popq %rbp jmp _assign ## TAILCALL .cfi_endproc ## -- End function .comm _Slice,4,2 ## @Slice .no_dead_strip _Slice_Assign .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Slice_Assign _Slice_Assign: ; @Slice_Assign .cfi_startproc ; %bb.0: stp x20, x19, [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 w19, -24 .cfi_offset w20, -32 mov x8, x1 mov x19, x0 Lloh0: adrp x9, _Slice@GOTPAGE Lloh1: ldr x9, [x9, _Slice@GOTPAGEOFF] Lloh2: ldr w1, [x9] mov x0, x8 bl _cast ldp w1, w8, [x0] str w8, [x19, #4] ldr w0, [x19] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _assign .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _Slice,4,2 ; @Slice .no_dead_strip _Slice_Assign .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_Slice_Assign.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Slice_Brief _Slice_Brief: ## @Slice_Brief .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Partial Iterable" .no_dead_strip _Slice_Brief .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Slice_Brief _Slice_Brief: ; @Slice_Brief .cfi_startproc ; %bb.0: Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Partial Iterable" .no_dead_strip _Slice_Brief .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_Slice_Brief.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Slice_Cmp _Slice_Cmp: ## @Slice_Cmp .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %rbx pushq %rax .cfi_offset %rbx, -24 movq %rsi, %rax movq %rdi, %rbx movq _Slice@GOTPCREL(%rip), %rcx movl (%rcx), %esi movq %rax, %rdi callq _cast movq (%rax), %rdx movl $1, %ecx cmpq %rdx, (%rbx) jg LBB0_2 ## %bb.1: movl $-1, %ecx jge LBB0_3 LBB0_2: movl %ecx, %eax addq $8, %rsp popq %rbx popq %rbp retq LBB0_3: movl 8(%rbx), %edi movl 8(%rax), %esi addq $8, %rsp popq %rbx popq %rbp jmp _cmp ## TAILCALL .cfi_endproc ## -- End function .comm _Slice,4,2 ## @Slice .no_dead_strip _Slice_Cmp .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Slice_Cmp _Slice_Cmp: ; @Slice_Cmp .cfi_startproc ; %bb.0: stp x20, x19, [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 w19, -24 .cfi_offset w20, -32 mov x8, x1 mov x19, x0 Lloh0: adrp x9, _Slice@GOTPAGE Lloh1: ldr x9, [x9, _Slice@GOTPAGEOFF] Lloh2: ldr w1, [x9] mov x0, x8 bl _cast ldr x8, [x19] ldr x9, [x0] cmp x8, x9 b.le LBB0_2 ; %bb.1: mov w0, #1 b LBB0_4 LBB0_2: b.ge LBB0_5 ; %bb.3: mov w0, #-1 LBB0_4: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret LBB0_5: ldr w8, [x19, #8] ldr w1, [x0, #8] mov x0, x8 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _cmp .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _Slice,4,2 ; @Slice .no_dead_strip _Slice_Cmp .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_Slice_Cmp.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Slice_Definition _Slice_Definition: ## @Slice_Definition .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "struct Slice {\n var iter;\n var range;\n};\n" .no_dead_strip _Slice_Definition .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Slice_Definition _Slice_Definition: ; @Slice_Definition .cfi_startproc ; %bb.0: Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "struct Slice {\n var iter;\n var range;\n};\n" .no_dead_strip _Slice_Definition .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_Slice_Definition.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Slice_Del _Slice_Del: ## @Slice_Del .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl (%rdi), %edi popq %rbp jmp _del ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _Slice_Del .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Slice_Del _Slice_Del: ; @Slice_Del .cfi_startproc ; %bb.0: ldr w0, [x0] b _del .cfi_endproc ; -- End function .no_dead_strip _Slice_Del .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_Slice_Del.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Slice_Description _Slice_Description: ## @Slice_Description .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "The `Slice` type is an iterable that allows one to only iterate over part of another iterable. Given some start, stop and step, only those entries described by the `Slice` are returned in the iteration.\n\nUnder the hood the `Slice` object still iterates over the whole iterable but it only returns those values in the range given." .no_dead_strip _Slice_Description .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Slice_Description _Slice_Description: ; @Slice_Description .cfi_startproc ; %bb.0: Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "The `Slice` type is an iterable that allows one to only iterate over part of another iterable. Given some start, stop and step, only those entries described by the `Slice` are returned in the iteration.\n\nUnder the hood the `Slice` object still iterates over the whole iterable but it only returns those values in the range given." .no_dead_strip _Slice_Description .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_Slice_Description.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Slice_Examples _Slice_Examples: ## @Slice_Examples .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq _Slice_Examples.examples(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 4 ## @Slice_Examples.examples _Slice_Examples.examples: .quad L_.str .quad L_.str.1 .space 16 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Usage" L_.str.1: ## @.str.1 .asciz "var x = tuple(\n $S(\"Hello\"), $S(\"There\"), $S(\"World\"), $S(\"!\"));\n\n/* Iterate over elements 0 to 2 */\nforeach (s in slice(x, $I(2))) {\n print(\"%s\\n\", s);\n}\n\n/* Iterate over elements 1 to 2 */\nforeach (s in slice(x, $I(1), $I(2))) {\n print(\"%s\\n\", s);\n}\n\n/* Iterate over every other element */\nforeach (s in slice(x, _, _, $I(2))) {\n print(\"%s\\n\", s);\n}\n\n/* Iterate backwards, starting from element 3 */\nforeach (s in slice(x, _, $I(2), $I(-1))) {\n print(\"%s\\n\", s);\n}\n" .no_dead_strip _Slice_Examples .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Slice_Examples _Slice_Examples: ; @Slice_Examples .cfi_startproc ; %bb.0: Lloh0: adrp x0, _Slice_Examples.examples@PAGE Lloh1: add x0, x0, _Slice_Examples.examples@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @Slice_Examples.examples _Slice_Examples.examples: .quad l_.str .quad l_.str.1 .space 16 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Usage" l_.str.1: ; @.str.1 .asciz "var x = tuple(\n $S(\"Hello\"), $S(\"There\"), $S(\"World\"), $S(\"!\"));\n\n/* Iterate over elements 0 to 2 */\nforeach (s in slice(x, $I(2))) {\n print(\"%s\\n\", s);\n}\n\n/* Iterate over elements 1 to 2 */\nforeach (s in slice(x, $I(1), $I(2))) {\n print(\"%s\\n\", s);\n}\n\n/* Iterate over every other element */\nforeach (s in slice(x, _, _, $I(2))) {\n print(\"%s\\n\", s);\n}\n\n/* Iterate backwards, starting from element 3 */\nforeach (s in slice(x, _, $I(2), $I(-1))) {\n print(\"%s\\n\", s);\n}\n" .no_dead_strip _Slice_Examples .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_Slice_Examples.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Slice_Get _Slice_Get: ## @Slice_Get .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %rbx pushq %rax .cfi_offset %rbx, -24 movl (%rdi), %eax movl 4(%rdi), %ebx movl %eax, %edi callq _Range_Get movl %ebx, %edi movl %eax, %esi addq $8, %rsp popq %rbx popq %rbp jmp _get ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _Slice_Get .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Slice_Get _Slice_Get: ; @Slice_Get .cfi_startproc ; %bb.0: stp x20, x19, [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 w19, -24 .cfi_offset w20, -32 ldp w0, w19, [x0] bl _Range_Get mov x1, x0 mov x0, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _get .cfi_endproc ; -- End function .no_dead_strip _Slice_Get .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_Slice_Get.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Slice_Iter_Init _Slice_Iter_Init: ## @Slice_Iter_Init .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax .cfi_offset %rbx, -56 .cfi_offset %r12, -48 .cfi_offset %r13, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rdi, %r14 movq 8(%rdi), %r15 cmpq $0, (%r15) jle LBB0_4 ## %bb.1: movl (%r14), %edi callq _iter_init movq %rax, %r13 cmpq $0, 8(%r15) jle LBB0_9 ## %bb.2: xorl %ebx, %ebx .p2align 4, 0x90 LBB0_3: ## =>This Inner Loop Header: Depth=1 movl (%r14), %edi movq %r13, %rsi callq _iter_next movq %rax, %r13 incq %rbx cmpq 8(%r15), %rbx jl LBB0_3 jmp LBB0_9 LBB0_4: js LBB0_5 ## %bb.8: movq _Terminal@GOTPCREL(%rip), %rax movq (%rax), %r13 jmp LBB0_9 LBB0_5: movl (%r14), %edi callq _iter_last movq %rax, %r13 movl (%r14), %edi callq _len cmpq 16(%r15), %rax jle LBB0_9 ## %bb.6: xorl %r12d, %r12d .p2align 4, 0x90 LBB0_7: ## =>This Inner Loop Header: Depth=1 movl (%r14), %edi movq %r13, %rsi callq _iter_prev movq %rax, %r13 incq %r12 movl (%r14), %edi callq _len subq 16(%r15), %rax cmpq %rax, %r12 jl LBB0_7 LBB0_9: movq %r13, %rax addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .comm _Terminal,8,3 ## @Terminal .no_dead_strip _Slice_Iter_Init .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Slice_Iter_Init _Slice_Iter_Init: ; @Slice_Iter_Init .cfi_startproc ; %bb.0: stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill .cfi_def_cfa_offset 48 stp x20, x19, [sp, #16] ; 16-byte Folded Spill 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 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 mov x19, x0 ldr x21, [x0, #8] ldr x8, [x21] cmp x8, #1 b.lt LBB0_4 ; %bb.1: ldr w0, [x19] bl _iter_init mov x20, x0 ldr x8, [x21, #8] cmp x8, #1 b.lt LBB0_9 ; %bb.2: mov x22, #0 LBB0_3: ; =>This Inner Loop Header: Depth=1 ldr w0, [x19] mov x1, x20 bl _iter_next mov x20, x0 add x22, x22, #1 ldr x8, [x21, #8] cmp x22, x8 b.lt LBB0_3 b LBB0_9 LBB0_4: tbnz x8, #63, LBB0_6 ; %bb.5: Lloh0: adrp x8, _Terminal@GOTPAGE Lloh1: ldr x8, [x8, _Terminal@GOTPAGEOFF] Lloh2: ldr x20, [x8] b LBB0_9 LBB0_6: ldr w0, [x19] bl _iter_last mov x20, x0 ldr w0, [x19] bl _len ldr x8, [x21, #16] cmp x0, x8 b.le LBB0_9 ; %bb.7: mov x22, #0 LBB0_8: ; =>This Inner Loop Header: Depth=1 ldr w0, [x19] mov x1, x20 bl _iter_prev mov x20, x0 add x22, x22, #1 ldr w0, [x19] bl _len ldr x8, [x21, #16] sub x8, x0, x8 cmp x22, x8 b.lt LBB0_8 LBB0_9: mov x0, x20 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload ret .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _Terminal,8,3 ; @Terminal .no_dead_strip _Slice_Iter_Init .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_Slice_Iter_Init.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Slice_Iter_Last _Slice_Iter_Last: ## @Slice_Iter_Last .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx .cfi_offset %rbx, -48 .cfi_offset %r12, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rdi, %r14 movq 8(%rdi), %r15 cmpq $0, (%r15) jle LBB0_4 ## %bb.1: movl (%r14), %edi callq _iter_last movq %rax, %r12 movl (%r14), %edi callq _len cmpq 8(%r15), %rax jle LBB0_9 ## %bb.2: xorl %ebx, %ebx .p2align 4, 0x90 LBB0_3: ## =>This Inner Loop Header: Depth=1 movl (%r14), %edi movq %r12, %rsi callq _iter_prev movq %rax, %r12 incq %rbx movl (%r14), %edi callq _len subq 8(%r15), %rax cmpq %rax, %rbx jl LBB0_3 jmp LBB0_9 LBB0_4: js LBB0_5 ## %bb.8: movq _Terminal@GOTPCREL(%rip), %rax movq (%rax), %r12 jmp LBB0_9 LBB0_5: movl (%r14), %edi callq _iter_init movq %rax, %r12 cmpq $0, 16(%r15) jle LBB0_9 ## %bb.6: xorl %ebx, %ebx .p2align 4, 0x90 LBB0_7: ## =>This Inner Loop Header: Depth=1 movl (%r14), %edi movq %r12, %rsi callq _iter_next movq %rax, %r12 incq %rbx cmpq 16(%r15), %rbx jl LBB0_7 LBB0_9: movq %r12, %rax popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .comm _Terminal,8,3 ## @Terminal .no_dead_strip _Slice_Iter_Last .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Slice_Iter_Last _Slice_Iter_Last: ; @Slice_Iter_Last .cfi_startproc ; %bb.0: stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill .cfi_def_cfa_offset 48 stp x20, x19, [sp, #16] ; 16-byte Folded Spill 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 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 mov x19, x0 ldr x21, [x0, #8] ldr x8, [x21] cmp x8, #1 b.lt LBB0_4 ; %bb.1: ldr w0, [x19] bl _iter_last mov x20, x0 ldr w0, [x19] bl _len ldr x8, [x21, #8] cmp x0, x8 b.le LBB0_9 ; %bb.2: mov x22, #0 LBB0_3: ; =>This Inner Loop Header: Depth=1 ldr w0, [x19] mov x1, x20 bl _iter_prev mov x20, x0 add x22, x22, #1 ldr w0, [x19] bl _len ldr x8, [x21, #8] sub x8, x0, x8 cmp x22, x8 b.lt LBB0_3 b LBB0_9 LBB0_4: tbnz x8, #63, LBB0_6 ; %bb.5: Lloh0: adrp x8, _Terminal@GOTPAGE Lloh1: ldr x8, [x8, _Terminal@GOTPAGEOFF] Lloh2: ldr x20, [x8] b LBB0_9 LBB0_6: ldr w0, [x19] bl _iter_init mov x20, x0 ldr x8, [x21, #16] cmp x8, #1 b.lt LBB0_9 ; %bb.7: mov x22, #0 LBB0_8: ; =>This Inner Loop Header: Depth=1 ldr w0, [x19] mov x1, x20 bl _iter_next mov x20, x0 add x22, x22, #1 ldr x8, [x21, #16] cmp x22, x8 b.lt LBB0_8 LBB0_9: mov x0, x20 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload ret .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _Terminal,8,3 ; @Terminal .no_dead_strip _Slice_Iter_Last .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_Slice_Iter_Last.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Slice_Iter_Next _Slice_Iter_Next: ## @Slice_Iter_Next .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax .cfi_offset %rbx, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rsi, %rax movq %rdi, %r14 movq 8(%rdi), %r15 movq (%r15), %rcx testq %rcx, %rcx jle LBB0_3 ## %bb.1: xorl %ebx, %ebx .p2align 4, 0x90 LBB0_2: ## =>This Inner Loop Header: Depth=1 movl (%r14), %edi movq %rax, %rsi callq _iter_next incq %rbx movq (%r15), %rcx cmpq %rcx, %rbx jl LBB0_2 LBB0_3: testq %rcx, %rcx jns LBB0_6 ## %bb.4: xorl %ebx, %ebx .p2align 4, 0x90 LBB0_5: ## =>This Inner Loop Header: Depth=1 movl (%r14), %edi movq %rax, %rsi callq _iter_prev incq %rbx movq (%r15), %rcx xorl %edx, %edx subq %rcx, %rdx cmpq %rdx, %rbx jl LBB0_5 LBB0_6: addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _Slice_Iter_Next .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Slice_Iter_Next _Slice_Iter_Next: ; @Slice_Iter_Next .cfi_startproc ; %bb.0: stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill .cfi_def_cfa_offset 48 stp x20, x19, [sp, #16] ; 16-byte Folded Spill 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 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 mov x19, x0 ldr x20, [x0, #8] ldr x8, [x20] cmp x8, #1 b.lt LBB0_3 ; %bb.1: mov x21, #0 LBB0_2: ; =>This Inner Loop Header: Depth=1 ldr w0, [x19] bl _iter_next mov x1, x0 add x21, x21, #1 ldr x8, [x20] cmp x21, x8 b.lt LBB0_2 LBB0_3: tbz x8, #63, LBB0_6 ; %bb.4: mov x21, #0 LBB0_5: ; =>This Inner Loop Header: Depth=1 ldr w0, [x19] bl _iter_prev mov x1, x0 add x21, x21, #1 ldr x8, [x20] neg x8, x8 cmp x21, x8 b.lt LBB0_5 LBB0_6: mov x0, x1 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .no_dead_strip _Slice_Iter_Next .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_Slice_Iter_Next.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Slice_Iter_Prev _Slice_Iter_Prev: ## @Slice_Iter_Prev .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax .cfi_offset %rbx, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rsi, %rax movq %rdi, %r14 movq 8(%rdi), %r15 movq (%r15), %rcx testq %rcx, %rcx jle LBB0_3 ## %bb.1: xorl %ebx, %ebx .p2align 4, 0x90 LBB0_2: ## =>This Inner Loop Header: Depth=1 movl (%r14), %edi movq %rax, %rsi callq _iter_prev incq %rbx movq (%r15), %rcx cmpq %rcx, %rbx jl LBB0_2 LBB0_3: testq %rcx, %rcx jns LBB0_6 ## %bb.4: xorl %ebx, %ebx .p2align 4, 0x90 LBB0_5: ## =>This Inner Loop Header: Depth=1 movl (%r14), %edi movq %rax, %rsi callq _iter_next incq %rbx movq (%r15), %rcx xorl %edx, %edx subq %rcx, %rdx cmpq %rdx, %rbx jl LBB0_5 LBB0_6: addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _Slice_Iter_Prev .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Slice_Iter_Prev _Slice_Iter_Prev: ; @Slice_Iter_Prev .cfi_startproc ; %bb.0: stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill .cfi_def_cfa_offset 48 stp x20, x19, [sp, #16] ; 16-byte Folded Spill 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 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 mov x19, x0 ldr x20, [x0, #8] ldr x8, [x20] cmp x8, #1 b.lt LBB0_3 ; %bb.1: mov x21, #0 LBB0_2: ; =>This Inner Loop Header: Depth=1 ldr w0, [x19] bl _iter_prev mov x1, x0 add x21, x21, #1 ldr x8, [x20] cmp x21, x8 b.lt LBB0_2 LBB0_3: tbz x8, #63, LBB0_6 ; %bb.4: mov x21, #0 LBB0_5: ; =>This Inner Loop Header: Depth=1 ldr w0, [x19] bl _iter_next mov x1, x0 add x21, x21, #1 ldr x8, [x20] neg x8, x8 cmp x21, x8 b.lt LBB0_5 LBB0_6: mov x0, x1 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .no_dead_strip _Slice_Iter_Prev .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_Slice_Iter_Prev.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Slice_Iter_Type _Slice_Iter_Type: ## @Slice_Iter_Type .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl (%rdi), %edi popq %rbp jmp _iter_type ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _Slice_Iter_Type .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Slice_Iter_Type _Slice_Iter_Type: ; @Slice_Iter_Type .cfi_startproc ; %bb.0: ldr w0, [x0] b _iter_type .cfi_endproc ; -- End function .no_dead_strip _Slice_Iter_Type .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_Slice_Iter_Type.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Slice_Len _Slice_Len: ## @Slice_Len .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl (%rdi), %edi popq %rbp jmp _Range_Len ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _Slice_Len .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Slice_Len _Slice_Len: ; @Slice_Len .cfi_startproc ; %bb.0: ldr w0, [x0] b _Range_Len .cfi_endproc ; -- End function .no_dead_strip _Slice_Len .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_Slice_Len.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Slice_Mem _Slice_Mem: ## @Slice_Mem .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx .cfi_offset %rbx, -48 .cfi_offset %r12, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rsi, %r15 movq %rdi, %r12 callq _Slice_Iter_Init xorl %r14d, %r14d testq %rax, %rax je LBB0_5 ## %bb.1: movq %rax, %rbx .p2align 4, 0x90 LBB0_2: ## =>This Inner Loop Header: Depth=1 movq %rbx, %rdi movq %r15, %rsi callq _eq testq %rax, %rax jne LBB0_3 ## %bb.4: ## in Loop: Header=BB0_2 Depth=1 movq %r12, %rdi movq %rbx, %rsi callq _Slice_Iter_Next movq %rax, %rbx testq %rax, %rax jne LBB0_2 jmp LBB0_5 LBB0_3: movl $1, %r14d LBB0_5: movl %r14d, %eax popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _Slice_Mem .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Slice_Mem _Slice_Mem: ; @Slice_Mem .cfi_startproc ; %bb.0: stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill .cfi_def_cfa_offset 48 stp x20, x19, [sp, #16] ; 16-byte Folded Spill 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 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 mov x19, x1 mov x20, x0 bl _Slice_Iter_Init cbz x0, LBB0_5 ; %bb.1: mov x21, x0 LBB0_2: ; =>This Inner Loop Header: Depth=1 mov x0, x21 mov x1, x19 bl _eq cbnz x0, LBB0_4 ; %bb.3: ; in Loop: Header=BB0_2 Depth=1 mov x0, x20 mov x1, x21 bl _Slice_Iter_Next mov x21, x0 cbnz x0, LBB0_2 b LBB0_5 LBB0_4: mov w0, #1 LBB0_5: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .no_dead_strip _Slice_Mem .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_Slice_Mem.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Slice_Methods _Slice_Methods: ## @Slice_Methods .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq _Slice_Methods.methods(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 4 ## @Slice_Methods.methods _Slice_Methods.methods: .quad L_.str .quad L_.str.1 .quad L_.str.2 .quad L_.str.3 .quad L_.str.4 .quad L_.str.5 .space 24 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "slice" L_.str.1: ## @.str.1 .asciz "#define slice(I, ...)" L_.str.2: ## @.str.2 .asciz "Construct a `Slice` object on the stack over iterable `I`." L_.str.3: ## @.str.3 .asciz "reverse" L_.str.4: ## @.str.4 .asciz "#define reverse(I)" L_.str.5: ## @.str.5 .asciz "Construct a `Slice` object that iterates over iterable `I` in reverse order." .no_dead_strip _Slice_Methods .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Slice_Methods _Slice_Methods: ; @Slice_Methods .cfi_startproc ; %bb.0: Lloh0: adrp x0, _Slice_Methods.methods@PAGE Lloh1: add x0, x0, _Slice_Methods.methods@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @Slice_Methods.methods _Slice_Methods.methods: .quad l_.str .quad l_.str.1 .quad l_.str.2 .quad l_.str.3 .quad l_.str.4 .quad l_.str.5 .space 24 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "slice" l_.str.1: ; @.str.1 .asciz "#define slice(I, ...)" l_.str.2: ; @.str.2 .asciz "Construct a `Slice` object on the stack over iterable `I`." l_.str.3: ; @.str.3 .asciz "reverse" l_.str.4: ; @.str.4 .asciz "#define reverse(I)" l_.str.5: ; @.str.5 .asciz "Construct a `Slice` object that iterates over iterable `I` in reverse order." .no_dead_strip _Slice_Methods .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_Slice_Methods.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Slice_Name _Slice_Name: ## @Slice_Name .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Slice" .no_dead_strip _Slice_Name .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Slice_Name _Slice_Name: ; @Slice_Name .cfi_startproc ; %bb.0: Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Slice" .no_dead_strip _Slice_Name .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_Slice_Name.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Slice_New _Slice_New: ## @Slice_New .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 movq %rsi, %r14 movq %rdi, %rbx movq _Range@GOTPCREL(%rip), %rax movl (%rax), %edi callq _new movl %eax, (%rbx) movq %rbx, %rdi movq %r14, %rsi popq %rbx popq %r14 popq %rbp jmp _slice_stack ## TAILCALL .cfi_endproc ## -- End function .comm _Range,4,2 ## @Range .no_dead_strip _Slice_New .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Slice_New _Slice_New: ; @Slice_New .cfi_startproc ; %bb.0: stp x20, x19, [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 w19, -24 .cfi_offset w20, -32 mov x19, x1 mov x20, x0 Lloh0: adrp x8, _Range@GOTPAGE Lloh1: ldr x8, [x8, _Range@GOTPAGEOFF] Lloh2: ldr w0, [x8] bl _new str w0, [x20] mov x0, x20 mov x1, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _slice_stack .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _Range,4,2 ; @Range .no_dead_strip _Slice_New .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_Slice_New.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Zip_Assign _Zip_Assign: ## @Zip_Assign .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 movq %rsi, %rax movq %rdi, %r14 movq _Zip@GOTPCREL(%rip), %rcx movl (%rcx), %esi movq %rax, %rdi callq _cast movq %rax, %rbx movl 4(%r14), %edi movl 4(%rax), %esi callq _assign movl (%r14), %edi movl (%rbx), %esi popq %rbx popq %r14 popq %rbp jmp _assign ## TAILCALL .cfi_endproc ## -- End function .comm _Zip,4,2 ## @Zip .no_dead_strip _Zip_Assign .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Zip_Assign _Zip_Assign: ; @Zip_Assign .cfi_startproc ; %bb.0: stp x20, x19, [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 w19, -24 .cfi_offset w20, -32 mov x8, x1 mov x19, x0 Lloh0: adrp x9, _Zip@GOTPAGE Lloh1: ldr x9, [x9, _Zip@GOTPAGEOFF] Lloh2: ldr w1, [x9] mov x0, x8 bl _cast mov x20, x0 ldr w0, [x19, #4] ldr w1, [x20, #4] bl _assign ldr w0, [x19] ldr w1, [x20] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _assign .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _Zip,4,2 ; @Zip .no_dead_strip _Zip_Assign .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_Zip_Assign.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Zip_Brief _Zip_Brief: ## @Zip_Brief .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Multiple Iterator" .no_dead_strip _Zip_Brief .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Zip_Brief _Zip_Brief: ; @Zip_Brief .cfi_startproc ; %bb.0: Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Multiple Iterator" .no_dead_strip _Zip_Brief .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_Zip_Brief.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Zip_Definition _Zip_Definition: ## @Zip_Definition .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "struct Zip {\n var iters;\n var values;\n};\n" .no_dead_strip _Zip_Definition .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Zip_Definition _Zip_Definition: ; @Zip_Definition .cfi_startproc ; %bb.0: Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "struct Zip {\n var iters;\n var values;\n};\n" .no_dead_strip _Zip_Definition .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_Zip_Definition.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Zip_Del _Zip_Del: ## @Zip_Del .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %rbx pushq %rax .cfi_offset %rbx, -24 movq %rdi, %rbx movl 4(%rdi), %edi callq _del movl (%rbx), %edi addq $8, %rsp popq %rbx popq %rbp jmp _del ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _Zip_Del .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Zip_Del _Zip_Del: ; @Zip_Del .cfi_startproc ; %bb.0: stp x20, x19, [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 w19, -24 .cfi_offset w20, -32 mov x19, x0 ldr w0, [x0, #4] bl _del ldr w0, [x19] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _del .cfi_endproc ; -- End function .no_dead_strip _Zip_Del .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_Zip_Del.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Zip_Description _Zip_Description: ## @Zip_Description .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "The `Zip` type can be used to combine multiple iterables into one which is then iterated over all at once and returned as a Tuple. The Zip object only iterates when all of it's sub iterators have valid items. More specifically the Zip iteration will terminate if _any_ of the sub iterators terminate." .no_dead_strip _Zip_Description .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Zip_Description _Zip_Description: ; @Zip_Description .cfi_startproc ; %bb.0: Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "The `Zip` type can be used to combine multiple iterables into one which is then iterated over all at once and returned as a Tuple. The Zip object only iterates when all of it's sub iterators have valid items. More specifically the Zip iteration will terminate if _any_ of the sub iterators terminate." .no_dead_strip _Zip_Description .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_Zip_Description.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Zip_Examples _Zip_Examples: ## @Zip_Examples .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq _Zip_Examples.examples(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 4 ## @Zip_Examples.examples _Zip_Examples.examples: .quad L_.str .quad L_.str.1 .space 16 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Usage" L_.str.1: ## @.str.1 .asciz "/* Iterate over two iterables at once */\nvar x = new(Array, Int, $I(100), $I(200), $I(130));\nvar y = new(Array, Float, $F(0.1), $F(0.2), $F(1.3));\nforeach (pair in zip(x, y)) {\n print(\"x: %$\\n\", get(pair, $I(0)));\n print(\"y: %$\\n\", get(pair, $I(1)));\n}\n\n/* Iterate over iterable with count */\nforeach (pair in enumerate(x)) {\n print(\"%i: %$\\n\", get(pair, $I(0)), get(pair, $I(1)));\n}\n" .no_dead_strip _Zip_Examples .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Zip_Examples _Zip_Examples: ; @Zip_Examples .cfi_startproc ; %bb.0: Lloh0: adrp x0, _Zip_Examples.examples@PAGE Lloh1: add x0, x0, _Zip_Examples.examples@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @Zip_Examples.examples _Zip_Examples.examples: .quad l_.str .quad l_.str.1 .space 16 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Usage" l_.str.1: ; @.str.1 .asciz "/* Iterate over two iterables at once */\nvar x = new(Array, Int, $I(100), $I(200), $I(130));\nvar y = new(Array, Float, $F(0.1), $F(0.2), $F(1.3));\nforeach (pair in zip(x, y)) {\n print(\"x: %$\\n\", get(pair, $I(0)));\n print(\"y: %$\\n\", get(pair, $I(1)));\n}\n\n/* Iterate over iterable with count */\nforeach (pair in enumerate(x)) {\n print(\"%i: %$\\n\", get(pair, $I(0)), get(pair, $I(1)));\n}\n" .no_dead_strip _Zip_Examples .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_Zip_Examples.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Zip_Get _Zip_Get: ## @Zip_Get .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax .cfi_offset %rbx, -56 .cfi_offset %r12, -48 .cfi_offset %r13, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rsi, %r14 movq 8(%rdi), %r12 movq 16(%rdi), %r15 movq %r12, %rdi callq _len testq %rax, %rax je LBB0_3 ## %bb.1: movq %rax, %r13 xorl %ebx, %ebx .p2align 4, 0x90 LBB0_2: ## =>This Inner Loop Header: Depth=1 movq (%r12), %rax movl (%rax,%rbx,4), %edi movq %r14, %rsi callq _get movq (%r15), %rcx movl %eax, (%rcx,%rbx,4) incq %rbx cmpq %rbx, %r13 jne LBB0_2 LBB0_3: movq %r15, %rax addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _Zip_Get .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Zip_Get _Zip_Get: ; @Zip_Get .cfi_startproc ; %bb.0: stp x24, x23, [sp, #-64]! ; 16-byte Folded Spill .cfi_def_cfa_offset 64 stp x22, x21, [sp, #16] ; 16-byte Folded Spill stp x20, x19, [sp, #32] ; 16-byte Folded Spill 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 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 .cfi_offset w23, -56 .cfi_offset w24, -64 mov x19, x1 ldp x21, x20, [x0, #8] mov x0, x21 bl _len cbz x0, LBB0_3 ; %bb.1: mov x22, x0 mov x23, #0 LBB0_2: ; =>This Inner Loop Header: Depth=1 ldr x8, [x21] lsl x24, x23, #2 ldr w0, [x8, x24] mov x1, x19 bl _get ldr x8, [x20] str w0, [x8, x24] add x23, x23, #1 cmp x22, x23 b.ne LBB0_2 LBB0_3: mov x0, x20 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload ldp x20, x19, [sp, #32] ; 16-byte Folded Reload ldp x22, x21, [sp, #16] ; 16-byte Folded Reload ldp x24, x23, [sp], #64 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .no_dead_strip _Zip_Get .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_Zip_Get.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Zip_Iter_Type _Zip_Iter_Type: ## @Zip_Iter_Type .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _Tuple@GOTPCREL(%rip), %rax movl (%rax), %eax popq %rbp retq .cfi_endproc ## -- End function .comm _Tuple,4,2 ## @Tuple .no_dead_strip _Zip_Iter_Type .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Zip_Iter_Type _Zip_Iter_Type: ; @Zip_Iter_Type .cfi_startproc ; %bb.0: Lloh0: adrp x8, _Tuple@GOTPAGE Lloh1: ldr x8, [x8, _Tuple@GOTPAGEOFF] Lloh2: ldr w0, [x8] ret .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _Tuple,4,2 ; @Tuple .no_dead_strip _Zip_Iter_Type .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_Zip_Iter_Type.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Zip_Methods _Zip_Methods: ## @Zip_Methods .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq _Zip_Methods.methods(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 4 ## @Zip_Methods.methods _Zip_Methods.methods: .quad L_.str .quad L_.str.1 .quad L_.str.2 .quad L_.str.3 .quad L_.str.4 .quad L_.str.5 .space 24 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "zip" L_.str.1: ## @.str.1 .asciz "#define zip(...)" L_.str.2: ## @.str.2 .asciz "Construct a `Zip` object on the stack." L_.str.3: ## @.str.3 .asciz "enumerate" L_.str.4: ## @.str.4 .asciz "#define enumerate(I)" L_.str.5: ## @.str.5 .asciz "Zip the iterable `I` with a `Range` object of the same length." .no_dead_strip _Zip_Methods .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Zip_Methods _Zip_Methods: ; @Zip_Methods .cfi_startproc ; %bb.0: Lloh0: adrp x0, _Zip_Methods.methods@PAGE Lloh1: add x0, x0, _Zip_Methods.methods@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @Zip_Methods.methods _Zip_Methods.methods: .quad l_.str .quad l_.str.1 .quad l_.str.2 .quad l_.str.3 .quad l_.str.4 .quad l_.str.5 .space 24 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "zip" l_.str.1: ; @.str.1 .asciz "#define zip(...)" l_.str.2: ; @.str.2 .asciz "Construct a `Zip` object on the stack." l_.str.3: ; @.str.3 .asciz "enumerate" l_.str.4: ; @.str.4 .asciz "#define enumerate(I)" l_.str.5: ; @.str.5 .asciz "Zip the iterable `I` with a `Range` object of the same length." .no_dead_strip _Zip_Methods .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_Zip_Methods.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Zip_Name _Zip_Name: ## @Zip_Name .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Zip" .no_dead_strip _Zip_Name .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Zip_Name _Zip_Name: ; @Zip_Name .cfi_startproc ; %bb.0: Lloh0: adrp x0, l_.str@PAGE Lloh1: add x0, x0, l_.str@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Zip" .no_dead_strip _Zip_Name .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_Zip_Name.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Zip_New _Zip_New: ## @Zip_New .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx .cfi_offset %rbx, -48 .cfi_offset %r12, -40 .cfi_offset %r14, -32 .cfi_offset %r15, -24 movq %rsi, %r14 movq %rdi, %r15 movq _Tuple@GOTPCREL(%rip), %rbx movl (%rbx), %edi callq _new movq %rax, 8(%r15) movl (%rbx), %edi callq _new movq %rax, (%r15) movq 8(%r15), %rdi movq %r14, %rsi callq _assign movq %r14, %rdi callq _len testq %rax, %rax je LBB0_3 ## %bb.1: xorl %ebx, %ebx movq __@GOTPCREL(%rip), %r12 .p2align 4, 0x90 LBB0_2: ## =>This Inner Loop Header: Depth=1 movq (%r15), %rdi movl (%r12), %esi callq _push incq %rbx movq %r14, %rdi callq _len cmpq %rax, %rbx jb LBB0_2 LBB0_3: popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .comm _Tuple,4,2 ## @Tuple .comm __,4,2 ## @_ .no_dead_strip _Zip_New .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Zip_New _Zip_New: ; @Zip_New .cfi_startproc ; %bb.0: stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill .cfi_def_cfa_offset 48 stp x20, x19, [sp, #16] ; 16-byte Folded Spill 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 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 mov x19, x1 mov x20, x0 Lloh0: adrp x21, _Tuple@GOTPAGE Lloh1: ldr x21, [x21, _Tuple@GOTPAGEOFF] ldr w0, [x21] bl _new str x0, [x20, #8] ldr w0, [x21] bl _new str x0, [x20] ldr x0, [x20, #8] mov x1, x19 bl _assign mov x0, x19 bl _len cbz x0, LBB0_3 ; %bb.1: mov x21, #0 Lloh2: adrp x22, __@GOTPAGE Lloh3: ldr x22, [x22, __@GOTPAGEOFF] LBB0_2: ; =>This Inner Loop Header: Depth=1 ldr x0, [x20] ldr w1, [x22] bl _push add x21, x21, #1 mov x0, x19 bl _len cmp x21, x0 b.lo LBB0_2 LBB0_3: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp x22, x21, [sp], #48 ; 16-byte Folded Reload ret .loh AdrpLdrGot Lloh0, Lloh1 .loh AdrpLdrGot Lloh2, Lloh3 .cfi_endproc ; -- End function .comm _Tuple,4,2 ; @Tuple .comm __,4,2 ; @_ .no_dead_strip _Zip_New .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_Zip_New.c
anghabench