// File: /workspace/github_cpp_makefile_star2_O3/yogesh1q2w[P]Dynamic-Graph-Algorithms/MST.cpp
// Function: MST::build_static_MST()
void MST::build_static_MST() {
	priority_queue< pair<int,int>, vector <pair<int,int>> , greater<pair<int,int>> > pq; 
    int src = 0;
    vector<int> key(vertices.size(), INF); 
  	vector<int> parent(vertices.size(), -1); 
  	vector<bool> inMST(vertices.size(), false); 
  	pq.push(make_pair(0, src)); 
    key[src] = 0; 
    while(!pq.empty()) { 
    	int u = pq.top().second; 
        pq.pop(); 
  		inMST[u] = true;
        for(auto &i:adj_list[u]) {
            int v = i.first; 
            int weight = i.second; 
  		    if(inMST[v] == false && key[v] > weight) { 
                key[v] = weight; 
                pq.push(make_pair(key[v], v)); 
                parent[v] = u; 
        	} 
        } 
    } 
	for(int i = 1; i < vertices.size(); ++i) {
		min_spf[0].link(i, parent[i]);
		add_edge_level(i, parent[i], 0, true);
	}
	for(auto &u:adj_list) {
		for(auto &v:u.second) {
			if(parent[u.first] != v.first && parent[v.first] != u.first) 
				add_edge_level(u.first, v.first , 0, false);
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rdi, %rbx
xorps %xmm0, %xmm0
movaps %xmm0, -0x60(%rbp)
movq $0x0, -0x50(%rbp)
movq 0x60(%rdi), %rsi
leaq -0xa0(%rbp), %rdx
movl $0x3f3f3f3f, (%rdx)     # imm = 0x3F3F3F3F
leaq -0xc0(%rbp), %rdi
leaq -0x78(%rbp), %rcx
callq 0x726a
movq 0x60(%rbx), %rsi
leaq -0xa0(%rbp), %rdx
movl $0xffffffff, (%rdx)     # imm = 0xFFFFFFFF
leaq -0x78(%rbp), %rdi
leaq -0x38(%rbp), %rcx
callq 0x726a
movq 0x60(%rbx), %rsi
leaq -0x38(%rbp), %rdx
movb $0x0, (%rdx)
leaq -0xa0(%rbp), %rdi
leaq -0x2c(%rbp), %rcx
callq 0x72f2
movq %rbx, -0x40(%rbp)
leaq -0x38(%rbp), %rsi
movq $0x0, (%rsi)
leaq -0x60(%rbp), %rdi
callq 0x7358
movq -0xc0(%rbp), %rax
movl $0x0, (%rax)
movq -0x60(%rbp), %rax
cmpq -0x58(%rbp), %rax
je 0x70f6
movabsq $-0x8000000000000000, %r12 # imm = 0x8000000000000000
movq -0x40(%rbp), %rcx
addq $0x80, %rcx
movq %rcx, -0xa8(%rbp)
leaq 0x3f(%r12), %r14
movl 0x4(%rax), %eax
movl %eax, -0x2c(%rbp)
leaq -0x60(%rbp), %rdi
callq 0x73f6
movslq -0x2c(%rbp), %rcx
leal 0x3f(%rcx), %eax
testq %rcx, %rcx
cmovnsl %ecx, %eax
sarl $0x6, %eax
cltq
shlq $0x3, %rax
addq -0xa0(%rbp), %rax
movq %rcx, %rdx
andq %r14, %rdx
xorl %esi, %esi
cmpq %r12, %rdx
setbe %sil
movl $0x1, %edx
shlq %cl, %rdx
orq %rdx, -0x8(%rax,%rsi,8)
movq -0xa8(%rbp), %rdi
leaq -0x2c(%rbp), %rsi
callq 0x7f46
movq (%rax), %r13
movq 0x8(%rax), %r15
cmpq %r15, %r13
je 0x70e8
movslq (%r13), %rbx
leal 0x3f(%rbx), %eax
testq %rbx, %rbx
cmovnsl %ebx, %eax
sarl $0x6, %eax
cltq
shlq $0x3, %rax
addq -0xa0(%rbp), %rax
movq %rbx, %rcx
andq %r14, %rcx
xorl %edx, %edx
cmpq %r12, %rcx
setbe %dl
movq -0x8(%rax,%rdx,8), %rax
btq %rbx, %rax
jb 0x70e2
movl 0x4(%r13), %eax
movq -0xc0(%rbp), %rcx
cmpl %eax, (%rcx,%rbx,4)
jle 0x70e2
movl %eax, (%rcx,%rbx,4)
movq %rbx, %rcx
shlq $0x20, %rcx
orq %rax, %rcx
movq %rcx, -0x38(%rbp)
leaq -0x60(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x7358
movl -0x2c(%rbp), %eax
movq -0x78(%rbp), %rcx
movl %eax, (%rcx,%rbx,4)
addq $0x8, %r13
jmp 0x706f
movq -0x60(%rbp), %rax
cmpq -0x58(%rbp), %rax
jne 0x7010
movq -0x40(%rbp), %r12
cmpq $0x2, 0x60(%r12)
jb 0x7142
movl $0x1, %r14d
movq 0x68(%r12), %rdi
movq -0x78(%rbp), %rax
movl (%rax,%r14,4), %edx
movl %r14d, %esi
callq 0x2bec
movq -0x78(%rbp), %rax
movl (%rax,%r14,4), %edx
movq %r12, %rdi
movl %r14d, %esi
xorl %ecx, %ecx
movl $0x1, %r8d
callq 0x6474
incq %r14
cmpq %r14, 0x60(%r12)
ja 0x7108
movq 0x90(%r12), %r14
testq %r14, %r14
je 0x7189
movq 0x10(%r14), %rbx
movq 0x18(%r14), %r15
cmpq %r15, %rbx
je 0x7184
movslq 0x8(%r14), %rsi
movq -0x78(%rbp), %rax
movslq (%rbx), %rdx
cmpl %edx, (%rax,%rsi,4)
je 0x717e
cmpl %esi, (%rax,%rdx,4)
je 0x717e
movq %r12, %rdi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x6474
addq $0x8, %rbx
jmp 0x7157
movq (%r14), %r14
jmp 0x714a
movq -0xa0(%rbp), %rdi
testq %rdi, %rdi
je 0x71af
callq 0x2170
movq $0x0, -0xa0(%rbp)
movl $0x0, -0x98(%rbp)
movq -0x78(%rbp), %rdi
testq %rdi, %rdi
je 0x71bd
callq 0x2170
movq -0xc0(%rbp), %rdi
testq %rdi, %rdi
je 0x71ce
callq 0x2170
movq -0x60(%rbp), %rdi
testq %rdi, %rdi
je 0x71dc
callq 0x2170
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x7207
movq %rax, %rbx
jmp 0x7235
movq %rax, %rbx
jmp 0x7243
movq %rax, %rbx
jmp 0x7254
jmp 0x7207
jmp 0x7207
jmp 0x7207
jmp 0x7207
movq %rax, %rbx
movq -0xa0(%rbp), %rdi
testq %rdi, %rdi
je 0x7235
callq 0x2170
xorl %eax, %eax
movq %rax, -0xa0(%rbp)
movl $0x0, -0x98(%rbp)
movq %rax, -0x90(%rbp)
movq -0x78(%rbp), %rdi
testq %rdi, %rdi
je 0x7243
callq 0x2170
movq -0xc0(%rbp), %rdi
testq %rdi, %rdi
je 0x7254
callq 0x2170
movq -0x60(%rbp), %rdi
testq %rdi, %rdi
je 0x7262
callq 0x2170
movq %rbx, %rdi
callq 0x2280