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 _pop ## -- Begin function pop .p2align 4, 0x90 _pop: ## @pop .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _Push@GOTPCREL(%rip), %rax movl (%rax), %esi leaq _pop(%rip), %rdx popq %rbp jmp _method ## TAILCALL .cfi_endproc ## -- End function .comm _Push,4,2 ## @Push .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _pop ; -- Begin function pop .p2align 2 _pop: ; @pop .cfi_startproc ; %bb.0: Lloh0: adrp x8, _Push@GOTPAGE Lloh1: ldr x8, [x8, _Push@GOTPAGEOFF] Lloh2: ldr w1, [x8] Lloh3: adrp x2, _pop@PAGE Lloh4: add x2, x2, _pop@PAGEOFF b _method .loh AdrpAdd Lloh3, Lloh4 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _Push,4,2 ; @Push .subsections_via_symbols
AnghaBench/Cello/src/extr_Push.c_pop.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _pop_at ## -- Begin function pop_at .p2align 4, 0x90 _pop_at: ## @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 movl %esi, %ecx movq _Push@GOTPCREL(%rip), %rax movl (%rax), %esi leaq _pop_at(%rip), %rdx popq %rbp jmp _method ## TAILCALL .cfi_endproc ## -- End function .comm _Push,4,2 ## @Push .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _pop_at ; -- Begin function pop_at .p2align 2 _pop_at: ; @pop_at .cfi_startproc ; %bb.0: mov x3, x1 Lloh0: adrp x8, _Push@GOTPAGE Lloh1: ldr x8, [x8, _Push@GOTPAGEOFF] Lloh2: ldr w1, [x8] Lloh3: adrp x2, _pop_at@PAGE Lloh4: add x2, x2, _pop_at@PAGEOFF b _method .loh AdrpAdd Lloh3, Lloh4 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _Push,4,2 ; @Push .subsections_via_symbols
AnghaBench/Cello/src/extr_Push.c_pop_at.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _push ## -- Begin function push .p2align 4, 0x90 _push: ## @push .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 _Push@GOTPCREL(%rip), %rax movl (%rax), %esi leaq _push(%rip), %rdx popq %rbp jmp _method ## TAILCALL .cfi_endproc ## -- End function .comm _Push,4,2 ## @Push .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _push ; -- Begin function push .p2align 2 _push: ; @push .cfi_startproc ; %bb.0: mov x3, x1 Lloh0: adrp x8, _Push@GOTPAGE Lloh1: ldr x8, [x8, _Push@GOTPAGEOFF] Lloh2: ldr w1, [x8] Lloh3: adrp x2, _push@PAGE Lloh4: add x2, x2, _push@PAGEOFF b _method .loh AdrpAdd Lloh3, Lloh4 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _Push,4,2 ; @Push .subsections_via_symbols
AnghaBench/Cello/src/extr_Push.c_push.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _push_at ## -- Begin function push_at .p2align 4, 0x90 _push_at: ## @push_at .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edx, %r8d movl %esi, %ecx movq _Push@GOTPCREL(%rip), %rax movl (%rax), %esi leaq _push_at(%rip), %rdx popq %rbp jmp _method ## TAILCALL .cfi_endproc ## -- End function .comm _Push,4,2 ## @Push .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _push_at ; -- Begin function push_at .p2align 2 _push_at: ; @push_at .cfi_startproc ; %bb.0: mov x4, x2 mov x3, x1 Lloh0: adrp x8, _Push@GOTPAGE Lloh1: ldr x8, [x8, _Push@GOTPAGEOFF] Lloh2: adrp x2, _push_at@PAGE Lloh3: add x2, x2, _push_at@PAGEOFF Lloh4: ldr w1, [x8] b _method .loh AdrpAdd Lloh2, Lloh3 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh4 .cfi_endproc ; -- End function .comm _Push,4,2 ; @Push .subsections_via_symbols
AnghaBench/Cello/src/extr_Push.c_push_at.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Resize_Brief _Resize_Brief: ## @Resize_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 "Object can be resized" .no_dead_strip _Resize_Brief .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Resize_Brief _Resize_Brief: ; @Resize_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 "Object can be resized" .no_dead_strip _Resize_Brief .subsections_via_symbols
AnghaBench/Cello/src/extr_Resize.c_Resize_Brief.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Resize_Definition _Resize_Definition: ## @Resize_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 Resize {\n void (*resize)(var, size_t);\n};\n" .no_dead_strip _Resize_Definition .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Resize_Definition _Resize_Definition: ; @Resize_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 Resize {\n void (*resize)(var, size_t);\n};\n" .no_dead_strip _Resize_Definition .subsections_via_symbols
AnghaBench/Cello/src/extr_Resize.c_Resize_Definition.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Resize_Description _Resize_Description: ## @Resize_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 `Resize` class can be implemented by objects which can be resized in some way. Resizing to a larger size than the current may allow for some resource or other to be preallocated or reserved. For example this class is implemented by `Array` and `Table` to either remove a number of items quickly or to preallocate memory space if it is known that many items are going to be added at a later date." .no_dead_strip _Resize_Description .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Resize_Description _Resize_Description: ; @Resize_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 `Resize` class can be implemented by objects which can be resized in some way. Resizing to a larger size than the current may allow for some resource or other to be preallocated or reserved. For example this class is implemented by `Array` and `Table` to either remove a number of items quickly or to preallocate memory space if it is known that many items are going to be added at a later date." .no_dead_strip _Resize_Description .subsections_via_symbols
AnghaBench/Cello/src/extr_Resize.c_Resize_Description.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Resize_Examples _Resize_Examples: ## @Resize_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 _Resize_Examples.examples(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 4 ## @Resize_Examples.examples _Resize_Examples.examples: .quad L_.str .quad L_.str.1 .quad L_.str.2 .quad L_.str.3 .space 16 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Usage" L_.str.1: ## @.str.1 .asciz "var x = new(Array, Int);\nresize(x, 10000); /* Reserve space in Array */ \nfor (size_t i = 0; i < 10000; i++) {\n push(x, $I(i));\n}\n" L_.str.2: ## @.str.2 .asciz "Usage 2" L_.str.3: ## @.str.3 .asciz "var x = new(Array, Int, $I(0), $I(1), $I(2));\nresize(x, 0); /* Clear Array of items */\n" .no_dead_strip _Resize_Examples .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Resize_Examples _Resize_Examples: ; @Resize_Examples .cfi_startproc ; %bb.0: Lloh0: adrp x0, _Resize_Examples.examples@PAGE Lloh1: add x0, x0, _Resize_Examples.examples@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @Resize_Examples.examples _Resize_Examples.examples: .quad l_.str .quad l_.str.1 .quad l_.str.2 .quad l_.str.3 .space 16 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Usage" l_.str.1: ; @.str.1 .asciz "var x = new(Array, Int);\nresize(x, 10000); /* Reserve space in Array */ \nfor (size_t i = 0; i < 10000; i++) {\n push(x, $I(i));\n}\n" l_.str.2: ; @.str.2 .asciz "Usage 2" l_.str.3: ; @.str.3 .asciz "var x = new(Array, Int, $I(0), $I(1), $I(2));\nresize(x, 0); /* Clear Array of items */\n" .no_dead_strip _Resize_Examples .subsections_via_symbols
AnghaBench/Cello/src/extr_Resize.c_Resize_Examples.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Resize_Methods _Resize_Methods: ## @Resize_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 _Resize_Methods.methods(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 4 ## @Resize_Methods.methods _Resize_Methods.methods: .quad L_.str .quad L_.str.1 .quad L_.str.2 .space 24 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "resize" L_.str.1: ## @.str.1 .asciz "void resize(var self, size_t n);" L_.str.2: ## @.str.2 .asciz "Resize to some size `n`, perhaps reserving some resource for object `self`." .no_dead_strip _Resize_Methods .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Resize_Methods _Resize_Methods: ; @Resize_Methods .cfi_startproc ; %bb.0: Lloh0: adrp x0, _Resize_Methods.methods@PAGE Lloh1: add x0, x0, _Resize_Methods.methods@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @Resize_Methods.methods _Resize_Methods.methods: .quad l_.str .quad l_.str.1 .quad l_.str.2 .space 24 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "resize" l_.str.1: ; @.str.1 .asciz "void resize(var self, size_t n);" l_.str.2: ; @.str.2 .asciz "Resize to some size `n`, perhaps reserving some resource for object `self`." .no_dead_strip _Resize_Methods .subsections_via_symbols
AnghaBench/Cello/src/extr_Resize.c_Resize_Methods.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Resize_Name _Resize_Name: ## @Resize_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 "Reserve" .no_dead_strip _Resize_Name .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Resize_Name _Resize_Name: ; @Resize_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 "Reserve" .no_dead_strip _Resize_Name .subsections_via_symbols
AnghaBench/Cello/src/extr_Resize.c_Resize_Name.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _resize ## -- Begin function resize .p2align 4, 0x90 _resize: ## @resize .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, %rcx movq _Resize@GOTPCREL(%rip), %rax movl (%rax), %esi leaq _resize(%rip), %rdx popq %rbp jmp _method ## TAILCALL .cfi_endproc ## -- End function .comm _Resize,4,2 ## @Resize .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _resize ; -- Begin function resize .p2align 2 _resize: ; @resize .cfi_startproc ; %bb.0: mov x3, x1 Lloh0: adrp x8, _Resize@GOTPAGE Lloh1: ldr x8, [x8, _Resize@GOTPAGEOFF] Lloh2: ldr w1, [x8] Lloh3: adrp x2, _resize@PAGE Lloh4: add x2, x2, _resize@PAGEOFF b _method .loh AdrpAdd Lloh3, Lloh4 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _Resize,4,2 ; @Resize .subsections_via_symbols
AnghaBench/Cello/src/extr_Resize.c_resize.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Format_Brief _Format_Brief: ## @Format_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 "Read or Write with Format String" .no_dead_strip _Format_Brief .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Format_Brief _Format_Brief: ; @Format_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 "Read or Write with Format String" .no_dead_strip _Format_Brief .subsections_via_symbols
AnghaBench/Cello/src/extr_Show.c_Format_Brief.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Format_Definition _Format_Definition: ## @Format_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 Format {\n int (*format_to)(var,int,const char*,va_list);\n int (*format_from)(var,int,const char*,va_list);\n};\n" .no_dead_strip _Format_Definition .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Format_Definition _Format_Definition: ; @Format_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 Format {\n int (*format_to)(var,int,const char*,va_list);\n int (*format_from)(var,int,const char*,va_list);\n};\n" .no_dead_strip _Format_Definition .subsections_via_symbols
AnghaBench/Cello/src/extr_Show.c_Format_Definition.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Format_Description _Format_Description: ## @Format_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 "Format abstracts the class of operations such as `scanf`, `sprintf` and `fprintf` with matching semantics. It provides general `printf` and `scanf` functionality for several different types objects in a uniform way. This class is essentially an in-between class, used by the `Show` class to read and write output.\n\nIt is important to note that the semantics of these operations match `printf` and not the newly defined `Show` class. For example it is perfectly valid to pass a C `int` to these functions, while the `println` function from `Show` must be passed only `var` objects." .no_dead_strip _Format_Description .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Format_Description _Format_Description: ; @Format_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 "Format abstracts the class of operations such as `scanf`, `sprintf` and `fprintf` with matching semantics. It provides general `printf` and `scanf` functionality for several different types objects in a uniform way. This class is essentially an in-between class, used by the `Show` class to read and write output.\n\nIt is important to note that the semantics of these operations match `printf` and not the newly defined `Show` class. For example it is perfectly valid to pass a C `int` to these functions, while the `println` function from `Show` must be passed only `var` objects." .no_dead_strip _Format_Description .subsections_via_symbols
AnghaBench/Cello/src/extr_Show.c_Format_Description.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Format_Examples _Format_Examples: ## @Format_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 _Format_Examples.examples(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 4 ## @Format_Examples.examples _Format_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(\"Hello my name is %s, I'm %i\\n\", \"Dan\", 23); */\nformat_to($(File, stdout), 0, \n \"Hello my name is %s, I'm %i\\n\", \"Dan\", 23);\n" .no_dead_strip _Format_Examples .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Format_Examples _Format_Examples: ; @Format_Examples .cfi_startproc ; %bb.0: Lloh0: adrp x0, _Format_Examples.examples@PAGE Lloh1: add x0, x0, _Format_Examples.examples@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @Format_Examples.examples _Format_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(\"Hello my name is %s, I'm %i\\n\", \"Dan\", 23); */\nformat_to($(File, stdout), 0, \n \"Hello my name is %s, I'm %i\\n\", \"Dan\", 23);\n" .no_dead_strip _Format_Examples .subsections_via_symbols
AnghaBench/Cello/src/extr_Show.c_Format_Examples.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Format_Methods _Format_Methods: ## @Format_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 _Format_Methods.methods(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 4 ## @Format_Methods.methods _Format_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 "format_to" L_.str.1: ## @.str.1 .asciz "int format_to(var self, int pos, const char* fmt, ...);\nint format_to_va(var self, int pos, const char* fmt, va_list va);" L_.str.2: ## @.str.2 .asciz "Write a formatted string `fmt` to the object `self` at position `pos`." L_.str.3: ## @.str.3 .asciz "format_from" L_.str.4: ## @.str.4 .asciz "int format_from(var self, int pos, const char* fmt, ...);\nint format_from_va(var self, int pos, const char* fmt, va_list va);" L_.str.5: ## @.str.5 .asciz "Read a formatted string `fmt` from the object `self` at position `pos`." .no_dead_strip _Format_Methods .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Format_Methods _Format_Methods: ; @Format_Methods .cfi_startproc ; %bb.0: Lloh0: adrp x0, _Format_Methods.methods@PAGE Lloh1: add x0, x0, _Format_Methods.methods@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @Format_Methods.methods _Format_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 "format_to" l_.str.1: ; @.str.1 .asciz "int format_to(var self, int pos, const char* fmt, ...);\nint format_to_va(var self, int pos, const char* fmt, va_list va);" l_.str.2: ; @.str.2 .asciz "Write a formatted string `fmt` to the object `self` at position `pos`." l_.str.3: ; @.str.3 .asciz "format_from" l_.str.4: ; @.str.4 .asciz "int format_from(var self, int pos, const char* fmt, ...);\nint format_from_va(var self, int pos, const char* fmt, va_list va);" l_.str.5: ; @.str.5 .asciz "Read a formatted string `fmt` from the object `self` at position `pos`." .no_dead_strip _Format_Methods .subsections_via_symbols
AnghaBench/Cello/src/extr_Show.c_Format_Methods.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Format_Name _Format_Name: ## @Format_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 "Format" .no_dead_strip _Format_Name .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Format_Name _Format_Name: ; @Format_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 "Format" .no_dead_strip _Format_Name .subsections_via_symbols
AnghaBench/Cello/src/extr_Show.c_Format_Name.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Show_Brief _Show_Brief: ## @Show_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 "Convert To or From String" .no_dead_strip _Show_Brief .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Show_Brief _Show_Brief: ; @Show_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 "Convert To or From String" .no_dead_strip _Show_Brief .subsections_via_symbols
AnghaBench/Cello/src/extr_Show.c_Show_Brief.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Show_Definition _Show_Definition: ## @Show_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 Show {\n int (*show)(var, var, int);\n int (*look)(var, var, int);\n};\n" .no_dead_strip _Show_Definition .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Show_Definition _Show_Definition: ; @Show_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 Show {\n int (*show)(var, var, int);\n int (*look)(var, var, int);\n};\n" .no_dead_strip _Show_Definition .subsections_via_symbols
AnghaBench/Cello/src/extr_Show.c_Show_Definition.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Show_Description _Show_Description: ## @Show_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 `Show` class is used to convert objects to, and from, a `String` representation. Objects which implement `Show` should expect the input/output object to be one that support the `Format` class, such as `File` or `String`.\n\nThe `print`, `println` and `print_to` functions provide a mechanism for writing formatted strings with Cello objects. To do this they provide a new format specifier `%$` which uses an object's `Show` functionality to write that part of the string. All objects which don't support `Show` can still be shown via a default implementation.\n\nAll the Show methods which are variable arguments only take `var` objects as input. To print native C types wrap them in Cello types using `$`.\n\nStandard format specifiers such as `%f` and `%d` will call functions such as `c_float` and `c_int` on their passed arguments to convert objects to C types before performing the standard C formatting behaviour.\n\nSee [printf](http://www.cplusplus.com/reference/cstdio/printf/) for more information on format specifiers." .no_dead_strip _Show_Description .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Show_Description _Show_Description: ; @Show_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 `Show` class is used to convert objects to, and from, a `String` representation. Objects which implement `Show` should expect the input/output object to be one that support the `Format` class, such as `File` or `String`.\n\nThe `print`, `println` and `print_to` functions provide a mechanism for writing formatted strings with Cello objects. To do this they provide a new format specifier `%$` which uses an object's `Show` functionality to write that part of the string. All objects which don't support `Show` can still be shown via a default implementation.\n\nAll the Show methods which are variable arguments only take `var` objects as input. To print native C types wrap them in Cello types using `$`.\n\nStandard format specifiers such as `%f` and `%d` will call functions such as `c_float` and `c_int` on their passed arguments to convert objects to C types before performing the standard C formatting behaviour.\n\nSee [printf](http://www.cplusplus.com/reference/cstdio/printf/) for more information on format specifiers." .no_dead_strip _Show_Description .subsections_via_symbols
AnghaBench/Cello/src/extr_Show.c_Show_Description.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Show_Examples _Show_Examples: ## @Show_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 _Show_Examples.examples(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 4 ## @Show_Examples.examples _Show_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 "Hello World" L_.str.1: ## @.str.1 .asciz "println(\"Hello %s!\", $S(\"World\"));\n" L_.str.2: ## @.str.2 .asciz "File Writing" L_.str.3: ## @.str.3 .asciz "with (f in new(File, $S(\"prices.txt\"), $S(\"wb\"))) {\n print_to(f, 0, \"%$ :: %$\\n\", $S(\"Banana\"), $I(57));\n print_to(f, 0, \"%$ :: %$\\n\", $S(\"Apple\"), $I(22));\n print_to(f, 0, \"%$ :: %$\\n\", $S(\"Pear\"), $I(16));\n}\n" L_.str.4: ## @.str.4 .asciz "String Scanning" L_.str.5: ## @.str.5 .asciz "var input = $S(\"1 and 52 then 78\");\n\nvar i0 = $I(0), i1 = $I(0), i2 = $I(0);\nscan_from(input, 0, \"%i and %i then %i\", i0, i1, i2);\n\n/* i0: 1, i1: 52, i2: 78 */\nprintln(\"i0: %$, i1: %$, i2: %$\", i0, i1, i2);\n" L_.str.6: ## @.str.6 .asciz "String Printing" L_.str.7: ## @.str.7 .asciz "var greeting = new(String);\nprint_to(greeting, 0, \"Hello %s %s, %s?\", \n $S(\"Mr\"), $S(\"Johnson\"), $S(\"how are you?\"));\n\n/* Hello Mr Johnson, how are you? */\nshow(greeting);\n" .no_dead_strip _Show_Examples .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Show_Examples _Show_Examples: ; @Show_Examples .cfi_startproc ; %bb.0: Lloh0: adrp x0, _Show_Examples.examples@PAGE Lloh1: add x0, x0, _Show_Examples.examples@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @Show_Examples.examples _Show_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 "Hello World" l_.str.1: ; @.str.1 .asciz "println(\"Hello %s!\", $S(\"World\"));\n" l_.str.2: ; @.str.2 .asciz "File Writing" l_.str.3: ; @.str.3 .asciz "with (f in new(File, $S(\"prices.txt\"), $S(\"wb\"))) {\n print_to(f, 0, \"%$ :: %$\\n\", $S(\"Banana\"), $I(57));\n print_to(f, 0, \"%$ :: %$\\n\", $S(\"Apple\"), $I(22));\n print_to(f, 0, \"%$ :: %$\\n\", $S(\"Pear\"), $I(16));\n}\n" l_.str.4: ; @.str.4 .asciz "String Scanning" l_.str.5: ; @.str.5 .asciz "var input = $S(\"1 and 52 then 78\");\n\nvar i0 = $I(0), i1 = $I(0), i2 = $I(0);\nscan_from(input, 0, \"%i and %i then %i\", i0, i1, i2);\n\n/* i0: 1, i1: 52, i2: 78 */\nprintln(\"i0: %$, i1: %$, i2: %$\", i0, i1, i2);\n" l_.str.6: ; @.str.6 .asciz "String Printing" l_.str.7: ; @.str.7 .asciz "var greeting = new(String);\nprint_to(greeting, 0, \"Hello %s %s, %s?\", \n $S(\"Mr\"), $S(\"Johnson\"), $S(\"how are you?\"));\n\n/* Hello Mr Johnson, how are you? */\nshow(greeting);\n" .no_dead_strip _Show_Examples .subsections_via_symbols
AnghaBench/Cello/src/extr_Show.c_Show_Examples.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Show_Methods _Show_Methods: ## @Show_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 _Show_Methods.methods(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 4 ## @Show_Methods.methods _Show_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 "show" L_.str.1: ## @.str.1 .asciz "int show(var self);\nint show_to(var self, var out, int pos);" L_.str.2: ## @.str.2 .asciz "Show the object `self` either to `stdout` or to the object `output`." L_.str.3: ## @.str.3 .asciz "look" L_.str.4: ## @.str.4 .asciz "int look(var self);\nint look_from(var self, var input, int pos);" L_.str.5: ## @.str.5 .asciz "Read the object `self` either from `stdout` or from the object `input`." L_.str.6: ## @.str.6 .asciz "print" L_.str.7: ## @.str.7 .asciz "#define print(fmt, ...)\n#define println(fmt, ...)\n#define print_to(out, pos, fmt, ...)\nint print_with(const char* fmt, var args);\nint println_with(const char* fmt, var args);\nint print_to_with(var out, int pos, const char* fmt, var args);" L_.str.8: ## @.str.8 .asciz "Print the format string `fmt` either to `stdout` or to the object `out` at positions `pos`. Returns new position in output." L_.str.9: ## @.str.9 .asciz "scan" L_.str.10: ## @.str.10 .asciz "#define scan(fmt, ...)\n#define scanln(fmt, ...)\n#define scan_from(input, pos, fmt, ...)\nint scan_with(const char* fmt, var args);\nint scanln_with(const char* fmt, var args);\nint scan_from_with(var input, int pos, const char* fmt, var args);" L_.str.11: ## @.str.11 .asciz "Scan the format string `fmt` either from `stdout` or from the object `input` at position `pos`. Returns new position in output." .no_dead_strip _Show_Methods .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Show_Methods _Show_Methods: ; @Show_Methods .cfi_startproc ; %bb.0: Lloh0: adrp x0, _Show_Methods.methods@PAGE Lloh1: add x0, x0, _Show_Methods.methods@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @Show_Methods.methods _Show_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 "show" l_.str.1: ; @.str.1 .asciz "int show(var self);\nint show_to(var self, var out, int pos);" l_.str.2: ; @.str.2 .asciz "Show the object `self` either to `stdout` or to the object `output`." l_.str.3: ; @.str.3 .asciz "look" l_.str.4: ; @.str.4 .asciz "int look(var self);\nint look_from(var self, var input, int pos);" l_.str.5: ; @.str.5 .asciz "Read the object `self` either from `stdout` or from the object `input`." l_.str.6: ; @.str.6 .asciz "print" l_.str.7: ; @.str.7 .asciz "#define print(fmt, ...)\n#define println(fmt, ...)\n#define print_to(out, pos, fmt, ...)\nint print_with(const char* fmt, var args);\nint println_with(const char* fmt, var args);\nint print_to_with(var out, int pos, const char* fmt, var args);" l_.str.8: ; @.str.8 .asciz "Print the format string `fmt` either to `stdout` or to the object `out` at positions `pos`. Returns new position in output." l_.str.9: ; @.str.9 .asciz "scan" l_.str.10: ; @.str.10 .asciz "#define scan(fmt, ...)\n#define scanln(fmt, ...)\n#define scan_from(input, pos, fmt, ...)\nint scan_with(const char* fmt, var args);\nint scanln_with(const char* fmt, var args);\nint scan_from_with(var input, int pos, const char* fmt, var args);" l_.str.11: ; @.str.11 .asciz "Scan the format string `fmt` either from `stdout` or from the object `input` at position `pos`. Returns new position in output." .no_dead_strip _Show_Methods .subsections_via_symbols
AnghaBench/Cello/src/extr_Show.c_Show_Methods.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Show_Name _Show_Name: ## @Show_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 "Show" .no_dead_strip _Show_Name .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Show_Name _Show_Name: ; @Show_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 "Show" .no_dead_strip _Show_Name .subsections_via_symbols
AnghaBench/Cello/src/extr_Show.c_Show_Name.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _format_from_va ## -- Begin function format_from_va .p2align 4, 0x90 _format_from_va: ## @format_from_va .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %ecx, %r9d movq %rdx, %r8 movl %esi, %ecx movq _Format@GOTPCREL(%rip), %rax movl (%rax), %esi movq _format_from@GOTPCREL(%rip), %rax movl (%rax), %edx popq %rbp jmp _method ## TAILCALL .cfi_endproc ## -- End function .comm _Format,4,2 ## @Format .comm _format_from,4,2 ## @format_from .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _format_from_va ; -- Begin function format_from_va .p2align 2 _format_from_va: ; @format_from_va .cfi_startproc ; %bb.0: mov x5, x3 mov x4, x2 mov x3, x1 Lloh0: adrp x8, _Format@GOTPAGE Lloh1: ldr x8, [x8, _Format@GOTPAGEOFF] Lloh2: ldr w1, [x8] Lloh3: adrp x8, _format_from@GOTPAGE Lloh4: ldr x8, [x8, _format_from@GOTPAGEOFF] Lloh5: ldr w2, [x8] b _method .loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _Format,4,2 ; @Format .comm _format_from,4,2 ; @format_from .subsections_via_symbols
AnghaBench/Cello/src/extr_Show.c_format_from_va.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _format_to_va ## -- Begin function format_to_va .p2align 4, 0x90 _format_to_va: ## @format_to_va .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %ecx, %r9d movq %rdx, %r8 movl %esi, %ecx movq _Format@GOTPCREL(%rip), %rax movl (%rax), %esi movq _format_to@GOTPCREL(%rip), %rax movl (%rax), %edx popq %rbp jmp _method ## TAILCALL .cfi_endproc ## -- End function .comm _Format,4,2 ## @Format .comm _format_to,4,2 ## @format_to .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _format_to_va ; -- Begin function format_to_va .p2align 2 _format_to_va: ; @format_to_va .cfi_startproc ; %bb.0: mov x5, x3 mov x4, x2 mov x3, x1 Lloh0: adrp x8, _Format@GOTPAGE Lloh1: ldr x8, [x8, _Format@GOTPAGEOFF] Lloh2: ldr w1, [x8] Lloh3: adrp x8, _format_to@GOTPAGE Lloh4: ldr x8, [x8, _format_to@GOTPAGEOFF] Lloh5: ldr w2, [x8] b _method .loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _Format,4,2 ; @Format .comm _format_to,4,2 ; @format_to .subsections_via_symbols
AnghaBench/Cello/src/extr_Show.c_format_to_va.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _look ## -- Begin function look .p2align 4, 0x90 _look: ## @look .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 %edi, %ebx movq _File@GOTPCREL(%rip), %rax movl (%rax), %edi movq _stdin@GOTPCREL(%rip), %rax movl (%rax), %esi callq _$ movl %ebx, %edi movl %eax, %esi xorl %edx, %edx addq $8, %rsp popq %rbx popq %rbp jmp _look_from ## TAILCALL .cfi_endproc ## -- End function .comm _File,4,2 ## @File .comm _stdin,4,2 ## @stdin .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _look ; -- Begin function look .p2align 2 _look: ; @look .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 Lloh0: adrp x8, _File@GOTPAGE Lloh1: ldr x8, [x8, _File@GOTPAGEOFF] Lloh2: ldr w0, [x8] Lloh3: adrp x8, _stdin@GOTPAGE Lloh4: ldr x8, [x8, _stdin@GOTPAGEOFF] Lloh5: ldr w1, [x8] bl _$ mov x1, x0 mov x0, x19 mov w2, #0 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _look_from .loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _File,4,2 ; @File .comm _stdin,4,2 ; @stdin .subsections_via_symbols
AnghaBench/Cello/src/extr_Show.c_look.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _look_from ## -- Begin function look_from .p2align 4, 0x90 _look_from: ## @look_from .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edx, %r8d movl %esi, %ecx movq _Show@GOTPCREL(%rip), %rax movl (%rax), %esi movq _look@GOTPCREL(%rip), %rax movl (%rax), %edx popq %rbp jmp _method ## TAILCALL .cfi_endproc ## -- End function .comm _Show,4,2 ## @Show .comm _look,4,2 ## @look .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _look_from ; -- Begin function look_from .p2align 2 _look_from: ; @look_from .cfi_startproc ; %bb.0: mov x4, x2 mov x3, x1 Lloh0: adrp x8, _Show@GOTPAGE Lloh1: ldr x8, [x8, _Show@GOTPAGEOFF] Lloh2: ldr w1, [x8] Lloh3: adrp x8, _look@GOTPAGE Lloh4: ldr x8, [x8, _look@GOTPAGEOFF] Lloh5: ldr w2, [x8] b _method .loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _Show,4,2 ; @Show .comm _look,4,2 ; @look .subsections_via_symbols
AnghaBench/Cello/src/extr_Show.c_look_from.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _print_with ## -- Begin function print_with .p2align 4, 0x90 _print_with: ## @print_with .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 movq %rdi, %rbx movq _File@GOTPCREL(%rip), %rax movl (%rax), %edi movq _stdout@GOTPCREL(%rip), %rax movl (%rax), %esi callq _$ movl %eax, %edi xorl %esi, %esi movq %rbx, %rdx movl %r14d, %ecx popq %rbx popq %r14 popq %rbp jmp _print_to_with ## TAILCALL .cfi_endproc ## -- End function .comm _File,4,2 ## @File .comm _stdout,4,2 ## @stdout .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _print_with ; -- Begin function print_with .p2align 2 _print_with: ; @print_with .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x1 mov x20, x0 Lloh0: adrp x8, _File@GOTPAGE Lloh1: ldr x8, [x8, _File@GOTPAGEOFF] Lloh2: ldr w0, [x8] Lloh3: adrp x8, _stdout@GOTPAGE Lloh4: ldr x8, [x8, _stdout@GOTPAGEOFF] Lloh5: ldr w1, [x8] bl _$ mov w1, #0 mov x2, x20 mov x3, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _print_to_with .loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _File,4,2 ; @File .comm _stdout,4,2 ; @stdout .subsections_via_symbols
AnghaBench/Cello/src/extr_Show.c_print_with.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _println_with ## -- Begin function println_with .p2align 4, 0x90 _println_with: ## @println_with .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 movl %esi, %r14d movq %rdi, %rbx movq _File@GOTPCREL(%rip), %r15 movl (%r15), %edi movq _stdout@GOTPCREL(%rip), %r12 movl (%r12), %esi callq _$ movl %eax, %edi xorl %esi, %esi movq %rbx, %rdx movl %r14d, %ecx callq _print_to_with movl %eax, %ebx movl (%r15), %edi movl (%r12), %esi callq _$ leaq L_.str(%rip), %rdx movl %eax, %edi movl %ebx, %esi popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp jmp _print_to ## TAILCALL .cfi_endproc ## -- End function .comm _File,4,2 ## @File .comm _stdout,4,2 ## @stdout .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _println_with ; -- Begin function println_with .p2align 2 _println_with: ; @println_with .cfi_startproc ; %bb.0: stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill .cfi_def_cfa_offset 48 stp x20, x19, [sp, #16] ; 16-byte Folded Spill stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 mov x19, x1 mov x20, x0 Lloh0: adrp x21, _File@GOTPAGE Lloh1: ldr x21, [x21, _File@GOTPAGEOFF] ldr w0, [x21] Lloh2: adrp x22, _stdout@GOTPAGE Lloh3: ldr x22, [x22, _stdout@GOTPAGEOFF] ldr w1, [x22] bl _$ mov w1, #0 mov x2, x20 mov x3, x19 bl _print_to_with mov x19, x0 ldr w0, [x21] ldr w1, [x22] bl _$ Lloh4: adrp x2, l_.str@PAGE Lloh5: add x2, x2, l_.str@PAGEOFF mov x1, 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 b _print_to .loh AdrpAdd Lloh4, Lloh5 .loh AdrpLdrGot Lloh2, Lloh3 .loh AdrpLdrGot Lloh0, Lloh1 .cfi_endproc ; -- End function .comm _File,4,2 ; @File .comm _stdout,4,2 ; @stdout .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "\n" .subsections_via_symbols
AnghaBench/Cello/src/extr_Show.c_println_with.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _scan_with ## -- Begin function scan_with .p2align 4, 0x90 _scan_with: ## @scan_with .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 movq %rdi, %rbx movq _File@GOTPCREL(%rip), %rax movl (%rax), %edi movq _stdin@GOTPCREL(%rip), %rax movl (%rax), %esi callq _$ movl %eax, %edi xorl %esi, %esi movq %rbx, %rdx movl %r14d, %ecx popq %rbx popq %r14 popq %rbp jmp _scan_from_with ## TAILCALL .cfi_endproc ## -- End function .comm _File,4,2 ## @File .comm _stdin,4,2 ## @stdin .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _scan_with ; -- Begin function scan_with .p2align 2 _scan_with: ; @scan_with .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x1 mov x20, x0 Lloh0: adrp x8, _File@GOTPAGE Lloh1: ldr x8, [x8, _File@GOTPAGEOFF] Lloh2: ldr w0, [x8] Lloh3: adrp x8, _stdin@GOTPAGE Lloh4: ldr x8, [x8, _stdin@GOTPAGEOFF] Lloh5: ldr w1, [x8] bl _$ mov w1, #0 mov x2, x20 mov x3, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _scan_from_with .loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _File,4,2 ; @File .comm _stdin,4,2 ; @stdin .subsections_via_symbols
AnghaBench/Cello/src/extr_Show.c_scan_with.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _scanln_with ## -- Begin function scanln_with .p2align 4, 0x90 _scanln_with: ## @scanln_with .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 movl %esi, %r14d movq %rdi, %rbx movq _File@GOTPCREL(%rip), %r15 movl (%r15), %edi movq _stdin@GOTPCREL(%rip), %r12 movl (%r12), %esi callq _$ movl %eax, %edi xorl %esi, %esi movq %rbx, %rdx movl %r14d, %ecx callq _scan_from_with movl %eax, %ebx movl (%r15), %edi movl (%r12), %esi callq _$ leaq L_.str(%rip), %rdx movl %eax, %edi movl %ebx, %esi popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp jmp _scan_from ## TAILCALL .cfi_endproc ## -- End function .comm _File,4,2 ## @File .comm _stdin,4,2 ## @stdin .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _scanln_with ; -- Begin function scanln_with .p2align 2 _scanln_with: ; @scanln_with .cfi_startproc ; %bb.0: stp x22, x21, [sp, #-48]! ; 16-byte Folded Spill .cfi_def_cfa_offset 48 stp x20, x19, [sp, #16] ; 16-byte Folded Spill stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 .cfi_offset w21, -40 .cfi_offset w22, -48 mov x19, x1 mov x20, x0 Lloh0: adrp x21, _File@GOTPAGE Lloh1: ldr x21, [x21, _File@GOTPAGEOFF] ldr w0, [x21] Lloh2: adrp x22, _stdin@GOTPAGE Lloh3: ldr x22, [x22, _stdin@GOTPAGEOFF] ldr w1, [x22] bl _$ mov w1, #0 mov x2, x20 mov x3, x19 bl _scan_from_with mov x19, x0 ldr w0, [x21] ldr w1, [x22] bl _$ Lloh4: adrp x2, l_.str@PAGE Lloh5: add x2, x2, l_.str@PAGEOFF mov x1, 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 b _scan_from .loh AdrpAdd Lloh4, Lloh5 .loh AdrpLdrGot Lloh2, Lloh3 .loh AdrpLdrGot Lloh0, Lloh1 .cfi_endproc ; -- End function .comm _File,4,2 ; @File .comm _stdin,4,2 ; @stdin .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "\n" .subsections_via_symbols
AnghaBench/Cello/src/extr_Show.c_scanln_with.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _show ## -- Begin function show .p2align 4, 0x90 _show: ## @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 %rbx pushq %rax .cfi_offset %rbx, -24 movl %edi, %ebx movq _File@GOTPCREL(%rip), %rax movl (%rax), %edi movq _stdout@GOTPCREL(%rip), %rax movl (%rax), %esi callq _$ movl %ebx, %edi movl %eax, %esi xorl %edx, %edx addq $8, %rsp popq %rbx popq %rbp jmp _show_to ## TAILCALL .cfi_endproc ## -- End function .comm _File,4,2 ## @File .comm _stdout,4,2 ## @stdout .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _show ; -- Begin function show .p2align 2 _show: ; @show .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 Lloh0: adrp x8, _File@GOTPAGE Lloh1: ldr x8, [x8, _File@GOTPAGEOFF] Lloh2: ldr w0, [x8] Lloh3: adrp x8, _stdout@GOTPAGE Lloh4: ldr x8, [x8, _stdout@GOTPAGEOFF] Lloh5: ldr w1, [x8] bl _$ mov x1, x0 mov x0, x19 mov w2, #0 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _show_to .loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _File,4,2 ; @File .comm _stdout,4,2 ; @stdout .subsections_via_symbols
AnghaBench/Cello/src/extr_Show.c_show.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Start_Brief _Start_Brief: ## @Start_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 "Can be started or stopped" .no_dead_strip _Start_Brief .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Start_Brief _Start_Brief: ; @Start_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 "Can be started or stopped" .no_dead_strip _Start_Brief .subsections_via_symbols
AnghaBench/Cello/src/extr_Start.c_Start_Brief.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Start_Definition _Start_Definition: ## @Start_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 Start {\n void (*start)(var);\n void (*stop)(var);\n void (*join)(var);\n bool (*running)(var);\n};\n" .no_dead_strip _Start_Definition .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Start_Definition _Start_Definition: ; @Start_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 Start {\n void (*start)(var);\n void (*stop)(var);\n void (*join)(var);\n bool (*running)(var);\n};\n" .no_dead_strip _Start_Definition .subsections_via_symbols
AnghaBench/Cello/src/extr_Start.c_Start_Definition.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Start_Description _Start_Description: ## @Start_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 `Start` class can be implemented by types which provide an abstract notion of a started and stopped state. This can be real processes such as `Thread`, or something like `File` where the on/off correspond to if the file is open or not.\n\nThe main nicety of the `Start` class is that it allows use of the `with` macro which performs the `start` function at the opening of a scope block and the `stop` function at the end." .no_dead_strip _Start_Description .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Start_Description _Start_Description: ; @Start_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 `Start` class can be implemented by types which provide an abstract notion of a started and stopped state. This can be real processes such as `Thread`, or something like `File` where the on/off correspond to if the file is open or not.\n\nThe main nicety of the `Start` class is that it allows use of the `with` macro which performs the `start` function at the opening of a scope block and the `stop` function at the end." .no_dead_strip _Start_Description .subsections_via_symbols
AnghaBench/Cello/src/extr_Start.c_Start_Description.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Start_Examples _Start_Examples: ## @Start_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 _Start_Examples.examples(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 4 ## @Start_Examples.examples _Start_Examples.examples: .quad L_.str .quad L_.str.1 .quad L_.str.2 .quad L_.str.3 .space 16 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Usage" L_.str.1: ## @.str.1 .asciz "var x = new(Mutex);\nstart(x); /* Lock Mutex */ \nprint(\"Inside Mutex!\\n\");\nstop(x); /* unlock Mutex */" L_.str.2: ## @.str.2 .asciz "Scoped" L_.str.3: ## @.str.3 .asciz "var x = new(Mutex);\nwith (mut in x) { /* Lock Mutex */ \n print(\"Inside Mutex!\\n\");\n} /* unlock Mutex */" .no_dead_strip _Start_Examples .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Start_Examples _Start_Examples: ; @Start_Examples .cfi_startproc ; %bb.0: Lloh0: adrp x0, _Start_Examples.examples@PAGE Lloh1: add x0, x0, _Start_Examples.examples@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @Start_Examples.examples _Start_Examples.examples: .quad l_.str .quad l_.str.1 .quad l_.str.2 .quad l_.str.3 .space 16 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Usage" l_.str.1: ; @.str.1 .asciz "var x = new(Mutex);\nstart(x); /* Lock Mutex */ \nprint(\"Inside Mutex!\\n\");\nstop(x); /* unlock Mutex */" l_.str.2: ; @.str.2 .asciz "Scoped" l_.str.3: ; @.str.3 .asciz "var x = new(Mutex);\nwith (mut in x) { /* Lock Mutex */ \n print(\"Inside Mutex!\\n\");\n} /* unlock Mutex */" .no_dead_strip _Start_Examples .subsections_via_symbols
AnghaBench/Cello/src/extr_Start.c_Start_Examples.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Start_Methods _Start_Methods: ## @Start_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 _Start_Methods.methods(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 4 ## @Start_Methods.methods _Start_Methods.methods: .quad L_.str .quad L_.str.1 .quad L_.str.2 .quad L_.str.3 .quad L_.str.4 .quad L_.str.5 .quad L_.str.6 .quad L_.str.7 .quad L_.str.8 .quad L_.str.9 .quad L_.str.10 .quad L_.str.11 .quad L_.str.12 .quad L_.str.13 .quad L_.str.14 .space 24 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "with" L_.str.1: ## @.str.1 .asciz "#define with(...)" L_.str.2: ## @.str.2 .asciz "Perform operations in between `start` and `stop`." L_.str.3: ## @.str.3 .asciz "start" L_.str.4: ## @.str.4 .asciz "void start(var self);" L_.str.5: ## @.str.5 .asciz "Start the object `self`." L_.str.6: ## @.str.6 .asciz "stop" L_.str.7: ## @.str.7 .asciz "void stop(var self);" L_.str.8: ## @.str.8 .asciz "Stop the object `self`." L_.str.9: ## @.str.9 .asciz "join" L_.str.10: ## @.str.10 .asciz "void join(var self);" L_.str.11: ## @.str.11 .asciz "Block and wait for the object `self` to stop." L_.str.12: ## @.str.12 .asciz "running" L_.str.13: ## @.str.13 .asciz "bool running(var self);" L_.str.14: ## @.str.14 .asciz "Check if the object `self` is running." .no_dead_strip _Start_Methods .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Start_Methods _Start_Methods: ; @Start_Methods .cfi_startproc ; %bb.0: Lloh0: adrp x0, _Start_Methods.methods@PAGE Lloh1: add x0, x0, _Start_Methods.methods@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @Start_Methods.methods _Start_Methods.methods: .quad l_.str .quad l_.str.1 .quad l_.str.2 .quad l_.str.3 .quad l_.str.4 .quad l_.str.5 .quad l_.str.6 .quad l_.str.7 .quad l_.str.8 .quad l_.str.9 .quad l_.str.10 .quad l_.str.11 .quad l_.str.12 .quad l_.str.13 .quad l_.str.14 .space 24 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "with" l_.str.1: ; @.str.1 .asciz "#define with(...)" l_.str.2: ; @.str.2 .asciz "Perform operations in between `start` and `stop`." l_.str.3: ; @.str.3 .asciz "start" l_.str.4: ; @.str.4 .asciz "void start(var self);" l_.str.5: ; @.str.5 .asciz "Start the object `self`." l_.str.6: ; @.str.6 .asciz "stop" l_.str.7: ; @.str.7 .asciz "void stop(var self);" l_.str.8: ; @.str.8 .asciz "Stop the object `self`." l_.str.9: ; @.str.9 .asciz "join" l_.str.10: ; @.str.10 .asciz "void join(var self);" l_.str.11: ; @.str.11 .asciz "Block and wait for the object `self` to stop." l_.str.12: ; @.str.12 .asciz "running" l_.str.13: ; @.str.13 .asciz "bool running(var self);" l_.str.14: ; @.str.14 .asciz "Check if the object `self` is running." .no_dead_strip _Start_Methods .subsections_via_symbols
AnghaBench/Cello/src/extr_Start.c_Start_Methods.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Start_Name _Start_Name: ## @Start_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 "Start" .no_dead_strip _Start_Name .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Start_Name _Start_Name: ; @Start_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 "Start" .no_dead_strip _Start_Name .subsections_via_symbols
AnghaBench/Cello/src/extr_Start.c_Start_Name.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _join ## -- Begin function join .p2align 4, 0x90 _join: ## @join .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _Start@GOTPCREL(%rip), %rax movl (%rax), %esi leaq _join(%rip), %rdx popq %rbp jmp _method ## TAILCALL .cfi_endproc ## -- End function .comm _Start,4,2 ## @Start .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _join ; -- Begin function join .p2align 2 _join: ; @join .cfi_startproc ; %bb.0: Lloh0: adrp x8, _Start@GOTPAGE Lloh1: ldr x8, [x8, _Start@GOTPAGEOFF] Lloh2: ldr w1, [x8] Lloh3: adrp x2, _join@PAGE Lloh4: add x2, x2, _join@PAGEOFF b _method .loh AdrpAdd Lloh3, Lloh4 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _Start,4,2 ; @Start .subsections_via_symbols
AnghaBench/Cello/src/extr_Start.c_join.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _running ## -- Begin function running .p2align 4, 0x90 _running: ## @running .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _Start@GOTPCREL(%rip), %rax movl (%rax), %esi leaq _running(%rip), %rdx popq %rbp jmp _method ## TAILCALL .cfi_endproc ## -- End function .comm _Start,4,2 ## @Start .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _running ; -- Begin function running .p2align 2 _running: ; @running .cfi_startproc ; %bb.0: Lloh0: adrp x8, _Start@GOTPAGE Lloh1: ldr x8, [x8, _Start@GOTPAGEOFF] Lloh2: ldr w1, [x8] Lloh3: adrp x2, _running@PAGE Lloh4: add x2, x2, _running@PAGEOFF b _method .loh AdrpAdd Lloh3, Lloh4 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _Start,4,2 ; @Start .subsections_via_symbols
AnghaBench/Cello/src/extr_Start.c_running.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _start ## -- Begin function start .p2align 4, 0x90 _start: ## @start .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _Start@GOTPCREL(%rip), %rax movl (%rax), %esi leaq _start(%rip), %rdx popq %rbp jmp _method ## TAILCALL .cfi_endproc ## -- End function .comm _Start,4,2 ## @Start .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _start ; -- Begin function start .p2align 2 _start: ; @start .cfi_startproc ; %bb.0: Lloh0: adrp x8, _Start@GOTPAGE Lloh1: ldr x8, [x8, _Start@GOTPAGEOFF] Lloh2: ldr w1, [x8] Lloh3: adrp x2, _start@PAGE Lloh4: add x2, x2, _start@PAGEOFF b _method .loh AdrpAdd Lloh3, Lloh4 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _Start,4,2 ; @Start .subsections_via_symbols
AnghaBench/Cello/src/extr_Start.c_start.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _stop ## -- Begin function stop .p2align 4, 0x90 _stop: ## @stop .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _Start@GOTPCREL(%rip), %rax movl (%rax), %esi leaq _stop(%rip), %rdx popq %rbp jmp _method ## TAILCALL .cfi_endproc ## -- End function .comm _Start,4,2 ## @Start .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _stop ; -- Begin function stop .p2align 2 _stop: ; @stop .cfi_startproc ; %bb.0: Lloh0: adrp x8, _Start@GOTPAGE Lloh1: ldr x8, [x8, _Start@GOTPAGEOFF] Lloh2: ldr w1, [x8] Lloh3: adrp x2, _stop@PAGE Lloh4: add x2, x2, _stop@PAGEOFF b _method .loh AdrpAdd Lloh3, Lloh4 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _Start,4,2 ; @Start .subsections_via_symbols
AnghaBench/Cello/src/extr_Start.c_stop.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function C_Str_Brief _C_Str_Brief: ## @C_Str_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 String" .no_dead_strip _C_Str_Brief .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function C_Str_Brief _C_Str_Brief: ; @C_Str_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 String" .no_dead_strip _C_Str_Brief .subsections_via_symbols
AnghaBench/Cello/src/extr_String.c_C_Str_Brief.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function C_Str_Definition _C_Str_Definition: ## @C_Str_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_Str {\n char* (*c_str)(var);\n};\n" .no_dead_strip _C_Str_Definition .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function C_Str_Definition _C_Str_Definition: ; @C_Str_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_Str {\n char* (*c_str)(var);\n};\n" .no_dead_strip _C_Str_Definition .subsections_via_symbols
AnghaBench/Cello/src/extr_String.c_C_Str_Definition.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function C_Str_Description _C_Str_Description: ## @C_Str_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_Str` class should be overridden by types which are representable as a C style String." .no_dead_strip _C_Str_Description .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function C_Str_Description _C_Str_Description: ; @C_Str_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_Str` class should be overridden by types which are representable as a C style String." .no_dead_strip _C_Str_Description .subsections_via_symbols
AnghaBench/Cello/src/extr_String.c_C_Str_Description.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function C_Str_Examples _C_Str_Examples: ## @C_Str_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_Str_Examples.examples(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 4 ## @C_Str_Examples.examples _C_Str_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 "puts(c_str($S(\"Hello\"))); /* Hello */\nputs(c_str($S(\"There\"))); /* There */\n" .no_dead_strip _C_Str_Examples .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function C_Str_Examples _C_Str_Examples: ; @C_Str_Examples .cfi_startproc ; %bb.0: Lloh0: adrp x0, _C_Str_Examples.examples@PAGE Lloh1: add x0, x0, _C_Str_Examples.examples@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @C_Str_Examples.examples _C_Str_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 "puts(c_str($S(\"Hello\"))); /* Hello */\nputs(c_str($S(\"There\"))); /* There */\n" .no_dead_strip _C_Str_Examples .subsections_via_symbols
AnghaBench/Cello/src/extr_String.c_C_Str_Examples.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function C_Str_Methods _C_Str_Methods: ## @C_Str_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_Str_Methods.methods(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 4 ## @C_Str_Methods.methods _C_Str_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_str" L_.str.1: ## @.str.1 .asciz "char* c_str(var self);" L_.str.2: ## @.str.2 .asciz "Returns the object `self` represented as a `char*`." .no_dead_strip _C_Str_Methods .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function C_Str_Methods _C_Str_Methods: ; @C_Str_Methods .cfi_startproc ; %bb.0: Lloh0: adrp x0, _C_Str_Methods.methods@PAGE Lloh1: add x0, x0, _C_Str_Methods.methods@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @C_Str_Methods.methods _C_Str_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_str" l_.str.1: ; @.str.1 .asciz "char* c_str(var self);" l_.str.2: ; @.str.2 .asciz "Returns the object `self` represented as a `char*`." .no_dead_strip _C_Str_Methods .subsections_via_symbols
AnghaBench/Cello/src/extr_String.c_C_Str_Methods.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function C_Str_Name _C_Str_Name: ## @C_Str_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_Str" .no_dead_strip _C_Str_Name .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function C_Str_Name _C_Str_Name: ; @C_Str_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_Str" .no_dead_strip _C_Str_Name .subsections_via_symbols
AnghaBench/Cello/src/extr_String.c_C_Str_Name.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function String_Brief _String_Brief: ## @String_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 "String Object" .no_dead_strip _String_Brief .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function String_Brief _String_Brief: ; @String_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 "String Object" .no_dead_strip _String_Brief .subsections_via_symbols
AnghaBench/Cello/src/extr_String.c_String_Brief.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function String_C_Str _String_C_Str: ## @String_C_Str .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 _String_C_Str .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function String_C_Str _String_C_Str: ; @String_C_Str .cfi_startproc ; %bb.0: ldr x0, [x0] ret .cfi_endproc ; -- End function .no_dead_strip _String_C_Str .subsections_via_symbols
AnghaBench/Cello/src/extr_String.c_String_C_Str.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function String_Cmp _String_Cmp: ## @String_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 _String_C_Str movl %eax, %ebx movl %r14d, %edi callq _c_str movl %ebx, %edi movl %eax, %esi popq %rbx popq %r14 popq %rbp jmp _strcmp ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _String_Cmp .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function String_Cmp _String_Cmp: ; @String_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 _String_C_Str mov x20, x0 mov x0, x19 bl _c_str mov x1, x0 mov x0, x20 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _strcmp .cfi_endproc ; -- End function .no_dead_strip _String_Cmp .subsections_via_symbols
AnghaBench/Cello/src/extr_String.c_String_Cmp.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function String_Definition _String_Definition: ## @String_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 String {\n char* val;\n};\n" .no_dead_strip _String_Definition .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function String_Definition _String_Definition: ; @String_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 String {\n char* val;\n};\n" .no_dead_strip _String_Definition .subsections_via_symbols
AnghaBench/Cello/src/extr_String.c_String_Definition.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function String_Description _String_Description: ## @String_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 `String` type is a wrapper around the native C string type. This includes strings that are allocated on either the Stack or the Heap.\n\nFor strings allocated on the heap a number of extra operations are provided overs standard C strings such as concatenation." .no_dead_strip _String_Description .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function String_Description _String_Description: ; @String_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 `String` type is a wrapper around the native C string type. This includes strings that are allocated on either the Stack or the Heap.\n\nFor strings allocated on the heap a number of extra operations are provided overs standard C strings such as concatenation." .no_dead_strip _String_Description .subsections_via_symbols
AnghaBench/Cello/src/extr_String.c_String_Description.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function String_Examples _String_Examples: ## @String_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 _String_Examples.examples(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 4 ## @String_Examples.examples _String_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 s0 = $(String, \"Hello\");\nvar s1 = new(String, $S(\"Hello\"));\nappend(s1, $S(\" There\"));\nshow(s0); /* Hello */\nshow(s1); /* Hello There */\n" L_.str.2: ## @.str.2 .asciz "Manipulation" L_.str.3: ## @.str.3 .asciz "var s0 = new(String, $S(\"Balloons\"));\n\nshow($I(len(s0))); /* 8 */\nshow($I(mem(s0, $S(\"Ball\")))); /* 1 */\nshow($I(mem(s0, $S(\"oon\")))); /* 1 */\nshow($I(mem(s0, $S(\"Balloons\")))); /* 1 */\nshow($I(mem(s0, $S(\"l\")))); /* 1 */\n\nrem(s0, $S(\"oons\"));\n\nshow($I(eq(s0, $S(\"Ball\")))); /* 1 */\n\nresize(s0, 0);\n\nshow($I(len(s0))); /* 0 */\nshow($I(eq(s0, $S(\"\")))); /* 1 */\n" .no_dead_strip _String_Examples .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function String_Examples _String_Examples: ; @String_Examples .cfi_startproc ; %bb.0: Lloh0: adrp x0, _String_Examples.examples@PAGE Lloh1: add x0, x0, _String_Examples.examples@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @String_Examples.examples _String_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 s0 = $(String, \"Hello\");\nvar s1 = new(String, $S(\"Hello\"));\nappend(s1, $S(\" There\"));\nshow(s0); /* Hello */\nshow(s1); /* Hello There */\n" l_.str.2: ; @.str.2 .asciz "Manipulation" l_.str.3: ; @.str.3 .asciz "var s0 = new(String, $S(\"Balloons\"));\n\nshow($I(len(s0))); /* 8 */\nshow($I(mem(s0, $S(\"Ball\")))); /* 1 */\nshow($I(mem(s0, $S(\"oon\")))); /* 1 */\nshow($I(mem(s0, $S(\"Balloons\")))); /* 1 */\nshow($I(mem(s0, $S(\"l\")))); /* 1 */\n\nrem(s0, $S(\"oons\"));\n\nshow($I(eq(s0, $S(\"Ball\")))); /* 1 */\n\nresize(s0, 0);\n\nshow($I(len(s0))); /* 0 */\nshow($I(eq(s0, $S(\"\")))); /* 1 */\n" .no_dead_strip _String_Examples .subsections_via_symbols
AnghaBench/Cello/src/extr_String.c_String_Examples.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function String_Format_From _String_Format_From: ## @String_Format_From .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movslq %esi, %rax addq (%rdi), %rax movq %rax, %rdi movq %rdx, %rsi movl %ecx, %edx popq %rbp jmp _vsscanf ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _String_Format_From .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function String_Format_From _String_Format_From: ; @String_Format_From .cfi_startproc ; %bb.0: ldr x8, [x0] add x0, x8, w1, sxtw mov x1, x2 mov x2, x3 b _vsscanf .cfi_endproc ; -- End function .no_dead_strip _String_Format_From .subsections_via_symbols
AnghaBench/Cello/src/extr_String.c_String_Format_From.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function String_Hash _String_Hash: ## @String_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 %rbx pushq %rax .cfi_offset %rbx, -24 movl (%rdi), %ebx movl %ebx, %edi callq _strlen movl %ebx, %edi movl %eax, %esi addq $8, %rsp popq %rbx popq %rbp jmp _hash_data ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _String_Hash .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function String_Hash _String_Hash: ; @String_Hash .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 ldr w19, [x0] mov x0, x19 bl _strlen 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 _hash_data .cfi_endproc ; -- End function .no_dead_strip _String_Hash .subsections_via_symbols
AnghaBench/Cello/src/extr_String.c_String_Hash.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function String_Len _String_Len: ## @String_Len .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl (%rdi), %edi popq %rbp jmp _strlen ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _String_Len .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function String_Len _String_Len: ; @String_Len .cfi_startproc ; %bb.0: ldr w0, [x0] b _strlen .cfi_endproc ; -- End function .no_dead_strip _String_Len .subsections_via_symbols
AnghaBench/Cello/src/extr_String.c_String_Len.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function String_Name _String_Name: ## @String_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 "String" .no_dead_strip _String_Name .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function String_Name _String_Name: ; @String_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 "String" .no_dead_strip _String_Name .subsections_via_symbols
AnghaBench/Cello/src/extr_String.c_String_Name.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Table_Brief _Table_Brief: ## @Table_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 "Hash table" .no_dead_strip _Table_Brief .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Table_Brief _Table_Brief: ; @Table_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 "Hash table" .no_dead_strip _Table_Brief .subsections_via_symbols
AnghaBench/Cello/src/extr_Table.c_Table_Brief.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Table_Description _Table_Description: ## @Table_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 `Table` type is a hash table data structure that maps keys to values. It uses an open-addressing robin-hood hashing scheme which requires `Hash` and `Cmp` to be defined on the key type. Keys and values are copied into the collection using the `Assign` class and intially have zero'd memory.\n\nHash tables provide `O(1)` lookup, insertion and removal can but require long pauses when the table must be _rehashed_ and all entries processed.\n\nThis is largely equivalent to the C++ construct [std::unordered_map](http://www.cplusplus.com/reference/unordered_map/unordered_map/)" .no_dead_strip _Table_Description .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Table_Description _Table_Description: ; @Table_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 `Table` type is a hash table data structure that maps keys to values. It uses an open-addressing robin-hood hashing scheme which requires `Hash` and `Cmp` to be defined on the key type. Keys and values are copied into the collection using the `Assign` class and intially have zero'd memory.\n\nHash tables provide `O(1)` lookup, insertion and removal can but require long pauses when the table must be _rehashed_ and all entries processed.\n\nThis is largely equivalent to the C++ construct [std::unordered_map](http://www.cplusplus.com/reference/unordered_map/unordered_map/)" .no_dead_strip _Table_Description .subsections_via_symbols
AnghaBench/Cello/src/extr_Table.c_Table_Description.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Table_Examples _Table_Examples: ## @Table_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 _Table_Examples.examples(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 4 ## @Table_Examples.examples _Table_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 prices = new(Table, String, Int);\nset(prices, $S(\"Apple\"), $I(12));\nset(prices, $S(\"Banana\"), $I( 6));\nset(prices, $S(\"Pear\"), $I(55));\n\nforeach (key in prices) {\n var price = get(prices, key);\n println(\"Price of %$ is %$\", key, price);\n}\n" L_.str.2: ## @.str.2 .asciz "Manipulation" L_.str.3: ## @.str.3 .asciz "var t = new(Table, String, Int);\nset(t, $S(\"Hello\"), $I(2));\nset(t, $S(\"There\"), $I(5));\n\nshow($I(len(t))); /* 2 */\nshow($I(mem(t, $S(\"Hello\")))); /* 1 */\n\nrem(t, $S(\"Hello\"));\n\nshow($I(len(t))); /* 1 */\nshow($I(mem(t, $S(\"Hello\")))); /* 0 */\nshow($I(mem(t, $S(\"There\")))); /* 1 */\n\nresize(t, 0);\n\nshow($I(len(t))); /* 0 */\nshow($I(mem(t, $S(\"Hello\")))); /* 0 */\nshow($I(mem(t, $S(\"There\")))); /* 0 */\n" .no_dead_strip _Table_Examples .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Table_Examples _Table_Examples: ; @Table_Examples .cfi_startproc ; %bb.0: Lloh0: adrp x0, _Table_Examples.examples@PAGE Lloh1: add x0, x0, _Table_Examples.examples@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @Table_Examples.examples _Table_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 prices = new(Table, String, Int);\nset(prices, $S(\"Apple\"), $I(12));\nset(prices, $S(\"Banana\"), $I( 6));\nset(prices, $S(\"Pear\"), $I(55));\n\nforeach (key in prices) {\n var price = get(prices, key);\n println(\"Price of %$ is %$\", key, price);\n}\n" l_.str.2: ; @.str.2 .asciz "Manipulation" l_.str.3: ; @.str.3 .asciz "var t = new(Table, String, Int);\nset(t, $S(\"Hello\"), $I(2));\nset(t, $S(\"There\"), $I(5));\n\nshow($I(len(t))); /* 2 */\nshow($I(mem(t, $S(\"Hello\")))); /* 1 */\n\nrem(t, $S(\"Hello\"));\n\nshow($I(len(t))); /* 1 */\nshow($I(mem(t, $S(\"Hello\")))); /* 0 */\nshow($I(mem(t, $S(\"There\")))); /* 1 */\n\nresize(t, 0);\n\nshow($I(len(t))); /* 0 */\nshow($I(mem(t, $S(\"Hello\")))); /* 0 */\nshow($I(mem(t, $S(\"There\")))); /* 0 */\n" .no_dead_strip _Table_Examples .subsections_via_symbols
AnghaBench/Cello/src/extr_Table.c_Table_Examples.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__literal16,16byte_literals .p2align 4 ## -- Begin function Table_Ideal_Size LCPI0_0: .long 1127219200 ## 0x43300000 .long 1160773632 ## 0x45300000 .long 0 ## 0x0 .long 0 ## 0x0 LCPI0_1: .quad 0x4330000000000000 ## double 4503599627370496 .quad 0x4530000000000000 ## double 1.9342813113834067E+25 .section __TEXT,__literal8,8byte_literals .p2align 3 LCPI0_2: .quad 0x43e0000000000000 ## double 9.2233720368547758E+18 .section __TEXT,__text,regular,pure_instructions .p2align 4, 0x90 _Table_Ideal_Size: ## @Table_Ideal_Size .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp incq %rdi movq %rdi, %xmm0 punpckldq LCPI0_0(%rip), %xmm0 ## xmm0 = xmm0[0],mem[0],xmm0[1],mem[1] subpd LCPI0_1(%rip), %xmm0 movapd %xmm0, %xmm1 unpckhpd %xmm0, %xmm1 ## xmm1 = xmm1[1],xmm0[1] addsd %xmm0, %xmm1 movq _Table_Load_Factor@GOTPCREL(%rip), %rax divsd (%rax), %xmm1 cvttsd2si %xmm1, %rax movq %rax, %rdx subsd LCPI0_2(%rip), %xmm1 cvttsd2si %xmm1, %rcx sarq $63, %rdx andq %rdx, %rcx orq %rax, %rcx movq _TABLE_PRIMES_COUNT@GOTPCREL(%rip), %rax movq (%rax), %rdx movq _Table_Primes@GOTPCREL(%rip), %rax movq (%rax), %rsi testq %rdx, %rdx je LBB0_4 ## %bb.1: xorl %edi, %edi .p2align 4, 0x90 LBB0_3: ## =>This Inner Loop Header: Depth=1 movq (%rsi,%rdi,8), %rax cmpq %rcx, %rax jae LBB0_6 ## %bb.2: ## in Loop: Header=BB0_3 Depth=1 incq %rdi cmpq %rdi, %rdx jne LBB0_3 LBB0_4: movq -8(%rsi,%rdx,8), %rdx movq %rdx, %rax negq %rax .p2align 4, 0x90 LBB0_5: ## =>This Inner Loop Header: Depth=1 addq %rdx, %rax cmpq %rcx, %rax jb LBB0_5 LBB0_6: popq %rbp retq .cfi_endproc ## -- End function .comm _Table_Load_Factor,8,3 ## @Table_Load_Factor .comm _TABLE_PRIMES_COUNT,8,3 ## @TABLE_PRIMES_COUNT .comm _Table_Primes,8,3 ## @Table_Primes .no_dead_strip _Table_Ideal_Size .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Table_Ideal_Size _Table_Ideal_Size: ; @Table_Ideal_Size .cfi_startproc ; %bb.0: add x8, x0, #1 ucvtf d0, x8 Lloh0: adrp x8, _Table_Load_Factor@GOTPAGE Lloh1: ldr x8, [x8, _Table_Load_Factor@GOTPAGEOFF] Lloh2: ldr d1, [x8] fdiv d0, d0, d1 fcvtzu x8, d0 Lloh3: adrp x9, _TABLE_PRIMES_COUNT@GOTPAGE Lloh4: ldr x9, [x9, _TABLE_PRIMES_COUNT@GOTPAGEOFF] Lloh5: ldr x9, [x9] Lloh6: adrp x10, _Table_Primes@GOTPAGE Lloh7: ldr x10, [x10, _Table_Primes@GOTPAGEOFF] Lloh8: ldr x10, [x10] cbz x9, LBB0_4 ; %bb.1: mov x11, x10 mov x12, x9 LBB0_2: ; =>This Inner Loop Header: Depth=1 ldr x0, [x11] cmp x0, x8 b.hs LBB0_6 ; %bb.3: ; in Loop: Header=BB0_2 Depth=1 add x11, x11, #8 subs x12, x12, #1 b.ne LBB0_2 LBB0_4: add x9, x10, x9, lsl #3 ldur x9, [x9, #-8] neg x0, x9 LBB0_5: ; =>This Inner Loop Header: Depth=1 add x0, x0, x9 cmp x0, x8 b.lo LBB0_5 LBB0_6: ret .loh AdrpLdrGotLdr Lloh6, Lloh7, Lloh8 .loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5 .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .cfi_endproc ; -- End function .comm _Table_Load_Factor,8,3 ; @Table_Load_Factor .comm _TABLE_PRIMES_COUNT,8,3 ; @TABLE_PRIMES_COUNT .comm _Table_Primes,8,3 ; @Table_Primes .no_dead_strip _Table_Ideal_Size .subsections_via_symbols
AnghaBench/Cello/src/extr_Table.c_Table_Ideal_Size.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Table_Iter_Type _Table_Iter_Type: ## @Table_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 _Table_Iter_Type .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Table_Iter_Type _Table_Iter_Type: ; @Table_Iter_Type .cfi_startproc ; %bb.0: ldr x0, [x0] ret .cfi_endproc ; -- End function .no_dead_strip _Table_Iter_Type .subsections_via_symbols
AnghaBench/Cello/src/extr_Table.c_Table_Iter_Type.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Table_Key _Table_Key: ## @Table_Key .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, %ebx movq (%rdi), %r14 callq _Table_Step imull %ebx, %eax cltq addq %r14, %rax addq $8, %rax popq %rbx popq %r14 popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _Table_Key .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Table_Key _Table_Key: ; @Table_Key .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 ldr x20, [x0] bl _Table_Step mul w8, w0, w19 add x8, x20, w8, sxtw add x0, x8, #8 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 _Table_Key .subsections_via_symbols
AnghaBench/Cello/src/extr_Table.c_Table_Key.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Table_Key_Hash _Table_Key_Hash: ## @Table_Key_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 %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 movl %esi, %ebx movq (%rdi), %r14 callq _Table_Step imull %ebx, %eax cltq movl (%r14,%rax), %eax popq %rbx popq %r14 popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _Table_Key_Hash .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Table_Key_Hash _Table_Key_Hash: ; @Table_Key_Hash .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 ldr x20, [x0] bl _Table_Step mul w8, w0, w19 ldr w0, [x20, w8, sxtw] 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 _Table_Key_Hash .subsections_via_symbols
AnghaBench/Cello/src/extr_Table.c_Table_Key_Hash.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Table_Key_Type _Table_Key_Type: ## @Table_Key_Type .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq (%rdi), %rax popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _Table_Key_Type .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Table_Key_Type _Table_Key_Type: ; @Table_Key_Type .cfi_startproc ; %bb.0: ldr x0, [x0] ret .cfi_endproc ; -- End function .no_dead_strip _Table_Key_Type .subsections_via_symbols
AnghaBench/Cello/src/extr_Table.c_Table_Key_Type.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Table_Len _Table_Len: ## @Table_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 _Table_Len .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Table_Len _Table_Len: ; @Table_Len .cfi_startproc ; %bb.0: ldr x0, [x0] ret .cfi_endproc ; -- End function .no_dead_strip _Table_Len .subsections_via_symbols
AnghaBench/Cello/src/extr_Table.c_Table_Len.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Table_Name _Table_Name: ## @Table_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 "Table" .no_dead_strip _Table_Name .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Table_Name _Table_Name: ; @Table_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 "Table" .no_dead_strip _Table_Name .subsections_via_symbols
AnghaBench/Cello/src/extr_Table.c_Table_Name.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Table_Probe _Table_Probe: ## @Table_Probe .cfi_startproc ## %bb.0: movl %esi, %eax subl %edx, %eax incl %eax js LBB0_1 ## %bb.2: ## kill: def $eax killed $eax killed $rax retq LBB0_1: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp addq (%rdi), %rax popq %rbp ## kill: def $eax killed $eax killed $rax retq .cfi_endproc ## -- End function .no_dead_strip _Table_Probe .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Table_Probe _Table_Probe: ; @Table_Probe .cfi_startproc ; %bb.0: mov x8, x0 sub w9, w1, w2 adds w0, w9, #1 b.mi LBB0_2 ; %bb.1: ; kill: def $w0 killed $w0 killed $x0 ret LBB0_2: ldr x8, [x8] add x0, x8, x0 ; kill: def $w0 killed $w0 killed $x0 ret .cfi_endproc ; -- End function .no_dead_strip _Table_Probe .subsections_via_symbols
AnghaBench/Cello/src/extr_Table.c_Table_Probe.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Table_Resize_Less _Table_Resize_Less: ## @Table_Resize_Less .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %rbx pushq %rax .cfi_offset %rbx, -24 movq %rdi, %rbx movl 8(%rdi), %edi callq _Table_Ideal_Size cmpq (%rbx), %rax jae LBB0_1 ## %bb.2: movq %rbx, %rdi movq %rax, %rsi addq $8, %rsp popq %rbx popq %rbp jmp _Table_Rehash ## TAILCALL LBB0_1: addq $8, %rsp popq %rbx popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _Table_Resize_Less .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Table_Resize_Less _Table_Resize_Less: ; @Table_Resize_Less .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x0 ldr w0, [x0, #8] bl _Table_Ideal_Size ldr x8, [x19] cmp x0, x8 b.hs LBB0_2 ; %bb.1: mov x1, x0 mov x0, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _Table_Rehash LBB0_2: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .no_dead_strip _Table_Resize_Less .subsections_via_symbols
AnghaBench/Cello/src/extr_Table.c_Table_Resize_Less.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Table_Resize_More _Table_Resize_More: ## @Table_Resize_More .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %rbx pushq %rax .cfi_offset %rbx, -24 movq %rdi, %rbx movl 8(%rdi), %edi callq _Table_Ideal_Size cmpq (%rbx), %rax jbe LBB0_1 ## %bb.2: movq %rbx, %rdi movq %rax, %rsi addq $8, %rsp popq %rbx popq %rbp jmp _Table_Rehash ## TAILCALL LBB0_1: addq $8, %rsp popq %rbx popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _Table_Resize_More .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Table_Resize_More _Table_Resize_More: ; @Table_Resize_More .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x19, x0 ldr w0, [x0, #8] bl _Table_Ideal_Size ldr x8, [x19] cmp x0, x8 b.ls LBB0_2 ; %bb.1: mov x1, x0 mov x0, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _Table_Rehash LBB0_2: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .no_dead_strip _Table_Resize_More .subsections_via_symbols
AnghaBench/Cello/src/extr_Table.c_Table_Resize_More.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Table_Set _Table_Set: ## @Table_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 %rbx pushq %rax .cfi_offset %rbx, -24 movl %edi, %ebx xorl %ecx, %ecx callq _Table_Set_Move movl %ebx, %edi addq $8, %rsp popq %rbx popq %rbp jmp _Table_Resize_More ## TAILCALL .cfi_endproc ## -- End function .no_dead_strip _Table_Set .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Table_Set _Table_Set: ; @Table_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, x0 mov w3, #0 bl _Table_Set_Move mov x0, x19 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _Table_Resize_More .cfi_endproc ; -- End function .no_dead_strip _Table_Set .subsections_via_symbols
AnghaBench/Cello/src/extr_Table.c_Table_Set.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Table_Size_Round _Table_Size_Round: ## @Table_Size_Round .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq 3(%rdi), %rax andq $-4, %rax popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _Table_Size_Round .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Table_Size_Round _Table_Size_Round: ; @Table_Size_Round .cfi_startproc ; %bb.0: add x8, x0, #3 and x0, x8, #0xfffffffffffffffc ret .cfi_endproc ; -- End function .no_dead_strip _Table_Size_Round .subsections_via_symbols
AnghaBench/Cello/src/extr_Table.c_Table_Size_Round.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Table_Step _Table_Step: ## @Table_Step .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 movq 8(%rdi), %rcx addq %rcx, %rax addq $12, %rax popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _Table_Step .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Table_Step _Table_Step: ; @Table_Step .cfi_startproc ; %bb.0: ldp x8, x9, [x0] add x8, x8, x9 add x0, x8, #12 ret .cfi_endproc ; -- End function .no_dead_strip _Table_Step .subsections_via_symbols
AnghaBench/Cello/src/extr_Table.c_Table_Step.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Table_Swapspace_Hash _Table_Swapspace_Hash: ## @Table_Swapspace_Hash .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl (%rsi), %eax popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _Table_Swapspace_Hash .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Table_Swapspace_Hash _Table_Swapspace_Hash: ; @Table_Swapspace_Hash .cfi_startproc ; %bb.0: ldr w0, [x1] ret .cfi_endproc ; -- End function .no_dead_strip _Table_Swapspace_Hash .subsections_via_symbols
AnghaBench/Cello/src/extr_Table.c_Table_Swapspace_Hash.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Table_Swapspace_Key _Table_Swapspace_Key: ## @Table_Swapspace_Key .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq 8(%rsi), %rax popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _Table_Swapspace_Key .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Table_Swapspace_Key _Table_Swapspace_Key: ; @Table_Swapspace_Key .cfi_startproc ; %bb.0: add x0, x1, #8 ret .cfi_endproc ; -- End function .no_dead_strip _Table_Swapspace_Key .subsections_via_symbols
AnghaBench/Cello/src/extr_Table.c_Table_Swapspace_Key.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Table_Swapspace_Val _Table_Swapspace_Val: ## @Table_Swapspace_Val .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movslq (%rdi), %rax addq %rsi, %rax addq $12, %rax popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _Table_Swapspace_Val .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Table_Swapspace_Val _Table_Swapspace_Val: ; @Table_Swapspace_Val .cfi_startproc ; %bb.0: ldrsw x8, [x0] add x8, x1, x8 add x0, x8, #12 ret .cfi_endproc ; -- End function .no_dead_strip _Table_Swapspace_Val .subsections_via_symbols
AnghaBench/Cello/src/extr_Table.c_Table_Swapspace_Val.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Table_Val _Table_Val: ## @Table_Val .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, %r14d movq %rdi, %rbx movq 8(%rdi), %r15 callq _Table_Step imull %r14d, %eax cltq addq %r15, %rax movslq (%rbx), %rcx addq %rcx, %rax addq $12, %rax addq $8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _Table_Val .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Table_Val _Table_Val: ; @Table_Val .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 ldr x21, [x0, #8] bl _Table_Step mul w8, w0, w19 add x8, x21, w8, sxtw ldrsw x9, [x20] add x8, x8, x9 add x0, x8, #12 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 _Table_Val .subsections_via_symbols
AnghaBench/Cello/src/extr_Table.c_Table_Val.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Table_Val_Type _Table_Val_Type: ## @Table_Val_Type .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq (%rdi), %rax popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _Table_Val_Type .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Table_Val_Type _Table_Val_Type: ; @Table_Val_Type .cfi_startproc ; %bb.0: ldr x0, [x0] ret .cfi_endproc ; -- End function .no_dead_strip _Table_Val_Type .subsections_via_symbols
AnghaBench/Cello/src/extr_Table.c_Table_Val_Type.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Current_Brief _Current_Brief: ## @Current_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 "Implicit Object" .no_dead_strip _Current_Brief .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Current_Brief _Current_Brief: ; @Current_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 "Implicit Object" .no_dead_strip _Current_Brief .subsections_via_symbols
AnghaBench/Cello/src/extr_Thread.c_Current_Brief.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Current_Definition _Current_Definition: ## @Current_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 Current {\n var (*current)(void);\n};\n" .no_dead_strip _Current_Definition .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Current_Definition _Current_Definition: ; @Current_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 Current {\n var (*current)(void);\n};\n" .no_dead_strip _Current_Definition .subsections_via_symbols
AnghaBench/Cello/src/extr_Thread.c_Current_Definition.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Current_Description _Current_Description: ## @Current_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 `Current` class can be implemented by types which have implicit instances associated with them. For example it can be used to retrieve the _current_ `Thread`, or it could be used to get the _current_ Garbage Collector.\n\nThis class may be implemented by types which express the [Singleton Design Pattern](http://en.wikipedia.org/wiki/Singleton_pattern)" .no_dead_strip _Current_Description .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Current_Description _Current_Description: ; @Current_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 `Current` class can be implemented by types which have implicit instances associated with them. For example it can be used to retrieve the _current_ `Thread`, or it could be used to get the _current_ Garbage Collector.\n\nThis class may be implemented by types which express the [Singleton Design Pattern](http://en.wikipedia.org/wiki/Singleton_pattern)" .no_dead_strip _Current_Description .subsections_via_symbols
AnghaBench/Cello/src/extr_Thread.c_Current_Description.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Current_Examples _Current_Examples: ## @Current_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 _Current_Examples.examples(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 4 ## @Current_Examples.examples _Current_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 gc = current(GC);\nshow(gc);\nvar thread = current(Thread);\nshow(thread);\n" .no_dead_strip _Current_Examples .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Current_Examples _Current_Examples: ; @Current_Examples .cfi_startproc ; %bb.0: Lloh0: adrp x0, _Current_Examples.examples@PAGE Lloh1: add x0, x0, _Current_Examples.examples@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @Current_Examples.examples _Current_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 gc = current(GC);\nshow(gc);\nvar thread = current(Thread);\nshow(thread);\n" .no_dead_strip _Current_Examples .subsections_via_symbols
AnghaBench/Cello/src/extr_Thread.c_Current_Examples.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Current_Methods _Current_Methods: ## @Current_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 _Current_Methods.methods(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 4 ## @Current_Methods.methods _Current_Methods.methods: .quad L_.str .quad L_.str.1 .quad L_.str.2 .space 24 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "current" L_.str.1: ## @.str.1 .asciz "var current(var type);" L_.str.2: ## @.str.2 .asciz "Returns the current active object of the given `type`." .no_dead_strip _Current_Methods .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Current_Methods _Current_Methods: ; @Current_Methods .cfi_startproc ; %bb.0: Lloh0: adrp x0, _Current_Methods.methods@PAGE Lloh1: add x0, x0, _Current_Methods.methods@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @Current_Methods.methods _Current_Methods.methods: .quad l_.str .quad l_.str.1 .quad l_.str.2 .space 24 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "current" l_.str.1: ; @.str.1 .asciz "var current(var type);" l_.str.2: ; @.str.2 .asciz "Returns the current active object of the given `type`." .no_dead_strip _Current_Methods .subsections_via_symbols
AnghaBench/Cello/src/extr_Thread.c_Current_Methods.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Current_Name _Current_Name: ## @Current_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 "Current" .no_dead_strip _Current_Name .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Current_Name _Current_Name: ; @Current_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 "Current" .no_dead_strip _Current_Name .subsections_via_symbols
AnghaBench/Cello/src/extr_Thread.c_Current_Name.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Lock_Brief _Lock_Brief: ## @Lock_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 "Exclusive Resource" .no_dead_strip _Lock_Brief .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Lock_Brief _Lock_Brief: ; @Lock_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 "Exclusive Resource" .no_dead_strip _Lock_Brief .subsections_via_symbols
AnghaBench/Cello/src/extr_Thread.c_Lock_Brief.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Lock_Definition _Lock_Definition: ## @Lock_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 Lock {\n void (*lock)(var);\n void (*unlock)(var);\n bool (*trylock)(var);\n};\n" .no_dead_strip _Lock_Definition .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Lock_Definition _Lock_Definition: ; @Lock_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 Lock {\n void (*lock)(var);\n void (*unlock)(var);\n bool (*trylock)(var);\n};\n" .no_dead_strip _Lock_Definition .subsections_via_symbols
AnghaBench/Cello/src/extr_Thread.c_Lock_Definition.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Lock_Description _Lock_Description: ## @Lock_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 `Lock` class can be implemented by types to limit the access to them. For example this class is implemented by the `Mutex` type to provide mutual exclusion across Threads." .no_dead_strip _Lock_Description .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Lock_Description _Lock_Description: ; @Lock_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 `Lock` class can be implemented by types to limit the access to them. For example this class is implemented by the `Mutex` type to provide mutual exclusion across Threads." .no_dead_strip _Lock_Description .subsections_via_symbols
AnghaBench/Cello/src/extr_Thread.c_Lock_Description.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Lock_Examples _Lock_Examples: ## @Lock_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 _Lock_Examples.examples(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 4 ## @Lock_Examples.examples _Lock_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(Mutex);\nlock(x); /* Lock Mutex */ \nprint(\"Inside Mutex!\\n\");\nunlock(x); /* Unlock Mutex */" .no_dead_strip _Lock_Examples .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Lock_Examples _Lock_Examples: ; @Lock_Examples .cfi_startproc ; %bb.0: Lloh0: adrp x0, _Lock_Examples.examples@PAGE Lloh1: add x0, x0, _Lock_Examples.examples@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @Lock_Examples.examples _Lock_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(Mutex);\nlock(x); /* Lock Mutex */ \nprint(\"Inside Mutex!\\n\");\nunlock(x); /* Unlock Mutex */" .no_dead_strip _Lock_Examples .subsections_via_symbols
AnghaBench/Cello/src/extr_Thread.c_Lock_Examples.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Lock_Methods _Lock_Methods: ## @Lock_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 _Lock_Methods.methods(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 4 ## @Lock_Methods.methods _Lock_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 .space 24 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "lock" L_.str.1: ## @.str.1 .asciz "void lock(var self);" L_.str.2: ## @.str.2 .asciz "Wait until a lock can be aquired on object `self`." L_.str.3: ## @.str.3 .asciz "trylock" L_.str.4: ## @.str.4 .asciz "bool trylock(var self);" L_.str.5: ## @.str.5 .asciz "Try to acquire a lock on object `self`. Returns `true` on success and `false` if the resource is busy." L_.str.6: ## @.str.6 .asciz "unlock" L_.str.7: ## @.str.7 .asciz "void unlock(var self);" L_.str.8: ## @.str.8 .asciz "Release lock on object `self`." .no_dead_strip _Lock_Methods .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Lock_Methods _Lock_Methods: ; @Lock_Methods .cfi_startproc ; %bb.0: Lloh0: adrp x0, _Lock_Methods.methods@PAGE Lloh1: add x0, x0, _Lock_Methods.methods@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @Lock_Methods.methods _Lock_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 .space 24 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "lock" l_.str.1: ; @.str.1 .asciz "void lock(var self);" l_.str.2: ; @.str.2 .asciz "Wait until a lock can be aquired on object `self`." l_.str.3: ; @.str.3 .asciz "trylock" l_.str.4: ; @.str.4 .asciz "bool trylock(var self);" l_.str.5: ; @.str.5 .asciz "Try to acquire a lock on object `self`. Returns `true` on success and `false` if the resource is busy." l_.str.6: ; @.str.6 .asciz "unlock" l_.str.7: ; @.str.7 .asciz "void unlock(var self);" l_.str.8: ; @.str.8 .asciz "Release lock on object `self`." .no_dead_strip _Lock_Methods .subsections_via_symbols
AnghaBench/Cello/src/extr_Thread.c_Lock_Methods.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Lock_Name _Lock_Name: ## @Lock_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 "Lock" .no_dead_strip _Lock_Name .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Lock_Name _Lock_Name: ; @Lock_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 "Lock" .no_dead_strip _Lock_Name .subsections_via_symbols
AnghaBench/Cello/src/extr_Thread.c_Lock_Name.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Mutex_Brief _Mutex_Brief: ## @Mutex_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 "Mutual Exclusion Lock" .no_dead_strip _Mutex_Brief .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Mutex_Brief _Mutex_Brief: ; @Mutex_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 "Mutual Exclusion Lock" .no_dead_strip _Mutex_Brief .subsections_via_symbols
AnghaBench/Cello/src/extr_Thread.c_Mutex_Brief.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Mutex_Del _Mutex_Del: ## @Mutex_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 retq .cfi_endproc ## -- End function .no_dead_strip _Mutex_Del .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Mutex_Del _Mutex_Del: ; @Mutex_Del .cfi_startproc ; %bb.0: ret .cfi_endproc ; -- End function .no_dead_strip _Mutex_Del .subsections_via_symbols
AnghaBench/Cello/src/extr_Thread.c_Mutex_Del.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Mutex_Description _Mutex_Description: ## @Mutex_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 `Mutex` type can be used to gain mutual exclusion across Threads for access to some resource." .no_dead_strip _Mutex_Description .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Mutex_Description _Mutex_Description: ; @Mutex_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 `Mutex` type can be used to gain mutual exclusion across Threads for access to some resource." .no_dead_strip _Mutex_Description .subsections_via_symbols
AnghaBench/Cello/src/extr_Thread.c_Mutex_Description.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Mutex_Examples _Mutex_Examples: ## @Mutex_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 _Mutex_Examples.examples(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 4 ## @Mutex_Examples.examples _Mutex_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(Mutex);\nwith (mut in x) { /* Lock Mutex */ \n print(\"Inside Mutex!\\n\");\n} /* Unlock Mutex */" .no_dead_strip _Mutex_Examples .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Mutex_Examples _Mutex_Examples: ; @Mutex_Examples .cfi_startproc ; %bb.0: Lloh0: adrp x0, _Mutex_Examples.examples@PAGE Lloh1: add x0, x0, _Mutex_Examples.examples@PAGEOFF ret .loh AdrpAdd Lloh0, Lloh1 .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @Mutex_Examples.examples _Mutex_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(Mutex);\nwith (mut in x) { /* Lock Mutex */ \n print(\"Inside Mutex!\\n\");\n} /* Unlock Mutex */" .no_dead_strip _Mutex_Examples .subsections_via_symbols
AnghaBench/Cello/src/extr_Thread.c_Mutex_Examples.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Mutex_Name _Mutex_Name: ## @Mutex_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 "Mutex" .no_dead_strip _Mutex_Name .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Mutex_Name _Mutex_Name: ; @Mutex_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 "Mutex" .no_dead_strip _Mutex_Name .subsections_via_symbols
AnghaBench/Cello/src/extr_Thread.c_Mutex_Name.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Mutex_New _Mutex_New: ## @Mutex_New .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp popq %rbp retq .cfi_endproc ## -- End function .no_dead_strip _Mutex_New .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Mutex_New _Mutex_New: ; @Mutex_New .cfi_startproc ; %bb.0: ret .cfi_endproc ; -- End function .no_dead_strip _Mutex_New .subsections_via_symbols
AnghaBench/Cello/src/extr_Thread.c_Mutex_New.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Thread_Assign _Thread_Assign: ## @Thread_Assign .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %r14 pushq %rbx .cfi_offset %rbx, -32 .cfi_offset %r14, -24 movq %rsi, %rax movq %rdi, %rbx movq _Thread@GOTPCREL(%rip), %rcx movl (%rcx), %esi movq %rax, %rdi callq _cast movq %rax, %r14 movl 8(%rax), %eax movl %eax, 8(%rbx) movq (%rbx), %rdi testq %rdi, %rdi jne LBB0_2 ## %bb.1: movq _Table@GOTPCREL(%rip), %rax movl (%rax), %edi callq _alloc_raw movq %rax, %rdi LBB0_2: movq %rdi, (%rbx) movq (%r14), %rsi popq %rbx popq %r14 popq %rbp jmp _assign ## TAILCALL .cfi_endproc ## -- End function .comm _Thread,4,2 ## @Thread .comm _Table,4,2 ## @Table .no_dead_strip _Thread_Assign .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Thread_Assign _Thread_Assign: ; @Thread_Assign .cfi_startproc ; %bb.0: stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w19, -24 .cfi_offset w20, -32 mov x8, x1 mov x19, x0 Lloh0: adrp x9, _Thread@GOTPAGE Lloh1: ldr x9, [x9, _Thread@GOTPAGEOFF] Lloh2: ldr w1, [x9] mov x0, x8 bl _cast mov x20, x0 ldr w8, [x0, #8] str w8, [x19, #8] ldr x0, [x19] cbnz x0, LBB0_2 ; %bb.1: Lloh3: adrp x8, _Table@GOTPAGE Lloh4: ldr x8, [x8, _Table@GOTPAGEOFF] Lloh5: ldr w0, [x8] bl _alloc_raw LBB0_2: str x0, [x19] ldr x1, [x20] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x20, x19, [sp], #32 ; 16-byte Folded Reload b _assign .loh AdrpLdrGotLdr Lloh0, Lloh1, Lloh2 .loh AdrpLdrGotLdr Lloh3, Lloh4, Lloh5 .cfi_endproc ; -- End function .comm _Thread,4,2 ; @Thread .comm _Table,4,2 ; @Table .no_dead_strip _Thread_Assign .subsections_via_symbols
AnghaBench/Cello/src/extr_Thread.c_Thread_Assign.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Thread_Brief _Thread_Brief: ## @Thread_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 "Concurrent Execution" .no_dead_strip _Thread_Brief .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Thread_Brief _Thread_Brief: ; @Thread_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 "Concurrent Execution" .no_dead_strip _Thread_Brief .subsections_via_symbols
AnghaBench/Cello/src/extr_Thread.c_Thread_Brief.c
anghabench
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function Thread_Cmp _Thread_Cmp: ## @Thread_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 _Thread_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 _Thread_Cmp .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function Thread_Cmp _Thread_Cmp: ; @Thread_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 _Thread_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 _Thread_Cmp .subsections_via_symbols
AnghaBench/Cello/src/extr_Thread.c_Thread_Cmp.c
anghabench