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 .globl _iter_init ## -- Begin function iter_init .p2align 4, 0x90 _iter_init: ## @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 movq _Iter@GOTPCREL(%rip), %rax movl (%rax), %esi leaq _iter_init(%rip), %rdx popq %rbp jmp _method ## TAILCALL .cfi_endproc ## -- End function .comm _Iter,4,2 ## @Iter .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _iter_init ; -- Begin function iter_init .p2align 2 _iter_init: ; @iter_init .cfi_startproc ; %bb.0: Lloh0: adrp x8, _Iter@GOTPAGE Lloh1: ldr x8, [x8, _Iter@GOTPAGEOFF] Lloh2: ldr w1, [x8] Lloh3: adrp x2, _iter_init@PAGE Lloh4: add x2, x2, _iter_init@PAGEOFF b _method .loh AdrpAdd Lloh3, Lloh4 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _Iter,4,2 ; @Iter .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_iter_init.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _iter_last ## -- Begin function iter_last .p2align 4, 0x90 _iter_last: ## @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 movq _Iter@GOTPCREL(%rip), %rax movl (%rax), %esi leaq _iter_last(%rip), %rdx popq %rbp jmp _method ## TAILCALL .cfi_endproc ## -- End function .comm _Iter,4,2 ## @Iter .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _iter_last ; -- Begin function iter_last .p2align 2 _iter_last: ; @iter_last .cfi_startproc ; %bb.0: Lloh0: adrp x8, _Iter@GOTPAGE Lloh1: ldr x8, [x8, _Iter@GOTPAGEOFF] Lloh2: ldr w1, [x8] Lloh3: adrp x2, _iter_last@PAGE Lloh4: add x2, x2, _iter_last@PAGEOFF b _method .loh AdrpAdd Lloh3, Lloh4 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _Iter,4,2 ; @Iter .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_iter_last.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _iter_next ## -- Begin function iter_next .p2align 4, 0x90 _iter_next: ## @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 movl %esi, %ecx movq _Iter@GOTPCREL(%rip), %rax movl (%rax), %esi leaq _iter_next(%rip), %rdx popq %rbp jmp _method ## TAILCALL .cfi_endproc ## -- End function .comm _Iter,4,2 ## @Iter .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _iter_next ; -- Begin function iter_next .p2align 2 _iter_next: ; @iter_next .cfi_startproc ; %bb.0: mov x3, x1 Lloh0: adrp x8, _Iter@GOTPAGE Lloh1: ldr x8, [x8, _Iter@GOTPAGEOFF] Lloh2: ldr w1, [x8] Lloh3: adrp x2, _iter_next@PAGE Lloh4: add x2, x2, _iter_next@PAGEOFF b _method .loh AdrpAdd Lloh3, Lloh4 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _Iter,4,2 ; @Iter .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_iter_next.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _iter_prev ## -- Begin function iter_prev .p2align 4, 0x90 _iter_prev: ## @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 movl %esi, %ecx movq _Iter@GOTPCREL(%rip), %rax movl (%rax), %esi leaq _iter_prev(%rip), %rdx popq %rbp jmp _method ## TAILCALL .cfi_endproc ## -- End function .comm _Iter,4,2 ## @Iter .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _iter_prev ; -- Begin function iter_prev .p2align 2 _iter_prev: ; @iter_prev .cfi_startproc ; %bb.0: mov x3, x1 Lloh0: adrp x8, _Iter@GOTPAGE Lloh1: ldr x8, [x8, _Iter@GOTPAGEOFF] Lloh2: ldr w1, [x8] Lloh3: adrp x2, _iter_prev@PAGE Lloh4: add x2, x2, _iter_prev@PAGEOFF b _method .loh AdrpAdd Lloh3, Lloh4 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _Iter,4,2 ; @Iter .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_iter_prev.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _iter_type ## -- Begin function iter_type .p2align 4, 0x90 _iter_type: ## @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 _Iter@GOTPCREL(%rip), %rax movl (%rax), %esi leaq _iter_type(%rip), %rdx popq %rbp jmp _method ## TAILCALL .cfi_endproc ## -- End function .comm _Iter,4,2 ## @Iter .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _iter_type ; -- Begin function iter_type .p2align 2 _iter_type: ; @iter_type .cfi_startproc ; %bb.0: Lloh0: adrp x8, _Iter@GOTPAGE Lloh1: ldr x8, [x8, _Iter@GOTPAGEOFF] Lloh2: ldr w1, [x8] Lloh3: adrp x2, _iter_type@PAGE Lloh4: add x2, x2, _iter_type@PAGEOFF b _method .loh AdrpAdd Lloh3, Lloh4 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _Iter,4,2 ; @Iter .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_iter_type.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _zip_stack ## -- Begin function zip_stack .p2align 4, 0x90 _zip_stack: ## @zip_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 %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 movq %rdi, %r14 movl 8(%rdi), %edi callq _len movq (%r14), %rcx movq (%rcx), %rcx testq %rax, %rax je LBB0_18 ## %bb.1: cmpq $8, %rax jb LBB0_2 ## %bb.3: movq __@GOTPCREL(%rip), %r8 leaq 4(%r8), %rdx cmpq %rdx, %rcx jae LBB0_6 ## %bb.4: leaq (%rcx,%rax,4), %rdx cmpq __@GOTPCREL(%rip), %rdx jbe LBB0_6 LBB0_2: xorl %edx, %edx LBB0_12: movq %rdx, %r8 notq %r8 addq %rax, %r8 movq %rax, %rdi andq $3, %rdi je LBB0_15 ## %bb.13: movq __@GOTPCREL(%rip), %rbx .p2align 4, 0x90 LBB0_14: ## =>This Inner Loop Header: Depth=1 movl (%rbx), %esi movl %esi, (%rcx,%rdx,4) incq %rdx decq %rdi jne LBB0_14 LBB0_15: cmpq $3, %r8 jb LBB0_18 ## %bb.16: movq __@GOTPCREL(%rip), %rsi .p2align 4, 0x90 LBB0_17: ## =>This Inner Loop Header: Depth=1 movl (%rsi), %edi movl %edi, (%rcx,%rdx,4) movl (%rsi), %edi movl %edi, 4(%rcx,%rdx,4) movl (%rsi), %edi movl %edi, 8(%rcx,%rdx,4) movl (%rsi), %edi movl %edi, 12(%rcx,%rdx,4) addq $4, %rdx cmpq %rdx, %rax jne LBB0_17 jmp LBB0_18 LBB0_6: movq %rax, %rdx andq $-8, %rdx leaq -8(%rdx), %rsi movq %rsi, %r9 shrq $3, %r9 incq %r9 testq %rsi, %rsi je LBB0_19 ## %bb.7: movq %r9, %rdi andq $-2, %rdi movd (%r8), %xmm0 ## xmm0 = mem[0],zero,zero,zero pshufd $0, %xmm0, %xmm0 ## xmm0 = xmm0[0,0,0,0] xorl %esi, %esi .p2align 4, 0x90 LBB0_8: ## =>This Inner Loop Header: Depth=1 movdqu %xmm0, (%rcx,%rsi,4) movdqu %xmm0, 16(%rcx,%rsi,4) movdqu %xmm0, 32(%rcx,%rsi,4) movdqu %xmm0, 48(%rcx,%rsi,4) addq $16, %rsi addq $-2, %rdi jne LBB0_8 ## %bb.9: testb $1, %r9b je LBB0_11 LBB0_10: movd (%r8), %xmm0 ## xmm0 = mem[0],zero,zero,zero pshufd $0, %xmm0, %xmm0 ## xmm0 = xmm0[0,0,0,0] movdqu %xmm0, (%rcx,%rsi,4) movdqu %xmm0, 16(%rcx,%rsi,4) LBB0_11: cmpq %rdx, %rax jne LBB0_12 LBB0_18: movq _Terminal@GOTPCREL(%rip), %rdx movl (%rdx), %edx movl %edx, (%rcx,%rax,4) movq %r14, %rax popq %rbx popq %r14 popq %rbp retq LBB0_19: xorl %esi, %esi testb $1, %r9b jne LBB0_10 jmp LBB0_11 .cfi_endproc ## -- End function .comm __,4,2 ## @_ .comm _Terminal,4,2 ## @Terminal .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _zip_stack ; -- Begin function zip_stack .p2align 2 _zip_stack: ; @zip_stack .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 _len ldr x8, [x19] ldr x8, [x8] cbz x0, LBB0_9 ; %bb.1: Lloh0: adrp x9, __@GOTPAGE Lloh1: ldr x9, [x9, __@GOTPAGEOFF] cmp x0, #16 b.lo LBB0_6 ; %bb.2: add x10, x8, x0, lsl #2 add x11, x9, #4 cmp x8, x11 ccmp x10, x9, #0, lo b.hi LBB0_6 ; %bb.3: and x10, x0, #0xfffffffffffffff0 ld1r.4s { v0 }, [x9] add x11, x8, #32 mov x12, x10 LBB0_4: ; =>This Inner Loop Header: Depth=1 stp q0, q0, [x11, #-32] stp q0, q0, [x11], #64 subs x12, x12, #16 b.ne LBB0_4 ; %bb.5: cmp x0, x10 b.ne LBB0_7 b LBB0_9 LBB0_6: mov x10, #0 LBB0_7: sub x11, x0, x10 add x10, x8, x10, lsl #2 LBB0_8: ; =>This Inner Loop Header: Depth=1 ldr w12, [x9] str w12, [x10], #4 subs x11, x11, #1 b.ne LBB0_8 LBB0_9: Lloh2: adrp x9, _Terminal@GOTPAGE Lloh3: ldr x9, [x9, _Terminal@GOTPAGEOFF] Lloh4: ldr w9, [x9] str w9, [x8, x0, lsl #2] mov x0, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret .loh AdrpLdrGot Lloh0, Lloh1 .loh AdrpLdrGotLdr Lloh2, Lloh3, Lloh4 .cfi_endproc ; -- End function .comm __,4,2 ; @_ .comm _Terminal,4,2 ; @Terminal .subsections_via_symbols
AnghaBench/Cello/src/extr_Iter.c_zip_stack.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Len_Brief _Len_Brief: ## @Len_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 "Has a length" .no_dead_strip _Len_Brief .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Len_Brief _Len_Brief: ; @Len_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 "Has a length" .no_dead_strip _Len_Brief .subsections_via_symbols
AnghaBench/Cello/src/extr_Len.c_Len_Brief.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Len_Definition _Len_Definition: ## @Len_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 Len {\n size_t (*len)(var);\n};\n" .no_dead_strip _Len_Definition .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Len_Definition _Len_Definition: ; @Len_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 Len {\n size_t (*len)(var);\n};\n" .no_dead_strip _Len_Definition .subsections_via_symbols
AnghaBench/Cello/src/extr_Len.c_Len_Definition.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Len_Description _Len_Description: ## @Len_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 `Len` class can be implemented by any type that has a length associated with it. It is typically implemented by collections and is often used in conjunction with `Iter` or `Get`." .no_dead_strip _Len_Description .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Len_Description _Len_Description: ; @Len_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 `Len` class can be implemented by any type that has a length associated with it. It is typically implemented by collections and is often used in conjunction with `Iter` or `Get`." .no_dead_strip _Len_Description .subsections_via_symbols
AnghaBench/Cello/src/extr_Len.c_Len_Description.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Len_Examples _Len_Examples: ## @Len_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 _Len_Examples.examples(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 4 ## @Len_Examples.examples _Len_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 = new(Array, Int, $I(1), $I(2), $I(5));\nshow($I(len(x))); /* 3 */\nvar y = $S(\"Test\");\nshow($I(len(y))); /* 4 */\n" .no_dead_strip _Len_Examples .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Len_Examples _Len_Examples: ; @Len_Examples .cfi_startproc ; %bb.0: Lloh0: adrp x0, _Len_Examples.examples@PAGE Lloh1: add x0, x0, _Len_Examples.examples@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @Len_Examples.examples _Len_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 = new(Array, Int, $I(1), $I(2), $I(5));\nshow($I(len(x))); /* 3 */\nvar y = $S(\"Test\");\nshow($I(len(y))); /* 4 */\n" .no_dead_strip _Len_Examples .subsections_via_symbols
AnghaBench/Cello/src/extr_Len.c_Len_Examples.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Len_Methods _Len_Methods: ## @Len_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 _Len_Methods.methods(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 4 ## @Len_Methods.methods _Len_Methods.methods: .quad L_.str .quad L_.str.1 .quad L_.str.2 .space 24 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "len" L_.str.1: ## @.str.1 .asciz "size_t len(var self);" L_.str.2: ## @.str.2 .asciz "Returns the length of object `self`." .no_dead_strip _Len_Methods .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Len_Methods _Len_Methods: ; @Len_Methods .cfi_startproc ; %bb.0: Lloh0: adrp x0, _Len_Methods.methods@PAGE Lloh1: add x0, x0, _Len_Methods.methods@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @Len_Methods.methods _Len_Methods.methods: .quad l_.str .quad l_.str.1 .quad l_.str.2 .space 24 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "len" l_.str.1: ; @.str.1 .asciz "size_t len(var self);" l_.str.2: ; @.str.2 .asciz "Returns the length of object `self`." .no_dead_strip _Len_Methods .subsections_via_symbols
AnghaBench/Cello/src/extr_Len.c_Len_Methods.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Len_Name _Len_Name: ## @Len_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 "Len" .no_dead_strip _Len_Name .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Len_Name _Len_Name: ; @Len_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 "Len" .no_dead_strip _Len_Name .subsections_via_symbols
AnghaBench/Cello/src/extr_Len.c_Len_Name.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _len ## -- Begin function len .p2align 4, 0x90 _len: ## @len .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _Len@GOTPCREL(%rip), %rax movl (%rax), %esi leaq _len(%rip), %rdx popq %rbp jmp _method ## TAILCALL .cfi_endproc ## -- End function .comm _Len,4,2 ## @Len .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _len ; -- Begin function len .p2align 2 _len: ; @len .cfi_startproc ; %bb.0: Lloh0: adrp x8, _Len@GOTPAGE Lloh1: ldr x8, [x8, _Len@GOTPAGEOFF] Lloh2: ldr w1, [x8] Lloh3: adrp x2, _len@PAGE Lloh4: add x2, x2, _len@PAGEOFF b _method .loh AdrpAdd Lloh3, Lloh4 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _Len,4,2 ; @Len .subsections_via_symbols
AnghaBench/Cello/src/extr_Len.c_len.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function List_At _List_At: ## @List_At .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 movl %esi, %eax movq %rdi, %r14 movl (%rdi), %ecx movl %esi, %r15d sarl $31, %r15d andl %ecx, %r15d leal (%r15,%rax), %ebx movl %ecx, %edx shrl $31, %edx addl %ecx, %edx sarl %edx cmpl %edx, %ebx jle LBB0_1 ## %bb.3: notl %ebx movl 4(%r14), %esi addl %ecx, %ebx je LBB0_6 ## %bb.4: addl %eax, %r15d subl %ecx, %r15d incl %r15d .p2align 4, 0x90 LBB0_5: ## =>This Inner Loop Header: Depth=1 movq %r14, %rdi callq _List_Prev movl (%rax), %esi incl %r15d jne LBB0_5 jmp LBB0_6 LBB0_1: movl 8(%r14), %esi testl %ebx, %ebx je LBB0_6 .p2align 4, 0x90 LBB0_2: ## =>This Inner Loop Header: Depth=1 movq %r14, %rdi callq _List_Next movl (%rax), %esi decl %ebx jne LBB0_2 LBB0_6: movl %esi, %eax addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .comm _IndexOutOfBoundsError,4,2 ## @IndexOutOfBoundsError .comm _Int,4,2 ## @Int .no_dead_strip _List_At .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function List_At _List_At: ; @List_At .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 w9, [x0] and w10, w9, w1, asr #31 add w20, w10, w1 cmp w9, #0 cinc w11, w9, lt cmp w20, w11, asr #1 b.le LBB0_4 ; %bb.1: mov x8, x1 mvn w11, w20 ldr w1, [x19, #4] cmn w9, w11 b.eq LBB0_6 ; %bb.2: add w8, w10, w8 sub w8, w8, w9 add w20, w8, #1 LBB0_3: ; =>This Inner Loop Header: Depth=1 mov x0, x19 bl _List_Prev ldr w1, [x0] adds w20, w20, #1 b.lo LBB0_3 b LBB0_6 LBB0_4: ldr w1, [x19, #8] cbz w20, LBB0_6 LBB0_5: ; =>This Inner Loop Header: Depth=1 mov x0, x19 bl _List_Next ldr w1, [x0] subs w20, w20, #1 b.ne LBB0_5 LBB0_6: mov x0, x1 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .comm _IndexOutOfBoundsError,4,2 ; @IndexOutOfBoundsError .comm _Int,4,2 ; @Int .no_dead_strip _List_At .subsections_via_symbols
AnghaBench/Cello/src/extr_List.c_List_At.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function List_Brief _List_Brief: ## @List_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 "Linked List" .no_dead_strip _List_Brief .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function List_Brief _List_Brief: ; @List_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 "Linked List" .no_dead_strip _List_Brief .subsections_via_symbols
AnghaBench/Cello/src/extr_List.c_List_Brief.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function List_Clear _List_Clear: ## @List_Clear .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 %rdi, %r14 movq 8(%rdi), %rbx testq %rbx, %rbx je LBB0_2 .p2align 4, 0x90 LBB0_1: ## =>This Inner Loop Header: Depth=1 movq %r14, %rdi movq %rbx, %rsi callq _List_Next movq (%rax), %r15 movq %rbx, %rdi callq _destruct movq %r14, %rdi movq %rbx, %rsi callq _List_Free movq %r15, %rbx testq %r15, %r15 jne LBB0_1 LBB0_2: xorps %xmm0, %xmm0 movups %xmm0, (%r14) movq $0, 16(%r14) addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _List_Clear .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function List_Clear _List_Clear: ; @List_Clear .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] cbz x20, LBB0_2 LBB0_1: ; =>This Inner Loop Header: Depth=1 mov x0, x19 mov x1, x20 bl _List_Next ldr x21, [x0] mov x0, x20 bl _destruct mov x0, x19 mov x1, x20 bl _List_Free mov x20, x21 cbnz x21, LBB0_1 LBB0_2: stp xzr, xzr, [x19] str xzr, [x19, #16] 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 _List_Clear .subsections_via_symbols
AnghaBench/Cello/src/extr_List.c_List_Clear.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function List_Del _List_Del: ## @List_Del .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 _List_Clear ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _List_Del .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function List_Del _List_Del: ; @List_Del .cfi_startproc ; %bb.0: b _List_Clear .cfi_endproc ; -- End function .no_dead_strip _List_Del .subsections_via_symbols
AnghaBench/Cello/src/extr_List.c_List_Del.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function List_Description _List_Description: ## @List_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 `List` type is a linked list data structure. Elements can be added and removed from the list and their memory is allocated and deallocated by the structure. Additionally destructors will be called on objects once removed.\n\nElements are copied into the List using `assign` and will initially have zero'd memory.\n\nLists can provide fast insertion and removal at arbitrary locations although most other operations will be slow due to having to traverse the linked list data structure.\n\nThis is largely equivalent to the C++ construct [std::list](http://www.cplusplus.com/reference/list/list/)" .no_dead_strip _List_Description .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function List_Description _List_Description: ; @List_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 `List` type is a linked list data structure. Elements can be added and removed from the list and their memory is allocated and deallocated by the structure. Additionally destructors will be called on objects once removed.\n\nElements are copied into the List using `assign` and will initially have zero'd memory.\n\nLists can provide fast insertion and removal at arbitrary locations although most other operations will be slow due to having to traverse the linked list data structure.\n\nThis is largely equivalent to the C++ construct [std::list](http://www.cplusplus.com/reference/list/list/)" .no_dead_strip _List_Description .subsections_via_symbols
AnghaBench/Cello/src/extr_List.c_List_Description.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function List_Examples _List_Examples: ## @List_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 _List_Examples.examples(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 4 ## @List_Examples.examples _List_Examples.examples: .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 .space 16 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Construction & Deletion" L_.str.1: ## @.str.1 .asciz "var x = new(List, Int);\npush(x, $I(32));\npush(x, $I(6));\n\n/* <'List' At 0x0000000000414603 [32, 6]> */\nshow(x);\n" L_.str.2: ## @.str.2 .asciz "Element Access" L_.str.3: ## @.str.3 .asciz "var x = new(List, Float, $F(0.01), $F(5.12));\n\nshow(get(x, $I(0))); /* 0.01 */\nshow(get(x, $I(1))); /* 5.12 */\n\nset(x, $I(0), $F(500.1));\nshow(get(x, $I(0))); /* 500.1 */\n" L_.str.4: ## @.str.4 .asciz "Membership" L_.str.5: ## @.str.5 .asciz "var x = new(List, Int, $I(1), $I(2), $I(3), $I(4));\n\nshow($I(mem(x, $I(1)))); /* 1 */\nshow($I(len(x))); /* 4 */\n\nrem(x, $I(3));\n\nshow($I(mem(x, $I(3)))); /* 0 */\nshow($I(len(x))); /* 3 */\nshow($I(empty(x))); /* 0 */\n\nresize(x, 0);\n\nshow($I(empty(x))); /* 1 */\n" L_.str.6: ## @.str.6 .asciz "Iteration" L_.str.7: ## @.str.7 .asciz "var greetings = new(List, String, \n $S(\"Hello\"), $S(\"Bonjour\"), $S(\"Hej\"));\n\nforeach(greet in greetings) {\n show(greet);\n}\n" .no_dead_strip _List_Examples .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function List_Examples _List_Examples: ; @List_Examples .cfi_startproc ; %bb.0: Lloh0: adrp x0, _List_Examples.examples@PAGE Lloh1: add x0, x0, _List_Examples.examples@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @List_Examples.examples _List_Examples.examples: .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 .space 16 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Construction & Deletion" l_.str.1: ; @.str.1 .asciz "var x = new(List, Int);\npush(x, $I(32));\npush(x, $I(6));\n\n/* <'List' At 0x0000000000414603 [32, 6]> */\nshow(x);\n" l_.str.2: ; @.str.2 .asciz "Element Access" l_.str.3: ; @.str.3 .asciz "var x = new(List, Float, $F(0.01), $F(5.12));\n\nshow(get(x, $I(0))); /* 0.01 */\nshow(get(x, $I(1))); /* 5.12 */\n\nset(x, $I(0), $F(500.1));\nshow(get(x, $I(0))); /* 500.1 */\n" l_.str.4: ; @.str.4 .asciz "Membership" l_.str.5: ; @.str.5 .asciz "var x = new(List, Int, $I(1), $I(2), $I(3), $I(4));\n\nshow($I(mem(x, $I(1)))); /* 1 */\nshow($I(len(x))); /* 4 */\n\nrem(x, $I(3));\n\nshow($I(mem(x, $I(3)))); /* 0 */\nshow($I(len(x))); /* 3 */\nshow($I(empty(x))); /* 0 */\n\nresize(x, 0);\n\nshow($I(empty(x))); /* 1 */\n" l_.str.6: ; @.str.6 .asciz "Iteration" l_.str.7: ; @.str.7 .asciz "var greetings = new(List, String, \n $S(\"Hello\"), $S(\"Bonjour\"), $S(\"Hej\"));\n\nforeach(greet in greetings) {\n show(greet);\n}\n" .no_dead_strip _List_Examples .subsections_via_symbols
AnghaBench/Cello/src/extr_List.c_List_Examples.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function List_Free _List_Free: ## @List_Free .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq -20(%rsi), %rdi popq %rbp jmp _free ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _List_Free .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function List_Free _List_Free: ; @List_Free .cfi_startproc ; %bb.0: sub x0, x1, #20 b _free .cfi_endproc ; -- End function .no_dead_strip _List_Free .subsections_via_symbols
AnghaBench/Cello/src/extr_List.c_List_Free.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function List_Get _List_Get: ## @List_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 movq %rdi, %rbx movq %rsi, %rdi callq _c_int movq %rbx, %rdi movl %eax, %esi addq $8, %rsp popq %rbx popq %rbp jmp _List_At ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _List_Get .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function List_Get _List_Get: ; @List_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 mov x19, x0 mov x0, x1 bl _c_int 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 _List_At .cfi_endproc ; -- End function .no_dead_strip _List_Get .subsections_via_symbols
AnghaBench/Cello/src/extr_List.c_List_Get.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function List_Hash _List_Hash: ## @List_Hash .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 cmpq $0, (%rdi) je LBB0_1 ## %bb.3: movq %rdi, %r14 leaq 8(%rdi), %rax xorl %ebx, %ebx xorl %r12d, %r12d .p2align 4, 0x90 LBB0_4: ## =>This Inner Loop Header: Depth=1 movq (%rax), %r15 movq %r15, %rdi callq _hash xorl %eax, %r12d movq %r14, %rdi movq %r15, %rsi callq _List_Next incq %rbx cmpq (%r14), %rbx jb LBB0_4 jmp LBB0_2 LBB0_1: xorl %r12d, %r12d LBB0_2: movl %r12d, %eax popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _List_Hash .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function List_Hash _List_Hash: ; @List_Hash .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 ldr x8, [x0] cbz x8, LBB0_3 ; %bb.1: mov x20, x0 mov x22, #0 mov w19, #0 add x0, x0, #8 LBB0_2: ; =>This Inner Loop Header: Depth=1 ldr x21, [x0] mov x0, x21 bl _hash eor w19, w0, w19 mov x0, x20 mov x1, x21 bl _List_Next add x22, x22, #1 ldr x8, [x20] cmp x22, x8 b.lo LBB0_2 b LBB0_4 LBB0_3: mov w19, #0 LBB0_4: mov x0, x19 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 _List_Hash .subsections_via_symbols
AnghaBench/Cello/src/extr_List.c_List_Hash.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function List_Iter_Next _List_Iter_Next: ## @List_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 callq _List_Next movq (%rax), %rax testq %rax, %rax jne LBB0_2 ## %bb.1: movq _Terminal@GOTPCREL(%rip), %rax movq (%rax), %rax LBB0_2: popq %rbp retq .cfi_endproc ## -- End function .comm _Terminal,8,3 ## @Terminal .no_dead_strip _List_Iter_Next .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function List_Iter_Next _List_Iter_Next: ; @List_Iter_Next .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 bl _List_Next ldr x8, [x0] Lloh0: adrp x9, _Terminal@GOTPAGE Lloh1: ldr x9, [x9, _Terminal@GOTPAGEOFF] Lloh2: ldr x9, [x9] cmp x8, #0 csel x0, x9, x8, eq ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _Terminal,8,3 ; @Terminal .no_dead_strip _List_Iter_Next .subsections_via_symbols
AnghaBench/Cello/src/extr_List.c_List_Iter_Next.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function List_Iter_Prev _List_Iter_Prev: ## @List_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 callq _List_Prev movq (%rax), %rax testq %rax, %rax jne LBB0_2 ## %bb.1: movq _Terminal@GOTPCREL(%rip), %rax movq (%rax), %rax LBB0_2: popq %rbp retq .cfi_endproc ## -- End function .comm _Terminal,8,3 ## @Terminal .no_dead_strip _List_Iter_Prev .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function List_Iter_Prev _List_Iter_Prev: ; @List_Iter_Prev .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 bl _List_Prev ldr x8, [x0] Lloh0: adrp x9, _Terminal@GOTPAGE Lloh1: ldr x9, [x9, _Terminal@GOTPAGEOFF] Lloh2: ldr x9, [x9] cmp x8, #0 csel x0, x9, x8, eq ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _Terminal,8,3 ; @Terminal .no_dead_strip _List_Iter_Prev .subsections_via_symbols
AnghaBench/Cello/src/extr_List.c_List_Iter_Prev.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function List_Iter_Type _List_Iter_Type: ## @List_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 (%rdi), %rax popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _List_Iter_Type .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function List_Iter_Type _List_Iter_Type: ; @List_Iter_Type .cfi_startproc ; %bb.0: ldr x0, [x0] ret .cfi_endproc ; -- End function .no_dead_strip _List_Iter_Type .subsections_via_symbols
AnghaBench/Cello/src/extr_List.c_List_Iter_Type.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function List_Len _List_Len: ## @List_Len .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 popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _List_Len .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function List_Len _List_Len: ; @List_Len .cfi_startproc ; %bb.0: ldr x0, [x0] ret .cfi_endproc ; -- End function .no_dead_strip _List_Len .subsections_via_symbols
AnghaBench/Cello/src/extr_List.c_List_Len.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function List_Mark _List_Mark: ## @List_Mark .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), %rbx testq %rbx, %rbx je LBB0_3 ## %bb.1: movq %rdx, %r14 movq %rsi, %r15 movq %rdi, %r12 .p2align 4, 0x90 LBB0_2: ## =>This Inner Loop Header: Depth=1 movq %r15, %rdi movq %rbx, %rsi callq *%r14 movq %r12, %rdi movq %rbx, %rsi callq _List_Next movq (%rax), %rbx testq %rbx, %rbx jne LBB0_2 LBB0_3: popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _List_Mark .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function List_Mark _List_Mark: ; @List_Mark .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 ldr x22, [x0] cbz x22, LBB0_3 ; %bb.1: mov x19, x2 mov x20, x1 mov x21, x0 LBB0_2: ; =>This Inner Loop Header: Depth=1 mov x0, x20 mov x1, x22 blr x19 mov x0, x21 mov x1, x22 bl _List_Next ldr x22, [x0] cbnz x22, 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 .cfi_endproc ; -- End function .no_dead_strip _List_Mark .subsections_via_symbols
AnghaBench/Cello/src/extr_List.c_List_Mark.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function List_Mem _List_Mem: ## @List_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 (%rdi), %rbx xorl %r14d, %r14d testq %rbx, %rbx je LBB0_5 ## %bb.1: movq %rsi, %r15 movq %rdi, %r12 .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 _List_Next movq (%rax), %rbx testq %rbx, %rbx 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 _List_Mem .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function List_Mem _List_Mem: ; @List_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 ldr x21, [x0] cbz x21, LBB0_4 ; %bb.1: mov x19, x1 mov x20, x0 LBB0_2: ; =>This Inner Loop Header: Depth=1 mov x0, x21 mov x1, x19 bl _eq cbnz x0, LBB0_5 ; %bb.3: ; in Loop: Header=BB0_2 Depth=1 mov x0, x20 mov x1, x21 bl _List_Next ldr x21, [x0] cbnz x21, LBB0_2 LBB0_4: mov w0, #0 b LBB0_6 LBB0_5: mov w0, #1 LBB0_6: 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 _List_Mem .subsections_via_symbols
AnghaBench/Cello/src/extr_List.c_List_Mem.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function List_Name _List_Name: ## @List_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 "List" .no_dead_strip _List_Name .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function List_Name _List_Name: ; @List_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 "List" .no_dead_strip _List_Name .subsections_via_symbols
AnghaBench/Cello/src/extr_List.c_List_Name.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function List_Next _List_Next: ## @List_Next .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq -12(%rsi), %rax popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _List_Next .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function List_Next _List_Next: ; @List_Next .cfi_startproc ; %bb.0: sub x0, x1, #12 ret .cfi_endproc ; -- End function .no_dead_strip _List_Next .subsections_via_symbols
AnghaBench/Cello/src/extr_List.c_List_Next.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function List_Pop_At _List_Pop_At: ## @List_Pop_At .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 %rdi, %r14 movq %rsi, %rdi callq _c_int movq %r14, %rdi movl %eax, %esi callq _List_At movq %rax, %rbx movq %r14, %rdi movq %rax, %rsi callq _List_Unlink movq %rbx, %rdi callq _destruct movq %r14, %rdi movq %rbx, %rsi callq _List_Free decl (%r14) popq %rbx popq %r14 popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _List_Pop_At .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function List_Pop_At _List_Pop_At: ; @List_Pop_At .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 mov x0, x1 bl _c_int mov x1, x0 mov x0, x19 bl _List_At mov x20, x0 mov x0, x19 mov x1, x20 bl _List_Unlink mov x0, x20 bl _destruct mov x0, x19 mov x1, x20 bl _List_Free ldr w8, [x19] sub w8, w8, #1 str w8, [x19] 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 _List_Pop_At .subsections_via_symbols
AnghaBench/Cello/src/extr_List.c_List_Pop_At.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function List_Prev _List_Prev: ## @List_Prev .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq -20(%rsi), %rax popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _List_Prev .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function List_Prev _List_Prev: ; @List_Prev .cfi_startproc ; %bb.0: sub x0, x1, #20 ret .cfi_endproc ; -- End function .no_dead_strip _List_Prev .subsections_via_symbols
AnghaBench/Cello/src/extr_List.c_List_Prev.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function List_Push _List_Push: ## @List_Push .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, %r14 movq %rdi, %rbx callq _List_Alloc movq %rax, %r15 movq %rax, %rdi movq %r14, %rsi callq _assign movl 4(%rbx), %edx movq %rbx, %rdi movq %r15, %rsi xorl %ecx, %ecx callq _List_Link incl (%rbx) addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _List_Push .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function List_Push _List_Push: ; @List_Push .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 _List_Alloc mov x21, x0 mov x1, x19 bl _assign ldr w2, [x20, #4] mov x0, x20 mov x1, x21 mov x3, #0 bl _List_Link ldr w8, [x20] add w8, w8, #1 str w8, [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 .cfi_endproc ; -- End function .no_dead_strip _List_Push .subsections_via_symbols
AnghaBench/Cello/src/extr_List.c_List_Push.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function List_Rem _List_Rem: ## @List_Rem .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, %r15 movq 8(%rdi), %rbx testq %rbx, %rbx je LBB0_4 ## %bb.1: movq %rdi, %r14 .p2align 4, 0x90 LBB0_2: ## =>This Inner Loop Header: Depth=1 movq %rbx, %rdi movq %r15, %rsi callq _eq movq %r14, %rdi testq %rax, %rax jne LBB0_5 ## %bb.3: ## in Loop: Header=BB0_2 Depth=1 movq %rbx, %rsi callq _List_Next movq (%rax), %rbx testq %rbx, %rbx jne LBB0_2 LBB0_4: movq _ValueError@GOTPCREL(%rip), %rax movl (%rax), %edi leaq L_.str(%rip), %rsi movq %r15, %rdx addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp _throw ## TAILCALL LBB0_5: movq %rbx, %rsi callq _List_Unlink movq %rbx, %rdi callq _destruct movq %r14, %rdi movq %rbx, %rsi callq _List_Free decl (%r14) addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .comm _ValueError,4,2 ## @ValueError .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Object %$ not in List!" .no_dead_strip _List_Rem .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function List_Rem _List_Rem: ; @List_Rem .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 x20, x1 ldr x21, [x0, #8] cbz x21, LBB0_4 ; %bb.1: mov x19, x0 LBB0_2: ; =>This Inner Loop Header: Depth=1 mov x0, x21 mov x1, x20 bl _eq cbnz x0, LBB0_5 ; %bb.3: ; in Loop: Header=BB0_2 Depth=1 mov x0, x19 mov x1, x21 bl _List_Next ldr x21, [x0] cbnz x21, LBB0_2 LBB0_4: Lloh0: adrp x8, _ValueError@GOTPAGE Lloh1: ldr x8, [x8, _ValueError@GOTPAGEOFF] Lloh2: ldr w0, [x8] Lloh3: adrp x1, l_.str@PAGE Lloh4: add x1, x1, l_.str@PAGEOFF mov x2, 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 b _throw LBB0_5: mov x0, x19 mov x1, x21 bl _List_Unlink mov x0, x21 bl _destruct mov x0, x19 mov x1, x21 bl _List_Free ldr w8, [x19] sub w8, w8, #1 str w8, [x19] 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 AdrpAdd Lloh3, Lloh4 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _ValueError,4,2 ; @ValueError .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Object %$ not in List!" .no_dead_strip _List_Rem .subsections_via_symbols
AnghaBench/Cello/src/extr_List.c_List_Rem.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function List_Set _List_Set: ## @List_Set .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 %rdx, %r14 movq %rdi, %rbx movq %rsi, %rdi callq _c_int movq %rbx, %rdi movl %eax, %esi callq _List_At movl %eax, %edi movq %r14, %rsi popq %rbx popq %r14 popq %rbp jmp _assign ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _List_Set .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function List_Set _List_Set: ; @List_Set .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, x2 mov x20, x0 mov x0, x1 bl _c_int mov x1, x0 mov x0, x20 bl _List_At mov x1, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _assign .cfi_endproc ; -- End function .no_dead_strip _List_Set .subsections_via_symbols
AnghaBench/Cello/src/extr_List.c_List_Set.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function List_Show _List_Show: ## @List_Show .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, %r15 movq %rdi, %r14 leaq L_.str(%rip), %rax movq %rsi, %rdi movl %edx, %esi movq %rax, %rdx movq %r14, %rcx xorl %eax, %eax callq _print_to movl %eax, %r13d movq (%r14), %rbx testq %rbx, %rbx je LBB0_4 ## %bb.1: leaq L_.str.1(%rip), %rdx movq %r15, %rdi movl %r13d, %esi movq %rbx, %rcx xorl %eax, %eax callq _print_to movl %eax, %r13d movq %r14, %rdi movq %rbx, %rsi callq _List_Next movq (%rax), %rbx testq %rbx, %rbx je LBB0_4 ## %bb.2: leaq L_.str.1(%rip), %r12 .p2align 4, 0x90 LBB0_3: ## =>This Inner Loop Header: Depth=1 movq %r15, %rdi movl %r13d, %esi leaq L_.str.2(%rip), %rdx xorl %eax, %eax callq _print_to movq %r15, %rdi movl %eax, %esi movq %r12, %rdx movq %rbx, %rcx xorl %eax, %eax callq _print_to movl %eax, %r13d movq %r14, %rdi movq %rbx, %rsi callq _List_Next movq (%rax), %rbx testq %rbx, %rbx jne LBB0_3 LBB0_4: leaq L_.str.3(%rip), %rdx movq %r15, %rdi movl %r13d, %esi xorl %eax, %eax addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp _print_to ## TAILCALL .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "<'List' At 0x%p [" L_.str.1: ## @.str.1 .asciz "%$" L_.str.2: ## @.str.2 .asciz ", " L_.str.3: ## @.str.3 .asciz "]>" .no_dead_strip _List_Show .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function List_Show _List_Show: ; @List_Show .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x24, x23, [sp, #16] ; 16-byte Folded Spill stp x22, x21, [sp, #32] ; 16-byte Folded Spill stp x20, x19, [sp, #48] ; 16-byte Folded Spill stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .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 x8, x2 mov x19, x1 mov x20, x0 str x0, [sp] Lloh0: adrp x2, l_.str@PAGE Lloh1: add x2, x2, l_.str@PAGEOFF mov x0, x1 mov x1, x8 bl _print_to mov x21, x0 ldr x22, [x20] cbz x22, LBB0_4 ; %bb.1: str x22, [sp] Lloh2: adrp x2, l_.str.1@PAGE Lloh3: add x2, x2, l_.str.1@PAGEOFF mov x0, x19 mov x1, x21 bl _print_to mov x21, x0 mov x0, x20 mov x1, x22 bl _List_Next ldr x23, [x0] cbz x23, LBB0_4 ; %bb.2: Lloh4: adrp x22, l_.str.2@PAGE Lloh5: add x22, x22, l_.str.2@PAGEOFF Lloh6: adrp x24, l_.str.1@PAGE Lloh7: add x24, x24, l_.str.1@PAGEOFF LBB0_3: ; =>This Inner Loop Header: Depth=1 mov x0, x19 mov x1, x21 mov x2, x22 bl _print_to mov x1, x0 str x23, [sp] mov x0, x19 mov x2, x24 bl _print_to mov x21, x0 mov x0, x20 mov x1, x23 bl _List_Next ldr x23, [x0] cbnz x23, LBB0_3 LBB0_4: Lloh8: adrp x2, l_.str.3@PAGE Lloh9: add x2, x2, l_.str.3@PAGEOFF mov x0, x19 mov x1, x21 ldp x29, x30, [sp, #64] ; 16-byte Folded Reload ldp x20, x19, [sp, #48] ; 16-byte Folded Reload ldp x22, x21, [sp, #32] ; 16-byte Folded Reload ldp x24, x23, [sp, #16] ; 16-byte Folded Reload add sp, sp, #80 b _print_to .loh AdrpAdd Lloh0, Lloh1 .loh AdrpAdd Lloh2, Lloh3 .loh AdrpAdd Lloh6, Lloh7 .loh AdrpAdd Lloh4, Lloh5 .loh AdrpAdd Lloh8, Lloh9 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "<'List' At 0x%p [" l_.str.1: ; @.str.1 .asciz "%$" l_.str.2: ; @.str.2 .asciz ", " l_.str.3: ; @.str.3 .asciz "]>" .no_dead_strip _List_Show .subsections_via_symbols
AnghaBench/Cello/src/extr_List.c_List_Show.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function C_Float_Brief _C_Float_Brief: ## @C_Float_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 "Interpret as C Float" .no_dead_strip _C_Float_Brief .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function C_Float_Brief _C_Float_Brief: ; @C_Float_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 "Interpret as C Float" .no_dead_strip _C_Float_Brief .subsections_via_symbols
AnghaBench/Cello/src/extr_Num.c_C_Float_Brief.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function C_Float_Definition _C_Float_Definition: ## @C_Float_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 C_Float {\n double (*c_float)(var);\n};\n" .no_dead_strip _C_Float_Definition .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function C_Float_Definition _C_Float_Definition: ; @C_Float_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 C_Float {\n double (*c_float)(var);\n};\n" .no_dead_strip _C_Float_Definition .subsections_via_symbols
AnghaBench/Cello/src/extr_Num.c_C_Float_Definition.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function C_Float_Description _C_Float_Description: ## @C_Float_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 `C_Float` class should be overridden by types which are representable as a C style Float of the type `double`." .no_dead_strip _C_Float_Description .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function C_Float_Description _C_Float_Description: ; @C_Float_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 `C_Float` class should be overridden by types which are representable as a C style Float of the type `double`." .no_dead_strip _C_Float_Description .subsections_via_symbols
AnghaBench/Cello/src/extr_Num.c_C_Float_Description.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function C_Float_Examples _C_Float_Examples: ## @C_Float_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 _C_Float_Examples.examples(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 4 ## @C_Float_Examples.examples _C_Float_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 "printf(\"%f\", c_float($F(5.1))); /* 5.1 */\nprintf(\"%f\", c_float($F(6.2))); /* 6.2 */\n" .no_dead_strip _C_Float_Examples .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function C_Float_Examples _C_Float_Examples: ; @C_Float_Examples .cfi_startproc ; %bb.0: Lloh0: adrp x0, _C_Float_Examples.examples@PAGE Lloh1: add x0, x0, _C_Float_Examples.examples@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @C_Float_Examples.examples _C_Float_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 "printf(\"%f\", c_float($F(5.1))); /* 5.1 */\nprintf(\"%f\", c_float($F(6.2))); /* 6.2 */\n" .no_dead_strip _C_Float_Examples .subsections_via_symbols
AnghaBench/Cello/src/extr_Num.c_C_Float_Examples.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function C_Float_Methods _C_Float_Methods: ## @C_Float_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 _C_Float_Methods.methods(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 4 ## @C_Float_Methods.methods _C_Float_Methods.methods: .quad L_.str .quad L_.str.1 .quad L_.str.2 .space 24 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "c_float" L_.str.1: ## @.str.1 .asciz "double c_float(var self);" L_.str.2: ## @.str.2 .asciz "Returns the object `self` represented as a `double`." .no_dead_strip _C_Float_Methods .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function C_Float_Methods _C_Float_Methods: ; @C_Float_Methods .cfi_startproc ; %bb.0: Lloh0: adrp x0, _C_Float_Methods.methods@PAGE Lloh1: add x0, x0, _C_Float_Methods.methods@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @C_Float_Methods.methods _C_Float_Methods.methods: .quad l_.str .quad l_.str.1 .quad l_.str.2 .space 24 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "c_float" l_.str.1: ; @.str.1 .asciz "double c_float(var self);" l_.str.2: ; @.str.2 .asciz "Returns the object `self` represented as a `double`." .no_dead_strip _C_Float_Methods .subsections_via_symbols
AnghaBench/Cello/src/extr_Num.c_C_Float_Methods.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function C_Float_Name _C_Float_Name: ## @C_Float_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 "C_Float" .no_dead_strip _C_Float_Name .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function C_Float_Name _C_Float_Name: ; @C_Float_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 "C_Float" .no_dead_strip _C_Float_Name .subsections_via_symbols
AnghaBench/Cello/src/extr_Num.c_C_Float_Name.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function C_Int_Brief _C_Int_Brief: ## @C_Int_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 "Interpret as C Integer" .no_dead_strip _C_Int_Brief .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function C_Int_Brief _C_Int_Brief: ; @C_Int_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 "Interpret as C Integer" .no_dead_strip _C_Int_Brief .subsections_via_symbols
AnghaBench/Cello/src/extr_Num.c_C_Int_Brief.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function C_Int_Definition _C_Int_Definition: ## @C_Int_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 C_Int {\n int64_t (*c_int)(var);\n};\n" .no_dead_strip _C_Int_Definition .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function C_Int_Definition _C_Int_Definition: ; @C_Int_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 C_Int {\n int64_t (*c_int)(var);\n};\n" .no_dead_strip _C_Int_Definition .subsections_via_symbols
AnghaBench/Cello/src/extr_Num.c_C_Int_Definition.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function C_Int_Description _C_Int_Description: ## @C_Int_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 `C_Int` class should be overridden by types which are representable as a C style Integer of the type `int64_t`." .no_dead_strip _C_Int_Description .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function C_Int_Description _C_Int_Description: ; @C_Int_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 `C_Int` class should be overridden by types which are representable as a C style Integer of the type `int64_t`." .no_dead_strip _C_Int_Description .subsections_via_symbols
AnghaBench/Cello/src/extr_Num.c_C_Int_Description.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function C_Int_Examples _C_Int_Examples: ## @C_Int_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 _C_Int_Examples.examples(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 4 ## @C_Int_Examples.examples _C_Int_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 "printf(\"%li\", c_int($I(5))); /* 5 */\nprintf(\"%li\", c_int($I(6))); /* 6 */\n" .no_dead_strip _C_Int_Examples .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function C_Int_Examples _C_Int_Examples: ; @C_Int_Examples .cfi_startproc ; %bb.0: Lloh0: adrp x0, _C_Int_Examples.examples@PAGE Lloh1: add x0, x0, _C_Int_Examples.examples@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @C_Int_Examples.examples _C_Int_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 "printf(\"%li\", c_int($I(5))); /* 5 */\nprintf(\"%li\", c_int($I(6))); /* 6 */\n" .no_dead_strip _C_Int_Examples .subsections_via_symbols
AnghaBench/Cello/src/extr_Num.c_C_Int_Examples.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function C_Int_Methods _C_Int_Methods: ## @C_Int_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 _C_Int_Methods.methods(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 4 ## @C_Int_Methods.methods _C_Int_Methods.methods: .quad L_.str .quad L_.str.1 .quad L_.str.2 .space 24 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "c_int" L_.str.1: ## @.str.1 .asciz "int64_t c_int(var self);" L_.str.2: ## @.str.2 .asciz "Returns the object `self` represented as a `int64_t`." .no_dead_strip _C_Int_Methods .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function C_Int_Methods _C_Int_Methods: ; @C_Int_Methods .cfi_startproc ; %bb.0: Lloh0: adrp x0, _C_Int_Methods.methods@PAGE Lloh1: add x0, x0, _C_Int_Methods.methods@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @C_Int_Methods.methods _C_Int_Methods.methods: .quad l_.str .quad l_.str.1 .quad l_.str.2 .space 24 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "c_int" l_.str.1: ; @.str.1 .asciz "int64_t c_int(var self);" l_.str.2: ; @.str.2 .asciz "Returns the object `self` represented as a `int64_t`." .no_dead_strip _C_Int_Methods .subsections_via_symbols
AnghaBench/Cello/src/extr_Num.c_C_Int_Methods.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function C_Int_Name _C_Int_Name: ## @C_Int_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 "C_Int" .no_dead_strip _C_Int_Name .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function C_Int_Name _C_Int_Name: ; @C_Int_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 "C_Int" .no_dead_strip _C_Int_Name .subsections_via_symbols
AnghaBench/Cello/src/extr_Num.c_C_Int_Name.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Float_Assign _Float_Assign: ## @Float_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 %rdi, %rbx movq %rsi, %rdi callq _c_float movl %eax, (%rbx) addq $8, %rsp popq %rbx popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _Float_Assign .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Float_Assign _Float_Assign: ; @Float_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 x19, x0 mov x0, x1 bl _c_float str w0, [x19] 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 _Float_Assign .subsections_via_symbols
AnghaBench/Cello/src/extr_Num.c_Float_Assign.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Float_Brief _Float_Brief: ## @Float_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 "Floating Point Object" .no_dead_strip _Float_Brief .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Float_Brief _Float_Brief: ; @Float_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 "Floating Point Object" .no_dead_strip _Float_Brief .subsections_via_symbols
AnghaBench/Cello/src/extr_Num.c_Float_Brief.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Float_C_Float _Float_C_Float: ## @Float_C_Float .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movsd (%rdi), %xmm0 ## xmm0 = mem[0],zero popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _Float_C_Float .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Float_C_Float _Float_C_Float: ; @Float_C_Float .cfi_startproc ; %bb.0: ldr d0, [x0] ret .cfi_endproc ; -- End function .no_dead_strip _Float_C_Float .subsections_via_symbols
AnghaBench/Cello/src/extr_Num.c_Float_C_Float.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Float_Cmp _Float_Cmp: ## @Float_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 movl %esi, %ebx callq _Float_C_Float movsd %xmm0, -16(%rbp) ## 8-byte Spill movl %ebx, %edi callq _c_float movsd -16(%rbp), %xmm1 ## 8-byte Reload ## xmm1 = mem[0],zero subsd %xmm0, %xmm1 xorpd %xmm0, %xmm0 xorl %ecx, %ecx ucomisd %xmm1, %xmm0 seta %cl negl %ecx ucomisd %xmm0, %xmm1 movl $1, %eax cmovbel %ecx, %eax addq $8, %rsp popq %rbx popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _Float_Cmp .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Float_Cmp _Float_Cmp: ; @Float_Cmp .cfi_startproc ; %bb.0: stp d9, d8, [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 b8, -40 .cfi_offset b9, -48 mov x19, x1 bl _Float_C_Float fmov d8, d0 mov x0, x19 bl _c_float fsub d0, d8, d0 fcmp d0, #0.0 csetm w8, mi csinc w0, w8, wzr, le ldp x29, x30, [sp, #32] ; 16-byte Folded Reload ldp x20, x19, [sp, #16] ; 16-byte Folded Reload ldp d9, d8, [sp], #48 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .no_dead_strip _Float_Cmp .subsections_via_symbols
AnghaBench/Cello/src/extr_Num.c_Float_Cmp.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Float_Definition _Float_Definition: ## @Float_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 Float {\n double val;\n};\n" .no_dead_strip _Float_Definition .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Float_Definition _Float_Definition: ; @Float_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 Float {\n double val;\n};\n" .no_dead_strip _Float_Definition .subsections_via_symbols
AnghaBench/Cello/src/extr_Num.c_Float_Definition.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Float_Description _Float_Description: ## @Float_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 "64-bit double precision float point Object." .no_dead_strip _Float_Description .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Float_Description _Float_Description: ; @Float_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 "64-bit double precision float point Object." .no_dead_strip _Float_Description .subsections_via_symbols
AnghaBench/Cello/src/extr_Num.c_Float_Description.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Float_Examples _Float_Examples: ## @Float_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 _Float_Examples.examples(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 4 ## @Float_Examples.examples _Float_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 f0 = $(Float, 1.0);\nvar f1 = new(Float, $F(24.313));\nvar f2 = copy(f0);\n\nshow(f0); /* 1.000 */\nshow(f1); /* 24.313 */\nshow(f2); /* 1.000 */\n" .no_dead_strip _Float_Examples .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Float_Examples _Float_Examples: ; @Float_Examples .cfi_startproc ; %bb.0: Lloh0: adrp x0, _Float_Examples.examples@PAGE Lloh1: add x0, x0, _Float_Examples.examples@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @Float_Examples.examples _Float_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 f0 = $(Float, 1.0);\nvar f1 = new(Float, $F(24.313));\nvar f2 = copy(f0);\n\nshow(f0); /* 1.000 */\nshow(f1); /* 24.313 */\nshow(f2); /* 1.000 */\n" .no_dead_strip _Float_Examples .subsections_via_symbols
AnghaBench/Cello/src/extr_Num.c_Float_Examples.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Float_Hash _Float_Hash: ## @Float_Hash .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 _c_float ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _Float_Hash .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Float_Hash _Float_Hash: ; @Float_Hash .cfi_startproc ; %bb.0: b _c_float .cfi_endproc ; -- End function .no_dead_strip _Float_Hash .subsections_via_symbols
AnghaBench/Cello/src/extr_Num.c_Float_Hash.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _Float_Look ## -- Begin function Float_Look .p2align 4, 0x90 _Float_Look: ## @Float_Look .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, %ecx leaq L_.str(%rip), %rax movl %esi, %edi movl %edx, %esi movq %rax, %rdx popq %rbp jmp _scan_from ## TAILCALL .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%f" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _Float_Look ; -- Begin function Float_Look .p2align 2 _Float_Look: ; @Float_Look .cfi_startproc ; %bb.0: mov x8, x2 mov x3, x0 Lloh0: adrp x2, l_.str@PAGE Lloh1: add x2, x2, l_.str@PAGEOFF mov x0, x1 mov x1, x8 b _scan_from .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%f" .subsections_via_symbols
AnghaBench/Cello/src/extr_Num.c_Float_Look.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Float_Name _Float_Name: ## @Float_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 "Float" .no_dead_strip _Float_Name .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Float_Name _Float_Name: ; @Float_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 "Float" .no_dead_strip _Float_Name .subsections_via_symbols
AnghaBench/Cello/src/extr_Num.c_Float_Name.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _Float_Show ## -- Begin function Float_Show .p2align 4, 0x90 _Float_Show: ## @Float_Show .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, %ecx leaq L_.str(%rip), %rax movl %esi, %edi movl %edx, %esi movq %rax, %rdx popq %rbp jmp _print_to ## TAILCALL .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%f" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _Float_Show ; -- Begin function Float_Show .p2align 2 _Float_Show: ; @Float_Show .cfi_startproc ; %bb.0: mov x8, x2 mov x3, x0 Lloh0: adrp x2, l_.str@PAGE Lloh1: add x2, x2, l_.str@PAGEOFF mov x0, x1 mov x1, x8 b _print_to .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%f" .subsections_via_symbols
AnghaBench/Cello/src/extr_Num.c_Float_Show.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Int_Assign _Int_Assign: ## @Int_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 %rdi, %rbx movq %rsi, %rdi callq _c_int movl %eax, (%rbx) addq $8, %rsp popq %rbx popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _Int_Assign .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Int_Assign _Int_Assign: ; @Int_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 x19, x0 mov x0, x1 bl _c_int str w0, [x19] 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 _Int_Assign .subsections_via_symbols
AnghaBench/Cello/src/extr_Num.c_Int_Assign.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Int_Brief _Int_Brief: ## @Int_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 Object" .no_dead_strip _Int_Brief .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Int_Brief _Int_Brief: ; @Int_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 Object" .no_dead_strip _Int_Brief .subsections_via_symbols
AnghaBench/Cello/src/extr_Num.c_Int_Brief.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Int_C_Int _Int_C_Int: ## @Int_C_Int .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 _Int_C_Int .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Int_C_Int _Int_C_Int: ; @Int_C_Int .cfi_startproc ; %bb.0: ldr w0, [x0] ret .cfi_endproc ; -- End function .no_dead_strip _Int_C_Int .subsections_via_symbols
AnghaBench/Cello/src/extr_Num.c_Int_C_Int.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Int_Cmp _Int_Cmp: ## @Int_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 %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 movl %esi, %r14d callq _Int_C_Int movq %rax, %rbx movl %r14d, %edi callq _c_int subl %eax, %ebx movl %ebx, %eax popq %rbx popq %r14 popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _Int_Cmp .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Int_Cmp _Int_Cmp: ; @Int_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 x19, x1 bl _Int_C_Int mov x20, x0 mov x0, x19 bl _c_int sub w0, w20, w0 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 _Int_Cmp .subsections_via_symbols
AnghaBench/Cello/src/extr_Num.c_Int_Cmp.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Int_Definition _Int_Definition: ## @Int_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 Int {\n int64_t val;\n};\n" .no_dead_strip _Int_Definition .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Int_Definition _Int_Definition: ; @Int_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 Int {\n int64_t val;\n};\n" .no_dead_strip _Int_Definition .subsections_via_symbols
AnghaBench/Cello/src/extr_Num.c_Int_Definition.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Int_Description _Int_Description: ## @Int_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 "64-bit signed integer Object." .no_dead_strip _Int_Description .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Int_Description _Int_Description: ; @Int_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 "64-bit signed integer Object." .no_dead_strip _Int_Description .subsections_via_symbols
AnghaBench/Cello/src/extr_Num.c_Int_Description.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Int_Examples _Int_Examples: ## @Int_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 _Int_Examples.examples(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 4 ## @Int_Examples.examples _Int_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 i0 = $(Int, 1);\nvar i1 = new(Int, $I(24313));\nvar i2 = copy(i0);\n\nshow(i0); /* 1 */\nshow(i1); /* 24313 */\nshow(i2); /* 1 */\n" .no_dead_strip _Int_Examples .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Int_Examples _Int_Examples: ; @Int_Examples .cfi_startproc ; %bb.0: Lloh0: adrp x0, _Int_Examples.examples@PAGE Lloh1: add x0, x0, _Int_Examples.examples@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @Int_Examples.examples _Int_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 i0 = $(Int, 1);\nvar i1 = new(Int, $I(24313));\nvar i2 = copy(i0);\n\nshow(i0); /* 1 */\nshow(i1); /* 24313 */\nshow(i2); /* 1 */\n" .no_dead_strip _Int_Examples .subsections_via_symbols
AnghaBench/Cello/src/extr_Num.c_Int_Examples.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Int_Hash _Int_Hash: ## @Int_Hash .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 _c_int ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _Int_Hash .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Int_Hash _Int_Hash: ; @Int_Hash .cfi_startproc ; %bb.0: b _c_int .cfi_endproc ; -- End function .no_dead_strip _Int_Hash .subsections_via_symbols
AnghaBench/Cello/src/extr_Num.c_Int_Hash.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Int_Look _Int_Look: ## @Int_Look .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, %ecx leaq L_.str(%rip), %rax movl %esi, %edi movl %edx, %esi movq %rax, %rdx popq %rbp jmp _scan_from ## TAILCALL .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%li" .no_dead_strip _Int_Look .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Int_Look _Int_Look: ; @Int_Look .cfi_startproc ; %bb.0: mov x8, x2 mov x3, x0 Lloh0: adrp x2, l_.str@PAGE Lloh1: add x2, x2, l_.str@PAGEOFF mov x0, x1 mov x1, x8 b _scan_from .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%li" .no_dead_strip _Int_Look .subsections_via_symbols
AnghaBench/Cello/src/extr_Num.c_Int_Look.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Int_Name _Int_Name: ## @Int_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 "Int" .no_dead_strip _Int_Name .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Int_Name _Int_Name: ; @Int_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 "Int" .no_dead_strip _Int_Name .subsections_via_symbols
AnghaBench/Cello/src/extr_Num.c_Int_Name.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Int_Show _Int_Show: ## @Int_Show .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, %ecx leaq L_.str(%rip), %rax movl %esi, %edi movl %edx, %esi movq %rax, %rdx popq %rbp jmp _print_to ## TAILCALL .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%li" .no_dead_strip _Int_Show .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Int_Show _Int_Show: ; @Int_Show .cfi_startproc ; %bb.0: mov x8, x2 mov x3, x0 Lloh0: adrp x2, l_.str@PAGE Lloh1: add x2, x2, l_.str@PAGEOFF mov x0, x1 mov x1, x8 b _print_to .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%li" .no_dead_strip _Int_Show .subsections_via_symbols
AnghaBench/Cello/src/extr_Num.c_Int_Show.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Box_Brief _Box_Brief: ## @Box_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 "Unique Pointer" .no_dead_strip _Box_Brief .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Box_Brief _Box_Brief: ; @Box_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 "Unique Pointer" .no_dead_strip _Box_Brief .subsections_via_symbols
AnghaBench/Cello/src/extr_Pointer.c_Box_Brief.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Box_Definition _Box_Definition: ## @Box_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 Box {\n var val;\n};\n" .no_dead_strip _Box_Definition .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Box_Definition _Box_Definition: ; @Box_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 Box {\n var val;\n};\n" .no_dead_strip _Box_Definition .subsections_via_symbols
AnghaBench/Cello/src/extr_Pointer.c_Box_Definition.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Box_Del _Box_Del: ## @Box_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 callq _Box_Deref testq %rax, %rax je LBB0_2 ## %bb.1: movq %rax, %rdi callq _del LBB0_2: movq %rbx, %rdi xorl %esi, %esi addq $8, %rsp popq %rbx popq %rbp jmp _Box_Ref ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _Box_Del .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Box_Del _Box_Del: ; @Box_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 bl _Box_Deref cbz x0, LBB0_2 ; %bb.1: bl _del LBB0_2: mov x0, x19 mov x1, #0 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _Box_Ref .cfi_endproc ; -- End function .no_dead_strip _Box_Del .subsections_via_symbols
AnghaBench/Cello/src/extr_Pointer.c_Box_Del.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Box_Deref _Box_Deref: ## @Box_Deref .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 popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _Box_Deref .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Box_Deref _Box_Deref: ; @Box_Deref .cfi_startproc ; %bb.0: ldr x0, [x0] ret .cfi_endproc ; -- End function .no_dead_strip _Box_Deref .subsections_via_symbols
AnghaBench/Cello/src/extr_Pointer.c_Box_Deref.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Box_Description _Box_Description: ## @Box_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 `Box` type is another wrapper around a C pointer with one additional behaviour as compared to `Ref`. When a `Box` object is deleted it will also call `del` on the object it points to. The means a `Box` is considered a pointer type that _owns_ the object it points to, and so is responsible for it's destruction. Due to this `Box`s must point to valid Cello objects and so can't be initalised with `NULL` or anything else invalid. \n\nWhile this might not seem that useful when there is Garbage Collection this can be very useful when Garbage Collection is turned off, and when used in conjunction with collections." .no_dead_strip _Box_Description .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Box_Description _Box_Description: ; @Box_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 `Box` type is another wrapper around a C pointer with one additional behaviour as compared to `Ref`. When a `Box` object is deleted it will also call `del` on the object it points to. The means a `Box` is considered a pointer type that _owns_ the object it points to, and so is responsible for it's destruction. Due to this `Box`s must point to valid Cello objects and so can't be initalised with `NULL` or anything else invalid. \n\nWhile this might not seem that useful when there is Garbage Collection this can be very useful when Garbage Collection is turned off, and when used in conjunction with collections." .no_dead_strip _Box_Description .subsections_via_symbols
AnghaBench/Cello/src/extr_Pointer.c_Box_Description.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Box_Examples _Box_Examples: ## @Box_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 _Box_Examples.examples(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 4 ## @Box_Examples.examples _Box_Examples.examples: .quad L_.str .quad L_.str.1 .quad L_.str.2 .quad L_.str.3 .quad L_.str.4 .quad L_.str.5 .space 16 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Usage" L_.str.1: ## @.str.1 .asciz "var obj0 = $F(1.0), obj1 = $F(2.0);\nvar r = $(Box, obj0);\nshow(r);\nshow(deref(r)); /* 1.0 */\nref(r, obj1);\nshow(deref(r)); /* 2.0 */\nassign(r, obj0);\nshow(deref(r)); /* 1.0 */\n" L_.str.2: ## @.str.2 .asciz "Lifetimes" L_.str.3: ## @.str.3 .asciz "var quote = $S(\"Life is long\");\n\nwith (r in $B(new(String, quote))) {\n println(\"This reference is: %$\", r);\n println(\"This string is alive: '%s'\", deref(r));\n}\n\nprint(\"Now it has been cleared up!\\n\");\n" L_.str.4: ## @.str.4 .asciz "Collection" L_.str.5: ## @.str.5 .asciz "/* Multiple Types in one Collection */\nvar x = new(Array, Box, \n new(String, $S(\"Hello\")), \n new(String, $S(\"There\")), \n new(Int, $I(10)));\n\nprint(deref(get(x, $I(0)))); /* Hello */ \n\ndel(x); /* Contents of `x` deleted with it */\n" .no_dead_strip _Box_Examples .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Box_Examples _Box_Examples: ; @Box_Examples .cfi_startproc ; %bb.0: Lloh0: adrp x0, _Box_Examples.examples@PAGE Lloh1: add x0, x0, _Box_Examples.examples@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @Box_Examples.examples _Box_Examples.examples: .quad l_.str .quad l_.str.1 .quad l_.str.2 .quad l_.str.3 .quad l_.str.4 .quad l_.str.5 .space 16 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Usage" l_.str.1: ; @.str.1 .asciz "var obj0 = $F(1.0), obj1 = $F(2.0);\nvar r = $(Box, obj0);\nshow(r);\nshow(deref(r)); /* 1.0 */\nref(r, obj1);\nshow(deref(r)); /* 2.0 */\nassign(r, obj0);\nshow(deref(r)); /* 1.0 */\n" l_.str.2: ; @.str.2 .asciz "Lifetimes" l_.str.3: ; @.str.3 .asciz "var quote = $S(\"Life is long\");\n\nwith (r in $B(new(String, quote))) {\n println(\"This reference is: %$\", r);\n println(\"This string is alive: '%s'\", deref(r));\n}\n\nprint(\"Now it has been cleared up!\\n\");\n" l_.str.4: ; @.str.4 .asciz "Collection" l_.str.5: ; @.str.5 .asciz "/* Multiple Types in one Collection */\nvar x = new(Array, Box, \n new(String, $S(\"Hello\")), \n new(String, $S(\"There\")), \n new(Int, $I(10)));\n\nprint(deref(get(x, $I(0)))); /* Hello */ \n\ndel(x); /* Contents of `x` deleted with it */\n" .no_dead_strip _Box_Examples .subsections_via_symbols
AnghaBench/Cello/src/extr_Pointer.c_Box_Examples.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Box_Name _Box_Name: ## @Box_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 "Box" .no_dead_strip _Box_Name .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Box_Name _Box_Name: ; @Box_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 "Box" .no_dead_strip _Box_Name .subsections_via_symbols
AnghaBench/Cello/src/extr_Pointer.c_Box_Name.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Box_Ref _Box_Ref: ## @Box_Ref .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rsi, (%rdi) popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _Box_Ref .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Box_Ref _Box_Ref: ; @Box_Ref .cfi_startproc ; %bb.0: str x1, [x0] ret .cfi_endproc ; -- End function .no_dead_strip _Box_Ref .subsections_via_symbols
AnghaBench/Cello/src/extr_Pointer.c_Box_Ref.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Box_Show _Box_Show: ## @Box_Show .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 movl %edx, %r14d movl %esi, %r15d movl %edi, %ebx callq _Box_Deref leaq L_.str(%rip), %rdx movl %r15d, %edi movl %r14d, %esi movl %ebx, %ecx movl %eax, %r8d addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp _print_to ## TAILCALL .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "<'Box' at 0x%p (%$)>" .no_dead_strip _Box_Show .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Box_Show _Box_Show: ; @Box_Show .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, x2 mov x20, x1 mov x21, x0 bl _Box_Deref Lloh0: adrp x2, l_.str@PAGE Lloh1: add x2, x2, l_.str@PAGEOFF mov x4, x0 mov x0, x20 mov x1, x19 mov x3, x21 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 b _print_to .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "<'Box' at 0x%p (%$)>" .no_dead_strip _Box_Show .subsections_via_symbols
AnghaBench/Cello/src/extr_Pointer.c_Box_Show.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Pointer_Brief _Pointer_Brief: ## @Pointer_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 "Reference to other object" .no_dead_strip _Pointer_Brief .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Pointer_Brief _Pointer_Brief: ; @Pointer_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 "Reference to other object" .no_dead_strip _Pointer_Brief .subsections_via_symbols
AnghaBench/Cello/src/extr_Pointer.c_Pointer_Brief.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Pointer_Definition _Pointer_Definition: ## @Pointer_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 Pointer {\n void (*ref)(var, var);\n var (*deref)(var);\n};\n" .no_dead_strip _Pointer_Definition .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Pointer_Definition _Pointer_Definition: ; @Pointer_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 Pointer {\n void (*ref)(var, var);\n var (*deref)(var);\n};\n" .no_dead_strip _Pointer_Definition .subsections_via_symbols
AnghaBench/Cello/src/extr_Pointer.c_Pointer_Definition.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Pointer_Description _Pointer_Description: ## @Pointer_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 `Pointer` class is implemented by types which act as references to other objects. Primarily this class is implemented by `Ref` and `Box` which provide the two main pointer types in Cello." .no_dead_strip _Pointer_Description .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Pointer_Description _Pointer_Description: ; @Pointer_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 `Pointer` class is implemented by types which act as references to other objects. Primarily this class is implemented by `Ref` and `Box` which provide the two main pointer types in Cello." .no_dead_strip _Pointer_Description .subsections_via_symbols
AnghaBench/Cello/src/extr_Pointer.c_Pointer_Description.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Pointer_Examples _Pointer_Examples: ## @Pointer_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 _Pointer_Examples.examples(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 4 ## @Pointer_Examples.examples _Pointer_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 obj0 = $F(1.0), obj1 = $F(2.0);\nvar r = $(Ref, obj0);\nshow(r);\nshow(deref(r)); /* 1.0 */\nref(r, obj1);\nshow(deref(r)); /* 2.0 */\nassign(r, obj0);\nshow(deref(r)); /* 1.0 */\n" .no_dead_strip _Pointer_Examples .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Pointer_Examples _Pointer_Examples: ; @Pointer_Examples .cfi_startproc ; %bb.0: Lloh0: adrp x0, _Pointer_Examples.examples@PAGE Lloh1: add x0, x0, _Pointer_Examples.examples@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @Pointer_Examples.examples _Pointer_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 obj0 = $F(1.0), obj1 = $F(2.0);\nvar r = $(Ref, obj0);\nshow(r);\nshow(deref(r)); /* 1.0 */\nref(r, obj1);\nshow(deref(r)); /* 2.0 */\nassign(r, obj0);\nshow(deref(r)); /* 1.0 */\n" .no_dead_strip _Pointer_Examples .subsections_via_symbols
AnghaBench/Cello/src/extr_Pointer.c_Pointer_Examples.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Pointer_Methods _Pointer_Methods: ## @Pointer_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 _Pointer_Methods.methods(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 4 ## @Pointer_Methods.methods _Pointer_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 "ref" L_.str.1: ## @.str.1 .asciz "void ref(var self, var item);" L_.str.2: ## @.str.2 .asciz "Set the object `self` to reference the object `item`." L_.str.3: ## @.str.3 .asciz "deref" L_.str.4: ## @.str.4 .asciz "var deref(var self);" L_.str.5: ## @.str.5 .asciz "Get the object referenced by `self`." .no_dead_strip _Pointer_Methods .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Pointer_Methods _Pointer_Methods: ; @Pointer_Methods .cfi_startproc ; %bb.0: Lloh0: adrp x0, _Pointer_Methods.methods@PAGE Lloh1: add x0, x0, _Pointer_Methods.methods@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @Pointer_Methods.methods _Pointer_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 "ref" l_.str.1: ; @.str.1 .asciz "void ref(var self, var item);" l_.str.2: ; @.str.2 .asciz "Set the object `self` to reference the object `item`." l_.str.3: ; @.str.3 .asciz "deref" l_.str.4: ; @.str.4 .asciz "var deref(var self);" l_.str.5: ; @.str.5 .asciz "Get the object referenced by `self`." .no_dead_strip _Pointer_Methods .subsections_via_symbols
AnghaBench/Cello/src/extr_Pointer.c_Pointer_Methods.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Pointer_Name _Pointer_Name: ## @Pointer_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 "Pointer" .no_dead_strip _Pointer_Name .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Pointer_Name _Pointer_Name: ; @Pointer_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 "Pointer" .no_dead_strip _Pointer_Name .subsections_via_symbols
AnghaBench/Cello/src/extr_Pointer.c_Pointer_Name.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Ref_Brief _Ref_Brief: ## @Ref_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 "Shared Pointer" .no_dead_strip _Ref_Brief .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Ref_Brief _Ref_Brief: ; @Ref_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 "Shared Pointer" .no_dead_strip _Ref_Brief .subsections_via_symbols
AnghaBench/Cello/src/extr_Pointer.c_Ref_Brief.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Ref_Definition _Ref_Definition: ## @Ref_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 Ref {\n var val;\n};\n" .no_dead_strip _Ref_Definition .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Ref_Definition _Ref_Definition: ; @Ref_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 Ref {\n var val;\n};\n" .no_dead_strip _Ref_Definition .subsections_via_symbols
AnghaBench/Cello/src/extr_Pointer.c_Ref_Definition.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Ref_Deref _Ref_Deref: ## @Ref_Deref .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 popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _Ref_Deref .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Ref_Deref _Ref_Deref: ; @Ref_Deref .cfi_startproc ; %bb.0: ldr x0, [x0] ret .cfi_endproc ; -- End function .no_dead_strip _Ref_Deref .subsections_via_symbols
AnghaBench/Cello/src/extr_Pointer.c_Ref_Deref.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Ref_Description _Ref_Description: ## @Ref_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 `Ref` type is a basic wrapper around a C pointer. It can be used as a type argument to collections to allow them to store generic types. It may also be useful in various circumstances where another level of indirection or mutability is required." .no_dead_strip _Ref_Description .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Ref_Description _Ref_Description: ; @Ref_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 `Ref` type is a basic wrapper around a C pointer. It can be used as a type argument to collections to allow them to store generic types. It may also be useful in various circumstances where another level of indirection or mutability is required." .no_dead_strip _Ref_Description .subsections_via_symbols
AnghaBench/Cello/src/extr_Pointer.c_Ref_Description.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Ref_Examples _Ref_Examples: ## @Ref_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 _Ref_Examples.examples(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 4 ## @Ref_Examples.examples _Ref_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 obj0 = $F(1.0), obj1 = $F(2.0);\nvar r = $(Ref, obj0);\nshow(r);\nshow(deref(r)); /* 1.0 */\nref(r, obj1);\nshow(deref(r)); /* 2.0 */\nassign(r, obj0);\nshow(deref(r)); /* 1.0 */\n" L_.str.2: ## @.str.2 .asciz "Collections" L_.str.3: ## @.str.3 .asciz "var i0 = new(Int, $I(100));\nvar i1 = new(Int, $I(200));\nvar x = new(Array, Ref, i0, i1);\n\nprint(deref(get(x, $I(0)))); /* 100 */\ndel(x); /* Contents of `x` still alive */\n" .no_dead_strip _Ref_Examples .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Ref_Examples _Ref_Examples: ; @Ref_Examples .cfi_startproc ; %bb.0: Lloh0: adrp x0, _Ref_Examples.examples@PAGE Lloh1: add x0, x0, _Ref_Examples.examples@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @Ref_Examples.examples _Ref_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 obj0 = $F(1.0), obj1 = $F(2.0);\nvar r = $(Ref, obj0);\nshow(r);\nshow(deref(r)); /* 1.0 */\nref(r, obj1);\nshow(deref(r)); /* 2.0 */\nassign(r, obj0);\nshow(deref(r)); /* 1.0 */\n" l_.str.2: ; @.str.2 .asciz "Collections" l_.str.3: ; @.str.3 .asciz "var i0 = new(Int, $I(100));\nvar i1 = new(Int, $I(200));\nvar x = new(Array, Ref, i0, i1);\n\nprint(deref(get(x, $I(0)))); /* 100 */\ndel(x); /* Contents of `x` still alive */\n" .no_dead_strip _Ref_Examples .subsections_via_symbols
AnghaBench/Cello/src/extr_Pointer.c_Ref_Examples.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Ref_Name _Ref_Name: ## @Ref_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 "Ref" .no_dead_strip _Ref_Name .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Ref_Name _Ref_Name: ; @Ref_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 "Ref" .no_dead_strip _Ref_Name .subsections_via_symbols
AnghaBench/Cello/src/extr_Pointer.c_Ref_Name.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Ref_Ref _Ref_Ref: ## @Ref_Ref .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rsi, (%rdi) popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _Ref_Ref .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Ref_Ref _Ref_Ref: ; @Ref_Ref .cfi_startproc ; %bb.0: str x1, [x0] ret .cfi_endproc ; -- End function .no_dead_strip _Ref_Ref .subsections_via_symbols
AnghaBench/Cello/src/extr_Pointer.c_Ref_Ref.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _deref ## -- Begin function deref .p2align 4, 0x90 _deref: ## @deref .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _Pointer@GOTPCREL(%rip), %rax movl (%rax), %esi leaq _deref(%rip), %rdx popq %rbp jmp _method ## TAILCALL .cfi_endproc ## -- End function .comm _Pointer,4,2 ## @Pointer .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _deref ; -- Begin function deref .p2align 2 _deref: ; @deref .cfi_startproc ; %bb.0: Lloh0: adrp x8, _Pointer@GOTPAGE Lloh1: ldr x8, [x8, _Pointer@GOTPAGEOFF] Lloh2: ldr w1, [x8] Lloh3: adrp x2, _deref@PAGE Lloh4: add x2, x2, _deref@PAGEOFF b _method .loh AdrpAdd Lloh3, Lloh4 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _Pointer,4,2 ; @Pointer .subsections_via_symbols
AnghaBench/Cello/src/extr_Pointer.c_deref.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _ref ## -- Begin function ref .p2align 4, 0x90 _ref: ## @ref .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 _Pointer@GOTPCREL(%rip), %rax movl (%rax), %esi leaq _ref(%rip), %rdx popq %rbp jmp _method ## TAILCALL .cfi_endproc ## -- End function .comm _Pointer,4,2 ## @Pointer .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _ref ; -- Begin function ref .p2align 2 _ref: ; @ref .cfi_startproc ; %bb.0: mov x3, x1 Lloh0: adrp x8, _Pointer@GOTPAGE Lloh1: ldr x8, [x8, _Pointer@GOTPAGEOFF] Lloh2: ldr w1, [x8] Lloh3: adrp x2, _ref@PAGE Lloh4: add x2, x2, _ref@PAGEOFF b _method .loh AdrpAdd Lloh3, Lloh4 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _Pointer,4,2 ; @Pointer .subsections_via_symbols
AnghaBench/Cello/src/extr_Pointer.c_ref.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Push_Brief _Push_Brief: ## @Push_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 "Pushable and Popable object" .no_dead_strip _Push_Brief .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Push_Brief _Push_Brief: ; @Push_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 "Pushable and Popable object" .no_dead_strip _Push_Brief .subsections_via_symbols
AnghaBench/Cello/src/extr_Push.c_Push_Brief.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Push_Definition _Push_Definition: ## @Push_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 Push {\n void (*push)(var, var);\n void (*pop)(var);\n void (*push_at)(var, var, var);\n void (*pop_at)(var, var);\n};\n" .no_dead_strip _Push_Definition .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Push_Definition _Push_Definition: ; @Push_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 Push {\n void (*push)(var, var);\n void (*pop)(var);\n void (*push_at)(var, var, var);\n void (*pop_at)(var, var);\n};\n" .no_dead_strip _Push_Definition .subsections_via_symbols
AnghaBench/Cello/src/extr_Push.c_Push_Definition.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Push_Description _Push_Description: ## @Push_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 `Push` class provides an interface for the addition and removal of objects from another in a positional sense.\n\n`push` can be used to add new objects to a collection and `pop` to remove them. Usage of `push` can require `assign` to be defined on the argument." .no_dead_strip _Push_Description .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Push_Description _Push_Description: ; @Push_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 `Push` class provides an interface for the addition and removal of objects from another in a positional sense.\n\n`push` can be used to add new objects to a collection and `pop` to remove them. Usage of `push` can require `assign` to be defined on the argument." .no_dead_strip _Push_Description .subsections_via_symbols
AnghaBench/Cello/src/extr_Push.c_Push_Description.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Push_Examples _Push_Examples: ## @Push_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 _Push_Examples.examples(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 4 ## @Push_Examples.examples _Push_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 = new(Array, Int);\n\npush(x, $I( 0));\npush(x, $I( 5));\npush(x, $I(10));\n\nshow(get(x, $I(0))); /* 0 */\nshow(get(x, $I(1))); /* 5 */\nshow(get(x, $I(2))); /* 10 */\n\npop_at(x, $I(1));\n\nshow(get(x, $I(0))); /* 0 */\nshow(get(x, $I(1))); /* 10 */\n" .no_dead_strip _Push_Examples .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Push_Examples _Push_Examples: ; @Push_Examples .cfi_startproc ; %bb.0: Lloh0: adrp x0, _Push_Examples.examples@PAGE Lloh1: add x0, x0, _Push_Examples.examples@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @Push_Examples.examples _Push_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 = new(Array, Int);\n\npush(x, $I( 0));\npush(x, $I( 5));\npush(x, $I(10));\n\nshow(get(x, $I(0))); /* 0 */\nshow(get(x, $I(1))); /* 5 */\nshow(get(x, $I(2))); /* 10 */\n\npop_at(x, $I(1));\n\nshow(get(x, $I(0))); /* 0 */\nshow(get(x, $I(1))); /* 10 */\n" .no_dead_strip _Push_Examples .subsections_via_symbols
AnghaBench/Cello/src/extr_Push.c_Push_Examples.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Push_Methods _Push_Methods: ## @Push_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 _Push_Methods.methods(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 4 ## @Push_Methods.methods _Push_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 "push" L_.str.1: ## @.str.1 .asciz "void push(var self, var obj);" L_.str.2: ## @.str.2 .asciz "Push the object `obj` onto the top of object `self`." L_.str.3: ## @.str.3 .asciz "pop" L_.str.4: ## @.str.4 .asciz "void pop(var self);" L_.str.5: ## @.str.5 .asciz "Pop the top item from the object `self`." L_.str.6: ## @.str.6 .asciz "push_at" L_.str.7: ## @.str.7 .asciz "void push_at(var self, var obj, var key);" L_.str.8: ## @.str.8 .asciz "Push the object `obj` onto the object `self` at a given `key`." L_.str.9: ## @.str.9 .asciz "pop_at" L_.str.10: ## @.str.10 .asciz "void pop_at(var self, var key);" L_.str.11: ## @.str.11 .asciz "Pop the object from the object `self` at a given `key`." .no_dead_strip _Push_Methods .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Push_Methods _Push_Methods: ; @Push_Methods .cfi_startproc ; %bb.0: Lloh0: adrp x0, _Push_Methods.methods@PAGE Lloh1: add x0, x0, _Push_Methods.methods@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @Push_Methods.methods _Push_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 "push" l_.str.1: ; @.str.1 .asciz "void push(var self, var obj);" l_.str.2: ; @.str.2 .asciz "Push the object `obj` onto the top of object `self`." l_.str.3: ; @.str.3 .asciz "pop" l_.str.4: ; @.str.4 .asciz "void pop(var self);" l_.str.5: ; @.str.5 .asciz "Pop the top item from the object `self`." l_.str.6: ; @.str.6 .asciz "push_at" l_.str.7: ; @.str.7 .asciz "void push_at(var self, var obj, var key);" l_.str.8: ; @.str.8 .asciz "Push the object `obj` onto the object `self` at a given `key`." l_.str.9: ; @.str.9 .asciz "pop_at" l_.str.10: ; @.str.10 .asciz "void pop_at(var self, var key);" l_.str.11: ; @.str.11 .asciz "Pop the object from the object `self` at a given `key`." .no_dead_strip _Push_Methods .subsections_via_symbols
AnghaBench/Cello/src/extr_Push.c_Push_Methods.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Push_Name _Push_Name: ## @Push_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 "Push" .no_dead_strip _Push_Name .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Push_Name _Push_Name: ; @Push_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 "Push" .no_dead_strip _Push_Name .subsections_via_symbols
AnghaBench/Cello/src/extr_Push.c_Push_Name.c
anghabench