// File: /workspace/github_cpp_makefile_star2_O1/Manca[P]algorithms2/./assignment1.hpp
// Function: assignment1::scheduling_problem::run_algorithm(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void run_algorithm(const std::string& inputFile)
        {
            std::vector<job> jobs;
            std::ifstream file(inputFile, std::ios::in);

            if (file.is_open())
            {
                int n;
                int job_weight, job_length;

                file >> n;
                while (file >> job_weight >> job_length)
                {
                    std::tuple<int, int> job = std::make_tuple(job_weight, job_length);

                    jobs.push_back(job);
                }
                file.close();

                // Schedule by difference total weighted sum
                long long schedule_by_diff_sum = schedule_by_difference(jobs);
                std::cout << "Schedule by difference total weighted sum: " << schedule_by_diff_sum << std::endl;

                assert(schedule_by_diff_sum == 69119377652);

                // Schedule by ratio total weighted sum
                long long schedule_by_ratio_sum = schedule_by_ratio(jobs);
                std::cout << "Schedule by ratio total weighted sum: " << schedule_by_ratio_sum << std::endl;

                assert(schedule_by_ratio_sum == 67311454237);
            }
        }

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x240, %rsp            # imm = 0x240
movq %rdi, %rsi
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
leaq 0x38(%rsp), %rdi
movl $0x8, %edx
callq 0x2300
leaq 0xb0(%rsp), %rdi
callq 0x20b0
testb %al, %al
je 0x2bb9
leaq 0x38(%rsp), %rdi
leaq 0x34(%rsp), %rsi
callq 0x2160
leaq 0x38(%rsp), %rbx
leaq 0xc(%rsp), %r14
leaq 0x8(%rsp), %r15
leaq 0x10(%rsp), %r12
movq %rsp, %r13
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2160
movq %rax, %rdi
movq %r15, %rsi
callq 0x2160
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x2ad4
movl 0x8(%rsp), %eax
movl %eax, (%rsp)
movl 0xc(%rsp), %eax
movl %eax, 0x4(%rsp)
movq 0x18(%rsp), %rsi
cmpq 0x20(%rsp), %rsi
je 0x2ac7
movq (%rsp), %rax
movq %rax, (%rsi)
addq $0x8, 0x18(%rsp)
jmp 0x2a79
movq %r12, %rdi
movq %r13, %rdx
callq 0xb2b2
jmp 0x2a79
leaq 0x38(%rsp), %rdi
callq 0x2090
leaq 0x10(%rsp), %rdi
callq 0x2867
movq %rax, %rbx
movq 0x124e6(%rip), %rdi     # 0x14fd8
leaq 0xb63b(%rip), %rsi      # 0xe134
movl $0x2b, %edx
callq 0x2250
movq 0x124ce(%rip), %rdi     # 0x14fd8
movq %rbx, %rsi
callq 0x2100
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2210
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2190
movabsq $0xfac13481d, %r15      # imm = 0xFAC13481D
leaq 0x6bc2b8d7(%r15), %rax
cmpq %rax, %rbx
jne 0x2be3
leaq 0x10(%rsp), %rdi
callq 0x2940
movq %rax, %rbx
movq 0x1246e(%rip), %rdi     # 0x14fd8
leaq 0xb66e(%rip), %rsi      # 0xe1df
movl $0x26, %edx
callq 0x2250
movq 0x12456(%rip), %rdi     # 0x14fd8
movq %rbx, %rsi
callq 0x2100
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2210
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2190
cmpq %r15, %rbx
jne 0x2c02
leaq 0x38(%rsp), %rdi
callq 0x20c0
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x2bd2
callq 0x2200
addq $0x240, %rsp            # imm = 0x240
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0xb576(%rip), %rdi      # 0xe160
leaq 0xb593(%rip), %rsi      # 0xe184
leaq 0xb59e(%rip), %rcx      # 0xe196
movl $0xb3, %edx
callq 0x2170
leaq 0xb5fd(%rip), %rdi      # 0xe206
leaq 0xb574(%rip), %rsi      # 0xe184
leaq 0xb57f(%rip), %rcx      # 0xe196
movl $0xb9, %edx
callq 0x2170
jmp 0x2c2e
movq %rax, %rbx
jmp 0x2c3b
jmp 0x2c2e
jmp 0x2c2e
jmp 0x2c2e
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x20c0
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x2c4a
callq 0x2200
movq %rbx, %rdi
callq 0x2360