// File: ArashPartow[P]exprtk/./exprtk.hpp
// Function: exprtk::parser<double>::expression_generator<double>::string_function_call(exprtk::igeneric_function<double>*, std::vector<exprtk::details::expression_node<double>*, std::allocator<exprtk::details::expression_node<double>*>>&, unsigned long const&)
inline expression_node_ptr string_function_call(igeneric_function_t* gf,
                                                         std::vector<expression_node_ptr>& arg_list,
                                                         const std::size_t& param_seq_index = std::numeric_limits<std::size_t>::max())
         {
            if (!all_nodes_valid(arg_list))
            {
               details::free_all_nodes(*node_allocator_,arg_list);
               return error_node();
            }

            typedef details::string_function_node      <Type,igeneric_function_t> alloc_type1;
            typedef details::multimode_strfunction_node<Type,igeneric_function_t> alloc_type2;

            const std::size_t no_psi = std::numeric_limits<std::size_t>::max();

            expression_node_ptr result = error_node();
            std::string node_name = "Unknown";

            if (no_psi == param_seq_index)
            {
               result = node_allocator_->allocate<alloc_type1>(gf,arg_list);
               node_name = "string_function_node<igeneric_function_t>";
            }
            else
            {
               result = node_allocator_->allocate<alloc_type2>(gf, param_seq_index, arg_list);
               node_name = "multimode_strfunction_node<igeneric_function_t>";
            }

            alloc_type1* strfunc_node_ptr = static_cast<alloc_type1*>(result);

            assert(strfunc_node_ptr);

            if (
                 !arg_list.empty()       &&
                 !gf->has_side_effects() &&
                 is_constant_foldable(arg_list)
               )
            {
               strfunc_node_ptr->init_branches();

               const Type v = result->value();

               details::free_node(*node_allocator_,result);

               return node_allocator_->allocate<literal_node_t>(v);
            }
            else if (strfunc_node_ptr->init_branches())
            {
               if (result && result->valid())
               {
                  parser_->state_.activate_side_effect("string_function_call()");
                  return result;
               }

               parser_->set_error(parser_error::make_error(
                  parser_error::e_synthesis,
                  token_t(),
                  "ERR267 - Failed to synthesize node: " + node_name,
                  exprtk_error_location));

               details::free_node(*node_allocator_, result);
               return error_node();
            }
            else
            {
               details::free_node     (*node_allocator_,result  );
               details::free_all_nodes(*node_allocator_,arg_list);

               return error_node();
            }
         }

