// File: /workspace/github_cpp_makefile_star2_O2/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 $0x58, %rsp
movq %rsi, %rbx
leaq 0x38(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x28(%rsp), %r14
pushq $0xa
popq %rsi
pushq $0x2d
popq %rdx
movq %r14, %rdi
callq 0x116390
movq (%r14), %rdi
callq 0x116660
movq %r14, %rdi
callq 0x116778
xorl %esi, %esi
cmpb $0x1, (%rbx)
jne 0x24e5f7
movq 0x10(%rbx), %rax
subq 0x8(%rbx), %rax
cqto
pushq $0x18
popq %rcx
idivq %rcx
movq %rax, %rsi
leaq 0xbd6c(%rip), %rdi      # 0x25a36a
xorl %eax, %eax
callq 0x116080
leaq 0x28(%rsp), %r12
leaq 0x48(%rsp), %r13
leaq 0x738f(%rip), %rbp      # 0x2559a5
xorl %r14d, %r14d
movq %rbx, 0x20(%rsp)
cmpb $0x1, (%rbx)
jne 0x24e635
movq 0x10(%rbx), %rax
subq 0x8(%rbx), %rax
cqto
pushq $0x18
popq %rcx
idivq %rcx
jmp 0x24e637
xorl %eax, %eax
cmpq %rax, %r14
jae 0x24e76c
leaq 0xbd39(%rip), %rdi      # 0x25a380
movl %r14d, %esi
xorl %eax, %eax
callq 0x116080
movq 0x8(%rbx), %rcx
imulq $0x18, %r14, %rdx
movq 0x10(%rcx,%rdx), %rax
movq %rax, 0x10(%rsp)
movups (%rcx,%rdx), %xmm0
movaps %xmm0, (%rsp)
cmpl $0x3, %eax
je 0x24e712
cmpl $0x2, %eax
je 0x24e6b7
cmpl $0x1, %eax
jne 0x24e764
leaq 0xbd00(%rip), %rdi      # 0x25a389
xorl %eax, %eax
callq 0x116080
movq %r12, %rdi
movq %rbp, %rsi
movq %r13, %rdx
callq 0x118498
movq (%rsp), %rax
movsd (%rax), %xmm0
movq 0x28(%rsp), %rdi
movb $0x1, %al
callq 0x116080
jmp 0x24e74f
leaq 0xbcd3(%rip), %rdi      # 0x25a391
xorl %eax, %eax
callq 0x116080
movq (%rsp), %r15
xorl %ebx, %ebx
cmpq 0x8(%rsp), %rbx
jae 0x24e757
movq %r12, %rdi
movq %rbp, %rsi
movq %r13, %rdx
callq 0x118498
movsd (%r15,%rbx,8), %xmm0
movq 0x28(%rsp), %rdi
movb $0x1, %al
callq 0x116080
movq %r12, %rdi
callq 0x116778
incq %rbx
cmpq 0x8(%rsp), %rbx
jae 0x24e6cb
pushq $0x20
popq %rdi
callq 0x1166e0
jmp 0x24e6cb
leaq 0xbc80(%rip), %rdi      # 0x25a399
xorl %eax, %eax
callq 0x116080
movq %rsp, %rax
movq %rax, 0x48(%rsp)
movq (%rsp), %rax
movq %rax, 0x50(%rsp)
movq %r12, %rdi
movq %r13, %rsi
callq 0x17a24b
movq 0x28(%rsp), %rsi
leaq 0x7264(%rip), %rdi      # 0x2559ac
xorl %eax, %eax
callq 0x116080
movq %r12, %rdi
callq 0x116778
pushq $0xa
popq %rdi
callq 0x1166e0
movq 0x20(%rsp), %rbx
incq %r14
jmp 0x24e61e
leaq 0x28(%rsp), %rbx
leaq 0x38(%rsp), %rax
movq %rax, (%rbx)
pushq $0xa
popq %rsi
pushq $0x2d
popq %rdx
movq %rbx, %rdi
callq 0x116390
movq (%rbx), %rdi
callq 0x116660
movq %rbx, %rdi
callq 0x116778
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq