// File: /workspace/github_cpp_makefile_star2_O3/IlyaSamoylov45[P]MapReduce-Project/main.cpp
// Function: real_int(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void real_int(std::string num, std::string correct){
  try {
    int test = std::stoi(num);
    if(test <= 0){
      std::cout << "\n" << "Usage is: --app [wordcount, sort] --impl [procs, threads] --maps num_maps --reduces num_reduces --input infile --output outfile" << std::endl;
      std::cout << "Error was in the argument " << correct << std::endl;
      std::cout << "Not a nonnegative digit greater than 0! You wrote: " << test << "\n" << std::endl;
      exit(EXIT_FAILURE);
    }
  }
  catch(std::exception const & e){
    std::cout << "\n" << "Usage is: --app [wordcount, sort] --impl [procs, threads] --maps num_maps --reduces num_reduces --input infile --output outfile" << std::endl;
    std::cout << "Error was in the argument " << correct << std::endl;
    std::cout << "Error was: " << e.what() << std::endl;
    std::cout << "Not a nonnegative digit greater than 0! You wrote: " << num << "\n" << std::endl;
    exit(EXIT_FAILURE);
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, -0x30(%rbp)
movq %rdi, -0x38(%rbp)
movq (%rdi), %r13
callq 0x3050
movq %rax, %r12
movl (%rax), %ebx
movl $0x0, (%rax)
leaq -0x40(%rbp), %r14
movq %r13, %rdi
movq %r14, %rsi
movl $0xa, %edx
callq 0x33e0
cmpq %r13, (%r14)
je 0x6a00
movq %rax, %r15
movslq %r15d, %rax
cmpq %r15, %rax
jne 0x6a0c
movl (%r12), %eax
cmpl $0x22, %eax
je 0x6a0c
testl %eax, %eax
jne 0x69ec
movl %ebx, (%r12)
testl %r15d, %r15d
jle 0x6a18
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xe9bb(%rip), %rdi      # 0x153c2
callq 0x31d0
leaq 0xe9af(%rip), %rdi      # 0x153c2
callq 0x3400
movq 0x185b1(%rip), %rdi     # 0x1efd0
leaq 0xe5fa(%rip), %rsi      # 0x15020
movl $0x1, %edx
callq 0x3340
movq 0x18599(%rip), %rdi     # 0x1efd0
leaq 0xe79a(%rip), %rsi      # 0x151d8
movl $0x7f, %edx
callq 0x3340
movq 0x18581(%rip), %rdi     # 0x1efd0
callq 0x3170
movq 0x18575(%rip), %rdi     # 0x1efd0
leaq 0xe7f6(%rip), %rsi      # 0x15258
movl $0x1a, %edx
callq 0x3340
movq -0x30(%rbp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq 0x18552(%rip), %rdi     # 0x1efd0
callq 0x3340
movq %rax, %rdi
callq 0x3170
movq 0x1853e(%rip), %rdi     # 0x1efd0
leaq 0xe7da(%rip), %rsi      # 0x15273
movl $0x33, %edx
callq 0x3340
movq 0x18526(%rip), %rdi     # 0x1efd0
movl %r15d, %esi
callq 0x3550
movq %rax, %r15
leaq 0xe564(%rip), %rsi      # 0x15020
movl $0x1, %edx
movq %rax, %rdi
callq 0x3340
movq %r15, %rdi
callq 0x3170
movl $0x1, %edi
callq 0x3370
movq %rax, %r15
jmp 0x6aee
movq %rax, %r15
cmpl $0x0, (%r12)
jne 0x6aee
movl %ebx, (%r12)
cmpl $0x1, %edx
jne 0x6c08
movq %r15, %rdi
callq 0x3120
movq %rax, %r15
movq 0x184c7(%rip), %rdi     # 0x1efd0
leaq 0xe510(%rip), %rsi      # 0x15020
movl $0x1, %edx
callq 0x3340
movq 0x184af(%rip), %rdi     # 0x1efd0
leaq 0xe6b0(%rip), %rsi      # 0x151d8
movl $0x7f, %edx
callq 0x3340
movq 0x18497(%rip), %rdi     # 0x1efd0
callq 0x3170
movq 0x1848b(%rip), %rdi     # 0x1efd0
leaq 0xe70c(%rip), %rsi      # 0x15258
movl $0x1a, %edx
callq 0x3340
movq -0x30(%rbp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq 0x18468(%rip), %rdi     # 0x1efd0
callq 0x3340
movq %rax, %rdi
callq 0x3170
movq 0x18454(%rip), %rdi     # 0x1efd0
leaq 0xe724(%rip), %rsi      # 0x152a7
movl $0xb, %edx
callq 0x3340
movq (%r15), %rax
movq %r15, %rdi
callq *0x10(%rax)
movq 0x18433(%rip), %rdi     # 0x1efd0
movq %rax, %rsi
callq 0x3310
movq %rax, %rdi
callq 0x3170
movq 0x1841c(%rip), %rdi     # 0x1efd0
leaq 0xe6b8(%rip), %rsi      # 0x15273
movl $0x33, %edx
callq 0x3340
movq -0x38(%rbp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq 0x183f9(%rip), %rdi     # 0x1efd0
callq 0x3340
movq %rax, %rbx
leaq 0xe43a(%rip), %rsi      # 0x15020
movl $0x1, %edx
movq %rax, %rdi
callq 0x3340
movq %rbx, %rdi
callq 0x3170
jmp 0x6ad1
movq %rax, %r15
callq 0x34f0
movq %r15, %rdi
callq 0x3560
movq %rax, %rdi
callq 0x735f