// File: /workspace/github_cpp_makefile_star2_O3/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 0x22f0
leaq 0xb0(%rsp), %rdi
callq 0x20b0
testb %al, %al
je 0x2bc3
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 0x2ade
movl 0x8(%rsp), %eax
movl %eax, (%rsp)
movl 0xc(%rsp), %eax
movl %eax, 0x4(%rsp)
movq 0x18(%rsp), %rsi
cmpq 0x20(%rsp), %rsi
je 0x2ad1
movq (%rsp), %rax
movq %rax, (%rsi)
addq $0x8, 0x18(%rsp)
jmp 0x2a83
movq %r12, %rdi
movq %r13, %rdx
callq 0xb2ee
jmp 0x2a83
leaq 0x38(%rsp), %rdi
callq 0x2090
leaq 0x10(%rsp), %rdi
callq 0x2857
movq %rax, %rbx
movq 0x124dc(%rip), %rdi     # 0x14fd8
leaq 0xb631(%rip), %rsi      # 0xe134
movl $0x2b, %edx
callq 0x2240
movq 0x124c4(%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 0x2200
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 0x2bed
leaq 0x10(%rsp), %rdi
callq 0x293d
movq %rax, %rbx
movq 0x12464(%rip), %rdi     # 0x14fd8
leaq 0xb664(%rip), %rsi      # 0xe1df
movl $0x26, %edx
callq 0x2240
movq 0x1244c(%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 0x2200
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2190
cmpq %r15, %rbx
jne 0x2c0c
leaq 0x38(%rsp), %rdi
callq 0x20c0
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x2bdc
callq 0x21f0
addq $0x240, %rsp            # imm = 0x240
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0xb56c(%rip), %rdi      # 0xe160
leaq 0xb589(%rip), %rsi      # 0xe184
leaq 0xb594(%rip), %rcx      # 0xe196
movl $0xb3, %edx
callq 0x2170
leaq 0xb5f3(%rip), %rdi      # 0xe206
leaq 0xb56a(%rip), %rsi      # 0xe184
leaq 0xb575(%rip), %rcx      # 0xe196
movl $0xb9, %edx
callq 0x2170
jmp 0x2c33
jmp 0x2c33
jmp 0x2c33
jmp 0x2c33
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x20c0
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x2c4f
callq 0x21f0
movq %rbx, %rdi
callq 0x2350