name
string
code
string
asm
string
file
string
addresses
string
bin
string
poly::vector<Interface, custom::Allocator<Interface, custom::AllocatorDescriptor<std::integral_constant<bool, false>, std::integral_constant<bool, true>, std::integral_constant<bool, true>, std::integral_constant<bool, false>, std::integral_constant<bool, false>>>, poly::delegate_cloning_policy<Interface, custom::Allocator<Interface, custom::AllocatorDescriptor<std::integral_constant<bool, false>, std::integral_constant<bool, true>, std::integral_constant<bool, true>, std::integral_constant<bool, false>, std::integral_constant<bool, false>>>, std::integral_constant<bool, true>>>::calculate_storage_size(unsigned long, unsigned long, unsigned long) const
inline std::pair<size_t, size_t> vector<I, A, C>::calculate_storage_size( size_t new_size, size_t new_elem_size, size_t new_alignment) const noexcept { const auto max_alignment = std::max(new_alignment, max_align()); const auto initial_alignment_buffer = max_alignment; const auto new_object_size = ((new_elem_size + max_alignment - 1) / max_alignment) * max_alignment; const auto buffer_size = std::accumulate(begin_elem(), end_elem(), initial_alignment_buffer, [max_alignment](size_t val, const auto& p) { return val + ((p.size() + max_alignment - 1) / max_alignment) * max_alignment; }); auto avg_obj_size = !empty() ? (buffer_size + new_object_size + size()) / (size() + 1) : new_object_size; auto num_of_new_obj = new_size >= size() ? (new_size - size()) : 0U; auto size = new_size * sizeof(elem_ptr) + // storage for ptrs buffer_size + // storage for existing elems w initial alignment new_object_size + // storage for the new elem (num_of_new_obj * avg_obj_size); // estimated storage for new elems return std::make_pair(size, max_alignment); }
pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx movq %rcx, %rbx movq %rdi, %r12 movq 0x20(%rdi), %rax cmpq %rcx, %rax cmovaq %rax, %rbx movq %rsi, %r14 leaq (%rdx,%rbx), %r15 decq %r15 movq %r15, %rax xorl %edx, %edx divq %rbx movq %rdx, %r13 movq (%rdi), %rdi movq 0x10(%r12), %rsi movq %rbx, %rdx movq %rbx, %rcx callq 0x11e7c7 movq %rax, %rcx subq %r13, %r15 movq (%r12), %rdx movq 0x10(%r12), %rax cmpq %rax, %rdx je 0x11e6ae addq %r15, %rcx subq %rdx, %rax pushq $0x28 popq %rsi cqto idivq %rsi movq %rax, %rsi addq %rcx, %rax movq %rsi, %rdi incq %rdi xorl %edx, %edx divq %rdi movq %rax, %r15 jmp 0x11e6bf subq %rdx, %rax pushq $0x28 popq %rsi cqto idivq %rsi movq %rax, %rsi addq %r15, %rcx xorl %eax, %eax imulq $0x28, %r14, %rdx subq %rsi, %r14 cmovaeq %r14, %rax addq %rcx, %rdx imulq %r15, %rax addq %rdx, %rax movq %rbx, %rdx popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq movq %rax, %rdi callq 0xd68e3 nop
/fecjanky[P]poly_vector/include/poly/vector.h
0x11e634
fecjanky[P]poly_vector[P]build_O2[P]bin[P]poly_vector_test
llvm::InstCombinerImpl::handlePotentiallyDeadSuccessors(llvm::BasicBlock*, llvm::BasicBlock*)
void InstCombinerImpl::handlePotentiallyDeadSuccessors(BasicBlock *BB, BasicBlock *LiveSucc) { SmallVector<BasicBlock *> Worklist; for (BasicBlock *Succ : successors(BB)) { // The live successor isn't dead. if (Succ == LiveSucc) continue; addDeadEdge(BB, Succ, Worklist); } handlePotentiallyDeadBlocks(Worklist); }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x78, %rsp movq %rdx, %r14 movq %rsi, %r15 movq %rdi, %rbx leaq 0x28(%rsp), %rax movq %rax, -0x10(%rax) movabsq $0x600000000, %rcx # imm = 0x600000000 movq %rcx, -0x8(%rax) leaq 0x58(%rsp), %r13 movq %r13, %rdi callq 0x2ad6947 movq (%r13), %rcx movl 0x8(%r13), %eax leaq 0x8(%rsp), %r12 movq %rcx, (%r12) movl %eax, 0x8(%r12) movl 0x18(%r13), %ebp leaq 0x18(%rsp), %r13 cmpl %ebp, %eax je 0x364c60c movq %r12, %rdi callq 0x2ad7098 cmpq %r14, %rax je 0x364c600 movq %rbx, %rdi movq %r15, %rsi movq %rax, %rdx movq %r13, %rcx callq 0x364c124 movl 0x10(%rsp), %eax incl %eax movl %eax, 0x10(%rsp) jmp 0x364c5de leaq 0x18(%rsp), %r14 movq %rbx, %rdi movq %r14, %rsi callq 0x364c4a6 movq %r14, %rdi callq 0x2ad6de8 addq $0x78, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq nop
/Transforms/InstCombine/InstructionCombining.cpp
0x364c584
llvm-project[P]build_O2[P]bin[P]mlir-opt
sam_hdr_free
void sam_hdr_free(SAM_hdr *hdr) { if (!hdr) return; if (--hdr->ref_count > 0) return; if (ks_str(&hdr->text)) KS_FREE(&hdr->text); if (hdr->h) kh_destroy(sam_hdr, hdr->h); if (hdr->ref_hash) kh_destroy(m_s2i, hdr->ref_hash); if (hdr->ref) { int i; for (i = 0; i < hdr->nref; i++) if (hdr->ref[i].name) free(hdr->ref[i].name); free(hdr->ref); } if (hdr->rg_hash) kh_destroy(m_s2i, hdr->rg_hash); if (hdr->rg) { int i; for (i = 0; i < hdr->nrg; i++) if (hdr->rg[i].name) free(hdr->rg[i].name); free(hdr->rg); } if (hdr->pg_hash) kh_destroy(m_s2i, hdr->pg_hash); if (hdr->pg) { int i; for (i = 0; i < hdr->npg; i++) if (hdr->pg[i].name) free(hdr->pg[i].name); free(hdr->pg); } if (hdr->pg_end) free(hdr->pg_end); if (hdr->type_pool) pool_destroy(hdr->type_pool); if (hdr->tag_pool) pool_destroy(hdr->tag_pool); if (hdr->str_pool) string_pool_destroy(hdr->str_pool); free(hdr); }
pushq %r15 pushq %r14 pushq %rbx testq %rdi, %rdi je 0x26c60 movq %rdi, %rbx movl 0x494(%rdi), %eax leal -0x1(%rax), %ecx movl %ecx, 0x494(%rdi) cmpl $0x1, %eax jle 0x26c66 popq %rbx popq %r14 popq %r15 retq movq 0x10(%rbx), %rdi callq 0xa4d0 movq 0x18(%rbx), %rdi testq %rdi, %rdi je 0x26c7d callq 0x26bce movq 0x48(%rbx), %rdi testq %rdi, %rdi je 0x26c8b callq 0x26efa cmpq $0x0, 0x40(%rbx) je 0x26cbc xorl %r14d, %r14d xorl %r15d, %r15d movslq 0x38(%rbx), %rax movq 0x40(%rbx), %rdi cmpq %rax, %r15 jge 0x26cb7 movq (%rdi,%r14), %rdi callq 0xa4d0 incq %r15 addq $0x20, %r14 jmp 0x26c98 callq 0xa4d0 movq 0x60(%rbx), %rdi testq %rdi, %rdi je 0x26cca callq 0x26efa cmpq $0x0, 0x58(%rbx) je 0x26cfb xorl %r14d, %r14d xorl %r15d, %r15d movslq 0x50(%rbx), %rax movq 0x58(%rbx), %rdi cmpq %rax, %r15 jge 0x26cf6 movq (%rdi,%r14), %rdi callq 0xa4d0 incq %r15 addq $0x20, %r14 jmp 0x26cd7 callq 0xa4d0 movq 0x80(%rbx), %rdi testq %rdi, %rdi je 0x26d0c callq 0x26efa cmpq $0x0, 0x78(%rbx) je 0x26d3d xorl %r14d, %r14d xorl %r15d, %r15d movslq 0x68(%rbx), %rax movq 0x78(%rbx), %rdi cmpq %rax, %r15 jge 0x26d38 movq (%rdi,%r14), %rdi callq 0xa4d0 incq %r15 addq $0x28, %r14 jmp 0x26d19 callq 0xa4d0 movq 0x88(%rbx), %rdi callq 0xa4d0 movq 0x28(%rbx), %rdi testq %rdi, %rdi je 0x26d57 callq 0x419c4 movq 0x30(%rbx), %rdi testq %rdi, %rdi je 0x26d65 callq 0x419c4 movq 0x20(%rbx), %rdi testq %rdi, %rdi je 0x26d73 callq 0x27921 movq %rbx, %rdi popq %rbx popq %r14 popq %r15 jmp 0xa4d0
/gatoravi[P]bam-parser-tutorial/htslib/cram/sam_header.c
0x26c3f
gatoravi[P]bam-parser-tutorial[P]build_O2[P]vcf-parser