// File: /workspace/github_cpp_makefile_star2_O2/gjoni[P]iPot/src/rrce20.cpp
// Function: main
int main(int argc, char *argv[]) {

	/*
	 * (1) process arguments
	 */
	OPTS opts = { "", "", "", DMAX };
	if (!GetOpts(argc, argv, opts)) {
		PrintOpts("rrce20", DMAX);
		return 1;
	}

	/*
	 * (2) set potential
	 */
	RRCE RRCE_;
	if (opts.table != "") {
		RRCE_ = RRCE(opts.table.c_str(), opts.dmax);
	}

	/*
	 * (2) get RRCE energy
	 */
	double E;
	if (opts.lig == "") {
		E = RRCE_.GetEnergy(Chain(opts.rec.c_str()));
	} else {
		E = RRCE_.GetEnergy(Complex(opts.rec.c_str(), opts.lig.c_str()));
	}

	printf("E(%s)= %.5e\n", RRCE_.GetName().c_str(), E);

	return 0;

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x1c8, %rsp            # imm = 0x1C8
movq %rsi, %rbx
movl %edi, %ebp
leaq 0x11f4(%rip), %rsi      # 0x1304d
leaq 0x50(%rsp), %rdi
leaq 0xb8(%rsp), %rdx
callq 0x9fa4
leaq 0x70(%rsp), %r14
leaq 0x11d6(%rip), %rsi      # 0x1304d
leaq 0x18(%rsp), %rdx
movq %r14, %rdi
callq 0x9fa4
leaq 0x90(%rsp), %r15
leaq 0x11ba(%rip), %rsi      # 0x1304d
leaq 0xf(%rsp), %rdx
movq %r15, %rdi
callq 0x9fa4
movabsq $0x401f333333333333, %rax # imm = 0x401F333333333333
leaq 0x50(%rsp), %rdx
movq %rax, 0x60(%rdx)
movl %ebp, %edi
movq %rbx, %rsi
callq 0x9e75
testb %al, %al
je 0x11f6b
leaq 0x18(%rsp), %rdi
callq 0xec62
leaq 0x1177(%rip), %rsi      # 0x1304d
movq %r15, %rdi
callq 0x120e2
testb %al, %al
je 0x11f1f
movq 0x90(%rsp), %rsi
movsd 0xb0(%rsp), %xmm0
leaq 0xb8(%rsp), %rdi
callq 0xec00
leaq 0x18(%rsp), %rdi
leaq 0xb8(%rsp), %rsi
callq 0xed7a
leaq 0xb8(%rsp), %rdi
callq 0xed1c
leaq 0x1127(%rip), %rsi      # 0x1304d
movq %r14, %rdi
callq 0x9fdf
testb %al, %al
je 0x11fae
movq 0x50(%rsp), %rsi
leaq 0xb8(%rsp), %rdi
callq 0xa2b2
leaq 0x18(%rsp), %rdi
leaq 0xb8(%rsp), %rsi
callq 0xee80
movsd %xmm0, 0x10(%rsp)
leaq 0xb8(%rsp), %rdi
callq 0xafe4
jmp 0x11fea
leaq 0xdcf6(%rip), %rsi      # 0x1fc68
leaq 0xb8(%rsp), %rdi
leaq 0x18(%rsp), %rdx
callq 0x9fa4
leaq 0xb8(%rsp), %rdi
movsd 0xc3cc(%rip), %xmm0     # 0x1e360
callq 0x9e0c
leaq 0xb8(%rsp), %rdi
callq 0x2100
pushq $0x1
popq %rbx
jmp 0x1202f
movq 0x50(%rsp), %rsi
movq 0x70(%rsp), %rdx
leaq 0xb8(%rsp), %rdi
callq 0x106b4
leaq 0x18(%rsp), %rdi
leaq 0xb8(%rsp), %rsi
callq 0xef72
movsd %xmm0, 0x10(%rsp)
leaq 0xb8(%rsp), %rdi
callq 0x10716
leaq 0xb8(%rsp), %rdi
leaq 0x18(%rsp), %rsi
callq 0xee1e
leaq 0xb8(%rsp), %rbx
movq (%rbx), %rsi
leaq 0xdc61(%rip), %rdi      # 0x1fc6f
movsd 0x10(%rsp), %xmm0
movb $0x1, %al
callq 0x2050
movq %rbx, %rdi
callq 0x2100
leaq 0x18(%rsp), %rdi
callq 0xed1c
xorl %ebx, %ebx
leaq 0x50(%rsp), %rdi
callq 0x120ec
movl %ebx, %eax
addq $0x1c8, %rsp            # imm = 0x1C8
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0xb8(%rsp), %rdi
callq 0x10716
jmp 0x1209c
movq %rax, %rbx
leaq 0xb8(%rsp), %rdi
callq 0xafe4
jmp 0x1209c
jmp 0x12099
jmp 0x12099
movq %rax, %rbx
leaq 0xb8(%rsp), %rdi
callq 0xed1c
jmp 0x1209c
jmp 0x12099
jmp 0x12099
movq %rax, %rbx
leaq 0xb8(%rsp), %rdi
callq 0x2100
jmp 0x120af
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0xed1c
jmp 0x120af
jmp 0x120ac
jmp 0x120ac
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x120ec
jmp 0x120da
movq %rax, %rbx
movq %r14, %rdi
callq 0x2100
jmp 0x120cb
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x2100
jmp 0x120da
movq %rax, %rbx
movq %rbx, %rdi
callq 0x23a0