// File: kiudee[P]VAHD-Projekt/Supervisor.cpp
// Function: Supervisor::Node2GDL[abi:cxx11](int, double, bool)
std::string Supervisor::Node2GDL(int id, double num, bool isReal)
{
    std::string result("");
    result += "node: {\n";
    if (isReal) {
        result += "color: 36\n";
    } else {
        result += "color: 37\n";
    }

    // Title attribute
    result += "title: \"";
    std::ostringstream title;
    title << id;
    result += title.str();
    result += "\"\n";

    // Label attribute
    result += "label: \"";
    std::ostringstream label;
    label << num;
    result += label.str();
    result += "\"\n";

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

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x380, %rsp            # imm = 0x380
movq %rdi, -0x378(%rbp)
movb %cl, %al
movq %rdi, %rcx
movq %rcx, -0x380(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movsd %xmm0, -0x20(%rbp)
andb $0x1, %al
movb %al, -0x21(%rbp)
movb $0x0, -0x22(%rbp)
leaq -0x23(%rbp), %rdi
movq %rdi, -0x370(%rbp)
callq 0x3340
movq -0x378(%rbp), %rdi
movq -0x370(%rbp), %rdx
leaq 0x12f74(%rip), %rsi     # 0x174c0
callq 0x5c60
jmp 0x4553
leaq -0x23(%rbp), %rdi
callq 0x3200
movq -0x378(%rbp), %rdi
leaq 0x12abb(%rip), %rsi     # 0x17025
callq 0x31a0
jmp 0x4571
testb $0x1, -0x21(%rbp)
je 0x45b9
movq -0x378(%rbp), %rdi
leaq 0x12aa9(%rip), %rsi     # 0x1702e
callq 0x31a0
jmp 0x458c
jmp 0x45d0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0x23(%rbp), %rdi
callq 0x3200
jmp 0x4799
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0x478d
movq -0x378(%rbp), %rdi
leaq 0x12a72(%rip), %rsi     # 0x17039
callq 0x31a0
jmp 0x45ce
jmp 0x45d0
movq -0x378(%rbp), %rdi
leaq 0x12a66(%rip), %rsi     # 0x17044
callq 0x31a0
jmp 0x45e5
leaq -0x1b0(%rbp), %rdi
callq 0x3280
jmp 0x45f3
movl -0x14(%rbp), %esi
leaq -0x1b0(%rbp), %rdi
callq 0x3320
jmp 0x4604
leaq -0x1d0(%rbp), %rdi
leaq -0x1b0(%rbp), %rsi
callq 0x31e0
jmp 0x4619
movq -0x378(%rbp), %rdi
leaq -0x1d0(%rbp), %rsi
callq 0x3260
jmp 0x462e
leaq -0x1d0(%rbp), %rdi
callq 0x3100
movq -0x378(%rbp), %rdi
leaq 0x12a05(%rip), %rsi     # 0x1704d
callq 0x31a0
jmp 0x464f
movq -0x378(%rbp), %rdi
leaq 0x129f3(%rip), %rsi     # 0x17050
callq 0x31a0
jmp 0x4664
leaq -0x348(%rbp), %rdi
callq 0x3280
jmp 0x4672
movsd -0x20(%rbp), %xmm0
leaq -0x348(%rbp), %rdi
callq 0x3370
jmp 0x4685
leaq -0x368(%rbp), %rdi
leaq -0x348(%rbp), %rsi
callq 0x31e0
jmp 0x469a
movq -0x378(%rbp), %rdi
leaq -0x368(%rbp), %rsi
callq 0x3260
jmp 0x46af
leaq -0x368(%rbp), %rdi
callq 0x3100
movq -0x378(%rbp), %rdi
leaq 0x12984(%rip), %rsi     # 0x1704d
callq 0x31a0
jmp 0x46d0
movq -0x378(%rbp), %rdi
leaq 0x1297b(%rip), %rsi     # 0x17059
callq 0x31a0
jmp 0x46e5
movb $0x1, -0x22(%rbp)
leaq -0x348(%rbp), %rdi
callq 0x3070
leaq -0x1b0(%rbp), %rdi
callq 0x3070
testb $0x1, -0x22(%rbp)
jne 0x477d
jmp 0x4771
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0x4763
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0x1d0(%rbp), %rdi
callq 0x3100
jmp 0x4763
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0x4757
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0x368(%rbp), %rdi
callq 0x3100
leaq -0x348(%rbp), %rdi
callq 0x3070
leaq -0x1b0(%rbp), %rdi
callq 0x3070
jmp 0x478d
movq -0x378(%rbp), %rdi
callq 0x3100
movq -0x380(%rbp), %rax
addq $0x380, %rsp            # imm = 0x380
popq %rbp
retq
movq -0x378(%rbp), %rdi
callq 0x3100
movq -0x30(%rbp), %rdi
callq 0x3330
nopw %cs:(%rax,%rax)