// File: /workspace/github_cpp_makefile_star2_O3/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 0x9244(%rip), %rdx      # 0xc470
movq %rdx, %rsi
callq 0x5268
cmpl $0x4, %r15d
ja 0x32de
movl %r15d, %eax
leaq 0x8dd8(%rip), %rcx      # 0xc020
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x8e50(%rip), %rsi      # 0xc0a8
movq %rbx, %rdi
callq 0x22a0
leaq 0x8e52(%rip), %rsi      # 0xc0b9
jmp 0x32d6
leaq 0x8e04(%rip), %rsi      # 0xc074
movq %rbx, %rdi
callq 0x22a0
leaq 0x8e07(%rip), %rsi      # 0xc086
movq %rbx, %rdi
callq 0x22a0
leaq 0x8e03(%rip), %rsi      # 0xc091
jmp 0x32d6
leaq 0x8e19(%rip), %rsi      # 0xc0b0
movq %rbx, %rdi
callq 0x22a0
leaq 0x8e29(%rip), %rsi      # 0xc0cf
jmp 0x32d6
leaq 0x8e01(%rip), %rsi      # 0xc0b0
movq %rbx, %rdi
callq 0x22a0
leaq 0x8e06(%rip), %rsi      # 0xc0c4
jmp 0x32d6
leaq 0x8dad(%rip), %rsi      # 0xc074
movq %rbx, %rdi
callq 0x22a0
leaq 0x8db0(%rip), %rsi      # 0xc086
movq %rbx, %rdi
callq 0x22a0
leaq 0x8df5(%rip), %rsi      # 0xc0da
movq %rbx, %rdi
callq 0x22a0
leaq 0x198(%rsp), %rdi
callq 0x21c0
leaq 0x198(%rsp), %rdi
movl %r14d, %esi
callq 0x2270
leaq 0x1a0(%rsp), %rsi
leaq 0x20(%rsp), %rdi
callq 0x2220
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq %rbx, %rdi
callq 0x2060
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3349
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x2170
leaq 0x8d15(%rip), %rsi      # 0xc065
movq %rbx, %rdi
callq 0x22a0
leaq 0x8d85(%rip), %rsi      # 0xc0e4
movq %rbx, %rdi
callq 0x22a0
leaq 0x20(%rsp), %rdi
callq 0x21c0
leaq 0x20(%rsp), %rdi
movl %ebp, %esi
callq 0x2270
leaq 0x28(%rsp), %rsi
movq %rsp, %rdi
callq 0x2220
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x2060
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x33b6
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2170
leaq 0x8ca8(%rip), %rsi      # 0xc065
movq %rbx, %rdi
callq 0x22a0
leaq 0x8ca5(%rip), %rsi      # 0xc071
movq %rbx, %rdi
callq 0x22a0
movq 0xdbe5(%rip), %r14      # 0x10fc0
leaq 0x20(%rsp), %rdi
movq %r14, %rsi
callq 0x20b0
leaq 0x90(%rsp), %rdi
callq 0x2070
leaq 0x198(%rsp), %rdi
movq %r14, %rsi
callq 0x20b0
leaq 0x208(%rsp), %rdi
callq 0x2070
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 0x3475
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2170
jmp 0x3475
jmp 0x3472
jmp 0x3495
movq %rax, %r14
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3498
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x2170
jmp 0x3498
jmp 0x3495
jmp 0x346d
movq %rax, %r14
jmp 0x34b9
movq %rax, %r14
movq 0xdb44(%rip), %rsi      # 0x10fc0
leaq 0x20(%rsp), %rdi
callq 0x20b0
leaq 0x90(%rsp), %rdi
callq 0x2070
jmp 0x3498
movq %rax, %r14
movq 0xdb21(%rip), %rsi      # 0x10fc0
leaq 0x198(%rsp), %rdi
callq 0x20b0
leaq 0x208(%rsp), %rdi
callq 0x2070
movq (%rbx), %rdi
cmpq %r12, %rdi
je 0x34cd
movq (%r12), %rsi
incq %rsi
callq 0x2170
movq %r14, %rdi
callq 0x2280
nop