// File: /workspace/github_cpp_makefile_star2_O3/ArashPartow[P]exprtk-extras/exprtk_repl.cpp
// Function: expression_processor<double>::print_results(exprtk::results_context<double> const&)
void print_results(const exprtk::results_context<T>& results)
   {
      typedef exprtk::results_context<T> results_context_t;
      typedef typename results_context_t::type_store_t type_t;
      typedef typename type_t::scalar_view scalar_t;
      typedef typename type_t::vector_view vector_t;
      typedef typename type_t::string_view string_t;

      typename exprtk::details::numeric::details::number_type<T>::type num_type;

      printf("%s\n",std::string(10,'-').c_str());
      printf("Return Results (#%d)\n",static_cast<int>(results.count()));

      for (std::size_t i = 0; i < results.count(); ++i)
      {
         printf("[%02d]  ",static_cast<int>(i));

         type_t t = results[i];

         switch (t.type)
         {
            case type_t::e_scalar : printf("Scalar\t");
                                    exprtk::rtl::io::details::print_type("%10.5f",scalar_t(t)(),num_type);
                                    break;

            case type_t::e_vector : {
                                       printf("Vector\t");
                                       vector_t vector(t);

                                       for (std::size_t x = 0; x < vector.size(); ++x)
                                       {
                                          exprtk::rtl::io::details::print_type("%10.5f",vector[x],num_type);

                                          if ((x + 1) < vector.size())
                                             printf(" ");
                                       }
                                    }
                                    break;

            case type_t::e_string : printf("String\t");
                                    printf("%s",to_str(string_t(t)).c_str());
                                    break;

            default               : continue;
         }

         printf("\n");
      }

      printf("%s\n",std::string(10,'-').c_str());
   }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r12
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
movq %rsp, %rbx
movl $0xa, %esi
movq %rbx, %rdi
movl $0x2d, %edx
callq 0x11c360
movq (%rbx), %rdi
callq 0x11c620
movq (%rbx), %rdi
cmpq %r15, %rdi
je 0x2bfd20
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x11c0d0
xorl %esi, %esi
cmpb $0x1, (%r12)
jne 0x2bfd3d
movq 0x10(%r12), %rax
subq 0x8(%r12), %rax
shrq $0x3, %rax
imull $0xaaaaaaab, %eax, %esi # imm = 0xAAAAAAAB
leaq 0xbe5f(%rip), %rdi      # 0x2cbba3
xorl %eax, %eax
callq 0x11c090
xorl %ebp, %ebp
movq %r12, 0x20(%rsp)
cmpb $0x1, (%r12)
jne 0x2bfd77
movq 0x10(%r12), %rax
subq 0x8(%r12), %rax
sarq $0x3, %rax
movabsq $-0x5555555555555555, %rcx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rcx, %rax
jmp 0x2bfd79
xorl %eax, %eax
cmpq %rax, %rbp
jae 0x2bfeeb
leaq 0xbe30(%rip), %rdi      # 0x2cbbb9
movl %ebp, %esi
xorl %eax, %eax
callq 0x11c090
movq 0x8(%r12), %rax
leaq (,%rbp,2), %rcx
addq %rbp, %rcx
movq (%rax,%rcx,8), %r14
movq 0x8(%rax,%rcx,8), %r13
movl 0x10(%rax,%rcx,8), %eax
cmpl $0x3, %eax
je 0x2bfe89
cmpl $0x2, %eax
je 0x2bfe03
cmpl $0x1, %eax
jne 0x2bfee3
leaq 0xbdf5(%rip), %rdi      # 0x2cbbc2
xorl %eax, %eax
callq 0x11c090
movq %r15, (%rsp)
movq %rsp, %rdi
leaq 0x7482(%rip), %rsi      # 0x2c7264
leaq 0x7481(%rip), %rdx      # 0x2c726a
callq 0x11fa26
movsd (%r14), %xmm0
movq (%rsp), %rdi
movb $0x1, %al
callq 0x11c090
jmp 0x2bfebe
leaq 0xbdc0(%rip), %rdi      # 0x2cbbca
xorl %eax, %eax
callq 0x11c090
testq %r13, %r13
je 0x2bfed4
movq %r13, %rbx
negq %rbx
movl $0x1, %r12d
movq %r15, (%rsp)
movq %rsp, %rdi
leaq 0x7430(%rip), %rsi      # 0x2c7264
leaq 0x742f(%rip), %rdx      # 0x2c726a
callq 0x11fa26
movsd -0x8(%r14,%r12,8), %xmm0
movq (%rsp), %rdi
movb $0x1, %al
callq 0x11c090
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x2bfe68
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x11c0d0
cmpq %r13, %r12
jae 0x2bfe77
movl $0x20, %edi
callq 0x11c6a0
leaq (%rbx,%r12), %rax
incq %rax
incq %r12
cmpq $0x1, %rax
jne 0x2bfe26
jmp 0x2bfed4
leaq 0xbd42(%rip), %rdi      # 0x2cbbd2
xorl %eax, %eax
callq 0x11c090
movq %r15, (%rsp)
addq %r14, %r13
movq %rsp, %rdi
movq %r14, %rsi
movq %r13, %rdx
callq 0x11fa26
movq (%rsp), %rsi
leaq 0x73b4(%rip), %rdi      # 0x2c726b
xorl %eax, %eax
callq 0x11c090
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x2bfed4
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x11c0d0
movl $0xa, %edi
callq 0x11c6a0
movq 0x20(%rsp), %r12
incq %rbp
jmp 0x2bfd52
movq %rsp, %rbx
movq %r15, (%rbx)
movl $0xa, %esi
movq %rbx, %rdi
movl $0x2d, %edx
callq 0x11c360
movq (%rbx), %rdi
callq 0x11c620
movq (%rbx), %rdi
cmpq %r15, %rdi
je 0x2bff20
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x11c0d0
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop