// File: /workspace/github_c_makefile_star2_O3/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 0x22428(%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 0xb079
leaq 0x22405(%rip), %rdx     # 0x2d413
xorl %eax, %eax
callq 0x8230
movq (%r15), %r13
cmpq 0x8(%r15), %r13
je 0xb056
leaq 0x223ff(%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 0xb025
movq %rbx, %rdi
callq 0x8090
leaq (%rbx,%rax), %rdi
addq $-0x2, %rdi
movq %r14, %rsi
subq %rax, %rsi
addq $0x2, %rsi
leaq 0x223b6(%rip), %rdx     # 0x2d42d
jmp 0xb080
leaq 0x221cd(%rip), %rdx     # 0x2d24d
xorl %eax, %eax
callq 0x8230
cmpq $0x0, 0xa0(%r15)
je 0xb128
movq %rbx, %rdi
callq 0x8090
leaq (%rbx,%rax), %rdi
movq %r14, %rsi
subq %rax, %rsi
leaq 0x22382(%rip), %rdx     # 0x2d430
xorl %eax, %eax
callq 0x8230
movq 0x90(%r15), %r12
leaq 0x80(%r15), %rbp
cmpq %rbp, %r12
je 0xb100
leaq 0x2236b(%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 0xb0cf
movq %rbx, %rdi
callq 0x8090
leaq (%rbx,%rax), %rdi
addq $-0x2, %rdi
movq %r14, %rsi
subq %rax, %rsi
addq $0x2, %rsi
leaq 0x2230c(%rip), %rdx     # 0x2d42d
xorl %eax, %eax
callq 0x8230
cmpq $0x0, 0xd0(%r15)
je 0xb1c9
movq %rbx, %rdi
callq 0x8090
leaq (%rbx,%rax), %rdi
movq %r14, %rsi
subq %rax, %rsi
leaq 0x222f0(%rip), %rdx     # 0x2d43f
xorl %eax, %eax
callq 0x8230
movq 0xc0(%r15), %r12
addq $0xb0, %r15
cmpq %r15, %r12
je 0xb1a1
leaq 0x222ca(%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 0xb170
movq %rbx, %rdi
callq 0x8090
leaq (%rbx,%rax), %rdi
addq $-0x2, %rdi
subq %rax, %r14
addq $0x2, %r14
leaq 0x2226e(%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