x86
stringlengths 335
106k
| risc
stringlengths 139
103k
| source
stringclasses 1
value |
|---|---|---|
.file "extr_gen.c_pop_float_args.c"
.intel_syntax noprefix
.text
.globl SAVE
.bss
.align 4
.type SAVE, @object
.size SAVE, 4
SAVE:
.zero 4
.text
.type pop_float_args, @function
pop_float_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 DWORD PTR -20[rbp], edi
mov eax, DWORD PTR -20[rbp]
sub eax, 1
mov DWORD PTR -4[rbp], eax
jmp .L2
.L3:
mov eax, DWORD PTR -4[rbp]
mov edi, eax
call pop_xmm@PLT
sub DWORD PTR -4[rbp], 1
.L2:
cmp DWORD PTR -4[rbp], 0
jns .L3
nop
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size pop_float_args, .-pop_float_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_gen.c_pop_float_args.c"
.option pic
.text
.comm SAVE,4,4
.align 1
.type pop_float_args, @function
pop_float_args:
addi sp,sp,-48
sd ra,40(sp)
sd s0,32(sp)
addi s0,sp,48
mv a5,a0
sw a5,-36(s0)
lw a5,-36(s0)
addiw a5,a5,-1
sw a5,-20(s0)
j .L2
.L3:
lw a5,-20(s0)
mv a0,a5
call pop_xmm@plt
lw a5,-20(s0)
addiw a5,a5,-1
sw a5,-20(s0)
.L2:
lw a5,-20(s0)
sext.w a5,a5
bgez a5,.L3
nop
nop
ld ra,40(sp)
ld s0,32(sp)
addi sp,sp,48
jr ra
.size pop_float_args, .-pop_float_args
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_gen.c_pop_function.c"
.intel_syntax noprefix
.text
.globl dumpstack
.bss
.align 8
.type dumpstack, @object
.size dumpstack, 8
dumpstack:
.zero 8
.globl functions
.align 4
.type functions, @object
.size functions, 4
functions:
.zero 4
.text
.type pop_function, @function
pop_function:
.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 dumpstack[rip]
test rax, rax
je .L3
mov eax, DWORD PTR functions[rip]
mov edi, eax
call vec_pop@PLT
.L3:
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size pop_function, .-pop_function
.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_gen.c_pop_function.c"
.option pic
.text
.comm dumpstack,8,8
.comm functions,4,4
.align 1
.type pop_function, @function
pop_function:
addi sp,sp,-32
sd ra,24(sp)
sd s0,16(sp)
addi s0,sp,32
sd a0,-24(s0)
la a5,dumpstack
ld a5,0(a5)
beqz a5,.L3
la a5,functions
lw a5,0(a5)
mv a0,a5
call vec_pop@plt
.L3:
nop
ld ra,24(sp)
ld s0,16(sp)
addi sp,sp,32
jr ra
.size pop_function, .-pop_function
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_gen.c_pop_int_args.c"
.intel_syntax noprefix
.text
.globl REGS
.bss
.align 8
.type REGS, @object
.size REGS, 8
REGS:
.zero 8
.globl SAVE
.align 4
.type SAVE, @object
.size SAVE, 4
SAVE:
.zero 4
.text
.type pop_int_args, @function
pop_int_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 DWORD PTR -20[rbp], edi
mov eax, DWORD PTR -20[rbp]
sub eax, 1
mov DWORD PTR -4[rbp], eax
jmp .L2
.L3:
mov rdx, QWORD PTR REGS[rip]
mov eax, DWORD PTR -4[rbp]
cdqe
sal rax, 2
add rax, rdx
mov eax, DWORD PTR [rax]
mov edi, eax
call pop@PLT
sub DWORD PTR -4[rbp], 1
.L2:
cmp DWORD PTR -4[rbp], 0
jns .L3
nop
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size pop_int_args, .-pop_int_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_gen.c_pop_int_args.c"
.option pic
.text
.comm REGS,8,8
.comm SAVE,4,4
.align 1
.type pop_int_args, @function
pop_int_args:
addi sp,sp,-48
sd ra,40(sp)
sd s0,32(sp)
addi s0,sp,48
mv a5,a0
sw a5,-36(s0)
lw a5,-36(s0)
addiw a5,a5,-1
sw a5,-20(s0)
j .L2
.L3:
la a5,REGS
ld a4,0(a5)
lw a5,-20(s0)
slli a5,a5,2
add a5,a4,a5
lw a5,0(a5)
mv a0,a5
call pop@plt
lw a5,-20(s0)
addiw a5,a5,-1
sw a5,-20(s0)
.L2:
lw a5,-20(s0)
sext.w a5,a5
bgez a5,.L3
nop
nop
ld ra,40(sp)
ld s0,32(sp)
addi sp,sp,48
jr ra
.size pop_int_args, .-pop_int_args
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_gen.c_pop_xmm.c"
.intel_syntax noprefix
.text
.globl SAVE
.bss
.align 4
.type SAVE, @object
.size SAVE, 4
SAVE:
.zero 4
.globl stackpos
.align 8
.type stackpos, @object
.size stackpos, 8
stackpos:
.zero 8
.section .rodata
.LC0:
.string "movsd (#rsp), #xmm%d"
.LC1:
.string "add $8, #rsp"
.text
.type pop_xmm, @function
pop_xmm:
.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 esi, eax
lea rdi, .LC0[rip]
mov eax, 0
call emit@PLT
lea rdi, .LC1[rip]
mov eax, 0
call emit@PLT
mov rax, QWORD PTR stackpos[rip]
sub rax, 8
mov QWORD PTR stackpos[rip], rax
mov rax, QWORD PTR stackpos[rip]
not rax
shr rax, 63
movzx eax, al
mov edi, eax
call assert@PLT
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size pop_xmm, .-pop_xmm
.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_gen.c_pop_xmm.c"
.option pic
.text
.comm SAVE,4,4
.comm stackpos,8,8
.section .rodata
.align 3
.LC0:
.string "movsd (#rsp), #xmm%d"
.align 3
.LC1:
.string "add $8, #rsp"
.text
.align 1
.type pop_xmm, @function
pop_xmm:
addi sp,sp,-32
sd ra,24(sp)
sd s0,16(sp)
addi s0,sp,32
mv a5,a0
sw a5,-20(s0)
lw a5,-20(s0)
mv a1,a5
lla a0,.LC0
call emit@plt
lla a0,.LC1
call emit@plt
la a5,stackpos
ld a5,0(a5)
addi a4,a5,-8
la a5,stackpos
sd a4,0(a5)
la a5,stackpos
ld a5,0(a5)
not a5,a5
srli a5,a5,63
andi a5,a5,0xff
sext.w a5,a5
mv a0,a5
call assert@plt
nop
ld ra,24(sp)
ld s0,16(sp)
addi sp,sp,32
jr ra
.size pop_xmm, .-pop_xmm
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_gen.c_push.c"
.intel_syntax noprefix
.text
.globl SAVE
.bss
.align 4
.type SAVE, @object
.size SAVE, 4
SAVE:
.zero 4
.globl stackpos
.align 4
.type stackpos, @object
.size stackpos, 4
stackpos:
.zero 4
.section .rodata
.LC0:
.string "push #%s"
.text
.type push, @function
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, 16
mov QWORD PTR -8[rbp], rdi
mov rax, QWORD PTR -8[rbp]
mov rsi, rax
lea rdi, .LC0[rip]
call emit@PLT
mov eax, DWORD PTR stackpos[rip]
add eax, 8
mov DWORD PTR stackpos[rip], eax
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size push, .-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_gen.c_push.c"
.option pic
.text
.comm SAVE,4,4
.comm stackpos,4,4
.section .rodata
.align 3
.LC0:
.string "push #%s"
.text
.align 1
.type push, @function
push:
addi sp,sp,-32
sd ra,24(sp)
sd s0,16(sp)
addi s0,sp,32
sd a0,-24(s0)
ld a1,-24(s0)
lla a0,.LC0
call emit@plt
la a5,stackpos
lw a5,0(a5)
addiw a5,a5,8
sext.w a4,a5
la a5,stackpos
sw a4,0(a5)
nop
ld ra,24(sp)
ld s0,16(sp)
addi sp,sp,32
jr ra
.size push, .-push
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_gen.c_push_struct.c"
.intel_syntax noprefix
.text
.globl SAVE
.bss
.align 4
.type SAVE, @object
.size SAVE, 4
SAVE:
.zero 4
.globl stackpos
.align 4
.type stackpos, @object
.size stackpos, 4
stackpos:
.zero 4
.section .rodata
.LC0:
.string "sub $%d, #rsp"
.LC1:
.string "mov #rcx, -8(#rsp)"
.LC2:
.string "mov #r11, -16(#rsp)"
.LC3:
.string "mov #rax, #rcx"
.LC4:
.string "movq %d(#rcx), #r11"
.LC5:
.string "mov #r11, %d(#rsp)"
.LC6:
.string "movl %d(#rcx), #r11"
.LC7:
.string "movl #r11d, %d(#rsp)"
.LC8:
.string "movb %d(#rcx), #r11"
.LC9:
.string "movb #r11b, %d(#rsp)"
.LC10:
.string "mov -8(#rsp), #rcx"
.LC11:
.string "mov -16(#rsp), #r11"
.text
.type push_struct, @function
push_struct:
.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, DWORD PTR -20[rbp]
mov esi, 8
mov edi, eax
call align@PLT
mov DWORD PTR -4[rbp], eax
mov eax, DWORD PTR -4[rbp]
mov esi, eax
lea rdi, .LC0[rip]
mov eax, 0
call emit@PLT
lea rdi, .LC1[rip]
mov eax, 0
call emit@PLT
lea rdi, .LC2[rip]
mov eax, 0
call emit@PLT
lea rdi, .LC3[rip]
mov eax, 0
call emit@PLT
mov DWORD PTR -8[rbp], 0
jmp .L2
.L3:
mov eax, DWORD PTR -8[rbp]
mov esi, eax
lea rdi, .LC4[rip]
mov eax, 0
call emit@PLT
mov eax, DWORD PTR -8[rbp]
mov esi, eax
lea rdi, .LC5[rip]
mov eax, 0
call emit@PLT
add DWORD PTR -8[rbp], 8
.L2:
mov eax, DWORD PTR -8[rbp]
cmp eax, DWORD PTR -20[rbp]
jl .L3
jmp .L4
.L5:
mov eax, DWORD PTR -8[rbp]
mov esi, eax
lea rdi, .LC6[rip]
mov eax, 0
call emit@PLT
mov eax, DWORD PTR -8[rbp]
mov esi, eax
lea rdi, .LC7[rip]
mov eax, 0
call emit@PLT
add DWORD PTR -8[rbp], 4
.L4:
mov eax, DWORD PTR -8[rbp]
cmp eax, DWORD PTR -20[rbp]
jl .L5
jmp .L6
.L7:
mov eax, DWORD PTR -8[rbp]
mov esi, eax
lea rdi, .LC8[rip]
mov eax, 0
call emit@PLT
mov eax, DWORD PTR -8[rbp]
mov esi, eax
lea rdi, .LC9[rip]
mov eax, 0
call emit@PLT
add DWORD PTR -8[rbp], 1
.L6:
mov eax, DWORD PTR -8[rbp]
cmp eax, DWORD PTR -20[rbp]
jl .L7
lea rdi, .LC10[rip]
mov eax, 0
call emit@PLT
lea rdi, .LC11[rip]
mov eax, 0
call emit@PLT
mov edx, DWORD PTR stackpos[rip]
mov eax, DWORD PTR -4[rbp]
add eax, edx
mov DWORD PTR stackpos[rip], eax
mov eax, DWORD PTR -4[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size push_struct, .-push_struct
.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_gen.c_push_struct.c"
.option pic
.text
.comm SAVE,4,4
.comm stackpos,4,4
.section .rodata
.align 3
.LC0:
.string "sub $%d, #rsp"
.align 3
.LC1:
.string "mov #rcx, -8(#rsp)"
.align 3
.LC2:
.string "mov #r11, -16(#rsp)"
.align 3
.LC3:
.string "mov #rax, #rcx"
.align 3
.LC4:
.string "movq %d(#rcx), #r11"
.align 3
.LC5:
.string "mov #r11, %d(#rsp)"
.align 3
.LC6:
.string "movl %d(#rcx), #r11"
.align 3
.LC7:
.string "movl #r11d, %d(#rsp)"
.align 3
.LC8:
.string "movb %d(#rcx), #r11"
.align 3
.LC9:
.string "movb #r11b, %d(#rsp)"
.align 3
.LC10:
.string "mov -8(#rsp), #rcx"
.align 3
.LC11:
.string "mov -16(#rsp), #r11"
.text
.align 1
.type push_struct, @function
push_struct:
addi sp,sp,-48
sd ra,40(sp)
sd s0,32(sp)
addi s0,sp,48
mv a5,a0
sw a5,-36(s0)
lw a5,-36(s0)
li a1,8
mv a0,a5
call align@plt
mv a5,a0
sw a5,-20(s0)
lw a5,-20(s0)
mv a1,a5
lla a0,.LC0
call emit@plt
lla a0,.LC1
call emit@plt
lla a0,.LC2
call emit@plt
lla a0,.LC3
call emit@plt
sw zero,-24(s0)
j .L2
.L3:
lw a5,-24(s0)
mv a1,a5
lla a0,.LC4
call emit@plt
lw a5,-24(s0)
mv a1,a5
lla a0,.LC5
call emit@plt
lw a5,-24(s0)
addiw a5,a5,8
sw a5,-24(s0)
.L2:
lw a4,-24(s0)
lw a5,-36(s0)
sext.w a4,a4
sext.w a5,a5
blt a4,a5,.L3
j .L4
.L5:
lw a5,-24(s0)
mv a1,a5
lla a0,.LC6
call emit@plt
lw a5,-24(s0)
mv a1,a5
lla a0,.LC7
call emit@plt
lw a5,-24(s0)
addiw a5,a5,4
sw a5,-24(s0)
.L4:
lw a4,-24(s0)
lw a5,-36(s0)
sext.w a4,a4
sext.w a5,a5
blt a4,a5,.L5
j .L6
.L7:
lw a5,-24(s0)
mv a1,a5
lla a0,.LC8
call emit@plt
lw a5,-24(s0)
mv a1,a5
lla a0,.LC9
call emit@plt
lw a5,-24(s0)
addiw a5,a5,1
sw a5,-24(s0)
.L6:
lw a4,-24(s0)
lw a5,-36(s0)
sext.w a4,a4
sext.w a5,a5
blt a4,a5,.L7
lla a0,.LC10
call emit@plt
lla a0,.LC11
call emit@plt
la a5,stackpos
lw a5,0(a5)
lw a4,-20(s0)
addw a5,a4,a5
sext.w a4,a5
la a5,stackpos
sw a4,0(a5)
lw a5,-20(s0)
mv a0,a5
ld ra,40(sp)
ld s0,32(sp)
addi sp,sp,48
jr ra
.size push_struct, .-push_struct
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_gen.c_push_xmm.c"
.intel_syntax noprefix
.text
.globl SAVE
.bss
.align 4
.type SAVE, @object
.size SAVE, 4
SAVE:
.zero 4
.globl stackpos
.align 4
.type stackpos, @object
.size stackpos, 4
stackpos:
.zero 4
.section .rodata
.LC0:
.string "sub $8, #rsp"
.LC1:
.string "movsd #xmm%d, (#rsp)"
.text
.type push_xmm, @function
push_xmm:
.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
lea rdi, .LC0[rip]
mov eax, 0
call emit@PLT
mov eax, DWORD PTR -4[rbp]
mov esi, eax
lea rdi, .LC1[rip]
mov eax, 0
call emit@PLT
mov eax, DWORD PTR stackpos[rip]
add eax, 8
mov DWORD PTR stackpos[rip], eax
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size push_xmm, .-push_xmm
.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_gen.c_push_xmm.c"
.option pic
.text
.comm SAVE,4,4
.comm stackpos,4,4
.section .rodata
.align 3
.LC0:
.string "sub $8, #rsp"
.align 3
.LC1:
.string "movsd #xmm%d, (#rsp)"
.text
.align 1
.type push_xmm, @function
push_xmm:
addi sp,sp,-32
sd ra,24(sp)
sd s0,16(sp)
addi s0,sp,32
mv a5,a0
sw a5,-20(s0)
lla a0,.LC0
call emit@plt
lw a5,-20(s0)
mv a1,a5
lla a0,.LC1
call emit@plt
la a5,stackpos
lw a5,0(a5)
addiw a5,a5,8
sext.w a4,a5
la a5,stackpos
sw a4,0(a5)
nop
ld ra,24(sp)
ld s0,16(sp)
addi sp,sp,32
jr ra
.size push_xmm, .-push_xmm
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_gen.c_read_source_file.c"
.intel_syntax noprefix
.text
.section .rodata
.LC0:
.string "r"
.text
.type read_source_file, @function
read_source_file:
.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
mov rax, QWORD PTR -40[rbp]
lea rsi, .LC0[rip]
mov rdi, rax
call fopen@PLT
mov QWORD PTR -24[rbp], rax
cmp QWORD PTR -24[rbp], 0
jne .L2
mov eax, 0
jmp .L5
.L2:
mov rax, QWORD PTR -24[rbp]
mov rdi, rax
call fileno@PLT
mov edx, eax
lea rax, -28[rbp]
mov rsi, rax
mov edi, edx
call fstat@PLT
mov eax, DWORD PTR -28[rbp]
add eax, 1
mov edi, eax
call malloc@PLT
mov QWORD PTR -16[rbp], rax
mov edx, DWORD PTR -28[rbp]
mov rcx, QWORD PTR -24[rbp]
mov rax, QWORD PTR -16[rbp]
mov esi, 1
mov rdi, rax
call fread@PLT
mov edx, DWORD PTR -28[rbp]
cmp eax, edx
je .L4
mov rax, QWORD PTR -24[rbp]
mov rdi, rax
call fclose@PLT
mov eax, 0
jmp .L5
.L4:
mov rax, QWORD PTR -24[rbp]
mov rdi, rax
call fclose@PLT
mov eax, DWORD PTR -28[rbp]
movsx rdx, eax
mov rax, QWORD PTR -16[rbp]
add rax, rdx
mov BYTE PTR [rax], 0
mov rax, QWORD PTR -16[rbp]
mov rdi, rax
call split@PLT
.L5:
mov rcx, QWORD PTR -8[rbp]
sub rcx, QWORD PTR fs:40
je .L6
call __stack_chk_fail@PLT
.L6:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size read_source_file, .-read_source_file
.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_gen.c_read_source_file.c"
.option pic
.text
.section .rodata
.align 3
.LC0:
.string "r"
.text
.align 1
.type read_source_file, @function
read_source_file:
addi sp,sp,-64
sd ra,56(sp)
sd s0,48(sp)
addi s0,sp,64
sd a0,-56(s0)
la a5,__stack_chk_guard
ld a5,0(a5)
sd a5,-24(s0)
lla a1,.LC0
ld a0,-56(s0)
call fopen@plt
sd a0,-40(s0)
ld a5,-40(s0)
bnez a5,.L2
li a5,0
j .L5
.L2:
ld a0,-40(s0)
call fileno@plt
mv a5,a0
mv a4,a5
addi a5,s0,-48
mv a1,a5
mv a0,a4
call fstat@plt
lw a5,-48(s0)
addiw a5,a5,1
sext.w a5,a5
mv a0,a5
call malloc@plt
sd a0,-32(s0)
lw a5,-48(s0)
ld a3,-40(s0)
mv a2,a5
li a1,1
ld a0,-32(s0)
call fread@plt
mv a5,a0
mv a4,a5
lw a5,-48(s0)
beq a4,a5,.L4
ld a0,-40(s0)
call fclose@plt
li a5,0
j .L5
.L4:
ld a0,-40(s0)
call fclose@plt
lw a5,-48(s0)
mv a4,a5
ld a5,-32(s0)
add a5,a5,a4
sb zero,0(a5)
ld a0,-32(s0)
call split@plt
mv a5,a0
.L5:
mv a3,a5
la a5,__stack_chk_guard
ld a4,-24(s0)
ld a5,0(a5)
beq a4,a5,.L6
call __stack_chk_fail@plt
.L6:
mv a0,a3
ld ra,56(sp)
ld s0,48(sp)
addi sp,sp,64
jr ra
.size read_source_file, .-read_source_file
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_gen.c_restore_arg_regs.c"
.intel_syntax noprefix
.text
.globl REGS
.bss
.align 8
.type REGS, @object
.size REGS, 8
REGS:
.zero 8
.globl SAVE
.align 4
.type SAVE, @object
.size SAVE, 4
SAVE:
.zero 4
.text
.type restore_arg_regs, @function
restore_arg_regs:
.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 eax, DWORD PTR -24[rbp]
sub eax, 1
mov DWORD PTR -8[rbp], eax
jmp .L2
.L3:
mov eax, DWORD PTR -8[rbp]
mov edi, eax
call pop_xmm@PLT
sub DWORD PTR -8[rbp], 1
.L2:
cmp DWORD PTR -8[rbp], 0
jg .L3
mov eax, DWORD PTR -20[rbp]
sub eax, 1
mov DWORD PTR -4[rbp], eax
jmp .L4
.L5:
mov rdx, QWORD PTR REGS[rip]
mov eax, DWORD PTR -4[rbp]
cdqe
sal rax, 2
add rax, rdx
mov eax, DWORD PTR [rax]
mov edi, eax
call pop@PLT
sub DWORD PTR -4[rbp], 1
.L4:
cmp DWORD PTR -4[rbp], 0
jns .L5
nop
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size restore_arg_regs, .-restore_arg_regs
.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_gen.c_restore_arg_regs.c"
.option pic
.text
.comm REGS,8,8
.comm SAVE,4,4
.align 1
.type restore_arg_regs, @function
restore_arg_regs:
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)
lw a5,-40(s0)
addiw a5,a5,-1
sw a5,-24(s0)
j .L2
.L3:
lw a5,-24(s0)
mv a0,a5
call pop_xmm@plt
lw a5,-24(s0)
addiw a5,a5,-1
sw a5,-24(s0)
.L2:
lw a5,-24(s0)
sext.w a5,a5
bgtz a5,.L3
lw a5,-36(s0)
addiw a5,a5,-1
sw a5,-20(s0)
j .L4
.L5:
la a5,REGS
ld a4,0(a5)
lw a5,-20(s0)
slli a5,a5,2
add a5,a4,a5
lw a5,0(a5)
mv a0,a5
call pop@plt
lw a5,-20(s0)
addiw a5,a5,-1
sw a5,-20(s0)
.L4:
lw a5,-20(s0)
sext.w a5,a5
bgez a5,.L5
nop
nop
ld ra,40(sp)
ld s0,32(sp)
addi sp,sp,48
jr ra
.size restore_arg_regs, .-restore_arg_regs
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_gen.c_save_arg_regs.c"
.intel_syntax noprefix
.text
.globl REGS
.bss
.align 8
.type REGS, @object
.size REGS, 8
REGS:
.zero 8
.globl SAVE
.align 4
.type SAVE, @object
.size SAVE, 4
SAVE:
.zero 4
.text
.type save_arg_regs, @function
save_arg_regs:
.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
cmp DWORD PTR -20[rbp], 6
setle al
movzx eax, al
mov edi, eax
call assert@PLT
cmp DWORD PTR -24[rbp], 8
setle al
movzx eax, al
mov edi, eax
call assert@PLT
mov DWORD PTR -8[rbp], 0
jmp .L2
.L3:
mov rdx, QWORD PTR REGS[rip]
mov eax, DWORD PTR -8[rbp]
cdqe
sal rax, 2
add rax, rdx
mov eax, DWORD PTR [rax]
mov edi, eax
call push@PLT
add DWORD PTR -8[rbp], 1
.L2:
mov eax, DWORD PTR -8[rbp]
cmp eax, DWORD PTR -20[rbp]
jl .L3
mov DWORD PTR -4[rbp], 1
jmp .L4
.L5:
mov eax, DWORD PTR -4[rbp]
mov edi, eax
call push_xmm@PLT
add DWORD PTR -4[rbp], 1
.L4:
mov eax, DWORD PTR -4[rbp]
cmp eax, DWORD PTR -24[rbp]
jl .L5
nop
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size save_arg_regs, .-save_arg_regs
.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_gen.c_save_arg_regs.c"
.option pic
.text
.comm REGS,8,8
.comm SAVE,4,4
.align 1
.type save_arg_regs, @function
save_arg_regs:
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)
lw a5,-36(s0)
sext.w a4,a5
li a5,6
sgt a5,a4,a5
xori a5,a5,1
andi a5,a5,0xff
sext.w a5,a5
mv a0,a5
call assert@plt
lw a5,-40(s0)
sext.w a4,a5
li a5,8
sgt a5,a4,a5
xori a5,a5,1
andi a5,a5,0xff
sext.w a5,a5
mv a0,a5
call assert@plt
sw zero,-24(s0)
j .L2
.L3:
la a5,REGS
ld a4,0(a5)
lw a5,-24(s0)
slli a5,a5,2
add a5,a4,a5
lw a5,0(a5)
mv a0,a5
call push@plt
lw a5,-24(s0)
addiw a5,a5,1
sw a5,-24(s0)
.L2:
lw a4,-24(s0)
lw a5,-36(s0)
sext.w a4,a4
sext.w a5,a5
blt a4,a5,.L3
li a5,1
sw a5,-20(s0)
j .L4
.L5:
lw a5,-20(s0)
mv a0,a5
call push_xmm@plt
lw a5,-20(s0)
addiw a5,a5,1
sw a5,-20(s0)
.L4:
lw a4,-20(s0)
lw a5,-40(s0)
sext.w a4,a4
sext.w a5,a5
blt a4,a5,.L5
nop
nop
ld ra,40(sp)
ld s0,32(sp)
addi sp,sp,48
jr ra
.size save_arg_regs, .-save_arg_regs
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_gen.c_set_output_file.c"
.intel_syntax noprefix
.text
.globl outputfp
.bss
.align 8
.type outputfp, @object
.size outputfp, 8
outputfp:
.zero 8
.text
.globl set_output_file
.type set_output_file, @function
set_output_file:
.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 QWORD PTR outputfp[rip], rax
nop
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size set_output_file, .-set_output_file
.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_gen.c_set_output_file.c"
.option pic
.text
.comm outputfp,8,8
.align 1
.globl set_output_file
.type set_output_file, @function
set_output_file:
addi sp,sp,-32
sd s0,24(sp)
addi s0,sp,32
sd a0,-24(s0)
la a5,outputfp
ld a4,-24(s0)
sd a4,0(a5)
nop
ld s0,24(sp)
addi sp,sp,32
jr ra
.size set_output_file, .-set_output_file
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_gen.c_set_reg_nums.c"
.intel_syntax noprefix
.text
.globl numfp
.bss
.align 8
.type numfp, @object
.size numfp, 8
numfp:
.zero 8
.globl numgp
.align 8
.type numgp, @object
.size numgp, 8
numgp:
.zero 8
.text
.type set_reg_nums, @function
set_reg_nums:
.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 numfp[rip], 0
mov rax, QWORD PTR numfp[rip]
mov QWORD PTR numgp[rip], rax
mov DWORD PTR -12[rbp], 0
jmp .L2
.L5:
mov edx, DWORD PTR -12[rbp]
mov rax, QWORD PTR -24[rbp]
mov esi, edx
mov rdi, rax
call vec_get@PLT
mov QWORD PTR -8[rbp], rax
mov rax, QWORD PTR -8[rbp]
mov eax, DWORD PTR [rax]
mov edi, eax
call is_flotype@PLT
test rax, rax
je .L3
mov rax, QWORD PTR numfp[rip]
add rax, 1
mov QWORD PTR numfp[rip], rax
jmp .L4
.L3:
mov rax, QWORD PTR numgp[rip]
add rax, 1
mov QWORD PTR numgp[rip], rax
.L4:
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 .L5
nop
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size set_reg_nums, .-set_reg_nums
.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_gen.c_set_reg_nums.c"
.option pic
.text
.comm numfp,8,8
.comm numgp,8,8
.align 1
.type set_reg_nums, @function
set_reg_nums:
addi sp,sp,-48
sd ra,40(sp)
sd s0,32(sp)
addi s0,sp,48
sd a0,-40(s0)
la a5,numfp
sd zero,0(a5)
la a5,numfp
ld a4,0(a5)
la a5,numgp
sd a4,0(a5)
sw zero,-28(s0)
j .L2
.L5:
lw a5,-28(s0)
mv a1,a5
ld a0,-40(s0)
call vec_get@plt
sd a0,-24(s0)
ld a5,-24(s0)
lw a5,0(a5)
mv a0,a5
call is_flotype@plt
mv a5,a0
beqz a5,.L3
la a5,numfp
ld a5,0(a5)
addi a4,a5,1
la a5,numfp
sd a4,0(a5)
j .L4
.L3:
la a5,numgp
ld a5,0(a5)
addi a4,a5,1
la a5,numgp
sd a4,0(a5)
.L4:
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,.L5
nop
nop
ld ra,40(sp)
ld s0,32(sp)
addi sp,sp,48
jr ra
.size set_reg_nums, .-set_reg_nums
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_gen.c_split.c"
.intel_syntax noprefix
.text
.type split, @function
split:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 48
mov QWORD PTR -40[rbp], rdi
mov rax, QWORD PTR -40[rbp]
mov QWORD PTR -16[rbp], rax
mov DWORD PTR -24[rbp], 1
jmp .L2
.L6:
mov rax, QWORD PTR -16[rbp]
movzx eax, BYTE PTR [rax]
cmp al, 13
jne .L3
mov rax, QWORD PTR -16[rbp]
add rax, 1
movzx eax, BYTE PTR [rax]
cmp al, 10
jne .L3
add DWORD PTR -24[rbp], 1
add QWORD PTR -16[rbp], 2
jmp .L2
.L3:
mov rax, QWORD PTR -16[rbp]
movzx eax, BYTE PTR [rax]
cmp al, 13
je .L4
mov rax, QWORD PTR -16[rbp]
movzx eax, BYTE PTR [rax]
cmp al, 10
jne .L5
.L4:
add DWORD PTR -24[rbp], 1
.L5:
add QWORD PTR -16[rbp], 1
.L2:
mov rax, QWORD PTR -16[rbp]
movzx eax, BYTE PTR [rax]
test al, al
jne .L6
mov rax, QWORD PTR -40[rbp]
mov QWORD PTR -16[rbp], rax
mov eax, DWORD PTR -24[rbp]
cdqe
sal eax, 3
add eax, 1
mov edi, eax
call malloc@PLT
mov QWORD PTR -8[rbp], rax
mov DWORD PTR -20[rbp], 0
jmp .L7
.L11:
mov rax, QWORD PTR -16[rbp]
movzx eax, BYTE PTR [rax]
cmp al, 13
jne .L8
mov rax, QWORD PTR -16[rbp]
add rax, 1
movzx eax, BYTE PTR [rax]
cmp al, 10
jne .L8
mov rax, QWORD PTR -16[rbp]
mov BYTE PTR [rax], 0
add QWORD PTR -16[rbp], 2
mov eax, DWORD PTR -20[rbp]
lea edx, 1[rax]
mov DWORD PTR -20[rbp], edx
cdqe
lea rdx, 0[0+rax*8]
mov rax, QWORD PTR -8[rbp]
add rdx, rax
mov rax, QWORD PTR -16[rbp]
mov QWORD PTR [rdx], rax
jmp .L7
.L8:
mov rax, QWORD PTR -16[rbp]
movzx eax, BYTE PTR [rax]
cmp al, 13
je .L9
mov rax, QWORD PTR -16[rbp]
movzx eax, BYTE PTR [rax]
cmp al, 10
jne .L10
.L9:
mov rax, QWORD PTR -16[rbp]
mov BYTE PTR [rax], 0
mov eax, DWORD PTR -20[rbp]
lea edx, 1[rax]
mov DWORD PTR -20[rbp], edx
cdqe
lea rdx, 0[0+rax*8]
mov rax, QWORD PTR -8[rbp]
add rax, rdx
mov rdx, QWORD PTR -16[rbp]
add rdx, 1
mov QWORD PTR [rax], rdx
.L10:
add QWORD PTR -16[rbp], 1
.L7:
mov rax, QWORD PTR -16[rbp]
movzx eax, BYTE PTR [rax]
test al, al
jne .L11
mov eax, DWORD PTR -20[rbp]
cdqe
lea rdx, 0[0+rax*8]
mov rax, QWORD PTR -8[rbp]
add rax, rdx
mov QWORD PTR [rax], 0
mov rax, QWORD PTR -8[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size split, .-split
.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_gen.c_split.c"
.option pic
.text
.align 1
.type split, @function
split:
addi sp,sp,-64
sd ra,56(sp)
sd s0,48(sp)
addi s0,sp,64
sd a0,-56(s0)
ld a5,-56(s0)
sd a5,-32(s0)
li a5,1
sw a5,-40(s0)
j .L2
.L6:
ld a5,-32(s0)
lbu a5,0(a5)
mv a4,a5
li a5,13
bne a4,a5,.L3
ld a5,-32(s0)
addi a5,a5,1
lbu a5,0(a5)
mv a4,a5
li a5,10
bne a4,a5,.L3
lw a5,-40(s0)
addiw a5,a5,1
sw a5,-40(s0)
ld a5,-32(s0)
addi a5,a5,2
sd a5,-32(s0)
j .L2
.L3:
ld a5,-32(s0)
lbu a5,0(a5)
mv a4,a5
li a5,13
beq a4,a5,.L4
ld a5,-32(s0)
lbu a5,0(a5)
mv a4,a5
li a5,10
bne a4,a5,.L5
.L4:
lw a5,-40(s0)
addiw a5,a5,1
sw a5,-40(s0)
.L5:
ld a5,-32(s0)
addi a5,a5,1
sd a5,-32(s0)
.L2:
ld a5,-32(s0)
lbu a5,0(a5)
bnez a5,.L6
ld a5,-56(s0)
sd a5,-32(s0)
lw a5,-40(s0)
sext.w a5,a5
slliw a5,a5,3
sext.w a5,a5
addiw a5,a5,1
sext.w a5,a5
sext.w a5,a5
mv a0,a5
call malloc@plt
sd a0,-24(s0)
sw zero,-36(s0)
j .L7
.L11:
ld a5,-32(s0)
lbu a5,0(a5)
mv a4,a5
li a5,13
bne a4,a5,.L8
ld a5,-32(s0)
addi a5,a5,1
lbu a5,0(a5)
mv a4,a5
li a5,10
bne a4,a5,.L8
ld a5,-32(s0)
sb zero,0(a5)
ld a5,-32(s0)
addi a5,a5,2
sd a5,-32(s0)
lw a5,-36(s0)
addiw a4,a5,1
sw a4,-36(s0)
slli a5,a5,3
ld a4,-24(s0)
add a5,a4,a5
ld a4,-32(s0)
sd a4,0(a5)
j .L7
.L8:
ld a5,-32(s0)
lbu a5,0(a5)
mv a4,a5
li a5,13
beq a4,a5,.L9
ld a5,-32(s0)
lbu a5,0(a5)
mv a4,a5
li a5,10
bne a4,a5,.L10
.L9:
ld a5,-32(s0)
sb zero,0(a5)
lw a5,-36(s0)
addiw a4,a5,1
sw a4,-36(s0)
slli a5,a5,3
ld a4,-24(s0)
add a5,a4,a5
ld a4,-32(s0)
addi a4,a4,1
sd a4,0(a5)
.L10:
ld a5,-32(s0)
addi a5,a5,1
sd a5,-32(s0)
.L7:
ld a5,-32(s0)
lbu a5,0(a5)
bnez a5,.L11
lw a5,-36(s0)
slli a5,a5,3
ld a4,-24(s0)
add a5,a4,a5
sd zero,0(a5)
ld a5,-24(s0)
mv a0,a5
ld ra,56(sp)
ld s0,48(sp)
addi sp,sp,64
jr ra
.size split, .-split
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_lex.c_buffer_empty.c"
.intel_syntax noprefix
.text
.globl buffers
.bss
.align 4
.type buffers, @object
.size buffers, 4
buffers:
.zero 4
.text
.type buffer_empty, @function
buffer_empty:
.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 buffers[rip]
mov edi, eax
call vec_len@PLT
cmp eax, 1
jne .L2
mov eax, DWORD PTR buffers[rip]
mov edi, eax
call vec_head@PLT
mov edi, eax
call vec_len@PLT
test eax, eax
jne .L2
mov eax, 1
jmp .L4
.L2:
mov eax, 0
.L4:
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size buffer_empty, .-buffer_empty
.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_lex.c_buffer_empty.c"
.option pic
.text
.comm buffers,4,4
.align 1
.type buffer_empty, @function
buffer_empty:
addi sp,sp,-16
sd ra,8(sp)
sd s0,0(sp)
addi s0,sp,16
la a5,buffers
lw a5,0(a5)
mv a0,a5
call vec_len@plt
mv a5,a0
mv a4,a5
li a5,1
bne a4,a5,.L2
la a5,buffers
lw a5,0(a5)
mv a0,a5
call vec_head@plt
mv a5,a0
mv a0,a5
call vec_len@plt
mv a5,a0
bnez a5,.L2
li a5,1
j .L3
.L2:
li a5,0
.L3:
mv a0,a5
ld ra,8(sp)
ld s0,0(sp)
addi sp,sp,16
jr ra
.size buffer_empty, .-buffer_empty
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_lex.c_do_skip_space.c"
.intel_syntax noprefix
.text
.globl EOF
.bss
.align 4
.type EOF, @object
.size EOF, 4
EOF:
.zero 4
.text
.type do_skip_space, @function
do_skip_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, 16
mov eax, 0
call readc@PLT
mov DWORD PTR -4[rbp], eax
mov eax, DWORD PTR EOF[rip]
cmp DWORD PTR -4[rbp], eax
jne .L2
mov eax, 0
jmp .L3
.L2:
mov eax, DWORD PTR -4[rbp]
mov edi, eax
call iswhitespace@PLT
test rax, rax
je .L4
mov eax, 1
jmp .L3
.L4:
cmp DWORD PTR -4[rbp], 47
jne .L5
mov edi, 42
call next@PLT
test rax, rax
je .L6
mov eax, 0
call skip_block_comment@PLT
mov eax, 1
jmp .L3
.L6:
mov edi, 47
call next@PLT
test rax, rax
je .L5
mov eax, 0
call skip_line@PLT
mov eax, 1
jmp .L3
.L5:
mov eax, DWORD PTR -4[rbp]
mov edi, eax
call unreadc@PLT
mov eax, 0
.L3:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size do_skip_space, .-do_skip_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_lex.c_do_skip_space.c"
.option pic
.text
.comm EOF,4,4
.align 1
.type do_skip_space, @function
do_skip_space:
addi sp,sp,-32
sd ra,24(sp)
sd s0,16(sp)
addi s0,sp,32
call readc@plt
mv a5,a0
sw a5,-20(s0)
la a5,EOF
lw a4,0(a5)
lw a5,-20(s0)
sext.w a5,a5
bne a5,a4,.L2
li a5,0
j .L3
.L2:
lw a5,-20(s0)
mv a0,a5
call iswhitespace@plt
mv a5,a0
beqz a5,.L4
li a5,1
j .L3
.L4:
lw a5,-20(s0)
sext.w a4,a5
li a5,47
bne a4,a5,.L5
li a0,42
call next@plt
mv a5,a0
beqz a5,.L6
call skip_block_comment@plt
li a5,1
j .L3
.L6:
li a0,47
call next@plt
mv a5,a0
beqz a5,.L5
call skip_line@plt
li a5,1
j .L3
.L5:
lw a5,-20(s0)
mv a0,a5
call unreadc@plt
li a5,0
.L3:
mv a0,a5
ld ra,24(sp)
ld s0,16(sp)
addi sp,sp,32
jr ra
.size do_skip_space, .-do_skip_space
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_lex.c_is_valid_ucn.c"
.intel_syntax noprefix
.text
.type is_valid_ucn, @function
is_valid_ucn:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov DWORD PTR -4[rbp], edi
cmp DWORD PTR -4[rbp], 55295
jbe .L2
cmp DWORD PTR -4[rbp], 57343
ja .L2
mov eax, 0
jmp .L3
.L2:
cmp DWORD PTR -4[rbp], 159
ja .L4
cmp DWORD PTR -4[rbp], 36
je .L4
cmp DWORD PTR -4[rbp], 64
je .L4
cmp DWORD PTR -4[rbp], 96
jne .L5
.L4:
mov eax, 1
jmp .L3
.L5:
mov eax, 0
.L3:
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size is_valid_ucn, .-is_valid_ucn
.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_lex.c_is_valid_ucn.c"
.option pic
.text
.align 1
.type is_valid_ucn, @function
is_valid_ucn:
addi sp,sp,-32
sd s0,24(sp)
addi s0,sp,32
mv a5,a0
sw a5,-20(s0)
lw a5,-20(s0)
sext.w a4,a5
li a5,53248
addi a5,a5,2047
bleu a4,a5,.L2
lw a5,-20(s0)
sext.w a4,a5
li a5,57344
bgeu a4,a5,.L2
li a5,0
j .L3
.L2:
lw a5,-20(s0)
sext.w a4,a5
li a5,159
bgtu a4,a5,.L4
lw a5,-20(s0)
sext.w a4,a5
li a5,36
beq a4,a5,.L4
lw a5,-20(s0)
sext.w a4,a5
li a5,64
beq a4,a5,.L4
lw a5,-20(s0)
sext.w a4,a5
li a5,96
bne a4,a5,.L5
.L4:
li a5,1
j .L3
.L5:
li a5,0
.L3:
mv a0,a5
ld s0,24(sp)
addi sp,sp,32
jr ra
.size is_valid_ucn, .-is_valid_ucn
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_lex.c_iswhitespace.c"
.intel_syntax noprefix
.text
.type iswhitespace, @function
iswhitespace:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov DWORD PTR -4[rbp], edi
cmp DWORD PTR -4[rbp], 32
je .L2
cmp DWORD PTR -4[rbp], 9
je .L2
cmp DWORD PTR -4[rbp], 12
je .L2
cmp DWORD PTR -4[rbp], 11
jne .L3
.L2:
mov eax, 1
jmp .L5
.L3:
mov eax, 0
.L5:
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size iswhitespace, .-iswhitespace
.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_lex.c_iswhitespace.c"
.option pic
.text
.align 1
.type iswhitespace, @function
iswhitespace:
addi sp,sp,-32
sd s0,24(sp)
addi s0,sp,32
mv a5,a0
sw a5,-20(s0)
lw a5,-20(s0)
sext.w a4,a5
li a5,32
beq a4,a5,.L2
lw a5,-20(s0)
sext.w a4,a5
li a5,9
beq a4,a5,.L2
lw a5,-20(s0)
sext.w a4,a5
li a5,12
beq a4,a5,.L2
lw a5,-20(s0)
sext.w a4,a5
li a5,11
bne a4,a5,.L3
.L2:
li a5,1
j .L4
.L3:
li a5,0
.L4:
mv a0,a5
ld s0,24(sp)
addi sp,sp,32
jr ra
.size iswhitespace, .-iswhitespace
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_lex.c_lex.c"
.intel_syntax noprefix
.text
.globl TSPACE
.bss
.align 8
.type TSPACE, @object
.size TSPACE, 8
TSPACE:
.zero 8
.globl buffers
.align 8
.type buffers, @object
.size buffers, 8
buffers:
.zero 8
.globl eof_token
.align 8
.type eof_token, @object
.size eof_token, 8
eof_token:
.zero 8
.text
.globl lex
.type lex, @function
lex:
.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 rax, QWORD PTR buffers[rip]
mov rdi, rax
call vec_tail@PLT
mov QWORD PTR -8[rbp], rax
mov rax, QWORD PTR -8[rbp]
mov rdi, rax
call vec_len@PLT
test eax, eax
jle .L2
mov rax, QWORD PTR -8[rbp]
mov rdi, rax
call vec_pop@PLT
jmp .L3
.L2:
mov rax, QWORD PTR buffers[rip]
mov rdi, rax
call vec_len@PLT
cmp eax, 1
jle .L4
mov rax, QWORD PTR eof_token[rip]
jmp .L3
.L4:
mov eax, 0
call current_file@PLT
mov eax, DWORD PTR [rax]
cmp eax, 1
sete al
movzx eax, al
mov DWORD PTR -20[rbp], eax
mov eax, 0
call do_read_token@PLT
mov QWORD PTR -16[rbp], rax
jmp .L5
.L6:
mov eax, 0
call do_read_token@PLT
mov QWORD PTR -16[rbp], rax
mov rax, QWORD PTR -16[rbp]
mov DWORD PTR 8[rax], 1
.L5:
mov rax, QWORD PTR -16[rbp]
mov rdx, QWORD PTR [rax]
mov rax, QWORD PTR TSPACE[rip]
cmp rdx, rax
je .L6
mov rax, QWORD PTR -16[rbp]
mov edx, DWORD PTR -20[rbp]
mov DWORD PTR 12[rax], edx
mov rax, QWORD PTR -16[rbp]
.L3:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size lex, .-lex
.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_lex.c_lex.c"
.option pic
.text
.comm TSPACE,8,8
.comm buffers,8,8
.comm eof_token,8,8
.align 1
.globl lex
.type lex, @function
lex:
addi sp,sp,-48
sd ra,40(sp)
sd s0,32(sp)
addi s0,sp,48
la a5,buffers
ld a5,0(a5)
mv a0,a5
call vec_tail@plt
sd a0,-24(s0)
ld a0,-24(s0)
call vec_len@plt
mv a5,a0
blez a5,.L2
ld a0,-24(s0)
call vec_pop@plt
mv a5,a0
j .L3
.L2:
la a5,buffers
ld a5,0(a5)
mv a0,a5
call vec_len@plt
mv a5,a0
mv a4,a5
li a5,1
ble a4,a5,.L4
la a5,eof_token
ld a5,0(a5)
j .L3
.L4:
call current_file@plt
mv a5,a0
lw a5,0(a5)
mv a4,a5
li a5,1
sub a5,a4,a5
seqz a5,a5
andi a5,a5,0xff
sw a5,-36(s0)
call do_read_token@plt
sd a0,-32(s0)
j .L5
.L6:
call do_read_token@plt
sd a0,-32(s0)
ld a5,-32(s0)
li a4,1
sw a4,8(a5)
.L5:
ld a5,-32(s0)
ld a4,0(a5)
la a5,TSPACE
ld a5,0(a5)
beq a4,a5,.L6
ld a5,-32(s0)
lw a4,-36(s0)
sw a4,12(a5)
ld a5,-32(s0)
.L3:
mv a0,a5
ld ra,40(sp)
ld s0,32(sp)
addi sp,sp,48
jr ra
.size lex, .-lex
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_lex.c_lex_init.c"
.intel_syntax noprefix
.text
.globl buffers
.bss
.align 4
.type buffers, @object
.size buffers, 4
buffers:
.zero 4
.globl errno
.align 4
.type errno, @object
.size errno, 4
errno:
.zero 4
.globl stdin
.align 8
.type stdin, @object
.size stdin, 8
stdin:
.zero 8
.section .rodata
.LC0:
.string "-"
.LC1:
.string "r"
.LC2:
.string "Cannot open %s: %s"
.text
.globl lex_init
.type lex_init, @function
lex_init:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 32
mov QWORD PTR -24[rbp], rdi
mov eax, 0
call make_vector@PLT
mov edx, eax
mov eax, DWORD PTR buffers[rip]
mov esi, edx
mov edi, eax
call vec_push@PLT
mov rax, QWORD PTR -24[rbp]
lea rsi, .LC0[rip]
mov rdi, rax
call strcmp@PLT
test eax, eax
jne .L2
mov rax, QWORD PTR stdin[rip]
lea rsi, .LC0[rip]
mov rdi, rax
call make_file@PLT
mov edi, eax
call stream_push@PLT
jmp .L1
.L2:
mov rax, QWORD PTR -24[rbp]
lea rsi, .LC1[rip]
mov rdi, rax
call fopen@PLT
mov QWORD PTR -8[rbp], rax
cmp QWORD PTR -8[rbp], 0
jne .L4
mov eax, DWORD PTR errno[rip]
mov edi, eax
call strerror@PLT
mov rdx, rax
mov rax, QWORD PTR -24[rbp]
mov rsi, rax
lea rdi, .LC2[rip]
call error@PLT
.L4:
mov rdx, QWORD PTR -24[rbp]
mov rax, QWORD PTR -8[rbp]
mov rsi, rdx
mov rdi, rax
call make_file@PLT
mov edi, eax
call stream_push@PLT
.L1:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size lex_init, .-lex_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_lex.c_lex_init.c"
.option pic
.text
.comm buffers,4,4
.comm errno,4,4
.comm stdin,8,8
.section .rodata
.align 3
.LC0:
.string "-"
.align 3
.LC1:
.string "r"
.align 3
.LC2:
.string "Cannot open %s: %s"
.text
.align 1
.globl lex_init
.type lex_init, @function
lex_init:
addi sp,sp,-64
sd ra,56(sp)
sd s0,48(sp)
sd s1,40(sp)
addi s0,sp,64
sd a0,-56(s0)
la a5,buffers
lw s1,0(a5)
call make_vector@plt
mv a5,a0
mv a1,a5
mv a0,s1
call vec_push@plt
lla a1,.LC0
ld a0,-56(s0)
call strcmp@plt
mv a5,a0
bnez a5,.L2
la a5,stdin
ld a5,0(a5)
lla a1,.LC0
mv a0,a5
call make_file@plt
mv a5,a0
mv a0,a5
call stream_push@plt
j .L1
.L2:
lla a1,.LC1
ld a0,-56(s0)
call fopen@plt
sd a0,-40(s0)
ld a5,-40(s0)
bnez a5,.L4
la a5,errno
lw a5,0(a5)
mv a0,a5
call strerror@plt
mv a5,a0
mv a2,a5
ld a1,-56(s0)
lla a0,.LC2
call error@plt
.L4:
ld a1,-56(s0)
ld a0,-40(s0)
call make_file@plt
mv a5,a0
mv a0,a5
call stream_push@plt
.L1:
ld ra,56(sp)
ld s0,48(sp)
ld s1,40(sp)
addi sp,sp,64
jr ra
.size lex_init, .-lex_init
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_lex.c_lex_string.c"
.intel_syntax noprefix
.text
.globl EOF
.bss
.align 8
.type EOF, @object
.size EOF, 8
EOF:
.zero 8
.section .rodata
.LC0:
.string "unconsumed input: %s"
.text
.globl lex_string
.type lex_string, @function
lex_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 do_read_token@PLT
mov QWORD PTR -8[rbp], rax
mov edi, 10
call next@PLT
mov edi, 0
call get_pos@PLT
mov DWORD PTR -12[rbp], eax
mov eax, 0
call peek@PLT
mov rdx, QWORD PTR EOF[rip]
cmp rax, rdx
je .L2
mov rdx, QWORD PTR -24[rbp]
mov eax, DWORD PTR -12[rbp]
lea rsi, .LC0[rip]
mov edi, eax
call errorp@PLT
.L2:
mov eax, 0
call stream_unstash@PLT
mov rax, QWORD PTR -8[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size lex_string, .-lex_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_lex.c_lex_string.c"
.option pic
.text
.comm EOF,8,8
.section .rodata
.align 3
.LC0:
.string "unconsumed input: %s"
.text
.align 1
.globl lex_string
.type lex_string, @function
lex_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 do_read_token@plt
sd a0,-24(s0)
li a0,10
call next@plt
li a0,0
call get_pos@plt
mv a5,a0
sw a5,-28(s0)
call peek@plt
mv a4,a0
la a5,EOF
ld a5,0(a5)
beq a4,a5,.L2
lw a5,-28(s0)
ld a2,-40(s0)
lla a1,.LC0
mv a0,a5
call errorp@plt
.L2:
call stream_unstash@plt
ld a5,-24(s0)
mv a0,a5
ld ra,40(sp)
ld s0,32(sp)
addi sp,sp,48
jr ra
.size lex_string, .-lex_string
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_lex.c_make_token.c"
.intel_syntax noprefix
.text
.globl pos
.bss
.align 8
.type pos, @object
.size pos, 8
pos:
.zero 8
.text
.type make_token, @function
make_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, 32
call malloc@PLT
mov QWORD PTR -16[rbp], rax
mov rcx, QWORD PTR -16[rbp]
mov rsi, QWORD PTR -24[rbp]
mov rax, QWORD PTR [rsi]
mov rdx, QWORD PTR 8[rsi]
mov QWORD PTR [rcx], rax
mov QWORD PTR 8[rcx], rdx
mov rax, QWORD PTR 16[rsi]
mov rdx, QWORD PTR 24[rsi]
mov QWORD PTR 16[rcx], rax
mov QWORD PTR 24[rcx], rdx
mov rax, QWORD PTR -16[rbp]
mov QWORD PTR 24[rax], 0
mov eax, 0
call current_file@PLT
mov QWORD PTR -8[rbp], rax
mov rax, QWORD PTR -16[rbp]
mov rdx, QWORD PTR -8[rbp]
mov QWORD PTR 16[rax], rdx
mov edx, DWORD PTR pos[rip+4]
mov rax, QWORD PTR -16[rbp]
mov DWORD PTR 12[rax], edx
mov edx, DWORD PTR pos[rip]
mov rax, QWORD PTR -16[rbp]
mov DWORD PTR 8[rax], edx
mov rax, QWORD PTR -8[rbp]
mov eax, DWORD PTR [rax]
lea ecx, 1[rax]
mov rdx, QWORD PTR -8[rbp]
mov DWORD PTR [rdx], ecx
movsx rdx, eax
mov rax, QWORD PTR -16[rbp]
mov QWORD PTR [rax], rdx
mov rax, QWORD PTR -16[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size make_token, .-make_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_lex.c_make_token.c"
.option pic
.text
.comm pos,8,8
.align 1
.type make_token, @function
make_token:
addi sp,sp,-48
sd ra,40(sp)
sd s0,32(sp)
addi s0,sp,48
sd a0,-40(s0)
li a0,32
call malloc@plt
sd a0,-32(s0)
ld a5,-32(s0)
ld a4,-40(s0)
ld a1,0(a4)
ld a2,8(a4)
ld a3,16(a4)
ld a4,24(a4)
sd a1,0(a5)
sd a2,8(a5)
sd a3,16(a5)
sd a4,24(a5)
ld a5,-32(s0)
sd zero,24(a5)
call current_file@plt
sd a0,-24(s0)
ld a5,-32(s0)
ld a4,-24(s0)
sd a4,16(a5)
la a5,pos
lw a4,4(a5)
ld a5,-32(s0)
sw a4,12(a5)
la a5,pos
lw a4,0(a5)
ld a5,-32(s0)
sw a4,8(a5)
ld a5,-24(s0)
lw a5,0(a5)
addiw a4,a5,1
sext.w a3,a4
ld a4,-24(s0)
sw a3,0(a4)
mv a4,a5
ld a5,-32(s0)
sd a4,0(a5)
ld a5,-32(s0)
mv a0,a5
ld ra,40(sp)
ld s0,32(sp)
addi sp,sp,48
jr ra
.size make_token, .-make_token
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_lex.c_mark.c"
.intel_syntax noprefix
.text
.globl pos
.bss
.align 4
.type pos, @object
.size pos, 4
pos:
.zero 4
.text
.type mark, @function
mark:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov edi, 0
call get_pos@PLT
mov DWORD PTR pos[rip], eax
nop
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size mark, .-mark
.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_lex.c_mark.c"
.option pic
.text
.comm pos,4,4
.align 1
.type mark, @function
mark:
addi sp,sp,-16
sd ra,8(sp)
sd s0,0(sp)
addi s0,sp,16
li a0,0
call get_pos@plt
mv a5,a0
mv a4,a5
la a5,pos
sw a4,0(a5)
nop
ld ra,8(sp)
ld s0,0(sp)
addi sp,sp,16
jr ra
.size mark, .-mark
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_lex.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 readc@PLT
mov DWORD PTR -4[rbp], eax
mov eax, DWORD PTR -4[rbp]
cmp eax, DWORD PTR -20[rbp]
jne .L2
mov eax, 1
jmp .L3
.L2:
mov eax, DWORD PTR -4[rbp]
mov edi, eax
call unreadc@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_lex.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 readc@plt
mv a5,a0
sw a5,-20(s0)
lw a4,-20(s0)
lw a5,-36(s0)
sext.w a4,a4
sext.w a5,a5
bne a4,a5,.L2
li a5,1
j .L3
.L2:
lw a5,-20(s0)
mv a0,a5
call unreadc@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_lex.c_nextoct.c"
.intel_syntax noprefix
.text
.type nextoct, @function
nextoct:
.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 peek@PLT
mov DWORD PTR -4[rbp], eax
cmp DWORD PTR -4[rbp], 47
jle .L2
cmp DWORD PTR -4[rbp], 55
jg .L2
mov eax, 1
jmp .L4
.L2:
mov eax, 0
.L4:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size nextoct, .-nextoct
.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_lex.c_nextoct.c"
.option pic
.text
.align 1
.type nextoct, @function
nextoct:
addi sp,sp,-32
sd ra,24(sp)
sd s0,16(sp)
addi s0,sp,32
call peek@plt
mv a5,a0
sw a5,-20(s0)
lw a5,-20(s0)
sext.w a4,a5
li a5,47
ble a4,a5,.L2
lw a5,-20(s0)
sext.w a4,a5
li a5,55
bgt a4,a5,.L2
li a5,1
j .L3
.L2:
li a5,0
.L3:
mv a0,a5
ld ra,24(sp)
ld s0,16(sp)
addi sp,sp,32
jr ra
.size nextoct, .-nextoct
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_lex.c_peek.c"
.intel_syntax noprefix
.text
.type peek, @function
peek:
.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 readc@PLT
mov DWORD PTR -4[rbp], eax
mov eax, DWORD PTR -4[rbp]
mov edi, eax
call unreadc@PLT
mov eax, DWORD PTR -4[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size peek, .-peek
.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_lex.c_peek.c"
.option pic
.text
.align 1
.type peek, @function
peek:
addi sp,sp,-32
sd ra,24(sp)
sd s0,16(sp)
addi s0,sp,32
call readc@plt
mv a5,a0
sw a5,-20(s0)
lw a5,-20(s0)
mv a0,a5
call unreadc@plt
lw a5,-20(s0)
mv a0,a5
ld ra,24(sp)
ld s0,16(sp)
addi sp,sp,32
jr ra
.size peek, .-peek
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_lex.c_pos_string.c"
.intel_syntax noprefix
.text
.section .rodata
.LC0:
.string "(unknown)"
.LC1:
.string "%s:%d:%d"
.text
.type pos_string, @function
pos_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 eax, 0
call current_file@PLT
mov QWORD PTR -8[rbp], rax
mov rax, QWORD PTR -24[rbp]
mov ecx, DWORD PTR [rax]
mov rax, QWORD PTR -24[rbp]
mov edx, DWORD PTR 4[rax]
cmp QWORD PTR -8[rbp], 0
je .L2
mov rax, QWORD PTR -8[rbp]
mov rax, QWORD PTR [rax]
jmp .L3
.L2:
lea rax, .LC0[rip]
.L3:
mov rsi, rax
lea rdi, .LC1[rip]
call format@PLT
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size pos_string, .-pos_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_lex.c_pos_string.c"
.option pic
.text
.section .rodata
.align 3
.LC0:
.string "(unknown)"
.align 3
.LC1:
.string "%s:%d:%d"
.text
.align 1
.type pos_string, @function
pos_string:
addi sp,sp,-48
sd ra,40(sp)
sd s0,32(sp)
addi s0,sp,48
sd a0,-40(s0)
call current_file@plt
sd a0,-24(s0)
ld a5,-24(s0)
beqz a5,.L2
ld a5,-24(s0)
ld a5,0(a5)
j .L3
.L2:
lla a5,.LC0
.L3:
ld a4,-40(s0)
lw a2,4(a4)
ld a4,-40(s0)
lw a4,0(a4)
mv a3,a4
mv a1,a5
lla a0,.LC1
call format@plt
mv a5,a0
mv a0,a5
ld ra,40(sp)
ld s0,32(sp)
addi sp,sp,48
jr ra
.size pos_string, .-pos_string
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_lex.c_read_char.c"
.intel_syntax noprefix
.text
.globl ENC_NONE
.bss
.align 4
.type ENC_NONE, @object
.size ENC_NONE, 4
ENC_NONE:
.zero 4
.globl pos
.align 4
.type pos, @object
.size pos, 4
pos:
.zero 4
.section .rodata
.LC0:
.string "unterminated char"
.text
.type read_char, @function
read_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, 32
mov DWORD PTR -20[rbp], edi
mov eax, 0
call readc@PLT
mov DWORD PTR -8[rbp], eax
cmp DWORD PTR -8[rbp], 92
jne .L2
mov eax, 0
call read_escaped_char@PLT
jmp .L3
.L2:
mov eax, DWORD PTR -8[rbp]
.L3:
mov DWORD PTR -4[rbp], eax
mov eax, 0
call readc@PLT
mov DWORD PTR -8[rbp], eax
cmp DWORD PTR -8[rbp], 39
je .L4
mov eax, DWORD PTR pos[rip]
lea rsi, .LC0[rip]
mov edi, eax
call errorp@PLT
.L4:
mov eax, DWORD PTR ENC_NONE[rip]
cmp DWORD PTR -20[rbp], eax
jne .L5
mov eax, DWORD PTR -4[rbp]
movsx eax, al
mov edx, DWORD PTR -20[rbp]
mov esi, edx
mov edi, eax
call make_char@PLT
jmp .L6
.L5:
mov edx, DWORD PTR -20[rbp]
mov eax, DWORD PTR -4[rbp]
mov esi, edx
mov edi, eax
call make_char@PLT
.L6:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size read_char, .-read_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_lex.c_read_char.c"
.option pic
.text
.comm ENC_NONE,4,4
.comm pos,4,4
.section .rodata
.align 3
.LC0:
.string "unterminated char"
.text
.align 1
.type read_char, @function
read_char:
addi sp,sp,-48
sd ra,40(sp)
sd s0,32(sp)
addi s0,sp,48
mv a5,a0
sw a5,-36(s0)
call readc@plt
mv a5,a0
sw a5,-24(s0)
lw a5,-24(s0)
sext.w a4,a5
li a5,92
bne a4,a5,.L2
call read_escaped_char@plt
mv a5,a0
j .L3
.L2:
lw a5,-24(s0)
.L3:
sw a5,-20(s0)
call readc@plt
mv a5,a0
sw a5,-24(s0)
lw a5,-24(s0)
sext.w a4,a5
li a5,39
beq a4,a5,.L4
la a5,pos
lw a5,0(a5)
lla a1,.LC0
mv a0,a5
call errorp@plt
.L4:
la a5,ENC_NONE
lw a4,0(a5)
lw a5,-36(s0)
sext.w a5,a5
bne a5,a4,.L5
lw a5,-20(s0)
andi a5,a5,0xff
sext.w a5,a5
lw a4,-36(s0)
mv a1,a4
mv a0,a5
call make_char@plt
mv a5,a0
j .L6
.L5:
lw a4,-36(s0)
lw a5,-20(s0)
mv a1,a4
mv a0,a5
call make_char@plt
mv a5,a0
.L6:
mv a0,a5
ld ra,40(sp)
ld s0,32(sp)
addi sp,sp,48
jr ra
.size read_char, .-read_char
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_lex.c_read_hash_digraph.c"
.intel_syntax noprefix
.text
.globl KHASHHASH
.bss
.type KHASHHASH, @object
.size KHASHHASH, 1
KHASHHASH:
.zero 1
.text
.type read_hash_digraph, @function
read_hash_digraph:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov edi, 62
call next@PLT
test rax, rax
je .L2
mov edi, 125
call make_keyword@PLT
jmp .L3
.L2:
mov edi, 58
call next@PLT
test rax, rax
je .L4
mov edi, 37
call next@PLT
test rax, rax
je .L5
mov edi, 58
call next@PLT
test rax, rax
je .L6
movzx eax, BYTE PTR KHASHHASH[rip]
movsx eax, al
mov edi, eax
call make_keyword@PLT
jmp .L3
.L6:
mov edi, 37
call unreadc@PLT
.L5:
mov edi, 35
call make_keyword@PLT
jmp .L3
.L4:
mov eax, 0
.L3:
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size read_hash_digraph, .-read_hash_digraph
.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_lex.c_read_hash_digraph.c"
.option pic
.text
.comm KHASHHASH,1,1
.align 1
.type read_hash_digraph, @function
read_hash_digraph:
addi sp,sp,-16
sd ra,8(sp)
sd s0,0(sp)
addi s0,sp,16
li a0,62
call next@plt
mv a5,a0
beqz a5,.L2
li a0,125
call make_keyword@plt
mv a5,a0
j .L3
.L2:
li a0,58
call next@plt
mv a5,a0
beqz a5,.L4
li a0,37
call next@plt
mv a5,a0
beqz a5,.L5
li a0,58
call next@plt
mv a5,a0
beqz a5,.L6
la a5,KHASHHASH
lbu a5,0(a5)
mv a0,a5
call make_keyword@plt
mv a5,a0
j .L3
.L6:
li a0,37
call unreadc@plt
.L5:
li a0,35
call make_keyword@plt
mv a5,a0
j .L3
.L4:
li a5,0
.L3:
mv a0,a5
ld ra,8(sp)
ld s0,0(sp)
addi sp,sp,16
jr ra
.size read_hash_digraph, .-read_hash_digraph
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_lex.c_read_header_file_name.c"
.intel_syntax noprefix
.text
.globl EOF
.bss
.align 4
.type EOF, @object
.size EOF, 4
EOF:
.zero 4
.section .rodata
.LC0:
.string "premature end of header name"
.align 8
.LC1:
.string "header name should not be empty"
.text
.globl read_header_file_name
.type read_header_file_name, @function
read_header_file_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 eax, 0
call buffer_empty@PLT
test eax, eax
jne .L2
mov eax, 0
jmp .L3
.L2:
mov eax, 0
call skip_space@PLT
mov edi, 0
call get_pos@PLT
mov DWORD PTR -16[rbp], eax
mov edi, 34
call next@PLT
test rax, rax
je .L4
mov rax, QWORD PTR -40[rbp]
mov DWORD PTR [rax], 0
mov BYTE PTR -17[rbp], 34
jmp .L5
.L4:
mov edi, 60
call next@PLT
test rax, rax
je .L6
mov rax, QWORD PTR -40[rbp]
mov DWORD PTR [rax], 1
mov BYTE PTR -17[rbp], 62
jmp .L5
.L6:
mov eax, 0
jmp .L3
.L5:
mov eax, 0
call make_buffer@PLT
mov QWORD PTR -8[rbp], rax
jmp .L7
.L10:
mov eax, 0
call readc@PLT
mov DWORD PTR -12[rbp], eax
mov eax, DWORD PTR EOF[rip]
cmp DWORD PTR -12[rbp], eax
je .L8
cmp DWORD PTR -12[rbp], 10
jne .L9
.L8:
mov eax, DWORD PTR -16[rbp]
lea rsi, .LC0[rip]
mov edi, eax
call errorp@PLT
.L9:
mov eax, DWORD PTR -12[rbp]
movsx edx, al
mov rax, QWORD PTR -8[rbp]
mov esi, edx
mov rdi, rax
call buf_write@PLT
.L7:
movsx eax, BYTE PTR -17[rbp]
mov edi, eax
call next@PLT
test rax, rax
je .L10
mov rax, QWORD PTR -8[rbp]
mov rdi, rax
call buf_len@PLT
test rax, rax
jne .L11
mov eax, DWORD PTR -16[rbp]
lea rsi, .LC1[rip]
mov edi, eax
call errorp@PLT
.L11:
mov rax, QWORD PTR -8[rbp]
mov esi, 0
mov rdi, rax
call buf_write@PLT
mov rax, QWORD PTR -8[rbp]
mov rdi, rax
call buf_body@PLT
.L3:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size read_header_file_name, .-read_header_file_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_lex.c_read_header_file_name.c"
.option pic
.text
.comm EOF,4,4
.section .rodata
.align 3
.LC0:
.string "premature end of header name"
.align 3
.LC1:
.string "header name should not be empty"
.text
.align 1
.globl read_header_file_name
.type read_header_file_name, @function
read_header_file_name:
addi sp,sp,-64
sd ra,56(sp)
sd s0,48(sp)
addi s0,sp,64
sd a0,-56(s0)
call buffer_empty@plt
mv a5,a0
bnez a5,.L2
li a5,0
j .L3
.L2:
call skip_space@plt
li a0,0
call get_pos@plt
mv a5,a0
sw a5,-32(s0)
li a0,34
call next@plt
mv a5,a0
beqz a5,.L4
ld a5,-56(s0)
sw zero,0(a5)
li a5,34
sb a5,-33(s0)
j .L5
.L4:
li a0,60
call next@plt
mv a5,a0
beqz a5,.L6
ld a5,-56(s0)
li a4,1
sw a4,0(a5)
li a5,62
sb a5,-33(s0)
j .L5
.L6:
li a5,0
j .L3
.L5:
call make_buffer@plt
sd a0,-24(s0)
j .L7
.L10:
call readc@plt
mv a5,a0
sw a5,-28(s0)
la a5,EOF
lw a4,0(a5)
lw a5,-28(s0)
sext.w a5,a5
beq a5,a4,.L8
lw a5,-28(s0)
sext.w a4,a5
li a5,10
bne a4,a5,.L9
.L8:
lw a5,-32(s0)
lla a1,.LC0
mv a0,a5
call errorp@plt
.L9:
lw a5,-28(s0)
andi a5,a5,0xff
mv a1,a5
ld a0,-24(s0)
call buf_write@plt
.L7:
lbu a5,-33(s0)
mv a0,a5
call next@plt
mv a5,a0
beqz a5,.L10
ld a0,-24(s0)
call buf_len@plt
mv a5,a0
bnez a5,.L11
lw a5,-32(s0)
lla a1,.LC1
mv a0,a5
call errorp@plt
.L11:
li a1,0
ld a0,-24(s0)
call buf_write@plt
ld a0,-24(s0)
call buf_body@plt
mv a5,a0
.L3:
mv a0,a5
ld ra,56(sp)
ld s0,48(sp)
addi sp,sp,64
jr ra
.size read_header_file_name, .-read_header_file_name
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_lex.c_read_ident.c"
.intel_syntax noprefix
.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, 32
mov eax, edi
mov BYTE PTR -20[rbp], al
mov eax, 0
call make_buffer@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 buf_write@PLT
.L8:
mov eax, 0
call readc@PLT
mov BYTE PTR -20[rbp], al
movsx eax, BYTE PTR -20[rbp]
mov edi, eax
call isalnum@PLT
test rax, rax
jne .L2
cmp BYTE PTR -20[rbp], 0
js .L2
cmp BYTE PTR -20[rbp], 95
je .L2
cmp BYTE PTR -20[rbp], 36
jne .L3
.L2:
movsx edx, BYTE PTR -20[rbp]
mov rax, QWORD PTR -8[rbp]
mov esi, edx
mov rdi, rax
call buf_write@PLT
jmp .L4
.L3:
cmp BYTE PTR -20[rbp], 92
jne .L5
mov eax, 0
call peek@PLT
cmp al, 117
je .L6
mov eax, 0
call peek@PLT
cmp al, 85
jne .L5
.L6:
mov eax, 0
call read_escaped_char@PLT
mov edx, eax
mov rax, QWORD PTR -8[rbp]
mov esi, edx
mov rdi, rax
call write_utf8@PLT
jmp .L4
.L5:
movsx eax, BYTE PTR -20[rbp]
mov edi, eax
call unreadc@PLT
mov rax, QWORD PTR -8[rbp]
mov esi, 0
mov rdi, rax
call buf_write@PLT
mov rax, QWORD PTR -8[rbp]
mov rdi, rax
call buf_body@PLT
mov edi, eax
call make_ident@PLT
jmp .L9
.L4:
jmp .L8
.L9:
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_lex.c_read_ident.c"
.option pic
.text
.align 1
.type read_ident, @function
read_ident:
addi sp,sp,-48
sd ra,40(sp)
sd s0,32(sp)
addi s0,sp,48
mv a5,a0
sb a5,-33(s0)
call make_buffer@plt
sd a0,-24(s0)
lbu a5,-33(s0)
mv a1,a5
ld a0,-24(s0)
call buf_write@plt
.L8:
call readc@plt
mv a5,a0
sb a5,-33(s0)
lbu a5,-33(s0)
mv a0,a5
call isalnum@plt
mv a5,a0
bnez a5,.L2
lb a5,-33(s0)
bltz a5,.L2
lbu a5,-33(s0)
andi a4,a5,0xff
li a5,95
beq a4,a5,.L2
lbu a5,-33(s0)
andi a4,a5,0xff
li a5,36
bne a4,a5,.L3
.L2:
lbu a5,-33(s0)
mv a1,a5
ld a0,-24(s0)
call buf_write@plt
j .L4
.L3:
lbu a5,-33(s0)
andi a4,a5,0xff
li a5,92
bne a4,a5,.L5
call peek@plt
mv a5,a0
mv a4,a5
li a5,117
beq a4,a5,.L6
call peek@plt
mv a5,a0
mv a4,a5
li a5,85
bne a4,a5,.L5
.L6:
call read_escaped_char@plt
mv a5,a0
mv a1,a5
ld a0,-24(s0)
call write_utf8@plt
j .L4
.L5:
lbu a5,-33(s0)
mv a0,a5
call unreadc@plt
li a1,0
ld a0,-24(s0)
call buf_write@plt
ld a0,-24(s0)
call buf_body@plt
mv a5,a0
mv a0,a5
call make_ident@plt
mv a5,a0
j .L9
.L4:
j .L8
.L9:
mv a0,a5
ld ra,40(sp)
ld s0,32(sp)
addi sp,sp,48
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_lex.c_read_number.c"
.intel_syntax noprefix
.text
.section .rodata
.LC0:
.string "eEpP"
.LC1:
.string "+-"
.text
.type read_number, @function
read_number:
.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 eax, edi
mov BYTE PTR -36[rbp], al
mov eax, 0
call make_buffer@PLT
mov QWORD PTR -8[rbp], rax
movsx edx, BYTE PTR -36[rbp]
mov rax, QWORD PTR -8[rbp]
mov esi, edx
mov rdi, rax
call buf_write@PLT
movzx eax, BYTE PTR -36[rbp]
mov BYTE PTR -17[rbp], al
.L6:
mov eax, 0
call readc@PLT
mov DWORD PTR -16[rbp], eax
movsx eax, BYTE PTR -17[rbp]
mov esi, eax
lea rdi, .LC0[rip]
call strchr@PLT
test rax, rax
je .L2
mov eax, DWORD PTR -16[rbp]
mov esi, eax
lea rdi, .LC1[rip]
call strchr@PLT
test rax, rax
je .L2
mov eax, 1
jmp .L3
.L2:
mov eax, 0
.L3:
mov DWORD PTR -12[rbp], eax
mov eax, DWORD PTR -16[rbp]
sub eax, 48
cmp eax, 9
jbe .L4
mov eax, DWORD PTR -16[rbp]
mov edi, eax
call isalpha@PLT
test eax, eax
jne .L4
cmp DWORD PTR -16[rbp], 46
je .L4
cmp DWORD PTR -12[rbp], 0
jne .L4
mov eax, DWORD PTR -16[rbp]
mov edi, eax
call unreadc@PLT
mov rax, QWORD PTR -8[rbp]
mov esi, 0
mov rdi, rax
call buf_write@PLT
mov rax, QWORD PTR -8[rbp]
mov rdi, rax
call buf_body@PLT
mov edi, eax
call make_number@PLT
jmp .L7
.L4:
mov edx, DWORD PTR -16[rbp]
mov rax, QWORD PTR -8[rbp]
mov esi, edx
mov rdi, rax
call buf_write@PLT
mov eax, DWORD PTR -16[rbp]
mov BYTE PTR -17[rbp], al
jmp .L6
.L7:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size read_number, .-read_number
.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_lex.c_read_number.c"
.option pic
.text
.section .rodata
.align 3
.LC0:
.string "eEpP"
.align 3
.LC1:
.string "+-"
.text
.align 1
.type read_number, @function
read_number:
addi sp,sp,-64
sd ra,56(sp)
sd s0,48(sp)
addi s0,sp,64
mv a5,a0
sb a5,-49(s0)
call make_buffer@plt
sd a0,-24(s0)
lbu a5,-49(s0)
sext.w a5,a5
mv a1,a5
ld a0,-24(s0)
call buf_write@plt
lbu a5,-49(s0)
sb a5,-33(s0)
.L6:
call readc@plt
mv a5,a0
sw a5,-32(s0)
lbu a5,-33(s0)
sext.w a5,a5
mv a1,a5
lla a0,.LC0
call strchr@plt
mv a5,a0
beqz a5,.L2
lw a5,-32(s0)
mv a1,a5
lla a0,.LC1
call strchr@plt
mv a5,a0
beqz a5,.L2
li a5,1
j .L3
.L2:
li a5,0
.L3:
sw a5,-28(s0)
lw a5,-32(s0)
addiw a5,a5,-48
sext.w a5,a5
mv a4,a5
li a5,9
bleu a4,a5,.L4
lw a5,-32(s0)
mv a0,a5
call isalpha@plt
mv a5,a0
bnez a5,.L4
lw a5,-32(s0)
sext.w a4,a5
li a5,46
beq a4,a5,.L4
lw a5,-28(s0)
sext.w a5,a5
bnez a5,.L4
lw a5,-32(s0)
mv a0,a5
call unreadc@plt
li a1,0
ld a0,-24(s0)
call buf_write@plt
ld a0,-24(s0)
call buf_body@plt
mv a5,a0
mv a0,a5
call make_number@plt
mv a5,a0
j .L7
.L4:
lw a5,-32(s0)
mv a1,a5
ld a0,-24(s0)
call buf_write@plt
lw a5,-32(s0)
sb a5,-33(s0)
j .L6
.L7:
mv a0,a5
ld ra,56(sp)
ld s0,48(sp)
addi sp,sp,64
jr ra
.size read_number, .-read_number
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_lex.c_read_octal_char.c"
.intel_syntax noprefix
.text
.type read_octal_char, @function
read_octal_char:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
push rbx
sub rsp, 40
.cfi_offset 3, -24
mov DWORD PTR -36[rbp], edi
mov eax, DWORD PTR -36[rbp]
sub eax, 48
mov DWORD PTR -20[rbp], eax
mov eax, 0
call nextoct@PLT
test eax, eax
jne .L2
mov eax, DWORD PTR -20[rbp]
jmp .L3
.L2:
mov eax, DWORD PTR -20[rbp]
lea ebx, 0[0+rax*8]
mov eax, 0
call readc@PLT
sub eax, 48
or eax, ebx
mov DWORD PTR -20[rbp], eax
mov eax, 0
call nextoct@PLT
test eax, eax
jne .L4
mov eax, DWORD PTR -20[rbp]
jmp .L3
.L4:
mov eax, DWORD PTR -20[rbp]
lea ebx, 0[0+rax*8]
mov eax, 0
call readc@PLT
sub eax, 48
or eax, ebx
.L3:
mov rbx, QWORD PTR -8[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size read_octal_char, .-read_octal_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_lex.c_read_octal_char.c"
.option pic
.text
.align 1
.type read_octal_char, @function
read_octal_char:
addi sp,sp,-64
sd ra,56(sp)
sd s0,48(sp)
sd s1,40(sp)
addi s0,sp,64
mv a5,a0
sw a5,-52(s0)
lw a5,-52(s0)
addiw a5,a5,-48
sw a5,-36(s0)
call nextoct@plt
mv a5,a0
bnez a5,.L2
lw a5,-36(s0)
j .L3
.L2:
lw a5,-36(s0)
slliw a5,a5,3
sext.w s1,a5
call readc@plt
mv a5,a0
addiw a5,a5,-48
sext.w a5,a5
or a5,s1,a5
sw a5,-36(s0)
call nextoct@plt
mv a5,a0
bnez a5,.L4
lw a5,-36(s0)
j .L3
.L4:
lw a5,-36(s0)
slliw a5,a5,3
sext.w s1,a5
call readc@plt
mv a5,a0
addiw a5,a5,-48
sext.w a5,a5
or a5,s1,a5
sext.w a5,a5
.L3:
mv a0,a5
ld ra,56(sp)
ld s0,48(sp)
ld s1,40(sp)
addi sp,sp,64
jr ra
.size read_octal_char, .-read_octal_char
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_lex.c_read_rep.c"
.intel_syntax noprefix
.text
.type read_rep, @function
read_rep:
.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 DWORD PTR -8[rbp], esi
mov DWORD PTR -12[rbp], edx
mov BYTE PTR -4[rbp], al
movsx eax, BYTE PTR -4[rbp]
mov edi, eax
call next@PLT
test rax, rax
je .L2
mov eax, DWORD PTR -8[rbp]
jmp .L3
.L2:
mov eax, DWORD PTR -12[rbp]
.L3:
mov edi, eax
call make_keyword@PLT
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size read_rep, .-read_rep
.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_lex.c_read_rep.c"
.option pic
.text
.align 1
.type read_rep, @function
read_rep:
addi sp,sp,-32
sd ra,24(sp)
sd s0,16(sp)
addi s0,sp,32
mv a5,a0
mv a3,a1
mv a4,a2
sb a5,-17(s0)
mv a5,a3
sw a5,-24(s0)
mv a5,a4
sw a5,-28(s0)
lbu a5,-17(s0)
mv a0,a5
call next@plt
mv a5,a0
beqz a5,.L2
lw a5,-24(s0)
j .L3
.L2:
lw a5,-28(s0)
.L3:
mv a0,a5
call make_keyword@plt
mv a5,a0
mv a0,a5
ld ra,24(sp)
ld s0,16(sp)
addi sp,sp,32
jr ra
.size read_rep, .-read_rep
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_lex.c_read_rep2.c"
.intel_syntax noprefix
.text
.type read_rep2, @function
read_rep2:
.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 -8[rbp], esi
mov eax, edx
mov DWORD PTR -16[rbp], ecx
mov ecx, r8d
mov edx, edi
mov BYTE PTR -4[rbp], dl
mov BYTE PTR -12[rbp], al
mov eax, ecx
mov BYTE PTR -20[rbp], al
movsx eax, BYTE PTR -4[rbp]
mov edi, eax
call next@PLT
test rax, rax
je .L2
mov eax, DWORD PTR -8[rbp]
mov edi, eax
call make_keyword@PLT
jmp .L3
.L2:
movsx eax, BYTE PTR -12[rbp]
mov edi, eax
call next@PLT
test rax, rax
jne .L4
movsx eax, BYTE PTR -20[rbp]
jmp .L5
.L4:
mov eax, DWORD PTR -16[rbp]
.L5:
mov edi, eax
call make_keyword@PLT
.L3:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size read_rep2, .-read_rep2
.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_lex.c_read_rep2.c"
.option pic
.text
.align 1
.type read_rep2, @function
read_rep2:
addi sp,sp,-32
sd ra,24(sp)
sd s0,16(sp)
addi s0,sp,32
mv a5,a0
sb a5,-17(s0)
mv a5,a1
sw a5,-24(s0)
mv a5,a2
sb a5,-18(s0)
mv a5,a3
sw a5,-28(s0)
mv a5,a4
sb a5,-19(s0)
lbu a5,-17(s0)
mv a0,a5
call next@plt
mv a5,a0
beqz a5,.L2
lw a5,-24(s0)
mv a0,a5
call make_keyword@plt
mv a5,a0
j .L3
.L2:
lbu a5,-18(s0)
mv a0,a5
call next@plt
mv a5,a0
bnez a5,.L4
lbu a5,-19(s0)
sext.w a5,a5
j .L5
.L4:
lw a5,-28(s0)
.L5:
mv a0,a5
call make_keyword@plt
mv a5,a0
.L3:
mv a0,a5
ld ra,24(sp)
ld s0,16(sp)
addi sp,sp,32
jr ra
.size read_rep2, .-read_rep2
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_lex.c_read_string.c"
.intel_syntax noprefix
.text
.globl EOF
.bss
.align 4
.type EOF, @object
.size EOF, 4
EOF:
.zero 4
.globl pos
.align 4
.type pos, @object
.size pos, 4
pos:
.zero 4
.section .rodata
.LC0:
.string "unterminated string"
.text
.type read_string, @function
read_string:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
push rbx
sub rsp, 40
.cfi_offset 3, -24
mov DWORD PTR -36[rbp], edi
mov eax, 0
call make_buffer@PLT
mov QWORD PTR -24[rbp], rax
.L11:
mov eax, 0
call readc@PLT
mov DWORD PTR -32[rbp], eax
mov eax, DWORD PTR EOF[rip]
cmp DWORD PTR -32[rbp], eax
jne .L2
mov eax, DWORD PTR pos[rip]
lea rsi, .LC0[rip]
mov edi, eax
call errorp@PLT
.L2:
cmp DWORD PTR -32[rbp], 34
je .L14
cmp DWORD PTR -32[rbp], 92
je .L5
mov eax, DWORD PTR -32[rbp]
movsx edx, al
mov rax, QWORD PTR -24[rbp]
mov esi, edx
mov rdi, rax
call buf_write@PLT
jmp .L6
.L5:
mov eax, 0
call peek@PLT
cmp al, 117
je .L7
mov eax, 0
call peek@PLT
cmp al, 85
jne .L8
.L7:
mov eax, 1
jmp .L9
.L8:
mov eax, 0
.L9:
mov DWORD PTR -28[rbp], eax
mov eax, 0
call read_escaped_char@PLT
mov DWORD PTR -32[rbp], eax
cmp DWORD PTR -28[rbp], 0
je .L10
mov edx, DWORD PTR -32[rbp]
mov rax, QWORD PTR -24[rbp]
mov esi, edx
mov rdi, rax
call write_utf8@PLT
jmp .L6
.L10:
mov eax, DWORD PTR -32[rbp]
movsx edx, al
mov rax, QWORD PTR -24[rbp]
mov esi, edx
mov rdi, rax
call buf_write@PLT
.L6:
jmp .L11
.L14:
nop
mov rax, QWORD PTR -24[rbp]
mov esi, 0
mov rdi, rax
call buf_write@PLT
mov rax, QWORD PTR -24[rbp]
mov rdi, rax
call buf_len@PLT
mov ebx, eax
mov rax, QWORD PTR -24[rbp]
mov rdi, rax
call buf_body@PLT
mov ecx, eax
mov eax, DWORD PTR -36[rbp]
mov edx, eax
mov esi, ebx
mov edi, ecx
call make_strtok@PLT
mov rbx, QWORD PTR -8[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size read_string, .-read_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_lex.c_read_string.c"
.option pic
.text
.comm EOF,4,4
.comm pos,4,4
.section .rodata
.align 3
.LC0:
.string "unterminated string"
.text
.align 1
.type read_string, @function
read_string:
addi sp,sp,-64
sd ra,56(sp)
sd s0,48(sp)
sd s1,40(sp)
addi s0,sp,64
mv a5,a0
sw a5,-52(s0)
call make_buffer@plt
sd a0,-40(s0)
.L11:
call readc@plt
mv a5,a0
sw a5,-48(s0)
la a5,EOF
lw a4,0(a5)
lw a5,-48(s0)
sext.w a5,a5
bne a5,a4,.L2
la a5,pos
lw a5,0(a5)
lla a1,.LC0
mv a0,a5
call errorp@plt
.L2:
lw a5,-48(s0)
sext.w a4,a5
li a5,34
beq a4,a5,.L14
lw a5,-48(s0)
sext.w a4,a5
li a5,92
beq a4,a5,.L5
lw a5,-48(s0)
andi a5,a5,0xff
mv a1,a5
ld a0,-40(s0)
call buf_write@plt
j .L6
.L5:
call peek@plt
mv a5,a0
mv a4,a5
li a5,117
beq a4,a5,.L7
call peek@plt
mv a5,a0
mv a4,a5
li a5,85
bne a4,a5,.L8
.L7:
li a5,1
j .L9
.L8:
li a5,0
.L9:
sw a5,-44(s0)
call read_escaped_char@plt
mv a5,a0
sw a5,-48(s0)
lw a5,-44(s0)
sext.w a5,a5
beqz a5,.L10
lw a5,-48(s0)
mv a1,a5
ld a0,-40(s0)
call write_utf8@plt
j .L6
.L10:
lw a5,-48(s0)
andi a5,a5,0xff
mv a1,a5
ld a0,-40(s0)
call buf_write@plt
.L6:
j .L11
.L14:
nop
li a1,0
ld a0,-40(s0)
call buf_write@plt
ld a0,-40(s0)
call buf_body@plt
mv a5,a0
mv s1,a5
ld a0,-40(s0)
call buf_len@plt
mv a5,a0
mv a4,a5
lw a5,-52(s0)
mv a2,a5
mv a1,a4
mv a0,s1
call make_strtok@plt
mv a5,a0
mv a0,a5
ld ra,56(sp)
ld s0,48(sp)
ld s1,40(sp)
addi sp,sp,64
jr ra
.size read_string, .-read_string
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_lex.c_skip_block_comment.c"
.intel_syntax noprefix
.text
.globl EOF
.bss
.align 4
.type EOF, @object
.size EOF, 4
EOF:
.zero 4
.section .rodata
.align 8
.LC0:
.string "premature end of block comment"
.text
.type skip_block_comment, @function
skip_block_comment:
.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, -2
call get_pos@PLT
mov DWORD PTR -8[rbp], eax
mov DWORD PTR -12[rbp], 0
.L5:
mov eax, 0
call readc@PLT
mov DWORD PTR -4[rbp], eax
mov eax, DWORD PTR EOF[rip]
cmp DWORD PTR -4[rbp], eax
jne .L2
mov eax, DWORD PTR -8[rbp]
lea rsi, .LC0[rip]
mov edi, eax
call errorp@PLT
.L2:
cmp DWORD PTR -4[rbp], 47
jne .L3
cmp DWORD PTR -12[rbp], 0
jne .L7
.L3:
cmp DWORD PTR -4[rbp], 42
sete al
movzx eax, al
mov DWORD PTR -12[rbp], eax
jmp .L5
.L7:
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size skip_block_comment, .-skip_block_comment
.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_lex.c_skip_block_comment.c"
.option pic
.text
.comm EOF,4,4
.section .rodata
.align 3
.LC0:
.string "premature end of block comment"
.text
.align 1
.type skip_block_comment, @function
skip_block_comment:
addi sp,sp,-32
sd ra,24(sp)
sd s0,16(sp)
addi s0,sp,32
li a0,-2
call get_pos@plt
mv a5,a0
sw a5,-24(s0)
sw zero,-28(s0)
.L5:
call readc@plt
mv a5,a0
sw a5,-20(s0)
la a5,EOF
lw a4,0(a5)
lw a5,-20(s0)
sext.w a5,a5
bne a5,a4,.L2
lw a5,-24(s0)
lla a1,.LC0
mv a0,a5
call errorp@plt
.L2:
lw a5,-20(s0)
sext.w a4,a5
li a5,47
bne a4,a5,.L3
lw a5,-28(s0)
sext.w a5,a5
bnez a5,.L7
.L3:
lw a5,-20(s0)
sext.w a4,a5
li a5,42
sub a5,a4,a5
seqz a5,a5
andi a5,a5,0xff
sw a5,-28(s0)
j .L5
.L7:
nop
ld ra,24(sp)
ld s0,16(sp)
addi sp,sp,32
jr ra
.size skip_block_comment, .-skip_block_comment
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_lex.c_skip_char.c"
.intel_syntax noprefix
.text
.globl EOF
.bss
.align 4
.type EOF, @object
.size EOF, 4
EOF:
.zero 4
.text
.type skip_char, @function
skip_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, 0
call readc@PLT
cmp al, 92
jne .L2
mov eax, 0
call readc@PLT
.L2:
mov eax, 0
call readc@PLT
movsx eax, al
mov DWORD PTR -4[rbp], eax
jmp .L3
.L5:
mov eax, 0
call readc@PLT
movsx eax, al
mov DWORD PTR -4[rbp], eax
.L3:
mov eax, DWORD PTR EOF[rip]
cmp DWORD PTR -4[rbp], eax
je .L6
cmp DWORD PTR -4[rbp], 39
jne .L5
.L6:
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size skip_char, .-skip_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_lex.c_skip_char.c"
.option pic
.text
.comm EOF,4,4
.align 1
.type skip_char, @function
skip_char:
addi sp,sp,-32
sd ra,24(sp)
sd s0,16(sp)
addi s0,sp,32
call readc@plt
mv a5,a0
mv a4,a5
li a5,92
bne a4,a5,.L2
call readc@plt
.L2:
call readc@plt
mv a5,a0
sw a5,-20(s0)
j .L3
.L5:
call readc@plt
mv a5,a0
sw a5,-20(s0)
.L3:
la a5,EOF
lw a4,0(a5)
lw a5,-20(s0)
sext.w a5,a5
beq a5,a4,.L6
lw a5,-20(s0)
sext.w a4,a5
li a5,39
bne a4,a5,.L5
.L6:
nop
ld ra,24(sp)
ld s0,16(sp)
addi sp,sp,32
jr ra
.size skip_char, .-skip_char
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_lex.c_skip_cond_incl.c"
.intel_syntax noprefix
.text
.globl EOF
.bss
.align 4
.type EOF, @object
.size EOF, 4
EOF:
.zero 4
.globl TIDENT
.align 8
.type TIDENT, @object
.size TIDENT, 8
TIDENT:
.zero 8
.section .rodata
.LC0:
.string "else"
.LC1:
.string "elif"
.LC2:
.string "endif"
.LC3:
.string "if"
.LC4:
.string "ifdef"
.LC5:
.string "ifndef"
.text
.globl skip_cond_incl
.type skip_cond_incl, @function
skip_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 -32[rbp], 0
.L15:
mov eax, 0
call current_file@PLT
mov eax, DWORD PTR [rax]
cmp eax, 1
sete al
movzx eax, al
mov DWORD PTR -28[rbp], eax
mov eax, 0
call skip_space@PLT
mov eax, 0
call readc@PLT
mov DWORD PTR -24[rbp], eax
mov eax, DWORD PTR EOF[rip]
cmp DWORD PTR -24[rbp], eax
je .L16
cmp DWORD PTR -24[rbp], 39
jne .L4
mov eax, 0
call skip_char@PLT
jmp .L5
.L4:
cmp DWORD PTR -24[rbp], 34
jne .L6
mov eax, 0
call skip_string@PLT
jmp .L5
.L6:
cmp DWORD PTR -24[rbp], 35
jne .L17
cmp DWORD PTR -28[rbp], 0
je .L17
mov eax, 0
call current_file@PLT
mov eax, DWORD PTR [rax]
sub eax, 1
mov DWORD PTR -20[rbp], eax
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
jne .L18
cmp DWORD PTR -32[rbp], 0
jne .L10
mov rax, QWORD PTR -16[rbp]
lea rsi, .LC0[rip]
mov rdi, rax
call is_ident@PLT
test rax, rax
jne .L11
mov rax, QWORD PTR -16[rbp]
lea rsi, .LC1[rip]
mov rdi, rax
call is_ident@PLT
test rax, rax
jne .L11
mov rax, QWORD PTR -16[rbp]
lea rsi, .LC2[rip]
mov rdi, rax
call is_ident@PLT
test rax, rax
je .L10
.L11:
mov rax, QWORD PTR -16[rbp]
mov rdi, rax
call unget_token@PLT
mov edi, 35
call make_keyword@PLT
mov QWORD PTR -8[rbp], rax
mov rax, QWORD PTR -8[rbp]
mov DWORD PTR 8[rax], 1
mov rax, QWORD PTR -8[rbp]
mov edx, DWORD PTR -20[rbp]
mov DWORD PTR 12[rax], edx
mov rax, QWORD PTR -8[rbp]
mov rdi, rax
call unget_token@PLT
jmp .L1
.L10:
mov rax, QWORD PTR -16[rbp]
lea rsi, .LC3[rip]
mov rdi, rax
call is_ident@PLT
test rax, rax
jne .L12
mov rax, QWORD PTR -16[rbp]
lea rsi, .LC4[rip]
mov rdi, rax
call is_ident@PLT
test rax, rax
jne .L12
mov rax, QWORD PTR -16[rbp]
lea rsi, .LC5[rip]
mov rdi, rax
call is_ident@PLT
test rax, rax
je .L13
.L12:
add DWORD PTR -32[rbp], 1
jmp .L14
.L13:
cmp DWORD PTR -32[rbp], 0
je .L14
mov rax, QWORD PTR -16[rbp]
lea rsi, .LC2[rip]
mov rdi, rax
call is_ident@PLT
test rax, rax
je .L14
sub DWORD PTR -32[rbp], 1
.L14:
mov eax, 0
call skip_line@PLT
jmp .L15
.L17:
nop
jmp .L15
.L18:
nop
.L5:
jmp .L15
.L16:
nop
.L1:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size skip_cond_incl, .-skip_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_lex.c_skip_cond_incl.c"
.option pic
.text
.comm EOF,4,4
.comm TIDENT,8,8
.section .rodata
.align 3
.LC0:
.string "else"
.align 3
.LC1:
.string "elif"
.align 3
.LC2:
.string "endif"
.align 3
.LC3:
.string "if"
.align 3
.LC4:
.string "ifdef"
.align 3
.LC5:
.string "ifndef"
.text
.align 1
.globl skip_cond_incl
.type skip_cond_incl, @function
skip_cond_incl:
addi sp,sp,-48
sd ra,40(sp)
sd s0,32(sp)
addi s0,sp,48
sw zero,-48(s0)
.L15:
call current_file@plt
mv a5,a0
lw a5,0(a5)
mv a4,a5
li a5,1
sub a5,a4,a5
seqz a5,a5
andi a5,a5,0xff
sw a5,-44(s0)
call skip_space@plt
call readc@plt
mv a5,a0
sw a5,-40(s0)
la a5,EOF
lw a4,0(a5)
lw a5,-40(s0)
sext.w a5,a5
beq a5,a4,.L16
lw a5,-40(s0)
sext.w a4,a5
li a5,39
bne a4,a5,.L4
call skip_char@plt
j .L5
.L4:
lw a5,-40(s0)
sext.w a4,a5
li a5,34
bne a4,a5,.L6
call skip_string@plt
j .L5
.L6:
lw a5,-40(s0)
sext.w a4,a5
li a5,35
bne a4,a5,.L17
lw a5,-44(s0)
sext.w a5,a5
beqz a5,.L17
call current_file@plt
mv a5,a0
lw a5,0(a5)
addiw a5,a5,-1
sw a5,-36(s0)
call lex@plt
sd a0,-32(s0)
ld a5,-32(s0)
ld a4,0(a5)
la a5,TIDENT
ld a5,0(a5)
bne a4,a5,.L18
lw a5,-48(s0)
sext.w a5,a5
bnez a5,.L10
lla a1,.LC0
ld a0,-32(s0)
call is_ident@plt
mv a5,a0
bnez a5,.L11
lla a1,.LC1
ld a0,-32(s0)
call is_ident@plt
mv a5,a0
bnez a5,.L11
lla a1,.LC2
ld a0,-32(s0)
call is_ident@plt
mv a5,a0
beqz a5,.L10
.L11:
ld a0,-32(s0)
call unget_token@plt
li a0,35
call make_keyword@plt
sd a0,-24(s0)
ld a5,-24(s0)
li a4,1
sw a4,8(a5)
ld a5,-24(s0)
lw a4,-36(s0)
sw a4,12(a5)
ld a0,-24(s0)
call unget_token@plt
j .L1
.L10:
lla a1,.LC3
ld a0,-32(s0)
call is_ident@plt
mv a5,a0
bnez a5,.L12
lla a1,.LC4
ld a0,-32(s0)
call is_ident@plt
mv a5,a0
bnez a5,.L12
lla a1,.LC5
ld a0,-32(s0)
call is_ident@plt
mv a5,a0
beqz a5,.L13
.L12:
lw a5,-48(s0)
addiw a5,a5,1
sw a5,-48(s0)
j .L14
.L13:
lw a5,-48(s0)
sext.w a5,a5
beqz a5,.L14
lla a1,.LC2
ld a0,-32(s0)
call is_ident@plt
mv a5,a0
beqz a5,.L14
lw a5,-48(s0)
addiw a5,a5,-1
sw a5,-48(s0)
.L14:
call skip_line@plt
j .L15
.L17:
nop
j .L15
.L18:
nop
.L5:
j .L15
.L16:
nop
.L1:
ld ra,40(sp)
ld s0,32(sp)
addi sp,sp,48
jr ra
.size skip_cond_incl, .-skip_cond_incl
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_lex.c_skip_line.c"
.intel_syntax noprefix
.text
.globl EOF
.bss
.align 4
.type EOF, @object
.size EOF, 4
EOF:
.zero 4
.text
.type skip_line, @function
skip_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
.L5:
mov eax, 0
call readc@PLT
mov DWORD PTR -4[rbp], eax
mov eax, DWORD PTR EOF[rip]
cmp DWORD PTR -4[rbp], eax
je .L6
cmp DWORD PTR -4[rbp], 10
jne .L5
mov eax, DWORD PTR -4[rbp]
mov edi, eax
call unreadc@PLT
jmp .L1
.L6:
nop
.L1:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size skip_line, .-skip_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_lex.c_skip_line.c"
.option pic
.text
.comm EOF,4,4
.align 1
.type skip_line, @function
skip_line:
addi sp,sp,-32
sd ra,24(sp)
sd s0,16(sp)
addi s0,sp,32
.L5:
call readc@plt
mv a5,a0
sw a5,-20(s0)
la a5,EOF
lw a4,0(a5)
lw a5,-20(s0)
sext.w a5,a5
beq a5,a4,.L6
lw a5,-20(s0)
sext.w a4,a5
li a5,10
bne a4,a5,.L5
lw a5,-20(s0)
mv a0,a5
call unreadc@plt
j .L1
.L6:
nop
.L1:
ld ra,24(sp)
ld s0,16(sp)
addi sp,sp,32
jr ra
.size skip_line, .-skip_line
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_lex.c_skip_space.c"
.intel_syntax noprefix
.text
.type skip_space, @function
skip_space:
.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 do_skip_space@PLT
test rax, rax
jne .L5
mov eax, 0
jmp .L3
.L5:
nop
.L4:
mov eax, 0
call do_skip_space@PLT
test rax, rax
jne .L4
mov eax, 1
.L3:
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size skip_space, .-skip_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_lex.c_skip_space.c"
.option pic
.text
.align 1
.type skip_space, @function
skip_space:
addi sp,sp,-16
sd ra,8(sp)
sd s0,0(sp)
addi s0,sp,16
call do_skip_space@plt
mv a5,a0
bnez a5,.L5
li a5,0
j .L3
.L5:
nop
.L4:
call do_skip_space@plt
mv a5,a0
bnez a5,.L4
li a5,1
.L3:
mv a0,a5
ld ra,8(sp)
ld s0,0(sp)
addi sp,sp,16
jr ra
.size skip_space, .-skip_space
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_lex.c_skip_string.c"
.intel_syntax noprefix
.text
.globl EOF
.bss
.align 4
.type EOF, @object
.size EOF, 4
EOF:
.zero 4
.text
.type skip_string, @function
skip_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, 16
mov eax, 0
call readc@PLT
mov DWORD PTR -4[rbp], eax
jmp .L2
.L5:
cmp DWORD PTR -4[rbp], 92
jne .L3
mov eax, 0
call readc@PLT
.L3:
mov eax, 0
call readc@PLT
mov DWORD PTR -4[rbp], eax
.L2:
mov eax, DWORD PTR EOF[rip]
cmp DWORD PTR -4[rbp], eax
je .L6
cmp DWORD PTR -4[rbp], 34
jne .L5
.L6:
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size skip_string, .-skip_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_lex.c_skip_string.c"
.option pic
.text
.comm EOF,4,4
.align 1
.type skip_string, @function
skip_string:
addi sp,sp,-32
sd ra,24(sp)
sd s0,16(sp)
addi s0,sp,32
call readc@plt
mv a5,a0
sw a5,-20(s0)
j .L2
.L5:
lw a5,-20(s0)
sext.w a4,a5
li a5,92
bne a4,a5,.L3
call readc@plt
.L3:
call readc@plt
mv a5,a0
sw a5,-20(s0)
.L2:
la a5,EOF
lw a4,0(a5)
lw a5,-20(s0)
sext.w a5,a5
beq a5,a4,.L6
lw a5,-20(s0)
sext.w a4,a5
li a5,34
bne a4,a5,.L5
.L6:
nop
ld ra,24(sp)
ld s0,16(sp)
addi sp,sp,32
jr ra
.size skip_string, .-skip_string
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_lex.c_token_buffer_stash.c"
.intel_syntax noprefix
.text
.globl buffers
.bss
.align 4
.type buffers, @object
.size buffers, 4
buffers:
.zero 4
.text
.globl token_buffer_stash
.type token_buffer_stash, @function
token_buffer_stash:
.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 buffers[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 token_buffer_stash, .-token_buffer_stash
.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_lex.c_token_buffer_stash.c"
.option pic
.text
.comm buffers,4,4
.align 1
.globl token_buffer_stash
.type token_buffer_stash, @function
token_buffer_stash:
addi sp,sp,-32
sd ra,24(sp)
sd s0,16(sp)
addi s0,sp,32
sd a0,-24(s0)
la a5,buffers
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 token_buffer_stash, .-token_buffer_stash
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_lex.c_token_buffer_unstash.c"
.intel_syntax noprefix
.text
.globl buffers
.bss
.align 4
.type buffers, @object
.size buffers, 4
buffers:
.zero 4
.text
.globl token_buffer_unstash
.type token_buffer_unstash, @function
token_buffer_unstash:
.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 buffers[rip]
mov edi, eax
call vec_pop@PLT
nop
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size token_buffer_unstash, .-token_buffer_unstash
.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_lex.c_token_buffer_unstash.c"
.option pic
.text
.comm buffers,4,4
.align 1
.globl token_buffer_unstash
.type token_buffer_unstash, @function
token_buffer_unstash:
addi sp,sp,-16
sd ra,8(sp)
sd s0,0(sp)
addi s0,sp,16
la a5,buffers
lw a5,0(a5)
mv a0,a5
call vec_pop@plt
nop
ld ra,8(sp)
ld s0,0(sp)
addi sp,sp,16
jr ra
.size token_buffer_unstash, .-token_buffer_unstash
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_lex.c_unget_token.c"
.intel_syntax noprefix
.text
.globl TEOF
.bss
.align 8
.type TEOF, @object
.size TEOF, 8
TEOF:
.zero 8
.globl buffers
.align 4
.type buffers, @object
.size buffers, 4
buffers:
.zero 4
.text
.globl unget_token
.type unget_token, @function
unget_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 rax, QWORD PTR -24[rbp]
mov rdx, QWORD PTR [rax]
mov rax, QWORD PTR TEOF[rip]
cmp rdx, rax
je .L4
mov eax, DWORD PTR buffers[rip]
mov edi, eax
call vec_tail@PLT
mov QWORD PTR -8[rbp], rax
mov rdx, QWORD PTR -24[rbp]
mov rax, QWORD PTR -8[rbp]
mov rsi, rdx
mov rdi, rax
call vec_push@PLT
jmp .L1
.L4:
nop
.L1:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size unget_token, .-unget_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_lex.c_unget_token.c"
.option pic
.text
.comm TEOF,8,8
.comm buffers,4,4
.align 1
.globl unget_token
.type unget_token, @function
unget_token:
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,TEOF
ld a5,0(a5)
beq a4,a5,.L4
la a5,buffers
lw a5,0(a5)
mv a0,a5
call vec_tail@plt
sd a0,-24(s0)
ld a1,-40(s0)
ld a0,-24(s0)
call vec_push@plt
j .L1
.L4:
nop
.L1:
ld ra,40(sp)
ld s0,32(sp)
addi sp,sp,48
jr ra
.size unget_token, .-unget_token
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_main.c_base.c"
.intel_syntax noprefix
.text
.type base, @function
base:
.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 rdi, rax
call strdup@PLT
mov edi, eax
call basename@PLT
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size base, .-base
.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_main.c_base.c"
.option pic
.text
.align 1
.type base, @function
base:
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 strdup@plt
mv a5,a0
mv a0,a5
call basename@plt
mv a5,a0
mv a0,a5
ld ra,24(sp)
ld s0,16(sp)
addi sp,sp,32
jr ra
.size base, .-base
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_main.c_delete_temp_files.c"
.intel_syntax noprefix
.text
.globl tmpfiles
.bss
.align 4
.type tmpfiles, @object
.size tmpfiles, 4
tmpfiles:
.zero 4
.text
.type delete_temp_files, @function
delete_temp_files:
.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], 0
jmp .L2
.L3:
mov eax, DWORD PTR tmpfiles[rip]
mov edx, DWORD PTR -4[rbp]
mov esi, edx
mov edi, eax
call vec_get@PLT
mov edi, eax
call unlink@PLT
add DWORD PTR -4[rbp], 1
.L2:
mov eax, DWORD PTR tmpfiles[rip]
mov edi, eax
call vec_len@PLT
cmp DWORD PTR -4[rbp], eax
jl .L3
nop
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size delete_temp_files, .-delete_temp_files
.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_main.c_delete_temp_files.c"
.option pic
.text
.comm tmpfiles,4,4
.align 1
.type delete_temp_files, @function
delete_temp_files:
addi sp,sp,-32
sd ra,24(sp)
sd s0,16(sp)
addi s0,sp,32
sw zero,-20(s0)
j .L2
.L3:
la a5,tmpfiles
lw a5,0(a5)
lw a4,-20(s0)
mv a1,a4
mv a0,a5
call vec_get@plt
mv a5,a0
mv a0,a5
call unlink@plt
lw a5,-20(s0)
addiw a5,a5,1
sw a5,-20(s0)
.L2:
la a5,tmpfiles
lw a5,0(a5)
mv a0,a5
call vec_len@plt
mv a5,a0
mv a4,a5
lw a5,-20(s0)
sext.w a5,a5
blt a5,a4,.L3
nop
nop
ld ra,24(sp)
ld s0,16(sp)
addi sp,sp,32
jr ra
.size delete_temp_files, .-delete_temp_files
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_main.c_get_base_file.c"
.intel_syntax noprefix
.text
.globl infile
.bss
.align 8
.type infile, @object
.size infile, 8
infile:
.zero 8
.text
.globl get_base_file
.type get_base_file, @function
get_base_file:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov rax, QWORD PTR infile[rip]
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size get_base_file, .-get_base_file
.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_main.c_get_base_file.c"
.option pic
.text
.comm infile,8,8
.align 1
.globl get_base_file
.type get_base_file, @function
get_base_file:
addi sp,sp,-16
sd s0,8(sp)
addi s0,sp,16
la a5,infile
ld a5,0(a5)
mv a0,a5
ld s0,8(sp)
addi sp,sp,16
jr ra
.size get_base_file, .-get_base_file
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_main.c_main.c"
.intel_syntax noprefix
.text
.globl asmfile
.bss
.align 4
.type asmfile, @object
.size asmfile, 4
asmfile:
.zero 4
.globl cppdefs
.align 4
.type cppdefs, @object
.size cppdefs, 4
cppdefs:
.zero 4
.globl cpponly
.align 8
.type cpponly, @object
.size cpponly, 8
cpponly:
.zero 8
.globl delete_temp_files
.align 4
.type delete_temp_files, @object
.size delete_temp_files, 4
delete_temp_files:
.zero 4
.globl dumpasm
.align 4
.type dumpasm, @object
.size dumpasm, 4
dumpasm:
.zero 4
.globl dumpast
.align 8
.type dumpast, @object
.size dumpast, 8
dumpast:
.zero 8
.globl infile
.align 4
.type infile, @object
.size infile, 4
infile:
.zero 4
.globl outfile
.align 8
.type outfile, @object
.size outfile, 8
outfile:
.zero 8
.globl stdout
.align 4
.type stdout, @object
.size stdout, 4
stdout:
.zero 4
.section .rodata
.LC0:
.string "atexit"
.LC1:
.string "%s"
.LC2:
.string "fork"
.LC3:
.string "-c"
.LC4:
.string "-o"
.LC5:
.string "as"
.LC6:
.string "execl failed"
.LC7:
.string "as failed"
.text
.globl main
.type main, @function
main:
.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 DWORD PTR -52[rbp], edi
mov QWORD PTR -64[rbp], rsi
mov rax, QWORD PTR fs:40
mov QWORD PTR -8[rbp], rax
xor eax, eax
mov eax, DWORD PTR stdout[rip]
mov esi, 0
mov edi, eax
call setbuf@PLT
mov eax, DWORD PTR delete_temp_files[rip]
mov edi, eax
call atexit@PLT
test rax, rax
je .L2
lea rdi, .LC0[rip]
call perror@PLT
.L2:
mov rdx, QWORD PTR -64[rbp]
mov eax, DWORD PTR -52[rbp]
mov rsi, rdx
mov edi, eax
call parseopt@PLT
mov eax, DWORD PTR infile[rip]
mov edi, eax
call lex_init@PLT
mov eax, 0
call cpp_init@PLT
mov eax, 0
call parse_init@PLT
mov eax, 0
call open_asmfile@PLT
mov edi, eax
call set_output_file@PLT
mov eax, DWORD PTR cppdefs[rip]
mov edi, eax
call buf_len@PLT
test rax, rax
jle .L3
mov eax, DWORD PTR cppdefs[rip]
mov edi, eax
call buf_body@PLT
mov edi, eax
call read_from_string@PLT
.L3:
mov rax, QWORD PTR cpponly[rip]
test rax, rax
je .L4
mov eax, 0
call preprocess@PLT
.L4:
mov eax, 0
call read_toplevels@PLT
mov QWORD PTR -32[rbp], rax
mov DWORD PTR -36[rbp], 0
jmp .L5
.L8:
mov edx, DWORD PTR -36[rbp]
mov rax, QWORD PTR -32[rbp]
mov esi, edx
mov rdi, rax
call vec_get@PLT
mov QWORD PTR -16[rbp], rax
mov rax, QWORD PTR dumpast[rip]
test rax, rax
je .L6
mov rax, QWORD PTR -16[rbp]
mov rdi, rax
call node2s@PLT
mov rsi, rax
lea rdi, .LC1[rip]
call printf@PLT
jmp .L7
.L6:
mov rax, QWORD PTR -16[rbp]
mov rdi, rax
call emit_toplevel@PLT
.L7:
add DWORD PTR -36[rbp], 1
.L5:
mov rax, QWORD PTR -32[rbp]
mov rdi, rax
call vec_len@PLT
cmp DWORD PTR -36[rbp], eax
jl .L8
mov eax, 0
call close_output_file@PLT
mov rax, QWORD PTR dumpast[rip]
test rax, rax
jne .L9
mov eax, DWORD PTR dumpasm[rip]
test eax, eax
jne .L9
mov rax, QWORD PTR outfile[rip]
test rax, rax
jne .L10
mov eax, DWORD PTR infile[rip]
mov edi, eax
call base@PLT
mov esi, 111
mov edi, eax
call replace_suffix@PLT
mov QWORD PTR outfile[rip], rax
.L10:
mov eax, 0
call fork@PLT
mov QWORD PTR -24[rbp], rax
cmp QWORD PTR -24[rbp], 0
jns .L11
lea rdi, .LC2[rip]
call perror@PLT
.L11:
cmp QWORD PTR -24[rbp], 0
jne .L12
mov edx, DWORD PTR asmfile[rip]
mov rax, QWORD PTR outfile[rip]
sub rsp, 8
push 0
mov r9d, edx
lea r8, .LC3[rip]
mov rcx, rax
lea rdx, .LC4[rip]
lea rsi, .LC5[rip]
lea rdi, .LC5[rip]
call execlp@PLT
add rsp, 16
lea rdi, .LC6[rip]
call perror@PLT
.L12:
lea rcx, -40[rbp]
mov rax, QWORD PTR -24[rbp]
mov edx, 0
mov rsi, rcx
mov rdi, rax
call waitpid@PLT
mov eax, DWORD PTR -40[rbp]
test eax, eax
jns .L9
lea rdi, .LC7[rip]
call error@PLT
.L9:
mov eax, 0
mov rcx, QWORD PTR -8[rbp]
sub rcx, QWORD PTR fs:40
je .L15
call __stack_chk_fail@PLT
.L15:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size main, .-main
.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_main.c_main.c"
.option pic
.text
.comm asmfile,4,4
.comm cppdefs,4,4
.comm cpponly,8,8
.comm delete_temp_files,4,4
.comm dumpasm,4,4
.comm dumpast,8,8
.comm infile,4,4
.comm outfile,8,8
.comm stdout,4,4
.section .rodata
.align 3
.LC0:
.string "atexit"
.align 3
.LC1:
.string "%s"
.align 3
.LC2:
.string "fork"
.align 3
.LC3:
.string "-c"
.align 3
.LC4:
.string "-o"
.align 3
.LC5:
.string "as"
.align 3
.LC6:
.string "execl failed"
.align 3
.LC7:
.string "as failed"
.text
.align 1
.globl main
.type main, @function
main:
addi sp,sp,-80
sd ra,72(sp)
sd s0,64(sp)
addi s0,sp,80
mv a5,a0
sd a1,-80(s0)
sw a5,-68(s0)
la a5,__stack_chk_guard
ld a5,0(a5)
sd a5,-24(s0)
la a5,stdout
lw a5,0(a5)
li a1,0
mv a0,a5
call setbuf@plt
la a5,delete_temp_files
lw a5,0(a5)
mv a0,a5
call atexit@plt
mv a5,a0
beqz a5,.L2
lla a0,.LC0
call perror@plt
.L2:
lw a5,-68(s0)
ld a1,-80(s0)
mv a0,a5
call parseopt@plt
la a5,infile
lw a5,0(a5)
mv a0,a5
call lex_init@plt
call cpp_init@plt
call parse_init@plt
call open_asmfile@plt
mv a5,a0
mv a0,a5
call set_output_file@plt
la a5,cppdefs
lw a5,0(a5)
mv a0,a5
call buf_len@plt
mv a5,a0
blez a5,.L3
la a5,cppdefs
lw a5,0(a5)
mv a0,a5
call buf_body@plt
mv a5,a0
mv a0,a5
call read_from_string@plt
.L3:
la a5,cpponly
ld a5,0(a5)
beqz a5,.L4
call preprocess@plt
.L4:
call read_toplevels@plt
sd a0,-48(s0)
sw zero,-52(s0)
j .L5
.L8:
lw a5,-52(s0)
mv a1,a5
ld a0,-48(s0)
call vec_get@plt
sd a0,-32(s0)
la a5,dumpast
ld a5,0(a5)
beqz a5,.L6
ld a0,-32(s0)
call node2s@plt
mv a5,a0
mv a1,a5
lla a0,.LC1
call printf@plt
j .L7
.L6:
ld a0,-32(s0)
call emit_toplevel@plt
.L7:
lw a5,-52(s0)
addiw a5,a5,1
sw a5,-52(s0)
.L5:
ld a0,-48(s0)
call vec_len@plt
mv a5,a0
mv a4,a5
lw a5,-52(s0)
sext.w a5,a5
blt a5,a4,.L8
call close_output_file@plt
la a5,dumpast
ld a5,0(a5)
bnez a5,.L9
la a5,dumpasm
lw a5,0(a5)
bnez a5,.L9
la a5,outfile
ld a5,0(a5)
bnez a5,.L10
la a5,infile
lw a5,0(a5)
mv a0,a5
call base@plt
mv a5,a0
li a1,111
mv a0,a5
call replace_suffix@plt
mv a4,a0
la a5,outfile
sd a4,0(a5)
.L10:
call fork@plt
sd a0,-40(s0)
ld a5,-40(s0)
bgez a5,.L11
lla a0,.LC2
call perror@plt
.L11:
ld a5,-40(s0)
bnez a5,.L12
la a5,outfile
ld a3,0(a5)
la a5,asmfile
lw a5,0(a5)
li a6,0
lla a4,.LC3
lla a2,.LC4
lla a1,.LC5
lla a0,.LC5
call execlp@plt
lla a0,.LC6
call perror@plt
.L12:
addi a5,s0,-56
li a2,0
mv a1,a5
ld a0,-40(s0)
call waitpid@plt
lw a5,-56(s0)
bgez a5,.L9
lla a0,.LC7
call error@plt
.L9:
li a5,0
mv a3,a5
la a5,__stack_chk_guard
ld a4,-24(s0)
ld a5,0(a5)
beq a4,a5,.L15
call __stack_chk_fail@plt
.L15:
mv a0,a3
ld ra,72(sp)
ld s0,64(sp)
addi sp,sp,80
jr ra
.size main, .-main
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_main.c_open_asmfile.c"
.intel_syntax noprefix
.text
.globl asmfile
.bss
.align 8
.type asmfile, @object
.size asmfile, 8
asmfile:
.zero 8
.globl dumpasm
.align 8
.type dumpasm, @object
.size dumpasm, 8
dumpasm:
.zero 8
.globl infile
.align 4
.type infile, @object
.size infile, 4
infile:
.zero 4
.globl outfile
.align 8
.type outfile, @object
.size outfile, 8
outfile:
.zero 8
.globl stdout
.align 8
.type stdout, @object
.size stdout, 8
stdout:
.zero 8
.globl tmpfiles
.align 4
.type tmpfiles, @object
.size tmpfiles, 4
tmpfiles:
.zero 4
.section .rodata
.LC0:
.string "/tmp/8ccXXXXXX.s"
.LC1:
.string "mkstemps"
.LC2:
.string "-"
.LC3:
.string "w"
.LC4:
.string "fopen"
.text
.type open_asmfile, @function
open_asmfile:
.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 dumpasm[rip]
test rax, rax
je .L2
mov rax, QWORD PTR outfile[rip]
test rax, rax
jne .L3
mov eax, DWORD PTR infile[rip]
mov edi, eax
call base@PLT
mov esi, 115
mov edi, eax
call replace_suffix@PLT
jmp .L4
.L3:
mov rax, QWORD PTR outfile[rip]
.L4:
mov QWORD PTR asmfile[rip], rax
jmp .L5
.L2:
lea rdi, .LC0[rip]
call format@PLT
mov QWORD PTR asmfile[rip], rax
mov rax, QWORD PTR asmfile[rip]
mov esi, 2
mov rdi, rax
call mkstemps@PLT
test eax, eax
jne .L6
lea rdi, .LC1[rip]
call perror@PLT
.L6:
mov rdx, QWORD PTR asmfile[rip]
mov eax, DWORD PTR tmpfiles[rip]
mov rsi, rdx
mov edi, eax
call vec_push@PLT
.L5:
mov rax, QWORD PTR asmfile[rip]
lea rsi, .LC2[rip]
mov rdi, rax
call strcmp@PLT
test eax, eax
jne .L7
mov rax, QWORD PTR stdout[rip]
jmp .L8
.L7:
mov rax, QWORD PTR asmfile[rip]
lea rsi, .LC3[rip]
mov rdi, rax
call fopen@PLT
mov QWORD PTR -8[rbp], rax
cmp QWORD PTR -8[rbp], 0
jne .L9
lea rdi, .LC4[rip]
call perror@PLT
.L9:
mov rax, QWORD PTR -8[rbp]
.L8:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size open_asmfile, .-open_asmfile
.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_main.c_open_asmfile.c"
.option pic
.text
.comm asmfile,8,8
.comm dumpasm,8,8
.comm infile,4,4
.comm outfile,8,8
.comm stdout,8,8
.comm tmpfiles,4,4
.section .rodata
.align 3
.LC0:
.string "/tmp/8ccXXXXXX.s"
.align 3
.LC1:
.string "mkstemps"
.align 3
.LC2:
.string "-"
.align 3
.LC3:
.string "w"
.align 3
.LC4:
.string "fopen"
.text
.align 1
.type open_asmfile, @function
open_asmfile:
addi sp,sp,-32
sd ra,24(sp)
sd s0,16(sp)
addi s0,sp,32
la a5,dumpasm
ld a5,0(a5)
beqz a5,.L2
la a5,outfile
ld a5,0(a5)
bnez a5,.L3
la a5,infile
lw a5,0(a5)
mv a0,a5
call base@plt
mv a5,a0
li a1,115
mv a0,a5
call replace_suffix@plt
mv a5,a0
j .L4
.L3:
la a5,outfile
ld a5,0(a5)
.L4:
la a4,asmfile
sd a5,0(a4)
j .L5
.L2:
lla a0,.LC0
call format@plt
mv a4,a0
la a5,asmfile
sd a4,0(a5)
la a5,asmfile
ld a5,0(a5)
li a1,2
mv a0,a5
call mkstemps@plt
mv a5,a0
bnez a5,.L6
lla a0,.LC1
call perror@plt
.L6:
la a5,tmpfiles
lw a4,0(a5)
la a5,asmfile
ld a5,0(a5)
mv a1,a5
mv a0,a4
call vec_push@plt
.L5:
la a5,asmfile
ld a5,0(a5)
lla a1,.LC2
mv a0,a5
call strcmp@plt
mv a5,a0
bnez a5,.L7
la a5,stdout
ld a5,0(a5)
j .L8
.L7:
la a5,asmfile
ld a5,0(a5)
lla a1,.LC3
mv a0,a5
call fopen@plt
sd a0,-24(s0)
ld a5,-24(s0)
bnez a5,.L9
lla a0,.LC4
call perror@plt
.L9:
ld a5,-24(s0)
.L8:
mv a0,a5
ld ra,24(sp)
ld s0,16(sp)
addi sp,sp,32
jr ra
.size open_asmfile, .-open_asmfile
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_main.c_parse_f_arg.c"
.intel_syntax noprefix
.text
.globl dumpast
.bss
.align 4
.type dumpast, @object
.size dumpast, 4
dumpast:
.zero 4
.globl dumpsource
.align 4
.type dumpsource, @object
.size dumpsource, 4
dumpsource:
.zero 4
.globl dumpstack
.align 4
.type dumpstack, @object
.size dumpstack, 4
dumpstack:
.zero 4
.section .rodata
.LC0:
.string "dump-ast"
.LC1:
.string "dump-stack"
.LC2:
.string "no-dump-source"
.text
.type parse_f_arg, @function
parse_f_arg:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov QWORD PTR -8[rbp], rdi
mov rax, QWORD PTR -8[rbp]
lea rsi, .LC0[rip]
mov rdi, rax
call strcmp@PLT
test eax, eax
jne .L2
mov DWORD PTR dumpast[rip], 1
jmp .L6
.L2:
mov rax, QWORD PTR -8[rbp]
lea rsi, .LC1[rip]
mov rdi, rax
call strcmp@PLT
test eax, eax
jne .L4
mov DWORD PTR dumpstack[rip], 1
jmp .L6
.L4:
mov rax, QWORD PTR -8[rbp]
lea rsi, .LC2[rip]
mov rdi, rax
call strcmp@PLT
test eax, eax
jne .L5
mov DWORD PTR dumpsource[rip], 0
jmp .L6
.L5:
mov edi, 1
call usage@PLT
.L6:
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size parse_f_arg, .-parse_f_arg
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_main.c_parse_f_arg.c"
.option pic
.text
.comm dumpast,4,4
.comm dumpsource,4,4
.comm dumpstack,4,4
.section .rodata
.align 3
.LC0:
.string "dump-ast"
.align 3
.LC1:
.string "dump-stack"
.align 3
.LC2:
.string "no-dump-source"
.text
.align 1
.type parse_f_arg, @function
parse_f_arg:
addi sp,sp,-32
sd ra,24(sp)
sd s0,16(sp)
addi s0,sp,32
sd a0,-24(s0)
lla a1,.LC0
ld a0,-24(s0)
call strcmp@plt
mv a5,a0
bnez a5,.L2
la a5,dumpast
li a4,1
sw a4,0(a5)
j .L6
.L2:
lla a1,.LC1
ld a0,-24(s0)
call strcmp@plt
mv a5,a0
bnez a5,.L4
la a5,dumpstack
li a4,1
sw a4,0(a5)
j .L6
.L4:
lla a1,.LC2
ld a0,-24(s0)
call strcmp@plt
mv a5,a0
bnez a5,.L5
la a5,dumpsource
sw zero,0(a5)
j .L6
.L5:
li a0,1
call usage@plt
.L6:
nop
ld ra,24(sp)
ld s0,16(sp)
addi sp,sp,32
jr ra
.size parse_f_arg, .-parse_f_arg
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_main.c_parse_m_arg.c"
.intel_syntax noprefix
.text
.section .rodata
.LC0:
.string "64"
.align 8
.LC1:
.string "Only 64 is allowed for -m, but got %s"
.text
.type parse_m_arg, @function
parse_m_arg:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov QWORD PTR -8[rbp], rdi
mov rax, QWORD PTR -8[rbp]
lea rsi, .LC0[rip]
mov rdi, rax
call strcmp@PLT
test rax, rax
je .L3
mov rax, QWORD PTR -8[rbp]
mov rsi, rax
lea rdi, .LC1[rip]
call error@PLT
.L3:
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size parse_m_arg, .-parse_m_arg
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_main.c_parse_m_arg.c"
.option pic
.text
.section .rodata
.align 3
.LC0:
.string "64"
.align 3
.LC1:
.string "Only 64 is allowed for -m, but got %s"
.text
.align 1
.type parse_m_arg, @function
parse_m_arg:
addi sp,sp,-32
sd ra,24(sp)
sd s0,16(sp)
addi s0,sp,32
sd a0,-24(s0)
lla a1,.LC0
ld a0,-24(s0)
call strcmp@plt
mv a5,a0
beqz a5,.L3
ld a1,-24(s0)
lla a0,.LC1
call error@plt
.L3:
nop
ld ra,24(sp)
ld s0,16(sp)
addi sp,sp,32
jr ra
.size parse_m_arg, .-parse_m_arg
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_main.c_parse_warnings_arg.c"
.intel_syntax noprefix
.text
.globl warning_is_error
.bss
.align 4
.type warning_is_error, @object
.size warning_is_error, 4
warning_is_error:
.zero 4
.section .rodata
.LC0:
.string "error"
.LC1:
.string "all"
.LC2:
.string "unknown -W option: %s"
.text
.type parse_warnings_arg, @function
parse_warnings_arg:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov QWORD PTR -8[rbp], rdi
mov rax, QWORD PTR -8[rbp]
lea rsi, .LC0[rip]
mov rdi, rax
call strcmp@PLT
test rax, rax
jne .L2
mov DWORD PTR warning_is_error[rip], 1
jmp .L4
.L2:
mov rax, QWORD PTR -8[rbp]
lea rsi, .LC1[rip]
mov rdi, rax
call strcmp@PLT
test rax, rax
je .L4
mov rax, QWORD PTR -8[rbp]
mov rsi, rax
lea rdi, .LC2[rip]
call error@PLT
.L4:
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size parse_warnings_arg, .-parse_warnings_arg
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_main.c_parse_warnings_arg.c"
.option pic
.text
.comm warning_is_error,4,4
.section .rodata
.align 3
.LC0:
.string "error"
.align 3
.LC1:
.string "all"
.align 3
.LC2:
.string "unknown -W option: %s"
.text
.align 1
.type parse_warnings_arg, @function
parse_warnings_arg:
addi sp,sp,-32
sd ra,24(sp)
sd s0,16(sp)
addi s0,sp,32
sd a0,-24(s0)
lla a1,.LC0
ld a0,-24(s0)
call strcmp@plt
mv a5,a0
bnez a5,.L2
la a5,warning_is_error
li a4,1
sw a4,0(a5)
j .L4
.L2:
lla a1,.LC1
ld a0,-24(s0)
call strcmp@plt
mv a5,a0
beqz a5,.L4
ld a1,-24(s0)
lla a0,.LC2
call error@plt
.L4:
nop
ld ra,24(sp)
ld s0,16(sp)
addi sp,sp,32
jr ra
.size parse_warnings_arg, .-parse_warnings_arg
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_main.c_parseopt.c"
.intel_syntax noprefix
.text
.globl cppdefs
.bss
.align 4
.type cppdefs, @object
.size cppdefs, 4
cppdefs:
.zero 4
.globl cpponly
.align 4
.type cpponly, @object
.size cpponly, 4
cpponly:
.zero 4
.globl dontlink
.align 4
.type dontlink, @object
.size dontlink, 4
dontlink:
.zero 4
.globl dumpasm
.align 4
.type dumpasm, @object
.size dumpasm, 4
dumpasm:
.zero 4
.globl dumpast
.align 4
.type dumpast, @object
.size dumpast, 4
dumpast:
.zero 4
.globl enable_warning
.align 4
.type enable_warning, @object
.size enable_warning, 4
enable_warning:
.zero 4
.globl infile
.align 8
.type infile, @object
.size infile, 8
infile:
.zero 8
.globl optarg
.align 4
.type optarg, @object
.size optarg, 4
optarg:
.zero 4
.globl optind
.align 4
.type optind, @object
.size optind, 4
optind:
.zero 4
.globl outfile
.align 4
.type outfile, @object
.size outfile, 4
outfile:
.zero 4
.section .rodata
.LC0:
.string "I:ED:O:SU:W:acd:f:gm:o:hw"
.LC1:
.string "#define %s\n"
.LC2:
.string "#undef %s\n"
.align 8
.LC3:
.string "One of -a, -c, -E or -S must be specified"
.text
.type parseopt, @function
parseopt:
.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 QWORD PTR -32[rbp], rsi
mov eax, 0
call make_buffer@PLT
mov DWORD PTR cppdefs[rip], eax
.L22:
mov rcx, QWORD PTR -32[rbp]
mov eax, DWORD PTR -20[rbp]
lea rdx, .LC0[rip]
mov rsi, rcx
mov edi, eax
call getopt@PLT
mov DWORD PTR -12[rbp], eax
cmp DWORD PTR -12[rbp], -1
je .L26
mov eax, DWORD PTR -12[rbp]
sub eax, 68
cmp eax, 51
ja .L4
mov eax, eax
lea rdx, 0[0+rax*4]
lea rax, .L6[rip]
mov eax, DWORD PTR [rdx+rax]
cdqe
lea rdx, .L6[rip]
add rax, rdx
notrack jmp rax
.section .rodata
.align 4
.align 4
.L6:
.long .L19-.L6
.long .L18-.L6
.long .L4-.L6
.long .L4-.L6
.long .L4-.L6
.long .L17-.L6
.long .L4-.L6
.long .L4-.L6
.long .L4-.L6
.long .L4-.L6
.long .L4-.L6
.long .L27-.L6
.long .L4-.L6
.long .L4-.L6
.long .L4-.L6
.long .L15-.L6
.long .L4-.L6
.long .L14-.L6
.long .L4-.L6
.long .L13-.L6
.long .L4-.L6
.long .L4-.L6
.long .L4-.L6
.long .L4-.L6
.long .L4-.L6
.long .L4-.L6
.long .L4-.L6
.long .L4-.L6
.long .L4-.L6
.long .L4-.L6
.long .L4-.L6
.long .L12-.L6
.long .L4-.L6
.long .L4-.L6
.long .L11-.L6
.long .L27-.L6
.long .L9-.L6
.long .L4-.L6
.long .L4-.L6
.long .L4-.L6
.long .L4-.L6
.long .L8-.L6
.long .L4-.L6
.long .L7-.L6
.long .L4-.L6
.long .L4-.L6
.long .L4-.L6
.long .L4-.L6
.long .L4-.L6
.long .L4-.L6
.long .L4-.L6
.long .L5-.L6
.text
.L17:
mov eax, DWORD PTR optarg[rip]
mov edi, eax
call add_include_path@PLT
jmp .L20
.L18:
mov DWORD PTR cpponly[rip], 1
jmp .L20
.L19:
mov eax, DWORD PTR optarg[rip]
mov esi, 61
mov edi, eax
call strchr@PLT
mov QWORD PTR -8[rbp], rax
cmp QWORD PTR -8[rbp], 0
je .L21
mov rax, QWORD PTR -8[rbp]
mov BYTE PTR [rax], 32
.L21:
mov edx, DWORD PTR optarg[rip]
mov eax, DWORD PTR cppdefs[rip]
lea rsi, .LC1[rip]
mov edi, eax
call buf_printf@PLT
jmp .L20
.L15:
mov DWORD PTR dumpasm[rip], 1
jmp .L20
.L14:
mov edx, DWORD PTR optarg[rip]
mov eax, DWORD PTR cppdefs[rip]
lea rsi, .LC2[rip]
mov edi, eax
call buf_printf@PLT
jmp .L20
.L13:
mov eax, DWORD PTR optarg[rip]
mov edi, eax
call parse_warnings_arg@PLT
jmp .L20
.L12:
mov DWORD PTR dontlink[rip], 1
jmp .L20
.L11:
mov eax, DWORD PTR optarg[rip]
mov edi, eax
call parse_f_arg@PLT
jmp .L20
.L8:
mov eax, DWORD PTR optarg[rip]
mov edi, eax
call parse_m_arg@PLT
jmp .L20
.L7:
mov eax, DWORD PTR optarg[rip]
mov DWORD PTR outfile[rip], eax
jmp .L20
.L5:
mov DWORD PTR enable_warning[rip], 0
jmp .L20
.L9:
mov edi, 0
call usage@PLT
.L4:
mov edi, 1
call usage@PLT
jmp .L22
.L27:
nop
.L20:
jmp .L22
.L26:
nop
mov eax, DWORD PTR -20[rbp]
lea edx, -1[rax]
mov eax, DWORD PTR optind[rip]
cmp edx, eax
je .L23
mov edi, 1
call usage@PLT
.L23:
mov eax, DWORD PTR dumpast[rip]
test eax, eax
jne .L24
mov eax, DWORD PTR cpponly[rip]
test eax, eax
jne .L24
mov eax, DWORD PTR dumpasm[rip]
test eax, eax
jne .L24
mov eax, DWORD PTR dontlink[rip]
test eax, eax
jne .L24
lea rdi, .LC3[rip]
call error@PLT
.L24:
mov eax, DWORD PTR optind[rip]
cdqe
lea rdx, 0[0+rax*8]
mov rax, QWORD PTR -32[rbp]
add rax, rdx
mov rax, QWORD PTR [rax]
mov QWORD PTR infile[rip], rax
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size parseopt, .-parseopt
.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_main.c_parseopt.c"
.option pic
.text
.comm cppdefs,4,4
.comm cpponly,4,4
.comm dontlink,4,4
.comm dumpasm,4,4
.comm dumpast,4,4
.comm enable_warning,4,4
.comm infile,8,8
.comm optarg,4,4
.comm optind,4,4
.comm outfile,4,4
.section .rodata
.align 3
.LC0:
.string "I:ED:O:SU:W:acd:f:gm:o:hw"
.align 3
.LC1:
.string "#define %s\n"
.align 3
.LC2:
.string "#undef %s\n"
.align 3
.LC3:
.string "One of -a, -c, -E or -S must be specified"
.text
.align 1
.type parseopt, @function
parseopt:
addi sp,sp,-48
sd ra,40(sp)
sd s0,32(sp)
addi s0,sp,48
mv a5,a0
sd a1,-48(s0)
sw a5,-36(s0)
call make_buffer@plt
mv a5,a0
mv a4,a5
la a5,cppdefs
sw a4,0(a5)
.L22:
lw a5,-36(s0)
lla a2,.LC0
ld a1,-48(s0)
mv a0,a5
call getopt@plt
mv a5,a0
sw a5,-28(s0)
lw a5,-28(s0)
sext.w a4,a5
li a5,-1
beq a4,a5,.L26
lw a5,-28(s0)
addiw a3,a5,-68
sext.w a4,a3
li a5,51
bgtu a4,a5,.L4
slli a5,a3,32
srli a5,a5,32
slli a4,a5,2
lla a5,.L6
add a5,a4,a5
lw a5,0(a5)
sext.w a4,a5
lla a5,.L6
add a5,a4,a5
jr a5
.section .rodata
.align 2
.align 2
.L6:
.word .L19-.L6
.word .L18-.L6
.word .L4-.L6
.word .L4-.L6
.word .L4-.L6
.word .L17-.L6
.word .L4-.L6
.word .L4-.L6
.word .L4-.L6
.word .L4-.L6
.word .L4-.L6
.word .L27-.L6
.word .L4-.L6
.word .L4-.L6
.word .L4-.L6
.word .L15-.L6
.word .L4-.L6
.word .L14-.L6
.word .L4-.L6
.word .L13-.L6
.word .L4-.L6
.word .L4-.L6
.word .L4-.L6
.word .L4-.L6
.word .L4-.L6
.word .L4-.L6
.word .L4-.L6
.word .L4-.L6
.word .L4-.L6
.word .L4-.L6
.word .L4-.L6
.word .L12-.L6
.word .L4-.L6
.word .L4-.L6
.word .L11-.L6
.word .L27-.L6
.word .L9-.L6
.word .L4-.L6
.word .L4-.L6
.word .L4-.L6
.word .L4-.L6
.word .L8-.L6
.word .L4-.L6
.word .L7-.L6
.word .L4-.L6
.word .L4-.L6
.word .L4-.L6
.word .L4-.L6
.word .L4-.L6
.word .L4-.L6
.word .L4-.L6
.word .L5-.L6
.text
.L17:
la a5,optarg
lw a5,0(a5)
mv a0,a5
call add_include_path@plt
j .L20
.L18:
la a5,cpponly
li a4,1
sw a4,0(a5)
j .L20
.L19:
la a5,optarg
lw a5,0(a5)
li a1,61
mv a0,a5
call strchr@plt
sd a0,-24(s0)
ld a5,-24(s0)
beqz a5,.L21
ld a5,-24(s0)
li a4,32
sb a4,0(a5)
.L21:
la a5,cppdefs
lw a4,0(a5)
la a5,optarg
lw a5,0(a5)
mv a2,a5
lla a1,.LC1
mv a0,a4
call buf_printf@plt
j .L20
.L15:
la a5,dumpasm
li a4,1
sw a4,0(a5)
j .L20
.L14:
la a5,cppdefs
lw a4,0(a5)
la a5,optarg
lw a5,0(a5)
mv a2,a5
lla a1,.LC2
mv a0,a4
call buf_printf@plt
j .L20
.L13:
la a5,optarg
lw a5,0(a5)
mv a0,a5
call parse_warnings_arg@plt
j .L20
.L12:
la a5,dontlink
li a4,1
sw a4,0(a5)
j .L20
.L11:
la a5,optarg
lw a5,0(a5)
mv a0,a5
call parse_f_arg@plt
j .L20
.L8:
la a5,optarg
lw a5,0(a5)
mv a0,a5
call parse_m_arg@plt
j .L20
.L7:
la a5,optarg
lw a4,0(a5)
la a5,outfile
sw a4,0(a5)
j .L20
.L5:
la a5,enable_warning
sw zero,0(a5)
j .L20
.L9:
li a0,0
call usage@plt
.L4:
li a0,1
call usage@plt
j .L22
.L27:
nop
.L20:
j .L22
.L26:
nop
lw a5,-36(s0)
addiw a5,a5,-1
sext.w a4,a5
la a5,optind
lw a5,0(a5)
beq a4,a5,.L23
li a0,1
call usage@plt
.L23:
la a5,dumpast
lw a5,0(a5)
bnez a5,.L24
la a5,cpponly
lw a5,0(a5)
bnez a5,.L24
la a5,dumpasm
lw a5,0(a5)
bnez a5,.L24
la a5,dontlink
lw a5,0(a5)
bnez a5,.L24
lla a0,.LC3
call error@plt
.L24:
la a5,optind
lw a5,0(a5)
slli a5,a5,3
ld a4,-48(s0)
add a5,a4,a5
ld a4,0(a5)
la a5,infile
sd a4,0(a5)
nop
ld ra,40(sp)
ld s0,32(sp)
addi sp,sp,48
jr ra
.size parseopt, .-parseopt
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_main.c_preprocess.c"
.intel_syntax noprefix
.text
.globl TEOF
.bss
.align 8
.type TEOF, @object
.size TEOF, 8
TEOF:
.zero 8
.section .rodata
.LC0:
.string "%s"
.text
.type preprocess, @function
preprocess:
.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
.L6:
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 TEOF[rip]
cmp rdx, rax
je .L8
mov rax, QWORD PTR -8[rbp]
mov rax, QWORD PTR 16[rax]
test rax, rax
je .L4
mov edi, 10
call putchar@PLT
.L4:
mov rax, QWORD PTR -8[rbp]
mov rax, QWORD PTR 8[rax]
test rax, rax
je .L5
mov edi, 32
call putchar@PLT
.L5:
mov rax, QWORD PTR -8[rbp]
mov rdi, rax
call tok2s@PLT
mov rsi, rax
lea rdi, .LC0[rip]
mov eax, 0
call printf@PLT
jmp .L6
.L8:
nop
mov edi, 10
call putchar@PLT
mov edi, 0
call exit@PLT
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size preprocess, .-preprocess
.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_main.c_preprocess.c"
.option pic
.text
.comm TEOF,8,8
.section .rodata
.align 3
.LC0:
.string "%s"
.text
.align 1
.type preprocess, @function
preprocess:
addi sp,sp,-32
sd ra,24(sp)
sd s0,16(sp)
addi s0,sp,32
.L6:
call read_token@plt
sd a0,-24(s0)
ld a5,-24(s0)
ld a4,0(a5)
la a5,TEOF
ld a5,0(a5)
beq a4,a5,.L8
ld a5,-24(s0)
ld a5,16(a5)
beqz a5,.L4
li a0,10
call putchar@plt
.L4:
ld a5,-24(s0)
ld a5,8(a5)
beqz a5,.L5
li a0,32
call putchar@plt
.L5:
ld a0,-24(s0)
call tok2s@plt
mv a5,a0
mv a1,a5
lla a0,.LC0
call printf@plt
j .L6
.L8:
nop
li a0,10
call putchar@plt
li a0,0
call exit@plt
nop
ld ra,24(sp)
ld s0,16(sp)
addi sp,sp,32
jr ra
.size preprocess, .-preprocess
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_main.c_replace_suffix.c"
.intel_syntax noprefix
.text
.section .rodata
.LC0:
.string "%s"
.LC1:
.string "filename suffix is not .c"
.text
.type replace_suffix, @function
replace_suffix:
.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
mov rax, QWORD PTR -24[rbp]
mov rsi, rax
lea rdi, .LC0[rip]
call format@PLT
mov QWORD PTR -16[rbp], rax
mov rax, QWORD PTR -16[rbp]
mov rdi, rax
call strlen@PLT
cdqe
lea rdx, -1[rax]
mov rax, QWORD PTR -16[rbp]
add rax, rdx
mov QWORD PTR -8[rbp], rax
mov rax, QWORD PTR -8[rbp]
movzx eax, BYTE PTR [rax]
cmp al, 99
je .L2
lea rdi, .LC1[rip]
call error@PLT
.L2:
mov rax, QWORD PTR -8[rbp]
movzx edx, BYTE PTR -28[rbp]
mov BYTE PTR [rax], dl
mov rax, QWORD PTR -16[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size replace_suffix, .-replace_suffix
.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_main.c_replace_suffix.c"
.option pic
.text
.section .rodata
.align 3
.LC0:
.string "%s"
.align 3
.LC1:
.string "filename suffix is not .c"
.text
.align 1
.type replace_suffix, @function
replace_suffix:
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)
ld a1,-40(s0)
lla a0,.LC0
call format@plt
sd a0,-32(s0)
ld a0,-32(s0)
call strlen@plt
mv a5,a0
addi a5,a5,-1
ld a4,-32(s0)
add a5,a4,a5
sd a5,-24(s0)
ld a5,-24(s0)
lbu a5,0(a5)
mv a4,a5
li a5,99
beq a4,a5,.L2
lla a0,.LC1
call error@plt
.L2:
ld a5,-24(s0)
lbu a4,-41(s0)
sb a4,0(a5)
ld a5,-32(s0)
mv a0,a5
ld ra,40(sp)
ld s0,32(sp)
addi sp,sp,48
jr ra
.size replace_suffix, .-replace_suffix
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_main.c_usage.c"
.intel_syntax noprefix
.text
.globl stderr
.bss
.align 4
.type stderr, @object
.size stderr, 4
stderr:
.zero 4
.globl stdout
.align 4
.type stdout, @object
.size stdout, 4
stdout:
.zero 4
.section .rodata
.align 8
.LC0:
.ascii "Usage: 8cc [ -E ][ -a ] [ -h ] <file>\n\n\n -I<path> "
.ascii " add to include path\n -E print preprocess"
.ascii "ed source code\n -D name Predefine name as a macr"
.ascii "o\n -D name=def\n -S Stop before assembly ("
.ascii "default)\n -c Do not run linker (default)\n "
.ascii " -U name Undefine name\n -fdump-ast print "
.ascii "AST\n -fdump-stack Print stacktrace\n -fno-dump-sourc"
.ascii "e Do not emit source code as assembly comment\n -o filenam"
.ascii "e Output to the specified file\n -g Do"
.ascii " nothing at this moment\n -Wall Enable all warn"
.ascii "ings\n -Werror "
.string " Make all warnings into errors\n -O<number> Does nothing at this moment\n -m64 Output 64-bit code (default)\n -w Disable all warnings\n -h print this help\n\nOne of -a, -c, -E or -S must be specified.\n\n"
.text
.type usage, @function
usage:
.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
cmp DWORD PTR -4[rbp], 0
je .L2
mov eax, DWORD PTR stderr[rip]
jmp .L3
.L2:
mov eax, DWORD PTR stdout[rip]
.L3:
lea rsi, .LC0[rip]
mov edi, eax
call fprintf@PLT
mov eax, DWORD PTR -4[rbp]
mov edi, eax
call exit@PLT
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size usage, .-usage
.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_main.c_usage.c"
.option pic
.text
.comm stderr,4,4
.comm stdout,4,4
.section .rodata
.align 3
.LC0:
.ascii "Usage: 8cc [ -E ][ -a ] [ -h ] <file>\n\n\n -I<path> "
.ascii " add to include path\n -E print preprocess"
.ascii "ed source code\n -D name Predefine name as a macr"
.ascii "o\n -D name=def\n -S Stop before assembly ("
.ascii "default)\n -c Do not run linker (default)\n "
.ascii " -U name Undefine name\n -fdump-ast print "
.ascii "AST\n -fdump-stack Print stacktrace\n -fno-dump-sourc"
.ascii "e Do not emit source code as assembly comment\n -o filenam"
.ascii "e Output to the specified file\n -g Do"
.ascii " nothing at this moment\n -Wall Enable all warn"
.ascii "ings\n -Werror "
.string " Make all warnings into errors\n -O<number> Does nothing at this moment\n -m64 Output 64-bit code (default)\n -w Disable all warnings\n -h print this help\n\nOne of -a, -c, -E or -S must be specified.\n\n"
.text
.align 1
.type usage, @function
usage:
addi sp,sp,-32
sd ra,24(sp)
sd s0,16(sp)
addi s0,sp,32
mv a5,a0
sw a5,-20(s0)
lw a5,-20(s0)
sext.w a5,a5
beqz a5,.L2
la a5,stderr
lw a5,0(a5)
j .L3
.L2:
la a5,stdout
lw a5,0(a5)
.L3:
lla a1,.LC0
mv a0,a5
call fprintf@plt
lw a5,-20(s0)
mv a0,a5
call exit@plt
nop
ld ra,24(sp)
ld s0,16(sp)
addi sp,sp,32
jr ra
.size usage, .-usage
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_map.c_do_make_map.c"
.intel_syntax noprefix
.text
.type do_make_map, @function
do_make_map:
.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 edi, 48
call malloc@PLT
mov QWORD PTR -8[rbp], rax
mov rax, QWORD PTR -8[rbp]
mov rdx, QWORD PTR -24[rbp]
mov QWORD PTR 40[rax], rdx
mov eax, DWORD PTR -28[rbp]
mov esi, 8
mov edi, eax
call calloc@PLT
mov rdx, QWORD PTR -8[rbp]
mov QWORD PTR 32[rdx], rax
mov eax, DWORD PTR -28[rbp]
mov esi, 8
mov edi, eax
call calloc@PLT
mov rdx, QWORD PTR -8[rbp]
mov QWORD PTR 24[rdx], 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 QWORD PTR 16[rax], 0
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 do_make_map, .-do_make_map
.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_map.c_do_make_map.c"
.option pic
.text
.align 1
.type do_make_map, @function
do_make_map:
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)
li a0,48
call malloc@plt
sd a0,-24(s0)
ld a5,-24(s0)
ld a4,-40(s0)
sd a4,40(a5)
lw a5,-44(s0)
li a1,8
mv a0,a5
call calloc@plt
mv a4,a0
ld a5,-24(s0)
sd a4,32(a5)
lw a5,-44(s0)
li a1,8
mv a0,a5
call calloc@plt
mv a4,a0
ld a5,-24(s0)
sd a4,24(a5)
ld a5,-24(s0)
lw a4,-44(s0)
sw a4,0(a5)
ld a5,-24(s0)
sd zero,16(a5)
ld a5,-24(s0)
sd zero,8(a5)
ld a5,-24(s0)
mv a0,a5
ld ra,40(sp)
ld s0,32(sp)
addi sp,sp,48
jr ra
.size do_make_map, .-do_make_map
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_map.c_hash.c"
.intel_syntax noprefix
.text
.type hash, @function
hash:
.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 -24[rbp], rdi
mov BYTE PTR -1[rbp], -59
jmp .L2
.L3:
mov rax, QWORD PTR -24[rbp]
movzx eax, BYTE PTR [rax]
xor BYTE PTR -1[rbp], al
movzx eax, BYTE PTR -1[rbp]
mov edx, -109
imul eax, edx
mov BYTE PTR -1[rbp], al
add QWORD PTR -24[rbp], 1
.L2:
mov rax, QWORD PTR -24[rbp]
movzx eax, BYTE PTR [rax]
test al, al
jne .L3
movzx eax, BYTE PTR -1[rbp]
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size hash, .-hash
.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_map.c_hash.c"
.option pic
.text
.align 1
.type hash, @function
hash:
addi sp,sp,-48
sd s0,40(sp)
addi s0,sp,48
sd a0,-40(s0)
li a5,-59
sb a5,-17(s0)
j .L2
.L3:
ld a5,-40(s0)
lbu a4,0(a5)
lbu a5,-17(s0)
xor a5,a4,a5
sb a5,-17(s0)
lbu a4,-17(s0)
li a5,-109
mulw a5,a4,a5
sb a5,-17(s0)
ld a5,-40(s0)
addi a5,a5,1
sd a5,-40(s0)
.L2:
ld a5,-40(s0)
lbu a5,0(a5)
bnez a5,.L3
lbu a5,-17(s0)
mv a0,a5
ld s0,40(sp)
addi sp,sp,48
jr ra
.size hash, .-hash
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_map.c_make_map.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_map
.type make_map, @function
make_map:
.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 INIT_SIZE[rip]
mov esi, eax
mov edi, 0
call do_make_map@PLT
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size make_map, .-make_map
.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_map.c_make_map.c"
.option pic
.text
.comm INIT_SIZE,4,4
.align 1
.globl make_map
.type make_map, @function
make_map:
addi sp,sp,-16
sd ra,8(sp)
sd s0,0(sp)
addi s0,sp,16
la a5,INIT_SIZE
lw a5,0(a5)
mv a1,a5
li a0,0
call do_make_map@plt
mv a5,a0
mv a0,a5
ld ra,8(sp)
ld s0,0(sp)
addi sp,sp,16
jr ra
.size make_map, .-make_map
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_map.c_make_map_parent.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_map_parent
.type make_map_parent, @function
make_map_parent:
.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 edx, DWORD PTR INIT_SIZE[rip]
mov rax, QWORD PTR -8[rbp]
mov esi, edx
mov rdi, rax
call do_make_map@PLT
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size make_map_parent, .-make_map_parent
.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_map.c_make_map_parent.c"
.option pic
.text
.comm INIT_SIZE,4,4
.align 1
.globl make_map_parent
.type make_map_parent, @function
make_map_parent:
addi sp,sp,-32
sd ra,24(sp)
sd s0,16(sp)
addi s0,sp,32
sd a0,-24(s0)
la a5,INIT_SIZE
lw a5,0(a5)
mv a1,a5
ld a0,-24(s0)
call do_make_map@plt
mv a5,a0
mv a0,a5
ld ra,24(sp)
ld s0,16(sp)
addi sp,sp,32
jr ra
.size make_map_parent, .-make_map_parent
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_map.c_map_get.c"
.intel_syntax noprefix
.text
.globl map_get
.type map_get, @function
map_get:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 32
mov QWORD PTR -24[rbp], rdi
mov QWORD PTR -32[rbp], rsi
mov rdx, QWORD PTR -32[rbp]
mov rax, QWORD PTR -24[rbp]
mov rsi, rdx
mov rdi, rax
call map_get_nostack@PLT
mov QWORD PTR -8[rbp], rax
cmp QWORD PTR -8[rbp], 0
je .L2
mov rax, QWORD PTR -8[rbp]
jmp .L3
.L2:
mov rax, QWORD PTR -24[rbp]
mov rax, QWORD PTR [rax]
test rax, rax
je .L4
mov rax, QWORD PTR -24[rbp]
mov rax, QWORD PTR [rax]
mov rdx, QWORD PTR -32[rbp]
mov rsi, rdx
mov rdi, rax
call map_get
jmp .L3
.L4:
mov eax, 0
.L3:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size map_get, .-map_get
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_map.c_map_get.c"
.option pic
.text
.align 1
.globl map_get
.type map_get, @function
map_get:
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 a1,-48(s0)
ld a0,-40(s0)
call map_get_nostack@plt
sd a0,-24(s0)
ld a5,-24(s0)
beqz a5,.L2
ld a5,-24(s0)
j .L3
.L2:
ld a5,-40(s0)
ld a5,0(a5)
beqz a5,.L4
ld a5,-40(s0)
ld a5,0(a5)
ld a1,-48(s0)
mv a0,a5
call map_get
mv a5,a0
j .L3
.L4:
li a5,0
.L3:
mv a0,a5
ld ra,40(sp)
ld s0,32(sp)
addi sp,sp,48
jr ra
.size map_get, .-map_get
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_map.c_map_get_nostack.c"
.intel_syntax noprefix
.text
.globl TOMBSTONE
.bss
.align 8
.type TOMBSTONE, @object
.size TOMBSTONE, 8
TOMBSTONE:
.zero 8
.text
.type map_get_nostack, @function
map_get_nostack:
.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 rax, QWORD PTR 16[rax]
test rax, rax
jne .L2
mov eax, 0
jmp .L3
.L2:
mov rax, QWORD PTR -24[rbp]
mov eax, DWORD PTR [rax]
sub eax, 1
mov DWORD PTR -4[rbp], eax
mov rax, QWORD PTR -32[rbp]
mov rdi, rax
call hash@PLT
and eax, DWORD PTR -4[rbp]
mov DWORD PTR -8[rbp], eax
jmp .L4
.L6:
mov rax, QWORD PTR -24[rbp]
mov rdx, QWORD PTR 16[rax]
mov eax, DWORD PTR -8[rbp]
cdqe
sal rax, 3
add rax, rdx
mov rdx, QWORD PTR [rax]
mov rax, QWORD PTR TOMBSTONE[rip]
cmp rdx, rax
je .L5
mov rax, QWORD PTR -24[rbp]
mov rdx, QWORD PTR 16[rax]
mov eax, DWORD PTR -8[rbp]
cdqe
sal rax, 3
add rax, rdx
mov rax, QWORD PTR [rax]
mov rdx, QWORD PTR -32[rbp]
mov rsi, rdx
mov rdi, rax
call strcmp@PLT
test eax, eax
jne .L5
mov rax, QWORD PTR -24[rbp]
mov rdx, QWORD PTR 8[rax]
mov eax, DWORD PTR -8[rbp]
cdqe
sal rax, 3
add rax, rdx
mov rax, QWORD PTR [rax]
jmp .L3
.L5:
mov eax, DWORD PTR -8[rbp]
add eax, 1
and eax, DWORD PTR -4[rbp]
mov DWORD PTR -8[rbp], eax
.L4:
mov rax, QWORD PTR -24[rbp]
mov rdx, QWORD PTR 16[rax]
mov eax, DWORD PTR -8[rbp]
cdqe
sal rax, 3
add rax, rdx
mov rax, QWORD PTR [rax]
test rax, rax
jne .L6
mov eax, 0
.L3:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size map_get_nostack, .-map_get_nostack
.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_map.c_map_get_nostack.c"
.option pic
.text
.comm TOMBSTONE,8,8
.align 1
.type map_get_nostack, @function
map_get_nostack:
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,-40(s0)
ld a5,16(a5)
bnez a5,.L2
li a5,0
j .L3
.L2:
ld a5,-40(s0)
lw a5,0(a5)
addiw a5,a5,-1
sw a5,-20(s0)
ld a0,-48(s0)
call hash@plt
mv a5,a0
mv a4,a5
lw a5,-20(s0)
and a5,a4,a5
sw a5,-24(s0)
j .L4
.L6:
ld a5,-40(s0)
ld a4,16(a5)
lw a5,-24(s0)
slli a5,a5,3
add a5,a4,a5
ld a4,0(a5)
la a5,TOMBSTONE
ld a5,0(a5)
beq a4,a5,.L5
ld a5,-40(s0)
ld a4,16(a5)
lw a5,-24(s0)
slli a5,a5,3
add a5,a4,a5
ld a5,0(a5)
ld a1,-48(s0)
mv a0,a5
call strcmp@plt
mv a5,a0
bnez a5,.L5
ld a5,-40(s0)
ld a4,8(a5)
lw a5,-24(s0)
slli a5,a5,3
add a5,a4,a5
ld a5,0(a5)
j .L3
.L5:
lw a5,-24(s0)
addiw a5,a5,1
sext.w a4,a5
lw a5,-20(s0)
and a5,a4,a5
sw a5,-24(s0)
.L4:
ld a5,-40(s0)
ld a4,16(a5)
lw a5,-24(s0)
slli a5,a5,3
add a5,a4,a5
ld a5,0(a5)
bnez a5,.L6
li a5,0
.L3:
mv a0,a5
ld ra,40(sp)
ld s0,32(sp)
addi sp,sp,48
jr ra
.size map_get_nostack, .-map_get_nostack
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_map.c_map_len.c"
.intel_syntax noprefix
.text
.globl map_len
.type map_len, @function
map_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 rax, QWORD PTR [rax]
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size map_len, .-map_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_map.c_map_len.c"
.option pic
.text
.align 1
.globl map_len
.type map_len, @function
map_len:
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 map_len, .-map_len
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_map.c_map_put.c"
.intel_syntax noprefix
.text
.globl TOMBSTONE
.bss
.align 8
.type TOMBSTONE, @object
.size TOMBSTONE, 8
TOMBSTONE:
.zero 8
.text
.globl map_put
.type map_put, @function
map_put:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 48
mov QWORD PTR -24[rbp], rdi
mov QWORD PTR -32[rbp], rsi
mov QWORD PTR -40[rbp], rdx
mov rax, QWORD PTR -24[rbp]
mov rdi, rax
call maybe_rehash@PLT
mov rax, QWORD PTR -24[rbp]
mov eax, DWORD PTR [rax]
sub eax, 1
mov DWORD PTR -12[rbp], eax
mov rax, QWORD PTR -32[rbp]
mov rdi, rax
call hash@PLT
and eax, DWORD PTR -12[rbp]
mov DWORD PTR -16[rbp], eax
.L7:
mov rax, QWORD PTR -24[rbp]
mov rdx, QWORD PTR 8[rax]
mov eax, DWORD PTR -16[rbp]
cdqe
sal rax, 3
add rax, rdx
mov rax, QWORD PTR [rax]
mov QWORD PTR -8[rbp], rax
cmp QWORD PTR -8[rbp], 0
je .L2
mov rax, QWORD PTR TOMBSTONE[rip]
cmp QWORD PTR -8[rbp], rax
jne .L3
.L2:
mov rax, QWORD PTR -24[rbp]
mov rdx, QWORD PTR 8[rax]
mov eax, DWORD PTR -16[rbp]
cdqe
sal rax, 3
add rdx, rax
mov rax, QWORD PTR -32[rbp]
mov QWORD PTR [rdx], rax
mov rax, QWORD PTR -24[rbp]
mov rdx, QWORD PTR 16[rax]
mov eax, DWORD PTR -16[rbp]
cdqe
sal rax, 3
add rdx, rax
mov rax, QWORD PTR -40[rbp]
mov QWORD PTR [rdx], rax
mov rax, QWORD PTR -24[rbp]
mov eax, DWORD PTR 28[rax]
lea edx, 1[rax]
mov rax, QWORD PTR -24[rbp]
mov DWORD PTR 28[rax], edx
cmp QWORD PTR -8[rbp], 0
jne .L8
mov rax, QWORD PTR -24[rbp]
mov eax, DWORD PTR 24[rax]
lea edx, 1[rax]
mov rax, QWORD PTR -24[rbp]
mov DWORD PTR 24[rax], edx
jmp .L8
.L3:
mov rdx, QWORD PTR -32[rbp]
mov rax, QWORD PTR -8[rbp]
mov rsi, rdx
mov rdi, rax
call strcmp@PLT
test eax, eax
jne .L6
mov rax, QWORD PTR -24[rbp]
mov rdx, QWORD PTR 16[rax]
mov eax, DWORD PTR -16[rbp]
cdqe
sal rax, 3
add rdx, rax
mov rax, QWORD PTR -40[rbp]
mov QWORD PTR [rdx], rax
jmp .L1
.L6:
mov eax, DWORD PTR -16[rbp]
add eax, 1
and eax, DWORD PTR -12[rbp]
mov DWORD PTR -16[rbp], eax
jmp .L7
.L8:
nop
.L1:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size map_put, .-map_put
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_map.c_map_put.c"
.option pic
.text
.comm TOMBSTONE,8,8
.align 1
.globl map_put
.type map_put, @function
map_put:
addi sp,sp,-64
sd ra,56(sp)
sd s0,48(sp)
addi s0,sp,64
sd a0,-40(s0)
sd a1,-48(s0)
sd a2,-56(s0)
ld a0,-40(s0)
call maybe_rehash@plt
ld a5,-40(s0)
lw a5,0(a5)
addiw a5,a5,-1
sw a5,-28(s0)
ld a0,-48(s0)
call hash@plt
mv a5,a0
mv a4,a5
lw a5,-28(s0)
and a5,a4,a5
sw a5,-32(s0)
.L7:
ld a5,-40(s0)
ld a4,8(a5)
lw a5,-32(s0)
slli a5,a5,3
add a5,a4,a5
ld a5,0(a5)
sd a5,-24(s0)
ld a5,-24(s0)
beqz a5,.L2
la a5,TOMBSTONE
ld a5,0(a5)
ld a4,-24(s0)
bne a4,a5,.L3
.L2:
ld a5,-40(s0)
ld a4,8(a5)
lw a5,-32(s0)
slli a5,a5,3
add a5,a4,a5
ld a4,-48(s0)
sd a4,0(a5)
ld a5,-40(s0)
ld a4,16(a5)
lw a5,-32(s0)
slli a5,a5,3
add a5,a4,a5
ld a4,-56(s0)
sd a4,0(a5)
ld a5,-40(s0)
lw a5,28(a5)
addiw a5,a5,1
sext.w a4,a5
ld a5,-40(s0)
sw a4,28(a5)
ld a5,-24(s0)
bnez a5,.L8
ld a5,-40(s0)
lw a5,24(a5)
addiw a5,a5,1
sext.w a4,a5
ld a5,-40(s0)
sw a4,24(a5)
j .L8
.L3:
ld a1,-48(s0)
ld a0,-24(s0)
call strcmp@plt
mv a5,a0
bnez a5,.L6
ld a5,-40(s0)
ld a4,16(a5)
lw a5,-32(s0)
slli a5,a5,3
add a5,a4,a5
ld a4,-56(s0)
sd a4,0(a5)
j .L1
.L6:
lw a5,-32(s0)
addiw a5,a5,1
sext.w a4,a5
lw a5,-28(s0)
and a5,a4,a5
sw a5,-32(s0)
j .L7
.L8:
nop
.L1:
ld ra,56(sp)
ld s0,48(sp)
addi sp,sp,64
jr ra
.size map_put, .-map_put
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_map.c_map_remove.c"
.intel_syntax noprefix
.text
.globl TOMBSTONE
.bss
.align 8
.type TOMBSTONE, @object
.size TOMBSTONE, 8
TOMBSTONE:
.zero 8
.text
.globl map_remove
.type map_remove, @function
map_remove:
.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 rax, QWORD PTR 16[rax]
test rax, rax
je .L8
mov rax, QWORD PTR -24[rbp]
mov eax, DWORD PTR [rax]
sub eax, 1
mov DWORD PTR -4[rbp], eax
mov rax, QWORD PTR -32[rbp]
mov rdi, rax
call hash@PLT
and eax, DWORD PTR -4[rbp]
mov DWORD PTR -8[rbp], eax
jmp .L4
.L7:
mov rax, QWORD PTR -24[rbp]
mov rdx, QWORD PTR 16[rax]
mov eax, DWORD PTR -8[rbp]
cdqe
sal rax, 3
add rax, rdx
mov rdx, QWORD PTR [rax]
mov rax, QWORD PTR TOMBSTONE[rip]
cmp rdx, rax
je .L5
mov rax, QWORD PTR -24[rbp]
mov rdx, QWORD PTR 16[rax]
mov eax, DWORD PTR -8[rbp]
cdqe
sal rax, 3
add rax, rdx
mov rax, QWORD PTR [rax]
mov rdx, QWORD PTR -32[rbp]
mov rsi, rdx
mov rdi, rax
call strcmp@PLT
test rax, rax
je .L6
.L5:
mov eax, DWORD PTR -8[rbp]
add eax, 1
and eax, DWORD PTR -4[rbp]
mov DWORD PTR -8[rbp], eax
jmp .L4
.L6:
mov rax, QWORD PTR -24[rbp]
mov rdx, QWORD PTR 16[rax]
mov eax, DWORD PTR -8[rbp]
cdqe
sal rax, 3
add rdx, rax
mov rax, QWORD PTR TOMBSTONE[rip]
mov QWORD PTR [rdx], rax
mov rax, QWORD PTR -24[rbp]
mov rdx, QWORD PTR 8[rax]
mov eax, DWORD PTR -8[rbp]
cdqe
sal rax, 3
add rax, rdx
mov QWORD PTR [rax], 0
mov rax, QWORD PTR -24[rbp]
mov eax, DWORD PTR 4[rax]
lea edx, -1[rax]
mov rax, QWORD PTR -24[rbp]
mov DWORD PTR 4[rax], edx
jmp .L1
.L4:
mov rax, QWORD PTR -24[rbp]
mov rdx, QWORD PTR 16[rax]
mov eax, DWORD PTR -8[rbp]
cdqe
sal rax, 3
add rax, rdx
mov rax, QWORD PTR [rax]
test rax, rax
jne .L7
jmp .L1
.L8:
nop
.L1:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size map_remove, .-map_remove
.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_map.c_map_remove.c"
.option pic
.text
.comm TOMBSTONE,8,8
.align 1
.globl map_remove
.type map_remove, @function
map_remove:
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,-40(s0)
ld a5,16(a5)
beqz a5,.L8
ld a5,-40(s0)
lw a5,0(a5)
addiw a5,a5,-1
sw a5,-20(s0)
ld a0,-48(s0)
call hash@plt
mv a5,a0
mv a4,a5
lw a5,-20(s0)
and a5,a4,a5
sw a5,-24(s0)
j .L4
.L7:
ld a5,-40(s0)
ld a4,16(a5)
lw a5,-24(s0)
slli a5,a5,3
add a5,a4,a5
ld a4,0(a5)
la a5,TOMBSTONE
ld a5,0(a5)
beq a4,a5,.L5
ld a5,-40(s0)
ld a4,16(a5)
lw a5,-24(s0)
slli a5,a5,3
add a5,a4,a5
ld a5,0(a5)
ld a1,-48(s0)
mv a0,a5
call strcmp@plt
mv a5,a0
beqz a5,.L6
.L5:
lw a5,-24(s0)
addiw a5,a5,1
sext.w a4,a5
lw a5,-20(s0)
and a5,a4,a5
sw a5,-24(s0)
j .L4
.L6:
ld a5,-40(s0)
ld a4,16(a5)
lw a5,-24(s0)
slli a5,a5,3
add a5,a4,a5
la a4,TOMBSTONE
ld a4,0(a4)
sd a4,0(a5)
ld a5,-40(s0)
ld a4,8(a5)
lw a5,-24(s0)
slli a5,a5,3
add a5,a4,a5
sd zero,0(a5)
ld a5,-40(s0)
lw a5,4(a5)
addiw a5,a5,-1
sext.w a4,a5
ld a5,-40(s0)
sw a4,4(a5)
j .L1
.L4:
ld a5,-40(s0)
ld a4,16(a5)
lw a5,-24(s0)
slli a5,a5,3
add a5,a4,a5
ld a5,0(a5)
bnez a5,.L7
j .L1
.L8:
nop
.L1:
ld ra,40(sp)
ld s0,32(sp)
addi sp,sp,48
jr ra
.size map_remove, .-map_remove
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_map.c_maybe_rehash.c"
.intel_syntax noprefix
.text
.globl INIT_SIZE
.bss
.align 4
.type INIT_SIZE, @object
.size INIT_SIZE, 4
INIT_SIZE:
.zero 4
.globl TOMBSTONE
.align 8
.type TOMBSTONE, @object
.size TOMBSTONE, 8
TOMBSTONE:
.zero 8
.text
.type maybe_rehash, @function
maybe_rehash:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 48
mov QWORD PTR -40[rbp], rdi
mov rax, QWORD PTR -40[rbp]
mov rax, QWORD PTR [rax]
test rax, rax
jne .L2
mov eax, DWORD PTR INIT_SIZE[rip]
mov esi, 8
mov edi, eax
call calloc@PLT
mov rdx, QWORD PTR -40[rbp]
mov QWORD PTR [rdx], rax
mov eax, DWORD PTR INIT_SIZE[rip]
mov esi, 8
mov edi, eax
call calloc@PLT
mov rdx, QWORD PTR -40[rbp]
mov QWORD PTR 8[rdx], rax
mov edx, DWORD PTR INIT_SIZE[rip]
mov rax, QWORD PTR -40[rbp]
mov DWORD PTR 16[rax], edx
jmp .L1
.L2:
mov rax, QWORD PTR -40[rbp]
movsd xmm1, QWORD PTR 24[rax]
mov rax, QWORD PTR -40[rbp]
mov eax, DWORD PTR 16[rax]
pxor xmm2, xmm2
cvtsi2sd xmm2, eax
movsd xmm0, QWORD PTR .LC0[rip]
mulsd xmm0, xmm2
comisd xmm0, xmm1
ja .L18
mov rax, QWORD PTR -40[rbp]
movsd xmm1, QWORD PTR 32[rax]
mov rax, QWORD PTR -40[rbp]
mov eax, DWORD PTR 16[rax]
pxor xmm2, xmm2
cvtsi2sd xmm2, eax
movsd xmm0, QWORD PTR .LC1[rip]
mulsd xmm0, xmm2
comisd xmm0, xmm1
jbe .L17
mov rax, QWORD PTR -40[rbp]
mov eax, DWORD PTR 16[rax]
jmp .L8
.L17:
mov rax, QWORD PTR -40[rbp]
mov eax, DWORD PTR 16[rax]
add eax, eax
.L8:
mov DWORD PTR -24[rbp], eax
mov eax, DWORD PTR -24[rbp]
mov esi, 8
mov edi, eax
call calloc@PLT
mov QWORD PTR -16[rbp], rax
mov eax, DWORD PTR -24[rbp]
mov esi, 8
mov edi, eax
call calloc@PLT
mov QWORD PTR -8[rbp], rax
mov eax, DWORD PTR -24[rbp]
sub eax, 1
mov DWORD PTR -20[rbp], eax
mov DWORD PTR -32[rbp], 0
jmp .L9
.L15:
mov rax, QWORD PTR -40[rbp]
mov rdx, QWORD PTR [rax]
mov eax, DWORD PTR -32[rbp]
cdqe
sal rax, 3
add rax, rdx
mov rax, QWORD PTR [rax]
test rax, rax
je .L19
mov rax, QWORD PTR -40[rbp]
mov rdx, QWORD PTR [rax]
mov eax, DWORD PTR -32[rbp]
cdqe
sal rax, 3
add rax, rdx
mov rdx, QWORD PTR [rax]
mov rax, QWORD PTR TOMBSTONE[rip]
cmp rdx, rax
je .L19
mov rax, QWORD PTR -40[rbp]
mov rdx, QWORD PTR [rax]
mov eax, DWORD PTR -32[rbp]
cdqe
sal rax, 3
add rax, rdx
mov rax, QWORD PTR [rax]
mov rdi, rax
call hash@PLT
and eax, DWORD PTR -20[rbp]
mov DWORD PTR -28[rbp], eax
.L14:
mov eax, DWORD PTR -28[rbp]
cdqe
lea rdx, 0[0+rax*8]
mov rax, QWORD PTR -16[rbp]
add rax, rdx
mov rax, QWORD PTR [rax]
test rax, rax
je .L13
mov eax, DWORD PTR -28[rbp]
add eax, 1
and eax, DWORD PTR -20[rbp]
mov DWORD PTR -28[rbp], eax
jmp .L14
.L13:
mov rax, QWORD PTR -40[rbp]
mov rdx, QWORD PTR [rax]
mov eax, DWORD PTR -32[rbp]
cdqe
sal rax, 3
add rax, rdx
mov edx, DWORD PTR -28[rbp]
movsx rdx, edx
lea rcx, 0[0+rdx*8]
mov rdx, QWORD PTR -16[rbp]
add rdx, rcx
mov rax, QWORD PTR [rax]
mov QWORD PTR [rdx], rax
mov rax, QWORD PTR -40[rbp]
mov rdx, QWORD PTR 8[rax]
mov eax, DWORD PTR -32[rbp]
cdqe
sal rax, 3
add rax, rdx
mov edx, DWORD PTR -28[rbp]
movsx rdx, edx
lea rcx, 0[0+rdx*8]
mov rdx, QWORD PTR -8[rbp]
add rdx, rcx
mov rax, QWORD PTR [rax]
mov QWORD PTR [rdx], rax
jmp .L12
.L19:
nop
.L12:
add DWORD PTR -32[rbp], 1
.L9:
mov rax, QWORD PTR -40[rbp]
mov eax, DWORD PTR 16[rax]
cmp DWORD PTR -32[rbp], eax
jl .L15
mov rax, QWORD PTR -40[rbp]
mov rdx, QWORD PTR -16[rbp]
mov QWORD PTR [rax], rdx
mov rax, QWORD PTR -40[rbp]
mov rdx, QWORD PTR -8[rbp]
mov QWORD PTR 8[rax], rdx
mov rax, QWORD PTR -40[rbp]
mov edx, DWORD PTR -24[rbp]
mov DWORD PTR 16[rax], edx
mov rax, QWORD PTR -40[rbp]
movsd xmm0, QWORD PTR 32[rax]
mov rax, QWORD PTR -40[rbp]
movsd QWORD PTR 24[rax], xmm0
jmp .L1
.L18:
nop
.L1:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size maybe_rehash, .-maybe_rehash
.section .rodata
.align 8
.LC0:
.long 1717986918
.long 1072064102
.align 8
.LC1:
.long 1717986918
.long 1071015526
.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_map.c_maybe_rehash.c"
.option pic
.text
.comm INIT_SIZE,4,4
.comm TOMBSTONE,8,8
.align 1
.type maybe_rehash, @function
maybe_rehash:
addi sp,sp,-64
sd ra,56(sp)
sd s0,48(sp)
addi s0,sp,64
sd a0,-56(s0)
ld a5,-56(s0)
ld a5,0(a5)
bnez a5,.L2
la a5,INIT_SIZE
lw a5,0(a5)
li a1,8
mv a0,a5
call calloc@plt
mv a4,a0
ld a5,-56(s0)
sd a4,0(a5)
la a5,INIT_SIZE
lw a5,0(a5)
li a1,8
mv a0,a5
call calloc@plt
mv a4,a0
ld a5,-56(s0)
sd a4,8(a5)
la a5,INIT_SIZE
lw a4,0(a5)
ld a5,-56(s0)
sw a4,16(a5)
j .L1
.L2:
ld a5,-56(s0)
fld fa4,24(a5)
ld a5,-56(s0)
lw a5,16(a5)
fcvt.d.w fa3,a5
lla a5,.LC0
fld fa5,0(a5)
fmul.d fa5,fa3,fa5
flt.d a5,fa4,fa5
bnez a5,.L18
ld a5,-56(s0)
fld fa4,32(a5)
ld a5,-56(s0)
lw a5,16(a5)
fcvt.d.w fa3,a5
lla a5,.LC1
fld fa5,0(a5)
fmul.d fa5,fa3,fa5
flt.d a5,fa4,fa5
beqz a5,.L17
ld a5,-56(s0)
lw a5,16(a5)
j .L8
.L17:
ld a5,-56(s0)
lw a5,16(a5)
slliw a5,a5,1
sext.w a5,a5
.L8:
sw a5,-40(s0)
lw a5,-40(s0)
li a1,8
mv a0,a5
call calloc@plt
sd a0,-32(s0)
lw a5,-40(s0)
li a1,8
mv a0,a5
call calloc@plt
sd a0,-24(s0)
lw a5,-40(s0)
addiw a5,a5,-1
sw a5,-36(s0)
sw zero,-48(s0)
j .L9
.L15:
ld a5,-56(s0)
ld a4,0(a5)
lw a5,-48(s0)
slli a5,a5,3
add a5,a4,a5
ld a5,0(a5)
beqz a5,.L19
ld a5,-56(s0)
ld a4,0(a5)
lw a5,-48(s0)
slli a5,a5,3
add a5,a4,a5
ld a4,0(a5)
la a5,TOMBSTONE
ld a5,0(a5)
beq a4,a5,.L19
ld a5,-56(s0)
ld a4,0(a5)
lw a5,-48(s0)
slli a5,a5,3
add a5,a4,a5
ld a5,0(a5)
mv a0,a5
call hash@plt
mv a5,a0
mv a4,a5
lw a5,-36(s0)
and a5,a4,a5
sw a5,-44(s0)
.L14:
lw a5,-44(s0)
slli a5,a5,3
ld a4,-32(s0)
add a5,a4,a5
ld a5,0(a5)
beqz a5,.L13
lw a5,-44(s0)
addiw a5,a5,1
sext.w a4,a5
lw a5,-36(s0)
and a5,a4,a5
sw a5,-44(s0)
j .L14
.L13:
ld a5,-56(s0)
ld a4,0(a5)
lw a5,-48(s0)
slli a5,a5,3
add a4,a4,a5
lw a5,-44(s0)
slli a5,a5,3
ld a3,-32(s0)
add a5,a3,a5
ld a4,0(a4)
sd a4,0(a5)
ld a5,-56(s0)
ld a4,8(a5)
lw a5,-48(s0)
slli a5,a5,3
add a4,a4,a5
lw a5,-44(s0)
slli a5,a5,3
ld a3,-24(s0)
add a5,a3,a5
ld a4,0(a4)
sd a4,0(a5)
j .L12
.L19:
nop
.L12:
lw a5,-48(s0)
addiw a5,a5,1
sw a5,-48(s0)
.L9:
ld a5,-56(s0)
lw a4,16(a5)
lw a5,-48(s0)
sext.w a5,a5
blt a5,a4,.L15
ld a5,-56(s0)
ld a4,-32(s0)
sd a4,0(a5)
ld a5,-56(s0)
ld a4,-24(s0)
sd a4,8(a5)
ld a5,-56(s0)
lw a4,-40(s0)
sw a4,16(a5)
ld a5,-56(s0)
fld fa5,32(a5)
ld a5,-56(s0)
fsd fa5,24(a5)
j .L1
.L18:
nop
.L1:
ld ra,56(sp)
ld s0,48(sp)
addi sp,sp,64
jr ra
.size maybe_rehash, .-maybe_rehash
.section .rodata
.align 3
.LC0:
.word 1717986918
.word 1072064102
.align 3
.LC1:
.word 1717986918
.word 1071015526
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_parse.c_assign_string.c"
.intel_syntax noprefix
.text
.globl type_char
.bss
.align 4
.type type_char, @object
.size type_char, 4
type_char:
.zero 4
.text
.type assign_string, @function
assign_string:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
push r12
push rbx
sub rsp, 48
.cfi_offset 12, -24
.cfi_offset 3, -32
mov QWORD PTR -40[rbp], rdi
mov QWORD PTR -48[rbp], rsi
mov QWORD PTR -56[rbp], rdx
mov DWORD PTR -60[rbp], ecx
mov rax, QWORD PTR -48[rbp]
mov eax, DWORD PTR [rax]
cmp eax, -1
jne .L2
mov rax, QWORD PTR -56[rbp]
mov rdi, rax
call strlen@PLT
lea edx, 1[rax]
mov rax, QWORD PTR -48[rbp]
mov DWORD PTR 4[rax], edx
mov rax, QWORD PTR -48[rbp]
mov edx, DWORD PTR 4[rax]
mov rax, QWORD PTR -48[rbp]
mov DWORD PTR [rax], edx
.L2:
mov DWORD PTR -20[rbp], 0
jmp .L3
.L5:
mov edx, DWORD PTR -60[rbp]
mov eax, DWORD PTR -20[rbp]
lea r12d, [rdx+rax]
mov ebx, DWORD PTR type_char[rip]
mov rax, QWORD PTR -56[rbp]
lea rdx, 1[rax]
mov QWORD PTR -56[rbp], rdx
movzx eax, BYTE PTR [rax]
movsx edx, al
mov eax, DWORD PTR type_char[rip]
mov esi, edx
mov edi, eax
call ast_inttype@PLT
mov edx, r12d
mov esi, ebx
mov edi, eax
call ast_init@PLT
mov edx, eax
mov rax, QWORD PTR -40[rbp]
mov esi, edx
mov rdi, rax
call vec_push@PLT
add DWORD PTR -20[rbp], 1
.L3:
mov rax, QWORD PTR -48[rbp]
mov eax, DWORD PTR [rax]
cmp DWORD PTR -20[rbp], eax
jge .L6
mov rax, QWORD PTR -56[rbp]
movzx eax, BYTE PTR [rax]
test al, al
jne .L5
jmp .L6
.L7:
mov edx, DWORD PTR -60[rbp]
mov eax, DWORD PTR -20[rbp]
lea r12d, [rdx+rax]
mov ebx, DWORD PTR type_char[rip]
mov eax, DWORD PTR type_char[rip]
mov esi, 0
mov edi, eax
call ast_inttype@PLT
mov edx, r12d
mov esi, ebx
mov edi, eax
call ast_init@PLT
mov edx, eax
mov rax, QWORD PTR -40[rbp]
mov esi, edx
mov rdi, rax
call vec_push@PLT
add DWORD PTR -20[rbp], 1
.L6:
mov rax, QWORD PTR -48[rbp]
mov eax, DWORD PTR [rax]
cmp DWORD PTR -20[rbp], eax
jl .L7
nop
nop
add rsp, 48
pop rbx
pop r12
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size assign_string, .-assign_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_parse.c_assign_string.c"
.option pic
.text
.comm type_char,4,4
.align 1
.type assign_string, @function
assign_string:
addi sp,sp,-64
sd ra,56(sp)
sd s0,48(sp)
addi s0,sp,64
sd a0,-40(s0)
sd a1,-48(s0)
sd a2,-56(s0)
mv a5,a3
sw a5,-60(s0)
ld a5,-48(s0)
lw a5,0(a5)
mv a4,a5
li a5,-1
bne a4,a5,.L2
ld a0,-56(s0)
call strlen@plt
mv a5,a0
addiw a5,a5,1
sext.w a4,a5
ld a5,-48(s0)
sw a4,4(a5)
ld a5,-48(s0)
lw a4,4(a5)
ld a5,-48(s0)
sw a4,0(a5)
.L2:
sw zero,-20(s0)
j .L3
.L5:
la a5,type_char
lw a3,0(a5)
ld a5,-56(s0)
addi a4,a5,1
sd a4,-56(s0)
lbu a5,0(a5)
sext.w a5,a5
mv a1,a5
mv a0,a3
call ast_inttype@plt
mv a5,a0
mv a0,a5
la a5,type_char
lw a3,0(a5)
lw a4,-60(s0)
lw a5,-20(s0)
addw a5,a4,a5
sext.w a5,a5
mv a2,a5
mv a1,a3
call ast_init@plt
mv a5,a0
mv a1,a5
ld a0,-40(s0)
call vec_push@plt
lw a5,-20(s0)
addiw a5,a5,1
sw a5,-20(s0)
.L3:
ld a5,-48(s0)
lw a4,0(a5)
lw a5,-20(s0)
sext.w a5,a5
bge a5,a4,.L6
ld a5,-56(s0)
lbu a5,0(a5)
bnez a5,.L5
j .L6
.L7:
la a5,type_char
lw a5,0(a5)
li a1,0
mv a0,a5
call ast_inttype@plt
mv a5,a0
mv a0,a5
la a5,type_char
lw a3,0(a5)
lw a4,-60(s0)
lw a5,-20(s0)
addw a5,a4,a5
sext.w a5,a5
mv a2,a5
mv a1,a3
call ast_init@plt
mv a5,a0
mv a1,a5
ld a0,-40(s0)
call vec_push@plt
lw a5,-20(s0)
addiw a5,a5,1
sw a5,-20(s0)
.L6:
ld a5,-48(s0)
lw a4,0(a5)
lw a5,-20(s0)
sext.w a5,a5
blt a5,a4,.L7
nop
nop
ld ra,56(sp)
ld s0,48(sp)
addi sp,sp,64
jr ra
.size assign_string, .-assign_string
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_parse.c_backfill_labels.c"
.intel_syntax noprefix
.text
.globl AST_GOTO
.bss
.align 8
.type AST_GOTO, @object
.size AST_GOTO, 8
AST_GOTO:
.zero 8
.globl gotos
.align 4
.type gotos, @object
.size gotos, 4
gotos:
.zero 4
.globl labels
.align 4
.type labels, @object
.size labels, 4
labels:
.zero 4
.section .rodata
.LC0:
.string "goto"
.LC1:
.string "unary &&"
.LC2:
.string "stray %s: %s"
.text
.type backfill_labels, @function
backfill_labels:
.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 -28[rbp], 0
jmp .L2
.L8:
mov eax, DWORD PTR gotos[rip]
mov edx, DWORD PTR -28[rbp]
mov esi, edx
mov edi, eax
call vec_get@PLT
mov QWORD PTR -24[rbp], rax
mov rax, QWORD PTR -24[rbp]
mov rax, QWORD PTR [rax]
mov QWORD PTR -16[rbp], rax
mov eax, DWORD PTR labels[rip]
mov rdx, QWORD PTR -16[rbp]
mov rsi, rdx
mov edi, eax
call map_get@PLT
mov QWORD PTR -8[rbp], rax
cmp QWORD PTR -8[rbp], 0
jne .L3
mov rax, QWORD PTR -24[rbp]
mov rdx, QWORD PTR 8[rax]
mov rax, QWORD PTR AST_GOTO[rip]
cmp rdx, rax
jne .L4
lea rax, .LC0[rip]
jmp .L5
.L4:
lea rax, .LC1[rip]
.L5:
mov rdx, QWORD PTR -16[rbp]
mov rsi, rax
lea rdi, .LC2[rip]
call error@PLT
.L3:
mov rax, QWORD PTR -8[rbp]
mov rax, QWORD PTR 16[rax]
test rax, rax
je .L6
mov rax, QWORD PTR -8[rbp]
mov rdx, QWORD PTR 16[rax]
mov rax, QWORD PTR -24[rbp]
mov QWORD PTR 16[rax], rdx
jmp .L7
.L6:
mov eax, 0
call make_label@PLT
mov rdx, QWORD PTR -8[rbp]
mov QWORD PTR 16[rdx], rax
mov rax, QWORD PTR -8[rbp]
mov rdx, QWORD PTR 16[rax]
mov rax, QWORD PTR -24[rbp]
mov QWORD PTR 16[rax], rdx
.L7:
add DWORD PTR -28[rbp], 1
.L2:
mov eax, DWORD PTR gotos[rip]
mov edi, eax
call vec_len@PLT
cmp DWORD PTR -28[rbp], eax
jl .L8
nop
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size backfill_labels, .-backfill_labels
.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_parse.c_backfill_labels.c"
.option pic
.text
.comm AST_GOTO,8,8
.comm gotos,4,4
.comm labels,4,4
.section .rodata
.align 3
.LC0:
.string "goto"
.align 3
.LC1:
.string "unary &&"
.align 3
.LC2:
.string "stray %s: %s"
.text
.align 1
.type backfill_labels, @function
backfill_labels:
addi sp,sp,-48
sd ra,40(sp)
sd s0,32(sp)
addi s0,sp,48
sw zero,-44(s0)
j .L2
.L8:
la a5,gotos
lw a5,0(a5)
lw a4,-44(s0)
mv a1,a4
mv a0,a5
call vec_get@plt
sd a0,-40(s0)
ld a5,-40(s0)
ld a5,0(a5)
sd a5,-32(s0)
la a5,labels
lw a5,0(a5)
ld a1,-32(s0)
mv a0,a5
call map_get@plt
sd a0,-24(s0)
ld a5,-24(s0)
bnez a5,.L3
ld a5,-40(s0)
ld a4,8(a5)
la a5,AST_GOTO
ld a5,0(a5)
bne a4,a5,.L4
lla a5,.LC0
j .L5
.L4:
lla a5,.LC1
.L5:
ld a2,-32(s0)
mv a1,a5
lla a0,.LC2
call error@plt
.L3:
ld a5,-24(s0)
ld a5,16(a5)
beqz a5,.L6
ld a5,-24(s0)
ld a4,16(a5)
ld a5,-40(s0)
sd a4,16(a5)
j .L7
.L6:
call make_label@plt
mv a4,a0
ld a5,-24(s0)
sd a4,16(a5)
ld a5,-24(s0)
ld a4,16(a5)
ld a5,-40(s0)
sd a4,16(a5)
.L7:
lw a5,-44(s0)
addiw a5,a5,1
sw a5,-44(s0)
.L2:
la a5,gotos
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,.L8
nop
nop
ld ra,40(sp)
ld s0,32(sp)
addi sp,sp,48
jr ra
.size backfill_labels, .-backfill_labels
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_parse.c_binop.c"
.intel_syntax noprefix
.text
.globl KIND_PTR
.bss
.align 8
.type KIND_PTR, @object
.size KIND_PTR, 8
KIND_PTR:
.zero 8
.globl type_int
.align 8
.type type_int, @object
.size type_int, 8
type_int:
.zero 8
.globl type_long
.align 8
.type type_long, @object
.size type_long, 8
type_long:
.zero 8
.section .rodata
.LC0:
.string "invalid pointer arith"
.text
.type binop, @function
binop:
.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, 56
.cfi_offset 3, -24
mov DWORD PTR -36[rbp], edi
mov QWORD PTR -48[rbp], rsi
mov QWORD PTR -56[rbp], rdx
mov rax, QWORD PTR -48[rbp]
mov rax, QWORD PTR [rax]
mov rdx, QWORD PTR [rax]
mov rax, QWORD PTR KIND_PTR[rip]
cmp rdx, rax
jne .L2
mov rax, QWORD PTR -56[rbp]
mov rax, QWORD PTR [rax]
mov rdx, QWORD PTR [rax]
mov rax, QWORD PTR KIND_PTR[rip]
cmp rdx, rax
jne .L2
mov eax, DWORD PTR -36[rbp]
mov edi, eax
call valid_pointer_binop@PLT
test eax, eax
jne .L3
lea rdi, .LC0[rip]
call error@PLT
.L3:
cmp DWORD PTR -36[rbp], 45
jne .L4
mov rax, QWORD PTR type_long[rip]
mov rcx, QWORD PTR -56[rbp]
mov rdx, QWORD PTR -48[rbp]
mov esi, DWORD PTR -36[rbp]
mov rdi, rax
call ast_binop@PLT
jmp .L5
.L4:
mov rax, QWORD PTR type_int[rip]
mov rcx, QWORD PTR -56[rbp]
mov rdx, QWORD PTR -48[rbp]
mov esi, DWORD PTR -36[rbp]
mov rdi, rax
call ast_binop@PLT
jmp .L5
.L2:
mov rax, QWORD PTR -48[rbp]
mov rax, QWORD PTR [rax]
mov rdx, QWORD PTR [rax]
mov rax, QWORD PTR KIND_PTR[rip]
cmp rdx, rax
jne .L6
mov rax, QWORD PTR -48[rbp]
mov rax, QWORD PTR [rax]
mov rcx, QWORD PTR -56[rbp]
mov rdx, QWORD PTR -48[rbp]
mov esi, DWORD PTR -36[rbp]
mov rdi, rax
call ast_binop@PLT
jmp .L5
.L6:
mov rax, QWORD PTR -56[rbp]
mov rax, QWORD PTR [rax]
mov rdx, QWORD PTR [rax]
mov rax, QWORD PTR KIND_PTR[rip]
cmp rdx, rax
jne .L7
mov rax, QWORD PTR -56[rbp]
mov rax, QWORD PTR [rax]
mov rcx, QWORD PTR -48[rbp]
mov rdx, QWORD PTR -56[rbp]
mov esi, DWORD PTR -36[rbp]
mov rdi, rax
call ast_binop@PLT
jmp .L5
.L7:
mov rax, QWORD PTR -48[rbp]
mov rax, QWORD PTR [rax]
mov rdi, rax
call is_arithtype@PLT
mov edi, eax
call assert@PLT
mov rax, QWORD PTR -56[rbp]
mov rax, QWORD PTR [rax]
mov rdi, rax
call is_arithtype@PLT
mov edi, eax
call assert@PLT
mov rax, QWORD PTR -56[rbp]
mov rdx, QWORD PTR [rax]
mov rax, QWORD PTR -48[rbp]
mov rax, QWORD PTR [rax]
mov rsi, rdx
mov rdi, rax
call usual_arith_conv@PLT
mov QWORD PTR -24[rbp], rax
mov rdx, QWORD PTR -56[rbp]
mov rax, QWORD PTR -24[rbp]
mov rsi, rdx
mov rdi, rax
call wrap@PLT
mov rbx, rax
mov rdx, QWORD PTR -48[rbp]
mov rax, QWORD PTR -24[rbp]
mov rsi, rdx
mov rdi, rax
call wrap@PLT
mov rdx, rax
mov esi, DWORD PTR -36[rbp]
mov rax, QWORD PTR -24[rbp]
mov rcx, rbx
mov rdi, rax
call ast_binop@PLT
.L5:
mov rbx, QWORD PTR -8[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size binop, .-binop
.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_parse.c_binop.c"
.option pic
.text
.comm KIND_PTR,8,8
.comm type_int,8,8
.comm type_long,8,8
.section .rodata
.align 3
.LC0:
.string "invalid pointer arith"
.text
.align 1
.type binop, @function
binop:
addi sp,sp,-80
sd ra,72(sp)
sd s0,64(sp)
sd s1,56(sp)
addi s0,sp,80
mv a5,a0
sd a1,-64(s0)
sd a2,-72(s0)
sw a5,-52(s0)
ld a5,-64(s0)
ld a5,0(a5)
ld a4,0(a5)
la a5,KIND_PTR
ld a5,0(a5)
bne a4,a5,.L2
ld a5,-72(s0)
ld a5,0(a5)
ld a4,0(a5)
la a5,KIND_PTR
ld a5,0(a5)
bne a4,a5,.L2
lw a5,-52(s0)
mv a0,a5
call valid_pointer_binop@plt
mv a5,a0
bnez a5,.L3
lla a0,.LC0
call error@plt
.L3:
lw a5,-52(s0)
sext.w a4,a5
li a5,45
bne a4,a5,.L4
la a5,type_long
ld a5,0(a5)
lw a4,-52(s0)
ld a3,-72(s0)
ld a2,-64(s0)
mv a1,a4
mv a0,a5
call ast_binop@plt
mv a5,a0
j .L5
.L4:
la a5,type_int
ld a5,0(a5)
lw a4,-52(s0)
ld a3,-72(s0)
ld a2,-64(s0)
mv a1,a4
mv a0,a5
call ast_binop@plt
mv a5,a0
j .L5
.L2:
ld a5,-64(s0)
ld a5,0(a5)
ld a4,0(a5)
la a5,KIND_PTR
ld a5,0(a5)
bne a4,a5,.L6
ld a5,-64(s0)
ld a5,0(a5)
lw a4,-52(s0)
ld a3,-72(s0)
ld a2,-64(s0)
mv a1,a4
mv a0,a5
call ast_binop@plt
mv a5,a0
j .L5
.L6:
ld a5,-72(s0)
ld a5,0(a5)
ld a4,0(a5)
la a5,KIND_PTR
ld a5,0(a5)
bne a4,a5,.L7
ld a5,-72(s0)
ld a5,0(a5)
lw a4,-52(s0)
ld a3,-64(s0)
ld a2,-72(s0)
mv a1,a4
mv a0,a5
call ast_binop@plt
mv a5,a0
j .L5
.L7:
ld a5,-64(s0)
ld a5,0(a5)
mv a0,a5
call is_arithtype@plt
mv a5,a0
mv a0,a5
call assert@plt
ld a5,-72(s0)
ld a5,0(a5)
mv a0,a5
call is_arithtype@plt
mv a5,a0
mv a0,a5
call assert@plt
ld a5,-64(s0)
ld a4,0(a5)
ld a5,-72(s0)
ld a5,0(a5)
mv a1,a5
mv a0,a4
call usual_arith_conv@plt
sd a0,-40(s0)
ld a1,-64(s0)
ld a0,-40(s0)
call wrap@plt
mv s1,a0
ld a1,-72(s0)
ld a0,-40(s0)
call wrap@plt
mv a4,a0
lw a5,-52(s0)
mv a3,a4
mv a2,s1
mv a1,a5
ld a0,-40(s0)
call ast_binop@plt
mv a5,a0
.L5:
mv a0,a5
ld ra,72(sp)
ld s0,64(sp)
ld s1,56(sp)
addi sp,sp,80
jr ra
.size binop, .-binop
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_parse.c_char_type.c"
.intel_syntax noprefix
.text
.globl type_int
.bss
.align 8
.type type_int, @object
.size type_int, 8
type_int:
.zero 8
.globl type_uint
.align 8
.type type_uint, @object
.size type_uint, 8
type_uint:
.zero 8
.globl type_ushort
.align 8
.type type_ushort, @object
.size type_ushort, 8
type_ushort:
.zero 8
.section .rodata
.LC0:
.string "internal error"
.text
.type char_type, @function
char_type:
.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
cmp DWORD PTR -4[rbp], 131
je .L2
cmp DWORD PTR -4[rbp], 131
jg .L3
cmp DWORD PTR -4[rbp], 129
jg .L4
cmp DWORD PTR -4[rbp], 128
jge .L5
jmp .L3
.L4:
cmp DWORD PTR -4[rbp], 130
je .L6
jmp .L3
.L5:
mov rax, QWORD PTR type_int[rip]
jmp .L1
.L2:
mov rax, QWORD PTR type_ushort[rip]
jmp .L1
.L6:
mov rax, QWORD PTR type_uint[rip]
jmp .L1
.L3:
lea rdi, .LC0[rip]
call error@PLT
.L1:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size char_type, .-char_type
.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_parse.c_char_type.c"
.option pic
.text
.comm type_int,8,8
.comm type_uint,8,8
.comm type_ushort,8,8
.section .rodata
.align 3
.LC0:
.string "internal error"
.text
.align 1
.type char_type, @function
char_type:
addi sp,sp,-32
sd ra,24(sp)
sd s0,16(sp)
addi s0,sp,32
mv a5,a0
sw a5,-20(s0)
lw a5,-20(s0)
sext.w a4,a5
li a5,131
beq a4,a5,.L2
lw a5,-20(s0)
sext.w a4,a5
li a5,131
bgt a4,a5,.L3
lw a5,-20(s0)
sext.w a4,a5
li a5,129
bgt a4,a5,.L4
lw a5,-20(s0)
sext.w a4,a5
li a5,128
bge a4,a5,.L5
j .L3
.L4:
lw a5,-20(s0)
sext.w a4,a5
li a5,130
beq a4,a5,.L6
j .L3
.L5:
la a5,type_int
ld a5,0(a5)
j .L1
.L2:
la a5,type_ushort
ld a5,0(a5)
j .L1
.L6:
la a5,type_uint
ld a5,0(a5)
j .L1
.L3:
lla a0,.LC0
call error@plt
.L1:
mv a0,a5
ld ra,24(sp)
ld s0,16(sp)
addi sp,sp,32
jr ra
.size char_type, .-char_type
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_parse.c_check_case_duplicates.c"
.intel_syntax noprefix
.text
.section .rodata
.LC0:
.string "duplicate case value: %d"
.align 8
.LC1:
.string "duplicate case value: %d ... %d"
.text
.type check_case_duplicates, @function
check_case_duplicates:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 48
mov QWORD PTR -40[rbp], rdi
mov rax, QWORD PTR -40[rbp]
mov rdi, rax
call vec_len@PLT
mov DWORD PTR -20[rbp], eax
mov eax, DWORD PTR -20[rbp]
lea edx, -1[rax]
mov rax, QWORD PTR -40[rbp]
mov esi, edx
mov rdi, rax
call vec_get@PLT
mov QWORD PTR -16[rbp], rax
mov DWORD PTR -24[rbp], 0
jmp .L2
.L7:
mov edx, DWORD PTR -24[rbp]
mov rax, QWORD PTR -40[rbp]
mov esi, edx
mov rdi, rax
call vec_get@PLT
mov QWORD PTR -8[rbp], rax
mov rax, QWORD PTR -16[rbp]
mov rdx, QWORD PTR [rax]
mov rax, QWORD PTR -8[rbp]
mov rax, QWORD PTR 8[rax]
cmp rdx, rax
jl .L8
mov rax, QWORD PTR -8[rbp]
mov rdx, QWORD PTR [rax]
mov rax, QWORD PTR -16[rbp]
mov rax, QWORD PTR 8[rax]
cmp rdx, rax
jl .L8
mov rax, QWORD PTR -16[rbp]
mov rdx, QWORD PTR 8[rax]
mov rax, QWORD PTR -16[rbp]
mov rax, QWORD PTR [rax]
cmp rdx, rax
jne .L6
mov rax, QWORD PTR -16[rbp]
mov rax, QWORD PTR 8[rax]
mov rsi, rax
lea rdi, .LC0[rip]
mov eax, 0
call error@PLT
.L6:
mov rax, QWORD PTR -16[rbp]
mov rdx, QWORD PTR [rax]
mov rax, QWORD PTR -16[rbp]
mov rax, QWORD PTR 8[rax]
mov rsi, rax
lea rdi, .LC1[rip]
mov eax, 0
call error@PLT
jmp .L5
.L8:
nop
.L5:
add DWORD PTR -24[rbp], 1
.L2:
mov eax, DWORD PTR -20[rbp]
sub eax, 1
cmp DWORD PTR -24[rbp], eax
jl .L7
nop
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size check_case_duplicates, .-check_case_duplicates
.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_parse.c_check_case_duplicates.c"
.option pic
.text
.section .rodata
.align 3
.LC0:
.string "duplicate case value: %d"
.align 3
.LC1:
.string "duplicate case value: %d ... %d"
.text
.align 1
.type check_case_duplicates, @function
check_case_duplicates:
addi sp,sp,-64
sd ra,56(sp)
sd s0,48(sp)
addi s0,sp,64
sd a0,-56(s0)
ld a0,-56(s0)
call vec_len@plt
mv a5,a0
sw a5,-36(s0)
lw a5,-36(s0)
addiw a5,a5,-1
sext.w a5,a5
mv a1,a5
ld a0,-56(s0)
call vec_get@plt
sd a0,-32(s0)
sw zero,-40(s0)
j .L2
.L7:
lw a5,-40(s0)
mv a1,a5
ld a0,-56(s0)
call vec_get@plt
sd a0,-24(s0)
ld a5,-32(s0)
ld a4,0(a5)
ld a5,-24(s0)
ld a5,8(a5)
blt a4,a5,.L8
ld a5,-24(s0)
ld a4,0(a5)
ld a5,-32(s0)
ld a5,8(a5)
blt a4,a5,.L8
ld a5,-32(s0)
ld a4,8(a5)
ld a5,-32(s0)
ld a5,0(a5)
bne a4,a5,.L6
ld a5,-32(s0)
ld a5,8(a5)
mv a1,a5
lla a0,.LC0
call error@plt
.L6:
ld a5,-32(s0)
ld a4,8(a5)
ld a5,-32(s0)
ld a5,0(a5)
mv a2,a5
mv a1,a4
lla a0,.LC1
call error@plt
j .L5
.L8:
nop
.L5:
lw a5,-40(s0)
addiw a5,a5,1
sw a5,-40(s0)
.L2:
lw a5,-36(s0)
addiw a5,a5,-1
sext.w a4,a5
lw a5,-40(s0)
sext.w a5,a5
blt a5,a4,.L7
nop
nop
ld ra,56(sp)
ld s0,48(sp)
addi sp,sp,64
jr ra
.size check_case_duplicates, .-check_case_duplicates
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_parse.c_comp_init.c"
.intel_syntax noprefix
.text
.type comp_init, @function
comp_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 QWORD PTR -24[rbp], rdi
mov QWORD PTR -32[rbp], rsi
mov rax, QWORD PTR -24[rbp]
mov rax, QWORD PTR [rax]
mov eax, DWORD PTR [rax]
mov DWORD PTR -8[rbp], eax
mov rax, QWORD PTR -32[rbp]
mov rax, QWORD PTR [rax]
mov eax, DWORD PTR [rax]
mov DWORD PTR -4[rbp], eax
mov eax, DWORD PTR -8[rbp]
cmp eax, DWORD PTR -4[rbp]
jge .L2
mov eax, -1
jmp .L3
.L2:
mov eax, DWORD PTR -8[rbp]
cmp eax, DWORD PTR -4[rbp]
jle .L4
mov eax, 1
jmp .L3
.L4:
mov eax, 0
.L3:
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size comp_init, .-comp_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_parse.c_comp_init.c"
.option pic
.text
.align 1
.type comp_init, @function
comp_init:
addi sp,sp,-48
sd s0,40(sp)
addi s0,sp,48
sd a0,-40(s0)
sd a1,-48(s0)
ld a5,-40(s0)
ld a5,0(a5)
lw a5,0(a5)
sw a5,-24(s0)
ld a5,-48(s0)
ld a5,0(a5)
lw a5,0(a5)
sw a5,-20(s0)
lw a4,-24(s0)
lw a5,-20(s0)
sext.w a4,a4
sext.w a5,a5
bge a4,a5,.L2
li a5,-1
j .L3
.L2:
lw a4,-24(s0)
lw a5,-20(s0)
sext.w a4,a4
sext.w a5,a5
ble a4,a5,.L4
li a5,1
j .L3
.L4:
li a5,0
.L3:
mv a0,a5
ld s0,40(sp)
addi sp,sp,48
jr ra
.size comp_init, .-comp_init
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_parse.c_compute_padding.c"
.intel_syntax noprefix
.text
.type compute_padding, @function
compute_padding:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov DWORD PTR -4[rbp], edi
mov DWORD PTR -8[rbp], esi
mov eax, DWORD PTR -4[rbp]
cdq
idiv DWORD PTR -8[rbp]
mov eax, edx
test eax, eax
je .L2
mov eax, DWORD PTR -4[rbp]
cdq
idiv DWORD PTR -8[rbp]
mov eax, DWORD PTR -8[rbp]
sub eax, edx
jmp .L4
.L2:
mov eax, 0
.L4:
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size compute_padding, .-compute_padding
.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_parse.c_compute_padding.c"
.option pic
.text
.align 1
.type compute_padding, @function
compute_padding:
addi sp,sp,-32
sd s0,24(sp)
addi s0,sp,32
mv a5,a0
mv a4,a1
sw a5,-20(s0)
mv a5,a4
sw a5,-24(s0)
lw a4,-20(s0)
lw a5,-24(s0)
remw a5,a4,a5
sext.w a5,a5
beqz a5,.L2
lw a4,-20(s0)
lw a5,-24(s0)
remw a5,a4,a5
sext.w a5,a5
lw a4,-24(s0)
subw a5,a4,a5
sext.w a5,a5
j .L3
.L2:
li a5,0
.L3:
mv a0,a5
ld s0,24(sp)
addi sp,sp,32
jr ra
.size compute_padding, .-compute_padding
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_parse.c_concatenate_string.c"
.intel_syntax noprefix
.text
.globl ENC_NONE
.bss
.align 4
.type ENC_NONE, @object
.size ENC_NONE, 4
ENC_NONE:
.zero 4
.globl TSTRING
.align 8
.type TSTRING, @object
.size TSTRING, 8
TSTRING:
.zero 8
.section .rodata
.align 8
.LC0:
.string "unsupported non-standard concatenation of string literals: %s"
.text
.type concatenate_string, @function
concatenate_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, 48
mov QWORD PTR -40[rbp], rdi
mov rax, QWORD PTR -40[rbp]
mov eax, DWORD PTR [rax]
mov DWORD PTR -24[rbp], eax
mov eax, 0
call make_buffer@PLT
mov QWORD PTR -16[rbp], rax
mov rax, QWORD PTR -40[rbp]
mov rax, QWORD PTR 8[rax]
lea rdx, -1[rax]
mov rax, QWORD PTR -40[rbp]
mov ecx, DWORD PTR 16[rax]
mov rax, QWORD PTR -16[rbp]
mov esi, ecx
mov rdi, rax
call buf_append@PLT
jmp .L2
.L4:
mov eax, 0
call read_token@PLT
mov QWORD PTR -8[rbp], rax
mov rax, QWORD PTR -8[rbp]
mov rax, QWORD PTR 8[rax]
lea rdx, -1[rax]
mov rax, QWORD PTR -8[rbp]
mov ecx, DWORD PTR 16[rax]
mov rax, QWORD PTR -16[rbp]
mov esi, ecx
mov rdi, rax
call buf_append@PLT
mov rax, QWORD PTR -8[rbp]
mov eax, DWORD PTR [rax]
mov DWORD PTR -20[rbp], eax
mov eax, DWORD PTR ENC_NONE[rip]
cmp DWORD PTR -24[rbp], eax
je .L3
mov eax, DWORD PTR ENC_NONE[rip]
cmp DWORD PTR -20[rbp], eax
je .L3
mov eax, DWORD PTR -24[rbp]
cmp eax, DWORD PTR -20[rbp]
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 eax, DWORD PTR ENC_NONE[rip]
cmp DWORD PTR -24[rbp], eax
jne .L2
mov eax, DWORD PTR -20[rbp]
mov DWORD PTR -24[rbp], eax
.L2:
mov eax, 0
call peek@PLT
mov rdx, QWORD PTR [rax]
mov rax, QWORD PTR TSTRING[rip]
cmp rdx, rax
je .L4
mov rax, QWORD PTR -16[rbp]
mov esi, 0
mov rdi, rax
call buf_write@PLT
mov rax, QWORD PTR -16[rbp]
mov rdi, rax
call buf_body@PLT
mov rdx, QWORD PTR -40[rbp]
mov DWORD PTR 16[rdx], eax
mov rax, QWORD PTR -16[rbp]
mov rdi, rax
call buf_len@PLT
mov rdx, QWORD PTR -40[rbp]
mov QWORD PTR 8[rdx], rax
mov rax, QWORD PTR -40[rbp]
mov edx, DWORD PTR -24[rbp]
mov DWORD PTR [rax], edx
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size concatenate_string, .-concatenate_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_parse.c_concatenate_string.c"
.option pic
.text
.comm ENC_NONE,4,4
.comm TSTRING,8,8
.section .rodata
.align 3
.LC0:
.string "unsupported non-standard concatenation of string literals: %s"
.text
.align 1
.type concatenate_string, @function
concatenate_string:
addi sp,sp,-64
sd ra,56(sp)
sd s0,48(sp)
addi s0,sp,64
sd a0,-56(s0)
ld a5,-56(s0)
lw a5,0(a5)
sw a5,-40(s0)
call make_buffer@plt
sd a0,-32(s0)
ld a5,-56(s0)
lw a4,16(a5)
ld a5,-56(s0)
ld a5,8(a5)
addi a5,a5,-1
mv a2,a5
mv a1,a4
ld a0,-32(s0)
call buf_append@plt
j .L2
.L4:
call read_token@plt
sd a0,-24(s0)
ld a5,-24(s0)
lw a4,16(a5)
ld a5,-24(s0)
ld a5,8(a5)
addi a5,a5,-1
mv a2,a5
mv a1,a4
ld a0,-32(s0)
call buf_append@plt
ld a5,-24(s0)
lw a5,0(a5)
sw a5,-36(s0)
la a5,ENC_NONE
lw a4,0(a5)
lw a5,-40(s0)
sext.w a5,a5
beq a5,a4,.L3
la a5,ENC_NONE
lw a4,0(a5)
lw a5,-36(s0)
sext.w a5,a5
beq a5,a4,.L3
lw a4,-40(s0)
lw a5,-36(s0)
sext.w a4,a4
sext.w a5,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,ENC_NONE
lw a4,0(a5)
lw a5,-40(s0)
sext.w a5,a5
bne a5,a4,.L2
lw a5,-36(s0)
sw a5,-40(s0)
.L2:
call peek@plt
mv a5,a0
ld a4,0(a5)
la a5,TSTRING
ld a5,0(a5)
beq a4,a5,.L4
li a1,0
ld a0,-32(s0)
call buf_write@plt
ld a0,-32(s0)
call buf_body@plt
mv a5,a0
mv a4,a5
ld a5,-56(s0)
sw a4,16(a5)
ld a0,-32(s0)
call buf_len@plt
mv a4,a0
ld a5,-56(s0)
sd a4,8(a5)
ld a5,-56(s0)
lw a4,-40(s0)
sw a4,0(a5)
nop
ld ra,56(sp)
ld s0,48(sp)
addi sp,sp,64
jr ra
.size concatenate_string, .-concatenate_string
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_parse.c_conv.c"
.intel_syntax noprefix
.text
.globl AST_ADDR
.bss
.align 4
.type AST_ADDR, @object
.size AST_ADDR, 4
AST_ADDR:
.zero 4
.globl AST_CONV
.align 4
.type AST_CONV, @object
.size AST_CONV, 4
AST_CONV:
.zero 4
.globl type_int
.align 4
.type type_int, @object
.size type_int, 4
type_int:
.zero 4
.text
.type conv, @function
conv:
.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
cmp QWORD PTR -24[rbp], 0
jne .L2
mov eax, 0
jmp .L3
.L2:
mov rax, QWORD PTR -24[rbp]
mov rax, QWORD PTR [rax]
mov QWORD PTR -8[rbp], rax
mov rax, QWORD PTR -8[rbp]
mov eax, DWORD PTR [rax]
add eax, -128
cmp eax, 5
ja .L4
mov eax, eax
lea rdx, 0[0+rax*4]
lea rax, .L6[rip]
mov eax, DWORD PTR [rdx+rax]
cdqe
lea rdx, .L6[rip]
add rax, rdx
notrack jmp rax
.section .rodata
.align 4
.align 4
.L6:
.long .L7-.L6
.long .L9-.L6
.long .L8-.L6
.long .L7-.L6
.long .L7-.L6
.long .L5-.L6
.text
.L5:
mov rax, QWORD PTR -8[rbp]
mov rax, QWORD PTR 8[rax]
mov rdi, rax
call make_ptr_type@PLT
mov ecx, eax
mov eax, DWORD PTR AST_CONV[rip]
mov rdx, QWORD PTR -24[rbp]
mov esi, ecx
mov edi, eax
call ast_uop@PLT
jmp .L3
.L8:
mov rax, QWORD PTR -8[rbp]
mov rdi, rax
call make_ptr_type@PLT
mov ecx, eax
mov eax, DWORD PTR AST_ADDR[rip]
mov rdx, QWORD PTR -24[rbp]
mov esi, ecx
mov edi, eax
call ast_uop@PLT
jmp .L3
.L7:
mov eax, DWORD PTR type_int[rip]
mov rdx, QWORD PTR -24[rbp]
mov rsi, rdx
mov edi, eax
call ast_conv@PLT
jmp .L3
.L9:
mov rax, QWORD PTR -8[rbp]
mov eax, DWORD PTR 4[rax]
test eax, eax
jle .L4
mov eax, DWORD PTR type_int[rip]
mov rdx, QWORD PTR -24[rbp]
mov rsi, rdx
mov edi, eax
call ast_conv@PLT
jmp .L3
.L4:
mov rax, QWORD PTR -24[rbp]
.L3:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size conv, .-conv
.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_parse.c_conv.c"
.option pic
.text
.comm AST_ADDR,4,4
.comm AST_CONV,4,4
.comm type_int,4,4
.align 1
.type conv, @function
conv:
addi sp,sp,-64
sd ra,56(sp)
sd s0,48(sp)
sd s1,40(sp)
addi s0,sp,64
sd a0,-56(s0)
ld a5,-56(s0)
bnez a5,.L2
li a5,0
j .L3
.L2:
ld a5,-56(s0)
ld a5,0(a5)
sd a5,-40(s0)
ld a5,-40(s0)
lw a5,0(a5)
addiw a3,a5,-128
sext.w a4,a3
li a5,5
bgtu a4,a5,.L4
slli a5,a3,32
srli a5,a5,32
slli a4,a5,2
lla a5,.L6
add a5,a4,a5
lw a5,0(a5)
sext.w a4,a5
lla a5,.L6
add a5,a4,a5
jr a5
.section .rodata
.align 2
.align 2
.L6:
.word .L7-.L6
.word .L9-.L6
.word .L8-.L6
.word .L7-.L6
.word .L7-.L6
.word .L5-.L6
.text
.L5:
la a5,AST_CONV
lw s1,0(a5)
ld a5,-40(s0)
ld a5,8(a5)
mv a0,a5
call make_ptr_type@plt
mv a5,a0
ld a2,-56(s0)
mv a1,a5
mv a0,s1
call ast_uop@plt
mv a5,a0
j .L3
.L8:
la a5,AST_ADDR
lw s1,0(a5)
ld a0,-40(s0)
call make_ptr_type@plt
mv a5,a0
ld a2,-56(s0)
mv a1,a5
mv a0,s1
call ast_uop@plt
mv a5,a0
j .L3
.L7:
la a5,type_int
lw a5,0(a5)
ld a1,-56(s0)
mv a0,a5
call ast_conv@plt
mv a5,a0
j .L3
.L9:
ld a5,-40(s0)
lw a5,4(a5)
blez a5,.L4
la a5,type_int
lw a5,0(a5)
ld a1,-56(s0)
mv a0,a5
call ast_conv@plt
mv a5,a0
j .L3
.L4:
ld a5,-56(s0)
.L3:
mv a0,a5
ld ra,56(sp)
ld s0,48(sp)
ld s1,40(sp)
addi sp,sp,64
jr ra
.size conv, .-conv
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_parse.c_copy_incomplete_type.c"
.intel_syntax noprefix
.text
.type copy_incomplete_type, @function
copy_incomplete_type:
.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
cmp QWORD PTR -8[rbp], 0
jne .L2
mov eax, 0
jmp .L3
.L2:
mov rax, QWORD PTR -8[rbp]
mov eax, DWORD PTR [rax]
cmp eax, -1
jne .L4
mov rax, QWORD PTR -8[rbp]
mov rdi, rax
call copy_type@PLT
jmp .L3
.L4:
mov rax, QWORD PTR -8[rbp]
.L3:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size copy_incomplete_type, .-copy_incomplete_type
.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_parse.c_copy_incomplete_type.c"
.option pic
.text
.align 1
.type copy_incomplete_type, @function
copy_incomplete_type:
addi sp,sp,-32
sd ra,24(sp)
sd s0,16(sp)
addi s0,sp,32
sd a0,-24(s0)
ld a5,-24(s0)
bnez a5,.L2
li a5,0
j .L3
.L2:
ld a5,-24(s0)
lw a5,0(a5)
mv a4,a5
li a5,-1
bne a4,a5,.L4
ld a0,-24(s0)
call copy_type@plt
mv a5,a0
j .L3
.L4:
ld a5,-24(s0)
.L3:
mv a0,a5
ld ra,24(sp)
ld s0,16(sp)
addi sp,sp,32
jr ra
.size copy_incomplete_type, .-copy_incomplete_type
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_parse.c_copy_type.c"
.intel_syntax noprefix
.text
.type copy_type, @function
copy_type:
.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 rcx, QWORD PTR -24[rbp]
mov rax, QWORD PTR -8[rbp]
mov edx, 4
mov rsi, rcx
mov rdi, rax
call memcpy@PLT
mov rax, QWORD PTR -8[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size copy_type, .-copy_type
.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_parse.c_copy_type.c"
.option pic
.text
.align 1
.type copy_type, @function
copy_type:
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)
li a2,4
ld a1,-40(s0)
ld a0,-24(s0)
call memcpy@plt
ld a5,-24(s0)
mv a0,a5
ld ra,40(sp)
ld s0,32(sp)
addi sp,sp,48
jr ra
.size copy_type, .-copy_type
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_parse.c_define_builtin.c"
.intel_syntax noprefix
.text
.type define_builtin, @function
define_builtin:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 32
mov QWORD PTR -8[rbp], rdi
mov QWORD PTR -16[rbp], rsi
mov QWORD PTR -24[rbp], rdx
mov rsi, QWORD PTR -24[rbp]
mov rax, QWORD PTR -16[rbp]
mov ecx, 0
mov edx, 1
mov rdi, rax
call make_func_type@PLT
mov edx, eax
mov rax, QWORD PTR -8[rbp]
mov rsi, rax
mov edi, edx
call ast_gvar@PLT
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size define_builtin, .-define_builtin
.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_parse.c_define_builtin.c"
.option pic
.text
.align 1
.type define_builtin, @function
define_builtin:
addi sp,sp,-48
sd ra,40(sp)
sd s0,32(sp)
addi s0,sp,48
sd a0,-24(s0)
sd a1,-32(s0)
sd a2,-40(s0)
li a3,0
li a2,1
ld a1,-40(s0)
ld a0,-32(s0)
call make_func_type@plt
mv a5,a0
ld a1,-24(s0)
mv a0,a5
call ast_gvar@plt
nop
ld ra,40(sp)
ld s0,32(sp)
addi sp,sp,48
jr ra
.size define_builtin, .-define_builtin
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_parse.c_do_read_conditional_expr.c"
.intel_syntax noprefix
.text
.type do_read_conditional_expr, @function
do_read_conditional_expr:
.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, 72
.cfi_offset 3, -24
mov QWORD PTR -72[rbp], rdi
mov eax, 0
call read_comma_expr@PLT
mov edi, eax
call conv@PLT
mov QWORD PTR -56[rbp], rax
mov edi, 58
call expect@PLT
mov eax, 0
call read_conditional_expr@PLT
mov edi, eax
call conv@PLT
mov QWORD PTR -48[rbp], rax
cmp QWORD PTR -56[rbp], 0
je .L2
mov rax, QWORD PTR -56[rbp]
mov rax, QWORD PTR [rax]
jmp .L3
.L2:
mov rax, QWORD PTR -72[rbp]
mov rax, QWORD PTR [rax]
.L3:
mov QWORD PTR -40[rbp], rax
mov rax, QWORD PTR -48[rbp]
mov rax, QWORD PTR [rax]
mov QWORD PTR -32[rbp], rax
mov rax, QWORD PTR -40[rbp]
mov rdi, rax
call is_arithtype@PLT
test rax, rax
je .L4
mov rax, QWORD PTR -32[rbp]
mov rdi, rax
call is_arithtype@PLT
test rax, rax
je .L4
mov rdx, QWORD PTR -32[rbp]
mov rax, QWORD PTR -40[rbp]
mov rsi, rdx
mov rdi, rax
call usual_arith_conv@PLT
mov QWORD PTR -24[rbp], rax
mov rdx, QWORD PTR -48[rbp]
mov rax, QWORD PTR -24[rbp]
mov rsi, rdx
mov rdi, rax
call wrap@PLT
mov rbx, rax
cmp QWORD PTR -56[rbp], 0
je .L5
mov rdx, QWORD PTR -56[rbp]
mov rax, QWORD PTR -24[rbp]
mov rsi, rdx
mov rdi, rax
call wrap@PLT
mov rdx, rax
jmp .L6
.L5:
mov edx, 0
.L6:
mov rsi, QWORD PTR -72[rbp]
mov rax, QWORD PTR -24[rbp]
mov rcx, rbx
mov rdi, rax
call ast_ternary@PLT
jmp .L7
.L4:
mov rcx, QWORD PTR -48[rbp]
mov rdx, QWORD PTR -56[rbp]
mov rsi, QWORD PTR -72[rbp]
mov rax, QWORD PTR -32[rbp]
mov rdi, rax
call ast_ternary@PLT
.L7:
mov rbx, QWORD PTR -8[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size do_read_conditional_expr, .-do_read_conditional_expr
.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_parse.c_do_read_conditional_expr.c"
.option pic
.text
.align 1
.type do_read_conditional_expr, @function
do_read_conditional_expr:
addi sp,sp,-96
sd ra,88(sp)
sd s0,80(sp)
sd s1,72(sp)
addi s0,sp,96
sd a0,-88(s0)
call read_comma_expr@plt
mv a5,a0
mv a0,a5
call conv@plt
sd a0,-72(s0)
li a0,58
call expect@plt
call read_conditional_expr@plt
mv a5,a0
mv a0,a5
call conv@plt
sd a0,-64(s0)
ld a5,-72(s0)
beqz a5,.L2
ld a5,-72(s0)
ld a5,0(a5)
j .L3
.L2:
ld a5,-88(s0)
ld a5,0(a5)
.L3:
sd a5,-56(s0)
ld a5,-64(s0)
ld a5,0(a5)
sd a5,-48(s0)
ld a0,-56(s0)
call is_arithtype@plt
mv a5,a0
beqz a5,.L4
ld a0,-48(s0)
call is_arithtype@plt
mv a5,a0
beqz a5,.L4
ld a1,-48(s0)
ld a0,-56(s0)
call usual_arith_conv@plt
sd a0,-40(s0)
ld a5,-72(s0)
beqz a5,.L5
ld a1,-72(s0)
ld a0,-40(s0)
call wrap@plt
mv s1,a0
j .L6
.L5:
li s1,0
.L6:
ld a1,-64(s0)
ld a0,-40(s0)
call wrap@plt
mv a5,a0
mv a3,a5
mv a2,s1
ld a1,-88(s0)
ld a0,-40(s0)
call ast_ternary@plt
mv a5,a0
j .L7
.L4:
ld a3,-64(s0)
ld a2,-72(s0)
ld a1,-88(s0)
ld a0,-48(s0)
call ast_ternary@plt
mv a5,a0
.L7:
mv a0,a5
ld ra,88(sp)
ld s0,80(sp)
ld s1,72(sp)
addi sp,sp,96
jr ra
.size do_read_conditional_expr, .-do_read_conditional_expr
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_parse.c_ensure_arithtype.c"
.intel_syntax noprefix
.text
.section .rodata
.align 8
.LC0:
.string "arithmetic type expected, but got %s"
.text
.type ensure_arithtype, @function
ensure_arithtype:
.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 eax, DWORD PTR [rax]
mov edi, eax
call is_arithtype@PLT
test eax, eax
jne .L3
mov rax, QWORD PTR -8[rbp]
mov rdi, rax
call node2s@PLT
mov esi, eax
lea rdi, .LC0[rip]
call error@PLT
.L3:
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ensure_arithtype, .-ensure_arithtype
.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_parse.c_ensure_arithtype.c"
.option pic
.text
.section .rodata
.align 3
.LC0:
.string "arithmetic type expected, but got %s"
.text
.align 1
.type ensure_arithtype, @function
ensure_arithtype:
addi sp,sp,-32
sd ra,24(sp)
sd s0,16(sp)
addi s0,sp,32
sd a0,-24(s0)
ld a5,-24(s0)
lw a5,0(a5)
mv a0,a5
call is_arithtype@plt
mv a5,a0
bnez a5,.L3
ld a0,-24(s0)
call node2s@plt
mv a5,a0
mv a1,a5
lla a0,.LC0
call error@plt
.L3:
nop
ld ra,24(sp)
ld s0,16(sp)
addi sp,sp,32
jr ra
.size ensure_arithtype, .-ensure_arithtype
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_parse.c_ensure_assignable.c"
.intel_syntax noprefix
.text
.globl KIND_PTR
.bss
.align 8
.type KIND_PTR, @object
.size KIND_PTR, 8
KIND_PTR:
.zero 8
.section .rodata
.LC0:
.string "incompatible kind: <%s> <%s>"
.text
.type ensure_assignable, @function
ensure_assignable:
.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 QWORD PTR -32[rbp], rsi
mov rax, QWORD PTR -24[rbp]
mov rdi, rax
call is_arithtype@PLT
test rax, rax
jne .L2
mov rax, QWORD PTR -24[rbp]
mov rdx, QWORD PTR [rax]
mov rax, QWORD PTR KIND_PTR[rip]
cmp rdx, rax
jne .L3
.L2:
mov rax, QWORD PTR -32[rbp]
mov rdi, rax
call is_arithtype@PLT
test rax, rax
jne .L7
mov rax, QWORD PTR -32[rbp]
mov rdx, QWORD PTR [rax]
mov rax, QWORD PTR KIND_PTR[rip]
cmp rdx, rax
je .L7
.L3:
mov rdx, QWORD PTR -32[rbp]
mov rax, QWORD PTR -24[rbp]
mov rsi, rdx
mov rdi, rax
call is_same_struct@PLT
test rax, rax
jne .L8
mov rax, QWORD PTR -32[rbp]
mov rdi, rax
call ty2s@PLT
mov rbx, rax
mov rax, QWORD PTR -24[rbp]
mov rdi, rax
call ty2s@PLT
mov rdx, rbx
mov rsi, rax
lea rdi, .LC0[rip]
call error@PLT
jmp .L1
.L7:
nop
jmp .L1
.L8:
nop
.L1:
mov rbx, QWORD PTR -8[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ensure_assignable, .-ensure_assignable
.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_parse.c_ensure_assignable.c"
.option pic
.text
.comm KIND_PTR,8,8
.section .rodata
.align 3
.LC0:
.string "incompatible kind: <%s> <%s>"
.text
.align 1
.type ensure_assignable, @function
ensure_assignable:
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)
ld a0,-40(s0)
call is_arithtype@plt
mv a5,a0
bnez a5,.L2
ld a5,-40(s0)
ld a4,0(a5)
la a5,KIND_PTR
ld a5,0(a5)
bne a4,a5,.L3
.L2:
ld a0,-48(s0)
call is_arithtype@plt
mv a5,a0
bnez a5,.L7
ld a5,-48(s0)
ld a4,0(a5)
la a5,KIND_PTR
ld a5,0(a5)
beq a4,a5,.L7
.L3:
ld a1,-48(s0)
ld a0,-40(s0)
call is_same_struct@plt
mv a5,a0
bnez a5,.L8
ld a0,-40(s0)
call ty2s@plt
mv s1,a0
ld a0,-48(s0)
call ty2s@plt
mv a5,a0
mv a2,a5
mv a1,s1
lla a0,.LC0
call error@plt
j .L1
.L7:
nop
j .L1
.L8:
nop
.L1:
ld ra,40(sp)
ld s0,32(sp)
ld s1,24(sp)
addi sp,sp,48
jr ra
.size ensure_assignable, .-ensure_assignable
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_parse.c_ensure_inttype.c"
.intel_syntax noprefix
.text
.section .rodata
.align 8
.LC0:
.string "integer type expected, but got %s"
.text
.type ensure_inttype, @function
ensure_inttype:
.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 eax, DWORD PTR [rax]
mov edi, eax
call is_inttype@PLT
test eax, eax
jne .L3
mov rax, QWORD PTR -8[rbp]
mov rdi, rax
call node2s@PLT
mov esi, eax
lea rdi, .LC0[rip]
call error@PLT
.L3:
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ensure_inttype, .-ensure_inttype
.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_parse.c_ensure_inttype.c"
.option pic
.text
.section .rodata
.align 3
.LC0:
.string "integer type expected, but got %s"
.text
.align 1
.type ensure_inttype, @function
ensure_inttype:
addi sp,sp,-32
sd ra,24(sp)
sd s0,16(sp)
addi s0,sp,32
sd a0,-24(s0)
ld a5,-24(s0)
lw a5,0(a5)
mv a0,a5
call is_inttype@plt
mv a5,a0
bnez a5,.L3
ld a0,-24(s0)
call node2s@plt
mv a5,a0
mv a1,a5
lla a0,.LC0
call error@plt
.L3:
nop
ld ra,24(sp)
ld s0,16(sp)
addi sp,sp,32
jr ra
.size ensure_inttype, .-ensure_inttype
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_parse.c_ensure_lvalue.c"
.intel_syntax noprefix
.text
.section .rodata
.LC0:
.string "lvalue expected, but got %s"
.text
.type ensure_lvalue, @function
ensure_lvalue:
.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 eax, DWORD PTR [rax]
add eax, -128
cmp eax, 3
jbe .L4
mov rax, QWORD PTR -8[rbp]
mov rdi, rax
call node2s@PLT
mov esi, eax
lea rdi, .LC0[rip]
call error@PLT
jmp .L1
.L4:
nop
.L1:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ensure_lvalue, .-ensure_lvalue
.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_parse.c_ensure_lvalue.c"
.option pic
.text
.section .rodata
.align 3
.LC0:
.string "lvalue expected, but got %s"
.text
.align 1
.type ensure_lvalue, @function
ensure_lvalue:
addi sp,sp,-32
sd ra,24(sp)
sd s0,16(sp)
addi s0,sp,32
sd a0,-24(s0)
ld a5,-24(s0)
lw a5,0(a5)
sext.w a5,a5
addiw a5,a5,-128
sext.w a5,a5
mv a4,a5
li a5,3
bleu a4,a5,.L4
ld a0,-24(s0)
call node2s@plt
mv a5,a0
mv a1,a5
lla a0,.LC0
call error@plt
j .L1
.L4:
nop
.L1:
ld ra,24(sp)
ld s0,16(sp)
addi sp,sp,32
jr ra
.size ensure_lvalue, .-ensure_lvalue
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_parse.c_ensure_not_void.c"
.intel_syntax noprefix
.text
.globl KIND_VOID
.bss
.align 8
.type KIND_VOID, @object
.size KIND_VOID, 8
KIND_VOID:
.zero 8
.section .rodata
.LC0:
.string "void is not allowed"
.text
.type ensure_not_void, @function
ensure_not_void:
.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 rdx, QWORD PTR [rax]
mov rax, QWORD PTR KIND_VOID[rip]
cmp rdx, rax
jne .L3
lea rdi, .LC0[rip]
call error@PLT
.L3:
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size ensure_not_void, .-ensure_not_void
.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_parse.c_ensure_not_void.c"
.option pic
.text
.comm KIND_VOID,8,8
.section .rodata
.align 3
.LC0:
.string "void is not allowed"
.text
.align 1
.type ensure_not_void, @function
ensure_not_void:
addi sp,sp,-32
sd ra,24(sp)
sd s0,16(sp)
addi s0,sp,32
sd a0,-24(s0)
ld a5,-24(s0)
ld a4,0(a5)
la a5,KIND_VOID
ld a5,0(a5)
bne a4,a5,.L3
lla a0,.LC0
call error@plt
.L3:
nop
ld ra,24(sp)
ld s0,16(sp)
addi sp,sp,32
jr ra
.size ensure_not_void, .-ensure_not_void
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_parse.c_env.c"
.intel_syntax noprefix
.text
.globl globalenv
.bss
.align 8
.type globalenv, @object
.size globalenv, 8
globalenv:
.zero 8
.globl localenv
.align 8
.type localenv, @object
.size localenv, 8
localenv:
.zero 8
.text
.type env, @function
env:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov rax, QWORD PTR localenv[rip]
test rax, rax
je .L2
mov rax, QWORD PTR localenv[rip]
jmp .L4
.L2:
mov rax, QWORD PTR globalenv[rip]
.L4:
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size env, .-env
.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_parse.c_env.c"
.option pic
.text
.comm globalenv,8,8
.comm localenv,8,8
.align 1
.type env, @function
env:
addi sp,sp,-16
sd s0,8(sp)
addi s0,sp,16
la a5,localenv
ld a5,0(a5)
beqz a5,.L2
la a5,localenv
ld a5,0(a5)
j .L4
.L2:
la a5,globalenv
ld a5,0(a5)
.L4:
mv a0,a5
ld s0,8(sp)
addi sp,sp,16
jr ra
.size env, .-env
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_parse.c_eval_struct_ref.c"
.intel_syntax noprefix
.text
.globl AST_STRUCT_REF
.bss
.align 8
.type AST_STRUCT_REF, @object
.size AST_STRUCT_REF, 8
AST_STRUCT_REF:
.zero 8
.text
.type eval_struct_ref, @function
eval_struct_ref:
.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 DWORD PTR -12[rbp], esi
mov rax, QWORD PTR -8[rbp]
mov rdx, QWORD PTR [rax]
mov rax, QWORD PTR AST_STRUCT_REF[rip]
cmp rdx, rax
jne .L2
mov rax, QWORD PTR -8[rbp]
mov rax, QWORD PTR 8[rax]
mov edx, DWORD PTR [rax]
mov eax, DWORD PTR -12[rbp]
add edx, eax
mov rax, QWORD PTR -8[rbp]
mov rax, QWORD PTR 16[rax]
mov esi, edx
mov rdi, rax
call eval_struct_ref
jmp .L3
.L2:
mov rax, QWORD PTR -8[rbp]
mov esi, 0
mov rdi, rax
call eval_intexpr@PLT
mov edx, DWORD PTR -12[rbp]
add eax, edx
.L3:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size eval_struct_ref, .-eval_struct_ref
.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_parse.c_eval_struct_ref.c"
.option pic
.text
.comm AST_STRUCT_REF,8,8
.align 1
.type eval_struct_ref, @function
eval_struct_ref:
addi sp,sp,-32
sd ra,24(sp)
sd s0,16(sp)
addi s0,sp,32
sd a0,-24(s0)
mv a5,a1
sw a5,-28(s0)
ld a5,-24(s0)
ld a4,0(a5)
la a5,AST_STRUCT_REF
ld a5,0(a5)
bne a4,a5,.L2
ld a5,-24(s0)
ld a3,16(a5)
ld a5,-24(s0)
ld a5,8(a5)
lw a5,0(a5)
lw a4,-28(s0)
addw a5,a4,a5
sext.w a5,a5
mv a1,a5
mv a0,a3
call eval_struct_ref
mv a5,a0
j .L3
.L2:
li a1,0
ld a0,-24(s0)
call eval_intexpr@plt
mv a5,a0
mv a4,a5
lw a5,-28(s0)
addw a5,a5,a4
sext.w a5,a5
.L3:
mv a0,a5
ld ra,24(sp)
ld s0,16(sp)
addi sp,sp,32
jr ra
.size eval_struct_ref, .-eval_struct_ref
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_parse.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 get@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_parse.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 get@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_parse.c_finish_bitfield.c"
.intel_syntax noprefix
.text
.type finish_bitfield, @function
finish_bitfield:
.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 QWORD PTR -16[rbp], rsi
mov rax, QWORD PTR -8[rbp]
mov ecx, DWORD PTR [rax]
mov rax, QWORD PTR -16[rbp]
mov eax, DWORD PTR [rax]
add eax, 7
lea edx, 7[rax]
test eax, eax
cmovs eax, edx
sar eax, 3
lea edx, [rcx+rax]
mov rax, QWORD PTR -8[rbp]
mov DWORD PTR [rax], edx
mov rax, QWORD PTR -16[rbp]
mov DWORD PTR [rax], 0
nop
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size finish_bitfield, .-finish_bitfield
.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_parse.c_finish_bitfield.c"
.option pic
.text
.align 1
.type finish_bitfield, @function
finish_bitfield:
addi sp,sp,-32
sd s0,24(sp)
addi s0,sp,32
sd a0,-24(s0)
sd a1,-32(s0)
ld a5,-24(s0)
lw a4,0(a5)
ld a5,-32(s0)
lw a5,0(a5)
addiw a5,a5,7
sext.w a5,a5
sraiw a3,a5,31
srliw a3,a3,29
addw a5,a3,a5
sraiw a5,a5,3
sext.w a5,a5
addw a5,a4,a5
sext.w a4,a5
ld a5,-24(s0)
sw a4,0(a5)
ld a5,-32(s0)
sw zero,0(a5)
nop
ld s0,24(sp)
addi sp,sp,32
jr ra
.size finish_bitfield, .-finish_bitfield
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_parse.c_fix_rectype_flexible_member.c"
.intel_syntax noprefix
.text
.globl KIND_ARRAY
.bss
.align 8
.type KIND_ARRAY, @object
.size KIND_ARRAY, 8
KIND_ARRAY:
.zero 8
.section .rodata
.align 8
.LC0:
.string "flexible member may only appear as the last member: %s %s"
.align 8
.LC1:
.string "flexible member with no other fields: %s %s"
.text
.type fix_rectype_flexible_member, @function
fix_rectype_flexible_member:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 48
mov QWORD PTR -40[rbp], rdi
mov DWORD PTR -28[rbp], 0
jmp .L2
.L7:
mov edx, DWORD PTR -28[rbp]
mov rax, QWORD PTR -40[rbp]
mov esi, edx
mov rdi, rax
call vec_get@PLT
mov QWORD PTR -24[rbp], rax
mov rax, QWORD PTR -24[rbp]
mov rax, QWORD PTR [rax]
mov QWORD PTR -16[rbp], rax
mov rax, QWORD PTR -24[rbp]
mov rax, QWORD PTR 8[rax]
mov QWORD PTR -8[rbp], rax
mov rax, QWORD PTR -8[rbp]
mov rdx, QWORD PTR [rax]
mov rax, QWORD PTR KIND_ARRAY[rip]
cmp rdx, rax
jne .L8
mov rax, QWORD PTR -8[rbp]
mov eax, DWORD PTR 8[rax]
cmp eax, -1
jne .L4
mov rax, QWORD PTR -40[rbp]
mov rdi, rax
call vec_len@PLT
sub eax, 1
cmp DWORD PTR -28[rbp], eax
je .L5
mov rax, QWORD PTR -8[rbp]
mov rdi, rax
call ty2s@PLT
mov ecx, eax
mov rax, QWORD PTR -16[rbp]
mov rdx, rax
mov esi, ecx
lea rdi, .LC0[rip]
call error@PLT
.L5:
mov rax, QWORD PTR -40[rbp]
mov rdi, rax
call vec_len@PLT
cmp eax, 1
jne .L6
mov rax, QWORD PTR -8[rbp]
mov rdi, rax
call ty2s@PLT
mov ecx, eax
mov rax, QWORD PTR -16[rbp]
mov rdx, rax
mov esi, ecx
lea rdi, .LC1[rip]
call error@PLT
.L6:
mov rax, QWORD PTR -8[rbp]
mov DWORD PTR 8[rax], 0
mov rax, QWORD PTR -8[rbp]
mov QWORD PTR 16[rax], 0
jmp .L4
.L8:
nop
.L4:
add DWORD PTR -28[rbp], 1
.L2:
mov rax, QWORD PTR -40[rbp]
mov rdi, rax
call vec_len@PLT
cmp DWORD PTR -28[rbp], eax
jl .L7
nop
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size fix_rectype_flexible_member, .-fix_rectype_flexible_member
.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_parse.c_fix_rectype_flexible_member.c"
.option pic
.text
.comm KIND_ARRAY,8,8
.section .rodata
.align 3
.LC0:
.string "flexible member may only appear as the last member: %s %s"
.align 3
.LC1:
.string "flexible member with no other fields: %s %s"
.text
.align 1
.type fix_rectype_flexible_member, @function
fix_rectype_flexible_member:
addi sp,sp,-64
sd ra,56(sp)
sd s0,48(sp)
addi s0,sp,64
sd a0,-56(s0)
sw zero,-44(s0)
j .L2
.L7:
lw a5,-44(s0)
mv a1,a5
ld a0,-56(s0)
call vec_get@plt
sd a0,-40(s0)
ld a5,-40(s0)
ld a5,0(a5)
sd a5,-32(s0)
ld a5,-40(s0)
ld a5,8(a5)
sd a5,-24(s0)
ld a5,-24(s0)
ld a4,0(a5)
la a5,KIND_ARRAY
ld a5,0(a5)
bne a4,a5,.L8
ld a5,-24(s0)
lw a5,8(a5)
mv a4,a5
li a5,-1
bne a4,a5,.L4
ld a0,-56(s0)
call vec_len@plt
mv a5,a0
addiw a5,a5,-1
sext.w a4,a5
lw a5,-44(s0)
sext.w a5,a5
beq a5,a4,.L5
ld a0,-24(s0)
call ty2s@plt
mv a5,a0
ld a2,-32(s0)
mv a1,a5
lla a0,.LC0
call error@plt
.L5:
ld a0,-56(s0)
call vec_len@plt
mv a5,a0
mv a4,a5
li a5,1
bne a4,a5,.L6
ld a0,-24(s0)
call ty2s@plt
mv a5,a0
ld a2,-32(s0)
mv a1,a5
lla a0,.LC1
call error@plt
.L6:
ld a5,-24(s0)
sw zero,8(a5)
ld a5,-24(s0)
sd zero,16(a5)
j .L4
.L8:
nop
.L4:
lw a5,-44(s0)
addiw a5,a5,1
sw a5,-44(s0)
.L2:
ld a0,-56(s0)
call vec_len@plt
mv a5,a0
mv a4,a5
lw a5,-44(s0)
sext.w a5,a5
blt a5,a4,.L7
nop
nop
ld ra,56(sp)
ld s0,48(sp)
addi sp,sp,64
jr ra
.size fix_rectype_flexible_member, .-fix_rectype_flexible_member
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_parse.c_get.c"
.intel_syntax noprefix
.text
.globl TINVALID
.bss
.align 8
.type TINVALID, @object
.size TINVALID, 8
TINVALID:
.zero 8
.globl TSTRING
.align 8
.type TSTRING, @object
.size TSTRING, 8
TSTRING:
.zero 8
.section .rodata
.align 8
.LC0:
.string "stray character in program: '%c'"
.text
.type get, @function
get:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 16
mov 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 TINVALID[rip]
cmp rdx, rax
jne .L2
mov rax, QWORD PTR -8[rbp]
mov edx, DWORD PTR 8[rax]
mov rax, QWORD PTR -8[rbp]
lea rsi, .LC0[rip]
mov rdi, rax
call errort@PLT
.L2:
mov rax, QWORD PTR -8[rbp]
mov rdx, QWORD PTR [rax]
mov rax, QWORD PTR TSTRING[rip]
cmp rdx, rax
jne .L3
mov eax, 0
call peek@PLT
mov rdx, QWORD PTR [rax]
mov rax, QWORD PTR TSTRING[rip]
cmp rdx, rax
jne .L3
mov rax, QWORD PTR -8[rbp]
mov rdi, rax
call concatenate_string@PLT
.L3:
mov rax, QWORD PTR -8[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size get, .-get
.ident "GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4:
|
.file "extr_parse.c_get.c"
.option pic
.text
.comm TINVALID,8,8
.comm TSTRING,8,8
.section .rodata
.align 3
.LC0:
.string "stray character in program: '%c'"
.text
.align 1
.type get, @function
get:
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 a5,-24(s0)
ld a4,0(a5)
la a5,TINVALID
ld a5,0(a5)
bne a4,a5,.L2
ld a5,-24(s0)
lw a5,8(a5)
mv a2,a5
lla a1,.LC0
ld a0,-24(s0)
call errort@plt
.L2:
ld a5,-24(s0)
ld a4,0(a5)
la a5,TSTRING
ld a5,0(a5)
bne a4,a5,.L3
call peek@plt
mv a5,a0
ld a4,0(a5)
la a5,TSTRING
ld a5,0(a5)
bne a4,a5,.L3
ld a0,-24(s0)
call concatenate_string@plt
.L3:
ld a5,-24(s0)
mv a0,a5
ld ra,24(sp)
ld s0,16(sp)
addi sp,sp,32
jr ra
.size get, .-get
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_parse.c_get_compound_assign_op.c"
.intel_syntax noprefix
.text
.globl OP_SAL
.bss
.align 4
.type OP_SAL, @object
.size OP_SAL, 4
OP_SAL:
.zero 4
.globl OP_SAR
.align 4
.type OP_SAR, @object
.size OP_SAR, 4
OP_SAR:
.zero 4
.globl OP_SHR
.align 4
.type OP_SHR, @object
.size OP_SHR, 4
OP_SHR:
.zero 4
.globl TKEYWORD
.align 8
.type TKEYWORD, @object
.size TKEYWORD, 8
TKEYWORD:
.zero 8
.text
.type get_compound_assign_op, @function
get_compound_assign_op:
.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 rdx, QWORD PTR [rax]
mov rax, QWORD PTR TKEYWORD[rip]
cmp rdx, rax
je .L2
mov eax, 0
jmp .L3
.L2:
mov rax, QWORD PTR -8[rbp]
mov eax, DWORD PTR 8[rax]
add eax, -128
cmp eax, 10
ja .L4
mov eax, eax
lea rdx, 0[0+rax*4]
lea rax, .L6[rip]
mov eax, DWORD PTR [rdx+rax]
cdqe
lea rdx, .L6[rip]
add rax, rdx
notrack jmp rax
.section .rodata
.align 4
.align 4
.L6:
.long .L16-.L6
.long .L15-.L6
.long .L14-.L6
.long .L13-.L6
.long .L12-.L6
.long .L11-.L6
.long .L10-.L6
.long .L9-.L6
.long .L8-.L6
.long .L7-.L6
.long .L5-.L6
.text
.L5:
mov eax, 43
jmp .L3
.L15:
mov eax, 45
jmp .L3
.L10:
mov eax, 42
jmp .L3
.L8:
mov eax, 47
jmp .L3
.L9:
mov eax, 37
jmp .L3
.L7:
mov eax, 38
jmp .L3
.L11:
mov eax, 124
jmp .L3
.L16:
mov eax, 94
jmp .L3
.L12:
mov eax, DWORD PTR OP_SAL[rip]
jmp .L3
.L13:
mov eax, DWORD PTR OP_SAR[rip]
jmp .L3
.L14:
mov eax, DWORD PTR OP_SHR[rip]
jmp .L3
.L4:
mov eax, 0
.L3:
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size get_compound_assign_op, .-get_compound_assign_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_parse.c_get_compound_assign_op.c"
.option pic
.text
.comm OP_SAL,4,4
.comm OP_SAR,4,4
.comm OP_SHR,4,4
.comm TKEYWORD,8,8
.align 1
.type get_compound_assign_op, @function
get_compound_assign_op:
addi sp,sp,-32
sd s0,24(sp)
addi s0,sp,32
sd a0,-24(s0)
ld a5,-24(s0)
ld a4,0(a5)
la a5,TKEYWORD
ld a5,0(a5)
beq a4,a5,.L2
li a5,0
j .L3
.L2:
ld a5,-24(s0)
lw a5,8(a5)
addiw a3,a5,-128
sext.w a4,a3
li a5,10
bgtu a4,a5,.L4
slli a5,a3,32
srli a5,a5,32
slli a4,a5,2
lla a5,.L6
add a5,a4,a5
lw a5,0(a5)
sext.w a4,a5
lla a5,.L6
add a5,a4,a5
jr a5
.section .rodata
.align 2
.align 2
.L6:
.word .L16-.L6
.word .L15-.L6
.word .L14-.L6
.word .L13-.L6
.word .L12-.L6
.word .L11-.L6
.word .L10-.L6
.word .L9-.L6
.word .L8-.L6
.word .L7-.L6
.word .L5-.L6
.text
.L5:
li a5,43
j .L3
.L15:
li a5,45
j .L3
.L10:
li a5,42
j .L3
.L8:
li a5,47
j .L3
.L9:
li a5,37
j .L3
.L7:
li a5,38
j .L3
.L11:
li a5,124
j .L3
.L16:
li a5,94
j .L3
.L12:
la a5,OP_SAL
lw a5,0(a5)
j .L3
.L13:
la a5,OP_SAR
lw a5,0(a5)
j .L3
.L14:
la a5,OP_SHR
lw a5,0(a5)
j .L3
.L4:
li a5,0
.L3:
mv a0,a5
ld s0,24(sp)
addi sp,sp,32
jr ra
.size get_compound_assign_op, .-get_compound_assign_op
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_parse.c_get_typedef.c"
.intel_syntax noprefix
.text
.globl AST_TYPEDEF
.bss
.align 8
.type AST_TYPEDEF, @object
.size AST_TYPEDEF, 8
AST_TYPEDEF:
.zero 8
.text
.type get_typedef, @function
get_typedef:
.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 env@PLT
mov edx, eax
mov rax, QWORD PTR -24[rbp]
mov rsi, rax
mov edi, edx
call map_get@PLT
mov QWORD PTR -8[rbp], rax
cmp QWORD PTR -8[rbp], 0
je .L2
mov rax, QWORD PTR -8[rbp]
mov rdx, QWORD PTR [rax]
mov rax, QWORD PTR AST_TYPEDEF[rip]
cmp rdx, rax
jne .L2
mov rax, QWORD PTR -8[rbp]
mov rax, QWORD PTR 8[rax]
jmp .L4
.L2:
mov eax, 0
.L4:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size get_typedef, .-get_typedef
.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_parse.c_get_typedef.c"
.option pic
.text
.comm AST_TYPEDEF,8,8
.align 1
.type get_typedef, @function
get_typedef:
addi sp,sp,-48
sd ra,40(sp)
sd s0,32(sp)
addi s0,sp,48
sd a0,-40(s0)
call env@plt
mv a5,a0
ld a1,-40(s0)
mv a0,a5
call map_get@plt
sd a0,-24(s0)
ld a5,-24(s0)
beqz a5,.L2
ld a5,-24(s0)
ld a4,0(a5)
la a5,AST_TYPEDEF
ld a5,0(a5)
bne a4,a5,.L2
ld a5,-24(s0)
ld a5,8(a5)
j .L4
.L2:
li a5,0
.L4:
mv a0,a5
ld ra,40(sp)
ld s0,32(sp)
addi sp,sp,48
jr ra
.size get_typedef, .-get_typedef
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_parse.c_is_arithtype.c"
.intel_syntax noprefix
.text
.type is_arithtype, @function
is_arithtype:
.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 rdi, rax
call is_inttype@PLT
test rax, rax
jne .L2
mov rax, QWORD PTR -8[rbp]
mov rdi, rax
call is_flotype@PLT
test rax, rax
je .L3
.L2:
mov eax, 1
jmp .L5
.L3:
mov eax, 0
.L5:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size is_arithtype, .-is_arithtype
.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_parse.c_is_arithtype.c"
.option pic
.text
.align 1
.type is_arithtype, @function
is_arithtype:
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 is_inttype@plt
mv a5,a0
bnez a5,.L2
ld a0,-24(s0)
call is_flotype@plt
mv a5,a0
beqz a5,.L3
.L2:
li a5,1
j .L4
.L3:
li a5,0
.L4:
mv a0,a5
ld ra,24(sp)
ld s0,16(sp)
addi sp,sp,32
jr ra
.size is_arithtype, .-is_arithtype
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_parse.c_is_funcdef.c"
.intel_syntax noprefix
.text
.globl TEOF
.bss
.align 8
.type TEOF, @object
.size TEOF, 8
TEOF:
.zero 8
.globl TIDENT
.align 8
.type TIDENT, @object
.size TIDENT, 8
TIDENT:
.zero 8
.section .rodata
.LC0:
.string "premature end of input"
.text
.type is_funcdef, @function
is_funcdef:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
sub rsp, 32
mov eax, 0
call make_vector@PLT
mov QWORD PTR -16[rbp], rax
mov DWORD PTR -20[rbp], 0
.L13:
mov eax, 0
call get@PLT
mov QWORD PTR -8[rbp], rax
mov rdx, QWORD PTR -8[rbp]
mov rax, QWORD PTR -16[rbp]
mov rsi, rdx
mov rdi, rax
call vec_push@PLT
mov rax, QWORD PTR -8[rbp]
mov rdx, QWORD PTR [rax]
mov rax, QWORD PTR TEOF[rip]
cmp rdx, rax
jne .L2
lea rdi, .LC0[rip]
call error@PLT
.L2:
mov rax, QWORD PTR -8[rbp]
mov esi, 59
mov rdi, rax
call is_keyword@PLT
test rax, rax
jne .L17
mov rax, QWORD PTR -8[rbp]
mov rdi, rax
call is_type@PLT
test rax, rax
jne .L18
mov rax, QWORD PTR -8[rbp]
mov esi, 40
mov rdi, rax
call is_keyword@PLT
test rax, rax
je .L7
mov rax, QWORD PTR -16[rbp]
mov rdi, rax
call skip_parentheses@PLT
jmp .L6
.L7:
mov rax, QWORD PTR -8[rbp]
mov rdx, QWORD PTR [rax]
mov rax, QWORD PTR TIDENT[rip]
cmp rdx, rax
jne .L19
mov eax, 0
call peek@PLT
mov esi, 40
mov rdi, rax
call is_keyword@PLT
test rax, rax
je .L20
mov eax, 0
call get@PLT
mov rdx, rax
mov rax, QWORD PTR -16[rbp]
mov rsi, rdx
mov rdi, rax
call vec_push@PLT
mov rax, QWORD PTR -16[rbp]
mov rdi, rax
call skip_parentheses@PLT
mov eax, 0
call peek@PLT
mov esi, 123
mov rdi, rax
call is_keyword@PLT
test rax, rax
jne .L10
mov eax, 0
call peek@PLT
mov rdi, rax
call is_type@PLT
test rax, rax
je .L11
.L10:
mov eax, 1
jmp .L12
.L11:
mov eax, 0
.L12:
mov DWORD PTR -20[rbp], eax
jmp .L4
.L18:
nop
jmp .L13
.L19:
nop
jmp .L13
.L20:
nop
.L6:
jmp .L13
.L17:
nop
.L4:
jmp .L14
.L15:
mov rax, QWORD PTR -16[rbp]
mov rdi, rax
call vec_pop@PLT
mov edi, eax
call unget_token@PLT
.L14:
mov rax, QWORD PTR -16[rbp]
mov rdi, rax
call vec_len@PLT
test rax, rax
jg .L15
mov eax, DWORD PTR -20[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size is_funcdef, .-is_funcdef
.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_parse.c_is_funcdef.c"
.option pic
.text
.comm TEOF,8,8
.comm TIDENT,8,8
.section .rodata
.align 3
.LC0:
.string "premature end of input"
.text
.align 1
.type is_funcdef, @function
is_funcdef:
addi sp,sp,-48
sd ra,40(sp)
sd s0,32(sp)
addi s0,sp,48
call make_vector@plt
sd a0,-32(s0)
sw zero,-36(s0)
.L13:
call get@plt
sd a0,-24(s0)
ld a1,-24(s0)
ld a0,-32(s0)
call vec_push@plt
ld a5,-24(s0)
ld a4,0(a5)
la a5,TEOF
ld a5,0(a5)
bne a4,a5,.L2
lla a0,.LC0
call error@plt
.L2:
li a1,59
ld a0,-24(s0)
call is_keyword@plt
mv a5,a0
bnez a5,.L17
ld a0,-24(s0)
call is_type@plt
mv a5,a0
bnez a5,.L18
li a1,40
ld a0,-24(s0)
call is_keyword@plt
mv a5,a0
beqz a5,.L7
ld a0,-32(s0)
call skip_parentheses@plt
j .L6
.L7:
ld a5,-24(s0)
ld a4,0(a5)
la a5,TIDENT
ld a5,0(a5)
bne a4,a5,.L19
call peek@plt
mv a5,a0
li a1,40
mv a0,a5
call is_keyword@plt
mv a5,a0
beqz a5,.L20
call get@plt
mv a5,a0
mv a1,a5
ld a0,-32(s0)
call vec_push@plt
ld a0,-32(s0)
call skip_parentheses@plt
call peek@plt
mv a5,a0
li a1,123
mv a0,a5
call is_keyword@plt
mv a5,a0
bnez a5,.L10
call peek@plt
mv a5,a0
mv a0,a5
call is_type@plt
mv a5,a0
beqz a5,.L11
.L10:
li a5,1
j .L12
.L11:
li a5,0
.L12:
sw a5,-36(s0)
j .L4
.L18:
nop
j .L13
.L19:
nop
j .L13
.L20:
nop
.L6:
j .L13
.L17:
nop
.L4:
j .L14
.L15:
ld a0,-32(s0)
call vec_pop@plt
mv a5,a0
mv a0,a5
call unget_token@plt
.L14:
ld a0,-32(s0)
call vec_len@plt
mv a5,a0
bgtz a5,.L15
lw a5,-36(s0)
mv a0,a5
ld ra,40(sp)
ld s0,32(sp)
addi sp,sp,48
jr ra
.size is_funcdef, .-is_funcdef
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_parse.c_is_poweroftwo.c"
.intel_syntax noprefix
.text
.type is_poweroftwo, @function
is_poweroftwo:
.LFB0:
.cfi_startproc
endbr64
push rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
mov rbp, rsp
.cfi_def_cfa_register 6
mov DWORD PTR -4[rbp], edi
cmp DWORD PTR -4[rbp], 0
jle .L2
mov eax, DWORD PTR -4[rbp]
sub eax, 1
and eax, DWORD PTR -4[rbp]
test eax, eax
jne .L2
mov eax, 1
jmp .L4
.L2:
mov eax, 0
.L4:
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size is_poweroftwo, .-is_poweroftwo
.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_parse.c_is_poweroftwo.c"
.option pic
.text
.align 1
.type is_poweroftwo, @function
is_poweroftwo:
addi sp,sp,-32
sd s0,24(sp)
addi s0,sp,32
mv a5,a0
sw a5,-20(s0)
lw a5,-20(s0)
sext.w a5,a5
blez a5,.L2
lw a5,-20(s0)
addiw a5,a5,-1
sext.w a4,a5
lw a5,-20(s0)
and a5,a4,a5
sext.w a5,a5
bnez a5,.L2
li a5,1
j .L3
.L2:
li a5,0
.L3:
mv a0,a5
ld s0,24(sp)
addi sp,sp,32
jr ra
.size is_poweroftwo, .-is_poweroftwo
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_parse.c_is_same_struct.c"
.intel_syntax noprefix
.text
.type is_same_struct, @function
is_same_struct:
.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, 56
.cfi_offset 3, -24
mov QWORD PTR -56[rbp], rdi
mov QWORD PTR -64[rbp], rsi
mov rax, QWORD PTR -56[rbp]
mov edx, DWORD PTR [rax]
mov rax, QWORD PTR -64[rbp]
mov eax, DWORD PTR [rax]
cmp edx, eax
je .L2
mov eax, 0
jmp .L3
.L2:
mov rax, QWORD PTR -56[rbp]
mov eax, DWORD PTR [rax]
cmp eax, 130
je .L4
cmp eax, 130
jg .L5
cmp eax, 128
je .L6
cmp eax, 129
je .L7
jmp .L5
.L4:
mov rax, QWORD PTR -56[rbp]
mov edx, DWORD PTR 24[rax]
mov rax, QWORD PTR -64[rbp]
mov eax, DWORD PTR 24[rax]
cmp edx, eax
jne .L8
mov rax, QWORD PTR -64[rbp]
mov rdx, QWORD PTR 16[rax]
mov rax, QWORD PTR -56[rbp]
mov rax, QWORD PTR 16[rax]
mov rsi, rdx
mov rdi, rax
call is_same_struct
test eax, eax
je .L8
mov eax, 1
jmp .L3
.L8:
mov eax, 0
jmp .L3
.L7:
mov rax, QWORD PTR -64[rbp]
mov rdx, QWORD PTR 16[rax]
mov rax, QWORD PTR -56[rbp]
mov rax, QWORD PTR 16[rax]
mov rsi, rdx
mov rdi, rax
call is_same_struct
jmp .L3
.L6:
mov rax, QWORD PTR -56[rbp]
mov edx, DWORD PTR 8[rax]
mov rax, QWORD PTR -64[rbp]
mov eax, DWORD PTR 8[rax]
cmp edx, eax
je .L10
mov eax, 0
jmp .L3
.L10:
mov rax, QWORD PTR -56[rbp]
mov eax, DWORD PTR 4[rax]
mov edi, eax
call dict_keys@PLT
mov QWORD PTR -32[rbp], rax
mov rax, QWORD PTR -64[rbp]
mov eax, DWORD PTR 4[rax]
mov edi, eax
call dict_keys@PLT
mov QWORD PTR -24[rbp], rax
mov rax, QWORD PTR -32[rbp]
mov rdi, rax
call vec_len@PLT
mov ebx, eax
mov rax, QWORD PTR -24[rbp]
mov rdi, rax
call vec_len@PLT
cmp ebx, eax
je .L11
mov eax, 0
jmp .L3
.L11:
mov DWORD PTR -36[rbp], 0
jmp .L12
.L14:
mov edx, DWORD PTR -36[rbp]
mov rax, QWORD PTR -24[rbp]
mov esi, edx
mov rdi, rax
call vec_get@PLT
mov rbx, rax
mov edx, DWORD PTR -36[rbp]
mov rax, QWORD PTR -32[rbp]
mov esi, edx
mov rdi, rax
call vec_get@PLT
mov rsi, rbx
mov rdi, rax
call is_same_struct
test eax, eax
jne .L13
mov eax, 0
jmp .L3
.L13:
add DWORD PTR -36[rbp], 1
.L12:
mov rax, QWORD PTR -32[rbp]
mov rdi, rax
call vec_len@PLT
cmp DWORD PTR -36[rbp], eax
jl .L14
mov eax, 1
jmp .L3
.L5:
mov eax, 1
.L3:
mov rbx, QWORD PTR -8[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size is_same_struct, .-is_same_struct
.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_parse.c_is_same_struct.c"
.option pic
.text
.align 1
.type is_same_struct, @function
is_same_struct:
addi sp,sp,-80
sd ra,72(sp)
sd s0,64(sp)
sd s1,56(sp)
addi s0,sp,80
sd a0,-72(s0)
sd a1,-80(s0)
ld a5,-72(s0)
lw a4,0(a5)
ld a5,-80(s0)
lw a5,0(a5)
beq a4,a5,.L2
li a5,0
j .L3
.L2:
ld a5,-72(s0)
lw a5,0(a5)
mv a3,a5
li a4,130
beq a3,a4,.L4
mv a3,a5
li a4,130
bgt a3,a4,.L5
mv a3,a5
li a4,128
beq a3,a4,.L6
mv a4,a5
li a5,129
beq a4,a5,.L7
j .L5
.L4:
ld a5,-72(s0)
lw a4,24(a5)
ld a5,-80(s0)
lw a5,24(a5)
bne a4,a5,.L8
ld a5,-72(s0)
ld a4,16(a5)
ld a5,-80(s0)
ld a5,16(a5)
mv a1,a5
mv a0,a4
call is_same_struct
mv a5,a0
beqz a5,.L8
li a5,1
j .L3
.L8:
li a5,0
j .L3
.L7:
ld a5,-72(s0)
ld a4,16(a5)
ld a5,-80(s0)
ld a5,16(a5)
mv a1,a5
mv a0,a4
call is_same_struct
mv a5,a0
j .L3
.L6:
ld a5,-72(s0)
lw a4,8(a5)
ld a5,-80(s0)
lw a5,8(a5)
beq a4,a5,.L10
li a5,0
j .L3
.L10:
ld a5,-72(s0)
lw a5,4(a5)
mv a0,a5
call dict_keys@plt
sd a0,-48(s0)
ld a5,-80(s0)
lw a5,4(a5)
mv a0,a5
call dict_keys@plt
sd a0,-40(s0)
ld a0,-48(s0)
call vec_len@plt
mv a5,a0
mv s1,a5
ld a0,-40(s0)
call vec_len@plt
mv a5,a0
mv a4,s1
beq a4,a5,.L11
li a5,0
j .L3
.L11:
sw zero,-52(s0)
j .L12
.L14:
lw a5,-52(s0)
mv a1,a5
ld a0,-48(s0)
call vec_get@plt
mv s1,a0
lw a5,-52(s0)
mv a1,a5
ld a0,-40(s0)
call vec_get@plt
mv a5,a0
mv a1,a5
mv a0,s1
call is_same_struct
mv a5,a0
bnez a5,.L13
li a5,0
j .L3
.L13:
lw a5,-52(s0)
addiw a5,a5,1
sw a5,-52(s0)
.L12:
ld a0,-48(s0)
call vec_len@plt
mv a5,a0
mv a4,a5
lw a5,-52(s0)
sext.w a5,a5
blt a5,a4,.L14
li a5,1
j .L3
.L5:
li a5,1
.L3:
mv a0,a5
ld ra,72(sp)
ld s0,64(sp)
ld s1,56(sp)
addi sp,sp,80
jr ra
.size is_same_struct, .-is_same_struct
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_parse.c_is_string.c"
.intel_syntax noprefix
.text
.globl KIND_ARRAY
.bss
.align 8
.type KIND_ARRAY, @object
.size KIND_ARRAY, 8
KIND_ARRAY:
.zero 8
.globl KIND_CHAR
.align 8
.type KIND_CHAR, @object
.size KIND_CHAR, 8
KIND_CHAR:
.zero 8
.text
.type is_string, @function
is_string:
.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 rdx, QWORD PTR [rax]
mov rax, QWORD PTR KIND_ARRAY[rip]
cmp rdx, rax
jne .L2
mov rax, QWORD PTR -8[rbp]
mov rax, QWORD PTR 8[rax]
mov rdx, QWORD PTR [rax]
mov rax, QWORD PTR KIND_CHAR[rip]
cmp rdx, rax
jne .L2
mov eax, 1
jmp .L4
.L2:
mov eax, 0
.L4:
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size is_string, .-is_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_parse.c_is_string.c"
.option pic
.text
.comm KIND_ARRAY,8,8
.comm KIND_CHAR,8,8
.align 1
.type is_string, @function
is_string:
addi sp,sp,-32
sd s0,24(sp)
addi s0,sp,32
sd a0,-24(s0)
ld a5,-24(s0)
ld a4,0(a5)
la a5,KIND_ARRAY
ld a5,0(a5)
bne a4,a5,.L2
ld a5,-24(s0)
ld a5,8(a5)
ld a4,0(a5)
la a5,KIND_CHAR
ld a5,0(a5)
bne a4,a5,.L2
li a5,1
j .L3
.L2:
li a5,0
.L3:
mv a0,a5
ld s0,24(sp)
addi sp,sp,32
jr ra
.size is_string, .-is_string
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_parse.c_make_ast.c"
.intel_syntax noprefix
.text
.globl source_loc
.bss
.align 4
.type source_loc, @object
.size source_loc, 4
source_loc:
.zero 4
.text
.type make_ast, @function
make_ast:
.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 -8[rbp]
mov rdx, QWORD PTR -24[rbp]
mov edx, DWORD PTR [rdx]
mov DWORD PTR [rax], edx
mov edx, DWORD PTR source_loc[rip]
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_ast, .-make_ast
.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_parse.c_make_ast.c"
.option pic
.text
.comm source_loc,4,4
.align 1
.type make_ast, @function
make_ast:
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,-24(s0)
ld a4,-40(s0)
lw a4,0(a4)
sw a4,0(a5)
la a5,source_loc
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_ast, .-make_ast
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_parse.c_make_case.c"
.intel_syntax noprefix
.text
.type make_case, @function
make_case:
.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 QWORD PTR -32[rbp], rdx
mov edi, 16
call malloc@PLT
mov QWORD PTR -8[rbp], rax
mov rax, QWORD PTR -8[rbp]
mov edx, DWORD PTR -20[rbp]
mov DWORD PTR [rax], edx
mov rax, QWORD PTR -8[rbp]
mov edx, DWORD PTR -24[rbp]
mov DWORD PTR 4[rax], edx
mov rax, QWORD PTR -8[rbp]
mov rdx, QWORD PTR -32[rbp]
mov QWORD PTR 8[rax], rdx
mov rax, QWORD PTR -8[rbp]
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size make_case, .-make_case
.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_parse.c_make_case.c"
.option pic
.text
.align 1
.type make_case, @function
make_case:
addi sp,sp,-48
sd ra,40(sp)
sd s0,32(sp)
addi s0,sp,48
mv a5,a0
mv a4,a1
sd a2,-48(s0)
sw a5,-36(s0)
mv a5,a4
sw a5,-40(s0)
li a0,16
call malloc@plt
sd a0,-24(s0)
ld a5,-24(s0)
lw a4,-36(s0)
sw a4,0(a5)
ld a5,-24(s0)
lw a4,-40(s0)
sw a4,4(a5)
ld a5,-24(s0)
ld a4,-48(s0)
sd a4,8(a5)
ld a5,-24(s0)
mv a0,a5
ld ra,40(sp)
ld s0,32(sp)
addi sp,sp,48
jr ra
.size make_case, .-make_case
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
.file "extr_parse.c_make_label.c"
.intel_syntax noprefix
.text
.section .rodata
.LC0:
.string ".L%d"
.text
.globl make_label
.type make_label, @function
make_label:
.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 c.0[rip]
lea edx, 1[rax]
mov DWORD PTR c.0[rip], edx
mov esi, eax
lea rdi, .LC0[rip]
call format@PLT
pop rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE0:
.size make_label, .-make_label
.local c.0
.comm c.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_parse.c_make_label.c"
.option pic
.text
.section .rodata
.align 3
.LC0:
.string ".L%d"
.text
.align 1
.globl make_label
.type make_label, @function
make_label:
addi sp,sp,-16
sd ra,8(sp)
sd s0,0(sp)
addi s0,sp,16
lla a5,c.1508
lw a5,0(a5)
addiw a4,a5,1
sext.w a3,a4
lla a4,c.1508
sw a3,0(a4)
mv a1,a5
lla a0,.LC0
call format@plt
mv a5,a0
mv a0,a5
ld ra,8(sp)
ld s0,0(sp)
addi sp,sp,16
jr ra
.size make_label, .-make_label
.local c.1508
.comm c.1508,4,4
.ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0"
.section .note.GNU-stack,"",@progbits
|
anghabench
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.