// File: /workspace/github_cpp_makefile_star2_O1/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 0x747d
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 0x718e
movl $0x4, %r12d
movl %r14d, %eax
cmpl $0x63, %eax
jbe 0x7185
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0x718b
cmpl $0x2710, %eax           # imm = 0x2710
jb 0x718e
movl %eax, %ecx
imulq %r15, %rcx
shrq $0x2d, %rcx
addl $0x4, %r12d
cmpl $0x1869f, %eax          # imm = 0x1869F
movl %ecx, %eax
ja 0x7155
addl $-0x3, %r12d
jmp 0x718e
addl $-0x2, %r12d
jmp 0x718e
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 0x79d3
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 0x71df
callq 0x21d0
testl %r13d, %r13d
je 0x731c
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 0x724e
movl $0x4, %r12d
movl %r14d, %eax
cmpl $0x63, %eax
jbe 0x7245
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0x724b
cmpl $0x2710, %eax           # imm = 0x2710
jb 0x724e
movl %eax, %ecx
imulq %r15, %rcx
shrq $0x2d, %rcx
addl $0x4, %r12d
cmpl $0x1869f, %eax          # imm = 0x1869F
movl %ecx, %eax
ja 0x7215
addl $-0x3, %r12d
jmp 0x724e
addl $-0x2, %r12d
jmp 0x724e
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 0x79d3
movl $0x1, %r8d
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
leaq 0x1f2b(%rip), %rcx      # 0x91c7
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 0x72cb
movq %rdx, -0x58(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x48(%rbp)
jmp 0x72d1
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 0x7307
callq 0x21d0
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x731c
callq 0x21d0
cmpl -0x8c(%rbp), %r13d
jge 0x745d
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 0x738f
movl $0x4, %r12d
movl %r14d, %eax
cmpl $0x63, %eax
jbe 0x7386
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0x738c
cmpl $0x2710, %eax           # imm = 0x2710
jb 0x738f
movl %eax, %ecx
imulq %r15, %rcx
shrq $0x2d, %rcx
addl $0x4, %r12d
cmpl $0x1869f, %eax          # imm = 0x1869F
movl %ecx, %eax
ja 0x7356
addl $-0x3, %r12d
jmp 0x738f
addl $-0x2, %r12d
jmp 0x738f
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 0x79d3
movl $0x1, %r8d
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
leaq 0x1dea(%rip), %rcx      # 0x91c7
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 0x740c
movq %rdx, -0x58(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x48(%rbp)
jmp 0x7412
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 0x7448
callq 0x21d0
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x745d
callq 0x21d0
movq -0x38(%rbp), %rdi
leaq 0x1cfb(%rip), %rsi      # 0x9163
callq 0x23c0
incl %r13d
cmpl -0x98(%rbp), %r13d
jne 0x7125
movq -0x38(%rbp), %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x74ab
jmp 0x74bd
jmp 0x7496
movq %rax, %r14
movq -0x58(%rbp), %rdi
cmpq %rbx, %rdi
je 0x74ae
callq 0x21d0
jmp 0x74ae
jmp 0x74bd
movq %rax, %r14
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
jmp 0x74cd
jmp 0x74bd
movq %rax, %r14
jmp 0x74d7
movq %rax, %r14
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x74d7
callq 0x21d0
movq -0x38(%rbp), %rax
movq (%rax), %rdi
cmpq -0xa0(%rbp), %rdi
je 0x74ec
callq 0x21d0
movq %r14, %rdi
callq 0x2380