Guaranteed Guessing
Collection
20 items
•
Updated
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
|
Check out more datails here: