// File: /workspace/github_cpp_makefile_star2_O1/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 0x6b4f
movq %rax, %r15
movslq %r15d, %rax
cmpq %r15, %rax
jne 0x6b5b
movl (%r12), %eax
cmpl $0x22, %eax
je 0x6b5b
testl %eax, %eax
jne 0x6b3b
movl %ebx, (%r12)
testl %r15d, %r15d
jle 0x6b67
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xf86c(%rip), %rdi      # 0x163c2
callq 0x31d0
leaq 0xf860(%rip), %rdi      # 0x163c2
callq 0x3400
movq 0x19462(%rip), %rdi     # 0x1ffd0
leaq 0xf4ab(%rip), %rsi      # 0x16020
movl $0x1, %edx
callq 0x3340
movq 0x1944a(%rip), %rdi     # 0x1ffd0
leaq 0xf64b(%rip), %rsi      # 0x161d8
movl $0x7f, %edx
callq 0x3340
movq 0x19432(%rip), %rdi     # 0x1ffd0
callq 0x3170
movq 0x19426(%rip), %rdi     # 0x1ffd0
leaq 0xf6a7(%rip), %rsi      # 0x16258
movl $0x1a, %edx
callq 0x3340
movq -0x30(%rbp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq 0x19403(%rip), %rdi     # 0x1ffd0
callq 0x3340
movq %rax, %rdi
callq 0x3170
movq 0x193ef(%rip), %rdi     # 0x1ffd0
leaq 0xf68b(%rip), %rsi      # 0x16273
movl $0x33, %edx
callq 0x3340
movq 0x193d7(%rip), %rdi     # 0x1ffd0
movl %r15d, %esi
callq 0x3550
movq %rax, %r15
leaq 0xf415(%rip), %rsi      # 0x16020
movl $0x1, %edx
movq %rax, %rdi
callq 0x3340
movq %r15, %rdi
callq 0x3170
movl $0x1, %edi
callq 0x3370
movq %rax, %r15
jmp 0x6c3d
movq %rax, %r15
cmpl $0x0, (%r12)
jne 0x6c3d
movl %ebx, (%r12)
cmpl $0x1, %edx
jne 0x6d57
movq %r15, %rdi
callq 0x3120
movq %rax, %r15
movq 0x19378(%rip), %rdi     # 0x1ffd0
leaq 0xf3c1(%rip), %rsi      # 0x16020
movl $0x1, %edx
callq 0x3340
movq 0x19360(%rip), %rdi     # 0x1ffd0
leaq 0xf561(%rip), %rsi      # 0x161d8
movl $0x7f, %edx
callq 0x3340
movq 0x19348(%rip), %rdi     # 0x1ffd0
callq 0x3170
movq 0x1933c(%rip), %rdi     # 0x1ffd0
leaq 0xf5bd(%rip), %rsi      # 0x16258
movl $0x1a, %edx
callq 0x3340
movq -0x30(%rbp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq 0x19319(%rip), %rdi     # 0x1ffd0
callq 0x3340
movq %rax, %rdi
callq 0x3170
movq 0x19305(%rip), %rdi     # 0x1ffd0
leaq 0xf5d5(%rip), %rsi      # 0x162a7
movl $0xb, %edx
callq 0x3340
movq (%r15), %rax
movq %r15, %rdi
callq *0x10(%rax)
movq 0x192e4(%rip), %rdi     # 0x1ffd0
movq %rax, %rsi
callq 0x3310
movq %rax, %rdi
callq 0x3170
movq 0x192cd(%rip), %rdi     # 0x1ffd0
leaq 0xf569(%rip), %rsi      # 0x16273
movl $0x33, %edx
callq 0x3340
movq -0x38(%rbp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq 0x192aa(%rip), %rdi     # 0x1ffd0
callq 0x3340
movq %rax, %rbx
leaq 0xf2eb(%rip), %rsi      # 0x16020
movl $0x1, %edx
movq %rax, %rdi
callq 0x3340
movq %rbx, %rdi
callq 0x3170
jmp 0x6c20
movq %rax, %r15
callq 0x34f0
movq %r15, %rdi
callq 0x3560
movq %rax, %rdi
callq 0x74db