x86
stringlengths
335
106k
risc
stringlengths
139
103k
source
stringclasses
1 value
.file "extr_buffer.c_buf_append.c" .intel_syntax noprefix .text .globl buf_append .type buf_append, @function buf_append: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 48 mov QWORD PTR -24[rbp], rdi mov QWORD PTR -32[rbp], rsi mov DWORD PTR -36[rbp], edx mov DWORD PTR -4[rbp], 0 jmp .L2 .L3: mov eax, DWORD PTR -4[rbp] movsx rdx, eax mov rax, QWORD PTR -32[rbp] add rax, rdx movzx eax, BYTE PTR [rax] movsx edx, al mov rax, QWORD PTR -24[rbp] mov esi, edx mov rdi, rax call buf_write@PLT add DWORD PTR -4[rbp], 1 .L2: mov eax, DWORD PTR -4[rbp] cmp eax, DWORD PTR -36[rbp] jl .L3 nop nop leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size buf_append, .-buf_append .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_buffer.c_buf_append.c" .option pic .text .align 1 .globl buf_append .type buf_append, @function buf_append: addi sp,sp,-64 sd ra,56(sp) sd s0,48(sp) addi s0,sp,64 sd a0,-40(s0) sd a1,-48(s0) mv a5,a2 sw a5,-52(s0) sw zero,-20(s0) j .L2 .L3: lw a5,-20(s0) ld a4,-48(s0) add a5,a4,a5 lbu a5,0(a5) mv a1,a5 ld a0,-40(s0) call buf_write@plt lw a5,-20(s0) addiw a5,a5,1 sw a5,-20(s0) .L2: lw a4,-20(s0) lw a5,-52(s0) sext.w a4,a4 sext.w a5,a5 blt a4,a5,.L3 nop nop ld ra,56(sp) ld s0,48(sp) addi sp,sp,64 jr ra .size buf_append, .-buf_append .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_buffer.c_buf_body.c" .intel_syntax noprefix .text .globl buf_body .type buf_body, @function buf_body: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 mov QWORD PTR -8[rbp], rdi mov rax, QWORD PTR -8[rbp] mov rax, QWORD PTR [rax] pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size buf_body, .-buf_body .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_buffer.c_buf_body.c" .option pic .text .align 1 .globl buf_body .type buf_body, @function buf_body: addi sp,sp,-32 sd s0,24(sp) addi s0,sp,32 sd a0,-24(s0) ld a5,-24(s0) ld a5,0(a5) mv a0,a5 ld s0,24(sp) addi sp,sp,32 jr ra .size buf_body, .-buf_body .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_buffer.c_buf_len.c" .intel_syntax noprefix .text .globl buf_len .type buf_len, @function buf_len: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 mov QWORD PTR -8[rbp], rdi mov rax, QWORD PTR -8[rbp] mov eax, DWORD PTR [rax] pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size buf_len, .-buf_len .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_buffer.c_buf_len.c" .option pic .text .align 1 .globl buf_len .type buf_len, @function buf_len: addi sp,sp,-32 sd s0,24(sp) addi s0,sp,32 sd a0,-24(s0) ld a5,-24(s0) lw a5,0(a5) mv a0,a5 ld s0,24(sp) addi sp,sp,32 jr ra .size buf_len, .-buf_len .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_buffer.c_buf_write.c" .intel_syntax noprefix .text .globl buf_write .type buf_write, @function buf_write: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 16 mov QWORD PTR -8[rbp], rdi mov eax, esi mov BYTE PTR -12[rbp], al mov rax, QWORD PTR -8[rbp] mov rdx, QWORD PTR [rax] mov rax, QWORD PTR -8[rbp] mov rax, QWORD PTR 8[rax] add rax, 1 cmp rdx, rax jne .L2 mov rax, QWORD PTR -8[rbp] mov rdi, rax call realloc_body@PLT .L2: mov rax, QWORD PTR -8[rbp] mov rsi, QWORD PTR 16[rax] mov rax, QWORD PTR -8[rbp] mov rax, QWORD PTR 8[rax] lea rcx, 1[rax] mov rdx, QWORD PTR -8[rbp] mov QWORD PTR 8[rdx], rcx lea rdx, [rsi+rax] movzx eax, BYTE PTR -12[rbp] mov BYTE PTR [rdx], al nop leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size buf_write, .-buf_write .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_buffer.c_buf_write.c" .option pic .text .align 1 .globl buf_write .type buf_write, @function buf_write: addi sp,sp,-32 sd ra,24(sp) sd s0,16(sp) addi s0,sp,32 sd a0,-24(s0) mv a5,a1 sb a5,-25(s0) ld a5,-24(s0) ld a4,0(a5) ld a5,-24(s0) ld a5,8(a5) addi a5,a5,1 bne a4,a5,.L2 ld a0,-24(s0) call realloc_body@plt .L2: ld a5,-24(s0) ld a4,16(a5) ld a5,-24(s0) ld a5,8(a5) addi a2,a5,1 ld a3,-24(s0) sd a2,8(a3) add a5,a4,a5 lbu a4,-25(s0) sb a4,0(a5) nop ld ra,24(sp) ld s0,16(sp) addi sp,sp,32 jr ra .size buf_write, .-buf_write .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_buffer.c_make_buffer.c" .intel_syntax noprefix .text .globl INIT_SIZE .bss .align 4 .type INIT_SIZE, @object .size INIT_SIZE, 4 INIT_SIZE: .zero 4 .text .globl make_buffer .type make_buffer, @function make_buffer: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 16 mov edi, 24 call malloc@PLT mov QWORD PTR -8[rbp], rax mov eax, DWORD PTR INIT_SIZE[rip] mov edi, eax call malloc@PLT mov rdx, QWORD PTR -8[rbp] mov QWORD PTR 16[rdx], rax mov edx, DWORD PTR INIT_SIZE[rip] mov rax, QWORD PTR -8[rbp] mov DWORD PTR [rax], edx mov rax, QWORD PTR -8[rbp] mov QWORD PTR 8[rax], 0 mov rax, QWORD PTR -8[rbp] leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size make_buffer, .-make_buffer .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_buffer.c_make_buffer.c" .option pic .text .comm INIT_SIZE,4,4 .align 1 .globl make_buffer .type make_buffer, @function make_buffer: addi sp,sp,-32 sd ra,24(sp) sd s0,16(sp) addi s0,sp,32 li a0,24 call malloc@plt sd a0,-24(s0) la a5,INIT_SIZE lw a5,0(a5) mv a0,a5 call malloc@plt mv a4,a0 ld a5,-24(s0) sd a4,16(a5) la a5,INIT_SIZE lw a4,0(a5) ld a5,-24(s0) sw a4,0(a5) ld a5,-24(s0) sd zero,8(a5) ld a5,-24(s0) mv a0,a5 ld ra,24(sp) ld s0,16(sp) addi sp,sp,32 jr ra .size make_buffer, .-make_buffer .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_buffer.c_print.c" .intel_syntax noprefix .text .section .rodata .LC0: .string "%s" .LC1: .string "%c" .LC2: .string "\\x%02x" .text .type print, @function print: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 32 mov QWORD PTR -24[rbp], rdi mov eax, esi mov BYTE PTR -28[rbp], al movsx eax, BYTE PTR -28[rbp] mov edi, eax call quote@PLT mov QWORD PTR -8[rbp], rax cmp QWORD PTR -8[rbp], 0 je .L2 mov rdx, QWORD PTR -8[rbp] mov rax, QWORD PTR -24[rbp] lea rsi, .LC0[rip] mov rdi, rax mov eax, 0 call buf_printf@PLT jmp .L5 .L2: movsx eax, BYTE PTR -28[rbp] mov edi, eax call isprint@PLT test rax, rax je .L4 movsx edx, BYTE PTR -28[rbp] mov rax, QWORD PTR -24[rbp] lea rsi, .LC1[rip] mov rdi, rax mov eax, 0 call buf_printf@PLT jmp .L5 .L4: movsx edx, BYTE PTR -28[rbp] mov rax, QWORD PTR -24[rbp] lea rsi, .LC2[rip] mov rdi, rax mov eax, 0 call buf_printf@PLT .L5: nop leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size print, .-print .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_buffer.c_print.c" .option pic .text .section .rodata .align 3 .LC0: .string "%s" .align 3 .LC1: .string "%c" .align 3 .LC2: .string "\\x%02x" .text .align 1 .type print, @function print: addi sp,sp,-48 sd ra,40(sp) sd s0,32(sp) addi s0,sp,48 sd a0,-40(s0) mv a5,a1 sb a5,-41(s0) lbu a5,-41(s0) mv a0,a5 call quote@plt sd a0,-24(s0) ld a5,-24(s0) beqz a5,.L2 ld a2,-24(s0) lla a1,.LC0 ld a0,-40(s0) call buf_printf@plt j .L5 .L2: lbu a5,-41(s0) mv a0,a5 call isprint@plt mv a5,a0 beqz a5,.L4 lbu a5,-41(s0) sext.w a5,a5 mv a2,a5 lla a1,.LC1 ld a0,-40(s0) call buf_printf@plt j .L5 .L4: lbu a5,-41(s0) sext.w a5,a5 mv a2,a5 lla a1,.LC2 ld a0,-40(s0) call buf_printf@plt .L5: nop ld ra,40(sp) ld s0,32(sp) addi sp,sp,48 jr ra .size print, .-print .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_buffer.c_quote.c" .intel_syntax noprefix .text .section .rodata .LC0: .string "\\\"" .LC1: .string "\\\\" .LC2: .string "\\b" .LC3: .string "\\f" .LC4: .string "\\n" .LC5: .string "\\r" .LC6: .string "\\t" .text .type quote, @function quote: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 mov eax, edi mov BYTE PTR -4[rbp], al movsx eax, BYTE PTR -4[rbp] cmp eax, 34 jg .L2 cmp eax, 8 jl .L3 sub eax, 8 cmp eax, 26 ja .L3 mov eax, eax lea rdx, 0[0+rax*4] lea rax, .L5[rip] mov eax, DWORD PTR [rdx+rax] cdqe lea rdx, .L5[rip] add rax, rdx notrack jmp rax .section .rodata .align 4 .align 4 .L5: .long .L10-.L5 .long .L9-.L5 .long .L8-.L5 .long .L3-.L5 .long .L7-.L5 .long .L6-.L5 .long .L3-.L5 .long .L3-.L5 .long .L3-.L5 .long .L3-.L5 .long .L3-.L5 .long .L3-.L5 .long .L3-.L5 .long .L3-.L5 .long .L3-.L5 .long .L3-.L5 .long .L3-.L5 .long .L3-.L5 .long .L3-.L5 .long .L3-.L5 .long .L3-.L5 .long .L3-.L5 .long .L3-.L5 .long .L3-.L5 .long .L3-.L5 .long .L3-.L5 .long .L4-.L5 .text .L2: cmp eax, 92 je .L11 jmp .L3 .L4: lea rax, .LC0[rip] jmp .L12 .L11: lea rax, .LC1[rip] jmp .L12 .L10: lea rax, .LC2[rip] jmp .L12 .L7: lea rax, .LC3[rip] jmp .L12 .L8: lea rax, .LC4[rip] jmp .L12 .L6: lea rax, .LC5[rip] jmp .L12 .L9: lea rax, .LC6[rip] jmp .L12 .L3: mov eax, 0 .L12: pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size quote, .-quote .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_buffer.c_quote.c" .option pic .text .section .rodata .align 3 .LC0: .string "\\\"" .align 3 .LC1: .string "\\\\" .align 3 .LC2: .string "\\b" .align 3 .LC3: .string "\\f" .align 3 .LC4: .string "\\n" .align 3 .LC5: .string "\\r" .align 3 .LC6: .string "\\t" .text .align 1 .type quote, @function quote: addi sp,sp,-32 sd s0,24(sp) addi s0,sp,32 mv a5,a0 sb a5,-17(s0) lbu a5,-17(s0) sext.w a5,a5 mv a3,a5 li a4,34 bgt a3,a4,.L2 mv a3,a5 li a4,8 blt a3,a4,.L3 addiw a3,a5,-8 sext.w a4,a3 li a5,26 bgtu a4,a5,.L3 slli a5,a3,32 srli a5,a5,32 slli a4,a5,2 lla a5,.L5 add a5,a4,a5 lw a5,0(a5) sext.w a4,a5 lla a5,.L5 add a5,a4,a5 jr a5 .section .rodata .align 2 .align 2 .L5: .word .L10-.L5 .word .L9-.L5 .word .L8-.L5 .word .L3-.L5 .word .L7-.L5 .word .L6-.L5 .word .L3-.L5 .word .L3-.L5 .word .L3-.L5 .word .L3-.L5 .word .L3-.L5 .word .L3-.L5 .word .L3-.L5 .word .L3-.L5 .word .L3-.L5 .word .L3-.L5 .word .L3-.L5 .word .L3-.L5 .word .L3-.L5 .word .L3-.L5 .word .L3-.L5 .word .L3-.L5 .word .L3-.L5 .word .L3-.L5 .word .L3-.L5 .word .L3-.L5 .word .L4-.L5 .text .L2: mv a4,a5 li a5,92 beq a4,a5,.L11 j .L3 .L4: lla a5,.LC0 j .L12 .L11: lla a5,.LC1 j .L12 .L10: lla a5,.LC2 j .L12 .L7: lla a5,.LC3 j .L12 .L8: lla a5,.LC4 j .L12 .L6: lla a5,.LC5 j .L12 .L9: lla a5,.LC6 j .L12 .L3: li a5,0 .L12: mv a0,a5 ld s0,24(sp) addi sp,sp,32 jr ra .size quote, .-quote .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_buffer.c_quote_char.c" .intel_syntax noprefix .text .section .rodata .LC0: .string "\\\\" .LC1: .string "\\'" .LC2: .string "%c" .text .globl quote_char .type quote_char, @function quote_char: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 16 mov eax, edi mov BYTE PTR -4[rbp], al cmp BYTE PTR -4[rbp], 92 jne .L2 lea rax, .LC0[rip] jmp .L3 .L2: cmp BYTE PTR -4[rbp], 39 jne .L4 lea rax, .LC1[rip] jmp .L3 .L4: movsx eax, BYTE PTR -4[rbp] mov esi, eax lea rdi, .LC2[rip] call format@PLT .L3: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size quote_char, .-quote_char .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_buffer.c_quote_char.c" .option pic .text .section .rodata .align 3 .LC0: .string "\\\\" .align 3 .LC1: .string "\\'" .align 3 .LC2: .string "%c" .text .align 1 .globl quote_char .type quote_char, @function quote_char: addi sp,sp,-32 sd ra,24(sp) sd s0,16(sp) addi s0,sp,32 mv a5,a0 sb a5,-17(s0) lbu a5,-17(s0) andi a4,a5,0xff li a5,92 bne a4,a5,.L2 lla a5,.LC0 j .L3 .L2: lbu a5,-17(s0) andi a4,a5,0xff li a5,39 bne a4,a5,.L4 lla a5,.LC1 j .L3 .L4: lbu a5,-17(s0) mv a1,a5 lla a0,.LC2 call format@plt mv a5,a0 .L3: mv a0,a5 ld ra,24(sp) ld s0,16(sp) addi sp,sp,32 jr ra .size quote_char, .-quote_char .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_buffer.c_quote_cstring.c" .intel_syntax noprefix .text .globl quote_cstring .type quote_cstring, @function quote_cstring: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 32 mov QWORD PTR -24[rbp], rdi mov eax, 0 call make_buffer@PLT mov QWORD PTR -8[rbp], rax jmp .L2 .L3: mov rax, QWORD PTR -24[rbp] lea rdx, 1[rax] mov QWORD PTR -24[rbp], rdx movzx eax, BYTE PTR [rax] movsx edx, al mov rax, QWORD PTR -8[rbp] mov esi, edx mov rdi, rax call print@PLT .L2: mov rax, QWORD PTR -24[rbp] movzx eax, BYTE PTR [rax] test al, al jne .L3 mov rax, QWORD PTR -8[rbp] mov rdi, rax call buf_body@PLT leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size quote_cstring, .-quote_cstring .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_buffer.c_quote_cstring.c" .option pic .text .align 1 .globl quote_cstring .type quote_cstring, @function quote_cstring: addi sp,sp,-48 sd ra,40(sp) sd s0,32(sp) addi s0,sp,48 sd a0,-40(s0) call make_buffer@plt sd a0,-24(s0) j .L2 .L3: ld a5,-40(s0) addi a4,a5,1 sd a4,-40(s0) lbu a5,0(a5) sext.w a5,a5 mv a1,a5 ld a0,-24(s0) call print@plt .L2: ld a5,-40(s0) lbu a5,0(a5) bnez a5,.L3 ld a0,-24(s0) call buf_body@plt mv a5,a0 mv a0,a5 ld ra,40(sp) ld s0,32(sp) addi sp,sp,48 jr ra .size quote_cstring, .-quote_cstring .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_buffer.c_quote_cstring_len.c" .intel_syntax noprefix .text .globl quote_cstring_len .type quote_cstring_len, @function quote_cstring_len: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 32 mov QWORD PTR -24[rbp], rdi mov DWORD PTR -28[rbp], esi mov eax, 0 call make_buffer@PLT mov QWORD PTR -8[rbp], rax mov DWORD PTR -12[rbp], 0 jmp .L2 .L3: mov eax, DWORD PTR -12[rbp] movsx rdx, eax mov rax, QWORD PTR -24[rbp] add rax, rdx movzx eax, BYTE PTR [rax] movsx edx, al mov rax, QWORD PTR -8[rbp] mov esi, edx mov rdi, rax call print@PLT add DWORD PTR -12[rbp], 1 .L2: mov eax, DWORD PTR -12[rbp] cmp eax, DWORD PTR -28[rbp] jl .L3 mov rax, QWORD PTR -8[rbp] mov rdi, rax call buf_body@PLT leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size quote_cstring_len, .-quote_cstring_len .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_buffer.c_quote_cstring_len.c" .option pic .text .align 1 .globl quote_cstring_len .type quote_cstring_len, @function quote_cstring_len: addi sp,sp,-48 sd ra,40(sp) sd s0,32(sp) addi s0,sp,48 sd a0,-40(s0) mv a5,a1 sw a5,-44(s0) call make_buffer@plt sd a0,-24(s0) sw zero,-28(s0) j .L2 .L3: lw a5,-28(s0) ld a4,-40(s0) add a5,a4,a5 lbu a5,0(a5) mv a1,a5 ld a0,-24(s0) call print@plt lw a5,-28(s0) addiw a5,a5,1 sw a5,-28(s0) .L2: lw a4,-28(s0) lw a5,-44(s0) sext.w a4,a4 sext.w a5,a5 blt a4,a5,.L3 ld a0,-24(s0) call buf_body@plt mv a5,a0 mv a0,a5 ld ra,40(sp) ld s0,32(sp) addi sp,sp,48 jr ra .size quote_cstring_len, .-quote_cstring_len .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_buffer.c_realloc_body.c" .intel_syntax noprefix .text .type realloc_body, @function realloc_body: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 32 mov QWORD PTR -24[rbp], rdi mov rax, QWORD PTR -24[rbp] mov eax, DWORD PTR [rax] add eax, eax mov DWORD PTR -12[rbp], eax mov eax, DWORD PTR -12[rbp] mov edi, eax call malloc@PLT mov QWORD PTR -8[rbp], rax mov rax, QWORD PTR -24[rbp] mov edx, DWORD PTR 16[rax] mov rax, QWORD PTR -24[rbp] mov rcx, QWORD PTR 8[rax] mov rax, QWORD PTR -8[rbp] mov rsi, rcx mov rdi, rax call memcpy@PLT mov rax, QWORD PTR -24[rbp] mov rdx, QWORD PTR -8[rbp] mov QWORD PTR 8[rax], rdx mov rax, QWORD PTR -24[rbp] mov edx, DWORD PTR -12[rbp] mov DWORD PTR [rax], edx nop leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size realloc_body, .-realloc_body .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_buffer.c_realloc_body.c" .option pic .text .align 1 .type realloc_body, @function realloc_body: addi sp,sp,-48 sd ra,40(sp) sd s0,32(sp) addi s0,sp,48 sd a0,-40(s0) ld a5,-40(s0) lw a5,0(a5) slliw a5,a5,1 sw a5,-28(s0) lw a5,-28(s0) mv a0,a5 call malloc@plt sd a0,-24(s0) ld a5,-40(s0) ld a4,8(a5) ld a5,-40(s0) lw a5,16(a5) mv a2,a5 mv a1,a4 ld a0,-24(s0) call memcpy@plt ld a5,-40(s0) ld a4,-24(s0) sd a4,8(a5) ld a5,-40(s0) lw a4,-28(s0) sw a4,0(a5) nop ld ra,40(sp) ld s0,32(sp) addi sp,sp,48 jr ra .size realloc_body, .-realloc_body .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_add_hide_set.c" .intel_syntax noprefix .text .type add_hide_set, @function add_hide_set: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 48 mov QWORD PTR -40[rbp], rdi mov QWORD PTR -48[rbp], rsi mov eax, 0 call make_vector@PLT mov QWORD PTR -16[rbp], rax mov DWORD PTR -20[rbp], 0 jmp .L2 .L3: mov edx, DWORD PTR -20[rbp] mov rax, QWORD PTR -40[rbp] mov esi, edx mov rdi, rax call vec_get@PLT mov edi, eax call copy_token@PLT mov QWORD PTR -8[rbp], rax mov rax, QWORD PTR -8[rbp] mov eax, DWORD PTR [rax] mov rdx, QWORD PTR -48[rbp] mov rsi, rdx mov edi, eax call set_union@PLT mov rdx, QWORD PTR -8[rbp] mov DWORD PTR [rdx], eax mov rdx, QWORD PTR -8[rbp] mov rax, QWORD PTR -16[rbp] mov rsi, rdx mov rdi, rax call vec_push@PLT add DWORD PTR -20[rbp], 1 .L2: mov rax, QWORD PTR -40[rbp] mov rdi, rax call vec_len@PLT cmp DWORD PTR -20[rbp], eax jl .L3 mov rax, QWORD PTR -16[rbp] leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size add_hide_set, .-add_hide_set .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_add_hide_set.c" .option pic .text .align 1 .type add_hide_set, @function add_hide_set: addi sp,sp,-64 sd ra,56(sp) sd s0,48(sp) addi s0,sp,64 sd a0,-56(s0) sd a1,-64(s0) call make_vector@plt sd a0,-32(s0) sw zero,-36(s0) j .L2 .L3: lw a5,-36(s0) mv a1,a5 ld a0,-56(s0) call vec_get@plt mv a5,a0 mv a0,a5 call copy_token@plt sd a0,-24(s0) ld a5,-24(s0) lw a5,0(a5) ld a1,-64(s0) mv a0,a5 call set_union@plt mv a5,a0 mv a4,a5 ld a5,-24(s0) sw a4,0(a5) ld a1,-24(s0) ld a0,-32(s0) call vec_push@plt lw a5,-36(s0) addiw a5,a5,1 sw a5,-36(s0) .L2: ld a0,-56(s0) call vec_len@plt mv a5,a0 mv a4,a5 lw a5,-36(s0) sext.w a5,a5 blt a5,a4,.L3 ld a5,-32(s0) mv a0,a5 ld ra,56(sp) ld s0,48(sp) addi sp,sp,64 jr ra .size add_hide_set, .-add_hide_set .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_add_include_path.c" .intel_syntax noprefix .text .globl std_include_path .bss .align 4 .type std_include_path, @object .size std_include_path, 4 std_include_path: .zero 4 .text .globl add_include_path .type add_include_path, @function add_include_path: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 16 mov QWORD PTR -8[rbp], rdi mov eax, DWORD PTR std_include_path[rip] mov rdx, QWORD PTR -8[rbp] mov rsi, rdx mov edi, eax call vec_push@PLT nop leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size add_include_path, .-add_include_path .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_add_include_path.c" .option pic .text .comm std_include_path,4,4 .align 1 .globl add_include_path .type add_include_path, @function add_include_path: addi sp,sp,-32 sd ra,24(sp) sd s0,16(sp) addi s0,sp,32 sd a0,-24(s0) la a5,std_include_path lw a5,0(a5) ld a1,-24(s0) mv a0,a5 call vec_push@plt nop ld ra,24(sp) ld s0,16(sp) addi sp,sp,32 jr ra .size add_include_path, .-add_include_path .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_copy_token.c" .intel_syntax noprefix .text .type copy_token, @function copy_token: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 32 mov QWORD PTR -24[rbp], rdi mov edi, 4 call malloc@PLT mov QWORD PTR -8[rbp], rax mov rax, QWORD PTR -24[rbp] mov edx, DWORD PTR [rax] mov rax, QWORD PTR -8[rbp] mov DWORD PTR [rax], edx mov rax, QWORD PTR -8[rbp] leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size copy_token, .-copy_token .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_copy_token.c" .option pic .text .align 1 .type copy_token, @function copy_token: addi sp,sp,-48 sd ra,40(sp) sd s0,32(sp) addi s0,sp,48 sd a0,-40(s0) li a0,4 call malloc@plt sd a0,-24(s0) ld a5,-40(s0) lw a4,0(a5) ld a5,-24(s0) sw a4,0(a5) ld a5,-24(s0) mv a0,a5 ld ra,40(sp) ld s0,32(sp) addi sp,sp,48 jr ra .size copy_token, .-copy_token .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_cpp_init.c" .intel_syntax noprefix .text .globl LC_ALL .bss .align 4 .type LC_ALL, @object .size LC_ALL, 4 LC_ALL: .zero 4 .section .rodata .LC0: .string "C" .text .globl cpp_init .type cpp_init, @function cpp_init: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 mov eax, DWORD PTR LC_ALL[rip] lea rsi, .LC0[rip] mov edi, eax call setlocale@PLT mov eax, 0 call init_keywords@PLT mov eax, 0 call init_now@PLT mov eax, 0 call init_predefined_macros@PLT nop pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size cpp_init, .-cpp_init .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_cpp_init.c" .option pic .text .comm LC_ALL,4,4 .section .rodata .align 3 .LC0: .string "C" .text .align 1 .globl cpp_init .type cpp_init, @function cpp_init: addi sp,sp,-16 sd ra,8(sp) sd s0,0(sp) addi s0,sp,16 la a5,LC_ALL lw a5,0(a5) lla a1,.LC0 mv a0,a5 call setlocale@plt call init_keywords@plt call init_now@plt call init_predefined_macros@plt nop ld ra,8(sp) ld s0,0(sp) addi sp,sp,16 jr ra .size cpp_init, .-cpp_init .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_define_obj_macro.c" .intel_syntax noprefix .text .globl macros .bss .align 4 .type macros, @object .size macros, 4 macros: .zero 4 .text .type define_obj_macro, @function define_obj_macro: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 16 mov QWORD PTR -8[rbp], rdi mov QWORD PTR -16[rbp], rsi mov rax, QWORD PTR -16[rbp] mov rdi, rax call make_vector1@PLT mov edi, eax call make_obj_macro@PLT mov edx, eax mov eax, DWORD PTR macros[rip] mov rcx, QWORD PTR -8[rbp] mov rsi, rcx mov edi, eax call map_put@PLT nop leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size define_obj_macro, .-define_obj_macro .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_define_obj_macro.c" .option pic .text .comm macros,4,4 .align 1 .type define_obj_macro, @function define_obj_macro: addi sp,sp,-48 sd ra,40(sp) sd s0,32(sp) sd s1,24(sp) addi s0,sp,48 sd a0,-40(s0) sd a1,-48(s0) la a5,macros lw s1,0(a5) ld a0,-48(s0) call make_vector1@plt mv a5,a0 mv a0,a5 call make_obj_macro@plt mv a5,a0 mv a2,a5 ld a1,-40(s0) mv a0,s1 call map_put@plt nop ld ra,40(sp) ld s0,32(sp) ld s1,24(sp) addi sp,sp,48 jr ra .size define_obj_macro, .-define_obj_macro .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_define_special_macro.c" .intel_syntax noprefix .text .globl macros .bss .align 4 .type macros, @object .size macros, 4 macros: .zero 4 .text .type define_special_macro, @function define_special_macro: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 16 mov QWORD PTR -8[rbp], rdi mov QWORD PTR -16[rbp], rsi mov rax, QWORD PTR -16[rbp] mov rdi, rax call make_special_macro@PLT mov edx, eax mov eax, DWORD PTR macros[rip] mov rcx, QWORD PTR -8[rbp] mov rsi, rcx mov edi, eax call map_put@PLT nop leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size define_special_macro, .-define_special_macro .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_define_special_macro.c" .option pic .text .comm macros,4,4 .align 1 .type define_special_macro, @function define_special_macro: addi sp,sp,-48 sd ra,40(sp) sd s0,32(sp) sd s1,24(sp) addi s0,sp,48 sd a0,-40(s0) sd a1,-48(s0) la a5,macros lw s1,0(a5) ld a0,-48(s0) call make_special_macro@plt mv a5,a0 mv a2,a5 ld a1,-40(s0) mv a0,s1 call map_put@plt nop ld ra,40(sp) ld s0,32(sp) ld s1,24(sp) addi sp,sp,48 jr ra .size define_special_macro, .-define_special_macro .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_do_read_args.c" .intel_syntax noprefix .text .type do_read_args, @function do_read_args: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 48 mov QWORD PTR -40[rbp], rdi mov QWORD PTR -48[rbp], rsi mov rax, QWORD PTR fs:40 mov QWORD PTR -8[rbp], rax xor eax, eax mov eax, 0 call make_vector@PLT mov QWORD PTR -16[rbp], rax mov DWORD PTR -24[rbp], 0 jmp .L2 .L5: mov rax, QWORD PTR -48[rbp] mov rax, QWORD PTR 8[rax] test rax, rax je .L3 mov rax, QWORD PTR -16[rbp] mov rdi, rax call vec_len@PLT lea edx, 1[rax] mov rax, QWORD PTR -48[rbp] mov eax, DWORD PTR [rax] cmp edx, eax jne .L3 mov eax, 1 jmp .L4 .L3: mov eax, 0 .L4: mov DWORD PTR -20[rbp], eax mov edx, DWORD PTR -20[rbp] lea rcx, -24[rbp] mov rax, QWORD PTR -40[rbp] mov rsi, rcx mov rdi, rax call read_one_arg@PLT mov rdx, rax mov rax, QWORD PTR -16[rbp] mov rsi, rdx mov rdi, rax call vec_push@PLT .L2: mov eax, DWORD PTR -24[rbp] test eax, eax je .L5 mov rax, QWORD PTR -48[rbp] mov rax, QWORD PTR 8[rax] test rax, rax je .L6 mov rax, QWORD PTR -16[rbp] mov rdi, rax call vec_len@PLT mov rdx, QWORD PTR -48[rbp] mov edx, DWORD PTR [rdx] sub edx, 1 cmp eax, edx jne .L6 mov eax, 0 call make_vector@PLT mov rdx, rax mov rax, QWORD PTR -16[rbp] mov rsi, rdx mov rdi, rax call vec_push@PLT .L6: mov rax, QWORD PTR -16[rbp] mov rcx, QWORD PTR -8[rbp] sub rcx, QWORD PTR fs:40 je .L8 call __stack_chk_fail@PLT .L8: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size do_read_args, .-do_read_args .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_do_read_args.c" .option pic .text .align 1 .type do_read_args, @function do_read_args: addi sp,sp,-64 sd ra,56(sp) sd s0,48(sp) addi s0,sp,64 sd a0,-56(s0) sd a1,-64(s0) la a5,__stack_chk_guard ld a5,0(a5) sd a5,-24(s0) call make_vector@plt sd a0,-32(s0) sw zero,-40(s0) j .L2 .L5: ld a5,-64(s0) ld a5,8(a5) beqz a5,.L3 ld a0,-32(s0) call vec_len@plt mv a5,a0 addiw a5,a5,1 sext.w a4,a5 ld a5,-64(s0) lw a5,0(a5) bne a4,a5,.L3 li a5,1 j .L4 .L3: li a5,0 .L4: sw a5,-36(s0) lw a4,-36(s0) addi a5,s0,-40 mv a2,a4 mv a1,a5 ld a0,-56(s0) call read_one_arg@plt mv a5,a0 mv a1,a5 ld a0,-32(s0) call vec_push@plt .L2: lw a5,-40(s0) beqz a5,.L5 ld a5,-64(s0) ld a5,8(a5) beqz a5,.L6 ld a0,-32(s0) call vec_len@plt mv a5,a0 mv a4,a5 ld a5,-64(s0) lw a5,0(a5) addiw a5,a5,-1 sext.w a5,a5 bne a4,a5,.L6 call make_vector@plt mv a5,a0 mv a1,a5 ld a0,-32(s0) call vec_push@plt .L6: ld a5,-32(s0) mv a3,a5 la a5,__stack_chk_guard ld a4,-24(s0) ld a5,0(a5) beq a4,a5,.L8 call __stack_chk_fail@plt .L8: mv a0,a3 ld ra,56(sp) ld s0,48(sp) addi sp,sp,64 jr ra .size do_read_args, .-do_read_args .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_do_read_if.c" .intel_syntax noprefix .text .globl cond_incl_stack .bss .align 4 .type cond_incl_stack, @object .size cond_incl_stack, 4 cond_incl_stack: .zero 4 .text .type do_read_if, @function do_read_if: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 16 mov DWORD PTR -4[rbp], edi mov eax, DWORD PTR -4[rbp] mov edi, eax call make_cond_incl@PLT mov edx, eax mov eax, DWORD PTR cond_incl_stack[rip] mov esi, edx mov edi, eax call vec_push@PLT cmp DWORD PTR -4[rbp], 0 jne .L3 mov eax, 0 call skip_cond_incl@PLT .L3: nop leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size do_read_if, .-do_read_if .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_do_read_if.c" .option pic .text .comm cond_incl_stack,4,4 .align 1 .type do_read_if, @function do_read_if: addi sp,sp,-48 sd ra,40(sp) sd s0,32(sp) sd s1,24(sp) addi s0,sp,48 mv a5,a0 sw a5,-36(s0) la a5,cond_incl_stack lw s1,0(a5) lw a5,-36(s0) mv a0,a5 call make_cond_incl@plt mv a5,a0 mv a1,a5 mv a0,s1 call vec_push@plt lw a5,-36(s0) sext.w a5,a5 bnez a5,.L3 call skip_cond_incl@plt .L3: nop ld ra,40(sp) ld s0,32(sp) ld s1,24(sp) addi sp,sp,48 jr ra .size do_read_if, .-do_read_if .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_expand_all.c" .intel_syntax noprefix .text .globl TEOF .bss .align 8 .type TEOF, @object .size TEOF, 8 TEOF: .zero 8 .text .type expand_all, @function expand_all: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 32 mov QWORD PTR -24[rbp], rdi mov QWORD PTR -32[rbp], rsi mov rax, QWORD PTR -24[rbp] mov rdi, rax call vec_reverse@PLT mov edi, eax call token_buffer_stash@PLT mov eax, 0 call make_vector@PLT mov QWORD PTR -16[rbp], rax .L4: mov eax, 0 call read_expand@PLT mov QWORD PTR -8[rbp], rax mov rax, QWORD PTR -8[rbp] mov rdx, QWORD PTR [rax] mov rax, QWORD PTR TEOF[rip] cmp rdx, rax je .L7 mov rdx, QWORD PTR -8[rbp] mov rax, QWORD PTR -16[rbp] mov rsi, rdx mov rdi, rax call vec_push@PLT jmp .L4 .L7: nop mov rdx, QWORD PTR -32[rbp] mov rax, QWORD PTR -16[rbp] mov rsi, rdx mov rdi, rax call propagate_space@PLT mov eax, 0 call token_buffer_unstash@PLT mov rax, QWORD PTR -16[rbp] leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size expand_all, .-expand_all .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_expand_all.c" .option pic .text .comm TEOF,8,8 .align 1 .type expand_all, @function expand_all: addi sp,sp,-48 sd ra,40(sp) sd s0,32(sp) addi s0,sp,48 sd a0,-40(s0) sd a1,-48(s0) ld a0,-40(s0) call vec_reverse@plt mv a5,a0 mv a0,a5 call token_buffer_stash@plt call make_vector@plt sd a0,-32(s0) .L4: call read_expand@plt sd a0,-24(s0) ld a5,-24(s0) ld a4,0(a5) la a5,TEOF ld a5,0(a5) beq a4,a5,.L7 ld a1,-24(s0) ld a0,-32(s0) call vec_push@plt j .L4 .L7: nop ld a1,-48(s0) ld a0,-32(s0) call propagate_space@plt call token_buffer_unstash@plt ld a5,-32(s0) mv a0,a5 ld ra,40(sp) ld s0,32(sp) addi sp,sp,48 jr ra .size expand_all, .-expand_all .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_expect.c" .intel_syntax noprefix .text .section .rodata .LC0: .string "%c expected, but got %s" .text .type expect, @function expect: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 32 mov eax, edi mov BYTE PTR -20[rbp], al mov eax, 0 call lex@PLT mov QWORD PTR -8[rbp], rax movsx edx, BYTE PTR -20[rbp] mov rax, QWORD PTR -8[rbp] mov esi, edx mov rdi, rax call is_keyword@PLT test eax, eax jne .L3 mov rax, QWORD PTR -8[rbp] mov rdi, rax call tok2s@PLT mov ecx, eax movsx edx, BYTE PTR -20[rbp] mov rax, QWORD PTR -8[rbp] lea rsi, .LC0[rip] mov rdi, rax call errort@PLT .L3: nop leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size expect, .-expect .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_expect.c" .option pic .text .section .rodata .align 3 .LC0: .string "%c expected, but got %s" .text .align 1 .type expect, @function expect: addi sp,sp,-48 sd ra,40(sp) sd s0,32(sp) addi s0,sp,48 mv a5,a0 sb a5,-33(s0) call lex@plt sd a0,-24(s0) lbu a5,-33(s0) mv a1,a5 ld a0,-24(s0) call is_keyword@plt mv a5,a0 bnez a5,.L3 ld a0,-24(s0) call tok2s@plt mv a5,a0 mv a4,a5 lbu a5,-33(s0) mv a3,a4 mv a2,a5 lla a1,.LC0 ld a0,-24(s0) call errort@plt .L3: nop ld ra,40(sp) ld s0,32(sp) addi sp,sp,48 jr ra .size expect, .-expect .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_expect_newline.c" .intel_syntax noprefix .text .globl TNEWLINE .bss .align 8 .type TNEWLINE, @object .size TNEWLINE, 8 TNEWLINE: .zero 8 .section .rodata .LC0: .string "newline expected, but got %s" .text .globl expect_newline .type expect_newline, @function expect_newline: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 16 mov eax, 0 call lex@PLT mov QWORD PTR -8[rbp], rax mov rax, QWORD PTR -8[rbp] mov rdx, QWORD PTR [rax] mov rax, QWORD PTR TNEWLINE[rip] cmp rdx, rax je .L3 mov rax, QWORD PTR -8[rbp] mov rdi, rax call tok2s@PLT mov edx, eax mov rax, QWORD PTR -8[rbp] lea rsi, .LC0[rip] mov rdi, rax call errort@PLT .L3: nop leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size expect_newline, .-expect_newline .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_expect_newline.c" .option pic .text .comm TNEWLINE,8,8 .section .rodata .align 3 .LC0: .string "newline expected, but got %s" .text .align 1 .globl expect_newline .type expect_newline, @function expect_newline: addi sp,sp,-32 sd ra,24(sp) sd s0,16(sp) addi s0,sp,32 call lex@plt sd a0,-24(s0) ld a5,-24(s0) ld a4,0(a5) la a5,TNEWLINE ld a5,0(a5) beq a4,a5,.L3 ld a0,-24(s0) call tok2s@plt mv a5,a0 mv a2,a5 lla a1,.LC0 ld a0,-24(s0) call errort@plt .L3: nop ld ra,24(sp) ld s0,16(sp) addi sp,sp,32 jr ra .size expect_newline, .-expect_newline .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_glue_push.c" .intel_syntax noprefix .text .type glue_push, @function glue_push: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 32 mov QWORD PTR -24[rbp], rdi mov QWORD PTR -32[rbp], rsi mov rax, QWORD PTR -24[rbp] mov rdi, rax call vec_pop@PLT mov QWORD PTR -8[rbp], rax mov rdx, QWORD PTR -32[rbp] mov rax, QWORD PTR -8[rbp] mov rsi, rdx mov rdi, rax call glue_tokens@PLT mov edx, eax mov rax, QWORD PTR -24[rbp] mov esi, edx mov rdi, rax call vec_push@PLT nop leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size glue_push, .-glue_push .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_glue_push.c" .option pic .text .align 1 .type glue_push, @function glue_push: addi sp,sp,-48 sd ra,40(sp) sd s0,32(sp) addi s0,sp,48 sd a0,-40(s0) sd a1,-48(s0) ld a0,-40(s0) call vec_pop@plt sd a0,-24(s0) ld a1,-48(s0) ld a0,-24(s0) call glue_tokens@plt mv a5,a0 mv a1,a5 ld a0,-40(s0) call vec_push@plt nop ld ra,40(sp) ld s0,32(sp) addi sp,sp,48 jr ra .size glue_push, .-glue_push .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_glue_tokens.c" .intel_syntax noprefix .text .section .rodata .LC0: .string "%s" .text .type glue_tokens, @function glue_tokens: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 32 mov QWORD PTR -24[rbp], rdi mov QWORD PTR -32[rbp], rsi mov eax, 0 call make_buffer@PLT mov QWORD PTR -16[rbp], rax mov rax, QWORD PTR -24[rbp] mov rdi, rax call tok2s@PLT mov edx, eax mov rax, QWORD PTR -16[rbp] lea rsi, .LC0[rip] mov rdi, rax call buf_printf@PLT mov rax, QWORD PTR -32[rbp] mov rdi, rax call tok2s@PLT mov edx, eax mov rax, QWORD PTR -16[rbp] lea rsi, .LC0[rip] mov rdi, rax call buf_printf@PLT mov rax, QWORD PTR -16[rbp] mov rdi, rax call buf_body@PLT mov edi, eax call lex_string@PLT mov QWORD PTR -8[rbp], rax mov rax, QWORD PTR -8[rbp] leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size glue_tokens, .-glue_tokens .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_glue_tokens.c" .option pic .text .section .rodata .align 3 .LC0: .string "%s" .text .align 1 .type glue_tokens, @function glue_tokens: addi sp,sp,-48 sd ra,40(sp) sd s0,32(sp) addi s0,sp,48 sd a0,-40(s0) sd a1,-48(s0) call make_buffer@plt sd a0,-32(s0) ld a0,-40(s0) call tok2s@plt mv a5,a0 mv a2,a5 lla a1,.LC0 ld a0,-32(s0) call buf_printf@plt ld a0,-48(s0) call tok2s@plt mv a5,a0 mv a2,a5 lla a1,.LC0 ld a0,-32(s0) call buf_printf@plt ld a0,-32(s0) call buf_body@plt mv a5,a0 mv a0,a5 call lex_string@plt sd a0,-24(s0) ld a5,-24(s0) mv a0,a5 ld ra,40(sp) ld s0,32(sp) addi sp,sp,48 jr ra .size glue_tokens, .-glue_tokens .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_guarded.c" .intel_syntax noprefix .text .globl cpp_token_one .bss .align 4 .type cpp_token_one, @object .size cpp_token_one, 4 cpp_token_one: .zero 4 .globl cpp_token_zero .align 4 .type cpp_token_zero, @object .size cpp_token_zero, 4 cpp_token_zero: .zero 4 .globl include_guard .align 4 .type include_guard, @object .size include_guard, 4 include_guard: .zero 4 .globl macros .align 4 .type macros, @object .size macros, 4 macros: .zero 4 .section .rodata .LC0: .string "__8cc_include_guard" .text .type guarded, @function guarded: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 32 mov QWORD PTR -24[rbp], rdi mov eax, DWORD PTR include_guard[rip] mov rdx, QWORD PTR -24[rbp] mov rsi, rdx mov edi, eax call map_get@PLT mov QWORD PTR -8[rbp], rax cmp QWORD PTR -8[rbp], 0 je .L2 mov eax, DWORD PTR macros[rip] mov rdx, QWORD PTR -8[rbp] mov rsi, rdx mov edi, eax call map_get@PLT test rax, rax je .L2 mov eax, 1 jmp .L3 .L2: mov eax, 0 .L3: mov DWORD PTR -12[rbp], eax cmp DWORD PTR -12[rbp], 0 je .L4 mov eax, DWORD PTR cpp_token_one[rip] jmp .L5 .L4: mov eax, DWORD PTR cpp_token_zero[rip] .L5: mov esi, eax lea rdi, .LC0[rip] call define_obj_macro@PLT mov eax, DWORD PTR -12[rbp] leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size guarded, .-guarded .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_guarded.c" .option pic .text .comm cpp_token_one,4,4 .comm cpp_token_zero,4,4 .comm include_guard,4,4 .comm macros,4,4 .section .rodata .align 3 .LC0: .string "__8cc_include_guard" .text .align 1 .type guarded, @function guarded: addi sp,sp,-48 sd ra,40(sp) sd s0,32(sp) addi s0,sp,48 sd a0,-40(s0) la a5,include_guard lw a5,0(a5) ld a1,-40(s0) mv a0,a5 call map_get@plt sd a0,-24(s0) ld a5,-24(s0) beqz a5,.L2 la a5,macros lw a5,0(a5) ld a1,-24(s0) mv a0,a5 call map_get@plt mv a5,a0 beqz a5,.L2 li a5,1 j .L3 .L2: li a5,0 .L3: sw a5,-28(s0) lw a5,-28(s0) sext.w a5,a5 beqz a5,.L4 la a5,cpp_token_one lw a5,0(a5) j .L5 .L4: la a5,cpp_token_zero lw a5,0(a5) .L5: mv a1,a5 lla a0,.LC0 call define_obj_macro@plt lw a5,-28(s0) mv a0,a5 ld ra,40(sp) ld s0,32(sp) addi sp,sp,48 jr ra .size guarded, .-guarded .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_handle_base_file_macro.c" .intel_syntax noprefix .text .globl TSTRING .bss .align 4 .type TSTRING, @object .size TSTRING, 4 TSTRING: .zero 4 .text .type handle_base_file_macro, @function handle_base_file_macro: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 16 mov QWORD PTR -8[rbp], rdi mov eax, 0 call get_base_file@PLT mov edx, eax mov ecx, DWORD PTR TSTRING[rip] mov rax, QWORD PTR -8[rbp] mov esi, ecx mov rdi, rax call make_token_pushback@PLT nop leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size handle_base_file_macro, .-handle_base_file_macro .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_handle_base_file_macro.c" .option pic .text .comm TSTRING,4,4 .align 1 .type handle_base_file_macro, @function handle_base_file_macro: addi sp,sp,-48 sd ra,40(sp) sd s0,32(sp) sd s1,24(sp) addi s0,sp,48 sd a0,-40(s0) la a5,TSTRING lw s1,0(a5) call get_base_file@plt mv a5,a0 mv a2,a5 mv a1,s1 ld a0,-40(s0) call make_token_pushback@plt nop ld ra,40(sp) ld s0,32(sp) ld s1,24(sp) addi sp,sp,48 jr ra .size handle_base_file_macro, .-handle_base_file_macro .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_handle_counter_macro.c" .intel_syntax noprefix .text .globl TNUMBER .bss .align 4 .type TNUMBER, @object .size TNUMBER, 4 TNUMBER: .zero 4 .section .rodata .LC0: .string "%d" .text .type handle_counter_macro, @function handle_counter_macro: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 16 mov QWORD PTR -8[rbp], rdi mov eax, DWORD PTR counter.0[rip] lea edx, 1[rax] mov DWORD PTR counter.0[rip], edx mov esi, eax lea rdi, .LC0[rip] call format@PLT mov edx, eax mov ecx, DWORD PTR TNUMBER[rip] mov rax, QWORD PTR -8[rbp] mov esi, ecx mov rdi, rax call make_token_pushback@PLT nop leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size handle_counter_macro, .-handle_counter_macro .local counter.0 .comm counter.0,4,4 .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_handle_counter_macro.c" .option pic .text .comm TNUMBER,4,4 .section .rodata .align 3 .LC0: .string "%d" .text .align 1 .type handle_counter_macro, @function handle_counter_macro: addi sp,sp,-48 sd ra,40(sp) sd s0,32(sp) sd s1,24(sp) addi s0,sp,48 sd a0,-40(s0) la a5,TNUMBER lw s1,0(a5) lla a5,counter.1515 lw a5,0(a5) addiw a4,a5,1 sext.w a3,a4 lla a4,counter.1515 sw a3,0(a4) mv a1,a5 lla a0,.LC0 call format@plt mv a5,a0 mv a2,a5 mv a1,s1 ld a0,-40(s0) call make_token_pushback@plt nop ld ra,40(sp) ld s0,32(sp) ld s1,24(sp) addi sp,sp,48 jr ra .size handle_counter_macro, .-handle_counter_macro .local counter.1515 .comm counter.1515,4,4 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_handle_date_macro.c" .intel_syntax noprefix .text .globl TSTRING .bss .align 4 .type TSTRING, @object .size TSTRING, 4 TSTRING: .zero 4 .globl now .align 4 .type now, @object .size now, 4 now: .zero 4 .section .rodata .LC0: .string "%b %e %Y" .text .type handle_date_macro, @function handle_date_macro: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 48 mov QWORD PTR -40[rbp], rdi mov rax, QWORD PTR fs:40 mov QWORD PTR -8[rbp], rax xor eax, eax lea rax, -32[rbp] lea rcx, now[rip] lea rdx, .LC0[rip] mov esi, 20 mov rdi, rax call strftime@PLT lea rax, -32[rbp] mov rdi, rax call strdup@PLT mov edx, eax mov ecx, DWORD PTR TSTRING[rip] mov rax, QWORD PTR -40[rbp] mov esi, ecx mov rdi, rax call make_token_pushback@PLT nop mov rax, QWORD PTR -8[rbp] sub rax, QWORD PTR fs:40 je .L2 call __stack_chk_fail@PLT .L2: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size handle_date_macro, .-handle_date_macro .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_handle_date_macro.c" .option pic .text .comm TSTRING,4,4 .comm now,4,4 .section .rodata .align 3 .LC0: .string "%b %e %Y" .text .align 1 .type handle_date_macro, @function handle_date_macro: addi sp,sp,-80 sd ra,72(sp) sd s0,64(sp) sd s1,56(sp) addi s0,sp,80 sd a0,-72(s0) la a5,__stack_chk_guard ld a5,0(a5) sd a5,-40(s0) addi a5,s0,-64 la a3,now lla a2,.LC0 li a1,20 mv a0,a5 call strftime@plt la a5,TSTRING lw s1,0(a5) addi a5,s0,-64 mv a0,a5 call strdup@plt mv a5,a0 mv a2,a5 mv a1,s1 ld a0,-72(s0) call make_token_pushback@plt nop la a5,__stack_chk_guard ld a4,-40(s0) ld a5,0(a5) beq a4,a5,.L2 call __stack_chk_fail@plt .L2: ld ra,72(sp) ld s0,64(sp) ld s1,56(sp) addi sp,sp,80 jr ra .size handle_date_macro, .-handle_date_macro .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_handle_file_macro.c" .intel_syntax noprefix .text .globl TSTRING .bss .align 4 .type TSTRING, @object .size TSTRING, 4 TSTRING: .zero 4 .text .type handle_file_macro, @function handle_file_macro: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 16 mov QWORD PTR -8[rbp], rdi mov rax, QWORD PTR -8[rbp] mov rax, QWORD PTR [rax] mov edx, DWORD PTR [rax] mov ecx, DWORD PTR TSTRING[rip] mov rax, QWORD PTR -8[rbp] mov esi, ecx mov rdi, rax call make_token_pushback@PLT nop leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size handle_file_macro, .-handle_file_macro .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_handle_file_macro.c" .option pic .text .comm TSTRING,4,4 .align 1 .type handle_file_macro, @function handle_file_macro: addi sp,sp,-32 sd ra,24(sp) sd s0,16(sp) addi s0,sp,32 sd a0,-24(s0) la a5,TSTRING lw a4,0(a5) ld a5,-24(s0) ld a5,0(a5) lw a5,0(a5) mv a2,a5 mv a1,a4 ld a0,-24(s0) call make_token_pushback@plt nop ld ra,24(sp) ld s0,16(sp) addi sp,sp,32 jr ra .size handle_file_macro, .-handle_file_macro .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_handle_include_level_macro.c" .intel_syntax noprefix .text .globl TNUMBER .bss .align 4 .type TNUMBER, @object .size TNUMBER, 4 TNUMBER: .zero 4 .section .rodata .LC0: .string "%d" .text .type handle_include_level_macro, @function handle_include_level_macro: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 16 mov QWORD PTR -8[rbp], rdi mov eax, 0 call stream_depth@PLT sub rax, 1 mov rsi, rax lea rdi, .LC0[rip] call format@PLT mov edx, eax mov ecx, DWORD PTR TNUMBER[rip] mov rax, QWORD PTR -8[rbp] mov esi, ecx mov rdi, rax call make_token_pushback@PLT nop leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size handle_include_level_macro, .-handle_include_level_macro .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_handle_include_level_macro.c" .option pic .text .comm TNUMBER,4,4 .section .rodata .align 3 .LC0: .string "%d" .text .align 1 .type handle_include_level_macro, @function handle_include_level_macro: addi sp,sp,-48 sd ra,40(sp) sd s0,32(sp) sd s1,24(sp) addi s0,sp,48 sd a0,-40(s0) la a5,TNUMBER lw s1,0(a5) call stream_depth@plt mv a5,a0 addi a5,a5,-1 mv a1,a5 lla a0,.LC0 call format@plt mv a5,a0 mv a2,a5 mv a1,s1 ld a0,-40(s0) call make_token_pushback@plt nop ld ra,40(sp) ld s0,32(sp) ld s1,24(sp) addi sp,sp,48 jr ra .size handle_include_level_macro, .-handle_include_level_macro .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_handle_line_macro.c" .intel_syntax noprefix .text .globl TNUMBER .bss .align 4 .type TNUMBER, @object .size TNUMBER, 4 TNUMBER: .zero 4 .section .rodata .LC0: .string "%d" .text .type handle_line_macro, @function handle_line_macro: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 16 mov QWORD PTR -8[rbp], rdi mov rax, QWORD PTR -8[rbp] mov rax, QWORD PTR [rax] mov eax, DWORD PTR [rax] mov esi, eax lea rdi, .LC0[rip] call format@PLT mov edx, eax mov ecx, DWORD PTR TNUMBER[rip] mov rax, QWORD PTR -8[rbp] mov esi, ecx mov rdi, rax call make_token_pushback@PLT nop leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size handle_line_macro, .-handle_line_macro .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_handle_line_macro.c" .option pic .text .comm TNUMBER,4,4 .section .rodata .align 3 .LC0: .string "%d" .text .align 1 .type handle_line_macro, @function handle_line_macro: addi sp,sp,-48 sd ra,40(sp) sd s0,32(sp) sd s1,24(sp) addi s0,sp,48 sd a0,-40(s0) la a5,TNUMBER lw s1,0(a5) ld a5,-40(s0) ld a5,0(a5) lw a5,0(a5) mv a1,a5 lla a0,.LC0 call format@plt mv a5,a0 mv a2,a5 mv a1,s1 ld a0,-40(s0) call make_token_pushback@plt nop ld ra,40(sp) ld s0,32(sp) ld s1,24(sp) addi sp,sp,48 jr ra .size handle_line_macro, .-handle_line_macro .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_handle_pragma_macro.c" .intel_syntax noprefix .text .globl TNUMBER .bss .align 4 .type TNUMBER, @object .size TNUMBER, 4 TNUMBER: .zero 4 .globl TSTRING .align 8 .type TSTRING, @object .size TSTRING, 8 TSTRING: .zero 8 .section .rodata .align 8 .LC0: .string "_Pragma takes a string literal, but got %s" .LC1: .string "1" .text .type handle_pragma_macro, @function handle_pragma_macro: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 32 mov QWORD PTR -24[rbp], rdi mov edi, 40 call expect@PLT mov eax, 0 call read_token@PLT mov QWORD PTR -8[rbp], rax mov rax, QWORD PTR -8[rbp] mov rdx, QWORD PTR [rax] mov rax, QWORD PTR TSTRING[rip] cmp rdx, rax je .L2 mov rax, QWORD PTR -8[rbp] mov rdi, rax call tok2s@PLT mov edx, eax mov rax, QWORD PTR -8[rbp] lea rsi, .LC0[rip] mov rdi, rax call errort@PLT .L2: mov edi, 41 call expect@PLT mov rax, QWORD PTR -8[rbp] mov rdi, rax call parse_pragma_operand@PLT mov ecx, DWORD PTR TNUMBER[rip] mov rax, QWORD PTR -24[rbp] lea rdx, .LC1[rip] mov esi, ecx mov rdi, rax call make_token_pushback@PLT nop leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size handle_pragma_macro, .-handle_pragma_macro .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_handle_pragma_macro.c" .option pic .text .comm TNUMBER,4,4 .comm TSTRING,8,8 .section .rodata .align 3 .LC0: .string "_Pragma takes a string literal, but got %s" .align 3 .LC1: .string "1" .text .align 1 .type handle_pragma_macro, @function handle_pragma_macro: addi sp,sp,-48 sd ra,40(sp) sd s0,32(sp) addi s0,sp,48 sd a0,-40(s0) li a0,40 call expect@plt call read_token@plt sd a0,-24(s0) ld a5,-24(s0) ld a4,0(a5) la a5,TSTRING ld a5,0(a5) beq a4,a5,.L2 ld a0,-24(s0) call tok2s@plt mv a5,a0 mv a2,a5 lla a1,.LC0 ld a0,-24(s0) call errort@plt .L2: li a0,41 call expect@plt ld a0,-24(s0) call parse_pragma_operand@plt la a5,TNUMBER lw a5,0(a5) lla a2,.LC1 mv a1,a5 ld a0,-40(s0) call make_token_pushback@plt nop ld ra,40(sp) ld s0,32(sp) addi sp,sp,48 jr ra .size handle_pragma_macro, .-handle_pragma_macro .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_handle_time_macro.c" .intel_syntax noprefix .text .globl TSTRING .bss .align 4 .type TSTRING, @object .size TSTRING, 4 TSTRING: .zero 4 .globl now .align 4 .type now, @object .size now, 4 now: .zero 4 .section .rodata .LC0: .string "%T" .text .type handle_time_macro, @function handle_time_macro: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 48 mov QWORD PTR -40[rbp], rdi mov rax, QWORD PTR fs:40 mov QWORD PTR -8[rbp], rax xor eax, eax lea rax, -18[rbp] lea rcx, now[rip] lea rdx, .LC0[rip] mov esi, 10 mov rdi, rax call strftime@PLT lea rax, -18[rbp] mov rdi, rax call strdup@PLT mov edx, eax mov ecx, DWORD PTR TSTRING[rip] mov rax, QWORD PTR -40[rbp] mov esi, ecx mov rdi, rax call make_token_pushback@PLT nop mov rax, QWORD PTR -8[rbp] sub rax, QWORD PTR fs:40 je .L2 call __stack_chk_fail@PLT .L2: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size handle_time_macro, .-handle_time_macro .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_handle_time_macro.c" .option pic .text .comm TSTRING,4,4 .comm now,4,4 .section .rodata .align 3 .LC0: .string "%T" .text .align 1 .type handle_time_macro, @function handle_time_macro: addi sp,sp,-80 sd ra,72(sp) sd s0,64(sp) sd s1,56(sp) addi s0,sp,80 sd a0,-72(s0) la a5,__stack_chk_guard ld a5,0(a5) sd a5,-40(s0) addi a5,s0,-56 la a3,now lla a2,.LC0 li a1,10 mv a0,a5 call strftime@plt la a5,TSTRING lw s1,0(a5) addi a5,s0,-56 mv a0,a5 call strdup@plt mv a5,a0 mv a2,a5 mv a1,s1 ld a0,-72(s0) call make_token_pushback@plt nop la a5,__stack_chk_guard ld a4,-40(s0) ld a5,0(a5) beq a4,a5,.L2 call __stack_chk_fail@plt .L2: ld ra,72(sp) ld s0,64(sp) ld s1,56(sp) addi sp,sp,80 jr ra .size handle_time_macro, .-handle_time_macro .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_handle_timestamp_macro.c" .intel_syntax noprefix .text .globl TSTRING .bss .align 4 .type TSTRING, @object .size TSTRING, 4 TSTRING: .zero 4 .section .rodata .LC0: .string "%a %b %e %T %Y" .text .type handle_timestamp_macro, @function handle_timestamp_macro: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 64 mov QWORD PTR -56[rbp], rdi mov rax, QWORD PTR fs:40 mov QWORD PTR -8[rbp], rax xor eax, eax mov rax, QWORD PTR -56[rbp] mov rax, QWORD PTR [rax] mov rdi, rax call localtime@PLT mov edx, eax lea rax, -48[rbp] mov ecx, edx lea rdx, .LC0[rip] mov esi, 30 mov rdi, rax call strftime@PLT lea rax, -48[rbp] mov rdi, rax call strdup@PLT mov edx, eax mov ecx, DWORD PTR TSTRING[rip] mov rax, QWORD PTR -56[rbp] mov esi, ecx mov rdi, rax call make_token_pushback@PLT nop mov rax, QWORD PTR -8[rbp] sub rax, QWORD PTR fs:40 je .L2 call __stack_chk_fail@PLT .L2: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size handle_timestamp_macro, .-handle_timestamp_macro .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_handle_timestamp_macro.c" .option pic .text .comm TSTRING,4,4 .section .rodata .align 3 .LC0: .string "%a %b %e %T %Y" .text .align 1 .type handle_timestamp_macro, @function handle_timestamp_macro: addi sp,sp,-96 sd ra,88(sp) sd s0,80(sp) sd s1,72(sp) addi s0,sp,96 sd a0,-88(s0) la a5,__stack_chk_guard ld a5,0(a5) sd a5,-40(s0) ld a5,-88(s0) ld a5,0(a5) mv a0,a5 call localtime@plt mv a5,a0 mv a4,a5 addi a5,s0,-72 mv a3,a4 lla a2,.LC0 li a1,30 mv a0,a5 call strftime@plt la a5,TSTRING lw s1,0(a5) addi a5,s0,-72 mv a0,a5 call strdup@plt mv a5,a0 mv a2,a5 mv a1,s1 ld a0,-88(s0) call make_token_pushback@plt nop la a5,__stack_chk_guard ld a4,-40(s0) ld a5,0(a5) beq a4,a5,.L2 call __stack_chk_fail@plt .L2: ld ra,88(sp) ld s0,80(sp) ld s1,72(sp) addi sp,sp,96 jr ra .size handle_timestamp_macro, .-handle_timestamp_macro .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_hashhash_check.c" .intel_syntax noprefix .text .globl KHASHHASH .bss .align 4 .type KHASHHASH, @object .size KHASHHASH, 4 KHASHHASH: .zero 4 .section .rodata .align 8 .LC0: .string "'##' cannot appear at start of macro expansion" .align 8 .LC1: .string "'##' cannot appear at end of macro expansion" .text .type hashhash_check, @function hashhash_check: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 push rbx sub rsp, 24 .cfi_offset 3, -24 mov QWORD PTR -24[rbp], rdi mov rax, QWORD PTR -24[rbp] mov rdi, rax call vec_len@PLT test rax, rax je .L5 mov ebx, DWORD PTR KHASHHASH[rip] mov rax, QWORD PTR -24[rbp] mov rdi, rax call vec_head@PLT mov esi, ebx mov edi, eax call is_keyword@PLT test rax, rax je .L4 mov rax, QWORD PTR -24[rbp] mov rdi, rax call vec_head@PLT lea rsi, .LC0[rip] mov edi, eax call errort@PLT .L4: mov ebx, DWORD PTR KHASHHASH[rip] mov rax, QWORD PTR -24[rbp] mov rdi, rax call vec_tail@PLT mov esi, ebx mov edi, eax call is_keyword@PLT test rax, rax je .L1 mov rax, QWORD PTR -24[rbp] mov rdi, rax call vec_tail@PLT lea rsi, .LC1[rip] mov edi, eax call errort@PLT jmp .L1 .L5: nop .L1: mov rbx, QWORD PTR -8[rbp] leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size hashhash_check, .-hashhash_check .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_hashhash_check.c" .option pic .text .comm KHASHHASH,4,4 .section .rodata .align 3 .LC0: .string "'##' cannot appear at start of macro expansion" .align 3 .LC1: .string "'##' cannot appear at end of macro expansion" .text .align 1 .type hashhash_check, @function hashhash_check: addi sp,sp,-32 sd ra,24(sp) sd s0,16(sp) addi s0,sp,32 sd a0,-24(s0) ld a0,-24(s0) call vec_len@plt mv a5,a0 beqz a5,.L5 ld a0,-24(s0) call vec_head@plt mv a5,a0 mv a4,a5 la a5,KHASHHASH lw a5,0(a5) mv a1,a5 mv a0,a4 call is_keyword@plt mv a5,a0 beqz a5,.L4 ld a0,-24(s0) call vec_head@plt mv a5,a0 lla a1,.LC0 mv a0,a5 call errort@plt .L4: ld a0,-24(s0) call vec_tail@plt mv a5,a0 mv a4,a5 la a5,KHASHHASH lw a5,0(a5) mv a1,a5 mv a0,a4 call is_keyword@plt mv a5,a0 beqz a5,.L1 ld a0,-24(s0) call vec_tail@plt mv a5,a0 lla a1,.LC1 mv a0,a5 call errort@plt j .L1 .L5: nop .L1: ld ra,24(sp) ld s0,16(sp) addi sp,sp,32 jr ra .size hashhash_check, .-hashhash_check .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_init_now.c" .intel_syntax noprefix .text .globl now .bss .align 4 .type now, @object .size now, 4 now: .zero 4 .text .globl init_now .type init_now, @function init_now: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 16 mov rax, QWORD PTR fs:40 mov QWORD PTR -8[rbp], rax xor eax, eax mov edi, 0 call time@PLT mov DWORD PTR -12[rbp], eax lea rax, -12[rbp] lea rsi, now[rip] mov rdi, rax call localtime_r@PLT nop mov rax, QWORD PTR -8[rbp] sub rax, QWORD PTR fs:40 je .L2 call __stack_chk_fail@PLT .L2: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size init_now, .-init_now .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_init_now.c" .option pic .text .comm now,4,4 .align 1 .globl init_now .type init_now, @function init_now: addi sp,sp,-32 sd ra,24(sp) sd s0,16(sp) addi s0,sp,32 la a5,__stack_chk_guard ld a5,0(a5) sd a5,-24(s0) li a0,0 call time@plt mv a5,a0 sw a5,-28(s0) addi a5,s0,-28 la a1,now mv a0,a5 call localtime_r@plt nop la a5,__stack_chk_guard ld a4,-24(s0) ld a5,0(a5) beq a4,a5,.L2 call __stack_chk_fail@plt .L2: ld ra,24(sp) ld s0,16(sp) addi sp,sp,32 jr ra .size init_now, .-init_now .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_is_digit_sequence.c" .intel_syntax noprefix .text .type is_digit_sequence, @function is_digit_sequence: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 16 mov QWORD PTR -8[rbp], rdi jmp .L2 .L5: mov rax, QWORD PTR -8[rbp] movzx eax, BYTE PTR [rax] movsx eax, al mov edi, eax call isdigit@PLT test eax, eax jne .L3 mov eax, 0 jmp .L4 .L3: add QWORD PTR -8[rbp], 1 .L2: mov rax, QWORD PTR -8[rbp] movzx eax, BYTE PTR [rax] test al, al jne .L5 mov eax, 1 .L4: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size is_digit_sequence, .-is_digit_sequence .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_is_digit_sequence.c" .option pic .text .align 1 .type is_digit_sequence, @function is_digit_sequence: addi sp,sp,-32 sd ra,24(sp) sd s0,16(sp) addi s0,sp,32 sd a0,-24(s0) j .L2 .L5: ld a5,-24(s0) lbu a5,0(a5) mv a0,a5 call isdigit@plt mv a5,a0 bnez a5,.L3 li a5,0 j .L4 .L3: ld a5,-24(s0) addi a5,a5,1 sd a5,-24(s0) .L2: ld a5,-24(s0) lbu a5,0(a5) bnez a5,.L5 li a5,1 .L4: mv a0,a5 ld ra,24(sp) ld s0,16(sp) addi sp,sp,32 jr ra .size is_digit_sequence, .-is_digit_sequence .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_join_paths.c" .intel_syntax noprefix .text .section .rodata .LC0: .string "%s" .text .type join_paths, @function join_paths: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 32 mov QWORD PTR -24[rbp], rdi mov eax, 0 call make_buffer@PLT mov QWORD PTR -8[rbp], rax mov DWORD PTR -12[rbp], 0 jmp .L2 .L3: mov edx, DWORD PTR -12[rbp] mov rax, QWORD PTR -24[rbp] mov esi, edx mov rdi, rax call vec_get@PLT mov edi, eax call tok2s@PLT mov edx, eax mov rax, QWORD PTR -8[rbp] lea rsi, .LC0[rip] mov rdi, rax call buf_printf@PLT add DWORD PTR -12[rbp], 1 .L2: mov rax, QWORD PTR -24[rbp] mov rdi, rax call vec_len@PLT cmp DWORD PTR -12[rbp], eax jl .L3 mov rax, QWORD PTR -8[rbp] mov rdi, rax call buf_body@PLT leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size join_paths, .-join_paths .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_join_paths.c" .option pic .text .section .rodata .align 3 .LC0: .string "%s" .text .align 1 .type join_paths, @function join_paths: addi sp,sp,-48 sd ra,40(sp) sd s0,32(sp) addi s0,sp,48 sd a0,-40(s0) call make_buffer@plt sd a0,-24(s0) sw zero,-28(s0) j .L2 .L3: lw a5,-28(s0) mv a1,a5 ld a0,-40(s0) call vec_get@plt mv a5,a0 mv a0,a5 call tok2s@plt mv a5,a0 mv a2,a5 lla a1,.LC0 ld a0,-24(s0) call buf_printf@plt lw a5,-28(s0) addiw a5,a5,1 sw a5,-28(s0) .L2: ld a0,-40(s0) call vec_len@plt mv a5,a0 mv a4,a5 lw a5,-28(s0) sext.w a5,a5 blt a5,a4,.L3 ld a0,-24(s0) call buf_body@plt mv a5,a0 mv a0,a5 ld ra,40(sp) ld s0,32(sp) addi sp,sp,48 jr ra .size join_paths, .-join_paths .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_make_cond_incl.c" .intel_syntax noprefix .text .globl IN_THEN .bss .align 4 .type IN_THEN, @object .size IN_THEN, 4 IN_THEN: .zero 4 .text .type make_cond_incl, @function make_cond_incl: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 32 mov DWORD PTR -20[rbp], edi mov esi, 8 mov edi, 1 call calloc@PLT mov QWORD PTR -8[rbp], rax mov edx, DWORD PTR IN_THEN[rip] mov rax, QWORD PTR -8[rbp] mov DWORD PTR 4[rax], edx mov rax, QWORD PTR -8[rbp] mov edx, DWORD PTR -20[rbp] mov DWORD PTR [rax], edx mov rax, QWORD PTR -8[rbp] leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size make_cond_incl, .-make_cond_incl .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_make_cond_incl.c" .option pic .text .comm IN_THEN,4,4 .align 1 .type make_cond_incl, @function make_cond_incl: addi sp,sp,-48 sd ra,40(sp) sd s0,32(sp) addi s0,sp,48 mv a5,a0 sw a5,-36(s0) li a1,8 li a0,1 call calloc@plt sd a0,-24(s0) la a5,IN_THEN lw a4,0(a5) ld a5,-24(s0) sw a4,4(a5) ld a5,-24(s0) lw a4,-36(s0) sw a4,0(a5) ld a5,-24(s0) mv a0,a5 ld ra,40(sp) ld s0,32(sp) addi sp,sp,48 jr ra .size make_cond_incl, .-make_cond_incl .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_make_macro.c" .intel_syntax noprefix .text .type make_macro, @function make_macro: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 32 mov QWORD PTR -24[rbp], rdi mov edi, 4 call malloc@PLT mov QWORD PTR -8[rbp], rax mov rax, QWORD PTR -24[rbp] mov edx, DWORD PTR [rax] mov rax, QWORD PTR -8[rbp] mov DWORD PTR [rax], edx mov rax, QWORD PTR -8[rbp] leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size make_macro, .-make_macro .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_make_macro.c" .option pic .text .align 1 .type make_macro, @function make_macro: addi sp,sp,-48 sd ra,40(sp) sd s0,32(sp) addi s0,sp,48 sd a0,-40(s0) li a0,4 call malloc@plt sd a0,-24(s0) ld a5,-40(s0) lw a4,0(a5) ld a5,-24(s0) sw a4,0(a5) ld a5,-24(s0) mv a0,a5 ld ra,40(sp) ld s0,32(sp) addi sp,sp,48 jr ra .size make_macro, .-make_macro .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_make_macro_token.c" .intel_syntax noprefix .text .globl TMACRO_PARAM .bss .align 4 .type TMACRO_PARAM, @object .size TMACRO_PARAM, 4 TMACRO_PARAM: .zero 4 .text .type make_macro_token, @function make_macro_token: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 32 mov DWORD PTR -20[rbp], edi mov DWORD PTR -24[rbp], esi mov edi, 32 call malloc@PLT mov QWORD PTR -8[rbp], rax mov edx, DWORD PTR TMACRO_PARAM[rip] mov rax, QWORD PTR -8[rbp] mov DWORD PTR 24[rax], edx mov rax, QWORD PTR -8[rbp] mov edx, DWORD PTR -24[rbp] mov DWORD PTR [rax], edx mov rax, QWORD PTR -8[rbp] mov QWORD PTR 16[rax], 0 mov rax, QWORD PTR -8[rbp] mov edx, DWORD PTR -20[rbp] mov DWORD PTR 4[rax], edx mov rax, QWORD PTR -8[rbp] mov DWORD PTR 8[rax], 0 mov rax, QWORD PTR -8[rbp] mov DWORD PTR 12[rax], 0 mov rax, QWORD PTR -8[rbp] leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size make_macro_token, .-make_macro_token .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_make_macro_token.c" .option pic .text .comm TMACRO_PARAM,4,4 .align 1 .type make_macro_token, @function make_macro_token: addi sp,sp,-48 sd ra,40(sp) sd s0,32(sp) addi s0,sp,48 mv a5,a0 mv a4,a1 sw a5,-36(s0) mv a5,a4 sw a5,-40(s0) li a0,32 call malloc@plt sd a0,-24(s0) la a5,TMACRO_PARAM lw a4,0(a5) ld a5,-24(s0) sw a4,24(a5) ld a5,-24(s0) lw a4,-40(s0) sw a4,0(a5) ld a5,-24(s0) sd zero,16(a5) ld a5,-24(s0) lw a4,-36(s0) sw a4,4(a5) ld a5,-24(s0) sw zero,8(a5) ld a5,-24(s0) sw zero,12(a5) ld a5,-24(s0) mv a0,a5 ld ra,40(sp) ld s0,32(sp) addi sp,sp,48 jr ra .size make_macro_token, .-make_macro_token .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_make_token_pushback.c" .intel_syntax noprefix .text .globl ENC_NONE .bss .align 4 .type ENC_NONE, @object .size ENC_NONE, 4 ENC_NONE: .zero 4 .text .type make_token_pushback, @function make_token_pushback: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 48 mov QWORD PTR -24[rbp], rdi mov DWORD PTR -28[rbp], esi mov QWORD PTR -40[rbp], rdx mov rax, QWORD PTR -24[rbp] mov rdi, rax call copy_token@PLT mov QWORD PTR -8[rbp], rax mov rax, QWORD PTR -8[rbp] mov edx, DWORD PTR -28[rbp] mov DWORD PTR [rax], edx mov rax, QWORD PTR -8[rbp] mov rdx, QWORD PTR -40[rbp] mov QWORD PTR 8[rax], rdx mov rax, QWORD PTR -40[rbp] mov rdi, rax call strlen@PLT lea rdx, 1[rax] mov rax, QWORD PTR -8[rbp] mov QWORD PTR 24[rax], rdx mov edx, DWORD PTR ENC_NONE[rip] mov rax, QWORD PTR -8[rbp] mov DWORD PTR 16[rax], edx mov rax, QWORD PTR -8[rbp] mov rdi, rax call unget_token@PLT nop leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size make_token_pushback, .-make_token_pushback .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_make_token_pushback.c" .option pic .text .comm ENC_NONE,4,4 .align 1 .type make_token_pushback, @function make_token_pushback: addi sp,sp,-64 sd ra,56(sp) sd s0,48(sp) addi s0,sp,64 sd a0,-40(s0) mv a5,a1 sd a2,-56(s0) sw a5,-44(s0) ld a0,-40(s0) call copy_token@plt sd a0,-24(s0) ld a5,-24(s0) lw a4,-44(s0) sw a4,0(a5) ld a5,-24(s0) ld a4,-56(s0) sd a4,8(a5) ld a0,-56(s0) call strlen@plt mv a5,a0 addi a4,a5,1 ld a5,-24(s0) sd a4,24(a5) la a5,ENC_NONE lw a4,0(a5) ld a5,-24(s0) sw a4,16(a5) ld a0,-24(s0) call unget_token@plt nop ld ra,56(sp) ld s0,48(sp) addi sp,sp,64 jr ra .size make_token_pushback, .-make_token_pushback .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_maybe_convert_keyword.c" .intel_syntax noprefix .text .globl TIDENT .bss .align 8 .type TIDENT, @object .size TIDENT, 8 TIDENT: .zero 8 .globl TKEYWORD .align 8 .type TKEYWORD, @object .size TKEYWORD, 8 TKEYWORD: .zero 8 .globl keywords .align 4 .type keywords, @object .size keywords, 4 keywords: .zero 4 .text .type maybe_convert_keyword, @function maybe_convert_keyword: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 32 mov QWORD PTR -24[rbp], rdi mov rax, QWORD PTR -24[rbp] mov rdx, QWORD PTR [rax] mov rax, QWORD PTR TIDENT[rip] cmp rdx, rax je .L2 mov rax, QWORD PTR -24[rbp] jmp .L3 .L2: mov rax, QWORD PTR -24[rbp] mov edx, DWORD PTR 12[rax] mov eax, DWORD PTR keywords[rip] mov esi, edx mov edi, eax call map_get@PLT mov DWORD PTR -12[rbp], eax cmp DWORD PTR -12[rbp], 0 jne .L4 mov rax, QWORD PTR -24[rbp] jmp .L3 .L4: mov rax, QWORD PTR -24[rbp] mov rdi, rax call copy_token@PLT mov QWORD PTR -8[rbp], rax mov rdx, QWORD PTR TKEYWORD[rip] mov rax, QWORD PTR -8[rbp] mov QWORD PTR [rax], rdx mov rax, QWORD PTR -8[rbp] mov edx, DWORD PTR -12[rbp] mov DWORD PTR 8[rax], edx mov rax, QWORD PTR -8[rbp] .L3: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size maybe_convert_keyword, .-maybe_convert_keyword .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_maybe_convert_keyword.c" .option pic .text .comm TIDENT,8,8 .comm TKEYWORD,8,8 .comm keywords,4,4 .align 1 .type maybe_convert_keyword, @function maybe_convert_keyword: addi sp,sp,-48 sd ra,40(sp) sd s0,32(sp) addi s0,sp,48 sd a0,-40(s0) ld a5,-40(s0) ld a4,0(a5) la a5,TIDENT ld a5,0(a5) beq a4,a5,.L2 ld a5,-40(s0) j .L3 .L2: la a5,keywords lw a4,0(a5) ld a5,-40(s0) lw a5,12(a5) mv a1,a5 mv a0,a4 call map_get@plt mv a5,a0 sw a5,-28(s0) lw a5,-28(s0) sext.w a5,a5 bnez a5,.L4 ld a5,-40(s0) j .L3 .L4: ld a0,-40(s0) call copy_token@plt sd a0,-24(s0) la a5,TKEYWORD ld a4,0(a5) ld a5,-24(s0) sd a4,0(a5) ld a5,-24(s0) lw a4,-28(s0) sw a4,8(a5) ld a5,-24(s0) .L3: mv a0,a5 ld ra,40(sp) ld s0,32(sp) addi sp,sp,48 jr ra .size maybe_convert_keyword, .-maybe_convert_keyword .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_next.c" .intel_syntax noprefix .text .type next, @function next: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 32 mov DWORD PTR -20[rbp], edi mov eax, 0 call lex@PLT mov QWORD PTR -8[rbp], rax mov edx, DWORD PTR -20[rbp] mov rax, QWORD PTR -8[rbp] mov esi, edx mov rdi, rax call is_keyword@PLT test rax, rax je .L2 mov eax, 1 jmp .L3 .L2: mov rax, QWORD PTR -8[rbp] mov rdi, rax call unget_token@PLT mov eax, 0 .L3: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size next, .-next .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_next.c" .option pic .text .align 1 .type next, @function next: addi sp,sp,-48 sd ra,40(sp) sd s0,32(sp) addi s0,sp,48 mv a5,a0 sw a5,-36(s0) call lex@plt sd a0,-24(s0) lw a5,-36(s0) mv a1,a5 ld a0,-24(s0) call is_keyword@plt mv a5,a0 beqz a5,.L2 li a5,1 j .L3 .L2: ld a0,-24(s0) call unget_token@plt li a5,0 .L3: mv a0,a5 ld ra,40(sp) ld s0,32(sp) addi sp,sp,48 jr ra .size next, .-next .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_parse_pragma_operand.c" .intel_syntax noprefix .text .globl enable_warning .bss .align 4 .type enable_warning, @object .size enable_warning, 4 enable_warning: .zero 4 .globl once .align 4 .type once, @object .size once, 4 once: .zero 4 .section .rodata .LC0: .string "once" .LC1: .string "enable_warning" .LC2: .string "disable_warning" .LC3: .string "unknown #pragma: %s" .text .type parse_pragma_operand, @function parse_pragma_operand: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 32 mov QWORD PTR -24[rbp], rdi mov rax, QWORD PTR -24[rbp] mov rax, QWORD PTR [rax] mov QWORD PTR -16[rbp], rax mov rax, QWORD PTR -16[rbp] lea rsi, .LC0[rip] mov rdi, rax call strcmp@PLT test eax, eax jne .L2 mov rax, QWORD PTR -24[rbp] mov rax, QWORD PTR 8[rax] mov eax, DWORD PTR [rax] mov edi, eax call fullpath@PLT mov QWORD PTR -8[rbp], rax mov eax, DWORD PTR once[rip] mov rcx, QWORD PTR -8[rbp] mov edx, 1 mov rsi, rcx mov edi, eax call map_put@PLT jmp .L6 .L2: mov rax, QWORD PTR -16[rbp] lea rsi, .LC1[rip] mov rdi, rax call strcmp@PLT test eax, eax jne .L4 mov DWORD PTR enable_warning[rip], 1 jmp .L6 .L4: mov rax, QWORD PTR -16[rbp] lea rsi, .LC2[rip] mov rdi, rax call strcmp@PLT test eax, eax jne .L5 mov DWORD PTR enable_warning[rip], 0 jmp .L6 .L5: mov rdx, QWORD PTR -16[rbp] mov rax, QWORD PTR -24[rbp] lea rsi, .LC3[rip] mov rdi, rax call errort@PLT .L6: nop leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size parse_pragma_operand, .-parse_pragma_operand .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_parse_pragma_operand.c" .option pic .text .comm enable_warning,4,4 .comm once,4,4 .section .rodata .align 3 .LC0: .string "once" .align 3 .LC1: .string "enable_warning" .align 3 .LC2: .string "disable_warning" .align 3 .LC3: .string "unknown #pragma: %s" .text .align 1 .type parse_pragma_operand, @function parse_pragma_operand: addi sp,sp,-48 sd ra,40(sp) sd s0,32(sp) addi s0,sp,48 sd a0,-40(s0) ld a5,-40(s0) ld a5,0(a5) sd a5,-32(s0) lla a1,.LC0 ld a0,-32(s0) call strcmp@plt mv a5,a0 bnez a5,.L2 ld a5,-40(s0) ld a5,8(a5) lw a5,0(a5) mv a0,a5 call fullpath@plt sd a0,-24(s0) la a5,once lw a5,0(a5) li a2,1 ld a1,-24(s0) mv a0,a5 call map_put@plt j .L6 .L2: lla a1,.LC1 ld a0,-32(s0) call strcmp@plt mv a5,a0 bnez a5,.L4 la a5,enable_warning li a4,1 sw a4,0(a5) j .L6 .L4: lla a1,.LC2 ld a0,-32(s0) call strcmp@plt mv a5,a0 bnez a5,.L5 la a5,enable_warning sw zero,0(a5) j .L6 .L5: ld a2,-32(s0) lla a1,.LC3 ld a0,-40(s0) call errort@plt .L6: nop ld ra,40(sp) ld s0,32(sp) addi sp,sp,48 jr ra .size parse_pragma_operand, .-parse_pragma_operand .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_peek_token.c" .intel_syntax noprefix .text .globl peek_token .type peek_token, @function peek_token: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 16 mov eax, 0 call read_token@PLT mov QWORD PTR -8[rbp], rax mov rax, QWORD PTR -8[rbp] mov rdi, rax call unget_token@PLT mov rax, QWORD PTR -8[rbp] leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size peek_token, .-peek_token .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_peek_token.c" .option pic .text .align 1 .globl peek_token .type peek_token, @function peek_token: addi sp,sp,-32 sd ra,24(sp) sd s0,16(sp) addi s0,sp,32 call read_token@plt sd a0,-24(s0) ld a0,-24(s0) call unget_token@plt ld a5,-24(s0) mv a0,a5 ld ra,24(sp) ld s0,16(sp) addi sp,sp,32 jr ra .size peek_token, .-peek_token .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_propagate_space.c" .intel_syntax noprefix .text .type propagate_space, @function propagate_space: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 32 mov QWORD PTR -24[rbp], rdi mov QWORD PTR -32[rbp], rsi mov rax, QWORD PTR -24[rbp] mov rdi, rax call vec_len@PLT test rax, rax je .L4 mov rax, QWORD PTR -24[rbp] mov rdi, rax call vec_head@PLT mov edi, eax call copy_token@PLT mov QWORD PTR -8[rbp], rax mov rax, QWORD PTR -32[rbp] mov edx, DWORD PTR [rax] mov rax, QWORD PTR -8[rbp] mov DWORD PTR [rax], edx mov rdx, QWORD PTR -8[rbp] mov rax, QWORD PTR -24[rbp] mov esi, 0 mov rdi, rax call vec_set@PLT jmp .L1 .L4: nop .L1: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size propagate_space, .-propagate_space .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_propagate_space.c" .option pic .text .align 1 .type propagate_space, @function propagate_space: addi sp,sp,-48 sd ra,40(sp) sd s0,32(sp) addi s0,sp,48 sd a0,-40(s0) sd a1,-48(s0) ld a0,-40(s0) call vec_len@plt mv a5,a0 beqz a5,.L4 ld a0,-40(s0) call vec_head@plt mv a5,a0 mv a0,a5 call copy_token@plt sd a0,-24(s0) ld a5,-48(s0) lw a4,0(a5) ld a5,-24(s0) sw a4,0(a5) ld a2,-24(s0) li a1,0 ld a0,-40(s0) call vec_set@plt j .L1 .L4: nop .L1: ld ra,40(sp) ld s0,32(sp) addi sp,sp,48 jr ra .size propagate_space, .-propagate_space .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_read_args.c" .intel_syntax noprefix .text .section .rodata .align 8 .LC0: .string "macro argument number does not match" .text .type read_args, @function read_args: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 32 mov QWORD PTR -24[rbp], rdi mov QWORD PTR -32[rbp], rsi mov rax, QWORD PTR -32[rbp] mov rax, QWORD PTR [rax] test rax, rax jne .L2 mov eax, 0 call peek_token@PLT mov esi, 41 mov edi, eax call is_keyword@PLT test rax, rax je .L2 mov eax, 0 call make_vector@PLT jmp .L3 .L2: mov rdx, QWORD PTR -32[rbp] mov rax, QWORD PTR -24[rbp] mov rsi, rdx mov rdi, rax call do_read_args@PLT mov QWORD PTR -8[rbp], rax mov rax, QWORD PTR -8[rbp] mov rdi, rax call vec_len@PLT mov rdx, QWORD PTR -32[rbp] mov rdx, QWORD PTR [rdx] cmp rax, rdx je .L4 mov rax, QWORD PTR -24[rbp] lea rsi, .LC0[rip] mov rdi, rax call errort@PLT .L4: mov rax, QWORD PTR -8[rbp] .L3: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size read_args, .-read_args .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_read_args.c" .option pic .text .section .rodata .align 3 .LC0: .string "macro argument number does not match" .text .align 1 .type read_args, @function read_args: addi sp,sp,-48 sd ra,40(sp) sd s0,32(sp) addi s0,sp,48 sd a0,-40(s0) sd a1,-48(s0) ld a5,-48(s0) ld a5,0(a5) bnez a5,.L2 call peek_token@plt mv a5,a0 li a1,41 mv a0,a5 call is_keyword@plt mv a5,a0 beqz a5,.L2 call make_vector@plt mv a5,a0 j .L3 .L2: ld a1,-48(s0) ld a0,-40(s0) call do_read_args@plt sd a0,-24(s0) ld a0,-24(s0) call vec_len@plt mv a4,a0 ld a5,-48(s0) ld a5,0(a5) beq a4,a5,.L4 lla a1,.LC0 ld a0,-40(s0) call errort@plt .L4: ld a5,-24(s0) .L3: mv a0,a5 ld ra,40(sp) ld s0,32(sp) addi sp,sp,48 jr ra .size read_args, .-read_args .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_read_constexpr.c" .intel_syntax noprefix .text .globl TEOF .bss .align 8 .type TEOF, @object .size TEOF, 8 TEOF: .zero 8 .section .rodata .LC0: .string "stray token: %s" .text .type read_constexpr, @function read_constexpr: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 16 mov eax, 0 call read_intexpr_line@PLT mov edi, eax call vec_reverse@PLT mov edi, eax call token_buffer_stash@PLT mov eax, 0 call read_expr@PLT mov QWORD PTR -16[rbp], rax mov eax, 0 call lex@PLT mov QWORD PTR -8[rbp], rax mov rax, QWORD PTR -8[rbp] mov rdx, QWORD PTR [rax] mov rax, QWORD PTR TEOF[rip] cmp rdx, rax je .L2 mov rax, QWORD PTR -8[rbp] mov rdi, rax call tok2s@PLT mov edx, eax mov rax, QWORD PTR -8[rbp] lea rsi, .LC0[rip] mov rdi, rax call errort@PLT .L2: mov eax, 0 call token_buffer_unstash@PLT mov rax, QWORD PTR -16[rbp] mov esi, 0 mov rdi, rax call eval_intexpr@PLT leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size read_constexpr, .-read_constexpr .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_read_constexpr.c" .option pic .text .comm TEOF,8,8 .section .rodata .align 3 .LC0: .string "stray token: %s" .text .align 1 .type read_constexpr, @function read_constexpr: addi sp,sp,-32 sd ra,24(sp) sd s0,16(sp) addi s0,sp,32 call read_intexpr_line@plt mv a5,a0 mv a0,a5 call vec_reverse@plt mv a5,a0 mv a0,a5 call token_buffer_stash@plt call read_expr@plt sd a0,-32(s0) call lex@plt sd a0,-24(s0) ld a5,-24(s0) ld a4,0(a5) la a5,TEOF ld a5,0(a5) beq a4,a5,.L2 ld a0,-24(s0) call tok2s@plt mv a5,a0 mv a2,a5 lla a1,.LC0 ld a0,-24(s0) call errort@plt .L2: call token_buffer_unstash@plt li a1,0 ld a0,-32(s0) call eval_intexpr@plt mv a5,a0 mv a0,a5 ld ra,24(sp) ld s0,16(sp) addi sp,sp,32 jr ra .size read_constexpr, .-read_constexpr .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_read_cpp_header_name.c" .intel_syntax noprefix .text .globl TNEWLINE .bss .align 8 .type TNEWLINE, @object .size TNEWLINE, 8 TNEWLINE: .zero 8 .globl TSTRING .align 8 .type TSTRING, @object .size TSTRING, 8 TSTRING: .zero 8 .section .rodata .align 8 .LC0: .string "expected filename, but got newline" .LC1: .string "< expected, but got %s" .LC2: .string "premature end of header name" .text .type read_cpp_header_name, @function read_cpp_header_name: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 48 mov QWORD PTR -40[rbp], rdi mov QWORD PTR -48[rbp], rsi mov rax, QWORD PTR -48[rbp] mov rdi, rax call read_header_file_name@PLT mov QWORD PTR -32[rbp], rax cmp QWORD PTR -32[rbp], 0 je .L2 mov rax, QWORD PTR -32[rbp] jmp .L3 .L2: mov eax, 0 call read_expand_newline@PLT mov QWORD PTR -24[rbp], rax mov rax, QWORD PTR -24[rbp] mov rdx, QWORD PTR [rax] mov rax, QWORD PTR TNEWLINE[rip] cmp rdx, rax jne .L4 mov rax, QWORD PTR -40[rbp] lea rsi, .LC0[rip] mov rdi, rax mov eax, 0 call errort@PLT .L4: mov rax, QWORD PTR -24[rbp] mov rdx, QWORD PTR [rax] mov rax, QWORD PTR TSTRING[rip] cmp rdx, rax jne .L5 mov rax, QWORD PTR -48[rbp] mov DWORD PTR [rax], 0 mov rax, QWORD PTR -24[rbp] mov rax, QWORD PTR 8[rax] jmp .L3 .L5: mov rax, QWORD PTR -24[rbp] mov esi, 60 mov rdi, rax call is_keyword@PLT test rax, rax jne .L6 mov rax, QWORD PTR -24[rbp] mov rdi, rax call tok2s@PLT mov edx, eax mov rax, QWORD PTR -24[rbp] lea rsi, .LC1[rip] mov rdi, rax mov eax, 0 call errort@PLT .L6: mov eax, 0 call make_vector@PLT mov QWORD PTR -16[rbp], rax .L10: mov eax, 0 call read_expand_newline@PLT mov QWORD PTR -8[rbp], rax mov rax, QWORD PTR -8[rbp] mov rdx, QWORD PTR [rax] mov rax, QWORD PTR TNEWLINE[rip] cmp rdx, rax jne .L7 mov rax, QWORD PTR -40[rbp] lea rsi, .LC2[rip] mov rdi, rax mov eax, 0 call errort@PLT .L7: mov rax, QWORD PTR -8[rbp] mov esi, 62 mov rdi, rax call is_keyword@PLT test rax, rax jne .L12 mov rdx, QWORD PTR -8[rbp] mov rax, QWORD PTR -16[rbp] mov rsi, rdx mov rdi, rax call vec_push@PLT jmp .L10 .L12: nop mov rax, QWORD PTR -48[rbp] mov DWORD PTR [rax], 1 mov rax, QWORD PTR -16[rbp] mov rdi, rax call join_paths@PLT .L3: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size read_cpp_header_name, .-read_cpp_header_name .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_read_cpp_header_name.c" .option pic .text .comm TNEWLINE,8,8 .comm TSTRING,8,8 .section .rodata .align 3 .LC0: .string "expected filename, but got newline" .align 3 .LC1: .string "< expected, but got %s" .align 3 .LC2: .string "premature end of header name" .text .align 1 .type read_cpp_header_name, @function read_cpp_header_name: addi sp,sp,-64 sd ra,56(sp) sd s0,48(sp) addi s0,sp,64 sd a0,-56(s0) sd a1,-64(s0) ld a0,-64(s0) call read_header_file_name@plt sd a0,-48(s0) ld a5,-48(s0) beqz a5,.L2 ld a5,-48(s0) j .L3 .L2: call read_expand_newline@plt sd a0,-40(s0) ld a5,-40(s0) ld a4,0(a5) la a5,TNEWLINE ld a5,0(a5) bne a4,a5,.L4 lla a1,.LC0 ld a0,-56(s0) call errort@plt .L4: ld a5,-40(s0) ld a4,0(a5) la a5,TSTRING ld a5,0(a5) bne a4,a5,.L5 ld a5,-64(s0) sw zero,0(a5) ld a5,-40(s0) ld a5,8(a5) j .L3 .L5: li a1,60 ld a0,-40(s0) call is_keyword@plt mv a5,a0 bnez a5,.L6 ld a0,-40(s0) call tok2s@plt mv a5,a0 mv a2,a5 lla a1,.LC1 ld a0,-40(s0) call errort@plt .L6: call make_vector@plt sd a0,-32(s0) .L10: call read_expand_newline@plt sd a0,-24(s0) ld a5,-24(s0) ld a4,0(a5) la a5,TNEWLINE ld a5,0(a5) bne a4,a5,.L7 lla a1,.LC2 ld a0,-56(s0) call errort@plt .L7: li a1,62 ld a0,-24(s0) call is_keyword@plt mv a5,a0 bnez a5,.L12 ld a1,-24(s0) ld a0,-32(s0) call vec_push@plt j .L10 .L12: nop ld a5,-64(s0) li a4,1 sw a4,0(a5) ld a0,-32(s0) call join_paths@plt mv a5,a0 .L3: mv a0,a5 ld ra,56(sp) ld s0,48(sp) addi sp,sp,64 jr ra .size read_cpp_header_name, .-read_cpp_header_name .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_read_define.c" .intel_syntax noprefix .text .type read_define, @function read_define: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 16 mov eax, 0 call read_ident@PLT mov QWORD PTR -16[rbp], rax mov eax, 0 call lex@PLT mov QWORD PTR -8[rbp], rax mov rax, QWORD PTR -8[rbp] mov esi, 40 mov rdi, rax call is_keyword@PLT test rax, rax je .L2 mov rax, QWORD PTR -8[rbp] mov eax, DWORD PTR 4[rax] test eax, eax jne .L2 mov rax, QWORD PTR -16[rbp] mov rdi, rax call read_funclike_macro@PLT jmp .L1 .L2: mov rax, QWORD PTR -8[rbp] mov rdi, rax call unget_token@PLT mov rax, QWORD PTR -16[rbp] mov eax, DWORD PTR [rax] mov edi, eax call read_obj_macro@PLT .L1: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size read_define, .-read_define .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_read_define.c" .option pic .text .align 1 .type read_define, @function read_define: addi sp,sp,-32 sd ra,24(sp) sd s0,16(sp) addi s0,sp,32 call read_ident@plt sd a0,-32(s0) call lex@plt sd a0,-24(s0) li a1,40 ld a0,-24(s0) call is_keyword@plt mv a5,a0 beqz a5,.L2 ld a5,-24(s0) lw a5,4(a5) bnez a5,.L2 ld a0,-32(s0) call read_funclike_macro@plt j .L1 .L2: ld a0,-24(s0) call unget_token@plt ld a5,-32(s0) lw a5,0(a5) mv a0,a5 call read_obj_macro@plt .L1: ld ra,24(sp) ld s0,16(sp) addi sp,sp,32 jr ra .size read_define, .-read_define .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_read_defined_op.c" .intel_syntax noprefix .text .globl TIDENT .bss .align 8 .type TIDENT, @object .size TIDENT, 8 TIDENT: .zero 8 .globl cpp_token_one .align 8 .type cpp_token_one, @object .size cpp_token_one, 8 cpp_token_one: .zero 8 .globl cpp_token_zero .align 8 .type cpp_token_zero, @object .size cpp_token_zero, 8 cpp_token_zero: .zero 8 .globl macros .align 4 .type macros, @object .size macros, 4 macros: .zero 4 .section .rodata .align 8 .LC0: .string "identifier expected, but got %s" .text .type read_defined_op, @function read_defined_op: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 16 mov eax, 0 call lex@PLT mov QWORD PTR -8[rbp], rax mov rax, QWORD PTR -8[rbp] mov esi, 40 mov rdi, rax call is_keyword@PLT test rax, rax je .L2 mov eax, 0 call lex@PLT mov QWORD PTR -8[rbp], rax mov edi, 41 call expect@PLT .L2: mov rax, QWORD PTR -8[rbp] mov rdx, QWORD PTR [rax] mov rax, QWORD PTR TIDENT[rip] cmp rdx, rax je .L3 mov rax, QWORD PTR -8[rbp] mov rdi, rax call tok2s@PLT mov edx, eax mov rax, QWORD PTR -8[rbp] lea rsi, .LC0[rip] mov rdi, rax call errort@PLT .L3: mov rax, QWORD PTR -8[rbp] mov edx, DWORD PTR 8[rax] mov eax, DWORD PTR macros[rip] mov esi, edx mov edi, eax call map_get@PLT test rax, rax je .L4 mov rax, QWORD PTR cpp_token_one[rip] jmp .L6 .L4: mov rax, QWORD PTR cpp_token_zero[rip] .L6: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size read_defined_op, .-read_defined_op .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_read_defined_op.c" .option pic .text .comm TIDENT,8,8 .comm cpp_token_one,8,8 .comm cpp_token_zero,8,8 .comm macros,4,4 .section .rodata .align 3 .LC0: .string "identifier expected, but got %s" .text .align 1 .type read_defined_op, @function read_defined_op: addi sp,sp,-32 sd ra,24(sp) sd s0,16(sp) addi s0,sp,32 call lex@plt sd a0,-24(s0) li a1,40 ld a0,-24(s0) call is_keyword@plt mv a5,a0 beqz a5,.L2 call lex@plt sd a0,-24(s0) li a0,41 call expect@plt .L2: ld a5,-24(s0) ld a4,0(a5) la a5,TIDENT ld a5,0(a5) beq a4,a5,.L3 ld a0,-24(s0) call tok2s@plt mv a5,a0 mv a2,a5 lla a1,.LC0 ld a0,-24(s0) call errort@plt .L3: la a5,macros lw a4,0(a5) ld a5,-24(s0) lw a5,8(a5) mv a1,a5 mv a0,a4 call map_get@plt mv a5,a0 beqz a5,.L4 la a5,cpp_token_one ld a5,0(a5) j .L6 .L4: la a5,cpp_token_zero ld a5,0(a5) .L6: mv a0,a5 ld ra,24(sp) ld s0,16(sp) addi sp,sp,32 jr ra .size read_defined_op, .-read_defined_op .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_read_directive.c" .intel_syntax noprefix .text .globl TIDENT .bss .align 8 .type TIDENT, @object .size TIDENT, 8 TIDENT: .zero 8 .globl TNEWLINE .align 8 .type TNEWLINE, @object .size TNEWLINE, 8 TNEWLINE: .zero 8 .globl TNUMBER .align 8 .type TNUMBER, @object .size TNUMBER, 8 TNUMBER: .zero 8 .section .rodata .LC0: .string "define" .LC1: .string "elif" .LC2: .string "else" .LC3: .string "endif" .LC4: .string "error" .LC5: .string "if" .LC6: .string "ifdef" .LC7: .string "ifndef" .LC8: .string "import" .LC9: .string "include" .LC10: .string "include_next" .LC11: .string "line" .LC12: .string "pragma" .LC13: .string "undef" .LC14: .string "warning" .align 8 .LC15: .string "unsupported preprocessor directive: %s" .text .type read_directive, @function read_directive: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 32 mov QWORD PTR -24[rbp], rdi mov eax, 0 call lex@PLT mov QWORD PTR -16[rbp], rax mov rax, QWORD PTR -16[rbp] mov rdx, QWORD PTR [rax] mov rax, QWORD PTR TNEWLINE[rip] cmp rdx, rax je .L23 mov rax, QWORD PTR -16[rbp] mov rdx, QWORD PTR [rax] mov rax, QWORD PTR TNUMBER[rip] cmp rdx, rax jne .L4 mov rax, QWORD PTR -16[rbp] mov rdi, rax call read_linemarker@PLT jmp .L1 .L4: mov rax, QWORD PTR -16[rbp] mov rdx, QWORD PTR [rax] mov rax, QWORD PTR TIDENT[rip] cmp rdx, rax jne .L24 mov rax, QWORD PTR -16[rbp] mov rax, QWORD PTR 8[rax] mov QWORD PTR -8[rbp], rax mov rax, QWORD PTR -8[rbp] lea rsi, .LC0[rip] mov rdi, rax call strcmp@PLT test eax, eax jne .L7 mov eax, 0 call read_define@PLT jmp .L1 .L7: mov rax, QWORD PTR -8[rbp] lea rsi, .LC1[rip] mov rdi, rax call strcmp@PLT test eax, eax jne .L9 mov rax, QWORD PTR -24[rbp] mov rdi, rax call read_elif@PLT jmp .L1 .L9: mov rax, QWORD PTR -8[rbp] lea rsi, .LC2[rip] mov rdi, rax call strcmp@PLT test eax, eax jne .L10 mov rax, QWORD PTR -24[rbp] mov rdi, rax call read_else@PLT jmp .L1 .L10: mov rax, QWORD PTR -8[rbp] lea rsi, .LC3[rip] mov rdi, rax call strcmp@PLT test eax, eax jne .L11 mov rax, QWORD PTR -24[rbp] mov rdi, rax call read_endif@PLT jmp .L1 .L11: mov rax, QWORD PTR -8[rbp] lea rsi, .LC4[rip] mov rdi, rax call strcmp@PLT test eax, eax jne .L12 mov rax, QWORD PTR -24[rbp] mov rdi, rax call read_error@PLT jmp .L1 .L12: mov rax, QWORD PTR -8[rbp] lea rsi, .LC5[rip] mov rdi, rax call strcmp@PLT test eax, eax jne .L13 mov eax, 0 call read_if@PLT jmp .L1 .L13: mov rax, QWORD PTR -8[rbp] lea rsi, .LC6[rip] mov rdi, rax call strcmp@PLT test eax, eax jne .L14 mov eax, 0 call read_ifdef@PLT jmp .L1 .L14: mov rax, QWORD PTR -8[rbp] lea rsi, .LC7[rip] mov rdi, rax call strcmp@PLT test eax, eax jne .L15 mov eax, 0 call read_ifndef@PLT jmp .L1 .L15: mov rax, QWORD PTR -8[rbp] lea rsi, .LC8[rip] mov rdi, rax call strcmp@PLT test eax, eax jne .L16 mov rax, QWORD PTR -16[rbp] mov ecx, DWORD PTR 16[rax] mov rax, QWORD PTR -24[rbp] mov edx, 1 mov esi, ecx mov rdi, rax call read_include@PLT jmp .L1 .L16: mov rax, QWORD PTR -8[rbp] lea rsi, .LC9[rip] mov rdi, rax call strcmp@PLT test eax, eax jne .L17 mov rax, QWORD PTR -16[rbp] mov ecx, DWORD PTR 16[rax] mov rax, QWORD PTR -24[rbp] mov edx, 0 mov esi, ecx mov rdi, rax call read_include@PLT jmp .L1 .L17: mov rax, QWORD PTR -8[rbp] lea rsi, .LC10[rip] mov rdi, rax call strcmp@PLT test eax, eax jne .L18 mov rax, QWORD PTR -16[rbp] mov edx, DWORD PTR 16[rax] mov rax, QWORD PTR -24[rbp] mov esi, edx mov rdi, rax call read_include_next@PLT jmp .L1 .L18: mov rax, QWORD PTR -8[rbp] lea rsi, .LC11[rip] mov rdi, rax call strcmp@PLT test eax, eax jne .L19 mov eax, 0 call read_line@PLT jmp .L1 .L19: mov rax, QWORD PTR -8[rbp] lea rsi, .LC12[rip] mov rdi, rax call strcmp@PLT test eax, eax jne .L20 mov eax, 0 call read_pragma@PLT jmp .L1 .L20: mov rax, QWORD PTR -8[rbp] lea rsi, .LC13[rip] mov rdi, rax call strcmp@PLT test eax, eax jne .L21 mov eax, 0 call read_undef@PLT jmp .L1 .L21: mov rax, QWORD PTR -8[rbp] lea rsi, .LC14[rip] mov rdi, rax call strcmp@PLT test eax, eax jne .L25 mov rax, QWORD PTR -24[rbp] mov rdi, rax call read_warning@PLT jmp .L1 .L24: nop jmp .L6 .L25: nop .L6: mov rax, QWORD PTR -16[rbp] mov rdi, rax call tok2s@PLT mov edx, eax mov rax, QWORD PTR -24[rbp] lea rsi, .LC15[rip] mov rdi, rax call errort@PLT jmp .L1 .L23: nop .L1: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size read_directive, .-read_directive .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_read_directive.c" .option pic .text .comm TIDENT,8,8 .comm TNEWLINE,8,8 .comm TNUMBER,8,8 .section .rodata .align 3 .LC0: .string "define" .align 3 .LC1: .string "elif" .align 3 .LC2: .string "else" .align 3 .LC3: .string "endif" .align 3 .LC4: .string "error" .align 3 .LC5: .string "if" .align 3 .LC6: .string "ifdef" .align 3 .LC7: .string "ifndef" .align 3 .LC8: .string "import" .align 3 .LC9: .string "include" .align 3 .LC10: .string "include_next" .align 3 .LC11: .string "line" .align 3 .LC12: .string "pragma" .align 3 .LC13: .string "undef" .align 3 .LC14: .string "warning" .align 3 .LC15: .string "unsupported preprocessor directive: %s" .text .align 1 .type read_directive, @function read_directive: addi sp,sp,-48 sd ra,40(sp) sd s0,32(sp) addi s0,sp,48 sd a0,-40(s0) call lex@plt sd a0,-32(s0) ld a5,-32(s0) ld a4,0(a5) la a5,TNEWLINE ld a5,0(a5) beq a4,a5,.L23 ld a5,-32(s0) ld a4,0(a5) la a5,TNUMBER ld a5,0(a5) bne a4,a5,.L4 ld a0,-32(s0) call read_linemarker@plt j .L1 .L4: ld a5,-32(s0) ld a4,0(a5) la a5,TIDENT ld a5,0(a5) bne a4,a5,.L24 ld a5,-32(s0) ld a5,8(a5) sd a5,-24(s0) lla a1,.LC0 ld a0,-24(s0) call strcmp@plt mv a5,a0 bnez a5,.L7 call read_define@plt j .L1 .L7: lla a1,.LC1 ld a0,-24(s0) call strcmp@plt mv a5,a0 bnez a5,.L9 ld a0,-40(s0) call read_elif@plt j .L1 .L9: lla a1,.LC2 ld a0,-24(s0) call strcmp@plt mv a5,a0 bnez a5,.L10 ld a0,-40(s0) call read_else@plt j .L1 .L10: lla a1,.LC3 ld a0,-24(s0) call strcmp@plt mv a5,a0 bnez a5,.L11 ld a0,-40(s0) call read_endif@plt j .L1 .L11: lla a1,.LC4 ld a0,-24(s0) call strcmp@plt mv a5,a0 bnez a5,.L12 ld a0,-40(s0) call read_error@plt j .L1 .L12: lla a1,.LC5 ld a0,-24(s0) call strcmp@plt mv a5,a0 bnez a5,.L13 call read_if@plt j .L1 .L13: lla a1,.LC6 ld a0,-24(s0) call strcmp@plt mv a5,a0 bnez a5,.L14 call read_ifdef@plt j .L1 .L14: lla a1,.LC7 ld a0,-24(s0) call strcmp@plt mv a5,a0 bnez a5,.L15 call read_ifndef@plt j .L1 .L15: lla a1,.LC8 ld a0,-24(s0) call strcmp@plt mv a5,a0 bnez a5,.L16 ld a5,-32(s0) lw a5,16(a5) li a2,1 mv a1,a5 ld a0,-40(s0) call read_include@plt j .L1 .L16: lla a1,.LC9 ld a0,-24(s0) call strcmp@plt mv a5,a0 bnez a5,.L17 ld a5,-32(s0) lw a5,16(a5) li a2,0 mv a1,a5 ld a0,-40(s0) call read_include@plt j .L1 .L17: lla a1,.LC10 ld a0,-24(s0) call strcmp@plt mv a5,a0 bnez a5,.L18 ld a5,-32(s0) lw a5,16(a5) mv a1,a5 ld a0,-40(s0) call read_include_next@plt j .L1 .L18: lla a1,.LC11 ld a0,-24(s0) call strcmp@plt mv a5,a0 bnez a5,.L19 call read_line@plt j .L1 .L19: lla a1,.LC12 ld a0,-24(s0) call strcmp@plt mv a5,a0 bnez a5,.L20 call read_pragma@plt j .L1 .L20: lla a1,.LC13 ld a0,-24(s0) call strcmp@plt mv a5,a0 bnez a5,.L21 call read_undef@plt j .L1 .L21: lla a1,.LC14 ld a0,-24(s0) call strcmp@plt mv a5,a0 bnez a5,.L25 ld a0,-40(s0) call read_warning@plt j .L1 .L24: nop j .L6 .L25: nop .L6: ld a0,-32(s0) call tok2s@plt mv a5,a0 mv a2,a5 lla a1,.LC15 ld a0,-40(s0) call errort@plt j .L1 .L23: nop .L1: ld ra,40(sp) ld s0,32(sp) addi sp,sp,48 jr ra .size read_directive, .-read_directive .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_read_elif.c" .intel_syntax noprefix .text .globl IN_ELIF .bss .align 8 .type IN_ELIF, @object .size IN_ELIF, 8 IN_ELIF: .zero 8 .globl IN_ELSE .align 8 .type IN_ELSE, @object .size IN_ELSE, 8 IN_ELSE: .zero 8 .globl cond_incl_stack .align 4 .type cond_incl_stack, @object .size cond_incl_stack, 4 cond_incl_stack: .zero 4 .section .rodata .LC0: .string "stray #elif" .LC1: .string "#elif after #else" .text .type read_elif, @function read_elif: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 32 mov QWORD PTR -24[rbp], rdi mov eax, DWORD PTR cond_incl_stack[rip] mov edi, eax call vec_len@PLT test rax, rax jne .L2 mov rax, QWORD PTR -24[rbp] lea rsi, .LC0[rip] mov rdi, rax call errort@PLT .L2: mov eax, DWORD PTR cond_incl_stack[rip] mov edi, eax call vec_tail@PLT mov QWORD PTR -8[rbp], rax mov rax, QWORD PTR -8[rbp] mov rdx, QWORD PTR [rax] mov rax, QWORD PTR IN_ELSE[rip] cmp rdx, rax jne .L3 mov rax, QWORD PTR -24[rbp] lea rsi, .LC1[rip] mov rdi, rax call errort@PLT .L3: mov rdx, QWORD PTR IN_ELIF[rip] mov rax, QWORD PTR -8[rbp] mov QWORD PTR [rax], rdx mov rax, QWORD PTR -8[rbp] mov QWORD PTR 16[rax], 0 mov rax, QWORD PTR -8[rbp] mov eax, DWORD PTR 8[rax] test eax, eax jne .L4 mov eax, 0 call read_constexpr@PLT test eax, eax jne .L5 .L4: mov eax, 0 call skip_cond_incl@PLT jmp .L1 .L5: mov rax, QWORD PTR -8[rbp] mov DWORD PTR 8[rax], 1 .L1: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size read_elif, .-read_elif .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_read_elif.c" .option pic .text .comm IN_ELIF,8,8 .comm IN_ELSE,8,8 .comm cond_incl_stack,4,4 .section .rodata .align 3 .LC0: .string "stray #elif" .align 3 .LC1: .string "#elif after #else" .text .align 1 .type read_elif, @function read_elif: addi sp,sp,-48 sd ra,40(sp) sd s0,32(sp) addi s0,sp,48 sd a0,-40(s0) la a5,cond_incl_stack lw a5,0(a5) mv a0,a5 call vec_len@plt mv a5,a0 bnez a5,.L2 lla a1,.LC0 ld a0,-40(s0) call errort@plt .L2: la a5,cond_incl_stack lw a5,0(a5) mv a0,a5 call vec_tail@plt sd a0,-24(s0) ld a5,-24(s0) ld a4,0(a5) la a5,IN_ELSE ld a5,0(a5) bne a4,a5,.L3 lla a1,.LC1 ld a0,-40(s0) call errort@plt .L3: la a5,IN_ELIF ld a4,0(a5) ld a5,-24(s0) sd a4,0(a5) ld a5,-24(s0) sd zero,16(a5) ld a5,-24(s0) lw a5,8(a5) bnez a5,.L4 call read_constexpr@plt mv a5,a0 bnez a5,.L5 .L4: call skip_cond_incl@plt j .L1 .L5: ld a5,-24(s0) li a4,1 sw a4,8(a5) .L1: ld ra,40(sp) ld s0,32(sp) addi sp,sp,48 jr ra .size read_elif, .-read_elif .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_read_else.c" .intel_syntax noprefix .text .globl IN_ELSE .bss .align 8 .type IN_ELSE, @object .size IN_ELSE, 8 IN_ELSE: .zero 8 .globl cond_incl_stack .align 4 .type cond_incl_stack, @object .size cond_incl_stack, 4 cond_incl_stack: .zero 4 .section .rodata .LC0: .string "stray #else" .LC1: .string "#else appears in #else" .text .type read_else, @function read_else: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 32 mov QWORD PTR -24[rbp], rdi mov eax, DWORD PTR cond_incl_stack[rip] mov edi, eax call vec_len@PLT test rax, rax jne .L2 mov rax, QWORD PTR -24[rbp] lea rsi, .LC0[rip] mov rdi, rax call errort@PLT .L2: mov eax, DWORD PTR cond_incl_stack[rip] mov edi, eax call vec_tail@PLT mov QWORD PTR -8[rbp], rax mov rax, QWORD PTR -8[rbp] mov rdx, QWORD PTR [rax] mov rax, QWORD PTR IN_ELSE[rip] cmp rdx, rax jne .L3 mov rax, QWORD PTR -24[rbp] lea rsi, .LC1[rip] mov rdi, rax call errort@PLT .L3: mov eax, 0 call expect_newline@PLT mov rdx, QWORD PTR IN_ELSE[rip] mov rax, QWORD PTR -8[rbp] mov QWORD PTR [rax], rdx mov rax, QWORD PTR -8[rbp] mov QWORD PTR 16[rax], 0 mov rax, QWORD PTR -8[rbp] mov rax, QWORD PTR 8[rax] test rax, rax je .L5 mov eax, 0 call skip_cond_incl@PLT .L5: nop leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size read_else, .-read_else .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_read_else.c" .option pic .text .comm IN_ELSE,8,8 .comm cond_incl_stack,4,4 .section .rodata .align 3 .LC0: .string "stray #else" .align 3 .LC1: .string "#else appears in #else" .text .align 1 .type read_else, @function read_else: addi sp,sp,-48 sd ra,40(sp) sd s0,32(sp) addi s0,sp,48 sd a0,-40(s0) la a5,cond_incl_stack lw a5,0(a5) mv a0,a5 call vec_len@plt mv a5,a0 bnez a5,.L2 lla a1,.LC0 ld a0,-40(s0) call errort@plt .L2: la a5,cond_incl_stack lw a5,0(a5) mv a0,a5 call vec_tail@plt sd a0,-24(s0) ld a5,-24(s0) ld a4,0(a5) la a5,IN_ELSE ld a5,0(a5) bne a4,a5,.L3 lla a1,.LC1 ld a0,-40(s0) call errort@plt .L3: call expect_newline@plt la a5,IN_ELSE ld a4,0(a5) ld a5,-24(s0) sd a4,0(a5) ld a5,-24(s0) sd zero,16(a5) ld a5,-24(s0) ld a5,8(a5) beqz a5,.L5 call skip_cond_incl@plt .L5: nop ld ra,40(sp) ld s0,32(sp) addi sp,sp,48 jr ra .size read_else, .-read_else .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_read_endif.c" .intel_syntax noprefix .text .globl cond_incl_stack .bss .align 4 .type cond_incl_stack, @object .size cond_incl_stack, 4 cond_incl_stack: .zero 4 .globl include_guard .align 4 .type include_guard, @object .size include_guard, 4 include_guard: .zero 4 .section .rodata .LC0: .string "stray #endif" .text .type read_endif, @function read_endif: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 32 mov QWORD PTR -24[rbp], rdi mov eax, DWORD PTR cond_incl_stack[rip] mov edi, eax call vec_len@PLT test rax, rax jne .L2 mov rax, QWORD PTR -24[rbp] lea rsi, .LC0[rip] mov rdi, rax call errort@PLT .L2: mov eax, DWORD PTR cond_incl_stack[rip] mov edi, eax call vec_pop@PLT mov QWORD PTR -16[rbp], rax mov eax, 0 call expect_newline@PLT mov rax, QWORD PTR -16[rbp] mov eax, DWORD PTR [rax] test eax, eax je .L6 mov rax, QWORD PTR -16[rbp] mov rdx, QWORD PTR 8[rax] mov rax, QWORD PTR -24[rbp] mov rax, QWORD PTR [rax] cmp rdx, rax jne .L6 mov eax, 0 call skip_newlines@PLT mov QWORD PTR -8[rbp], rax mov rax, QWORD PTR -16[rbp] mov rdx, QWORD PTR 8[rax] mov rax, QWORD PTR -8[rbp] mov rax, QWORD PTR [rax] cmp rdx, rax je .L1 mov rax, QWORD PTR -16[rbp] mov edx, DWORD PTR [rax] mov rax, QWORD PTR -16[rbp] mov rax, QWORD PTR 8[rax] mov ecx, DWORD PTR [rax] mov eax, DWORD PTR include_guard[rip] mov esi, ecx mov edi, eax call map_put@PLT jmp .L1 .L6: nop .L1: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size read_endif, .-read_endif .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_read_endif.c" .option pic .text .comm cond_incl_stack,4,4 .comm include_guard,4,4 .section .rodata .align 3 .LC0: .string "stray #endif" .text .align 1 .type read_endif, @function read_endif: addi sp,sp,-48 sd ra,40(sp) sd s0,32(sp) addi s0,sp,48 sd a0,-40(s0) la a5,cond_incl_stack lw a5,0(a5) mv a0,a5 call vec_len@plt mv a5,a0 bnez a5,.L2 lla a1,.LC0 ld a0,-40(s0) call errort@plt .L2: la a5,cond_incl_stack lw a5,0(a5) mv a0,a5 call vec_pop@plt sd a0,-32(s0) call expect_newline@plt ld a5,-32(s0) lw a5,0(a5) beqz a5,.L6 ld a5,-32(s0) ld a4,8(a5) ld a5,-40(s0) ld a5,0(a5) bne a4,a5,.L6 call skip_newlines@plt sd a0,-24(s0) ld a5,-32(s0) ld a4,8(a5) ld a5,-24(s0) ld a5,0(a5) beq a4,a5,.L1 la a5,include_guard lw a4,0(a5) ld a5,-32(s0) ld a5,8(a5) lw a3,0(a5) ld a5,-32(s0) lw a5,0(a5) mv a2,a5 mv a1,a3 mv a0,a4 call map_put@plt j .L1 .L6: nop .L1: ld ra,40(sp) ld s0,32(sp) addi sp,sp,48 jr ra .size read_endif, .-read_endif .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_read_error.c" .intel_syntax noprefix .text .section .rodata .LC0: .string "#error: %s" .text .type read_error, @function read_error: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 16 mov QWORD PTR -8[rbp], rdi mov eax, 0 call read_error_message@PLT mov edx, eax mov rax, QWORD PTR -8[rbp] lea rsi, .LC0[rip] mov rdi, rax call errort@PLT nop leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size read_error, .-read_error .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_read_error.c" .option pic .text .section .rodata .align 3 .LC0: .string "#error: %s" .text .align 1 .type read_error, @function read_error: addi sp,sp,-32 sd ra,24(sp) sd s0,16(sp) addi s0,sp,32 sd a0,-24(s0) call read_error_message@plt mv a5,a0 mv a2,a5 lla a1,.LC0 ld a0,-24(s0) call errort@plt nop ld ra,24(sp) ld s0,16(sp) addi sp,sp,32 jr ra .size read_error, .-read_error .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_read_error_message.c" .intel_syntax noprefix .text .globl TNEWLINE .bss .align 8 .type TNEWLINE, @object .size TNEWLINE, 8 TNEWLINE: .zero 8 .section .rodata .LC0: .string "%s" .text .type read_error_message, @function read_error_message: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 16 mov eax, 0 call make_buffer@PLT mov QWORD PTR -16[rbp], rax .L5: mov eax, 0 call lex@PLT mov QWORD PTR -8[rbp], rax mov rax, QWORD PTR -8[rbp] mov rdx, QWORD PTR [rax] mov rax, QWORD PTR TNEWLINE[rip] cmp rdx, rax jne .L2 mov rax, QWORD PTR -16[rbp] mov rdi, rax call buf_body@PLT jmp .L6 .L2: mov rax, QWORD PTR -16[rbp] mov rdi, rax call buf_len@PLT test rax, rax je .L4 mov rax, QWORD PTR -8[rbp] mov rax, QWORD PTR 8[rax] test rax, rax je .L4 mov rax, QWORD PTR -16[rbp] mov esi, 32 mov rdi, rax call buf_write@PLT .L4: mov rax, QWORD PTR -8[rbp] mov rdi, rax call tok2s@PLT mov edx, eax mov rax, QWORD PTR -16[rbp] lea rsi, .LC0[rip] mov rdi, rax call buf_printf@PLT jmp .L5 .L6: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size read_error_message, .-read_error_message .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_read_error_message.c" .option pic .text .comm TNEWLINE,8,8 .section .rodata .align 3 .LC0: .string "%s" .text .align 1 .type read_error_message, @function read_error_message: addi sp,sp,-32 sd ra,24(sp) sd s0,16(sp) addi s0,sp,32 call make_buffer@plt sd a0,-32(s0) .L5: call lex@plt sd a0,-24(s0) ld a5,-24(s0) ld a4,0(a5) la a5,TNEWLINE ld a5,0(a5) bne a4,a5,.L2 ld a0,-32(s0) call buf_body@plt mv a5,a0 j .L6 .L2: ld a0,-32(s0) call buf_len@plt mv a5,a0 beqz a5,.L4 ld a5,-24(s0) ld a5,8(a5) beqz a5,.L4 li a1,32 ld a0,-32(s0) call buf_write@plt .L4: ld a0,-24(s0) call tok2s@plt mv a5,a0 mv a2,a5 lla a1,.LC0 ld a0,-32(s0) call buf_printf@plt j .L5 .L6: mv a0,a5 ld ra,24(sp) ld s0,16(sp) addi sp,sp,32 jr ra .size read_error_message, .-read_error_message .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_read_expand.c" .intel_syntax noprefix .text .globl TNEWLINE .bss .align 8 .type TNEWLINE, @object .size TNEWLINE, 8 TNEWLINE: .zero 8 .text .type read_expand, @function read_expand: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 16 .L4: mov eax, 0 call read_expand_newline@PLT mov QWORD PTR -8[rbp], rax mov rax, QWORD PTR -8[rbp] mov rdx, QWORD PTR [rax] mov rax, QWORD PTR TNEWLINE[rip] cmp rdx, rax je .L4 mov rax, QWORD PTR -8[rbp] leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size read_expand, .-read_expand .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_read_expand.c" .option pic .text .comm TNEWLINE,8,8 .align 1 .type read_expand, @function read_expand: addi sp,sp,-32 sd ra,24(sp) sd s0,16(sp) addi s0,sp,32 .L4: call read_expand_newline@plt sd a0,-24(s0) ld a5,-24(s0) ld a4,0(a5) la a5,TNEWLINE ld a5,0(a5) beq a4,a5,.L4 ld a5,-24(s0) mv a0,a5 ld ra,24(sp) ld s0,16(sp) addi sp,sp,32 jr ra .size read_expand, .-read_expand .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_read_expand_newline.c" .intel_syntax noprefix .text .globl TIDENT .bss .align 8 .type TIDENT, @object .size TIDENT, 8 TIDENT: .zero 8 .globl macros .align 4 .type macros, @object .size macros, 4 macros: .zero 4 .section .rodata .LC0: .string "internal error" .text .type read_expand_newline, @function read_expand_newline: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 80 mov eax, 0 call lex@PLT mov QWORD PTR -72[rbp], rax mov rax, QWORD PTR -72[rbp] mov rdx, QWORD PTR [rax] mov rax, QWORD PTR TIDENT[rip] cmp rdx, rax je .L2 mov rax, QWORD PTR -72[rbp] jmp .L1 .L2: mov rax, QWORD PTR -72[rbp] mov rax, QWORD PTR 8[rax] mov QWORD PTR -64[rbp], rax mov eax, DWORD PTR macros[rip] mov rdx, QWORD PTR -64[rbp] mov rsi, rdx mov edi, eax call map_get@PLT mov QWORD PTR -56[rbp], rax cmp QWORD PTR -56[rbp], 0 je .L4 mov rax, QWORD PTR -72[rbp] mov eax, DWORD PTR 16[rax] mov rdx, QWORD PTR -64[rbp] mov rsi, rdx mov edi, eax call set_has@PLT test rax, rax je .L5 .L4: mov rax, QWORD PTR -72[rbp] jmp .L1 .L5: mov rax, QWORD PTR -56[rbp] mov eax, DWORD PTR [rax] cmp eax, 130 je .L6 cmp eax, 130 jg .L7 cmp eax, 128 je .L8 cmp eax, 129 jne .L7 mov rax, QWORD PTR -72[rbp] mov eax, DWORD PTR 16[rax] mov rdx, QWORD PTR -64[rbp] mov rsi, rdx mov edi, eax call set_add@PLT mov QWORD PTR -16[rbp], rax mov rdx, QWORD PTR -16[rbp] mov rax, QWORD PTR -56[rbp] mov esi, 0 mov rdi, rax call subst@PLT mov QWORD PTR -8[rbp], rax mov rdx, QWORD PTR -72[rbp] mov rax, QWORD PTR -8[rbp] mov rsi, rdx mov rdi, rax call propagate_space@PLT mov rax, QWORD PTR -8[rbp] mov rdi, rax call unget_all@PLT mov eax, 0 call read_expand@PLT jmp .L1 .L6: mov edi, 40 call next@PLT test eax, eax jne .L9 mov rax, QWORD PTR -72[rbp] jmp .L1 .L9: mov rdx, QWORD PTR -56[rbp] mov rax, QWORD PTR -72[rbp] mov rsi, rdx mov rdi, rax call read_args@PLT mov QWORD PTR -48[rbp], rax mov eax, 0 call peek_token@PLT mov QWORD PTR -40[rbp], rax mov edi, 41 call expect@PLT mov rax, QWORD PTR -40[rbp] mov edx, DWORD PTR 16[rax] mov rax, QWORD PTR -72[rbp] mov eax, DWORD PTR 16[rax] mov esi, edx mov edi, eax call set_intersection@PLT mov edx, eax mov rax, QWORD PTR -64[rbp] mov rsi, rax mov edi, edx call set_add@PLT mov QWORD PTR -32[rbp], rax mov rdx, QWORD PTR -32[rbp] mov rcx, QWORD PTR -48[rbp] mov rax, QWORD PTR -56[rbp] mov rsi, rcx mov rdi, rax call subst@PLT mov QWORD PTR -24[rbp], rax mov rdx, QWORD PTR -72[rbp] mov rax, QWORD PTR -24[rbp] mov rsi, rdx mov rdi, rax call propagate_space@PLT mov rax, QWORD PTR -24[rbp] mov rdi, rax call unget_all@PLT mov eax, 0 call read_expand@PLT jmp .L1 .L8: mov rax, QWORD PTR -56[rbp] mov rdx, QWORD PTR 8[rax] mov rax, QWORD PTR -72[rbp] mov rdi, rax call rdx mov eax, 0 call read_expand@PLT jmp .L1 .L7: lea rdi, .LC0[rip] call error@PLT .L1: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size read_expand_newline, .-read_expand_newline .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_read_expand_newline.c" .option pic .text .comm TIDENT,8,8 .comm macros,4,4 .section .rodata .align 3 .LC0: .string "internal error" .text .align 1 .type read_expand_newline, @function read_expand_newline: addi sp,sp,-96 sd ra,88(sp) sd s0,80(sp) addi s0,sp,96 call lex@plt sd a0,-88(s0) ld a5,-88(s0) ld a4,0(a5) la a5,TIDENT ld a5,0(a5) beq a4,a5,.L2 ld a5,-88(s0) j .L1 .L2: ld a5,-88(s0) ld a5,8(a5) sd a5,-80(s0) la a5,macros lw a5,0(a5) ld a1,-80(s0) mv a0,a5 call map_get@plt sd a0,-72(s0) ld a5,-72(s0) beqz a5,.L4 ld a5,-88(s0) lw a5,16(a5) ld a1,-80(s0) mv a0,a5 call set_has@plt mv a5,a0 beqz a5,.L5 .L4: ld a5,-88(s0) j .L1 .L5: ld a5,-72(s0) lw a5,0(a5) mv a3,a5 li a4,130 beq a3,a4,.L6 mv a3,a5 li a4,130 bgt a3,a4,.L7 mv a3,a5 li a4,128 beq a3,a4,.L8 mv a4,a5 li a5,129 bne a4,a5,.L7 ld a5,-88(s0) lw a5,16(a5) ld a1,-80(s0) mv a0,a5 call set_add@plt sd a0,-32(s0) ld a2,-32(s0) li a1,0 ld a0,-72(s0) call subst@plt sd a0,-24(s0) ld a1,-88(s0) ld a0,-24(s0) call propagate_space@plt ld a0,-24(s0) call unget_all@plt call read_expand@plt mv a5,a0 j .L1 .L6: li a0,40 call next@plt mv a5,a0 bnez a5,.L9 ld a5,-88(s0) j .L1 .L9: ld a1,-72(s0) ld a0,-88(s0) call read_args@plt sd a0,-64(s0) call peek_token@plt sd a0,-56(s0) li a0,41 call expect@plt ld a5,-88(s0) lw a4,16(a5) ld a5,-56(s0) lw a5,16(a5) mv a1,a5 mv a0,a4 call set_intersection@plt mv a5,a0 ld a1,-80(s0) mv a0,a5 call set_add@plt sd a0,-48(s0) ld a2,-48(s0) ld a1,-64(s0) ld a0,-72(s0) call subst@plt sd a0,-40(s0) ld a1,-88(s0) ld a0,-40(s0) call propagate_space@plt ld a0,-40(s0) call unget_all@plt call read_expand@plt mv a5,a0 j .L1 .L8: ld a5,-72(s0) ld a5,8(a5) ld a0,-88(s0) jalr a5 call read_expand@plt mv a5,a0 j .L1 .L7: lla a0,.LC0 call error@plt .L1: mv a0,a5 ld ra,88(sp) ld s0,80(sp) addi sp,sp,96 jr ra .size read_expand_newline, .-read_expand_newline .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_read_from_string.c" .intel_syntax noprefix .text .globl read_from_string .type read_from_string, @function read_from_string: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 32 mov QWORD PTR -24[rbp], rdi mov rax, QWORD PTR -24[rbp] mov rdi, rax call make_file_string@PLT mov edi, eax call stream_stash@PLT mov eax, 0 call read_toplevels@PLT mov QWORD PTR -8[rbp], rax mov DWORD PTR -12[rbp], 0 jmp .L2 .L3: mov edx, DWORD PTR -12[rbp] mov rax, QWORD PTR -8[rbp] mov esi, edx mov rdi, rax call vec_get@PLT mov edi, eax call emit_toplevel@PLT add DWORD PTR -12[rbp], 1 .L2: mov rax, QWORD PTR -8[rbp] mov rdi, rax call vec_len@PLT cmp DWORD PTR -12[rbp], eax jl .L3 mov eax, 0 call stream_unstash@PLT nop leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size read_from_string, .-read_from_string .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_read_from_string.c" .option pic .text .align 1 .globl read_from_string .type read_from_string, @function read_from_string: addi sp,sp,-48 sd ra,40(sp) sd s0,32(sp) addi s0,sp,48 sd a0,-40(s0) ld a0,-40(s0) call make_file_string@plt mv a5,a0 mv a0,a5 call stream_stash@plt call read_toplevels@plt sd a0,-24(s0) sw zero,-28(s0) j .L2 .L3: lw a5,-28(s0) mv a1,a5 ld a0,-24(s0) call vec_get@plt mv a5,a0 mv a0,a5 call emit_toplevel@plt lw a5,-28(s0) addiw a5,a5,1 sw a5,-28(s0) .L2: ld a0,-24(s0) call vec_len@plt mv a5,a0 mv a4,a5 lw a5,-28(s0) sext.w a5,a5 blt a5,a4,.L3 call stream_unstash@plt nop ld ra,40(sp) ld s0,32(sp) addi sp,sp,48 jr ra .size read_from_string, .-read_from_string .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_read_funclike_macro.c" .intel_syntax noprefix .text .globl macros .bss .align 4 .type macros, @object .size macros, 4 macros: .zero 4 .text .type read_funclike_macro, @function read_funclike_macro: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 48 mov QWORD PTR -40[rbp], rdi mov eax, 0 call make_map@PLT mov QWORD PTR -24[rbp], rax mov rdx, QWORD PTR -24[rbp] mov rax, QWORD PTR -40[rbp] mov rsi, rdx mov rdi, rax call read_funclike_macro_params@PLT mov DWORD PTR -28[rbp], eax mov rax, QWORD PTR -24[rbp] mov rdi, rax call read_funclike_macro_body@PLT mov QWORD PTR -16[rbp], rax mov rax, QWORD PTR -16[rbp] mov rdi, rax call hashhash_check@PLT mov rax, QWORD PTR -24[rbp] mov rdi, rax call map_len@PLT mov ecx, eax mov edx, DWORD PTR -28[rbp] mov rax, QWORD PTR -16[rbp] mov esi, ecx mov rdi, rax call make_func_macro@PLT mov QWORD PTR -8[rbp], rax mov rax, QWORD PTR -40[rbp] mov ecx, DWORD PTR [rax] mov eax, DWORD PTR macros[rip] mov rdx, QWORD PTR -8[rbp] mov esi, ecx mov edi, eax call map_put@PLT nop leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size read_funclike_macro, .-read_funclike_macro .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_read_funclike_macro.c" .option pic .text .comm macros,4,4 .align 1 .type read_funclike_macro, @function read_funclike_macro: addi sp,sp,-64 sd ra,56(sp) sd s0,48(sp) addi s0,sp,64 sd a0,-56(s0) call make_map@plt sd a0,-40(s0) ld a1,-40(s0) ld a0,-56(s0) call read_funclike_macro_params@plt mv a5,a0 sw a5,-44(s0) ld a0,-40(s0) call read_funclike_macro_body@plt sd a0,-32(s0) ld a0,-32(s0) call hashhash_check@plt ld a0,-40(s0) call map_len@plt mv a5,a0 mv a4,a5 lw a5,-44(s0) mv a2,a5 mv a1,a4 ld a0,-32(s0) call make_func_macro@plt sd a0,-24(s0) la a5,macros lw a4,0(a5) ld a5,-56(s0) lw a5,0(a5) ld a2,-24(s0) mv a1,a5 mv a0,a4 call map_put@plt nop ld ra,56(sp) ld s0,48(sp) addi sp,sp,64 jr ra .size read_funclike_macro, .-read_funclike_macro .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_read_funclike_macro_body.c" .intel_syntax noprefix .text .globl TIDENT .bss .align 8 .type TIDENT, @object .size TIDENT, 8 TIDENT: .zero 8 .globl TNEWLINE .align 8 .type TNEWLINE, @object .size TNEWLINE, 8 TNEWLINE: .zero 8 .text .type read_funclike_macro_body, @function read_funclike_macro_body: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 48 mov QWORD PTR -40[rbp], rdi mov eax, 0 call make_vector@PLT mov QWORD PTR -24[rbp], rax .L6: mov eax, 0 call lex@PLT mov QWORD PTR -16[rbp], rax mov rax, QWORD PTR -16[rbp] mov rdx, QWORD PTR [rax] mov rax, QWORD PTR TNEWLINE[rip] cmp rdx, rax jne .L2 mov rax, QWORD PTR -24[rbp] jmp .L7 .L2: mov rax, QWORD PTR -16[rbp] mov rdx, QWORD PTR [rax] mov rax, QWORD PTR TIDENT[rip] cmp rdx, rax jne .L4 mov rax, QWORD PTR -16[rbp] mov edx, DWORD PTR 12[rax] mov rax, QWORD PTR -40[rbp] mov esi, edx mov rdi, rax call map_get@PLT mov QWORD PTR -8[rbp], rax cmp QWORD PTR -8[rbp], 0 je .L4 mov rax, QWORD PTR -8[rbp] mov rdi, rax call copy_token@PLT mov QWORD PTR -8[rbp], rax mov rax, QWORD PTR -16[rbp] mov edx, DWORD PTR 8[rax] mov rax, QWORD PTR -8[rbp] mov DWORD PTR 8[rax], edx mov rdx, QWORD PTR -8[rbp] mov rax, QWORD PTR -24[rbp] mov rsi, rdx mov rdi, rax call vec_push@PLT jmp .L5 .L4: mov rdx, QWORD PTR -16[rbp] mov rax, QWORD PTR -24[rbp] mov rsi, rdx mov rdi, rax call vec_push@PLT .L5: jmp .L6 .L7: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size read_funclike_macro_body, .-read_funclike_macro_body .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_read_funclike_macro_body.c" .option pic .text .comm TIDENT,8,8 .comm TNEWLINE,8,8 .align 1 .type read_funclike_macro_body, @function read_funclike_macro_body: addi sp,sp,-64 sd ra,56(sp) sd s0,48(sp) addi s0,sp,64 sd a0,-56(s0) call make_vector@plt sd a0,-40(s0) .L6: call lex@plt sd a0,-32(s0) ld a5,-32(s0) ld a4,0(a5) la a5,TNEWLINE ld a5,0(a5) bne a4,a5,.L2 ld a5,-40(s0) j .L7 .L2: ld a5,-32(s0) ld a4,0(a5) la a5,TIDENT ld a5,0(a5) bne a4,a5,.L4 ld a5,-32(s0) lw a5,12(a5) mv a1,a5 ld a0,-56(s0) call map_get@plt sd a0,-24(s0) ld a5,-24(s0) beqz a5,.L4 ld a0,-24(s0) call copy_token@plt sd a0,-24(s0) ld a5,-32(s0) lw a4,8(a5) ld a5,-24(s0) sw a4,8(a5) ld a1,-24(s0) ld a0,-40(s0) call vec_push@plt j .L5 .L4: ld a1,-32(s0) ld a0,-40(s0) call vec_push@plt .L5: j .L6 .L7: mv a0,a5 ld ra,56(sp) ld s0,48(sp) addi sp,sp,64 jr ra .size read_funclike_macro_body, .-read_funclike_macro_body .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_read_funclike_macro_params.c" .intel_syntax noprefix .text .globl KELLIPSIS .bss .type KELLIPSIS, @object .size KELLIPSIS, 1 KELLIPSIS: .zero 1 .globl TIDENT .align 8 .type TIDENT, @object .size TIDENT, 8 TIDENT: .zero 8 .globl TNEWLINE .align 8 .type TNEWLINE, @object .size TNEWLINE, 8 TNEWLINE: .zero 8 .section .rodata .LC0: .string ", expected, but got %s" .align 8 .LC1: .string "missing ')' in macro parameter list" .LC2: .string "__VA_ARGS__" .align 8 .LC3: .string "identifier expected, but got %s" .text .type read_funclike_macro_params, @function read_funclike_macro_params: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 48 mov QWORD PTR -40[rbp], rdi mov QWORD PTR -48[rbp], rsi mov DWORD PTR -20[rbp], 0 .L10: mov eax, 0 call lex@PLT mov QWORD PTR -16[rbp], rax mov rax, QWORD PTR -16[rbp] mov esi, 41 mov rdi, rax call is_keyword@PLT test rax, rax je .L2 mov eax, 0 jmp .L3 .L2: cmp DWORD PTR -20[rbp], 0 je .L4 mov rax, QWORD PTR -16[rbp] mov esi, 44 mov rdi, rax call is_keyword@PLT test rax, rax jne .L5 mov rax, QWORD PTR -16[rbp] mov rdi, rax call tok2s@PLT mov edx, eax mov rax, QWORD PTR -16[rbp] lea rsi, .LC0[rip] mov rdi, rax mov eax, 0 call errort@PLT .L5: mov eax, 0 call lex@PLT mov QWORD PTR -16[rbp], rax .L4: mov rax, QWORD PTR -16[rbp] mov rdx, QWORD PTR [rax] mov rax, QWORD PTR TNEWLINE[rip] cmp rdx, rax jne .L6 mov rax, QWORD PTR -40[rbp] lea rsi, .LC1[rip] mov rdi, rax mov eax, 0 call errort@PLT .L6: movzx eax, BYTE PTR KELLIPSIS[rip] movsx edx, al mov rax, QWORD PTR -16[rbp] mov esi, edx mov rdi, rax call is_keyword@PLT test rax, rax je .L7 mov eax, DWORD PTR -20[rbp] lea edx, 1[rax] mov DWORD PTR -20[rbp], edx mov esi, 1 mov edi, eax call make_macro_token@PLT mov edx, eax mov rax, QWORD PTR -48[rbp] lea rsi, .LC2[rip] mov rdi, rax call map_put@PLT mov edi, 41 call expect@PLT mov eax, 1 jmp .L3 .L7: mov rax, QWORD PTR -16[rbp] mov rdx, QWORD PTR [rax] mov rax, QWORD PTR TIDENT[rip] cmp rdx, rax je .L8 mov rax, QWORD PTR -16[rbp] mov rdi, rax call tok2s@PLT mov edx, eax mov rax, QWORD PTR -16[rbp] lea rsi, .LC3[rip] mov rdi, rax mov eax, 0 call errort@PLT .L8: mov rax, QWORD PTR -16[rbp] mov rax, QWORD PTR 8[rax] mov QWORD PTR -8[rbp], rax movzx eax, BYTE PTR KELLIPSIS[rip] movsx eax, al mov edi, eax call next@PLT test rax, rax je .L9 mov edi, 41 call expect@PLT mov eax, DWORD PTR -20[rbp] lea edx, 1[rax] mov DWORD PTR -20[rbp], edx mov esi, 1 mov edi, eax call make_macro_token@PLT mov edx, eax mov rcx, QWORD PTR -8[rbp] mov rax, QWORD PTR -48[rbp] mov rsi, rcx mov rdi, rax call map_put@PLT mov eax, 1 jmp .L3 .L9: mov eax, DWORD PTR -20[rbp] lea edx, 1[rax] mov DWORD PTR -20[rbp], edx mov esi, 0 mov edi, eax call make_macro_token@PLT mov edx, eax mov rcx, QWORD PTR -8[rbp] mov rax, QWORD PTR -48[rbp] mov rsi, rcx mov rdi, rax call map_put@PLT jmp .L10 .L3: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size read_funclike_macro_params, .-read_funclike_macro_params .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_read_funclike_macro_params.c" .option pic .text .comm KELLIPSIS,1,1 .comm TIDENT,8,8 .comm TNEWLINE,8,8 .section .rodata .align 3 .LC0: .string ", expected, but got %s" .align 3 .LC1: .string "missing ')' in macro parameter list" .align 3 .LC2: .string "__VA_ARGS__" .align 3 .LC3: .string "identifier expected, but got %s" .text .align 1 .type read_funclike_macro_params, @function read_funclike_macro_params: addi sp,sp,-64 sd ra,56(sp) sd s0,48(sp) addi s0,sp,64 sd a0,-56(s0) sd a1,-64(s0) sw zero,-36(s0) .L10: call lex@plt sd a0,-32(s0) li a1,41 ld a0,-32(s0) call is_keyword@plt mv a5,a0 beqz a5,.L2 li a5,0 j .L3 .L2: lw a5,-36(s0) sext.w a5,a5 beqz a5,.L4 li a1,44 ld a0,-32(s0) call is_keyword@plt mv a5,a0 bnez a5,.L5 ld a0,-32(s0) call tok2s@plt mv a5,a0 mv a2,a5 lla a1,.LC0 ld a0,-32(s0) call errort@plt .L5: call lex@plt sd a0,-32(s0) .L4: ld a5,-32(s0) ld a4,0(a5) la a5,TNEWLINE ld a5,0(a5) bne a4,a5,.L6 lla a1,.LC1 ld a0,-56(s0) call errort@plt .L6: la a5,KELLIPSIS lbu a5,0(a5) mv a1,a5 ld a0,-32(s0) call is_keyword@plt mv a5,a0 beqz a5,.L7 lw a5,-36(s0) addiw a4,a5,1 sw a4,-36(s0) li a1,1 mv a0,a5 call make_macro_token@plt mv a5,a0 mv a2,a5 lla a1,.LC2 ld a0,-64(s0) call map_put@plt li a0,41 call expect@plt li a5,1 j .L3 .L7: ld a5,-32(s0) ld a4,0(a5) la a5,TIDENT ld a5,0(a5) beq a4,a5,.L8 ld a0,-32(s0) call tok2s@plt mv a5,a0 mv a2,a5 lla a1,.LC3 ld a0,-32(s0) call errort@plt .L8: ld a5,-32(s0) ld a5,8(a5) sd a5,-24(s0) la a5,KELLIPSIS lbu a5,0(a5) mv a0,a5 call next@plt mv a5,a0 beqz a5,.L9 li a0,41 call expect@plt lw a5,-36(s0) addiw a4,a5,1 sw a4,-36(s0) li a1,1 mv a0,a5 call make_macro_token@plt mv a5,a0 mv a2,a5 ld a1,-24(s0) ld a0,-64(s0) call map_put@plt li a5,1 j .L3 .L9: lw a5,-36(s0) addiw a4,a5,1 sw a4,-36(s0) li a1,0 mv a0,a5 call make_macro_token@plt mv a5,a0 mv a2,a5 ld a1,-24(s0) ld a0,-64(s0) call map_put@plt j .L10 .L3: mv a0,a5 ld ra,56(sp) ld s0,48(sp) addi sp,sp,64 jr ra .size read_funclike_macro_params, .-read_funclike_macro_params .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_read_ident.c" .intel_syntax noprefix .text .globl TIDENT .bss .align 8 .type TIDENT, @object .size TIDENT, 8 TIDENT: .zero 8 .section .rodata .align 8 .LC0: .string "identifier expected, but got %s" .text .type read_ident, @function read_ident: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 16 mov eax, 0 call lex@PLT mov QWORD PTR -8[rbp], rax mov rax, QWORD PTR -8[rbp] mov rdx, QWORD PTR [rax] mov rax, QWORD PTR TIDENT[rip] cmp rdx, rax je .L2 mov rax, QWORD PTR -8[rbp] mov rdi, rax call tok2s@PLT mov edx, eax mov rax, QWORD PTR -8[rbp] lea rsi, .LC0[rip] mov rdi, rax call errort@PLT .L2: mov rax, QWORD PTR -8[rbp] leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size read_ident, .-read_ident .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_read_ident.c" .option pic .text .comm TIDENT,8,8 .section .rodata .align 3 .LC0: .string "identifier expected, but got %s" .text .align 1 .type read_ident, @function read_ident: addi sp,sp,-32 sd ra,24(sp) sd s0,16(sp) addi s0,sp,32 call lex@plt sd a0,-24(s0) ld a5,-24(s0) ld a4,0(a5) la a5,TIDENT ld a5,0(a5) beq a4,a5,.L2 ld a0,-24(s0) call tok2s@plt mv a5,a0 mv a2,a5 lla a1,.LC0 ld a0,-24(s0) call errort@plt .L2: ld a5,-24(s0) mv a0,a5 ld ra,24(sp) ld s0,16(sp) addi sp,sp,32 jr ra .size read_ident, .-read_ident .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_read_if.c" .intel_syntax noprefix .text .type read_if, @function read_if: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 mov eax, 0 call read_constexpr@PLT mov edi, eax call do_read_if@PLT nop pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size read_if, .-read_if .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_read_if.c" .option pic .text .align 1 .type read_if, @function read_if: addi sp,sp,-16 sd ra,8(sp) sd s0,0(sp) addi s0,sp,16 call read_constexpr@plt mv a5,a0 mv a0,a5 call do_read_if@plt nop ld ra,8(sp) ld s0,0(sp) addi sp,sp,16 jr ra .size read_if, .-read_if .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_read_ifdef.c" .intel_syntax noprefix .text .globl TIDENT .bss .align 8 .type TIDENT, @object .size TIDENT, 8 TIDENT: .zero 8 .globl macros .align 4 .type macros, @object .size macros, 4 macros: .zero 4 .section .rodata .align 8 .LC0: .string "identifier expected, but got %s" .text .type read_ifdef, @function read_ifdef: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 16 mov eax, 0 call lex@PLT mov QWORD PTR -8[rbp], rax mov rax, QWORD PTR -8[rbp] mov rdx, QWORD PTR [rax] mov rax, QWORD PTR TIDENT[rip] cmp rdx, rax je .L2 mov rax, QWORD PTR -8[rbp] mov rdi, rax call tok2s@PLT mov edx, eax mov rax, QWORD PTR -8[rbp] lea rsi, .LC0[rip] mov rdi, rax call errort@PLT .L2: mov eax, 0 call expect_newline@PLT mov rax, QWORD PTR -8[rbp] mov edx, DWORD PTR 8[rax] mov eax, DWORD PTR macros[rip] mov esi, edx mov edi, eax call map_get@PLT mov edi, eax call do_read_if@PLT nop leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size read_ifdef, .-read_ifdef .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_read_ifdef.c" .option pic .text .comm TIDENT,8,8 .comm macros,4,4 .section .rodata .align 3 .LC0: .string "identifier expected, but got %s" .text .align 1 .type read_ifdef, @function read_ifdef: addi sp,sp,-32 sd ra,24(sp) sd s0,16(sp) addi s0,sp,32 call lex@plt sd a0,-24(s0) ld a5,-24(s0) ld a4,0(a5) la a5,TIDENT ld a5,0(a5) beq a4,a5,.L2 ld a0,-24(s0) call tok2s@plt mv a5,a0 mv a2,a5 lla a1,.LC0 ld a0,-24(s0) call errort@plt .L2: call expect_newline@plt la a5,macros lw a4,0(a5) ld a5,-24(s0) lw a5,8(a5) mv a1,a5 mv a0,a4 call map_get@plt mv a5,a0 mv a0,a5 call do_read_if@plt nop ld ra,24(sp) ld s0,16(sp) addi sp,sp,32 jr ra .size read_ifdef, .-read_ifdef .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_read_ifndef.c" .intel_syntax noprefix .text .globl TIDENT .bss .align 8 .type TIDENT, @object .size TIDENT, 8 TIDENT: .zero 8 .globl cond_incl_stack .align 4 .type cond_incl_stack, @object .size cond_incl_stack, 4 cond_incl_stack: .zero 4 .globl macros .align 4 .type macros, @object .size macros, 4 macros: .zero 4 .section .rodata .align 8 .LC0: .string "identifier expected, but got %s" .text .type read_ifndef, @function read_ifndef: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 16 mov eax, 0 call lex@PLT mov QWORD PTR -16[rbp], rax mov rax, QWORD PTR -16[rbp] mov rdx, QWORD PTR [rax] mov rax, QWORD PTR TIDENT[rip] cmp rdx, rax je .L2 mov rax, QWORD PTR -16[rbp] mov rdi, rax call tok2s@PLT mov edx, eax mov rax, QWORD PTR -16[rbp] lea rsi, .LC0[rip] mov rdi, rax call errort@PLT .L2: mov eax, 0 call expect_newline@PLT mov rax, QWORD PTR -16[rbp] mov edx, DWORD PTR 16[rax] mov eax, DWORD PTR macros[rip] mov esi, edx mov edi, eax call map_get@PLT test eax, eax sete al movzx eax, al mov edi, eax call do_read_if@PLT mov rax, QWORD PTR -16[rbp] mov eax, DWORD PTR 8[rax] cmp eax, 2 jne .L4 mov eax, DWORD PTR cond_incl_stack[rip] mov edi, eax call vec_tail@PLT mov QWORD PTR -8[rbp], rax mov rax, QWORD PTR -16[rbp] mov edx, DWORD PTR 16[rax] mov rax, QWORD PTR -8[rbp] mov DWORD PTR 4[rax], edx mov rax, QWORD PTR -16[rbp] mov edx, DWORD PTR 12[rax] mov rax, QWORD PTR -8[rbp] mov DWORD PTR [rax], edx .L4: nop leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size read_ifndef, .-read_ifndef .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_read_ifndef.c" .option pic .text .comm TIDENT,8,8 .comm cond_incl_stack,4,4 .comm macros,4,4 .section .rodata .align 3 .LC0: .string "identifier expected, but got %s" .text .align 1 .type read_ifndef, @function read_ifndef: addi sp,sp,-32 sd ra,24(sp) sd s0,16(sp) addi s0,sp,32 call lex@plt sd a0,-32(s0) ld a5,-32(s0) ld a4,0(a5) la a5,TIDENT ld a5,0(a5) beq a4,a5,.L2 ld a0,-32(s0) call tok2s@plt mv a5,a0 mv a2,a5 lla a1,.LC0 ld a0,-32(s0) call errort@plt .L2: call expect_newline@plt la a5,macros lw a4,0(a5) ld a5,-32(s0) lw a5,16(a5) mv a1,a5 mv a0,a4 call map_get@plt mv a5,a0 seqz a5,a5 andi a5,a5,0xff sext.w a5,a5 mv a0,a5 call do_read_if@plt ld a5,-32(s0) lw a5,8(a5) mv a4,a5 li a5,2 bne a4,a5,.L4 la a5,cond_incl_stack lw a5,0(a5) mv a0,a5 call vec_tail@plt sd a0,-24(s0) ld a5,-32(s0) lw a4,16(a5) ld a5,-24(s0) sw a4,4(a5) ld a5,-32(s0) lw a4,12(a5) ld a5,-24(s0) sw a4,0(a5) .L4: nop ld ra,24(sp) ld s0,16(sp) addi sp,sp,32 jr ra .size read_ifndef, .-read_ifndef .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_read_include.c" .intel_syntax noprefix .text .globl std_include_path .bss .align 4 .type std_include_path, @object .size std_include_path, 4 std_include_path: .zero 4 .section .rodata .LC0: .string "/" .LC1: .string "." .LC2: .string "cannot find header file: %s" .text .type read_include, @function read_include: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 64 mov QWORD PTR -40[rbp], rdi mov QWORD PTR -48[rbp], rsi mov DWORD PTR -52[rbp], edx mov rax, QWORD PTR fs:40 mov QWORD PTR -8[rbp], rax xor eax, eax lea rdx, -32[rbp] mov rax, QWORD PTR -40[rbp] mov rsi, rdx mov rdi, rax call read_cpp_header_name@PLT mov QWORD PTR -24[rbp], rax mov eax, 0 call expect_newline@PLT mov rax, QWORD PTR -24[rbp] movzx eax, BYTE PTR [rax] cmp al, 47 jne .L2 mov edx, DWORD PTR -52[rbp] mov rax, QWORD PTR -24[rbp] mov rsi, rax lea rdi, .LC0[rip] call try_include@PLT test rax, rax je .L14 jmp .L1 .L2: mov eax, DWORD PTR -32[rbp] test eax, eax jne .L6 mov rax, QWORD PTR -48[rbp] mov rax, QWORD PTR [rax] test rax, rax je .L7 mov rax, QWORD PTR -48[rbp] mov rax, QWORD PTR [rax] mov rdi, rax call strdup@PLT mov edi, eax call dirname@PLT jmp .L8 .L7: lea rax, .LC1[rip] .L8: mov QWORD PTR -16[rbp], rax mov edx, DWORD PTR -52[rbp] mov rcx, QWORD PTR -24[rbp] mov rax, QWORD PTR -16[rbp] mov rsi, rcx mov rdi, rax call try_include@PLT test rax, rax jne .L15 .L6: mov DWORD PTR -28[rbp], 0 jmp .L9 .L11: mov eax, DWORD PTR std_include_path[rip] mov edx, DWORD PTR -28[rbp] mov esi, edx mov edi, eax call vec_get@PLT mov rcx, rax mov edx, DWORD PTR -52[rbp] mov rax, QWORD PTR -24[rbp] mov rsi, rax mov rdi, rcx call try_include@PLT test rax, rax jne .L16 add DWORD PTR -28[rbp], 1 .L9: mov eax, DWORD PTR std_include_path[rip] mov edi, eax call vec_len@PLT cmp DWORD PTR -28[rbp], eax jl .L11 jmp .L5 .L14: nop .L5: mov rdx, QWORD PTR -24[rbp] mov rax, QWORD PTR -40[rbp] lea rsi, .LC2[rip] mov rdi, rax call errort@PLT jmp .L1 .L15: nop jmp .L1 .L16: nop .L1: mov rax, QWORD PTR -8[rbp] sub rax, QWORD PTR fs:40 je .L13 call __stack_chk_fail@PLT .L13: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size read_include, .-read_include .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_read_include.c" .option pic .text .comm std_include_path,4,4 .section .rodata .align 3 .LC0: .string "/" .align 3 .LC1: .string "." .align 3 .LC2: .string "cannot find header file: %s" .text .align 1 .type read_include, @function read_include: addi sp,sp,-80 sd ra,72(sp) sd s0,64(sp) addi s0,sp,80 sd a0,-56(s0) sd a1,-64(s0) mv a5,a2 sw a5,-68(s0) la a5,__stack_chk_guard ld a5,0(a5) sd a5,-24(s0) addi a5,s0,-48 mv a1,a5 ld a0,-56(s0) call read_cpp_header_name@plt sd a0,-40(s0) call expect_newline@plt ld a5,-40(s0) lbu a5,0(a5) mv a4,a5 li a5,47 bne a4,a5,.L2 lw a5,-68(s0) mv a2,a5 ld a1,-40(s0) lla a0,.LC0 call try_include@plt mv a5,a0 beqz a5,.L14 j .L1 .L2: lw a5,-48(s0) bnez a5,.L6 ld a5,-64(s0) ld a5,0(a5) beqz a5,.L7 ld a5,-64(s0) ld a5,0(a5) mv a0,a5 call strdup@plt mv a5,a0 mv a0,a5 call dirname@plt mv a5,a0 j .L8 .L7: lla a5,.LC1 .L8: sd a5,-32(s0) lw a5,-68(s0) mv a2,a5 ld a1,-40(s0) ld a0,-32(s0) call try_include@plt mv a5,a0 bnez a5,.L15 .L6: sw zero,-44(s0) j .L9 .L11: la a5,std_include_path lw a5,0(a5) lw a4,-44(s0) mv a1,a4 mv a0,a5 call vec_get@plt mv a4,a0 lw a5,-68(s0) mv a2,a5 ld a1,-40(s0) mv a0,a4 call try_include@plt mv a5,a0 bnez a5,.L16 lw a5,-44(s0) addiw a5,a5,1 sw a5,-44(s0) .L9: la a5,std_include_path lw a5,0(a5) mv a0,a5 call vec_len@plt mv a5,a0 mv a4,a5 lw a5,-44(s0) sext.w a5,a5 blt a5,a4,.L11 j .L5 .L14: nop .L5: ld a2,-40(s0) lla a1,.LC2 ld a0,-56(s0) call errort@plt j .L1 .L15: nop j .L1 .L16: nop .L1: la a5,__stack_chk_guard ld a4,-24(s0) ld a5,0(a5) beq a4,a5,.L13 call __stack_chk_fail@plt .L13: ld ra,72(sp) ld s0,64(sp) addi sp,sp,80 jr ra .size read_include, .-read_include .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_read_include_next.c" .intel_syntax noprefix .text .globl std_include_path .bss .align 4 .type std_include_path, @object .size std_include_path, 4 std_include_path: .zero 4 .section .rodata .LC0: .string "/" .LC1: .string "%s/%s" .LC2: .string "cannot find header file: %s" .text .type read_include_next, @function read_include_next: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 64 mov QWORD PTR -56[rbp], rdi mov QWORD PTR -64[rbp], rsi mov rax, QWORD PTR fs:40 mov QWORD PTR -8[rbp], rax xor eax, eax lea rdx, -40[rbp] mov rax, QWORD PTR -56[rbp] mov rsi, rdx mov rdi, rax call read_cpp_header_name@PLT mov QWORD PTR -32[rbp], rax mov eax, 0 call expect_newline@PLT mov rax, QWORD PTR -32[rbp] movzx eax, BYTE PTR [rax] cmp al, 47 jne .L2 mov rax, QWORD PTR -32[rbp] mov edx, 0 mov rsi, rax lea rdi, .LC0[rip] call try_include@PLT test rax, rax je .L15 jmp .L1 .L2: mov rax, QWORD PTR -64[rbp] mov eax, DWORD PTR [rax] mov edi, eax call fullpath@PLT mov QWORD PTR -24[rbp], rax mov DWORD PTR -36[rbp], 0 jmp .L6 .L9: mov eax, DWORD PTR std_include_path[rip] mov edx, DWORD PTR -36[rbp] mov esi, edx mov edi, eax call vec_get@PLT mov QWORD PTR -16[rbp], rax mov rdx, QWORD PTR -32[rbp] mov rax, QWORD PTR -16[rbp] mov rsi, rax lea rdi, .LC1[rip] call format@PLT mov edi, eax call fullpath@PLT mov rdx, rax mov rax, QWORD PTR -24[rbp] mov rsi, rdx mov rdi, rax call strcmp@PLT test eax, eax je .L16 add DWORD PTR -36[rbp], 1 .L6: mov eax, DWORD PTR std_include_path[rip] mov edi, eax call vec_len@PLT cmp DWORD PTR -36[rbp], eax jl .L9 jmp .L8 .L16: nop .L8: add DWORD PTR -36[rbp], 1 jmp .L10 .L12: mov eax, DWORD PTR std_include_path[rip] mov edx, DWORD PTR -36[rbp] mov esi, edx mov edi, eax call vec_get@PLT mov rcx, rax mov rax, QWORD PTR -32[rbp] mov edx, 0 mov rsi, rax mov rdi, rcx call try_include@PLT test rax, rax jne .L17 add DWORD PTR -36[rbp], 1 .L10: mov eax, DWORD PTR std_include_path[rip] mov edi, eax call vec_len@PLT cmp DWORD PTR -36[rbp], eax jl .L12 jmp .L5 .L15: nop .L5: mov rdx, QWORD PTR -32[rbp] mov rax, QWORD PTR -56[rbp] lea rsi, .LC2[rip] mov rdi, rax call errort@PLT jmp .L1 .L17: nop .L1: mov rax, QWORD PTR -8[rbp] sub rax, QWORD PTR fs:40 je .L14 call __stack_chk_fail@PLT .L14: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size read_include_next, .-read_include_next .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_read_include_next.c" .option pic .text .comm std_include_path,4,4 .section .rodata .align 3 .LC0: .string "/" .align 3 .LC1: .string "%s/%s" .align 3 .LC2: .string "cannot find header file: %s" .text .align 1 .type read_include_next, @function read_include_next: addi sp,sp,-80 sd ra,72(sp) sd s0,64(sp) addi s0,sp,80 sd a0,-72(s0) sd a1,-80(s0) la a5,__stack_chk_guard ld a5,0(a5) sd a5,-24(s0) addi a5,s0,-56 mv a1,a5 ld a0,-72(s0) call read_cpp_header_name@plt sd a0,-48(s0) call expect_newline@plt ld a5,-48(s0) lbu a5,0(a5) mv a4,a5 li a5,47 bne a4,a5,.L2 li a2,0 ld a1,-48(s0) lla a0,.LC0 call try_include@plt mv a5,a0 beqz a5,.L15 j .L1 .L2: ld a5,-80(s0) lw a5,0(a5) mv a0,a5 call fullpath@plt sd a0,-40(s0) sw zero,-52(s0) j .L6 .L9: la a5,std_include_path lw a5,0(a5) lw a4,-52(s0) mv a1,a4 mv a0,a5 call vec_get@plt sd a0,-32(s0) ld a2,-48(s0) ld a1,-32(s0) lla a0,.LC1 call format@plt mv a5,a0 mv a0,a5 call fullpath@plt mv a5,a0 mv a1,a5 ld a0,-40(s0) call strcmp@plt mv a5,a0 beqz a5,.L16 lw a5,-52(s0) addiw a5,a5,1 sw a5,-52(s0) .L6: la a5,std_include_path lw a5,0(a5) mv a0,a5 call vec_len@plt mv a5,a0 mv a4,a5 lw a5,-52(s0) sext.w a5,a5 blt a5,a4,.L9 j .L8 .L16: nop .L8: lw a5,-52(s0) addiw a5,a5,1 sw a5,-52(s0) j .L10 .L12: la a5,std_include_path lw a5,0(a5) lw a4,-52(s0) mv a1,a4 mv a0,a5 call vec_get@plt mv a5,a0 li a2,0 ld a1,-48(s0) mv a0,a5 call try_include@plt mv a5,a0 bnez a5,.L17 lw a5,-52(s0) addiw a5,a5,1 sw a5,-52(s0) .L10: la a5,std_include_path lw a5,0(a5) mv a0,a5 call vec_len@plt mv a5,a0 mv a4,a5 lw a5,-52(s0) sext.w a5,a5 blt a5,a4,.L12 j .L5 .L15: nop .L5: ld a2,-48(s0) lla a1,.LC2 ld a0,-72(s0) call errort@plt j .L1 .L17: nop .L1: la a5,__stack_chk_guard ld a4,-24(s0) ld a5,0(a5) beq a4,a5,.L14 call __stack_chk_fail@plt .L14: ld ra,72(sp) ld s0,64(sp) addi sp,sp,80 jr ra .size read_include_next, .-read_include_next .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_read_intexpr_line.c" .intel_syntax noprefix .text .globl TIDENT .bss .align 8 .type TIDENT, @object .size TIDENT, 8 TIDENT: .zero 8 .globl TNEWLINE .align 8 .type TNEWLINE, @object .size TNEWLINE, 8 TNEWLINE: .zero 8 .globl cpp_token_zero .align 8 .type cpp_token_zero, @object .size cpp_token_zero, 8 cpp_token_zero: .zero 8 .section .rodata .LC0: .string "defined" .text .type read_intexpr_line, @function read_intexpr_line: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 16 mov eax, 0 call make_vector@PLT mov QWORD PTR -16[rbp], rax .L7: mov eax, 0 call read_expand_newline@PLT mov QWORD PTR -8[rbp], rax mov rax, QWORD PTR -8[rbp] mov rdx, QWORD PTR [rax] mov rax, QWORD PTR TNEWLINE[rip] cmp rdx, rax jne .L2 mov rax, QWORD PTR -16[rbp] jmp .L8 .L2: mov rax, QWORD PTR -8[rbp] lea rsi, .LC0[rip] mov rdi, rax call is_ident@PLT test rax, rax je .L4 mov eax, 0 call read_defined_op@PLT mov rdx, rax mov rax, QWORD PTR -16[rbp] mov rsi, rdx mov rdi, rax call vec_push@PLT jmp .L7 .L4: mov rax, QWORD PTR -8[rbp] mov rdx, QWORD PTR [rax] mov rax, QWORD PTR TIDENT[rip] cmp rdx, rax jne .L6 mov rdx, QWORD PTR cpp_token_zero[rip] mov rax, QWORD PTR -16[rbp] mov rsi, rdx mov rdi, rax call vec_push@PLT jmp .L7 .L6: mov rdx, QWORD PTR -8[rbp] mov rax, QWORD PTR -16[rbp] mov rsi, rdx mov rdi, rax call vec_push@PLT jmp .L7 .L8: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size read_intexpr_line, .-read_intexpr_line .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_read_intexpr_line.c" .option pic .text .comm TIDENT,8,8 .comm TNEWLINE,8,8 .comm cpp_token_zero,8,8 .section .rodata .align 3 .LC0: .string "defined" .text .align 1 .type read_intexpr_line, @function read_intexpr_line: addi sp,sp,-32 sd ra,24(sp) sd s0,16(sp) addi s0,sp,32 call make_vector@plt sd a0,-32(s0) .L7: call read_expand_newline@plt sd a0,-24(s0) ld a5,-24(s0) ld a4,0(a5) la a5,TNEWLINE ld a5,0(a5) bne a4,a5,.L2 ld a5,-32(s0) j .L8 .L2: lla a1,.LC0 ld a0,-24(s0) call is_ident@plt mv a5,a0 beqz a5,.L4 call read_defined_op@plt mv a5,a0 mv a1,a5 ld a0,-32(s0) call vec_push@plt j .L7 .L4: ld a5,-24(s0) ld a4,0(a5) la a5,TIDENT ld a5,0(a5) bne a4,a5,.L6 la a5,cpp_token_zero ld a5,0(a5) mv a1,a5 ld a0,-32(s0) call vec_push@plt j .L7 .L6: ld a1,-24(s0) ld a0,-32(s0) call vec_push@plt j .L7 .L8: mv a0,a5 ld ra,24(sp) ld s0,16(sp) addi sp,sp,32 jr ra .size read_intexpr_line, .-read_intexpr_line .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_read_line.c" .intel_syntax noprefix .text .globl TNEWLINE .bss .align 8 .type TNEWLINE, @object .size TNEWLINE, 8 TNEWLINE: .zero 8 .globl TNUMBER .align 8 .type TNUMBER, @object .size TNUMBER, 8 TNUMBER: .zero 8 .globl TSTRING .align 8 .type TSTRING, @object .size TSTRING, 8 TSTRING: .zero 8 .section .rodata .align 8 .LC0: .string "number expected after #line, but got %s" .align 8 .LC1: .string "newline or a source name are expected, but got %s" .text .type read_line, @function read_line: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 32 mov eax, 0 call read_expand_newline@PLT mov QWORD PTR -16[rbp], rax mov rax, QWORD PTR -16[rbp] mov rdx, QWORD PTR [rax] mov rax, QWORD PTR TNUMBER[rip] cmp rdx, rax jne .L2 mov rax, QWORD PTR -16[rbp] mov rax, QWORD PTR 8[rax] mov rdi, rax call is_digit_sequence@PLT test eax, eax jne .L3 .L2: mov rax, QWORD PTR -16[rbp] mov rdi, rax call tok2s@PLT mov edx, eax mov rax, QWORD PTR -16[rbp] lea rsi, .LC0[rip] mov rdi, rax call errort@PLT .L3: mov rax, QWORD PTR -16[rbp] mov rax, QWORD PTR 8[rax] mov rdi, rax call atoi@PLT mov DWORD PTR -28[rbp], eax mov eax, 0 call read_expand_newline@PLT mov QWORD PTR -16[rbp], rax mov QWORD PTR -24[rbp], 0 mov rax, QWORD PTR -16[rbp] mov rdx, QWORD PTR [rax] mov rax, QWORD PTR TSTRING[rip] cmp rdx, rax jne .L4 mov rax, QWORD PTR -16[rbp] mov rax, QWORD PTR 8[rax] mov QWORD PTR -24[rbp], rax mov eax, 0 call expect_newline@PLT jmp .L5 .L4: mov rax, QWORD PTR -16[rbp] mov rdx, QWORD PTR [rax] mov rax, QWORD PTR TNEWLINE[rip] cmp rdx, rax je .L5 mov rax, QWORD PTR -16[rbp] mov rdi, rax call tok2s@PLT mov edx, eax mov rax, QWORD PTR -16[rbp] lea rsi, .LC1[rip] mov rdi, rax call errort@PLT .L5: mov eax, 0 call current_file@PLT mov QWORD PTR -8[rbp], rax mov rax, QWORD PTR -8[rbp] mov edx, DWORD PTR -28[rbp] mov DWORD PTR [rax], edx cmp QWORD PTR -24[rbp], 0 je .L7 mov rax, QWORD PTR -8[rbp] mov rdx, QWORD PTR -24[rbp] mov QWORD PTR 8[rax], rdx .L7: nop leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size read_line, .-read_line .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_read_line.c" .option pic .text .comm TNEWLINE,8,8 .comm TNUMBER,8,8 .comm TSTRING,8,8 .section .rodata .align 3 .LC0: .string "number expected after #line, but got %s" .align 3 .LC1: .string "newline or a source name are expected, but got %s" .text .align 1 .type read_line, @function read_line: addi sp,sp,-48 sd ra,40(sp) sd s0,32(sp) addi s0,sp,48 call read_expand_newline@plt sd a0,-32(s0) ld a5,-32(s0) ld a4,0(a5) la a5,TNUMBER ld a5,0(a5) bne a4,a5,.L2 ld a5,-32(s0) ld a5,8(a5) mv a0,a5 call is_digit_sequence@plt mv a5,a0 bnez a5,.L3 .L2: ld a0,-32(s0) call tok2s@plt mv a5,a0 mv a2,a5 lla a1,.LC0 ld a0,-32(s0) call errort@plt .L3: ld a5,-32(s0) ld a5,8(a5) mv a0,a5 call atoi@plt mv a5,a0 sw a5,-44(s0) call read_expand_newline@plt sd a0,-32(s0) sd zero,-40(s0) ld a5,-32(s0) ld a4,0(a5) la a5,TSTRING ld a5,0(a5) bne a4,a5,.L4 ld a5,-32(s0) ld a5,8(a5) sd a5,-40(s0) call expect_newline@plt j .L5 .L4: ld a5,-32(s0) ld a4,0(a5) la a5,TNEWLINE ld a5,0(a5) beq a4,a5,.L5 ld a0,-32(s0) call tok2s@plt mv a5,a0 mv a2,a5 lla a1,.LC1 ld a0,-32(s0) call errort@plt .L5: call current_file@plt sd a0,-24(s0) ld a5,-24(s0) lw a4,-44(s0) sw a4,0(a5) ld a5,-40(s0) beqz a5,.L7 ld a5,-24(s0) ld a4,-40(s0) sd a4,8(a5) .L7: nop ld ra,40(sp) ld s0,32(sp) addi sp,sp,48 jr ra .size read_line, .-read_line .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_read_linemarker.c" .intel_syntax noprefix .text .globl TNEWLINE .bss .align 8 .type TNEWLINE, @object .size TNEWLINE, 8 TNEWLINE: .zero 8 .globl TSTRING .align 8 .type TSTRING, @object .size TSTRING, 8 TSTRING: .zero 8 .section .rodata .align 8 .LC0: .string "line number expected, but got %s" .LC1: .string "filename expected, but got %s" .text .type read_linemarker, @function read_linemarker: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 48 mov QWORD PTR -40[rbp], rdi mov rax, QWORD PTR -40[rbp] mov rax, QWORD PTR [rax] mov rdi, rax call is_digit_sequence@PLT test eax, eax jne .L2 mov rax, QWORD PTR -40[rbp] mov rdi, rax call tok2s@PLT mov edx, eax mov rax, QWORD PTR -40[rbp] lea rsi, .LC0[rip] mov rdi, rax call errort@PLT .L2: mov rax, QWORD PTR -40[rbp] mov rax, QWORD PTR [rax] mov rdi, rax call atoi@PLT mov DWORD PTR -20[rbp], eax mov eax, 0 call lex@PLT mov QWORD PTR -40[rbp], rax mov rax, QWORD PTR -40[rbp] mov rdx, QWORD PTR 8[rax] mov rax, QWORD PTR TSTRING[rip] cmp rdx, rax je .L3 mov rax, QWORD PTR -40[rbp] mov rdi, rax call tok2s@PLT mov edx, eax mov rax, QWORD PTR -40[rbp] lea rsi, .LC1[rip] mov rdi, rax call errort@PLT .L3: mov rax, QWORD PTR -40[rbp] mov rax, QWORD PTR [rax] mov QWORD PTR -16[rbp], rax .L4: mov eax, 0 call lex@PLT mov QWORD PTR -40[rbp], rax mov rax, QWORD PTR -40[rbp] mov rdx, QWORD PTR 8[rax] mov rax, QWORD PTR TNEWLINE[rip] cmp rdx, rax jne .L4 mov eax, 0 call current_file@PLT mov QWORD PTR -8[rbp], rax mov rax, QWORD PTR -8[rbp] mov edx, DWORD PTR -20[rbp] mov DWORD PTR [rax], edx mov rax, QWORD PTR -8[rbp] mov rdx, QWORD PTR -16[rbp] mov QWORD PTR 8[rax], rdx nop leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size read_linemarker, .-read_linemarker .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_read_linemarker.c" .option pic .text .comm TNEWLINE,8,8 .comm TSTRING,8,8 .section .rodata .align 3 .LC0: .string "line number expected, but got %s" .align 3 .LC1: .string "filename expected, but got %s" .text .align 1 .type read_linemarker, @function read_linemarker: addi sp,sp,-64 sd ra,56(sp) sd s0,48(sp) addi s0,sp,64 sd a0,-56(s0) ld a5,-56(s0) ld a5,0(a5) mv a0,a5 call is_digit_sequence@plt mv a5,a0 bnez a5,.L2 ld a0,-56(s0) call tok2s@plt mv a5,a0 mv a2,a5 lla a1,.LC0 ld a0,-56(s0) call errort@plt .L2: ld a5,-56(s0) ld a5,0(a5) mv a0,a5 call atoi@plt mv a5,a0 sw a5,-36(s0) call lex@plt sd a0,-56(s0) ld a5,-56(s0) ld a4,8(a5) la a5,TSTRING ld a5,0(a5) beq a4,a5,.L3 ld a0,-56(s0) call tok2s@plt mv a5,a0 mv a2,a5 lla a1,.LC1 ld a0,-56(s0) call errort@plt .L3: ld a5,-56(s0) ld a5,0(a5) sd a5,-32(s0) .L4: call lex@plt sd a0,-56(s0) ld a5,-56(s0) ld a4,8(a5) la a5,TNEWLINE ld a5,0(a5) bne a4,a5,.L4 call current_file@plt sd a0,-24(s0) ld a5,-24(s0) lw a4,-36(s0) sw a4,0(a5) ld a5,-24(s0) ld a4,-32(s0) sd a4,8(a5) nop ld ra,56(sp) ld s0,48(sp) addi sp,sp,64 jr ra .size read_linemarker, .-read_linemarker .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_read_obj_macro.c" .intel_syntax noprefix .text .globl TNEWLINE .bss .align 8 .type TNEWLINE, @object .size TNEWLINE, 8 TNEWLINE: .zero 8 .globl macros .align 4 .type macros, @object .size macros, 4 macros: .zero 4 .text .type read_obj_macro, @function read_obj_macro: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 32 mov QWORD PTR -24[rbp], rdi mov eax, 0 call make_vector@PLT mov QWORD PTR -16[rbp], rax .L4: mov eax, 0 call lex@PLT mov QWORD PTR -8[rbp], rax mov rax, QWORD PTR -8[rbp] mov rdx, QWORD PTR [rax] mov rax, QWORD PTR TNEWLINE[rip] cmp rdx, rax je .L6 mov rdx, QWORD PTR -8[rbp] mov rax, QWORD PTR -16[rbp] mov rsi, rdx mov rdi, rax call vec_push@PLT jmp .L4 .L6: nop mov rax, QWORD PTR -16[rbp] mov rdi, rax call hashhash_check@PLT mov rax, QWORD PTR -16[rbp] mov rdi, rax call make_obj_macro@PLT mov edx, eax mov eax, DWORD PTR macros[rip] mov rcx, QWORD PTR -24[rbp] mov rsi, rcx mov edi, eax call map_put@PLT nop leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size read_obj_macro, .-read_obj_macro .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_read_obj_macro.c" .option pic .text .comm TNEWLINE,8,8 .comm macros,4,4 .align 1 .type read_obj_macro, @function read_obj_macro: addi sp,sp,-64 sd ra,56(sp) sd s0,48(sp) sd s1,40(sp) addi s0,sp,64 sd a0,-56(s0) call make_vector@plt sd a0,-48(s0) .L4: call lex@plt sd a0,-40(s0) ld a5,-40(s0) ld a4,0(a5) la a5,TNEWLINE ld a5,0(a5) beq a4,a5,.L6 ld a1,-40(s0) ld a0,-48(s0) call vec_push@plt j .L4 .L6: nop ld a0,-48(s0) call hashhash_check@plt la a5,macros lw s1,0(a5) ld a0,-48(s0) call make_obj_macro@plt mv a5,a0 mv a2,a5 ld a1,-56(s0) mv a0,s1 call map_put@plt nop ld ra,56(sp) ld s0,48(sp) ld s1,40(sp) addi sp,sp,64 jr ra .size read_obj_macro, .-read_obj_macro .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_read_one_arg.c" .intel_syntax noprefix .text .globl TEOF .bss .align 8 .type TEOF, @object .size TEOF, 8 TEOF: .zero 8 .globl TNEWLINE .align 8 .type TNEWLINE, @object .size TNEWLINE, 8 TNEWLINE: .zero 8 .section .rodata .align 8 .LC0: .string "unterminated macro argument list" .text .type read_one_arg, @function read_one_arg: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 64 mov QWORD PTR -40[rbp], rdi mov QWORD PTR -48[rbp], rsi mov DWORD PTR -52[rbp], edx mov eax, 0 call make_vector@PLT mov QWORD PTR -8[rbp], rax mov DWORD PTR -20[rbp], 0 .L12: mov eax, 0 call lex@PLT mov QWORD PTR -16[rbp], rax mov rax, QWORD PTR -16[rbp] mov rdx, QWORD PTR [rax] mov rax, QWORD PTR TEOF[rip] cmp rdx, rax jne .L2 mov rax, QWORD PTR -40[rbp] lea rsi, .LC0[rip] mov rdi, rax call errort@PLT .L2: mov rax, QWORD PTR -16[rbp] mov rdx, QWORD PTR [rax] mov rax, QWORD PTR TNEWLINE[rip] cmp rdx, rax je .L13 mov rax, QWORD PTR -16[rbp] mov eax, DWORD PTR 8[rax] test eax, eax je .L5 mov rax, QWORD PTR -16[rbp] mov esi, 35 mov rdi, rax call is_keyword@PLT test rax, rax je .L5 mov rax, QWORD PTR -16[rbp] mov rdi, rax call read_directive@PLT jmp .L4 .L5: cmp DWORD PTR -20[rbp], 0 jne .L6 mov rax, QWORD PTR -16[rbp] mov esi, 41 mov rdi, rax call is_keyword@PLT test rax, rax je .L6 mov rax, QWORD PTR -16[rbp] mov rdi, rax call unget_token@PLT mov rax, QWORD PTR -48[rbp] mov DWORD PTR [rax], 1 mov rax, QWORD PTR -8[rbp] jmp .L7 .L6: cmp DWORD PTR -20[rbp], 0 jne .L8 mov rax, QWORD PTR -16[rbp] mov esi, 44 mov rdi, rax call is_keyword@PLT test rax, rax je .L8 cmp DWORD PTR -52[rbp], 0 jne .L8 mov rax, QWORD PTR -8[rbp] jmp .L7 .L8: mov rax, QWORD PTR -16[rbp] mov esi, 40 mov rdi, rax call is_keyword@PLT test rax, rax je .L9 add DWORD PTR -20[rbp], 1 .L9: mov rax, QWORD PTR -16[rbp] mov esi, 41 mov rdi, rax call is_keyword@PLT test rax, rax je .L10 sub DWORD PTR -20[rbp], 1 .L10: mov rax, QWORD PTR -16[rbp] mov eax, DWORD PTR 8[rax] test eax, eax je .L11 mov rax, QWORD PTR -16[rbp] mov rdi, rax call copy_token@PLT mov QWORD PTR -16[rbp], rax mov rax, QWORD PTR -16[rbp] mov DWORD PTR 8[rax], 0 mov rax, QWORD PTR -16[rbp] mov DWORD PTR 12[rax], 1 .L11: mov rdx, QWORD PTR -16[rbp] mov rax, QWORD PTR -8[rbp] mov rsi, rdx mov rdi, rax call vec_push@PLT jmp .L12 .L13: nop .L4: jmp .L12 .L7: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size read_one_arg, .-read_one_arg .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_read_one_arg.c" .option pic .text .comm TEOF,8,8 .comm TNEWLINE,8,8 .section .rodata .align 3 .LC0: .string "unterminated macro argument list" .text .align 1 .type read_one_arg, @function read_one_arg: addi sp,sp,-80 sd ra,72(sp) sd s0,64(sp) addi s0,sp,80 sd a0,-56(s0) sd a1,-64(s0) mv a5,a2 sw a5,-68(s0) call make_vector@plt sd a0,-24(s0) sw zero,-36(s0) .L12: call lex@plt sd a0,-32(s0) ld a5,-32(s0) ld a4,0(a5) la a5,TEOF ld a5,0(a5) bne a4,a5,.L2 lla a1,.LC0 ld a0,-56(s0) call errort@plt .L2: ld a5,-32(s0) ld a4,0(a5) la a5,TNEWLINE ld a5,0(a5) beq a4,a5,.L13 ld a5,-32(s0) lw a5,8(a5) beqz a5,.L5 li a1,35 ld a0,-32(s0) call is_keyword@plt mv a5,a0 beqz a5,.L5 ld a0,-32(s0) call read_directive@plt j .L4 .L5: lw a5,-36(s0) sext.w a5,a5 bnez a5,.L6 li a1,41 ld a0,-32(s0) call is_keyword@plt mv a5,a0 beqz a5,.L6 ld a0,-32(s0) call unget_token@plt ld a5,-64(s0) li a4,1 sw a4,0(a5) ld a5,-24(s0) j .L7 .L6: lw a5,-36(s0) sext.w a5,a5 bnez a5,.L8 li a1,44 ld a0,-32(s0) call is_keyword@plt mv a5,a0 beqz a5,.L8 lw a5,-68(s0) sext.w a5,a5 bnez a5,.L8 ld a5,-24(s0) j .L7 .L8: li a1,40 ld a0,-32(s0) call is_keyword@plt mv a5,a0 beqz a5,.L9 lw a5,-36(s0) addiw a5,a5,1 sw a5,-36(s0) .L9: li a1,41 ld a0,-32(s0) call is_keyword@plt mv a5,a0 beqz a5,.L10 lw a5,-36(s0) addiw a5,a5,-1 sw a5,-36(s0) .L10: ld a5,-32(s0) lw a5,8(a5) beqz a5,.L11 ld a0,-32(s0) call copy_token@plt sd a0,-32(s0) ld a5,-32(s0) sw zero,8(a5) ld a5,-32(s0) li a4,1 sw a4,12(a5) .L11: ld a1,-32(s0) ld a0,-24(s0) call vec_push@plt j .L12 .L13: nop .L4: j .L12 .L7: mv a0,a5 ld ra,72(sp) ld s0,64(sp) addi sp,sp,80 jr ra .size read_one_arg, .-read_one_arg .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_read_pragma.c" .intel_syntax noprefix .text .type read_pragma, @function read_pragma: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 16 mov eax, 0 call read_ident@PLT mov QWORD PTR -8[rbp], rax mov rax, QWORD PTR -8[rbp] mov rdi, rax call parse_pragma_operand@PLT nop leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size read_pragma, .-read_pragma .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_read_pragma.c" .option pic .text .align 1 .type read_pragma, @function read_pragma: addi sp,sp,-32 sd ra,24(sp) sd s0,16(sp) addi s0,sp,32 call read_ident@plt sd a0,-24(s0) ld a0,-24(s0) call parse_pragma_operand@plt nop ld ra,24(sp) ld s0,16(sp) addi sp,sp,32 jr ra .size read_pragma, .-read_pragma .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_read_token.c" .intel_syntax noprefix .text .globl MIN_CPP_TOKEN .bss .align 8 .type MIN_CPP_TOKEN, @object .size MIN_CPP_TOKEN, 8 MIN_CPP_TOKEN: .zero 8 .text .globl read_token .type read_token, @function read_token: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 16 .L3: mov eax, 0 call read_expand@PLT mov QWORD PTR -8[rbp], rax mov rax, QWORD PTR -8[rbp] mov rax, QWORD PTR 16[rax] test rax, rax je .L2 mov rax, QWORD PTR -8[rbp] mov esi, 35 mov rdi, rax call is_keyword@PLT test rax, rax je .L2 mov rax, QWORD PTR -8[rbp] mov rax, QWORD PTR 8[rax] test rax, rax jne .L2 mov rax, QWORD PTR -8[rbp] mov rdi, rax call read_directive@PLT jmp .L3 .L2: mov rax, QWORD PTR -8[rbp] mov rdx, QWORD PTR [rax] mov rax, QWORD PTR MIN_CPP_TOKEN[rip] cmp rdx, rax setl al movzx eax, al mov edi, eax call assert@PLT mov rax, QWORD PTR -8[rbp] mov rdi, rax call maybe_convert_keyword@PLT leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size read_token, .-read_token .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_read_token.c" .option pic .text .comm MIN_CPP_TOKEN,8,8 .align 1 .globl read_token .type read_token, @function read_token: addi sp,sp,-32 sd ra,24(sp) sd s0,16(sp) addi s0,sp,32 .L3: call read_expand@plt sd a0,-24(s0) ld a5,-24(s0) ld a5,16(a5) beqz a5,.L2 li a1,35 ld a0,-24(s0) call is_keyword@plt mv a5,a0 beqz a5,.L2 ld a5,-24(s0) ld a5,8(a5) bnez a5,.L2 ld a0,-24(s0) call read_directive@plt j .L3 .L2: ld a5,-24(s0) ld a4,0(a5) la a5,MIN_CPP_TOKEN ld a5,0(a5) slt a5,a4,a5 andi a5,a5,0xff sext.w a5,a5 mv a0,a5 call assert@plt ld a0,-24(s0) call maybe_convert_keyword@plt mv a5,a0 mv a0,a5 ld ra,24(sp) ld s0,16(sp) addi sp,sp,32 jr ra .size read_token, .-read_token .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_read_undef.c" .intel_syntax noprefix .text .globl macros .bss .align 4 .type macros, @object .size macros, 4 macros: .zero 4 .text .type read_undef, @function read_undef: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 16 mov eax, 0 call read_ident@PLT mov QWORD PTR -8[rbp], rax mov eax, 0 call expect_newline@PLT mov rax, QWORD PTR -8[rbp] mov edx, DWORD PTR [rax] mov eax, DWORD PTR macros[rip] mov esi, edx mov edi, eax call map_remove@PLT nop leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size read_undef, .-read_undef .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_read_undef.c" .option pic .text .comm macros,4,4 .align 1 .type read_undef, @function read_undef: addi sp,sp,-32 sd ra,24(sp) sd s0,16(sp) addi s0,sp,32 call read_ident@plt sd a0,-24(s0) call expect_newline@plt la a5,macros lw a4,0(a5) ld a5,-24(s0) lw a5,0(a5) mv a1,a5 mv a0,a4 call map_remove@plt nop ld ra,24(sp) ld s0,16(sp) addi sp,sp,32 jr ra .size read_undef, .-read_undef .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_read_warning.c" .intel_syntax noprefix .text .section .rodata .LC0: .string "#warning: %s" .text .type read_warning, @function read_warning: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 16 mov QWORD PTR -8[rbp], rdi mov eax, 0 call read_error_message@PLT mov edx, eax mov rax, QWORD PTR -8[rbp] lea rsi, .LC0[rip] mov rdi, rax call warnt@PLT nop leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size read_warning, .-read_warning .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_read_warning.c" .option pic .text .section .rodata .align 3 .LC0: .string "#warning: %s" .text .align 1 .type read_warning, @function read_warning: addi sp,sp,-32 sd ra,24(sp) sd s0,16(sp) addi s0,sp,32 sd a0,-24(s0) call read_error_message@plt mv a5,a0 mv a2,a5 lla a1,.LC0 ld a0,-24(s0) call warnt@plt nop ld ra,24(sp) ld s0,16(sp) addi sp,sp,32 jr ra .size read_warning, .-read_warning .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_skip_newlines.c" .intel_syntax noprefix .text .globl TNEWLINE .bss .align 8 .type TNEWLINE, @object .size TNEWLINE, 8 TNEWLINE: .zero 8 .text .type skip_newlines, @function skip_newlines: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 16 mov eax, 0 call lex@PLT mov QWORD PTR -8[rbp], rax jmp .L2 .L3: mov eax, 0 call lex@PLT mov QWORD PTR -8[rbp], rax .L2: mov rax, QWORD PTR -8[rbp] mov rdx, QWORD PTR [rax] mov rax, QWORD PTR TNEWLINE[rip] cmp rdx, rax je .L3 mov rax, QWORD PTR -8[rbp] mov rdi, rax call unget_token@PLT mov rax, QWORD PTR -8[rbp] leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size skip_newlines, .-skip_newlines .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_skip_newlines.c" .option pic .text .comm TNEWLINE,8,8 .align 1 .type skip_newlines, @function skip_newlines: addi sp,sp,-32 sd ra,24(sp) sd s0,16(sp) addi s0,sp,32 call lex@plt sd a0,-24(s0) j .L2 .L3: call lex@plt sd a0,-24(s0) .L2: ld a5,-24(s0) ld a4,0(a5) la a5,TNEWLINE ld a5,0(a5) beq a4,a5,.L3 ld a0,-24(s0) call unget_token@plt ld a5,-24(s0) mv a0,a5 ld ra,24(sp) ld s0,16(sp) addi sp,sp,32 jr ra .size skip_newlines, .-skip_newlines .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_stringize.c" .intel_syntax noprefix .text .globl ENC_NONE .bss .align 4 .type ENC_NONE, @object .size ENC_NONE, 4 ENC_NONE: .zero 4 .globl TSTRING .align 4 .type TSTRING, @object .size TSTRING, 4 TSTRING: .zero 4 .section .rodata .LC0: .string " " .LC1: .string "%s" .text .type stringize, @function stringize: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 48 mov QWORD PTR -40[rbp], rdi mov QWORD PTR -48[rbp], rsi mov eax, 0 call make_buffer@PLT mov QWORD PTR -24[rbp], rax mov DWORD PTR -28[rbp], 0 jmp .L2 .L4: mov edx, DWORD PTR -28[rbp] mov rax, QWORD PTR -48[rbp] mov esi, edx mov rdi, rax call vec_get@PLT mov QWORD PTR -8[rbp], rax mov rax, QWORD PTR -24[rbp] mov rdi, rax call buf_len@PLT test rax, rax je .L3 mov rax, QWORD PTR -8[rbp] mov rax, QWORD PTR 24[rax] test rax, rax je .L3 mov rax, QWORD PTR -24[rbp] lea rsi, .LC0[rip] mov rdi, rax mov eax, 0 call buf_printf@PLT .L3: mov rax, QWORD PTR -8[rbp] mov rdi, rax call tok2s@PLT mov edx, eax mov rax, QWORD PTR -24[rbp] lea rsi, .LC1[rip] mov rdi, rax mov eax, 0 call buf_printf@PLT add DWORD PTR -28[rbp], 1 .L2: mov rax, QWORD PTR -48[rbp] mov rdi, rax call vec_len@PLT cmp DWORD PTR -28[rbp], eax jl .L4 mov rax, QWORD PTR -24[rbp] mov esi, 0 mov rdi, rax call buf_write@PLT mov rax, QWORD PTR -40[rbp] mov rdi, rax call copy_token@PLT mov QWORD PTR -16[rbp], rax mov edx, DWORD PTR TSTRING[rip] mov rax, QWORD PTR -16[rbp] mov DWORD PTR 20[rax], edx mov rax, QWORD PTR -24[rbp] mov rdi, rax call buf_body@PLT mov rdx, QWORD PTR -16[rbp] mov DWORD PTR 16[rdx], eax mov rax, QWORD PTR -24[rbp] mov rdi, rax call buf_len@PLT mov rdx, QWORD PTR -16[rbp] mov QWORD PTR 8[rdx], rax mov edx, DWORD PTR ENC_NONE[rip] mov rax, QWORD PTR -16[rbp] mov DWORD PTR [rax], edx mov rax, QWORD PTR -16[rbp] leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size stringize, .-stringize .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_stringize.c" .option pic .text .comm ENC_NONE,4,4 .comm TSTRING,4,4 .section .rodata .align 3 .LC0: .string " " .align 3 .LC1: .string "%s" .text .align 1 .type stringize, @function stringize: addi sp,sp,-64 sd ra,56(sp) sd s0,48(sp) addi s0,sp,64 sd a0,-56(s0) sd a1,-64(s0) call make_buffer@plt sd a0,-40(s0) sw zero,-44(s0) j .L2 .L4: lw a5,-44(s0) mv a1,a5 ld a0,-64(s0) call vec_get@plt sd a0,-24(s0) ld a0,-40(s0) call buf_len@plt mv a5,a0 beqz a5,.L3 ld a5,-24(s0) ld a5,24(a5) beqz a5,.L3 lla a1,.LC0 ld a0,-40(s0) call buf_printf@plt .L3: ld a0,-24(s0) call tok2s@plt mv a5,a0 mv a2,a5 lla a1,.LC1 ld a0,-40(s0) call buf_printf@plt lw a5,-44(s0) addiw a5,a5,1 sw a5,-44(s0) .L2: ld a0,-64(s0) call vec_len@plt mv a5,a0 mv a4,a5 lw a5,-44(s0) sext.w a5,a5 blt a5,a4,.L4 li a1,0 ld a0,-40(s0) call buf_write@plt ld a0,-56(s0) call copy_token@plt sd a0,-32(s0) la a5,TSTRING lw a4,0(a5) ld a5,-32(s0) sw a4,20(a5) ld a0,-40(s0) call buf_body@plt mv a5,a0 mv a4,a5 ld a5,-32(s0) sw a4,16(a5) ld a0,-40(s0) call buf_len@plt mv a4,a0 ld a5,-32(s0) sd a4,8(a5) la a5,ENC_NONE lw a4,0(a5) ld a5,-32(s0) sw a4,0(a5) ld a5,-32(s0) mv a0,a5 ld ra,56(sp) ld s0,48(sp) addi sp,sp,64 jr ra .size stringize, .-stringize .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_subst.c" .intel_syntax noprefix .text .globl KHASHHASH .bss .type KHASHHASH, @object .size KHASHHASH, 1 KHASHHASH: .zero 1 .globl TMACRO_PARAM .align 8 .type TMACRO_PARAM, @object .size TMACRO_PARAM, 8 TMACRO_PARAM: .zero 8 .text .type subst, @function subst: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 push rbx sub rsp, 120 .cfi_offset 3, -24 mov QWORD PTR -104[rbp], rdi mov QWORD PTR -112[rbp], rsi mov QWORD PTR -120[rbp], rdx mov eax, 0 call make_vector@PLT mov QWORD PTR -64[rbp], rax mov rax, QWORD PTR -104[rbp] mov rax, QWORD PTR [rax] mov rdi, rax call vec_len@PLT mov DWORD PTR -76[rbp], eax mov DWORD PTR -84[rbp], 0 jmp .L2 .L21: mov rax, QWORD PTR -104[rbp] mov rax, QWORD PTR [rax] mov edx, DWORD PTR -84[rbp] mov esi, edx mov rdi, rax call vec_get@PLT mov QWORD PTR -56[rbp], rax mov eax, DWORD PTR -76[rbp] sub eax, 1 cmp DWORD PTR -84[rbp], eax je .L3 mov eax, DWORD PTR -84[rbp] lea edx, 1[rax] mov rax, QWORD PTR -104[rbp] mov rax, QWORD PTR [rax] mov esi, edx mov rdi, rax call vec_get@PLT jmp .L4 .L3: mov eax, 0 .L4: mov QWORD PTR -48[rbp], rax mov rax, QWORD PTR -56[rbp] mov rdx, QWORD PTR [rax] mov rax, QWORD PTR TMACRO_PARAM[rip] cmp rdx, rax sete al movzx eax, al mov DWORD PTR -72[rbp], eax cmp QWORD PTR -48[rbp], 0 je .L5 mov rax, QWORD PTR -48[rbp] mov rdx, QWORD PTR [rax] mov rax, QWORD PTR TMACRO_PARAM[rip] cmp rdx, rax jne .L5 mov eax, 1 jmp .L6 .L5: mov eax, 0 .L6: mov DWORD PTR -68[rbp], eax mov rax, QWORD PTR -56[rbp] mov esi, 35 mov rdi, rax call is_keyword@PLT test rax, rax je .L7 cmp DWORD PTR -68[rbp], 0 je .L7 mov rax, QWORD PTR -48[rbp] mov edx, DWORD PTR 8[rax] mov rax, QWORD PTR -112[rbp] mov esi, edx mov rdi, rax call vec_get@PLT mov rdx, rax mov rax, QWORD PTR -56[rbp] mov rsi, rdx mov rdi, rax call stringize@PLT mov rdx, rax mov rax, QWORD PTR -64[rbp] mov rsi, rdx mov rdi, rax call vec_push@PLT add DWORD PTR -84[rbp], 1 jmp .L8 .L7: movzx eax, BYTE PTR KHASHHASH[rip] movsx edx, al mov rax, QWORD PTR -56[rbp] mov esi, edx mov rdi, rax call is_keyword@PLT test rax, rax je .L9 cmp DWORD PTR -68[rbp], 0 je .L9 mov rax, QWORD PTR -48[rbp] mov edx, DWORD PTR 8[rax] mov rax, QWORD PTR -112[rbp] mov esi, edx mov rdi, rax call vec_get@PLT mov QWORD PTR -40[rbp], rax mov rax, QWORD PTR -48[rbp] mov rax, QWORD PTR 24[rax] test rax, rax je .L10 mov rax, QWORD PTR -64[rbp] mov rdi, rax call vec_len@PLT test rax, rax jle .L10 mov rax, QWORD PTR -64[rbp] mov rdi, rax call vec_tail@PLT mov esi, 44 mov rdi, rax call is_keyword@PLT test rax, rax je .L10 mov rax, QWORD PTR -40[rbp] mov rdi, rax call vec_len@PLT test rax, rax jle .L11 mov rdx, QWORD PTR -40[rbp] mov rax, QWORD PTR -64[rbp] mov rsi, rdx mov rdi, rax call vec_append@PLT jmp .L13 .L11: mov rax, QWORD PTR -64[rbp] mov rdi, rax call vec_pop@PLT jmp .L13 .L10: mov rax, QWORD PTR -40[rbp] mov rdi, rax call vec_len@PLT test rax, rax jle .L13 mov rax, QWORD PTR -40[rbp] mov rdi, rax call vec_head@PLT mov rdx, rax mov rax, QWORD PTR -64[rbp] mov rsi, rdx mov rdi, rax call glue_push@PLT mov DWORD PTR -80[rbp], 1 jmp .L14 .L15: mov edx, DWORD PTR -80[rbp] mov rax, QWORD PTR -40[rbp] mov esi, edx mov rdi, rax call vec_get@PLT mov rdx, rax mov rax, QWORD PTR -64[rbp] mov rsi, rdx mov rdi, rax call vec_push@PLT add DWORD PTR -80[rbp], 1 .L14: mov eax, DWORD PTR -80[rbp] movsx rbx, eax mov rax, QWORD PTR -40[rbp] mov rdi, rax call vec_len@PLT cmp rbx, rax jl .L15 .L13: add DWORD PTR -84[rbp], 1 jmp .L8 .L9: movzx eax, BYTE PTR KHASHHASH[rip] movsx edx, al mov rax, QWORD PTR -56[rbp] mov esi, edx mov rdi, rax call is_keyword@PLT test rax, rax je .L16 cmp QWORD PTR -48[rbp], 0 je .L16 mov rax, QWORD PTR -48[rbp] mov rax, QWORD PTR 16[rax] mov QWORD PTR -120[rbp], rax mov rdx, QWORD PTR -48[rbp] mov rax, QWORD PTR -64[rbp] mov rsi, rdx mov rdi, rax call glue_push@PLT add DWORD PTR -84[rbp], 1 jmp .L8 .L16: cmp DWORD PTR -72[rbp], 0 je .L17 cmp QWORD PTR -48[rbp], 0 je .L17 movzx eax, BYTE PTR KHASHHASH[rip] movsx edx, al mov rax, QWORD PTR -48[rbp] mov esi, edx mov rdi, rax call is_keyword@PLT test rax, rax je .L17 mov rax, QWORD PTR -48[rbp] mov rax, QWORD PTR 16[rax] mov QWORD PTR -120[rbp], rax mov rax, QWORD PTR -56[rbp] mov edx, DWORD PTR 8[rax] mov rax, QWORD PTR -112[rbp] mov esi, edx mov rdi, rax call vec_get@PLT mov QWORD PTR -32[rbp], rax mov rax, QWORD PTR -32[rbp] mov rdi, rax call vec_len@PLT test rax, rax jne .L18 add DWORD PTR -84[rbp], 1 jmp .L8 .L18: mov rdx, QWORD PTR -32[rbp] mov rax, QWORD PTR -64[rbp] mov rsi, rdx mov rdi, rax call vec_append@PLT jmp .L8 .L17: cmp DWORD PTR -72[rbp], 0 je .L20 mov rax, QWORD PTR -56[rbp] mov edx, DWORD PTR 8[rax] mov rax, QWORD PTR -112[rbp] mov esi, edx mov rdi, rax call vec_get@PLT mov QWORD PTR -24[rbp], rax mov rdx, QWORD PTR -56[rbp] mov rax, QWORD PTR -24[rbp] mov rsi, rdx mov rdi, rax call expand_all@PLT mov rdx, rax mov rax, QWORD PTR -64[rbp] mov rsi, rdx mov rdi, rax call vec_append@PLT jmp .L8 .L20: mov rdx, QWORD PTR -56[rbp] mov rax, QWORD PTR -64[rbp] mov rsi, rdx mov rdi, rax call vec_push@PLT .L8: add DWORD PTR -84[rbp], 1 .L2: mov eax, DWORD PTR -84[rbp] cmp eax, DWORD PTR -76[rbp] jl .L21 mov rdx, QWORD PTR -120[rbp] mov rax, QWORD PTR -64[rbp] mov rsi, rdx mov rdi, rax call add_hide_set@PLT mov rbx, QWORD PTR -8[rbp] leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size subst, .-subst .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_subst.c" .option pic .text .comm KHASHHASH,1,1 .comm TMACRO_PARAM,8,8 .align 1 .type subst, @function subst: addi sp,sp,-144 sd ra,136(sp) sd s0,128(sp) sd s1,120(sp) addi s0,sp,144 sd a0,-120(s0) sd a1,-128(s0) sd a2,-136(s0) call make_vector@plt sd a0,-80(s0) ld a5,-120(s0) ld a5,0(a5) mv a0,a5 call vec_len@plt mv a5,a0 sw a5,-92(s0) sw zero,-100(s0) j .L2 .L21: ld a5,-120(s0) ld a5,0(a5) lw a4,-100(s0) mv a1,a4 mv a0,a5 call vec_get@plt sd a0,-72(s0) lw a5,-92(s0) addiw a5,a5,-1 sext.w a4,a5 lw a5,-100(s0) sext.w a5,a5 beq a5,a4,.L3 ld a5,-120(s0) ld a4,0(a5) lw a5,-100(s0) addiw a5,a5,1 sext.w a5,a5 mv a1,a5 mv a0,a4 call vec_get@plt mv a5,a0 j .L4 .L3: li a5,0 .L4: sd a5,-64(s0) ld a5,-72(s0) ld a4,0(a5) la a5,TMACRO_PARAM ld a5,0(a5) sub a5,a4,a5 seqz a5,a5 andi a5,a5,0xff sw a5,-88(s0) ld a5,-64(s0) beqz a5,.L5 ld a5,-64(s0) ld a4,0(a5) la a5,TMACRO_PARAM ld a5,0(a5) bne a4,a5,.L5 li a5,1 j .L6 .L5: li a5,0 .L6: sw a5,-84(s0) li a1,35 ld a0,-72(s0) call is_keyword@plt mv a5,a0 beqz a5,.L7 lw a5,-84(s0) sext.w a5,a5 beqz a5,.L7 ld a5,-64(s0) lw a5,8(a5) mv a1,a5 ld a0,-128(s0) call vec_get@plt mv a5,a0 mv a1,a5 ld a0,-72(s0) call stringize@plt mv a5,a0 mv a1,a5 ld a0,-80(s0) call vec_push@plt lw a5,-100(s0) addiw a5,a5,1 sw a5,-100(s0) j .L8 .L7: la a5,KHASHHASH lbu a5,0(a5) mv a1,a5 ld a0,-72(s0) call is_keyword@plt mv a5,a0 beqz a5,.L9 lw a5,-84(s0) sext.w a5,a5 beqz a5,.L9 ld a5,-64(s0) lw a5,8(a5) mv a1,a5 ld a0,-128(s0) call vec_get@plt sd a0,-56(s0) ld a5,-64(s0) ld a5,24(a5) beqz a5,.L10 ld a0,-80(s0) call vec_len@plt mv a5,a0 blez a5,.L10 ld a0,-80(s0) call vec_tail@plt mv a5,a0 li a1,44 mv a0,a5 call is_keyword@plt mv a5,a0 beqz a5,.L10 ld a0,-56(s0) call vec_len@plt mv a5,a0 blez a5,.L11 ld a1,-56(s0) ld a0,-80(s0) call vec_append@plt j .L13 .L11: ld a0,-80(s0) call vec_pop@plt j .L13 .L10: ld a0,-56(s0) call vec_len@plt mv a5,a0 blez a5,.L13 ld a0,-56(s0) call vec_head@plt mv a5,a0 mv a1,a5 ld a0,-80(s0) call glue_push@plt li a5,1 sw a5,-96(s0) j .L14 .L15: lw a5,-96(s0) mv a1,a5 ld a0,-56(s0) call vec_get@plt mv a5,a0 mv a1,a5 ld a0,-80(s0) call vec_push@plt lw a5,-96(s0) addiw a5,a5,1 sw a5,-96(s0) .L14: lw s1,-96(s0) ld a0,-56(s0) call vec_len@plt mv a5,a0 blt s1,a5,.L15 .L13: lw a5,-100(s0) addiw a5,a5,1 sw a5,-100(s0) j .L8 .L9: la a5,KHASHHASH lbu a5,0(a5) mv a1,a5 ld a0,-72(s0) call is_keyword@plt mv a5,a0 beqz a5,.L16 ld a5,-64(s0) beqz a5,.L16 ld a5,-64(s0) ld a5,16(a5) sd a5,-136(s0) ld a1,-64(s0) ld a0,-80(s0) call glue_push@plt lw a5,-100(s0) addiw a5,a5,1 sw a5,-100(s0) j .L8 .L16: lw a5,-88(s0) sext.w a5,a5 beqz a5,.L17 ld a5,-64(s0) beqz a5,.L17 la a5,KHASHHASH lbu a5,0(a5) mv a1,a5 ld a0,-64(s0) call is_keyword@plt mv a5,a0 beqz a5,.L17 ld a5,-64(s0) ld a5,16(a5) sd a5,-136(s0) ld a5,-72(s0) lw a5,8(a5) mv a1,a5 ld a0,-128(s0) call vec_get@plt sd a0,-48(s0) ld a0,-48(s0) call vec_len@plt mv a5,a0 bnez a5,.L18 lw a5,-100(s0) addiw a5,a5,1 sw a5,-100(s0) j .L8 .L18: ld a1,-48(s0) ld a0,-80(s0) call vec_append@plt j .L8 .L17: lw a5,-88(s0) sext.w a5,a5 beqz a5,.L20 ld a5,-72(s0) lw a5,8(a5) mv a1,a5 ld a0,-128(s0) call vec_get@plt sd a0,-40(s0) ld a1,-72(s0) ld a0,-40(s0) call expand_all@plt mv a5,a0 mv a1,a5 ld a0,-80(s0) call vec_append@plt j .L8 .L20: ld a1,-72(s0) ld a0,-80(s0) call vec_push@plt .L8: lw a5,-100(s0) addiw a5,a5,1 sw a5,-100(s0) .L2: lw a4,-100(s0) lw a5,-92(s0) sext.w a4,a4 sext.w a5,a5 blt a4,a5,.L21 ld a1,-136(s0) ld a0,-80(s0) call add_hide_set@plt mv a5,a0 mv a0,a5 ld ra,136(sp) ld s0,128(sp) ld s1,120(sp) addi sp,sp,144 jr ra .size subst, .-subst .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_try_include.c" .intel_syntax noprefix .text .globl once .bss .align 4 .type once, @object .size once, 4 once: .zero 4 .section .rodata .LC0: .string "%s/%s" .LC1: .string "r" .text .type try_include, @function try_include: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 48 mov QWORD PTR -24[rbp], rdi mov QWORD PTR -32[rbp], rsi mov DWORD PTR -36[rbp], edx mov rdx, QWORD PTR -32[rbp] mov rax, QWORD PTR -24[rbp] mov rsi, rax lea rdi, .LC0[rip] call format@PLT mov edi, eax call fullpath@PLT mov QWORD PTR -16[rbp], rax mov eax, DWORD PTR once[rip] mov rdx, QWORD PTR -16[rbp] mov rsi, rdx mov edi, eax call map_get@PLT test rax, rax je .L2 mov eax, 1 jmp .L3 .L2: mov rax, QWORD PTR -16[rbp] mov rdi, rax call guarded@PLT test rax, rax je .L4 mov eax, 1 jmp .L3 .L4: mov rax, QWORD PTR -16[rbp] lea rsi, .LC1[rip] mov rdi, rax call fopen@PLT mov QWORD PTR -8[rbp], rax cmp QWORD PTR -8[rbp], 0 jne .L5 mov eax, 0 jmp .L3 .L5: cmp DWORD PTR -36[rbp], 0 je .L6 mov eax, DWORD PTR once[rip] mov rcx, QWORD PTR -16[rbp] mov edx, 1 mov rsi, rcx mov edi, eax call map_put@PLT .L6: mov rdx, QWORD PTR -16[rbp] mov rax, QWORD PTR -8[rbp] mov rsi, rdx mov rdi, rax call make_file@PLT mov edi, eax call stream_push@PLT mov eax, 1 .L3: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size try_include, .-try_include .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_try_include.c" .option pic .text .comm once,4,4 .section .rodata .align 3 .LC0: .string "%s/%s" .align 3 .LC1: .string "r" .text .align 1 .type try_include, @function try_include: addi sp,sp,-64 sd ra,56(sp) sd s0,48(sp) addi s0,sp,64 sd a0,-40(s0) sd a1,-48(s0) mv a5,a2 sw a5,-52(s0) ld a2,-48(s0) ld a1,-40(s0) lla a0,.LC0 call format@plt mv a5,a0 mv a0,a5 call fullpath@plt sd a0,-32(s0) la a5,once lw a5,0(a5) ld a1,-32(s0) mv a0,a5 call map_get@plt mv a5,a0 beqz a5,.L2 li a5,1 j .L3 .L2: ld a0,-32(s0) call guarded@plt mv a5,a0 beqz a5,.L4 li a5,1 j .L3 .L4: lla a1,.LC1 ld a0,-32(s0) call fopen@plt sd a0,-24(s0) ld a5,-24(s0) bnez a5,.L5 li a5,0 j .L3 .L5: lw a5,-52(s0) sext.w a5,a5 beqz a5,.L6 la a5,once lw a5,0(a5) li a2,1 ld a1,-32(s0) mv a0,a5 call map_put@plt .L6: ld a1,-32(s0) ld a0,-24(s0) call make_file@plt mv a5,a0 mv a0,a5 call stream_push@plt li a5,1 .L3: mv a0,a5 ld ra,56(sp) ld s0,48(sp) addi sp,sp,64 jr ra .size try_include, .-try_include .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_cpp.c_unget_all.c" .intel_syntax noprefix .text .type unget_all, @function unget_all: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 32 mov QWORD PTR -24[rbp], rdi mov rax, QWORD PTR -24[rbp] mov rdi, rax call vec_len@PLT sub eax, 1 mov DWORD PTR -4[rbp], eax jmp .L2 .L3: mov edx, DWORD PTR -4[rbp] mov rax, QWORD PTR -24[rbp] mov esi, edx mov rdi, rax call vec_get@PLT mov edi, eax call unget_token@PLT sub DWORD PTR -4[rbp], 1 .L2: cmp DWORD PTR -4[rbp], 0 jns .L3 nop nop leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size unget_all, .-unget_all .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_cpp.c_unget_all.c" .option pic .text .align 1 .type unget_all, @function unget_all: addi sp,sp,-48 sd ra,40(sp) sd s0,32(sp) addi s0,sp,48 sd a0,-40(s0) ld a0,-40(s0) call vec_len@plt mv a5,a0 addiw a5,a5,-1 sw a5,-20(s0) j .L2 .L3: lw a5,-20(s0) mv a1,a5 ld a0,-40(s0) call vec_get@plt mv a5,a0 mv a0,a5 call unget_token@plt lw a5,-20(s0) addiw a5,a5,-1 sw a5,-20(s0) .L2: lw a5,-20(s0) sext.w a5,a5 bgez a5,.L3 nop nop ld ra,40(sp) ld s0,32(sp) addi sp,sp,48 jr ra .size unget_all, .-unget_all .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_debug.c_a2s_declinit.c" .intel_syntax noprefix .text .section .rodata .LC0: .string " " .LC1: .string "%s" .text .type a2s_declinit, @function a2s_declinit: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 32 mov QWORD PTR -24[rbp], rdi mov QWORD PTR -32[rbp], rsi mov DWORD PTR -12[rbp], 0 jmp .L2 .L4: cmp DWORD PTR -12[rbp], 0 jle .L3 mov rax, QWORD PTR -24[rbp] lea rsi, .LC0[rip] mov rdi, rax mov eax, 0 call buf_printf@PLT .L3: mov edx, DWORD PTR -12[rbp] mov rax, QWORD PTR -32[rbp] mov esi, edx mov rdi, rax call vec_get@PLT mov QWORD PTR -8[rbp], rax mov rax, QWORD PTR -8[rbp] mov rdi, rax call node2s@PLT mov edx, eax mov rax, QWORD PTR -24[rbp] lea rsi, .LC1[rip] mov rdi, rax mov eax, 0 call buf_printf@PLT add DWORD PTR -12[rbp], 1 .L2: mov rax, QWORD PTR -32[rbp] mov rdi, rax call vec_len@PLT cmp DWORD PTR -12[rbp], eax jl .L4 nop nop leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size a2s_declinit, .-a2s_declinit .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_debug.c_a2s_declinit.c" .option pic .text .section .rodata .align 3 .LC0: .string " " .align 3 .LC1: .string "%s" .text .align 1 .type a2s_declinit, @function a2s_declinit: addi sp,sp,-48 sd ra,40(sp) sd s0,32(sp) addi s0,sp,48 sd a0,-40(s0) sd a1,-48(s0) sw zero,-28(s0) j .L2 .L4: lw a5,-28(s0) sext.w a5,a5 blez a5,.L3 lla a1,.LC0 ld a0,-40(s0) call buf_printf@plt .L3: lw a5,-28(s0) mv a1,a5 ld a0,-48(s0) call vec_get@plt sd a0,-24(s0) ld a0,-24(s0) call node2s@plt mv a5,a0 mv a2,a5 lla a1,.LC1 ld a0,-40(s0) call buf_printf@plt lw a5,-28(s0) addiw a5,a5,1 sw a5,-28(s0) .L2: ld a0,-48(s0) call vec_len@plt mv a5,a0 mv a4,a5 lw a5,-28(s0) sext.w a5,a5 blt a5,a4,.L4 nop nop ld ra,40(sp) ld s0,32(sp) addi sp,sp,48 jr ra .size a2s_declinit, .-a2s_declinit .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_debug.c_binop_to_string.c" .intel_syntax noprefix .text .section .rodata .LC0: .string "(%s %s %s)" .text .type binop_to_string, @function binop_to_string: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 push rbx sub rsp, 40 .cfi_offset 3, -24 mov QWORD PTR -24[rbp], rdi mov QWORD PTR -32[rbp], rsi mov QWORD PTR -40[rbp], rdx mov rax, QWORD PTR -40[rbp] mov eax, DWORD PTR [rax] mov edi, eax call node2s@PLT mov ebx, eax mov rax, QWORD PTR -40[rbp] mov eax, DWORD PTR 4[rax] mov edi, eax call node2s@PLT mov ecx, eax mov rdx, QWORD PTR -32[rbp] mov rax, QWORD PTR -24[rbp] mov r8d, ebx lea rsi, .LC0[rip] mov rdi, rax call buf_printf@PLT nop mov rbx, QWORD PTR -8[rbp] leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size binop_to_string, .-binop_to_string .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_debug.c_binop_to_string.c" .option pic .text .section .rodata .align 3 .LC0: .string "(%s %s %s)" .text .align 1 .type binop_to_string, @function binop_to_string: addi sp,sp,-64 sd ra,56(sp) sd s0,48(sp) sd s1,40(sp) addi s0,sp,64 sd a0,-40(s0) sd a1,-48(s0) sd a2,-56(s0) ld a5,-56(s0) lw a5,4(a5) mv a0,a5 call node2s@plt mv a5,a0 mv s1,a5 ld a5,-56(s0) lw a5,0(a5) mv a0,a5 call node2s@plt mv a5,a0 mv a4,a5 mv a3,s1 ld a2,-48(s0) lla a1,.LC0 ld a0,-40(s0) call buf_printf@plt nop ld ra,56(sp) ld s0,48(sp) ld s1,40(sp) addi sp,sp,64 jr ra .size binop_to_string, .-binop_to_string .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_debug.c_decorate_int.c" .intel_syntax noprefix .text .section .rodata .LC0: .string "u" .LC1: .string "" .LC2: .string "%s%s:%d:%d" .LC3: .string "%s%s" .text .type decorate_int, @function decorate_int: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 32 mov QWORD PTR -24[rbp], rdi mov QWORD PTR -32[rbp], rsi mov rax, QWORD PTR -32[rbp] mov rax, QWORD PTR 16[rax] test rax, rax je .L2 lea rax, .LC0[rip] jmp .L3 .L2: lea rax, .LC1[rip] .L3: mov QWORD PTR -8[rbp], rax mov rax, QWORD PTR -32[rbp] mov rax, QWORD PTR [rax] test rax, rax jle .L4 mov rax, QWORD PTR -32[rbp] mov rdx, QWORD PTR 8[rax] mov rax, QWORD PTR -32[rbp] mov rax, QWORD PTR [rax] lea rsi, [rdx+rax] mov rax, QWORD PTR -32[rbp] mov rcx, QWORD PTR 8[rax] mov rdx, QWORD PTR -24[rbp] mov rax, QWORD PTR -8[rbp] mov r8, rsi mov rsi, rax lea rdi, .LC2[rip] mov eax, 0 call format@PLT jmp .L5 .L4: mov rdx, QWORD PTR -24[rbp] mov rax, QWORD PTR -8[rbp] mov rsi, rax lea rdi, .LC3[rip] mov eax, 0 call format@PLT .L5: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size decorate_int, .-decorate_int .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_debug.c_decorate_int.c" .option pic .text .section .rodata .align 3 .LC0: .string "u" .align 3 .LC1: .string "" .align 3 .LC2: .string "%s%s:%d:%d" .align 3 .LC3: .string "%s%s" .text .align 1 .type decorate_int, @function decorate_int: addi sp,sp,-48 sd ra,40(sp) sd s0,32(sp) addi s0,sp,48 sd a0,-40(s0) sd a1,-48(s0) ld a5,-48(s0) ld a5,16(a5) beqz a5,.L2 lla a5,.LC0 j .L3 .L2: lla a5,.LC1 .L3: sd a5,-24(s0) ld a5,-48(s0) ld a5,0(a5) blez a5,.L4 ld a5,-48(s0) ld a3,8(a5) ld a5,-48(s0) ld a4,8(a5) ld a5,-48(s0) ld a5,0(a5) add a5,a4,a5 mv a4,a5 ld a2,-40(s0) ld a1,-24(s0) lla a0,.LC2 call format@plt mv a5,a0 j .L5 .L4: ld a2,-40(s0) ld a1,-24(s0) lla a0,.LC3 call format@plt mv a5,a0 .L5: mv a0,a5 ld ra,40(sp) ld s0,32(sp) addi sp,sp,48 jr ra .size decorate_int, .-decorate_int .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_debug.c_do_node2s.c" .intel_syntax noprefix .text .globl OP_EQ .section .rodata .align 4 .type OP_EQ, @object .size OP_EQ, 4 OP_EQ: .zero 4 .LC0: .string "(nil)" .LC1: .string "'\n'" .LC2: .string "'\\\\'" .LC3: .string "'\\0'" .LC4: .string "'%c'" .LC5: .string "%d" .LC6: .string "%ldL" .LC7: .string "%lldL" .LC8: .string "%f" .LC9: .string "\"%s\"" .LC10: .string "internal error" .LC11: .string "%s:" .LC12: .string "lv=%s" .LC13: .string "(" .LC14: .string ")" .LC15: .string "gv=%s" .LC16: .string "(%s)%s(" .LC17: .string "," .LC18: .string "%s" .LC19: .string "(funcdesg %s)" .LC20: .string "%s %s" .LC21: .string "goto(%s)" .LC22: .string "(decl %s %s" .LC23: .string " " .LC24: .string "%s@%d" .LC25: .string "(conv %s=>%s)" .LC26: .string "(if %s %s" .LC27: .string " %s" .LC28: .string "(? %s %s %s)" .LC29: .string "(return %s)" .LC30: .string "{" .LC31: .string ";" .LC32: .string "}" .LC33: .string "." .LC34: .string "addr" .LC35: .string "deref" .LC36: .string "<<" .LC37: .string ">>" .LC38: .string ">=" .LC39: .string "<=" .LC40: .string "!=" .LC41: .string "pre++" .LC42: .string "pre--" .LC43: .string "post++" .LC44: .string "post--" .LC45: .string "and" .LC46: .string "or" .LC47: .string "+=" .LC48: .string "-=" .LC49: .string "*=" .LC50: .string "/=" .LC51: .string "%=" .LC52: .string "&=" .LC53: .string "|=" .LC54: .string "^=" .LC55: .string "<<=" .LC56: .string ">>=" .LC57: .string "!" .LC58: .string "&" .LC59: .string "|" .LC60: .string "((%s)=>(%s) %s)" .LC61: .string "&&%s" .LC62: .string "(== " .LC63: .string "(%c " .LC64: .string "%s %s)" .text .type do_node2s, @function do_node2s: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 push r12 push rbx sub rsp, 64 .cfi_offset 12, -24 .cfi_offset 3, -32 mov QWORD PTR -72[rbp], rdi mov QWORD PTR -80[rbp], rsi cmp QWORD PTR -80[rbp], 0 jne .L2 mov rax, QWORD PTR -72[rbp] lea rsi, .LC0[rip] mov rdi, rax mov eax, 0 call buf_printf@PLT jmp .L1 .L2: mov rax, QWORD PTR -80[rbp] mov eax, DWORD PTR [rax] sub eax, 33 cmp eax, 146 ja .L4 mov eax, eax lea rdx, 0[0+rax*4] lea rax, .L6[rip] mov eax, DWORD PTR [rdx+rax] cdqe lea rdx, .L6[rip] add rax, rdx notrack jmp rax .section .rodata .align 4 .align 4 .L6: .long .L49-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L48-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L47-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L46-.L6 .long .L46-.L6 .long .L45-.L6 .long .L44-.L6 .long .L43-.L6 .long .L42-.L6 .long .L41-.L6 .long .L40-.L6 .long .L39-.L6 .long .L38-.L6 .long .L37-.L6 .long .L36-.L6 .long .L35-.L6 .long .L34-.L6 .long .L33-.L6 .long .L32-.L6 .long .L31-.L6 .long .L31-.L6 .long .L30-.L6 .long .L29-.L6 .long .L28-.L6 .long .L27-.L6 .long .L26-.L6 .long .L25-.L6 .long .L24-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L4-.L6 .long .L23-.L6 .long .L22-.L6 .long .L21-.L6 .long .L20-.L6 .long .L19-.L6 .long .L18-.L6 .long .L17-.L6 .long .L16-.L6 .long .L15-.L6 .long .L14-.L6 .long .L12-.L6 .long .L13-.L6 .long .L12-.L6 .long .L11-.L6 .long .L10-.L6 .long .L9-.L6 .long .L8-.L6 .long .L7-.L6 .long .L5-.L6 .text .L19: mov rax, QWORD PTR -80[rbp] mov rax, QWORD PTR 48[rax] mov eax, DWORD PTR [rax] sub eax, 153 cmp eax, 7 ja .L50 mov eax, eax lea rdx, 0[0+rax*4] lea rax, .L52[rip] mov eax, DWORD PTR [rdx+rax] cdqe lea rdx, .L52[rip] add rax, rdx notrack jmp rax .section .rodata .align 4 .align 4 .L52: .long .L57-.L52 .long .L56-.L52 .long .L54-.L52 .long .L55-.L52 .long .L54-.L52 .long .L54-.L52 .long .L53-.L52 .long .L51-.L52 .text .L53: mov rax, QWORD PTR -80[rbp] movzx eax, BYTE PTR 4[rax] cmp al, 10 jne .L58 mov rax, QWORD PTR -72[rbp] lea rsi, .LC1[rip] mov rdi, rax mov eax, 0 call buf_printf@PLT jmp .L62 .L58: mov rax, QWORD PTR -80[rbp] movzx eax, BYTE PTR 4[rax] cmp al, 92 jne .L60 mov rax, QWORD PTR -72[rbp] lea rsi, .LC2[rip] mov rdi, rax mov eax, 0 call buf_printf@PLT jmp .L62 .L60: mov rax, QWORD PTR -80[rbp] movzx eax, BYTE PTR 4[rax] test al, al jne .L61 mov rax, QWORD PTR -72[rbp] lea rsi, .LC3[rip] mov rdi, rax mov eax, 0 call buf_printf@PLT jmp .L62 .L61: mov rax, QWORD PTR -80[rbp] movzx eax, BYTE PTR 4[rax] movsx edx, al mov rax, QWORD PTR -72[rbp] lea rsi, .LC4[rip] mov rdi, rax mov eax, 0 call buf_printf@PLT jmp .L62 .L55: mov rax, QWORD PTR -80[rbp] movzx eax, BYTE PTR 4[rax] movsx edx, al mov rax, QWORD PTR -72[rbp] lea rsi, .LC5[rip] mov rdi, rax mov eax, 0 call buf_printf@PLT jmp .L62 .L57: mov rax, QWORD PTR -80[rbp] movzx eax, BYTE PTR 4[rax] movsx edx, al mov rax, QWORD PTR -72[rbp] lea rsi, .LC6[rip] mov rdi, rax mov eax, 0 call buf_printf@PLT jmp .L62 .L56: mov rax, QWORD PTR -80[rbp] movzx eax, BYTE PTR 4[rax] movsx edx, al mov rax, QWORD PTR -72[rbp] lea rsi, .LC7[rip] mov rdi, rax mov eax, 0 call buf_printf@PLT jmp .L62 .L54: mov rax, QWORD PTR -80[rbp] mov edx, DWORD PTR 180[rax] mov rax, QWORD PTR -72[rbp] lea rsi, .LC8[rip] mov rdi, rax mov eax, 0 call buf_printf@PLT jmp .L62 .L51: mov rax, QWORD PTR -80[rbp] mov eax, DWORD PTR 176[rax] mov edi, eax call quote_cstring@PLT mov edx, eax mov rax, QWORD PTR -72[rbp] lea rsi, .LC9[rip] mov rdi, rax mov eax, 0 call buf_printf@PLT jmp .L62 .L50: lea rdi, .LC10[rip] call error@PLT jmp .L1 .L62: jmp .L1 .L18: mov rax, QWORD PTR -80[rbp] mov edx, DWORD PTR 32[rax] mov rax, QWORD PTR -72[rbp] lea rsi, .LC11[rip] mov rdi, rax mov eax, 0 call buf_printf@PLT jmp .L1 .L20: mov rax, QWORD PTR -80[rbp] mov edx, DWORD PTR 168[rax] mov rax, QWORD PTR -72[rbp] lea rsi, .LC12[rip] mov rdi, rax mov eax, 0 call buf_printf@PLT mov rax, QWORD PTR -80[rbp] mov eax, DWORD PTR 172[rax] test eax, eax je .L78 mov rax, QWORD PTR -72[rbp] lea rsi, .LC13[rip] mov rdi, rax mov eax, 0 call buf_printf@PLT mov rax, QWORD PTR -80[rbp] mov edx, DWORD PTR 172[rax] mov rax, QWORD PTR -72[rbp] mov esi, edx mov rdi, rax call a2s_declinit@PLT mov rax, QWORD PTR -72[rbp] lea rsi, .LC14[rip] mov rdi, rax mov eax, 0 call buf_printf@PLT jmp .L78 .L15: mov rax, QWORD PTR -80[rbp] mov edx, DWORD PTR 168[rax] mov rax, QWORD PTR -72[rbp] lea rsi, .LC15[rip] mov rdi, rax mov eax, 0 call buf_printf@PLT jmp .L1 .L12: mov rax, QWORD PTR -80[rbp] mov eax, DWORD PTR [rax] cmp eax, 173 jne .L64 mov rax, QWORD PTR -80[rbp] mov rbx, QWORD PTR 8[rax] jmp .L65 .L64: mov rax, QWORD PTR -80[rbp] mov rdi, rax call node2s@PLT mov rbx, rax .L65: mov rax, QWORD PTR -80[rbp] mov rax, QWORD PTR 48[rax] mov rdi, rax call ty2s@PLT mov rdx, rax mov rax, QWORD PTR -72[rbp] mov rcx, rbx lea rsi, .LC16[rip] mov rdi, rax mov eax, 0 call buf_printf@PLT mov DWORD PTR -52[rbp], 0 jmp .L66 .L68: cmp DWORD PTR -52[rbp], 0 jle .L67 mov rax, QWORD PTR -72[rbp] lea rsi, .LC17[rip] mov rdi, rax mov eax, 0 call buf_printf@PLT .L67: mov rax, QWORD PTR -80[rbp] mov eax, DWORD PTR 164[rax] mov edx, DWORD PTR -52[rbp] mov esi, edx mov edi, eax call vec_get@PLT mov rdi, rax call node2s@PLT mov rdx, rax mov rax, QWORD PTR -72[rbp] lea rsi, .LC18[rip] mov rdi, rax mov eax, 0 call buf_printf@PLT add DWORD PTR -52[rbp], 1 .L66: mov rax, QWORD PTR -80[rbp] mov eax, DWORD PTR 164[rax] mov edi, eax call vec_len@PLT cmp DWORD PTR -52[rbp], eax jl .L68 mov rax, QWORD PTR -72[rbp] lea rsi, .LC14[rip] mov rdi, rax mov eax, 0 call buf_printf@PLT jmp .L1 .L13: mov rax, QWORD PTR -80[rbp] mov rdx, QWORD PTR 8[rax] mov rax, QWORD PTR -72[rbp] lea rsi, .LC19[rip] mov rdi, rax mov eax, 0 call buf_printf@PLT jmp .L1 .L11: mov rax, QWORD PTR -80[rbp] mov rbx, QWORD PTR 8[rax] mov rax, QWORD PTR -80[rbp] mov rax, QWORD PTR 48[rax] mov rdi, rax call ty2s@PLT mov rdx, rax mov rax, QWORD PTR -72[rbp] mov rcx, rbx lea rsi, .LC16[rip] mov rdi, rax mov eax, 0 call buf_printf@PLT mov DWORD PTR -48[rbp], 0 jmp .L69 .L71: cmp DWORD PTR -48[rbp], 0 jle .L70 mov rax, QWORD PTR -72[rbp] lea rsi, .LC17[rip] mov rdi, rax mov eax, 0 call buf_printf@PLT .L70: mov rax, QWORD PTR -80[rbp] mov eax, DWORD PTR 160[rax] mov edx, DWORD PTR -48[rbp] mov esi, edx mov edi, eax call vec_get@PLT mov QWORD PTR -40[rbp], rax mov rax, QWORD PTR -40[rbp] mov rdi, rax call node2s@PLT mov rbx, rax mov rax, QWORD PTR -40[rbp] mov rax, QWORD PTR 48[rax] mov rdi, rax call ty2s@PLT mov rdx, rax mov rax, QWORD PTR -72[rbp] mov rcx, rbx lea rsi, .LC20[rip] mov rdi, rax mov eax, 0 call buf_printf@PLT add DWORD PTR -48[rbp], 1 .L69: mov rax, QWORD PTR -80[rbp] mov eax, DWORD PTR 160[rax] mov edi, eax call vec_len@PLT cmp DWORD PTR -48[rbp], eax jl .L71 mov rax, QWORD PTR -72[rbp] lea rsi, .LC14[rip] mov rdi, rax mov eax, 0 call buf_printf@PLT mov rax, QWORD PTR -80[rbp] mov rdx, QWORD PTR 152[rax] mov rax, QWORD PTR -72[rbp] mov rsi, rdx mov rdi, rax call do_node2s jmp .L1 .L14: mov rax, QWORD PTR -80[rbp] mov edx, DWORD PTR 32[rax] mov rax, QWORD PTR -72[rbp] lea rsi, .LC21[rip] mov rdi, rax mov eax, 0 call buf_printf@PLT jmp .L1 .L9: mov rax, QWORD PTR -80[rbp] mov rax, QWORD PTR 144[rax] mov rbx, QWORD PTR [rax] mov rax, QWORD PTR -80[rbp] mov rax, QWORD PTR 144[rax] mov rax, QWORD PTR 8[rax] mov rdi, rax call ty2s@PLT mov rdx, rax mov rax, QWORD PTR -72[rbp] mov rcx, rbx lea rsi, .LC22[rip] mov rdi, rax mov eax, 0 call buf_printf@PLT mov rax, QWORD PTR -80[rbp] mov eax, DWORD PTR 136[rax] test eax, eax je .L72 mov rax, QWORD PTR -72[rbp] lea rsi, .LC23[rip] mov rdi, rax mov eax, 0 call buf_printf@PLT mov rax, QWORD PTR -80[rbp] mov edx, DWORD PTR 136[rax] mov rax, QWORD PTR -72[rbp] mov esi, edx mov rdi, rax call a2s_declinit@PLT .L72: mov rax, QWORD PTR -72[rbp] lea rsi, .LC14[rip] mov rdi, rax mov eax, 0 call buf_printf@PLT jmp .L1 .L17: mov rax, QWORD PTR -80[rbp] mov rax, QWORD PTR 112[rax] mov rdi, rax call ty2s@PLT mov r12, rax mov rax, QWORD PTR -80[rbp] mov ebx, DWORD PTR 120[rax] mov rax, QWORD PTR -80[rbp] mov rax, QWORD PTR 128[rax] mov rdi, rax call node2s@PLT mov rdx, rax mov rax, QWORD PTR -72[rbp] mov r8, r12 mov ecx, ebx lea rsi, .LC24[rip] mov rdi, rax mov eax, 0 call buf_printf@PLT jmp .L1 .L8: mov rax, QWORD PTR -80[rbp] mov rax, QWORD PTR 48[rax] mov rdi, rax call ty2s@PLT mov rbx, rax mov rax, QWORD PTR -80[rbp] mov rax, QWORD PTR 40[rax] mov rdi, rax call node2s@PLT mov rdx, rax mov rax, QWORD PTR -72[rbp] mov rcx, rbx lea rsi, .LC25[rip] mov rdi, rax mov eax, 0 call buf_printf@PLT jmp .L1 .L16: mov rax, QWORD PTR -80[rbp] mov rax, QWORD PTR 96[rax] mov rdi, rax call node2s@PLT mov rbx, rax mov rax, QWORD PTR -80[rbp] mov rax, QWORD PTR 104[rax] mov rdi, rax call node2s@PLT mov rdx, rax mov rax, QWORD PTR -72[rbp] mov rcx, rbx lea rsi, .LC26[rip] mov rdi, rax mov eax, 0 call buf_printf@PLT mov rax, QWORD PTR -80[rbp] mov rax, QWORD PTR 88[rax] test rax, rax je .L73 mov rax, QWORD PTR -80[rbp] mov rax, QWORD PTR 88[rax] mov rdi, rax call node2s@PLT mov rdx, rax mov rax, QWORD PTR -72[rbp] lea rsi, .LC27[rip] mov rdi, rax mov eax, 0 call buf_printf@PLT .L73: mov rax, QWORD PTR -72[rbp] lea rsi, .LC14[rip] mov rdi, rax mov eax, 0 call buf_printf@PLT jmp .L1 .L23: mov rax, QWORD PTR -80[rbp] mov rax, QWORD PTR 88[rax] mov rdi, rax call node2s@PLT mov r12, rax mov rax, QWORD PTR -80[rbp] mov rax, QWORD PTR 96[rax] mov rdi, rax call node2s@PLT mov rbx, rax mov rax, QWORD PTR -80[rbp] mov rax, QWORD PTR 104[rax] mov rdi, rax call node2s@PLT mov rdx, rax mov rax, QWORD PTR -72[rbp] mov r8, r12 mov rcx, rbx lea rsi, .LC28[rip] mov rdi, rax mov eax, 0 call buf_printf@PLT jmp .L1 .L21: mov rax, QWORD PTR -80[rbp] mov rax, QWORD PTR 80[rax] mov rdi, rax call node2s@PLT mov rdx, rax mov rax, QWORD PTR -72[rbp] lea rsi, .LC29[rip] mov rdi, rax mov eax, 0 call buf_printf@PLT jmp .L1 .L7: mov rax, QWORD PTR -72[rbp] lea rsi, .LC30[rip] mov rdi, rax mov eax, 0 call buf_printf@PLT mov DWORD PTR -44[rbp], 0 jmp .L74 .L75: mov rax, QWORD PTR -80[rbp] mov eax, DWORD PTR 72[rax] mov edx, DWORD PTR -44[rbp] mov esi, edx mov edi, eax call vec_get@PLT mov rdx, rax mov rax, QWORD PTR -72[rbp] mov rsi, rdx mov rdi, rax call do_node2s mov rax, QWORD PTR -72[rbp] lea rsi, .LC31[rip] mov rdi, rax mov eax, 0 call buf_printf@PLT add DWORD PTR -44[rbp], 1 .L74: mov rax, QWORD PTR -80[rbp] mov eax, DWORD PTR 72[rax] mov edi, eax call vec_len@PLT cmp DWORD PTR -44[rbp], eax jl .L75 mov rax, QWORD PTR -72[rbp] lea rsi, .LC32[rip] mov rdi, rax mov eax, 0 call buf_printf@PLT jmp .L1 .L22: mov rax, QWORD PTR -80[rbp] mov rdx, QWORD PTR 64[rax] mov rax, QWORD PTR -72[rbp] mov rsi, rdx mov rdi, rax call do_node2s mov rax, QWORD PTR -72[rbp] lea rsi, .LC33[rip] mov rdi, rax mov eax, 0 call buf_printf@PLT mov rax, QWORD PTR -80[rbp] mov eax, DWORD PTR 56[rax] cdqe mov rdx, rax mov rax, QWORD PTR -72[rbp] mov rsi, rdx mov rdi, rax mov eax, 0 call buf_printf@PLT jmp .L1 .L5: mov rdx, QWORD PTR -80[rbp] mov rax, QWORD PTR -72[rbp] lea rsi, .LC34[rip] mov rdi, rax call uop_to_string@PLT jmp .L1 .L10: mov rdx, QWORD PTR -80[rbp] mov rax, QWORD PTR -72[rbp] lea rsi, .LC35[rip] mov rdi, rax call uop_to_string@PLT jmp .L1 .L45: mov rdx, QWORD PTR -80[rbp] mov rax, QWORD PTR -72[rbp] lea rsi, .LC36[rip] mov rdi, rax call binop_to_string@PLT jmp .L1 .L46: mov rdx, QWORD PTR -80[rbp] mov rax, QWORD PTR -72[rbp] lea rsi, .LC37[rip] mov rdi, rax call binop_to_string@PLT jmp .L1 .L35: mov rdx, QWORD PTR -80[rbp] mov rax, QWORD PTR -72[rbp] lea rsi, .LC38[rip] mov rdi, rax call binop_to_string@PLT jmp .L1 .L37: mov rdx, QWORD PTR -80[rbp] mov rax, QWORD PTR -72[rbp] lea rsi, .LC39[rip] mov rdi, rax call binop_to_string@PLT jmp .L1 .L40: mov rdx, QWORD PTR -80[rbp] mov rax, QWORD PTR -72[rbp] lea rsi, .LC40[rip] mov rdi, rax call binop_to_string@PLT jmp .L1 .L44: mov rdx, QWORD PTR -80[rbp] mov rax, QWORD PTR -72[rbp] lea rsi, .LC41[rip] mov rdi, rax call uop_to_string@PLT jmp .L1 .L43: mov rdx, QWORD PTR -80[rbp] mov rax, QWORD PTR -72[rbp] lea rsi, .LC42[rip] mov rdi, rax call uop_to_string@PLT jmp .L1 .L42: mov rdx, QWORD PTR -80[rbp] mov rax, QWORD PTR -72[rbp] lea rsi, .LC43[rip] mov rdi, rax call uop_to_string@PLT jmp .L1 .L41: mov rdx, QWORD PTR -80[rbp] mov rax, QWORD PTR -72[rbp] lea rsi, .LC44[rip] mov rdi, rax call uop_to_string@PLT jmp .L1 .L38: mov rdx, QWORD PTR -80[rbp] mov rax, QWORD PTR -72[rbp] lea rsi, .LC45[rip] mov rdi, rax call binop_to_string@PLT jmp .L1 .L39: mov rdx, QWORD PTR -80[rbp] mov rax, QWORD PTR -72[rbp] lea rsi, .LC46[rip] mov rdi, rax call binop_to_string@PLT jmp .L1 .L24: mov rdx, QWORD PTR -80[rbp] mov rax, QWORD PTR -72[rbp] lea rsi, .LC47[rip] mov rdi, rax call binop_to_string@PLT jmp .L1 .L32: mov rdx, QWORD PTR -80[rbp] mov rax, QWORD PTR -72[rbp] lea rsi, .LC48[rip] mov rdi, rax call binop_to_string@PLT jmp .L1 .L28: mov rdx, QWORD PTR -80[rbp] mov rax, QWORD PTR -72[rbp] lea rsi, .LC49[rip] mov rdi, rax call binop_to_string@PLT jmp .L1 .L26: mov rdx, QWORD PTR -80[rbp] mov rax, QWORD PTR -72[rbp] lea rsi, .LC50[rip] mov rdi, rax call binop_to_string@PLT jmp .L1 .L27: mov rdx, QWORD PTR -80[rbp] mov rax, QWORD PTR -72[rbp] lea rsi, .LC51[rip] mov rdi, rax call binop_to_string@PLT jmp .L1 .L25: mov rdx, QWORD PTR -80[rbp] mov rax, QWORD PTR -72[rbp] lea rsi, .LC52[rip] mov rdi, rax call binop_to_string@PLT jmp .L1 .L29: mov rdx, QWORD PTR -80[rbp] mov rax, QWORD PTR -72[rbp] lea rsi, .LC53[rip] mov rdi, rax call binop_to_string@PLT jmp .L1 .L33: mov rdx, QWORD PTR -80[rbp] mov rax, QWORD PTR -72[rbp] lea rsi, .LC54[rip] mov rdi, rax call binop_to_string@PLT jmp .L1 .L30: mov rdx, QWORD PTR -80[rbp] mov rax, QWORD PTR -72[rbp] lea rsi, .LC55[rip] mov rdi, rax call binop_to_string@PLT jmp .L1 .L31: mov rdx, QWORD PTR -80[rbp] mov rax, QWORD PTR -72[rbp] lea rsi, .LC56[rip] mov rdi, rax call binop_to_string@PLT jmp .L1 .L49: mov rdx, QWORD PTR -80[rbp] mov rax, QWORD PTR -72[rbp] lea rsi, .LC57[rip] mov rdi, rax call uop_to_string@PLT jmp .L1 .L48: mov rdx, QWORD PTR -80[rbp] mov rax, QWORD PTR -72[rbp] lea rsi, .LC58[rip] mov rdi, rax call binop_to_string@PLT jmp .L1 .L47: mov rdx, QWORD PTR -80[rbp] mov rax, QWORD PTR -72[rbp] lea rsi, .LC59[rip] mov rdi, rax call binop_to_string@PLT jmp .L1 .L34: mov rax, QWORD PTR -80[rbp] mov rax, QWORD PTR 40[rax] mov rdi, rax call node2s@PLT mov r12, rax mov rax, QWORD PTR -80[rbp] mov rax, QWORD PTR 48[rax] mov rdi, rax call ty2s@PLT mov rbx, rax mov rax, QWORD PTR -80[rbp] mov rax, QWORD PTR 40[rax] mov rax, QWORD PTR 48[rax] mov rdi, rax call ty2s@PLT mov rdx, rax mov rax, QWORD PTR -72[rbp] mov r8, r12 mov rcx, rbx lea rsi, .LC60[rip] mov rdi, rax mov eax, 0 call buf_printf@PLT jmp .L1 .L36: mov rax, QWORD PTR -80[rbp] mov edx, DWORD PTR 32[rax] mov rax, QWORD PTR -72[rbp] lea rsi, .LC61[rip] mov rdi, rax mov eax, 0 call buf_printf@PLT jmp .L1 .L4: mov rax, QWORD PTR -80[rbp] mov rax, QWORD PTR 24[rax] mov rdi, rax call node2s@PLT mov QWORD PTR -32[rbp], rax mov rax, QWORD PTR -80[rbp] mov rax, QWORD PTR 16[rax] mov rdi, rax call node2s@PLT mov QWORD PTR -24[rbp], rax mov rax, QWORD PTR -80[rbp] mov eax, DWORD PTR [rax] mov edx, 0 cmp eax, edx jne .L76 mov rax, QWORD PTR -72[rbp] lea rsi, .LC62[rip] mov rdi, rax mov eax, 0 call buf_printf@PLT jmp .L77 .L76: mov rax, QWORD PTR -80[rbp] mov edx, DWORD PTR [rax] mov rax, QWORD PTR -72[rbp] lea rsi, .LC63[rip] mov rdi, rax mov eax, 0 call buf_printf@PLT .L77: mov rcx, QWORD PTR -24[rbp] mov rdx, QWORD PTR -32[rbp] mov rax, QWORD PTR -72[rbp] lea rsi, .LC64[rip] mov rdi, rax mov eax, 0 call buf_printf@PLT jmp .L1 .L78: nop .L1: add rsp, 64 pop rbx pop r12 pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size do_node2s, .-do_node2s .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_debug.c_do_node2s.c" .option pic .text .comm OP_EQ,4,4 .section .rodata .align 3 .LC0: .string "(nil)" .align 3 .LC1: .string "'\n'" .align 3 .LC2: .string "'\\\\'" .align 3 .LC3: .string "'\\0'" .align 3 .LC4: .string "'%c'" .align 3 .LC5: .string "%d" .align 3 .LC6: .string "%ldL" .align 3 .LC7: .string "%lldL" .align 3 .LC8: .string "%f" .align 3 .LC9: .string "\"%s\"" .align 3 .LC10: .string "internal error" .align 3 .LC11: .string "%s:" .align 3 .LC12: .string "lv=%s" .align 3 .LC13: .string "(" .align 3 .LC14: .string ")" .align 3 .LC15: .string "gv=%s" .align 3 .LC16: .string "(%s)%s(" .align 3 .LC17: .string "," .align 3 .LC18: .string "%s" .align 3 .LC19: .string "(funcdesg %s)" .align 3 .LC20: .string "%s %s" .align 3 .LC21: .string "goto(%s)" .align 3 .LC22: .string "(decl %s %s" .align 3 .LC23: .string " " .align 3 .LC24: .string "%s@%d" .align 3 .LC25: .string "(conv %s=>%s)" .align 3 .LC26: .string "(if %s %s" .align 3 .LC27: .string " %s" .align 3 .LC28: .string "(? %s %s %s)" .align 3 .LC29: .string "(return %s)" .align 3 .LC30: .string "{" .align 3 .LC31: .string ";" .align 3 .LC32: .string "}" .align 3 .LC33: .string "." .align 3 .LC34: .string "addr" .align 3 .LC35: .string "deref" .align 3 .LC36: .string "<<" .align 3 .LC37: .string ">>" .align 3 .LC38: .string ">=" .align 3 .LC39: .string "<=" .align 3 .LC40: .string "!=" .align 3 .LC41: .string "pre++" .align 3 .LC42: .string "pre--" .align 3 .LC43: .string "post++" .align 3 .LC44: .string "post--" .align 3 .LC45: .string "and" .align 3 .LC46: .string "or" .align 3 .LC47: .string "+=" .align 3 .LC48: .string "-=" .align 3 .LC49: .string "*=" .align 3 .LC50: .string "/=" .align 3 .LC51: .string "%=" .align 3 .LC52: .string "&=" .align 3 .LC53: .string "|=" .align 3 .LC54: .string "^=" .align 3 .LC55: .string "<<=" .align 3 .LC56: .string ">>=" .align 3 .LC57: .string "!" .align 3 .LC58: .string "&" .align 3 .LC59: .string "|" .align 3 .LC60: .string "((%s)=>(%s) %s)" .align 3 .LC61: .string "&&%s" .align 3 .LC62: .string "(== " .align 3 .LC63: .string "(%c " .align 3 .LC64: .string "%s %s)" .text .align 1 .type do_node2s, @function do_node2s: addi sp,sp,-96 sd ra,88(sp) sd s0,80(sp) sd s1,72(sp) sd s2,64(sp) addi s0,sp,96 sd a0,-88(s0) sd a1,-96(s0) ld a5,-96(s0) bnez a5,.L2 lla a1,.LC0 ld a0,-88(s0) call buf_printf@plt j .L1 .L2: ld a5,-96(s0) lw a5,0(a5) addiw a3,a5,-33 sext.w a4,a3 li a5,146 bgtu a4,a5,.L4 slli a5,a3,32 srli a5,a5,32 slli a4,a5,2 lla a5,.L6 add a5,a4,a5 lw a5,0(a5) sext.w a4,a5 lla a5,.L6 add a5,a4,a5 jr a5 .section .rodata .align 2 .align 2 .L6: .word .L49-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L48-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L47-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L46-.L6 .word .L46-.L6 .word .L45-.L6 .word .L44-.L6 .word .L43-.L6 .word .L42-.L6 .word .L41-.L6 .word .L40-.L6 .word .L39-.L6 .word .L38-.L6 .word .L37-.L6 .word .L36-.L6 .word .L35-.L6 .word .L34-.L6 .word .L33-.L6 .word .L32-.L6 .word .L31-.L6 .word .L31-.L6 .word .L30-.L6 .word .L29-.L6 .word .L28-.L6 .word .L27-.L6 .word .L26-.L6 .word .L25-.L6 .word .L24-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L4-.L6 .word .L23-.L6 .word .L22-.L6 .word .L21-.L6 .word .L20-.L6 .word .L19-.L6 .word .L18-.L6 .word .L17-.L6 .word .L16-.L6 .word .L15-.L6 .word .L14-.L6 .word .L12-.L6 .word .L13-.L6 .word .L12-.L6 .word .L11-.L6 .word .L10-.L6 .word .L9-.L6 .word .L8-.L6 .word .L7-.L6 .word .L5-.L6 .text .L19: ld a5,-96(s0) ld a5,48(a5) lw a5,0(a5) addiw a3,a5,-153 sext.w a4,a3 li a5,7 bgtu a4,a5,.L50 slli a5,a3,32 srli a5,a5,32 slli a4,a5,2 lla a5,.L52 add a5,a4,a5 lw a5,0(a5) sext.w a4,a5 lla a5,.L52 add a5,a4,a5 jr a5 .section .rodata .align 2 .align 2 .L52: .word .L57-.L52 .word .L56-.L52 .word .L54-.L52 .word .L55-.L52 .word .L54-.L52 .word .L54-.L52 .word .L53-.L52 .word .L51-.L52 .text .L53: ld a5,-96(s0) lbu a5,4(a5) mv a4,a5 li a5,10 bne a4,a5,.L58 lla a1,.LC1 ld a0,-88(s0) call buf_printf@plt j .L62 .L58: ld a5,-96(s0) lbu a5,4(a5) mv a4,a5 li a5,92 bne a4,a5,.L60 lla a1,.LC2 ld a0,-88(s0) call buf_printf@plt j .L62 .L60: ld a5,-96(s0) lbu a5,4(a5) bnez a5,.L61 lla a1,.LC3 ld a0,-88(s0) call buf_printf@plt j .L62 .L61: ld a5,-96(s0) lbu a5,4(a5) sext.w a5,a5 mv a2,a5 lla a1,.LC4 ld a0,-88(s0) call buf_printf@plt j .L62 .L55: ld a5,-96(s0) lbu a5,4(a5) sext.w a5,a5 mv a2,a5 lla a1,.LC5 ld a0,-88(s0) call buf_printf@plt j .L62 .L57: ld a5,-96(s0) lbu a5,4(a5) sext.w a5,a5 mv a2,a5 lla a1,.LC6 ld a0,-88(s0) call buf_printf@plt j .L62 .L56: ld a5,-96(s0) lbu a5,4(a5) sext.w a5,a5 mv a2,a5 lla a1,.LC7 ld a0,-88(s0) call buf_printf@plt j .L62 .L54: ld a5,-96(s0) lw a5,180(a5) mv a2,a5 lla a1,.LC8 ld a0,-88(s0) call buf_printf@plt j .L62 .L51: ld a5,-96(s0) lw a5,176(a5) mv a0,a5 call quote_cstring@plt mv a5,a0 mv a2,a5 lla a1,.LC9 ld a0,-88(s0) call buf_printf@plt j .L62 .L50: lla a0,.LC10 call error@plt j .L1 .L62: j .L1 .L18: ld a5,-96(s0) lw a5,32(a5) mv a2,a5 lla a1,.LC11 ld a0,-88(s0) call buf_printf@plt j .L1 .L20: ld a5,-96(s0) lw a5,168(a5) mv a2,a5 lla a1,.LC12 ld a0,-88(s0) call buf_printf@plt ld a5,-96(s0) lw a5,172(a5) beqz a5,.L78 lla a1,.LC13 ld a0,-88(s0) call buf_printf@plt ld a5,-96(s0) lw a5,172(a5) mv a1,a5 ld a0,-88(s0) call a2s_declinit@plt lla a1,.LC14 ld a0,-88(s0) call buf_printf@plt j .L78 .L15: ld a5,-96(s0) lw a5,168(a5) mv a2,a5 lla a1,.LC15 ld a0,-88(s0) call buf_printf@plt j .L1 .L12: ld a5,-96(s0) ld a5,48(a5) mv a0,a5 call ty2s@plt mv s1,a0 ld a5,-96(s0) lw a5,0(a5) mv a4,a5 li a5,173 bne a4,a5,.L64 ld a5,-96(s0) ld a5,8(a5) j .L65 .L64: ld a0,-96(s0) call node2s@plt mv a5,a0 .L65: mv a3,a5 mv a2,s1 lla a1,.LC16 ld a0,-88(s0) call buf_printf@plt sw zero,-68(s0) j .L66 .L68: lw a5,-68(s0) sext.w a5,a5 blez a5,.L67 lla a1,.LC17 ld a0,-88(s0) call buf_printf@plt .L67: ld a5,-96(s0) lw a5,164(a5) lw a4,-68(s0) mv a1,a4 mv a0,a5 call vec_get@plt mv a5,a0 mv a0,a5 call node2s@plt mv a5,a0 mv a2,a5 lla a1,.LC18 ld a0,-88(s0) call buf_printf@plt lw a5,-68(s0) addiw a5,a5,1 sw a5,-68(s0) .L66: ld a5,-96(s0) lw a5,164(a5) mv a0,a5 call vec_len@plt mv a5,a0 mv a4,a5 lw a5,-68(s0) sext.w a5,a5 blt a5,a4,.L68 lla a1,.LC14 ld a0,-88(s0) call buf_printf@plt j .L1 .L13: ld a5,-96(s0) ld a5,8(a5) mv a2,a5 lla a1,.LC19 ld a0,-88(s0) call buf_printf@plt j .L1 .L11: ld a5,-96(s0) ld a5,48(a5) mv a0,a5 call ty2s@plt mv a4,a0 ld a5,-96(s0) ld a5,8(a5) mv a3,a5 mv a2,a4 lla a1,.LC16 ld a0,-88(s0) call buf_printf@plt sw zero,-64(s0) j .L69 .L71: lw a5,-64(s0) sext.w a5,a5 blez a5,.L70 lla a1,.LC17 ld a0,-88(s0) call buf_printf@plt .L70: ld a5,-96(s0) lw a5,160(a5) lw a4,-64(s0) mv a1,a4 mv a0,a5 call vec_get@plt sd a0,-56(s0) ld a5,-56(s0) ld a5,48(a5) mv a0,a5 call ty2s@plt mv s1,a0 ld a0,-56(s0) call node2s@plt mv a5,a0 mv a3,a5 mv a2,s1 lla a1,.LC20 ld a0,-88(s0) call buf_printf@plt lw a5,-64(s0) addiw a5,a5,1 sw a5,-64(s0) .L69: ld a5,-96(s0) lw a5,160(a5) mv a0,a5 call vec_len@plt mv a5,a0 mv a4,a5 lw a5,-64(s0) sext.w a5,a5 blt a5,a4,.L71 lla a1,.LC14 ld a0,-88(s0) call buf_printf@plt ld a5,-96(s0) ld a5,152(a5) mv a1,a5 ld a0,-88(s0) call do_node2s j .L1 .L14: ld a5,-96(s0) lw a5,32(a5) mv a2,a5 lla a1,.LC21 ld a0,-88(s0) call buf_printf@plt j .L1 .L9: ld a5,-96(s0) ld a5,144(a5) ld a5,8(a5) mv a0,a5 call ty2s@plt mv a4,a0 ld a5,-96(s0) ld a5,144(a5) ld a5,0(a5) mv a3,a5 mv a2,a4 lla a1,.LC22 ld a0,-88(s0) call buf_printf@plt ld a5,-96(s0) lw a5,136(a5) beqz a5,.L72 lla a1,.LC23 ld a0,-88(s0) call buf_printf@plt ld a5,-96(s0) lw a5,136(a5) mv a1,a5 ld a0,-88(s0) call a2s_declinit@plt .L72: lla a1,.LC14 ld a0,-88(s0) call buf_printf@plt j .L1 .L17: ld a5,-96(s0) ld a5,128(a5) mv a0,a5 call node2s@plt mv s2,a0 ld a5,-96(s0) lw s1,120(a5) ld a5,-96(s0) ld a5,112(a5) mv a0,a5 call ty2s@plt mv a5,a0 mv a4,a5 mv a3,s1 mv a2,s2 lla a1,.LC24 ld a0,-88(s0) call buf_printf@plt j .L1 .L8: ld a5,-96(s0) ld a5,40(a5) mv a0,a5 call node2s@plt mv s1,a0 ld a5,-96(s0) ld a5,48(a5) mv a0,a5 call ty2s@plt mv a5,a0 mv a3,a5 mv a2,s1 lla a1,.LC25 ld a0,-88(s0) call buf_printf@plt j .L1 .L16: ld a5,-96(s0) ld a5,104(a5) mv a0,a5 call node2s@plt mv s1,a0 ld a5,-96(s0) ld a5,96(a5) mv a0,a5 call node2s@plt mv a5,a0 mv a3,a5 mv a2,s1 lla a1,.LC26 ld a0,-88(s0) call buf_printf@plt ld a5,-96(s0) ld a5,88(a5) beqz a5,.L73 ld a5,-96(s0) ld a5,88(a5) mv a0,a5 call node2s@plt mv a5,a0 mv a2,a5 lla a1,.LC27 ld a0,-88(s0) call buf_printf@plt .L73: lla a1,.LC14 ld a0,-88(s0) call buf_printf@plt j .L1 .L23: ld a5,-96(s0) ld a5,104(a5) mv a0,a5 call node2s@plt mv s1,a0 ld a5,-96(s0) ld a5,96(a5) mv a0,a5 call node2s@plt mv s2,a0 ld a5,-96(s0) ld a5,88(a5) mv a0,a5 call node2s@plt mv a5,a0 mv a4,a5 mv a3,s2 mv a2,s1 lla a1,.LC28 ld a0,-88(s0) call buf_printf@plt j .L1 .L21: ld a5,-96(s0) ld a5,80(a5) mv a0,a5 call node2s@plt mv a5,a0 mv a2,a5 lla a1,.LC29 ld a0,-88(s0) call buf_printf@plt j .L1 .L7: lla a1,.LC30 ld a0,-88(s0) call buf_printf@plt sw zero,-60(s0) j .L74 .L75: ld a5,-96(s0) lw a5,72(a5) lw a4,-60(s0) mv a1,a4 mv a0,a5 call vec_get@plt mv a5,a0 mv a1,a5 ld a0,-88(s0) call do_node2s lla a1,.LC31 ld a0,-88(s0) call buf_printf@plt lw a5,-60(s0) addiw a5,a5,1 sw a5,-60(s0) .L74: ld a5,-96(s0) lw a5,72(a5) mv a0,a5 call vec_len@plt mv a5,a0 mv a4,a5 lw a5,-60(s0) sext.w a5,a5 blt a5,a4,.L75 lla a1,.LC32 ld a0,-88(s0) call buf_printf@plt j .L1 .L22: ld a5,-96(s0) ld a5,64(a5) mv a1,a5 ld a0,-88(s0) call do_node2s lla a1,.LC33 ld a0,-88(s0) call buf_printf@plt ld a5,-96(s0) lw a5,56(a5) mv a1,a5 ld a0,-88(s0) call buf_printf@plt j .L1 .L5: ld a2,-96(s0) lla a1,.LC34 ld a0,-88(s0) call uop_to_string@plt j .L1 .L10: ld a2,-96(s0) lla a1,.LC35 ld a0,-88(s0) call uop_to_string@plt j .L1 .L45: ld a2,-96(s0) lla a1,.LC36 ld a0,-88(s0) call binop_to_string@plt j .L1 .L46: ld a2,-96(s0) lla a1,.LC37 ld a0,-88(s0) call binop_to_string@plt j .L1 .L35: ld a2,-96(s0) lla a1,.LC38 ld a0,-88(s0) call binop_to_string@plt j .L1 .L37: ld a2,-96(s0) lla a1,.LC39 ld a0,-88(s0) call binop_to_string@plt j .L1 .L40: ld a2,-96(s0) lla a1,.LC40 ld a0,-88(s0) call binop_to_string@plt j .L1 .L44: ld a2,-96(s0) lla a1,.LC41 ld a0,-88(s0) call uop_to_string@plt j .L1 .L43: ld a2,-96(s0) lla a1,.LC42 ld a0,-88(s0) call uop_to_string@plt j .L1 .L42: ld a2,-96(s0) lla a1,.LC43 ld a0,-88(s0) call uop_to_string@plt j .L1 .L41: ld a2,-96(s0) lla a1,.LC44 ld a0,-88(s0) call uop_to_string@plt j .L1 .L38: ld a2,-96(s0) lla a1,.LC45 ld a0,-88(s0) call binop_to_string@plt j .L1 .L39: ld a2,-96(s0) lla a1,.LC46 ld a0,-88(s0) call binop_to_string@plt j .L1 .L24: ld a2,-96(s0) lla a1,.LC47 ld a0,-88(s0) call binop_to_string@plt j .L1 .L32: ld a2,-96(s0) lla a1,.LC48 ld a0,-88(s0) call binop_to_string@plt j .L1 .L28: ld a2,-96(s0) lla a1,.LC49 ld a0,-88(s0) call binop_to_string@plt j .L1 .L26: ld a2,-96(s0) lla a1,.LC50 ld a0,-88(s0) call binop_to_string@plt j .L1 .L27: ld a2,-96(s0) lla a1,.LC51 ld a0,-88(s0) call binop_to_string@plt j .L1 .L25: ld a2,-96(s0) lla a1,.LC52 ld a0,-88(s0) call binop_to_string@plt j .L1 .L29: ld a2,-96(s0) lla a1,.LC53 ld a0,-88(s0) call binop_to_string@plt j .L1 .L33: ld a2,-96(s0) lla a1,.LC54 ld a0,-88(s0) call binop_to_string@plt j .L1 .L30: ld a2,-96(s0) lla a1,.LC55 ld a0,-88(s0) call binop_to_string@plt j .L1 .L31: ld a2,-96(s0) lla a1,.LC56 ld a0,-88(s0) call binop_to_string@plt j .L1 .L49: ld a2,-96(s0) lla a1,.LC57 ld a0,-88(s0) call uop_to_string@plt j .L1 .L48: ld a2,-96(s0) lla a1,.LC58 ld a0,-88(s0) call binop_to_string@plt j .L1 .L47: ld a2,-96(s0) lla a1,.LC59 ld a0,-88(s0) call binop_to_string@plt j .L1 .L34: ld a5,-96(s0) ld a5,40(a5) ld a5,48(a5) mv a0,a5 call ty2s@plt mv s1,a0 ld a5,-96(s0) ld a5,48(a5) mv a0,a5 call ty2s@plt mv s2,a0 ld a5,-96(s0) ld a5,40(a5) mv a0,a5 call node2s@plt mv a5,a0 mv a4,a5 mv a3,s2 mv a2,s1 lla a1,.LC60 ld a0,-88(s0) call buf_printf@plt j .L1 .L36: ld a5,-96(s0) lw a5,32(a5) mv a2,a5 lla a1,.LC61 ld a0,-88(s0) call buf_printf@plt j .L1 .L4: ld a5,-96(s0) ld a5,24(a5) mv a0,a5 call node2s@plt sd a0,-48(s0) ld a5,-96(s0) ld a5,16(a5) mv a0,a5 call node2s@plt sd a0,-40(s0) ld a5,-96(s0) lw a4,0(a5) la a5,OP_EQ lw a5,0(a5) bne a4,a5,.L76 lla a1,.LC62 ld a0,-88(s0) call buf_printf@plt j .L77 .L76: ld a5,-96(s0) lw a5,0(a5) mv a2,a5 lla a1,.LC63 ld a0,-88(s0) call buf_printf@plt .L77: ld a3,-40(s0) ld a2,-48(s0) lla a1,.LC64 ld a0,-88(s0) call buf_printf@plt j .L1 .L78: nop .L1: ld ra,88(sp) ld s0,80(sp) ld s1,72(sp) ld s2,64(sp) addi sp,sp,96 jr ra .size do_node2s, .-do_node2s .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_debug.c_encoding_prefix.c" .intel_syntax noprefix .text .section .rodata .LC0: .string "u" .LC1: .string "U" .LC2: .string "u8" .LC3: .string "L" .LC4: .string "" .text .type encoding_prefix, @function encoding_prefix: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 mov DWORD PTR -4[rbp], edi cmp DWORD PTR -4[rbp], 131 je .L2 cmp DWORD PTR -4[rbp], 131 jg .L3 cmp DWORD PTR -4[rbp], 130 je .L4 cmp DWORD PTR -4[rbp], 130 jg .L3 cmp DWORD PTR -4[rbp], 128 je .L5 cmp DWORD PTR -4[rbp], 129 je .L6 jmp .L3 .L2: lea rax, .LC0[rip] jmp .L7 .L4: lea rax, .LC1[rip] jmp .L7 .L6: lea rax, .LC2[rip] jmp .L7 .L5: lea rax, .LC3[rip] jmp .L7 .L3: lea rax, .LC4[rip] .L7: pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size encoding_prefix, .-encoding_prefix .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_debug.c_encoding_prefix.c" .option pic .text .section .rodata .align 3 .LC0: .string "u" .align 3 .LC1: .string "U" .align 3 .LC2: .string "u8" .align 3 .LC3: .string "L" .align 3 .LC4: .string "" .text .align 1 .type encoding_prefix, @function encoding_prefix: addi sp,sp,-32 sd s0,24(sp) addi s0,sp,32 mv a5,a0 sw a5,-20(s0) lw a5,-20(s0) sext.w a4,a5 li a5,131 beq a4,a5,.L2 lw a5,-20(s0) sext.w a4,a5 li a5,131 bgt a4,a5,.L3 lw a5,-20(s0) sext.w a4,a5 li a5,130 beq a4,a5,.L4 lw a5,-20(s0) sext.w a4,a5 li a5,130 bgt a4,a5,.L3 lw a5,-20(s0) sext.w a4,a5 li a5,128 beq a4,a5,.L5 lw a5,-20(s0) sext.w a4,a5 li a5,129 beq a4,a5,.L6 j .L3 .L2: lla a5,.LC0 j .L7 .L4: lla a5,.LC1 j .L7 .L6: lla a5,.LC2 j .L7 .L5: lla a5,.LC3 j .L7 .L3: lla a5,.LC4 .L7: mv a0,a5 ld s0,24(sp) addi sp,sp,32 jr ra .size encoding_prefix, .-encoding_prefix .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_debug.c_node2s.c" .intel_syntax noprefix .text .globl node2s .type node2s, @function node2s: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 32 mov QWORD PTR -24[rbp], rdi mov eax, 0 call make_buffer@PLT mov QWORD PTR -8[rbp], rax mov rdx, QWORD PTR -24[rbp] mov rax, QWORD PTR -8[rbp] mov rsi, rdx mov rdi, rax call do_node2s@PLT mov rax, QWORD PTR -8[rbp] mov rdi, rax call buf_body@PLT leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size node2s, .-node2s .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_debug.c_node2s.c" .option pic .text .align 1 .globl node2s .type node2s, @function node2s: addi sp,sp,-48 sd ra,40(sp) sd s0,32(sp) addi s0,sp,48 sd a0,-40(s0) call make_buffer@plt sd a0,-24(s0) ld a1,-40(s0) ld a0,-24(s0) call do_node2s@plt ld a0,-24(s0) call buf_body@plt mv a5,a0 mv a0,a5 ld ra,40(sp) ld s0,32(sp) addi sp,sp,48 jr ra .size node2s, .-node2s .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_debug.c_ty2s.c" .intel_syntax noprefix .text .globl ty2s .type ty2s, @function ty2s: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 16 mov QWORD PTR -8[rbp], rdi mov eax, 0 call make_dict@PLT mov edx, eax mov rax, QWORD PTR -8[rbp] mov rsi, rax mov edi, edx call do_ty2s@PLT leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size ty2s, .-ty2s .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_debug.c_ty2s.c" .option pic .text .align 1 .globl ty2s .type ty2s, @function ty2s: addi sp,sp,-32 sd ra,24(sp) sd s0,16(sp) addi s0,sp,32 sd a0,-24(s0) call make_dict@plt mv a5,a0 ld a1,-24(s0) mv a0,a5 call do_ty2s@plt mv a5,a0 mv a0,a5 ld ra,24(sp) ld s0,16(sp) addi sp,sp,32 jr ra .size ty2s, .-ty2s .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_debug.c_uop_to_string.c" .intel_syntax noprefix .text .section .rodata .LC0: .string "(%s %s)" .text .type uop_to_string, @function uop_to_string: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 32 mov QWORD PTR -8[rbp], rdi mov QWORD PTR -16[rbp], rsi mov QWORD PTR -24[rbp], rdx mov rax, QWORD PTR -24[rbp] mov eax, DWORD PTR [rax] mov edi, eax call node2s@PLT mov ecx, eax mov rdx, QWORD PTR -16[rbp] mov rax, QWORD PTR -8[rbp] lea rsi, .LC0[rip] mov rdi, rax call buf_printf@PLT nop leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size uop_to_string, .-uop_to_string .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_debug.c_uop_to_string.c" .option pic .text .section .rodata .align 3 .LC0: .string "(%s %s)" .text .align 1 .type uop_to_string, @function uop_to_string: addi sp,sp,-48 sd ra,40(sp) sd s0,32(sp) addi s0,sp,48 sd a0,-24(s0) sd a1,-32(s0) sd a2,-40(s0) ld a5,-40(s0) lw a5,0(a5) mv a0,a5 call node2s@plt mv a5,a0 mv a3,a5 ld a2,-32(s0) lla a1,.LC0 ld a0,-24(s0) call buf_printf@plt nop ld ra,40(sp) ld s0,32(sp) addi sp,sp,48 jr ra .size uop_to_string, .-uop_to_string .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_dict.c_dict_get.c" .intel_syntax noprefix .text .globl dict_get .type dict_get, @function dict_get: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 16 mov QWORD PTR -8[rbp], rdi mov QWORD PTR -16[rbp], rsi mov rax, QWORD PTR -8[rbp] mov eax, DWORD PTR [rax] mov rdx, QWORD PTR -16[rbp] mov rsi, rdx mov edi, eax call map_get@PLT leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size dict_get, .-dict_get .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_dict.c_dict_get.c" .option pic .text .align 1 .globl dict_get .type dict_get, @function dict_get: addi sp,sp,-32 sd ra,24(sp) sd s0,16(sp) addi s0,sp,32 sd a0,-24(s0) sd a1,-32(s0) ld a5,-24(s0) lw a5,0(a5) ld a1,-32(s0) mv a0,a5 call map_get@plt mv a5,a0 mv a0,a5 ld ra,24(sp) ld s0,16(sp) addi sp,sp,32 jr ra .size dict_get, .-dict_get .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_dict.c_dict_keys.c" .intel_syntax noprefix .text .globl dict_keys .type dict_keys, @function dict_keys: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 mov QWORD PTR -8[rbp], rdi mov rax, QWORD PTR -8[rbp] mov rax, QWORD PTR [rax] pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size dict_keys, .-dict_keys .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_dict.c_dict_keys.c" .option pic .text .align 1 .globl dict_keys .type dict_keys, @function dict_keys: addi sp,sp,-32 sd s0,24(sp) addi s0,sp,32 sd a0,-24(s0) ld a5,-24(s0) ld a5,0(a5) mv a0,a5 ld s0,24(sp) addi sp,sp,32 jr ra .size dict_keys, .-dict_keys .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_dict.c_dict_put.c" .intel_syntax noprefix .text .globl dict_put .type dict_put, @function dict_put: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 32 mov QWORD PTR -8[rbp], rdi mov QWORD PTR -16[rbp], rsi mov QWORD PTR -24[rbp], rdx mov rax, QWORD PTR -8[rbp] mov eax, DWORD PTR 4[rax] mov rdx, QWORD PTR -24[rbp] mov rcx, QWORD PTR -16[rbp] mov rsi, rcx mov edi, eax call map_put@PLT mov rax, QWORD PTR -8[rbp] mov eax, DWORD PTR [rax] mov rdx, QWORD PTR -16[rbp] mov rsi, rdx mov edi, eax call vec_push@PLT nop leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size dict_put, .-dict_put .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_dict.c_dict_put.c" .option pic .text .align 1 .globl dict_put .type dict_put, @function dict_put: addi sp,sp,-48 sd ra,40(sp) sd s0,32(sp) addi s0,sp,48 sd a0,-24(s0) sd a1,-32(s0) sd a2,-40(s0) ld a5,-24(s0) lw a5,4(a5) ld a2,-40(s0) ld a1,-32(s0) mv a0,a5 call map_put@plt ld a5,-24(s0) lw a5,0(a5) ld a1,-32(s0) mv a0,a5 call vec_push@plt nop ld ra,40(sp) ld s0,32(sp) addi sp,sp,48 jr ra .size dict_put, .-dict_put .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_dict.c_make_dict.c" .intel_syntax noprefix .text .globl make_dict .type make_dict, @function make_dict: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 16 mov edi, 8 call malloc@PLT mov QWORD PTR -8[rbp], rax mov eax, 0 call make_map@PLT mov rdx, QWORD PTR -8[rbp] mov DWORD PTR 4[rdx], eax mov eax, 0 call make_vector@PLT mov rdx, QWORD PTR -8[rbp] mov DWORD PTR [rdx], eax mov rax, QWORD PTR -8[rbp] leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size make_dict, .-make_dict .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_dict.c_make_dict.c" .option pic .text .align 1 .globl make_dict .type make_dict, @function make_dict: addi sp,sp,-32 sd ra,24(sp) sd s0,16(sp) addi s0,sp,32 li a0,8 call malloc@plt sd a0,-24(s0) call make_map@plt mv a5,a0 mv a4,a5 ld a5,-24(s0) sw a4,4(a5) call make_vector@plt mv a5,a0 mv a4,a5 ld a5,-24(s0) sw a4,0(a5) ld a5,-24(s0) mv a0,a5 ld ra,24(sp) ld s0,16(sp) addi sp,sp,32 jr ra .size make_dict, .-make_dict .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_encoding.c_count_leading_ones.c" .intel_syntax noprefix .text .type count_leading_ones, @function count_leading_ones: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 mov eax, edi mov BYTE PTR -20[rbp], al mov DWORD PTR -4[rbp], 7 jmp .L2 .L5: movsx edx, BYTE PTR -20[rbp] mov eax, DWORD PTR -4[rbp] mov ecx, eax sar edx, cl mov eax, edx and eax, 1 test eax, eax jne .L3 mov eax, 7 sub eax, DWORD PTR -4[rbp] jmp .L4 .L3: sub DWORD PTR -4[rbp], 1 .L2: cmp DWORD PTR -4[rbp], 0 jns .L5 mov eax, 8 .L4: pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size count_leading_ones, .-count_leading_ones .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_encoding.c_count_leading_ones.c" .option pic .text .align 1 .type count_leading_ones, @function count_leading_ones: addi sp,sp,-48 sd s0,40(sp) addi s0,sp,48 mv a5,a0 sb a5,-33(s0) li a5,7 sw a5,-20(s0) j .L2 .L5: lbu a5,-33(s0) sext.w a4,a5 lw a5,-20(s0) sraw a5,a4,a5 sext.w a5,a5 andi a5,a5,1 sext.w a5,a5 bnez a5,.L3 li a4,7 lw a5,-20(s0) subw a5,a4,a5 sext.w a5,a5 j .L4 .L3: lw a5,-20(s0) addiw a5,a5,-1 sw a5,-20(s0) .L2: lw a5,-20(s0) sext.w a5,a5 bgez a5,.L5 li a5,8 .L4: mv a0,a5 ld s0,40(sp) addi sp,sp,48 jr ra .size count_leading_ones, .-count_leading_ones .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_encoding.c_read_rune.c" .intel_syntax noprefix .text .section .rodata .LC0: .string "invalid UTF-8 sequence" .align 8 .LC1: .string "invalid UTF-8 continuation byte" .text .type read_rune, @function read_rune: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 48 mov QWORD PTR -24[rbp], rdi mov QWORD PTR -32[rbp], rsi mov QWORD PTR -40[rbp], rdx mov rax, QWORD PTR -32[rbp] movzx eax, BYTE PTR [rax] movsx eax, al mov edi, eax call count_leading_ones@PLT mov DWORD PTR -4[rbp], eax cmp DWORD PTR -4[rbp], 0 jne .L2 mov rax, QWORD PTR -32[rbp] movzx edx, BYTE PTR [rax] mov rax, QWORD PTR -24[rbp] mov BYTE PTR [rax], dl mov eax, 1 jmp .L1 .L2: mov eax, DWORD PTR -4[rbp] movsx rdx, eax mov rax, QWORD PTR -32[rbp] add rax, rdx cmp QWORD PTR -40[rbp], rax jnb .L4 lea rdi, .LC0[rip] call error@PLT .L4: mov DWORD PTR -8[rbp], 1 jmp .L5 .L7: mov eax, DWORD PTR -8[rbp] movsx rdx, eax mov rax, QWORD PTR -32[rbp] add rax, rdx movzx eax, BYTE PTR [rax] movsx eax, al and eax, 192 cmp eax, 128 je .L6 lea rdi, .LC1[rip] call error@PLT .L6: add DWORD PTR -8[rbp], 1 .L5: mov eax, DWORD PTR -8[rbp] cmp eax, DWORD PTR -4[rbp] jl .L7 cmp DWORD PTR -4[rbp], 4 je .L8 cmp DWORD PTR -4[rbp], 4 jg .L9 cmp DWORD PTR -4[rbp], 2 je .L10 cmp DWORD PTR -4[rbp], 3 je .L11 jmp .L9 .L10: mov rax, QWORD PTR -32[rbp] movzx eax, BYTE PTR [rax] movsx eax, al sal eax, 6 and eax, -64 mov edx, eax mov rax, QWORD PTR -32[rbp] add rax, 1 movzx eax, BYTE PTR [rax] and eax, 63 or edx, eax mov rax, QWORD PTR -24[rbp] mov BYTE PTR [rax], dl mov eax, 2 jmp .L1 .L11: mov rax, QWORD PTR -32[rbp] movzx eax, BYTE PTR [rax] movsx eax, al sal eax, 12 mov edx, eax mov rax, QWORD PTR -32[rbp] add rax, 1 movzx eax, BYTE PTR [rax] movsx eax, al sal eax, 6 and eax, -64 or edx, eax mov rax, QWORD PTR -32[rbp] add rax, 2 movzx eax, BYTE PTR [rax] and eax, 63 or edx, eax mov rax, QWORD PTR -24[rbp] mov BYTE PTR [rax], dl mov eax, 3 jmp .L1 .L8: mov rax, QWORD PTR -32[rbp] add rax, 2 movzx eax, BYTE PTR [rax] movsx eax, al sal eax, 6 and eax, -64 mov edx, eax mov rax, QWORD PTR -32[rbp] add rax, 3 movzx eax, BYTE PTR [rax] and eax, 63 or edx, eax mov rax, QWORD PTR -24[rbp] mov BYTE PTR [rax], dl mov eax, 4 jmp .L1 .L9: lea rdi, .LC0[rip] call error@PLT .L1: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size read_rune, .-read_rune .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_encoding.c_read_rune.c" .option pic .text .section .rodata .align 3 .LC0: .string "invalid UTF-8 sequence" .align 3 .LC1: .string "invalid UTF-8 continuation byte" .text .align 1 .type read_rune, @function read_rune: addi sp,sp,-64 sd ra,56(sp) sd s0,48(sp) addi s0,sp,64 sd a0,-40(s0) sd a1,-48(s0) sd a2,-56(s0) ld a5,-48(s0) lbu a5,0(a5) mv a0,a5 call count_leading_ones@plt mv a5,a0 sw a5,-20(s0) lw a5,-20(s0) sext.w a5,a5 bnez a5,.L2 ld a5,-48(s0) lbu a4,0(a5) ld a5,-40(s0) sb a4,0(a5) li a5,1 j .L1 .L2: lw a5,-20(s0) ld a4,-48(s0) add a5,a4,a5 ld a4,-56(s0) bgeu a4,a5,.L4 lla a0,.LC0 call error@plt .L4: li a5,1 sw a5,-24(s0) j .L5 .L7: lw a5,-24(s0) ld a4,-48(s0) add a5,a4,a5 lbu a5,0(a5) sext.w a5,a5 andi a5,a5,192 sext.w a5,a5 mv a4,a5 li a5,128 beq a4,a5,.L6 lla a0,.LC1 call error@plt .L6: lw a5,-24(s0) addiw a5,a5,1 sw a5,-24(s0) .L5: lw a4,-24(s0) lw a5,-20(s0) sext.w a4,a4 sext.w a5,a5 blt a4,a5,.L7 lw a5,-20(s0) sext.w a4,a5 li a5,4 beq a4,a5,.L8 lw a5,-20(s0) sext.w a4,a5 li a5,4 bgt a4,a5,.L9 lw a5,-20(s0) sext.w a4,a5 li a5,2 beq a4,a5,.L10 lw a5,-20(s0) sext.w a4,a5 li a5,3 beq a4,a5,.L11 j .L9 .L10: ld a5,-48(s0) lbu a5,0(a5) sext.w a5,a5 slliw a5,a5,6 sext.w a5,a5 slliw a5,a5,24 sraiw a5,a5,24 andi a5,a5,-64 slliw a4,a5,24 sraiw a4,a4,24 ld a5,-48(s0) addi a5,a5,1 lbu a5,0(a5) slliw a5,a5,24 sraiw a5,a5,24 andi a5,a5,63 slliw a5,a5,24 sraiw a5,a5,24 or a5,a4,a5 slliw a5,a5,24 sraiw a5,a5,24 andi a4,a5,0xff ld a5,-40(s0) sb a4,0(a5) li a5,2 j .L1 .L11: ld a5,-48(s0) lbu a5,0(a5) sext.w a5,a5 slliw a5,a5,12 sext.w a5,a5 slliw a4,a5,24 sraiw a4,a4,24 ld a5,-48(s0) addi a5,a5,1 lbu a5,0(a5) sext.w a5,a5 slliw a5,a5,6 sext.w a5,a5 slliw a5,a5,24 sraiw a5,a5,24 andi a5,a5,-64 slliw a5,a5,24 sraiw a5,a5,24 or a5,a4,a5 slliw a4,a5,24 sraiw a4,a4,24 ld a5,-48(s0) addi a5,a5,2 lbu a5,0(a5) slliw a5,a5,24 sraiw a5,a5,24 andi a5,a5,63 slliw a5,a5,24 sraiw a5,a5,24 or a5,a4,a5 slliw a5,a5,24 sraiw a5,a5,24 andi a4,a5,0xff ld a5,-40(s0) sb a4,0(a5) li a5,3 j .L1 .L8: ld a5,-48(s0) addi a5,a5,2 lbu a5,0(a5) sext.w a5,a5 slliw a5,a5,6 sext.w a5,a5 slliw a5,a5,24 sraiw a5,a5,24 andi a5,a5,-64 slliw a4,a5,24 sraiw a4,a4,24 ld a5,-48(s0) addi a5,a5,3 lbu a5,0(a5) slliw a5,a5,24 sraiw a5,a5,24 andi a5,a5,63 slliw a5,a5,24 sraiw a5,a5,24 or a5,a4,a5 slliw a5,a5,24 sraiw a5,a5,24 andi a4,a5,0xff ld a5,-40(s0) sb a4,0(a5) li a5,4 j .L1 .L9: lla a0,.LC0 call error@plt .L1: mv a0,a5 ld ra,56(sp) ld s0,48(sp) addi sp,sp,64 jr ra .size read_rune, .-read_rune .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_encoding.c_to_utf16.c" .intel_syntax noprefix .text .globl to_utf16 .type to_utf16, @function to_utf16: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 48 mov QWORD PTR -40[rbp], rdi mov DWORD PTR -44[rbp], esi mov rax, QWORD PTR fs:40 mov QWORD PTR -8[rbp], rax xor eax, eax mov eax, 0 call make_buffer@PLT mov QWORD PTR -24[rbp], rax mov eax, DWORD PTR -44[rbp] movsx rdx, eax mov rax, QWORD PTR -40[rbp] add rax, rdx mov QWORD PTR -16[rbp], rax jmp .L2 .L5: mov rdx, QWORD PTR -16[rbp] mov rcx, QWORD PTR -40[rbp] lea rax, -28[rbp] mov rsi, rcx mov rdi, rax call read_rune@PLT cdqe add QWORD PTR -40[rbp], rax mov eax, DWORD PTR -28[rbp] cmp eax, 65535 jg .L3 mov edx, DWORD PTR -28[rbp] mov rax, QWORD PTR -24[rbp] mov esi, edx mov rdi, rax call write16@PLT jmp .L2 .L3: mov eax, DWORD PTR -28[rbp] sar eax, 10 lea edx, 55232[rax] mov rax, QWORD PTR -24[rbp] mov esi, edx mov rdi, rax call write16@PLT mov eax, DWORD PTR -28[rbp] and eax, 1023 lea edx, 56320[rax] mov rax, QWORD PTR -24[rbp] mov esi, edx mov rdi, rax call write16@PLT .L2: mov rax, QWORD PTR -40[rbp] cmp rax, QWORD PTR -16[rbp] jne .L5 mov rax, QWORD PTR -24[rbp] mov rcx, QWORD PTR -8[rbp] sub rcx, QWORD PTR fs:40 je .L7 call __stack_chk_fail@PLT .L7: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size to_utf16, .-to_utf16 .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_encoding.c_to_utf16.c" .option pic .text .align 1 .globl to_utf16 .type to_utf16, @function to_utf16: addi sp,sp,-64 sd ra,56(sp) sd s0,48(sp) addi s0,sp,64 sd a0,-56(s0) mv a5,a1 sw a5,-60(s0) la a5,__stack_chk_guard ld a5,0(a5) sd a5,-24(s0) call make_buffer@plt sd a0,-40(s0) lw a5,-60(s0) ld a4,-56(s0) add a5,a4,a5 sd a5,-32(s0) j .L2 .L5: addi a5,s0,-44 ld a2,-32(s0) ld a1,-56(s0) mv a0,a5 call read_rune@plt mv a5,a0 mv a4,a5 ld a5,-56(s0) add a5,a5,a4 sd a5,-56(s0) lw a5,-44(s0) mv a4,a5 li a5,65536 bge a4,a5,.L3 lw a5,-44(s0) mv a1,a5 ld a0,-40(s0) call write16@plt j .L2 .L3: lw a5,-44(s0) sraiw a5,a5,10 sext.w a4,a5 li a5,53248 addiw a5,a5,1984 addw a5,a4,a5 sext.w a5,a5 mv a1,a5 ld a0,-40(s0) call write16@plt lw a5,-44(s0) andi a5,a5,1023 sext.w a4,a5 li a5,57344 addiw a5,a5,-1024 addw a5,a4,a5 sext.w a5,a5 mv a1,a5 ld a0,-40(s0) call write16@plt .L2: ld a4,-56(s0) ld a5,-32(s0) bne a4,a5,.L5 ld a5,-40(s0) mv a3,a5 la a5,__stack_chk_guard ld a4,-24(s0) ld a5,0(a5) beq a4,a5,.L7 call __stack_chk_fail@plt .L7: mv a0,a3 ld ra,56(sp) ld s0,48(sp) addi sp,sp,64 jr ra .size to_utf16, .-to_utf16 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench
.file "extr_encoding.c_to_utf32.c" .intel_syntax noprefix .text .globl to_utf32 .type to_utf32, @function to_utf32: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 48 mov QWORD PTR -40[rbp], rdi mov DWORD PTR -44[rbp], esi mov rax, QWORD PTR fs:40 mov QWORD PTR -8[rbp], rax xor eax, eax mov eax, 0 call make_buffer@PLT mov QWORD PTR -24[rbp], rax mov eax, DWORD PTR -44[rbp] movsx rdx, eax mov rax, QWORD PTR -40[rbp] add rax, rdx mov QWORD PTR -16[rbp], rax jmp .L2 .L3: mov rdx, QWORD PTR -16[rbp] mov rcx, QWORD PTR -40[rbp] lea rax, -28[rbp] mov rsi, rcx mov rdi, rax call read_rune@PLT cdqe add QWORD PTR -40[rbp], rax mov edx, DWORD PTR -28[rbp] mov rax, QWORD PTR -24[rbp] mov esi, edx mov rdi, rax call write32@PLT .L2: mov rax, QWORD PTR -40[rbp] cmp rax, QWORD PTR -16[rbp] jne .L3 mov rax, QWORD PTR -24[rbp] mov rcx, QWORD PTR -8[rbp] sub rcx, QWORD PTR fs:40 je .L5 call __stack_chk_fail@PLT .L5: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size to_utf32, .-to_utf32 .ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.file "extr_encoding.c_to_utf32.c" .option pic .text .align 1 .globl to_utf32 .type to_utf32, @function to_utf32: addi sp,sp,-64 sd ra,56(sp) sd s0,48(sp) addi s0,sp,64 sd a0,-56(s0) mv a5,a1 sw a5,-60(s0) la a5,__stack_chk_guard ld a5,0(a5) sd a5,-24(s0) call make_buffer@plt sd a0,-40(s0) lw a5,-60(s0) ld a4,-56(s0) add a5,a4,a5 sd a5,-32(s0) j .L2 .L3: addi a5,s0,-44 ld a2,-32(s0) ld a1,-56(s0) mv a0,a5 call read_rune@plt mv a5,a0 mv a4,a5 ld a5,-56(s0) add a5,a5,a4 sd a5,-56(s0) lw a5,-44(s0) mv a1,a5 ld a0,-40(s0) call write32@plt .L2: ld a4,-56(s0) ld a5,-32(s0) bne a4,a5,.L3 ld a5,-40(s0) mv a3,a5 la a5,__stack_chk_guard ld a4,-24(s0) ld a5,0(a5) beq a4,a5,.L5 call __stack_chk_fail@plt .L5: mv a0,a3 ld ra,56(sp) ld s0,48(sp) addi sp,sp,64 jr ra .size to_utf32, .-to_utf32 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0" .section .note.GNU-stack,"",@progbits
anghabench