// File: /workspace/github_cpp_makefile_star2_O2/todo314[P]pruned-monte-carlo/samples/benchmark.cpp
// Function: main
int main(int argc, char **argv) {
	if (argc < 4) {
		cerr << "./pmc graph k R" << endl;
		exit(1);
	}

	string file = argv[1];
	int k = atoi(argv[2]);
	int R = atoi(argv[3]);

	ifstream is(file.c_str());
	vector<pair<pair<int, int>, double> > es;
	int u, v;
	double p;
	for (; is >> u >> v >> p;) {
		if (u == v) {
			continue;
		}
		es.push_back(make_pair(make_pair(u, v), p));
	}
	is.close();

	InfluenceMaximizer im;
	vector<int> seeds = im.run(es, k, R);
	for (int i = 0; i < k; i++) {
		cout << i << "-th seed =\t" << seeds[i] << endl;
	}

	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2e8, %rsp            # imm = 0x2E8
cmpl $0x3, %edi
jle 0x2516
movq %rsi, %r14
movq 0x8(%rsi), %rsi
leaq 0x58(%rsp), %r15
leaq 0xe0(%rsp), %rdx
movq %r15, %rdi
callq 0x258c
movq 0x10(%r14), %rdi
callq 0x2190
movl %eax, %ebx
movq 0x18(%r14), %rdi
callq 0x2190
movl %eax, 0xc(%rsp)
movq (%r15), %rsi
leaq 0xe0(%rsp), %rdi
pushq $0x8
popq %rdx
callq 0x21f0
xorps %xmm0, %xmm0
leaq 0x20(%rsp), %r14
movaps %xmm0, (%r14)
andq $0x0, 0x10(%r14)
leaq 0xe0(%rsp), %r15
leaq 0x14(%rsp), %r12
leaq 0x10(%rsp), %r13
leaq 0x18(%rsp), %rbp
movq %r15, %rdi
movq %r12, %rsi
callq 0x20d0
movq %rax, %rdi
movq %r13, %rsi
callq 0x20d0
movq %rax, %rdi
movq %rbp, %rsi
callq 0x20e0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x243a
movl 0x14(%rsp), %eax
movl 0x10(%rsp), %ecx
cmpl %ecx, %eax
je 0x23d5
shlq $0x20, %rcx
orq %rax, %rcx
movsd 0x18(%rsp), %xmm0
movq %rcx, 0x78(%rsp)
movsd %xmm0, 0x80(%rsp)
movq %r14, %rdi
leaq 0x78(%rsp), %rsi
callq 0x26ca
jmp 0x23d5
leaq 0xe0(%rsp), %rdi
callq 0x2030
xorps %xmm0, %xmm0
leaq 0x78(%rsp), %rsi
movups %xmm0, 0x58(%rsi)
movups %xmm0, 0x48(%rsi)
movups %xmm0, 0x38(%rsi)
movups %xmm0, 0x28(%rsi)
movups %xmm0, 0x18(%rsi)
movups %xmm0, 0x8(%rsi)
leaq 0x40(%rsp), %rdi
leaq 0x20(%rsp), %rdx
movl %ebx, %ecx
movl 0xc(%rsp), %r8d
callq 0x3612
xorl %r14d, %r14d
testl %ebx, %ebx
cmovlel %r14d, %ebx
movq 0x8b43(%rip), %r15      # 0xafd0
leaq 0x4b80(%rip), %r12      # 0x7014
cmpq %r14, %rbx
je 0x24cd
movq %r15, %rdi
movl %r14d, %esi
callq 0x21c0
movq %rax, %rdi
movq %r12, %rsi
callq 0x2130
movq 0x40(%rsp), %rcx
movl (%rcx,%r14,4), %esi
movq %rax, %rdi
callq 0x21c0
movq %rax, %rdi
callq 0x20a0
incq %r14
jmp 0x2494
leaq 0x40(%rsp), %rdi
callq 0x284a
leaq 0x78(%rsp), %rdi
callq 0x25c8
leaq 0x20(%rsp), %rdi
callq 0x2696
leaq 0xe0(%rsp), %rdi
callq 0x2040
leaq 0x58(%rsp), %rdi
callq 0x2090
xorl %eax, %eax
addq $0x2e8, %rsp            # imm = 0x2E8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x8ad3(%rip), %rdi      # 0xaff0
leaq 0x4ae0(%rip), %rsi      # 0x7004
callq 0x2130
movq %rax, %rdi
callq 0x20a0
pushq $0x1
popq %rdi
callq 0x2160
movq %rax, %rbx
jmp 0x2559
jmp 0x2547
movq %rax, %rbx
jmp 0x257a
jmp 0x2547
movq %rax, %rbx
jmp 0x2563
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x284a
leaq 0x78(%rsp), %rdi
callq 0x25c8
leaq 0x20(%rsp), %rdi
callq 0x2696
leaq 0xe0(%rsp), %rdi
callq 0x2040
leaq 0x58(%rsp), %rdi
callq 0x2090
movq %rbx, %rdi
callq 0x21d0