// File: /workspace/github_cpp_makefile_star2_O1/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 0x11e360
movq (%rbx), %rdi
callq 0x11e620
movq (%rbx), %rdi
cmpq %r15, %rdi
je 0x2e456e
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x11e0d0
xorl %esi, %esi
cmpb $0x1, (%r12)
jne 0x2e458b
movq 0x10(%r12), %rax
subq 0x8(%r12), %rax
shrq $0x3, %rax
imull $0xaaaaaaab, %eax, %esi # imm = 0xAAAAAAAB
leaq 0xb5d7(%rip), %rdi      # 0x2efb69
xorl %eax, %eax
callq 0x11e090
xorl %ebp, %ebp
movq %r12, 0x20(%rsp)
cmpb $0x1, (%r12)
jne 0x2e45c5
movq 0x10(%r12), %rax
subq 0x8(%r12), %rax
sarq $0x3, %rax
movabsq $-0x5555555555555555, %rcx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rcx, %rax
jmp 0x2e45c7
xorl %eax, %eax
cmpq %rax, %rbp
jae 0x2e4739
leaq 0xb5a8(%rip), %rdi      # 0x2efb7f
movl %ebp, %esi
xorl %eax, %eax
callq 0x11e090
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 0x2e46d7
cmpl $0x2, %eax
je 0x2e4651
cmpl $0x1, %eax
jne 0x2e4731
leaq 0xb56d(%rip), %rdi      # 0x2efb88
xorl %eax, %eax
callq 0x11e090
movq %r15, (%rsp)
movq %rsp, %rdi
leaq 0x6bcc(%rip), %rsi      # 0x2eb1fc
leaq 0x6bcb(%rip), %rdx      # 0x2eb202
callq 0x121a7e
movsd (%r14), %xmm0
movq (%rsp), %rdi
movb $0x1, %al
callq 0x11e090
jmp 0x2e470c
leaq 0xb538(%rip), %rdi      # 0x2efb90
xorl %eax, %eax
callq 0x11e090
testq %r13, %r13
je 0x2e4722
movq %r13, %rbx
negq %rbx
movl $0x1, %r12d
movq %r15, (%rsp)
movq %rsp, %rdi
leaq 0x6b7a(%rip), %rsi      # 0x2eb1fc
leaq 0x6b79(%rip), %rdx      # 0x2eb202
callq 0x121a7e
movsd -0x8(%r14,%r12,8), %xmm0
movq (%rsp), %rdi
movb $0x1, %al
callq 0x11e090
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x2e46b6
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x11e0d0
cmpq %r13, %r12
jae 0x2e46c5
movl $0x20, %edi
callq 0x11e6a0
leaq (%rbx,%r12), %rax
incq %rax
incq %r12
cmpq $0x1, %rax
jne 0x2e4674
jmp 0x2e4722
leaq 0xb4ba(%rip), %rdi      # 0x2efb98
xorl %eax, %eax
callq 0x11e090
movq %r15, (%rsp)
addq %r14, %r13
movq %rsp, %rdi
movq %r14, %rsi
movq %r13, %rdx
callq 0x121a7e
movq (%rsp), %rsi
leaq 0x6afe(%rip), %rdi      # 0x2eb203
xorl %eax, %eax
callq 0x11e090
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x2e4722
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x11e0d0
movl $0xa, %edi
callq 0x11e6a0
movq 0x20(%rsp), %r12
incq %rbp
jmp 0x2e45a0
movq %rsp, %rbx
movq %r15, (%rbx)
movl $0xa, %esi
movq %rbx, %rdi
movl $0x2d, %edx
callq 0x11e360
movq (%rbx), %rdi
callq 0x11e620
movq (%rbx), %rdi
cmpq %r15, %rdi
je 0x2e476e
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x11e0d0
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop