// File: /workspace/github_cpp_makefile_star2_O3/cauimsouza[P]rikudo-solver/src/rikudo_solver/graph.cpp
// Function: Graph::diam_s[abi:cxx11](int, int, int)
std::string Graph::diam_s(int u, int v, int n_vertices){
    std::string s;
    for(int i = 0; i < n_vertices; i++){

        int u_id = -encode(i, u);
        s += std::to_string(u_id);
        if(i > 0){
            int v1_id = encode(i-1, v);
            s += " " + std::to_string(v1_id);
        }
        if(i < n_vertices-1){
            int v2_id = encode(i+1, v);
            s += " " + std::to_string(v2_id);                
        }
        s += " 0\n";
    }
    return s;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movl %ecx, -0x2c(%rbp)
movl %edx, -0x5c(%rbp)
movq %rsi, -0x68(%rbp)
leaq 0x10(%rdi), %rax
movq %rax, -0xa0(%rbp)
movq %rax, (%rdi)
movq $0x0, 0x8(%rdi)
movq %rdi, -0x38(%rbp)
movb $0x0, 0x10(%rdi)
movq %r8, -0x98(%rbp)
testl %r8d, %r8d
jle 0x7383
notl -0x5c(%rbp)
incl -0x2c(%rbp)
movq -0x98(%rbp), %rax
decl %eax
movl %eax, -0x8c(%rbp)
xorl %r13d, %r13d
movl $0xd1b71759, %r15d      # imm = 0xD1B71759
movq -0x68(%rbp), %rax
movl (%rax), %eax
imull %r13d, %eax
movl -0x5c(%rbp), %ecx
movl %ecx, %ebx
subl %eax, %ebx
movl %ebx, %r14d
negl %r14d
cmovsl %ebx, %r14d
movl $0x1, %r12d
cmpl $0xa, %r14d
jb 0x7094
movl $0x4, %r12d
movl %r14d, %eax
cmpl $0x63, %eax
jbe 0x708b
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0x7091
cmpl $0x2710, %eax           # imm = 0x2710
jb 0x7094
movl %eax, %ecx
imulq %r15, %rcx
shrq $0x2d, %rcx
addl $0x4, %r12d
cmpl $0x1869f, %eax          # imm = 0x1869F
movl %ecx, %eax
ja 0x705b
addl $-0x3, %r12d
jmp 0x7094
addl $-0x2, %r12d
jmp 0x7094
decl %r12d
shrl $0x1f, %ebx
leal (%r12,%rbx), %esi
leaq -0x48(%rbp), %rax
movq %rax, -0x58(%rbp)
leaq -0x58(%rbp), %rdi
movl $0x2d, %edx
callq 0x2260
movl %ebx, %edi
addq -0x58(%rbp), %rdi
movl %r12d, %esi
movl %r14d, %edx
callq 0x7929
movq -0x58(%rbp), %rsi
movq -0x50(%rbp), %rdx
movq -0x38(%rbp), %rdi
callq 0x2090
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x70e5
callq 0x21d0
testl %r13d, %r13d
je 0x7222
leal -0x1(%r13), %ebx
movq -0x68(%rbp), %rax
imull (%rax), %ebx
addl -0x2c(%rbp), %ebx
movl %ebx, %r14d
negl %r14d
cmovsl %ebx, %r14d
movl $0x1, %r12d
cmpl $0xa, %r14d
jb 0x7154
movl $0x4, %r12d
movl %r14d, %eax
cmpl $0x63, %eax
jbe 0x714b
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0x7151
cmpl $0x2710, %eax           # imm = 0x2710
jb 0x7154
movl %eax, %ecx
imulq %r15, %rcx
shrq $0x2d, %rcx
addl $0x4, %r12d
cmpl $0x1869f, %eax          # imm = 0x1869F
movl %ecx, %eax
ja 0x711b
addl $-0x3, %r12d
jmp 0x7154
addl $-0x2, %r12d
jmp 0x7154
decl %r12d
shrl $0x1f, %ebx
leal (%r12,%rbx), %esi
leaq -0x78(%rbp), %rax
movq %rax, -0x88(%rbp)
leaq -0x88(%rbp), %r15
movq %r15, %rdi
movl $0x2d, %edx
callq 0x2260
movl %ebx, %edi
addq -0x88(%rbp), %rdi
movl %r12d, %esi
movl %r14d, %edx
callq 0x7929
movl $0x1, %r8d
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
leaq 0x203d(%rip), %rcx      # 0x91df
callq 0x2230
leaq -0x48(%rbp), %rbx
movq %rbx, -0x58(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
movl $0xd1b71759, %r15d      # imm = 0xD1B71759
je 0x71d1
movq %rdx, -0x58(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x48(%rbp)
jmp 0x71d7
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
movq %rdx, -0x50(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0x58(%rbp), %rsi
movq -0x50(%rbp), %rdx
movq -0x38(%rbp), %rdi
callq 0x2090
movq -0x58(%rbp), %rdi
cmpq %rbx, %rdi
je 0x720d
callq 0x21d0
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x7222
callq 0x21d0
cmpl -0x8c(%rbp), %r13d
jge 0x7363
leal 0x1(%r13), %ebx
movq -0x68(%rbp), %rax
imull (%rax), %ebx
addl -0x2c(%rbp), %ebx
movl %ebx, %r14d
negl %r14d
cmovsl %ebx, %r14d
movl $0x1, %r12d
cmpl $0xa, %r14d
jb 0x7295
movl $0x4, %r12d
movl %r14d, %eax
cmpl $0x63, %eax
jbe 0x728c
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0x7292
cmpl $0x2710, %eax           # imm = 0x2710
jb 0x7295
movl %eax, %ecx
imulq %r15, %rcx
shrq $0x2d, %rcx
addl $0x4, %r12d
cmpl $0x1869f, %eax          # imm = 0x1869F
movl %ecx, %eax
ja 0x725c
addl $-0x3, %r12d
jmp 0x7295
addl $-0x2, %r12d
jmp 0x7295
decl %r12d
shrl $0x1f, %ebx
leal (%r12,%rbx), %esi
leaq -0x78(%rbp), %rax
movq %rax, -0x88(%rbp)
leaq -0x88(%rbp), %r15
movq %r15, %rdi
movl $0x2d, %edx
callq 0x2260
movl %ebx, %edi
addq -0x88(%rbp), %rdi
movl %r12d, %esi
movl %r14d, %edx
callq 0x7929
movl $0x1, %r8d
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
leaq 0x1efc(%rip), %rcx      # 0x91df
callq 0x2230
leaq -0x48(%rbp), %rbx
movq %rbx, -0x58(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
movl $0xd1b71759, %r15d      # imm = 0xD1B71759
je 0x7312
movq %rdx, -0x58(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x48(%rbp)
jmp 0x7318
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
movq %rdx, -0x50(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0x58(%rbp), %rsi
movq -0x50(%rbp), %rdx
movq -0x38(%rbp), %rdi
callq 0x2090
movq -0x58(%rbp), %rdi
cmpq %rbx, %rdi
je 0x734e
callq 0x21d0
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x7363
callq 0x21d0
movq -0x38(%rbp), %rdi
leaq 0x1e0d(%rip), %rsi      # 0x917b
callq 0x23c0
incl %r13d
cmpl -0x98(%rbp), %r13d
jne 0x702b
movq -0x38(%rbp), %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x73b1
jmp 0x73c3
jmp 0x739c
movq %rax, %r14
movq -0x58(%rbp), %rdi
cmpq %rbx, %rdi
je 0x73b4
callq 0x21d0
jmp 0x73b4
jmp 0x73c3
movq %rax, %r14
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
jmp 0x73d3
jmp 0x73c3
movq %rax, %r14
jmp 0x73dd
movq %rax, %r14
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x73dd
callq 0x21d0
movq -0x38(%rbp), %rax
movq (%rax), %rdi
cmpq -0xa0(%rbp), %rdi
je 0x73f2
callq 0x21d0
movq %r14, %rdi
callq 0x2380