// File: /workspace/github_c_makefile_star2_O2/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 0x1f716(%rip), %rdx     # 0x2a401
movq %rsi, %rdi
movq %r14, %rsi
movq %r15, %rcx
xorl %eax, %eax
callq 0x8260
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 0xad7e
leaq 0x1f6f3(%rip), %rdx     # 0x2a413
xorl %eax, %eax
callq 0x8260
movq (%r15), %r13
leaq 0x1f6f3(%rip), %r12     # 0x2a424
movq 0x8(%r15), %rbp
movq %rbx, %rdi
callq 0x8090
leaq (%rbx,%rax), %rdi
cmpq %rbp, %r13
je 0xad67
movq %r14, %rsi
subq %rax, %rsi
movq (%r13), %rax
movq (%rax), %rax
movq 0x8(%rax), %rcx
movq %r12, %rdx
xorl %eax, %eax
callq 0x8260
addq $0x8, %r13
jmp 0xad31
addq $-0x2, %rdi
movq %r14, %rsi
subq %rax, %rsi
addq $0x2, %rsi
leaq 0x1f6b1(%rip), %rdx     # 0x2a42d
jmp 0xad85
leaq 0x1f4c8(%rip), %rdx     # 0x2a24d
xorl %eax, %eax
callq 0x8260
cmpq $0x0, 0xa0(%r15)
je 0xae1d
movq %rbx, %rdi
callq 0x8090
leaq (%rbx,%rax), %rdi
movq %r14, %rsi
subq %rax, %rsi
leaq 0x1f67d(%rip), %rdx     # 0x2a430
xorl %eax, %eax
callq 0x8260
movq 0x90(%r15), %r13
leaq 0x80(%r15), %rbp
leaq 0x1f66b(%rip), %r12     # 0x2a43a
movq %rbx, %rdi
callq 0x8090
leaq (%rbx,%rax), %rdi
cmpq %rbp, %r13
je 0xae01
movq %r14, %rsi
subq %rax, %rsi
leaq 0x20(%r13), %rcx
movq %r12, %rdx
xorl %eax, %eax
callq 0x8260
movq %r13, %rdi
callq 0x81c0
movq %rax, %r13
jmp 0xadcf
addq $-0x2, %rdi
movq %r14, %rsi
subq %rax, %rsi
addq $0x2, %rsi
leaq 0x1f617(%rip), %rdx     # 0x2a42d
xorl %eax, %eax
callq 0x8260
cmpq $0x0, 0xd0(%r15)
je 0xaeae
movq %rbx, %rdi
callq 0x8090
leaq (%rbx,%rax), %rdi
movq %r14, %rsi
subq %rax, %rsi
leaq 0x1f5fb(%rip), %rdx     # 0x2a43f
xorl %eax, %eax
callq 0x8260
movq 0xc0(%r15), %r13
addq $0xb0, %r15
leaq 0x1f5da(%rip), %r12     # 0x2a43a
movq %rbx, %rdi
callq 0x8090
leaq (%rbx,%rax), %rdi
cmpq %r15, %r13
je 0xae92
movq %r14, %rsi
subq %rax, %rsi
leaq 0x20(%r13), %rcx
movq %r12, %rdx
xorl %eax, %eax
callq 0x8260
movq %r13, %rdi
callq 0x81c0
movq %rax, %r13
jmp 0xae60
addq $-0x2, %rdi
subq %rax, %r14
addq $0x2, %r14
leaq 0x1f589(%rip), %rdx     # 0x2a42d
movq %r14, %rsi
xorl %eax, %eax
callq 0x8260
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq