// File: /workspace/github_cpp_makefile_star2_O2/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
andq $0x0, -0x60(%rbp)
movaps %xmm0, -0x70(%rbp)
movq 0x60(%rdi), %rsi
leaq -0xc0(%rbp), %rdx
movl $0x3f3f3f3f, (%rdx)     # imm = 0x3F3F3F3F
leaq -0x98(%rbp), %rdi
leaq -0x50(%rbp), %rcx
callq 0x75d8
movq 0x60(%rbx), %rsi
leaq -0xc0(%rbp), %rdx
orl $-0x1, (%rdx)
leaq -0x50(%rbp), %rdi
leaq -0x38(%rbp), %rcx
callq 0x75d8
movq 0x60(%rbx), %rsi
leaq -0x38(%rbp), %rdx
movb $0x0, (%rdx)
leaq -0xc0(%rbp), %rdi
leaq -0x2c(%rbp), %rcx
callq 0x7638
leaq -0x38(%rbp), %rsi
andq $0x0, (%rsi)
leaq -0x70(%rbp), %rdi
callq 0x7698
movq -0x98(%rbp), %rax
andl $0x0, (%rax)
leaq 0x80(%rbx), %rax
movq %rax, -0x80(%rbp)
leaq -0xc0(%rbp), %r12
movq %rbx, -0x78(%rbp)
movq -0x70(%rbp), %rax
cmpq -0x68(%rbp), %rax
je 0x74c6
movl 0x4(%rax), %eax
movl %eax, -0x2c(%rbp)
leaq -0x70(%rbp), %rdi
callq 0x76b8
movslq -0x2c(%rbp), %rsi
movq %r12, %rdi
callq 0x76da
orq %rdx, (%rax)
movq -0x80(%rbp), %rdi
leaq -0x2c(%rbp), %rsi
callq 0x8506
movq (%rax), %r13
movq 0x8(%rax), %r15
cmpq %r15, %r13
je 0x74bd
movslq (%r13), %r14
movl 0x4(%r13), %ebx
movq %r12, %rdi
movq %r14, %rsi
callq 0x76da
testq %rdx, (%rax)
jne 0x74b7
movq -0x98(%rbp), %rax
cmpl %ebx, (%rax,%r14,4)
jle 0x74b7
movl %ebx, (%rax,%r14,4)
movq %r14, %rax
shlq $0x20, %rax
orq %rbx, %rax
movq %rax, -0x38(%rbp)
leaq -0x70(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x7698
movl -0x2c(%rbp), %eax
movq -0x50(%rbp), %rcx
movl %eax, (%rcx,%r14,4)
addq $0x8, %r13
jmp 0x7463
movq -0x78(%rbp), %rbx
jmp 0x7423
pushq $0x1
popq %r14
pushq $0x1
popq %r15
cmpq %r14, 0x60(%rbx)
jbe 0x7505
movq 0x68(%rbx), %rdi
movq -0x50(%rbp), %rax
movl (%rax,%r14,4), %edx
movl %r14d, %esi
callq 0x2a08
movq -0x50(%rbp), %rax
movl (%rax,%r14,4), %edx
movq %rbx, %rdi
movl %r14d, %esi
xorl %ecx, %ecx
movl %r15d, %r8d
callq 0x6a00
incq %r14
jmp 0x74ce
leaq 0x90(%rbx), %r14
movq (%r14), %r14
testq %r14, %r14
je 0x7549
movq 0x10(%r14), %r15
movq 0x18(%r14), %r12
cmpq %r12, %r15
je 0x750c
movslq 0x8(%r14), %rsi
movq -0x50(%rbp), %rax
movslq (%r15), %rdx
cmpl %edx, (%rax,%rsi,4)
je 0x7543
cmpl %esi, (%rax,%rdx,4)
je 0x7543
movq %rbx, %rdi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x6a00
addq $0x8, %r15
jmp 0x751c
leaq -0xc0(%rbp), %rdi
callq 0x76fc
leaq -0x50(%rbp), %rdi
callq 0x8d96
leaq -0x98(%rbp), %rdi
callq 0x8d96
leaq -0x70(%rbp), %rdi
callq 0x7880
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x75a2
movq %rax, %rbx
jmp 0x75b1
movq %rax, %rbx
jmp 0x75ba
movq %rax, %rbx
jmp 0x75c6
jmp 0x75a2
jmp 0x75a2
jmp 0x75a2
jmp 0x75a2
jmp 0x75a2
jmp 0x75a2
movq %rax, %rbx
leaq -0xc0(%rbp), %rdi
callq 0x76fc
leaq -0x50(%rbp), %rdi
callq 0x8d96
leaq -0x98(%rbp), %rdi
callq 0x8d96
leaq -0x70(%rbp), %rdi
callq 0x7880
movq %rbx, %rdi
callq 0x2240
nop