// File: /workspace/github_c_makefile_star2_O1/buptlxb[P]xRay/src/taint_block.cpp
// Function: TaintBlock::toString(char*, int) const
char *TaintBlock::toString(char *buf, int size) const
{
    snprintf(buf, size, "\t\t\ttBlock(0x%llx)", (ADDR)this);
    if (!bBlocks.empty()) {
        snprintf(buf+strlen(buf), size-strlen(buf), " Basic Blocks: {");
        for (BasicBlock::ConstBBPtrIter iter = bBlocks.begin(); iter != bBlocks.end(); iter++) {
            snprintf(buf+strlen(buf), size-strlen(buf), "0x%llx, ", (*iter)->getFirstInstAddr());
        }
        snprintf(buf+strlen(buf)-2, size-strlen(buf)+2, "}\n");
    } else {
        snprintf(buf+strlen(buf), size-strlen(buf), "\n");
    }


    if (!use.empty()) {
        snprintf(buf+strlen(buf), size-strlen(buf), "\t\t\tuse: {");
        for (ConstARGIter iter = use.begin(); iter != use.end(); iter++)
        {
            snprintf(buf+strlen(buf), size-strlen(buf), "%s, ", iter->ArgMnemonic);
        }
        snprintf(buf+strlen(buf)-2, size-strlen(buf)+2, "}\n");
    }

    if (!define.empty()) {
        snprintf(buf+strlen(buf), size-strlen(buf), "\t\t\tdefine: {");
        for (ConstARGIter iter = define.begin(); iter != define.end(); iter++)
        {
            snprintf(buf+strlen(buf), size-strlen(buf), "%s, ", iter->ArgMnemonic);
        }
        snprintf(buf+strlen(buf)-2, size-strlen(buf)+2, "}\n");
    }
    return buf;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r15
movslq %edx, %r14
leaq 0x22382(%rip), %rdx     # 0x2d401
movq %rsi, %rdi
movq %r14, %rsi
movq %r15, %rcx
xorl %eax, %eax
callq 0x8230
movq (%r15), %r12
movq 0x8(%r15), %r13
movq %rbx, %rdi
callq 0x8090
leaq (%rbx,%rax), %rdi
movq %r14, %rsi
subq %rax, %rsi
cmpq %r13, %r12
je 0xb11f
leaq 0x2235f(%rip), %rdx     # 0x2d413
xorl %eax, %eax
callq 0x8230
movq (%r15), %r13
cmpq 0x8(%r15), %r13
je 0xb0fc
leaq 0x22359(%rip), %r12     # 0x2d424
movq %rbx, %rdi
callq 0x8090
leaq (%rbx,%rax), %rdi
movq %r14, %rsi
subq %rax, %rsi
movq (%r13), %rax
movq (%rax), %rax
movq 0x8(%rax), %rcx
movq %r12, %rdx
xorl %eax, %eax
callq 0x8230
addq $0x8, %r13
cmpq 0x8(%r15), %r13
jne 0xb0cb
movq %rbx, %rdi
callq 0x8090
leaq (%rbx,%rax), %rdi
addq $-0x2, %rdi
movq %r14, %rsi
subq %rax, %rsi
addq $0x2, %rsi
leaq 0x22310(%rip), %rdx     # 0x2d42d
jmp 0xb126
leaq 0x22127(%rip), %rdx     # 0x2d24d
xorl %eax, %eax
callq 0x8230
cmpq $0x0, 0xa0(%r15)
je 0xb1ce
movq %rbx, %rdi
callq 0x8090
leaq (%rbx,%rax), %rdi
movq %r14, %rsi
subq %rax, %rsi
leaq 0x222dc(%rip), %rdx     # 0x2d430
xorl %eax, %eax
callq 0x8230
movq 0x90(%r15), %r12
leaq 0x80(%r15), %rbp
cmpq %rbp, %r12
je 0xb1a6
leaq 0x222c5(%rip), %r13     # 0x2d43a
movq %rbx, %rdi
callq 0x8090
leaq (%rbx,%rax), %rdi
movq %r14, %rsi
subq %rax, %rsi
leaq 0x20(%r12), %rcx
movq %r13, %rdx
xorl %eax, %eax
callq 0x8230
movq %r12, %rdi
callq 0x81b0
movq %rax, %r12
cmpq %rbp, %rax
jne 0xb175
movq %rbx, %rdi
callq 0x8090
leaq (%rbx,%rax), %rdi
addq $-0x2, %rdi
movq %r14, %rsi
subq %rax, %rsi
addq $0x2, %rsi
leaq 0x22266(%rip), %rdx     # 0x2d42d
xorl %eax, %eax
callq 0x8230
cmpq $0x0, 0xd0(%r15)
je 0xb26f
movq %rbx, %rdi
callq 0x8090
leaq (%rbx,%rax), %rdi
movq %r14, %rsi
subq %rax, %rsi
leaq 0x2224a(%rip), %rdx     # 0x2d43f
xorl %eax, %eax
callq 0x8230
movq 0xc0(%r15), %r12
addq $0xb0, %r15
cmpq %r15, %r12
je 0xb247
leaq 0x22224(%rip), %r13     # 0x2d43a
movq %rbx, %rdi
callq 0x8090
leaq (%rbx,%rax), %rdi
movq %r14, %rsi
subq %rax, %rsi
leaq 0x20(%r12), %rcx
movq %r13, %rdx
xorl %eax, %eax
callq 0x8230
movq %r12, %rdi
callq 0x81b0
movq %rax, %r12
cmpq %r15, %rax
jne 0xb216
movq %rbx, %rdi
callq 0x8090
leaq (%rbx,%rax), %rdi
addq $-0x2, %rdi
subq %rax, %r14
addq $0x2, %r14
leaq 0x221c8(%rip), %rdx     # 0x2d42d
movq %r14, %rsi
xorl %eax, %eax
callq 0x8230
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop