// File: /workspace/github_cpp_makefile_star2_O3/ArashPartow[P]exprtk-extras/exprtk_repl.cpp
// Function: void repl<double>(int, char**)
void repl(int argc, char* argv[])
{
   expression_processor<T> processor;

   if (argc > 1)
   {
      for (int i = 1; i < argc; ++i)
      {
         processor.process_from_file(argv[i]);
      }
   }
   else
   {
      for ( ; ; )
      {
         std::string expression;

         std::cout << ">> ";
         std::getline(std::cin,expression);

         if (expression.empty())
            continue;
         else if ("exit" == expression)
            break;
         else if ("quit" == expression)
            break;
         else if ('$' == expression[0])
            processor.process_directive(expression);
         else
            processor.process(expression);
      }
   }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x20b8, %rsp           # imm = 0x20B8
movq %rsi, %rbx
movl %edi, %ebp
leaq 0x68(%rsp), %rdi
callq 0x11fabc
cmpl $0x1, %ebp
jle 0x11f832
movl %ebp, %ebp
movl $0x1, %r13d
leaq 0x8(%rsp), %r14
leaq 0x7(%rsp), %r15
leaq 0x68(%rsp), %r12
movq (%rbx,%r13,8), %rsi
movq %r14, %rdi
movq %r15, %rdx
callq 0x11f776
movq %r12, %rdi
movq %r14, %rsi
callq 0x120a8e
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x11f825
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x11c0d0
incq %r13
cmpq %r13, %rbp
jne 0x11f7ef
jmp 0x11f97f
leaq 0x18(%rsp), %rbp
movq 0x30f792(%rip), %rbx    # 0x42efd0
leaq 0x1a71ab(%rip), %r14    # 0x2c69f0
movq 0x30f79c(%rip), %r15    # 0x42efe8
leaq 0x8(%rsp), %r12
movq %rbp, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movb $0x0, 0x18(%rsp)
movl $0x3, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x11c5d0
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x11c630
movsbl %al, %edx
movq %r15, %rdi
movq %r12, %rsi
callq 0x11c030
cmpq $0x0, 0x10(%rsp)
je 0x11f95c
movq %r12, %rdi
leaq 0x1a7148(%rip), %rsi    # 0x2c69f4
callq 0x11c550
movb $0x1, %r13b
testl %eax, %eax
je 0x11f95f
movq %r12, %rdi
leaq 0x1a7133(%rip), %rsi    # 0x2c69f9
callq 0x11c550
testl %eax, %eax
je 0x11f95f
movq 0x8(%rsp), %rsi
cmpb $0x24, (%rsi)
jne 0x11f914
leaq 0x58(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0x48(%rsp), %rdi
callq 0x2bf986
leaq 0x68(%rsp), %rdi
leaq 0x48(%rsp), %rsi
callq 0x120b78
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rcx
jmp 0x11f949
leaq 0x38(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0x28(%rsp), %rdi
callq 0x2bf986
leaq 0x68(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x121146
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rcx
movq %rcx, %rax
cmpq %rcx, %rdi
je 0x11f95c
movq (%rax), %rsi
incq %rsi
callq 0x11c0d0
xorl %r13d, %r13d
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x11f976
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x11c0d0
testb %r13b, %r13b
je 0x11f851
leaq 0x68(%rsp), %rdi
callq 0x121d3c
addq $0x20b8, %rsp           # imm = 0x20B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x11f9f1
movq 0x38(%rsp), %rsi
jmp 0x11f9cb
movq %rax, %rbx
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x11f9f1
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x11c0d0
jmp 0x11f9f1
movq %rax, %rbx
jmp 0x11fa08
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
jne 0x11f9fb
jmp 0x11fa08
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x11fa08
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x11c0d0
leaq 0x68(%rsp), %rdi
callq 0x121d3c
movq %rbx, %rdi
callq 0x11c3c0