LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/Laakeri[P]Triangulator/src/treewidth.cpp
// Function: TreeWidth::SolveAtom::greedyDegree2(Graph&)
vector<pair<int, int> > greedyDegree2(Graph& G) {
	queue<int> d2;
	for (int i = 0; i < G.n; i++) {
		assert(G.g[i].size() > 1);
		if (G.g[i].size() == 2) {
			d2.push(i);
		}
	}
	vector<pair<int, int> > sol;
	while (!d2.empty()) {
		int x = d2.front();
		d2.pop();
		if (G.g[x].size() != 2) continue;
		int n1 = G.g[x][0];
		int n2 = G.g[x][1];
		if (!G.hasEdge(n1, n2)) {
			sol.push_back({n1, n2});
			G.addEdge(n1, n2);
		}
	}
	return sol;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rsi, %r14
movq %rdi, %rbx
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %rdi
movaps %xmm0, 0x40(%rdi)
movaps %xmm0, 0x30(%rdi)
movaps %xmm0, 0x20(%rdi)
movaps %xmm0, 0x10(%rdi)
movaps %xmm0, (%rdi)
xorl %r13d, %r13d
xorl %esi, %esi
callq 0x1af06
movl $0x0, 0x8(%rsp)
cmpl $0x0, 0x50(%r14)
jle 0x27732
leaq 0x10(%rsp), %r15
leaq 0x8(%rsp), %r12
movslq %r13d, %rax
movq 0x38(%r14), %rcx
leaq (%rax,%rax,2), %rdx
movq 0x8(%rcx,%rdx,8), %rax
subq (%rcx,%rdx,8), %rax
cmpq $0x4, %rax
jbe 0x27821
cmpq $0x8, %rax
jne 0x2771f
movq 0x40(%rsp), %rax
movq 0x50(%rsp), %rcx
addq $-0x4, %rcx
cmpq %rcx, %rax
je 0x27714
movl %r13d, (%rax)
addq $0x4, %rax
movq %rax, 0x40(%rsp)
jmp 0x2771f
movq %r15, %rdi
movq %r12, %rsi
callq 0x1b07c
movl 0x8(%rsp), %r13d
incl %r13d
movl %r13d, 0x8(%rsp)
cmpl 0x50(%r14), %r13d
jl 0x276cf
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq $0x0, 0x10(%rbx)
movq 0x20(%rsp), %rax
cmpq %rax, 0x40(%rsp)
je 0x27805
leaq 0x8(%rsp), %r15
movslq (%rax), %r12
movq 0x30(%rsp), %rcx
addq $-0x4, %rcx
cmpq %rcx, %rax
je 0x2776c
addq $0x4, %rax
jmp 0x2779e
movq 0x28(%rsp), %rdi
movl $0x200, %esi            # imm = 0x200
callq 0x2210
movq 0x38(%rsp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x38(%rsp)
movq 0x8(%rax), %rax
movq %rax, 0x28(%rsp)
leaq 0x200(%rax), %rcx
movq %rcx, 0x30(%rsp)
movq %rax, 0x20(%rsp)
movq 0x38(%r14), %rcx
leaq (%r12,%r12,2), %rdx
movq (%rcx,%rdx,8), %rax
movq 0x8(%rcx,%rdx,8), %rcx
subq %rax, %rcx
cmpq $0x8, %rcx
jne 0x277f5
movl (%rax), %ebp
movl 0x4(%rax), %r12d
movq %r14, %rdi
movl %ebp, %esi
movl %r12d, %edx
callq 0x9b60
testb %al, %al
jne 0x277f5
movl %ebp, 0x8(%rsp)
movl %r12d, 0xc(%rsp)
movq %rbx, %rdi
movq %r15, %rsi
callq 0xafe4
movq %r14, %rdi
movl %ebp, %esi
movl %r12d, %edx
callq 0x9512
movq 0x20(%rsp), %rax
cmpq %rax, 0x40(%rsp)
jne 0x27755
leaq 0x10(%rsp), %rdi
callq 0x1aa48
movq %rbx, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3c4b(%rip), %rdi      # 0x2b473
leaq 0x4b11(%rip), %rsi      # 0x2c340
leaq 0x4b79(%rip), %rcx      # 0x2c3af
movl $0x35, %edx
callq 0x2140
movq %rax, %r14
jmp 0x2785e
jmp 0x27847
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x2785e
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x2210
leaq 0x10(%rsp), %rdi
callq 0x1aa48
movq %r14, %rdi
callq 0x2310
// File: /workspace/github_cpp_makefile_star2_O1/Laakeri[P]Triangulator/src/treewidth.cpp
// Function: TreeWidth::SolveAtom::nbClique(Graph&)
pair<int, int> nbClique(Graph& G) {
	for (int x = 0; x < G.n; x++) {
		assert(G.g[x].size() > 2);
		pair<int, int> fo = {-1, -1};
		bool fail = false;
		for (int i = 0; i < (int)G.g[x].size(); i++) {
			for (int ii = i+1; ii < (int)G.g[x].size(); ii++) {
				if (!G.hasEdge(G.g[x][i], G.g[x][ii])) {
					if (fo.F != -1) {
						fail = true;
						break;
					}
					else {
						fo = {G.g[x][i], G.g[x][ii]};
					}
				}
			}
			if (fail) break;
		}
		if (!fail) {
			assert(fo.F != -1);
			return fo;
		}
	}
	return {-1, -1};
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
cmpl $0x0, 0x50(%rdi)
jle 0x2798c
movq %rdi, %rbx
xorl %ecx, %ecx
movq 0x38(%rbx), %rax
movq %rcx, 0x18(%rsp)
leaq (%rcx,%rcx,2), %r12
movq 0x8(%rax,%r12,8), %rcx
subq (%rax,%r12,8), %rcx
cmpq $0x9, %rcx
jb 0x279ba
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movl $0x1, %r15d
xorl %esi, %esi
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %rax, 0x10(%rsp)
xorl %edx, %edx
movq 0x38(%rbx), %rax
movq 0x8(%rax,%r12,8), %rcx
subq (%rax,%r12,8), %rcx
shrq $0x2, %rcx
movslq %ecx, %rax
cmpq %rax, %rsi
jge 0x27972
movq %rsi, %r13
incq %rsi
movq 0x38(%rbx), %rcx
movq (%rcx,%r12,8), %rax
movq 0x8(%rcx,%r12,8), %rcx
subq %rax, %rcx
shrq $0x2, %rcx
cmpl %ecx, %esi
jge 0x27966
movq %rsi, 0x8(%rsp)
movq %rdx, 0x20(%rsp)
movq %r15, %r14
movl (%rax,%r13,4), %esi
movl (%rax,%r14,4), %edx
movq %rbx, %rdi
callq 0x9b60
testb %al, %al
jne 0x2793c
cmpl $-0x1, %ebp
jne 0x2795f
movq 0x38(%rbx), %rax
movq (%rax,%r12,8), %rax
movl (%rax,%r13,4), %ebp
movl (%rax,%r14,4), %eax
movq %rax, 0x10(%rsp)
incq %r14
movq 0x38(%rbx), %rcx
movq (%rcx,%r12,8), %rax
movq 0x8(%rcx,%r12,8), %rcx
subq %rax, %rcx
shrq $0x2, %rcx
cmpl %ecx, %r14d
jl 0x2790e
movq 0x20(%rsp), %rdx
jmp 0x27961
movb $0x1, %dl
movq 0x8(%rsp), %rsi
incq %r15
testb $0x1, %dl
je 0x278c6
testb $0x1, %dl
je 0x27998
movq 0x18(%rsp), %rcx
incq %rcx
movslq 0x50(%rbx), %rax
cmpq %rax, %rcx
jl 0x2788d
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
jmp 0x279a2
cmpl $-0x1, %ebp
movq 0x10(%rsp), %rcx
je 0x279d9
shlq $0x20, %rcx
movl %ebp, %eax
orq %rcx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3b42(%rip), %rdi      # 0x2b503
leaq 0x4978(%rip), %rsi      # 0x2c340
leaq 0x4a24(%rip), %rcx      # 0x2c3f3
movl $0x4a, %edx
callq 0x2140
leaq 0x3b75(%rip), %rdi      # 0x2b555
leaq 0x4959(%rip), %rsi      # 0x2c340
leaq 0x4a05(%rip), %rcx      # 0x2c3f3
movl $0x5c, %edx
callq 0x2140
// File: /workspace/github_cpp_makefile_star2_O1/Jumperr-labs[P]at25sf081/AT25SF081.cpp
// Function: AT25SF081::ReadArray(bool)
void AT25SF081::ReadArray(bool with_dummy_byte) {
    int address = ReadAddress();
    if (address < 0) return;

    if (with_dummy_byte) {
        if (ReadDummyBytes(1) != 1 || !spi_slave_->IsSsActive()) return;
    }

    bool done = false;
    while (!done) {
        size_t length = spi_slave_->Transmit(nullptr, &memory_[address], MEMORY_SIZE - address);
        if (length == 0) {
            return;
        }
        address = (address + 1) % (int) MEMORY_SIZE;
        done = !spi_slave_->IsSsActive();
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %esi, %r14d
movq %rdi, %rbx
callq 0x42e0
testl %eax, %eax
js 0x4bbd
movl %eax, %ebp
testb %r14b, %r14b
je 0x4b73
movq %rsp, %r14
movq 0x8(%rbx), %rdi
movq (%rdi), %rax
movq %rsp, %rsi
movl $0x1, %ecx
xorl %edx, %edx
callq *(%rax)
movq %r14, %rsp
cmpq $0x1, %rax
jne 0x4bbd
movq 0x8(%rbx), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
testb %al, %al
je 0x4bbd
leaq 0x10(%rbx), %r12
xorl %r14d, %r14d
testb $0x1, %r14b
jne 0x4bbd
movq 0x8(%rbx), %rdi
movl %ebp, %edx
addq %r12, %rdx
movl $0x100000, %ecx         # imm = 0x100000
subl %ebp, %ecx
movq (%rdi), %rax
xorl %esi, %esi
callq *(%rax)
movq %rax, %r15
testq %rax, %rax
je 0x4bb8
incl %ebp
andl $0xfffff, %ebp          # imm = 0xFFFFF
movq 0x8(%rbx), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
movl %eax, %r14d
xorb $0x1, %r14b
testq %r15, %r15
jne 0x4b7a
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/Jumperr-labs[P]at25sf081/AT25SF081.cpp
// Function: AT25SF081::ReadDeviceId()
void AT25SF081::ReadDeviceId() {
    static uint8_t response[2] = {MANUFACTURER_ID, DEVICE_CODE};
    int i = 0;
    ReadDummyBytes(3);
    while (spi_slave_->IsSsActive()) {
        spi_slave_->Transmit(nullptr, &response[i], 1);
        i = (i + 1) % 2;
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movq %rsp, %r15
movq 0x8(%rdi), %rdi
movq (%rdi), %rax
xorl %r14d, %r14d
movq %rsp, %rsi
movl $0x3, %ecx
xorl %edx, %edx
callq *(%rax)
movq %r15, %rsp
movq 0x8(%rbx), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
testb %al, %al
je 0x4f4a
leaq 0x531c(%rip), %r15      # 0xa23b
movq 0x8(%rbx), %rdi
movl %r14d, %edx
notl %r14d
addq %r15, %rdx
movq (%rdi), %rax
movl $0x1, %ecx
xorl %esi, %esi
callq *(%rax)
andl $0x1, %r14d
movq 0x8(%rbx), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
testb %al, %al
jne 0x4f1f
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/Jumperr-labs[P]at25sf081/AT25SF081.cpp
// Function: AT25SF081::ReadAddress()
int AT25SF081::ReadAddress() {
    uint8_t data[3];
    if (spi_slave_->Transmit(data, nullptr, 3) != 3 || !spi_slave_->IsSsActive()) {
        return -1;
    }

    return ((data[0] << 16) | (data[1] << 8) | data[2]) % (int) MEMORY_SIZE;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movq 0x8(%rdi), %rdi
movq (%rdi), %rax
leaq 0x5(%rsp), %rsi
movl $0x3, %ecx
xorl %edx, %edx
callq *(%rax)
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
cmpq $0x3, %rax
jne 0x4fad
movq 0x8(%r14), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
testb %al, %al
je 0x4fad
movzbl 0x5(%rsp), %ebx
movzbl 0x6(%rsp), %eax
shll $0x8, %eax
movzbl 0x7(%rsp), %ecx
andl $0xf, %ebx
shll $0x10, %ebx
orl %eax, %ebx
orl %ecx, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/Jumperr-labs[P]at25sf081/modeling-framework/src/ModelingFramework.cpp
// Function: AddTimedCallback(unsigned long, std::function<void ()> const&, bool)
int AddTimedCallback(uint64_t ns, const callback_t &callback, bool run_once) {
    assert(jemu_interface_);
    int id = jemu_interface_->AddTimedCallback(ns, &TimedCallback, run_once);
    timers_callbacks_map_[id] = callback;
    return id;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %rsi
movq 0x4954(%rip), %rax      # 0x9f88
movq (%rax), %rdi
testq %rdi, %rdi
je 0x5679
movq (%rdi), %rax
movzbl %dl, %ecx
movq 0x495f(%rip), %rdx      # 0x9fa8
callq *0x20(%rax)
leaq 0x4(%rsp), %r14
movl %eax, (%r14)
movq 0x497d(%rip), %rdi      # 0x9fd8
movq %r14, %rsi
callq 0x4160
movq %rax, %rdi
movq %rbx, %rsi
callq 0x4050
movl (%r14), %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x1bf9(%rip), %rdi      # 0x7279
leaq 0x1c02(%rip), %rsi      # 0x7289
leaq 0x1e70(%rip), %rcx      # 0x74fe
movl $0x55, %edx
callq 0x4170
// File: /workspace/github_cpp_makefile_star2_O1/Jumperr-labs[P]at25sf081/modeling-framework/src/ModelingFramework.cpp
// Function: SetMultiplePinsLevel(std::vector<WireChange, std::allocator<WireChange>> const&)
void SetMultiplePinsLevel(const pin_level_changes_t& pin_changes) {
    assert(jemu_interface_);

    if (pin_changes.empty()) 
        return;

    std::unique_ptr<WireChange> arr(new WireChange[pin_changes.size()]);
    std::copy(pin_changes.begin(),pin_changes.end(), arr.get() );
    jemu_interface_->SetMultiplePinsLevel(arr.get(), pin_changes.size());
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq 0x4869(%rip), %rax      # 0x9f88
movq (%rax), %rbx
testq %rbx, %rbx
je 0x57c8
movq (%rdi), %r14
movq 0x8(%rdi), %r15
cmpq %r15, %r14
je 0x57be
subq %r14, %r15
movq %r15, %rax
sarq $0x2, %rax
movabsq $-0x5555555555555555, %r12 # imm = 0xAAAAAAAAAAAAAAAB
imulq %rax, %r12
movl $0xc, %ecx
movq %r12, %rax
mulq %rcx
movq $-0x1, %rdi
cmovnoq %rax, %rdi
callq 0x4030
movq %rax, %r13
addq %r15, %rax
xorl %ecx, %ecx
movq %r13, %rdx
movl %ecx, (%rdx)
movb $0x0, 0x4(%rdx)
movl %ecx, 0x8(%rdx)
addq $0xc, %rdx
cmpq %rax, %rdx
jne 0x5779
movq %r13, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x43a0
movq (%rbx), %rax
movq %rbx, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq *0x60(%rax)
movl $0xc, %esi
movq %r13, %rdi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x4230
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x1aaa(%rip), %rdi      # 0x7279
leaq 0x1ab3(%rip), %rsi      # 0x7289
leaq 0x1da0(%rip), %rcx      # 0x757d
movl $0x66, %edx
callq 0x4170
movq %rax, %rbx
movl $0xc, %esi
movq %r13, %rdi
callq 0x4230
movq %rbx, %rdi
callq 0x4410
// File: /workspace/github_cpp_makefile_star2_O1/Jumperr-labs[P]at25sf081/modeling-framework/src/ModelingFramework.cpp
// Function: SetPinChangeLevelEventCallback(unsigned int, std::function<void (std::vector<WireLogicLevelEvent, std::allocator<WireLogicLevelEvent>>&)> const&)
int SetPinChangeLevelEventCallback(uint32_t pin_id, const pin_change_level_callback_t& callback) {
    assert(jemu_interface_);
    static int id = 0;
    auto pin_change_level_callback = new PinChangeLevelEventCallback(callback);
    jemu_interface_->SetPinChangeLevelEventCallback(pin_id, pin_change_level_callback);
    return id++;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq 0x4735(%rip), %r12      # 0x9f88
cmpq $0x0, (%r12)
je 0x590b
movq %rsi, %r15
movl %edi, %ebx
movl $0x28, %edi
callq 0x4220
movq %rax, %r14
leaq 0x8(%rsp), %rdi
movq %r15, %rsi
callq 0x4150
movq 0x472c(%rip), %rax      # 0x9fb0
addq $0x10, %rax
movq %rax, (%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%r14)
movq $0x0, 0x18(%r14)
movq 0x20(%rsp), %rax
movq %rax, 0x20(%r14)
movq 0x18(%rsp), %rax
testq %rax, %rax
je 0x58c8
movq %r14, %rcx
addq $0x8, %rcx
leaq 0x18(%rsp), %rdx
movups -0x10(%rdx), %xmm1
movups %xmm1, (%rcx)
movq %rax, 0x18(%r14)
movups %xmm0, (%rdx)
movq 0x18(%rsp), %rax
testq %rax, %rax
je 0x58e1
leaq 0x8(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq (%r12), %rdi
movq (%rdi), %rax
movl %ebx, %esi
movq %r14, %rdx
callq *0x70(%rax)
movl 0x49a2(%rip), %eax      # 0xa298
leal 0x1(%rax), %ecx
movl %ecx, 0x4999(%rip)      # 0xa298
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x1967(%rip), %rdi      # 0x7279
leaq 0x1970(%rip), %rsi      # 0x7289
leaq 0x1cca(%rip), %rcx      # 0x75ea
movl $0x83, %edx
callq 0x4170
movq %rax, %rdi
callq 0x5a97
movq %rax, %rbx
movl $0x28, %esi
movq %r14, %rdi
callq 0x4230
movq %rbx, %rdi
callq 0x4410
// File: /workspace/github_cpp_makefile_star2_O1/Sherhang[P]redis-for-cpp/./credis.h
// Function: std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> Redis::num2str<long>(long const&)
std::string num2str(const T& num)
    {
        std::stringstream ss;
        ss << num;
        std::string str;
        ss >> str;
        return str;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x190, %rsp            # imm = 0x190
movq %rdx, %r14
movq %rdi, %rbx
leaq 0x8(%rsp), %rdi
callq 0x32a0
leaq 0x18(%rsp), %rdi
movq (%r14), %rsi
callq 0x3360
leaq 0x10(%rbx), %r15
movq %r15, (%rbx)
movq $0x0, 0x8(%rbx)
movb $0x0, 0x10(%rbx)
leaq 0x8(%rsp), %rdi
movq %rbx, %rsi
callq 0x3460
movq 0xf790(%rip), %rsi      # 0x19fb8
leaq 0x8(%rsp), %rdi
callq 0x32c0
leaq 0x88(%rsp), %rdi
callq 0x3130
movq %rbx, %rax
addq $0x190, %rsp            # imm = 0x190
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r15, %rdi
je 0xa864
callq 0x3350
jmp 0xa864
movq %rax, %r14
movq 0xf74d(%rip), %rsi      # 0x19fb8
leaq 0x8(%rsp), %rdi
callq 0x32c0
leaq 0x88(%rsp), %rdi
callq 0x3130
movq %r14, %rdi
callq 0x35b0
// File: /workspace/github_cpp_makefile_star2_O1/Sherhang[P]redis-for-cpp/credis.cpp
// Function: Redis::~Redis()
Redis::~Redis() 
{
    if(_connected)
    {
        //DEBUG<<"free _context"<<std::endl;
        ::redisFree(_context);
        _connected = false;
    }
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
leaq 0x159c1(%rip), %rax     # 0x19d88
movq %rax, (%rdi)
cmpb $0x1, 0x60(%rdi)
jne 0x43dd
movq 0x8(%rbx), %rdi
callq 0xd540
movb $0x0, 0x60(%rbx)
movq 0x40(%rbx), %rdi
leaq 0x50(%rbx), %rax
cmpq %rax, %rdi
je 0x43ef
callq 0x3350
movq 0x18(%rbx), %rdi
addq $0x28, %rbx
cmpq %rbx, %rdi
je 0x4402
popq %rbx
jmp 0x3350
popq %rbx
retq
movq %rax, %rdi
callq 0xa74b
// File: /workspace/github_cpp_makefile_star2_O1/Sherhang[P]redis-for-cpp/credis.cpp
// Function: Redis::connect()
void Redis::connect()
{
    if(_connected)
    {
        //DEBUG
        return;
    }
    _connected = true;
    _context = ::redisConnect(_ip.c_str(), _port);
    if (_context && _context->err)
    {
        exit(EXIT_FAILURE);
    }
    if(_pwd.empty())
    {
        std::vector<std::string> status;
        exec("PING",status);
        if((!status.empty()) && strcasecmp(status[0].c_str(),"PONG") == 0)
        {
            return ;
        }
        else
        {
            //debug
            exit(EXIT_FAILURE);
        }
    }

    if (auth(_pwd))
    {
        //debug
    }
    else
    {
        exit(EXIT_FAILURE);
    }

}

// Assembly:
pushq %r14
pushq %rbx
subq $0x38, %rsp
cmpb $0x0, 0x60(%rdi)
jne 0x450f
movq %rdi, %rbx
movb $0x1, 0x60(%rdi)
movq 0x18(%rdi), %rdi
movl 0x38(%rbx), %esi
callq 0xd800
movq %rax, 0x8(%rbx)
testq %rax, %rax
je 0x4480
cmpl $0x0, (%rax)
jne 0x4517
cmpq $0x0, 0x48(%rbx)
je 0x4499
leaq 0x40(%rbx), %rsi
movq %rbx, %rdi
callq 0x4702
testb %al, %al
jne 0x450f
jmp 0x4517
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
leaq 0x28(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0xfc03(%rip), %rsi      # 0x140bc
leaq 0xfc00(%rip), %rdx      # 0x140c0
leaq 0x18(%rsp), %rdi
callq 0x42a6
leaq 0x18(%rsp), %rsi
movq %rsp, %rdx
movq %rbx, %rdi
callq 0x4548
movq 0x18(%rsp), %rdi
cmpq %r14, %rdi
je 0x44e9
callq 0x3350
movq (%rsp), %rax
cmpq 0x8(%rsp), %rax
je 0x4517
movq (%rax), %rdi
leaq 0xfbc3(%rip), %rsi      # 0x140c1
callq 0x33c0
testl %eax, %eax
jne 0x4517
movq %rsp, %rdi
callq 0x4262
addq $0x38, %rsp
popq %rbx
popq %r14
retq
movl $0x1, %edi
callq 0x3430
movq %rax, %rbx
movq 0x18(%rsp), %rdi
cmpq %r14, %rdi
je 0x4538
callq 0x3350
jmp 0x4538
movq %rax, %rbx
movq %rsp, %rdi
callq 0x4262
movq %rbx, %rdi
callq 0x35b0
// File: /workspace/github_cpp_makefile_star2_O1/Sherhang[P]redis-for-cpp/credis.cpp
// Function: Redis::del(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
int64_t Redis::del(const std::string& key)
{
    int64_t ret=0;
    std::string cmd = "DEL " + key;
    if(execReplyInt(cmd, ret))
    {
        return ret;
    }
    DEBUG<<"execReplyInt error "<<std::endl;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rsi, %rdx
movq %rdi, %rbx
leaq 0x8(%rsp), %r14
movq $0x0, (%r14)
leaq 0xf8ec(%rip), %rsi      # 0x140c6
leaq 0x10(%rsp), %r15
movq %r15, %rdi
callq 0xa756
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x4910
testb %al, %al
je 0x481e
movq 0x8(%rsp), %rbx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4811
callq 0x3350
movq %rbx, %rax
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq 0x157b3(%rip), %rdi     # 0x19fd8
leaq 0xf89f(%rip), %rsi      # 0x140cb
movl $0x7, %edx
callq 0x33f0
movq 0x1579b(%rip), %rdi     # 0x19fd8
leaq 0xf88f(%rip), %rsi      # 0x140d3
movl $0xa, %edx
callq 0x33f0
movq 0x15783(%rip), %rdi     # 0x19fd8
leaq 0xf882(%rip), %rsi      # 0x140de
movl $0x1, %edx
callq 0x33f0
movq 0x1576b(%rip), %rdi     # 0x19fd8
leaq 0xf86c(%rip), %rsi      # 0x140e0
movl $0x3, %edx
callq 0x33f0
movq 0x15753(%rip), %rdi     # 0x19fd8
leaq 0xf852(%rip), %rsi      # 0x140de
movl $0x1, %edx
callq 0x33f0
movq 0x1573b(%rip), %rdi     # 0x19fd8
leaq 0xf840(%rip), %rsi      # 0x140e4
movl $0x4, %edx
callq 0x33f0
movq 0x15723(%rip), %rdi     # 0x19fd8
movl $0x75, %esi
callq 0x3590
movq %rax, %rbx
leaq 0x10329(%rip), %rsi     # 0x14bf2
movl $0x1, %edx
movq %rax, %rdi
callq 0x33f0
leaq 0xf80c(%rip), %rsi      # 0x140e9
movl $0x13, %edx
movq %rbx, %rdi
callq 0x33f0
movq %rbx, %rdi
callq 0x31c0
movq %rax, %rbx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4908
callq 0x3350
movq %rbx, %rdi
callq 0x35b0
// File: /workspace/github_cpp_makefile_star2_O1/Sherhang[P]redis-for-cpp/credis.cpp
// Function: Redis::execReplyInt(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, long&)
bool Redis::execReplyInt(const std::string& cmd, int64_t& ret)
{
    if(_context==NULL)
    {
        return false;
    }

    redisReply* _reply = (redisReply*)::redisCommand(_context, cmd.c_str());
    if (!isError(_reply))
    {
        //DEBUG<<"_reply->type "<<_reply->type<<std::endl;
        if (_reply->type == REDIS_REPLY_INTEGER)
        {
            ret = _reply->integer;
            freeReply(_reply);
            return true;
        }
        if (_reply->type == REDIS_REPLY_ERROR)
        {
            std::string reason = _reply->str;
            reason.resize(_reply->len);
            freeReply(_reply);
            return false;
        }
    }
    freeReply(_reply);
    return false;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq 0x8(%rdi), %rdi
testq %rdi, %rdi
je 0x49aa
movq %rdx, %r14
movq (%rsi), %rsi
xorl %ebp, %ebp
xorl %eax, %eax
callq 0xe300
testq %rax, %rax
je 0x49ac
movq %rax, %rbx
movl (%rax), %eax
cmpl $0x6, %eax
je 0x495c
cmpl $0x3, %eax
jne 0x499d
movq 0x8(%rbx), %rax
movq %rax, (%r14)
movq %rbx, %rdi
callq 0xbc50
movb $0x1, %bpl
jmp 0x49ac
movq 0x18(%rbx), %rsi
leaq 0x10(%rsp), %r14
leaq 0xf(%rsp), %rdx
movq %r14, %rdi
callq 0x3170
movq 0x10(%rbx), %rsi
movq %r14, %rdi
xorl %edx, %edx
callq 0x3100
movq %rbx, %rdi
callq 0xbc50
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x49aa
callq 0x3350
jmp 0x49aa
testq %rbx, %rbx
je 0x49aa
movq %rbx, %rdi
callq 0xbc50
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x49cd
callq 0x3350
movq %rbx, %rdi
callq 0x35b0
nop
// File: /workspace/github_cpp_makefile_star2_O1/Sherhang[P]redis-for-cpp/credis.cpp
// Function: Redis::exists(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
bool Redis::exists(const std::string& key)
{  
    int64_t ret = 0;
    std::string cmd = "DEL " + key;
    execReplyInt(cmd, ret);
    return (ret > 0);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rsi, %rdx
movq %rdi, %rbx
leaq 0x8(%rsp), %r14
movq $0x0, (%r14)
leaq 0xf6ce(%rip), %rsi      # 0x140c6
leaq 0x10(%rsp), %r15
movq %r15, %rdi
callq 0xa756
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x4910
movq 0x8(%rsp), %rbx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4a2b
callq 0x3350
testq %rbx, %rbx
setg %al
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4a51
callq 0x3350
movq %rbx, %rdi
callq 0x35b0
nop
// File: /workspace/github_cpp_makefile_star2_O1/Sherhang[P]redis-for-cpp/credis.cpp
// Function: Redis::expire(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, long)
bool Redis::expire(const std::string& key, int64_t seconds)
{
    int64_t ret = 0;
    std::string cmd = "EXPIRE " + key + " " +  num2str<int64_t>(seconds);
    execReplyInt(cmd, ret);
    return (ret > 0);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x98, %rsp
movq %rsi, %rax
movq %rdi, %rbx
movq %rdx, 0x70(%rsp)
movq $0x0, 0x8(%rsp)
leaq 0xf67e(%rip), %rsi      # 0x140fd
leaq 0x78(%rsp), %r14
movq %r14, %rdi
movq %rax, %rdx
callq 0xa756
leaq 0x1015c(%rip), %rsi     # 0x14bf2
movq %r14, %rdi
callq 0x3600
leaq 0x40(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4ac5
movq %rdx, 0x30(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x40(%rsp)
jmp 0x4acc
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
movq %rdx, 0x38(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x50(%rsp), %rdi
leaq 0x70(%rsp), %rdx
movq %rbx, %rsi
callq 0xa7d8
movq 0x30(%rsp), %rcx
movq 0x38(%rsp), %r8
movq 0x58(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r14, %rcx
je 0x4b18
movq 0x40(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x4b37
leaq 0x60(%rsp), %rdi
movl $0xf, %esi
cmpq %rdi, -0x10(%rdi)
je 0x4b32
movq 0x60(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x4b48
movq 0x50(%rsp), %rsi
leaq 0x30(%rsp), %rdi
callq 0x3110
jmp 0x4b56
leaq 0x50(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x33e0
leaq 0x20(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x4b7a
movq %rsi, 0x10(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x20(%rsp)
jmp 0x4b80
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x18(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4bb0
callq 0x3350
movq 0x30(%rsp), %rdi
cmpq %r14, %rdi
je 0x4bbf
callq 0x3350
leaq 0x88(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4bd5
callq 0x3350
leaq 0x10(%rsp), %rsi
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x4910
movq 0x8(%rsp), %rbx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4bff
callq 0x3350
testq %rbx, %rbx
setg %al
addq $0x98, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
leaq 0x20(%rsp), %rax
jmp 0x4c51
movq %rax, %rbx
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4c35
callq 0x3350
jmp 0x4c35
movq %rax, %rbx
movq 0x30(%rsp), %rdi
cmpq %r14, %rdi
je 0x4c49
callq 0x3350
jmp 0x4c49
movq %rax, %rbx
leaq 0x88(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4c5f
callq 0x3350
movq %rbx, %rdi
callq 0x35b0
nop
// File: /workspace/github_cpp_makefile_star2_O1/Sherhang[P]redis-for-cpp/credis.cpp
// Function: Redis::expireat(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, long)
bool Redis::expireat(const std::string& key, int64_t timestamp)
{
    int64_t ret = 0;
    std::string cmd = "EXPIREAT " + key + " " + num2str<int64_t>(timestamp);
    execReplyInt(cmd, ret);
    return (ret > 0);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x98, %rsp
movq %rsi, %rax
movq %rdi, %rbx
movq %rdx, 0x70(%rsp)
movq $0x0, 0x8(%rsp)
leaq 0xf478(%rip), %rsi      # 0x14105
leaq 0x78(%rsp), %r14
movq %r14, %rdi
movq %rax, %rdx
callq 0xa756
leaq 0xff4e(%rip), %rsi      # 0x14bf2
movq %r14, %rdi
callq 0x3600
leaq 0x40(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4cd3
movq %rdx, 0x30(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x40(%rsp)
jmp 0x4cda
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
movq %rdx, 0x38(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x50(%rsp), %rdi
leaq 0x70(%rsp), %rdx
movq %rbx, %rsi
callq 0xa7d8
movq 0x30(%rsp), %rcx
movq 0x38(%rsp), %r8
movq 0x58(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r14, %rcx
je 0x4d26
movq 0x40(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x4d45
leaq 0x60(%rsp), %rdi
movl $0xf, %esi
cmpq %rdi, -0x10(%rdi)
je 0x4d40
movq 0x60(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x4d56
movq 0x50(%rsp), %rsi
leaq 0x30(%rsp), %rdi
callq 0x3110
jmp 0x4d64
leaq 0x50(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x33e0
leaq 0x20(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x4d88
movq %rsi, 0x10(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x20(%rsp)
jmp 0x4d8e
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x18(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4dbe
callq 0x3350
movq 0x30(%rsp), %rdi
cmpq %r14, %rdi
je 0x4dcd
callq 0x3350
leaq 0x88(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4de3
callq 0x3350
leaq 0x10(%rsp), %rsi
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x4910
movq 0x8(%rsp), %rbx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4e0d
callq 0x3350
testq %rbx, %rbx
setg %al
addq $0x98, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
leaq 0x20(%rsp), %rax
jmp 0x4e5f
movq %rax, %rbx
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4e43
callq 0x3350
jmp 0x4e43
movq %rax, %rbx
movq 0x30(%rsp), %rdi
cmpq %r14, %rdi
je 0x4e57
callq 0x3350
jmp 0x4e57
movq %rax, %rbx
leaq 0x88(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4e6d
callq 0x3350
movq %rbx, %rdi
callq 0x35b0
nop
// File: /workspace/github_cpp_makefile_star2_O1/Sherhang[P]redis-for-cpp/credis.cpp
// Function: Redis::keys(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&)
bool Redis::keys(const std::string& pattern, std::vector<std::string>& key_list)
{
    std::string cmd = "KEYS " + pattern; 
    if (execReplyArray(cmd, key_list))
    {
        return true;
    }
    return false;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdx, %rbx
movq %rsi, %rdx
movq %rdi, %r14
leaq 0xf280(%rip), %rsi      # 0x1410f
movq %rsp, %r15
movq %r15, %rdi
callq 0xa756
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x4ee8
movl %eax, %ebx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4ebd
callq 0x3350
movl %ebx, %eax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4edf
callq 0x3350
movq %rbx, %rdi
callq 0x35b0
nop
// File: /workspace/github_cpp_makefile_star2_O1/Sherhang[P]redis-for-cpp/credis.cpp
// Function: Redis::execReplyArray(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&)
bool Redis::execReplyArray(const std::string& cmd, std::vector<std::string>& ret)
{
    if(_context==NULL)
    {
        return false;
    }

    redisReply* _reply = (redisReply*)::redisCommand(_context, cmd.c_str());
    if (!isError(_reply))
    {
        if (_reply->type == REDIS_REPLY_ARRAY)
        {
            int32_t elements = _reply->elements;
            ret.reserve(elements);
            for(int32_t i=0; i<elements; ++i)
            {
                std::string strTemp(_reply->element[i]->str, _reply->element[i]->len);
                ret.push_back(strTemp);
            }
            freeReply(_reply);
            return true;
        }
    }
    freeReply(_reply);
    return false;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq 0x8(%rdi), %rdi
testq %rdi, %rdi
je 0x4fab
movq %rdx, %r14
movq (%rsi), %rsi
xorl %ebx, %ebx
xorl %eax, %eax
callq 0xe300
testq %rax, %rax
je 0x4fad
movq %rax, %r15
cmpl $0x2, (%rax)
sete %al
movl %eax, 0x4(%rsp)
jne 0x4f98
movq 0x20(%r15), %r13
movslq %r13d, %r12
movq %r14, %rdi
movq %r12, %rsi
callq 0xa8d0
testl %r12d, %r12d
jle 0x4f9d
leaq 0x18(%rsp), %rbp
andl $0x7fffffff, %r13d      # imm = 0x7FFFFFFF
xorl %ebx, %ebx
leaq 0x8(%rsp), %r12
movq 0x28(%r15), %rax
movq (%rax,%rbx,8), %rax
movq 0x18(%rax), %rsi
movq 0x10(%rax), %rdx
addq %rsi, %rdx
movq %rbp, 0x8(%rsp)
movq %r12, %rdi
callq 0x42a6
movq %r14, %rdi
movq %r12, %rsi
callq 0xa9b0
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x4f8e
callq 0x3350
incq %rbx
cmpq %rbx, %r13
jne 0x4f54
jmp 0x4f9d
testq %r15, %r15
je 0x4fab
movq %r15, %rdi
callq 0xbc50
movl 0x4(%rsp), %ebx
jmp 0x4fad
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x4fd0
callq 0x3350
movq %rbx, %rdi
callq 0x35b0
// File: /workspace/github_cpp_makefile_star2_O1/Sherhang[P]redis-for-cpp/credis.cpp
// Function: Redis::execScan(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&)
int32_t Redis::execScan(const std::string& cmd, std::vector<std::string>& values)
{
    if(_context==NULL)
    {
        //DEBUG<<"NULL"<<std::endl;
        return -1;
    }
    redisReply* _reply = (redisReply*)::redisCommand(_context, cmd.c_str());
    if(isError(_reply))
    {
        //DEBUG<<"isError"<<std::endl;
        freeReply(_reply);
        return -2;
    }
    //DEBUG<<"_reply->type "<<_reply->type<<std::endl;
    if(_reply->type != REDIS_REPLY_ARRAY)
    {
        //DEBUG<<"not array"<<std::endl;
        freeReply(_reply);
        return -3;
    }
    redisReply* sub_reply = (_reply->element[1]);
    int32_t len = sub_reply->elements;
    values.clear();//
    values.reserve(len);
    for(int32_t i=0;i<len;++i)
    {
        std::string strTemp(sub_reply->element[i]->str, sub_reply->element[i]->len);
        values.push_back(strTemp);
    }
    int32_t ret = -1;
    std::string strTemp(_reply->element[0]->str, _reply->element[0]->len);
    ret = str2num<int32_t>(strTemp);
    freeReply(_reply);
    return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
testq %rdi, %rdi
je 0x5545
movq %rdx, %r15
movq (%rsi), %rsi
xorl %eax, %eax
callq 0xe300
testq %rax, %rax
je 0x554c
cmpl $0x2, (%rax)
jne 0x5553
movq %rbx, 0x28(%rsp)
movq %rax, 0x30(%rsp)
movq 0x28(%rax), %rax
movq 0x8(%rax), %rbp
movq 0x20(%rbp), %rbx
movq %r15, %rdi
callq 0xa88a
movslq %ebx, %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0xa8d0
leaq 0x18(%rsp), %r13
testl %r12d, %r12d
jle 0x54f7
andl $0x7fffffff, %ebx       # imm = 0x7FFFFFFF
xorl %r14d, %r14d
leaq 0x8(%rsp), %r12
movq 0x28(%rbp), %rax
movq (%rax,%r14,8), %rax
movq 0x18(%rax), %rsi
movq 0x10(%rax), %rdx
addq %rsi, %rdx
movq %r13, 0x8(%rsp)
movq %r12, %rdi
callq 0x42a6
movq %r15, %rdi
movq %r12, %rsi
callq 0xa9b0
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x54ef
callq 0x3350
incq %r14
cmpq %r14, %rbx
jne 0x54b5
movq 0x30(%rsp), %r14
movq 0x28(%r14), %rax
movq (%rax), %rax
movq 0x18(%rax), %rsi
movq 0x10(%rax), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %rdi
movq %r13, (%rdi)
callq 0x42a6
leaq 0x8(%rsp), %rsi
movq 0x28(%rsp), %rdi
callq 0xa9ee
movl %eax, %ebx
movq %r14, %rdi
callq 0xbc50
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x5560
callq 0x3350
jmp 0x5560
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
jmp 0x5560
movl $0xfffffffe, %ebx       # imm = 0xFFFFFFFE
jmp 0x5560
movq %rax, %rdi
callq 0xbc50
movl $0xfffffffd, %ebx       # imm = 0xFFFFFFFD
movl %ebx, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x5575
jmp 0x557a
movq %rax, %rbx
jmp 0x558c
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x558c
callq 0x3350
movq %rbx, %rdi
callq 0x35b0
// File: /workspace/github_cpp_makefile_star2_O1/Sherhang[P]redis-for-cpp/credis.cpp
// Function: Redis::type(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
std::string Redis::type(const std::string& key)
{
    std::string ret;
    std::string cmd = "TYPE " + key;
    execReplyString(cmd, ret);
    return ret;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rdi), %r15
movq %r15, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
leaq 0xe4b3(%rip), %rsi      # 0x1412a
movq %rsp, %rdi
callq 0xa756
movq %rsp, %rsi
movq %r14, %rdi
movq %rbx, %rdx
callq 0x5d5e
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5ca0
callq 0x3350
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r14
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5cc8
callq 0x3350
jmp 0x5cc8
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r15, %rdi
je 0x5cd5
callq 0x3350
movq %r14, %rdi
callq 0x35b0
nop
// File: /workspace/github_cpp_makefile_star2_O1/Sherhang[P]redis-for-cpp/credis.cpp
// Function: Redis::ttl(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
int64_t Redis::ttl(const std::string& key)
{
    int64_t ret = -3;
    std::string cmd = "TTL " + key;
    execReplyInt(cmd, ret);
    return ret;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rsi, %rdx
movq %rdi, %rbx
leaq 0x8(%rsp), %r14
movq $-0x3, (%r14)
leaq 0xe425(%rip), %rsi      # 0x14125
leaq 0x10(%rsp), %r15
movq %r15, %rdi
callq 0xa756
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x4910
movq 0x8(%rsp), %rbx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5d33
callq 0x3350
movq %rbx, %rax
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5d56
callq 0x3350
movq %rbx, %rdi
callq 0x35b0
// File: /workspace/github_cpp_makefile_star2_O1/Sherhang[P]redis-for-cpp/credis.cpp
// Function: Redis::execReplyString(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
bool Redis::execReplyString(const std::string& cmd, std::string& ret)
{
    if(_context==NULL)
    {
        //DEBUG<<"_context is NULL"<<std::endl;
        return false;
    }
    redisReply* _reply = (redisReply*)::redisCommand(_context, cmd.c_str());
    if (!(isError(_reply)))
    {
        if (_reply->type == REDIS_REPLY_STRING || _reply->type == REDIS_REPLY_STATUS)// status --> string
        {
            ret = _reply->str;
            freeReply(_reply);
            return true;
        }

        if (_reply->type == REDIS_REPLY_ERROR)
        {
            std::string reason = _reply->str;
            reason.resize(_reply->len);
            freeReply(_reply);
            return false;
        }
    }
    else
        DEBUG<<"isError(_reply)"<<std::endl;
    freeReply(_reply);
    return false;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq 0x8(%rdi), %rdi
testq %rdi, %rdi
je 0x5f01
movq %rdx, %r14
movq (%rsi), %rsi
xorl %eax, %eax
callq 0xe300
movq %rax, %rbx
testq %rax, %rax
je 0x5dd6
movl (%rbx), %eax
cmpl $0x1, %eax
je 0x5da4
cmpl $0x6, %eax
je 0x5ec2
cmpl $0x5, %eax
jne 0x5eb3
movq 0x18(%rbx), %r15
movq 0x8(%r14), %r12
movq %r15, %rdi
callq 0x3190
movq %r14, %rdi
xorl %esi, %esi
movq %r12, %rdx
movq %r15, %rcx
movq %rax, %r8
callq 0x3500
movq %rbx, %rdi
callq 0xbc50
movb $0x1, %al
jmp 0x5f03
movq 0x141fb(%rip), %r14     # 0x19fd8
leaq 0xe2e7(%rip), %rsi      # 0x140cb
movl $0x7, %edx
movq %r14, %rdi
callq 0x33f0
leaq 0xe2db(%rip), %rsi      # 0x140d3
movl $0xa, %edx
movq %r14, %rdi
callq 0x33f0
leaq 0xe2d2(%rip), %r15      # 0x140de
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x33f0
leaq 0xe3e0(%rip), %rsi      # 0x14203
movl $0xf, %edx
movq %r14, %rdi
callq 0x33f0
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x33f0
leaq 0xe29d(%rip), %rsi      # 0x140e4
movl $0x4, %edx
movq %r14, %rdi
callq 0x33f0
movq %r14, %rdi
movl $0x37a, %esi            # imm = 0x37A
callq 0x3590
movq %rax, %r14
leaq 0xed87(%rip), %rsi      # 0x14bf2
movl $0x1, %edx
movq %rax, %rdi
callq 0x33f0
leaq 0xe394(%rip), %rsi      # 0x14213
movl $0xf, %edx
movq %r14, %rdi
callq 0x33f0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3370
movsbl %al, %esi
movq %r14, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3280
testq %rbx, %rbx
je 0x5f01
movq %rbx, %rdi
callq 0xbc50
jmp 0x5f01
movq 0x18(%rbx), %rsi
leaq 0x8(%rsp), %r14
leaq 0x7(%rsp), %rdx
movq %r14, %rdi
callq 0x3170
movq 0x10(%rbx), %rsi
movq %r14, %rdi
xorl %edx, %edx
callq 0x3100
movq %rbx, %rdi
callq 0xbc50
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5f01
callq 0x3350
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5f25
callq 0x3350
movq %rbx, %rdi
callq 0x35b0
nop
// File: /workspace/github_cpp_makefile_star2_O1/Sherhang[P]redis-for-cpp/credis.cpp
// Function: Redis::execReplyStatus(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
bool Redis::execReplyStatus(const std::string& cmd)
{
    if(_context==NULL)
    {
        //DEBUG<<"_contex == NULL"<<std::endl;
        return false;
    }
    redisReply* _reply = (redisReply*)::redisCommand(_context, cmd.c_str());
    if (!isError(_reply))
    {
        //DEBUG<<"_reply->type "<<_reply->type<<std::endl;
        //DEBUG<<"_reply->str "<<_reply->str<<std::endl;
        if (_reply->type == REDIS_REPLY_STATUS && strcasecmp(_reply->str, "OK") == 0)
        {
            freeReply(_reply);
            return true;
        }
    }
    freeReply(_reply);
    return false;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq 0x8(%rdi), %rdi
testq %rdi, %rdi
je 0x60cf
movq (%rsi), %rsi
xorl %ebx, %ebx
xorl %eax, %eax
callq 0xe300
testq %rax, %rax
je 0x60e2
movq %rax, %r14
cmpl $0x5, (%rax)
jne 0x60d3
testq %r14, %r14
setne %bpl
movq 0x18(%r14), %rdi
leaq 0xe07c(%rip), %rsi      # 0x1413c
callq 0x33c0
testl %eax, %eax
sete %bl
orb %bl, %bpl
jne 0x60da
xorl %ebx, %ebx
jmp 0x60e2
xorl %ebx, %ebx
testq %r14, %r14
je 0x60e2
movq %r14, %rdi
callq 0xbc50
movl %ebx, %eax
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/Sherhang[P]redis-for-cpp/credis.cpp
// Function: Redis::get(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
std::string Redis::get(const std::string & key)
{
    std::string value;
    if(_context==NULL)
    {
        return value;
    }
    
    redisReply* _reply = (redisReply*)::redisCommand(_context, "GET %s", key.c_str());
    if (!isError(_reply))
    {
        if (_reply->type == REDIS_REPLY_STRING)
        {
            value = std::string(_reply->str, _reply->len);
            freeReply(_reply);
            return value;
        }
        if (_reply->type == REDIS_REPLY_NIL)
        {
            freeReply(_reply);
            return value;
        }
    }
    freeReply(_reply);
    return value;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
leaq 0x10(%rdi), %r12
movq %r12, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movq 0x8(%rsi), %rdi
testq %rdi, %rdi
je 0x6182
movq (%rdx), %rdx
leaq 0xe010(%rip), %rsi      # 0x14130
xorl %eax, %eax
callq 0xe300
movq %rax, %r14
testq %rax, %rax
je 0x6182
movl (%r14), %eax
cmpl $0x4, %eax
je 0x617a
cmpl $0x1, %eax
jne 0x6175
movq 0x18(%r14), %rsi
leaq 0x10(%rsp), %r13
movq 0x10(%r14), %rdx
addq %rsi, %rdx
movq %r13, -0x10(%r13)
movq %rsp, %rdi
callq 0x42a6
movq %rsp, %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3440
movq (%r15), %rdi
cmpq %r13, %rdi
je 0x617a
callq 0x3350
jmp 0x617a
testq %r14, %r14
je 0x6182
movq %r14, %rdi
callq 0xbc50
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0x6195
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r12, %rdi
je 0x61a5
callq 0x3350
movq %r14, %rdi
callq 0x35b0
nop
// File: /workspace/github_cpp_makefile_star2_O1/Sherhang[P]redis-for-cpp/credis.cpp
// Function: Redis::mset(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&)
bool Redis::mset(const std::vector<std::string> & keys, const std::vector<std::string> & values)
{
    if(_context==NULL)
    {
        return false;
    }
    
    if(keys.size() != values.size())
    {
        return false;
    }
    
    int len = keys.size()+values.size();
    int argc = 1;
    size_t argvlen[len+1];
    argvlen[0] = 4; 
    
    const char* argv[len+1];
    char argv1[] = "MSET";
    argv[0] = argv1;

    for(size_t t=0; t<keys.size(); t++)
    {
        argvlen[argc] = keys[t].size();
        argv[argc] = keys[t].c_str();
        argc++;
        
        argvlen[argc] = values[t].size();
        argv[argc] = values[t].c_str();
        argc++;
    }
    redisReply* _reply = (redisReply*)::redisCommandArgv(_context, argc, argv, argvlen);
    if (_reply && _reply->type == REDIS_REPLY_STATUS )
    {
        if(strcasecmp(_reply->str, "OK") == 0)
        {
            freeReply(_reply);
            return true;
        }
        else
        {
        }
    }
    freeReply(_reply);
    
    return false;

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
cmpq $0x0, 0x8(%rdi)
je 0x6282
movq %rdx, %rax
movq 0x8(%rsi), %rcx
subq (%rsi), %rcx
sarq $0x5, %rcx
movq 0x8(%rdx), %rdx
subq (%rax), %rdx
sarq $0x5, %rdx
cmpq %rdx, %rcx
jne 0x6282
movq %rsp, %r15
addl %edx, %ecx
incl %ecx
leaq 0xf(,%rcx,8), %r8
andq $-0x10, %r8
movq %rsp, %rcx
subq %r8, %rcx
movq %rcx, %rsp
movq $0x4, (%rcx)
movq %rsp, %rdx
subq %r8, %rdx
movq %rdx, %rsp
leaq -0x28(%rbp), %r8
movb $0x0, 0x4(%r8)
movl $0x5445534d, (%r8)      # imm = 0x5445534D
movq %r8, (%rdx)
movq (%rsi), %r8
movq 0x8(%rsi), %r9
subq %r8, %r9
je 0x6286
sarq $0x5, %r9
movq (%rax), %rax
cmpq $0x1, %r9
adcq $0x0, %r9
movl $0x1, %r10d
movl $0x1, %esi
movq (%r8,%r10,8), %r11
movq %r11, (%rcx,%rsi,8)
movq -0x8(%r8,%r10,8), %r11
movq %r11, (%rdx,%rsi,8)
movq (%rax,%r10,8), %r11
movq %r11, 0x8(%rcx,%rsi,8)
movq -0x8(%rax,%r10,8), %r11
movq %r11, 0x8(%rdx,%rsi,8)
addq $0x2, %rsi
addq $0x4, %r10
decq %r9
jne 0x624f
jmp 0x628b
xorl %ebx, %ebx
jmp 0x62d8
movl $0x1, %esi
movq 0x8(%rdi), %rdi
callq 0xe3c0
testq %rax, %rax
je 0x62c2
movq %rax, %r14
cmpl $0x5, (%rax)
jne 0x62c6
testq %r14, %r14
setne %r12b
movq 0x18(%r14), %rdi
leaq 0xde89(%rip), %rsi      # 0x1413c
callq 0x33c0
testl %eax, %eax
sete %bl
orb %bl, %r12b
jne 0x62cd
xorl %ebx, %ebx
jmp 0x62d5
xorl %ebx, %ebx
testq %r14, %r14
je 0x62d5
movq %r14, %rdi
callq 0xbc50
movq %r15, %rsp
movl %ebx, %eax
leaq -0x20(%rbp), %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/Sherhang[P]redis-for-cpp/credis.cpp
// Function: Redis::incr(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
int64_t Redis::incr(const std::string& key)
{
    int64_t ret = 0;
    std::string cmd =  "INCR " + key;
    execReplyInt(cmd, ret);
    return ret;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rsi, %rdx
movq %rdi, %rbx
leaq 0x8(%rsp), %r14
movq $0x0, (%r14)
leaq 0xdc96(%rip), %rsi      # 0x14144
leaq 0x10(%rsp), %r15
movq %r15, %rdi
callq 0xa756
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x4910
movq 0x8(%rsp), %rbx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x64e1
callq 0x3350
movq %rbx, %rax
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6504
callq 0x3350
movq %rbx, %rdi
callq 0x35b0