// File: /workspace/github_cpp_makefile_star2_O1/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 $0x2d8, %rsp            # imm = 0x2D8
cmpl $0x3, %edi
jle 0x26b3
movq %rsi, %rbx
movq 0x8(%rsi), %rsi
leaq 0x48(%rsp), %r14
leaq 0xd0(%rsp), %rdx
movq %r14, %rdi
callq 0x2756
movq 0x10(%rbx), %rdi
callq 0x21c0
movl %eax, 0x4(%rsp)
movq 0x18(%rbx), %rdi
callq 0x21c0
movl %eax, (%rsp)
movq (%r14), %rsi
leaq 0xd0(%rsp), %rdi
movl $0x8, %edx
callq 0x2220
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %r14
movaps %xmm0, (%r14)
movq $0x0, 0x10(%r14)
leaq 0xd0(%rsp), %r15
leaq 0xc(%rsp), %r12
leaq 0x8(%rsp), %r13
leaq 0x40(%rsp), %rbp
leaq 0x68(%rsp), %rbx
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 0x251c
movl 0xc(%rsp), %eax
movl 0x8(%rsp), %ecx
cmpl %ecx, %eax
je 0x24a0
shlq $0x20, %rcx
orq %rax, %rcx
movsd 0x40(%rsp), %xmm0
movq %rcx, 0x68(%rsp)
movsd %xmm0, 0x70(%rsp)
movq 0x18(%rsp), %rsi
cmpq 0x20(%rsp), %rsi
je 0x250f
movups 0x68(%rsp), %xmm0
movups %xmm0, (%rsi)
addq $0x10, 0x18(%rsp)
jmp 0x24a0
movq %r14, %rdi
movq %rbx, %rdx
callq 0x2880
jmp 0x24a0
leaq 0xd0(%rsp), %rdi
callq 0x2040
xorps %xmm0, %xmm0
leaq 0x68(%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 0x28(%rsp), %rdi
leaq 0x10(%rsp), %rdx
movl 0x4(%rsp), %ebx
movl %ebx, %ecx
movl (%rsp), %r8d
callq 0x410e
testl %ebx, %ebx
jle 0x25d8
movl %ebx, %r13d
xorl %ebx, %ebx
movq 0x8a5e(%rip), %r14      # 0xafd0
leaq 0x5a9b(%rip), %r15      # 0x8014
movq %r14, %rdi
movl %ebx, %esi
callq 0x21f0
movq %rax, %r12
movl $0xb, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x2180
movq 0x28(%rsp), %rax
movl (%rax,%rbx,4), %esi
movq %r12, %rdi
callq 0x21f0
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x2140
movsbl %al, %esi
movq %r12, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20f0
incq %rbx
cmpq %rbx, %r13
jne 0x2579
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x25ef
movq 0x38(%rsp), %rsi
subq %rdi, %rsi
callq 0x2170
movq 0xb8(%rsp), %rdi
testq %rdi, %rdi
je 0x260c
movq 0xc8(%rsp), %rsi
subq %rdi, %rsi
callq 0x2170
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x2629
movq 0xb0(%rsp), %rsi
subq %rdi, %rsi
callq 0x2170
movq 0x88(%rsp), %rdi
testq %rdi, %rdi
je 0x2646
movq 0x98(%rsp), %rsi
subq %rdi, %rsi
callq 0x2170
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x2660
movq 0x80(%rsp), %rsi
subq %rdi, %rsi
callq 0x2170
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x2677
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x2170
leaq 0xd0(%rsp), %rdi
callq 0x2050
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x269f
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2170
xorl %eax, %eax
addq $0x2d8, %rsp            # imm = 0x2D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x8936(%rip), %rdi      # 0xaff0
leaq 0x5943(%rip), %rsi      # 0x8004
callq 0x2150
movq %rax, %rdi
callq 0x20a0
movl $0x1, %edi
callq 0x2190
movq %rax, %rbx
jmp 0x2705
jmp 0x26e6
movq %rax, %rbx
jmp 0x2733
jmp 0x26e6
movq %rax, %rbx
jmp 0x270f
movq %rax, %rbx
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x2705
movq 0x38(%rsp), %rsi
subq %rdi, %rsi
callq 0x2170
leaq 0x68(%rsp), %rdi
callq 0x2794
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x2726
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x2170
leaq 0xd0(%rsp), %rdi
callq 0x2050
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x274e
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2170
movq %rbx, %rdi
callq 0x2200