// Assembly:
subq $0x248, %rsp            # imm = 0x248
movq %rdi, 0x238(%rsp)
movq %rsi, 0x230(%rsp)
movq %rdx, 0x228(%rsp)
movq %rcx, 0x220(%rsp)
movq 0x238(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0x228(%rsp), %rdi
callq 0x39cd40
testb $0x1, %al
jne 0x55558d
movq 0x58(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x228(%rsp), %rsi
callq 0x39cdc0
callq 0x2821f0
movq %rax, 0x240(%rsp)
jmp 0x555b00
movq $-0x1, 0x218(%rsp)
callq 0x2821f0
movq %rax, 0x210(%rsp)
leaq 0x1ef(%rsp), %rdi
movq %rdi, 0x50(%rsp)
callq 0x11b6f0
movq 0x50(%rsp), %rdx
leaq 0x52656(%rip), %rsi     # 0x5a7c1a
leaq 0x1f0(%rsp), %rdi
callq 0x134520
jmp 0x5555d3
leaq 0x1ef(%rsp), %rdi
callq 0x11b820
movq 0x220(%rsp), %rcx
movq $-0x1, %rax
cmpq (%rcx), %rax
jne 0x555684
movq 0x58(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x228(%rsp), %rdx
leaq 0x230(%rsp), %rsi
callq 0x555b20
movq %rax, 0x48(%rsp)
jmp 0x55561d
movq 0x48(%rsp), %rax
movq %rax, 0x210(%rsp)
leaq 0x558e2(%rip), %rsi     # 0x5aaf13
leaq 0x1f0(%rsp), %rdi
callq 0x11b340
jmp 0x555640
jmp 0x5556d6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1e0(%rsp)
movl %eax, 0x1dc(%rsp)
leaq 0x1ef(%rsp), %rdi
callq 0x11b820
jmp 0x555b10
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1e0(%rsp)
movl %eax, 0x1dc(%rsp)
jmp 0x555af1
movq 0x58(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x220(%rsp), %rdx
movq 0x228(%rsp), %rcx
leaq 0x230(%rsp), %rsi
callq 0x555bb0
movq %rax, 0x40(%rsp)
jmp 0x5556b1
movq 0x40(%rsp), %rax
movq %rax, 0x210(%rsp)
leaq 0x55878(%rip), %rsi     # 0x5aaf3d
leaq 0x1f0(%rsp), %rdi
callq 0x11b340
jmp 0x5556d4
jmp 0x5556d6
movq 0x210(%rsp), %rax
movq %rax, 0x1d0(%rsp)
movq 0x228(%rsp), %rdi
callq 0x37d750
testb $0x1, %al
jne 0x5557c7
movq 0x230(%rsp), %rdi
addq $0x8, %rdi
callq 0x237b00
testb $0x1, (%rax)
jne 0x5557c7
movq 0x58(%rsp), %rdi
movq 0x228(%rsp), %rsi
callq 0x39ce40
movb %al, 0x3f(%rsp)
jmp 0x55572d
movb 0x3f(%rsp), %al
testb $0x1, %al
jne 0x55573a
jmp 0x5557c7
movq 0x1d0(%rsp), %rdi
movq (%rdi), %rax
movq 0x40(%rax), %rax
callq *%rax
jmp 0x55574d
movq 0x210(%rsp), %rdi
movq (%rdi), %rax
movq 0x18(%rax), %rax
callq *%rax
movsd %xmm0, 0x30(%rsp)
jmp 0x555766
movq 0x58(%rsp), %rax
movsd 0x30(%rsp), %xmm0
movsd %xmm0, 0x1c8(%rsp)
movq 0x8(%rax), %rdi
leaq 0x210(%rsp), %rsi
callq 0x284bd0
jmp 0x55578d
movq 0x58(%rsp), %rax
movq 0x8(%rax), %rdi
leaq 0x1c8(%rsp), %rsi
callq 0x285670
movq %rax, 0x28(%rsp)
jmp 0x5557aa
movq 0x28(%rsp), %rax
movq %rax, 0x240(%rsp)
movl $0x1, 0x1c4(%rsp)
jmp 0x555ae2
movq 0x1d0(%rsp), %rdi
movq (%rdi), %rax
movq 0x40(%rax), %rax
callq *%rax
movb %al, 0x27(%rsp)
jmp 0x5557de
movb 0x27(%rsp), %al
testb $0x1, %al
jne 0x5557eb
jmp 0x555a9a
cmpq $0x0, 0x210(%rsp)
je 0x5558d1
movq 0x210(%rsp), %rdi
movq (%rdi), %rax
movq 0x30(%rax), %rax
callq *%rax
movb %al, 0x26(%rsp)
jmp 0x555811
movb 0x26(%rsp), %al
testb $0x1, %al
jne 0x55581e
jmp 0x5558d1
movq 0x58(%rsp), %rax
movq 0x68(%rax), %rax
addq $0x3a8, %rax            # imm = 0x3A8
movq %rax, 0x10(%rsp)
leaq 0x19f(%rsp), %rdi
movq %rdi, 0x18(%rsp)
callq 0x11b6f0
movq 0x18(%rsp), %rdx
leaq 0x5571d(%rip), %rsi     # 0x5aaf6d
leaq 0x1a0(%rsp), %rdi
callq 0x134520
jmp 0x55585f
movq 0x10(%rsp), %rdi
leaq 0x1a0(%rsp), %rsi
callq 0x3eb500
leaq 0x1a0(%rsp), %rdi
callq 0x11b838
leaq 0x19f(%rsp), %rdi
callq 0x11b820
movq 0x210(%rsp), %rax
movq %rax, 0x240(%rsp)
movl $0x1, 0x1c4(%rsp)
jmp 0x555ae2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1e0(%rsp)
movl %eax, 0x1dc(%rsp)
leaq 0x19f(%rsp), %rdi
callq 0x11b820
jmp 0x555af1
movq 0x58(%rsp), %rax
movq 0x68(%rax), %rax
movq %rax, 0x8(%rsp)
leaq 0xc0(%rsp), %rdi
callq 0x251250
jmp 0x5558ee
leaq 0x5568f(%rip), %rsi     # 0x5aaf84
leaq 0xa0(%rsp), %rdi
leaq 0x1f0(%rsp), %rdx
callq 0x3784f0
jmp 0x55590c
leaq 0x60(%rsp), %rdi
movl $0x8493, %esi           # imm = 0x8493
callq 0x371f20
jmp 0x55591d
leaq 0x515ef(%rip), %rsi     # 0x5a6f13
leaq 0x80(%rsp), %rdi
leaq 0x60(%rsp), %rdx
callq 0x29dd70
jmp 0x555938
leaq 0xf0(%rsp), %rdi
movl $0x7, %esi
leaq 0xc0(%rsp), %rdx
leaq 0xa0(%rsp), %rcx
leaq 0x80(%rsp), %r8
callq 0x3741e0
jmp 0x555964
movq 0x8(%rsp), %rdi
leaq 0xf0(%rsp), %rsi
callq 0x371e40
jmp 0x555978
leaq 0xf0(%rsp), %rdi
callq 0x371330
leaq 0x80(%rsp), %rdi
callq 0x11b838
leaq 0x60(%rsp), %rdi
callq 0x11b838
leaq 0xa0(%rsp), %rdi
callq 0x11b838
leaq 0xc0(%rsp), %rdi
callq 0x2512e0
movq 0x58(%rsp), %rax
movq 0x8(%rax), %rdi
leaq 0x210(%rsp), %rsi
callq 0x284bd0
jmp 0x5559ce
callq 0x2821f0
movq %rax, 0x240(%rsp)
movl $0x1, 0x1c4(%rsp)
jmp 0x555ae2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1e0(%rsp)
movl %eax, 0x1dc(%rsp)
jmp 0x555a8b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1e0(%rsp)
movl %eax, 0x1dc(%rsp)
jmp 0x555a7e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1e0(%rsp)
movl %eax, 0x1dc(%rsp)
jmp 0x555a74
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1e0(%rsp)
movl %eax, 0x1dc(%rsp)
jmp 0x555a67
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1e0(%rsp)
movl %eax, 0x1dc(%rsp)
leaq 0xf0(%rsp), %rdi
callq 0x371330
leaq 0x80(%rsp), %rdi
callq 0x11b838
leaq 0x60(%rsp), %rdi
callq 0x11b838
leaq 0xa0(%rsp), %rdi
callq 0x11b838
leaq 0xc0(%rsp), %rdi
callq 0x2512e0
jmp 0x555af1
movq 0x58(%rsp), %rax
movq 0x8(%rax), %rdi
leaq 0x210(%rsp), %rsi
callq 0x284bd0
jmp 0x555ab2
movq 0x58(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x228(%rsp), %rsi
callq 0x39cdc0
jmp 0x555aca
callq 0x2821f0
movq %rax, 0x240(%rsp)
movl $0x1, 0x1c4(%rsp)
leaq 0x1f0(%rsp), %rdi
callq 0x11b838
jmp 0x555b00
leaq 0x1f0(%rsp), %rdi
callq 0x11b838
jmp 0x555b10
movq 0x240(%rsp), %rax
addq $0x248, %rsp            # imm = 0x248
retq
movq 0x1e0(%rsp), %rdi
callq 0x11b4e0
nopl (%rax)