// File: MUST-Quick-Fry[P]Process-Scheduler/scheduler.cpp
// Function: Project::Scheduler::Scheduler(char*, char*)
Scheduler::Scheduler(char *f, char *p) : policyInfo(p)
{
    string tmp = Utils::readFile(f);
    normalizeCheck(tmp);
    splitToken(tmp);
    job_num = job_queue.size();
    choosePolicy();
    //sort(job_queue.begin(),job_queue.end());
    //schedulerDrive();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x1e0, %rsp            # imm = 0x1E0
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x178(%rbp)
movq %rax, -0x180(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x170(%rbp)
leaq -0x19(%rbp), %rdi
movq %rdi, -0x168(%rbp)
callq 0x3460
movq -0x178(%rbp), %rdi
movq -0x170(%rbp), %rsi
movq -0x168(%rbp), %rdx
callq 0x3340
jmp 0x8720
leaq -0x19(%rbp), %rdi
callq 0x32a0
movq -0x180(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x188(%rbp)
leaq -0xe0(%rbp), %rdi
movq %rdi, -0xe8(%rbp)
movl $0x0, -0xec(%rbp)
leaq 0x10a57(%rip), %rsi     # 0x191b1
leaq -0xec(%rbp), %rdx
callq 0xf370
jmp 0x8768
leaq -0xb8(%rbp), %rdi
movq %rdi, -0xe8(%rbp)
movl $0x1, -0xf0(%rbp)
leaq 0x10a2f(%rip), %rsi     # 0x191b6
leaq -0xf0(%rbp), %rdx
callq 0xf370
jmp 0x8795
leaq -0x90(%rbp), %rdi
movq %rdi, -0xe8(%rbp)
movl $0x2, -0xf4(%rbp)
leaq 0x10a07(%rip), %rsi     # 0x191bb
leaq -0xf4(%rbp), %rdx
callq 0xf370
jmp 0x87c2
leaq -0x68(%rbp), %rdi
movq %rdi, -0xe8(%rbp)
movl $0x3, -0xf8(%rbp)
leaq 0x109e2(%rip), %rsi     # 0x191c0
leaq -0xf8(%rbp), %rdx
callq 0xf3f0
jmp 0x87ec
leaq -0xe0(%rbp), %rax
movq %rax, -0x40(%rbp)
movq $0x4, -0x38(%rbp)
leaq -0xfb(%rbp), %rdi
movq %rdi, -0x190(%rbp)
callq 0xf490
movq -0x190(%rbp), %rcx
movq -0x188(%rbp), %rdi
movq -0x40(%rbp), %rsi
movq -0x38(%rbp), %rdx
movq %rsp, %rax
movq %rcx, (%rax)
xorl %eax, %eax
movl %eax, %ecx
leaq -0xf9(%rbp), %r8
leaq -0xfa(%rbp), %r9
callq 0xf4b0
jmp 0x8847
leaq -0xfb(%rbp), %rdi
callq 0xf510
leaq -0xe0(%rbp), %rax
movq %rax, -0x1a0(%rbp)
addq $0xa0, %rax
movq %rax, -0x198(%rbp)
movq -0x198(%rbp), %rdi
addq $-0x28, %rdi
movq %rdi, -0x1a8(%rbp)
callq 0xf470
movq -0x1a0(%rbp), %rcx
movq -0x1a8(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x198(%rbp)
jne 0x886e
movq -0x180(%rbp), %rdi
addq $0x60, %rdi
movq %rdi, -0x1b0(%rbp)
callq 0xf530
movq -0x10(%rbp), %rsi
leaq -0x120(%rbp), %rdi
callq 0x3e40
jmp 0x88c8
leaq -0x140(%rbp), %rdi
leaq -0x120(%rbp), %rsi
callq 0x3100
jmp 0x88dd
movq -0x180(%rbp), %rdi
leaq -0x140(%rbp), %rsi
callq 0x8ad0
jmp 0x88f2
leaq -0x140(%rbp), %rdi
callq 0x3170
leaq -0x160(%rbp), %rdi
leaq -0x120(%rbp), %rsi
callq 0x3100
jmp 0x8913
movq -0x180(%rbp), %rdi
leaq -0x160(%rbp), %rsi
callq 0x8d30
jmp 0x8928
leaq -0x160(%rbp), %rdi
callq 0x3170
leaq 0x1af45(%rip), %rdi     # 0x23880
callq 0xf550
movq -0x180(%rbp), %rdi
movl %eax, 0x58(%rdi)
callq 0x90f0
jmp 0x8951
leaq -0x120(%rbp), %rdi
callq 0x3170
addq $0x1e0, %rsp            # imm = 0x1E0
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0x19(%rbp), %rdi
callq 0x32a0
jmp 0x8ac0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
movq -0xe8(%rbp), %rax
leaq -0xe0(%rbp), %rcx
cmpq %rax, %rcx
movq %rax, -0x1b8(%rbp)
je 0x89d7
movq -0x1b8(%rbp), %rdi
addq $-0x28, %rdi
movq %rdi, -0x1c0(%rbp)
callq 0xf470
movq -0x1c0(%rbp), %rax
leaq -0xe0(%rbp), %rcx
cmpq %rcx, %rax
movq %rax, -0x1b8(%rbp)
jne 0x89a6
jmp 0x8ab4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0xfb(%rbp), %rdi
callq 0xf510
leaq -0xe0(%rbp), %rax
movq %rax, -0x1d0(%rbp)
addq $0xa0, %rax
movq %rax, -0x1c8(%rbp)
movq -0x1c8(%rbp), %rdi
addq $-0x28, %rdi
movq %rdi, -0x1d8(%rbp)
callq 0xf470
movq -0x1d0(%rbp), %rcx
movq -0x1d8(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x1c8(%rbp)
jne 0x8a0f
jmp 0x8ab4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x8a9c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x8a90
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0x140(%rbp), %rdi
callq 0x3170
jmp 0x8a90
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0x160(%rbp), %rdi
callq 0x3170
leaq -0x120(%rbp), %rdi
callq 0x3170
movq -0x1b0(%rbp), %rdi
callq 0xf580
movq -0x188(%rbp), %rdi
callq 0xf5e0
movq -0x178(%rbp), %rdi
callq 0x3170
movq -0x28(%rbp), %rdi
callq 0x3450
nopl (%rax)