// File: /workspace/github_cpp_makefile_star2_O1/kiudee[P]VAHD-Projekt/Supervisor.cpp
// Function: Supervisor::Edge2GDL[abi:cxx11](int, int, int)
std::string Supervisor::Edge2GDL(int sourceid, int targetid, int edgetype)
{
    std::string result("");
    switch (edgetype) {
    case LEFTRIGHT:
        result += "rightnearedge: {\n";
        result += "color: 33\n";
        result += "backarrowstyle: solid\n";
        break;
    case LEFT:
        result += "leftnearedge: {\n";
        result += "color: 32\n";
        break;
    case RIGHT:
        result += "rightnearedge: {\n";
        result += "color: 33\n";
        break;
    case EDGE0:
        result += "edge: {\n";
        result += "color: 34\n";
        break;
    case EDGE1:
        result += "edge: {\n";
        result += "color: 35\n";
        break;
    }

    // Source Node
    result += "source: \"";
    std::ostringstream s1;
    s1 << sourceid;
    result += s1.str();
    result += "\"\n";

    // Target Node
    result += "target: \"";
    std::ostringstream s2;
    s2 << targetid;
    result += s2.str();
    result += "\"\n";

    result += "}\n";
    return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x310, %rsp            # imm = 0x310
movl %r8d, %r15d
movl %ecx, %ebp
movl %edx, %r14d
movq %rdi, %rbx
leaq 0x10(%rdi), %r12
movq %r12, (%rdi)
leaq 0x9234(%rip), %rdx      # 0xd470
movq %rdx, %rsi
callq 0x6328
cmpl $0x4, %r15d
ja 0x42ee
movl %r15d, %eax
leaq 0x8dc8(%rip), %rcx      # 0xd020
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x8e40(%rip), %rsi      # 0xd0a8
movq %rbx, %rdi
callq 0x32a0
leaq 0x8e42(%rip), %rsi      # 0xd0b9
jmp 0x42e6
leaq 0x8df4(%rip), %rsi      # 0xd074
movq %rbx, %rdi
callq 0x32a0
leaq 0x8df7(%rip), %rsi      # 0xd086
movq %rbx, %rdi
callq 0x32a0
leaq 0x8df3(%rip), %rsi      # 0xd091
jmp 0x42e6
leaq 0x8e09(%rip), %rsi      # 0xd0b0
movq %rbx, %rdi
callq 0x32a0
leaq 0x8e19(%rip), %rsi      # 0xd0cf
jmp 0x42e6
leaq 0x8df1(%rip), %rsi      # 0xd0b0
movq %rbx, %rdi
callq 0x32a0
leaq 0x8df6(%rip), %rsi      # 0xd0c4
jmp 0x42e6
leaq 0x8d9d(%rip), %rsi      # 0xd074
movq %rbx, %rdi
callq 0x32a0
leaq 0x8da0(%rip), %rsi      # 0xd086
movq %rbx, %rdi
callq 0x32a0
leaq 0x8de5(%rip), %rsi      # 0xd0da
movq %rbx, %rdi
callq 0x32a0
leaq 0x198(%rsp), %rdi
callq 0x31c0
leaq 0x198(%rsp), %rdi
movl %r14d, %esi
callq 0x3270
leaq 0x1a0(%rsp), %rsi
leaq 0x20(%rsp), %rdi
callq 0x3220
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq %rbx, %rdi
callq 0x3060
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4359
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x3170
leaq 0x8d05(%rip), %rsi      # 0xd065
movq %rbx, %rdi
callq 0x32a0
leaq 0x8d75(%rip), %rsi      # 0xd0e4
movq %rbx, %rdi
callq 0x32a0
leaq 0x20(%rsp), %rdi
callq 0x31c0
leaq 0x20(%rsp), %rdi
movl %ebp, %esi
callq 0x3270
leaq 0x28(%rsp), %rsi
movq %rsp, %rdi
callq 0x3220
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x3060
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x43c6
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3170
leaq 0x8c98(%rip), %rsi      # 0xd065
movq %rbx, %rdi
callq 0x32a0
leaq 0x8c95(%rip), %rsi      # 0xd071
movq %rbx, %rdi
callq 0x32a0
movq 0xdbd5(%rip), %r14      # 0x11fc0
leaq 0x20(%rsp), %rdi
movq %r14, %rsi
callq 0x30b0
leaq 0x90(%rsp), %rdi
callq 0x3070
leaq 0x198(%rsp), %rdi
movq %r14, %rsi
callq 0x30b0
leaq 0x208(%rsp), %rdi
callq 0x3070
movq %rbx, %rax
addq $0x310, %rsp            # imm = 0x310
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4485
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3170
jmp 0x4485
jmp 0x4482
jmp 0x44a5
movq %rax, %r14
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x44a8
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x3170
jmp 0x44a8
jmp 0x44a5
jmp 0x447d
movq %rax, %r14
jmp 0x44c9
movq %rax, %r14
movq 0xdb34(%rip), %rsi      # 0x11fc0
leaq 0x20(%rsp), %rdi
callq 0x30b0
leaq 0x90(%rsp), %rdi
callq 0x3070
jmp 0x44a8
movq %rax, %r14
movq 0xdb11(%rip), %rsi      # 0x11fc0
leaq 0x198(%rsp), %rdi
callq 0x30b0
leaq 0x208(%rsp), %rdi
callq 0x3070
movq (%rbx), %rdi
cmpq %r12, %rdi
je 0x44dd
movq (%r12), %rsi
incq %rsi
callq 0x3170
movq %r14, %rdi
callq 0x3280
nop