// File: /workspace/github_cpp_makefile_star2_O2/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)
andq $0x0, 0x20(%rsp)
leaq 0x38(%rsp), %rdi
pushq $0x8
popq %rdx
callq 0x2320
leaq 0xb0(%rsp), %rdi
callq 0x20c0
testb %al, %al
je 0x29bb
leaq 0x38(%rsp), %rdi
leaq 0x34(%rsp), %rsi
callq 0x21a0
leaq 0x38(%rsp), %rbx
leaq 0x4(%rsp), %r14
movq %rsp, %r15
leaq 0x10(%rsp), %r12
leaq 0x8(%rsp), %r13
movq %rbx, %rdi
movq %r14, %rsi
callq 0x21a0
movq %rax, %rdi
movq %r15, %rsi
callq 0x21a0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x2930
movl (%rsp), %eax
movl %eax, 0x8(%rsp)
movl 0x4(%rsp), %eax
movl %eax, 0xc(%rsp)
movq %r12, %rdi
movq %r13, %rsi
callq 0x70f0
jmp 0x28f0
leaq 0x38(%rsp), %rdi
callq 0x2090
leaq 0x10(%rsp), %rdi
callq 0x26cb
movq %rax, %rbx
movq 0x1368a(%rip), %rdi     # 0x15fd8
leaq 0xa78f(%rip), %rsi      # 0xd0e4
callq 0x2230
movq %rax, %rdi
movq %rbx, %rsi
callq 0x2110
movq %rax, %rdi
callq 0x2160
movabsq $0xfac13481d, %r14      # imm = 0xFAC13481D
leaq 0x6bc2b8d7(%r14), %rax
cmpq %rax, %rbx
jne 0x29e0
leaq 0x10(%rsp), %rdi
callq 0x27ab
movq %rax, %rbx
movq 0x13641(%rip), %rdi     # 0x15fd8
leaq 0xa7f1(%rip), %rsi      # 0xd18f
callq 0x2230
movq %rax, %rdi
movq %rbx, %rsi
callq 0x2110
movq %rax, %rdi
callq 0x2160
cmpq %r14, %rbx
jne 0x29ff
leaq 0x38(%rsp), %rdi
callq 0x20e0
leaq 0x10(%rsp), %rdi
callq 0x9b26
addq $0x240, %rsp            # imm = 0x240
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0xa729(%rip), %rdi      # 0xd110
leaq 0xa746(%rip), %rsi      # 0xd134
leaq 0xa751(%rip), %rcx      # 0xd146
movl $0xb3, %edx
callq 0x21b0
leaq 0xa7b0(%rip), %rdi      # 0xd1b6
leaq 0xa727(%rip), %rsi      # 0xd134
leaq 0xa732(%rip), %rcx      # 0xd146
movl $0xb9, %edx
callq 0x21b0
jmp 0x2a2b
movq %rax, %rbx
jmp 0x2a38
jmp 0x2a2b
jmp 0x2a2b
jmp 0x2a2b
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x20e0
leaq 0x10(%rsp), %rdi
callq 0x9b26
movq %rbx, %rdi
callq 0x2380