// File: /workspace/github_cpp_makefile_star2_O2/ArashPartow[P]exprtk/./exprtk.hpp
// Function: exprtk::parser<double>::expression_generator<double>::synthesize_boc_expression::process(exprtk::parser<double>::expression_generator<double>&, exprtk::details::operator_type const&, exprtk::details::expression_node<double>* (&) [2])
static inline expression_node_ptr process(expression_generator<Type>& expr_gen,
                                                      const details::operator_type& operation,
                                                      expression_node_ptr (&branch)[2])
            {
               const Type c = static_cast<details::literal_node<Type>*>(branch[1])->value();

               details::free_node(*(expr_gen.node_allocator_), branch[1]);

               if (std::equal_to<T>()(T(0),c) && (details::e_mul == operation))
               {
                  details::free_node(*expr_gen.node_allocator_, branch[0]);

                  return expr_gen(T(0));
               }
               else if (std::equal_to<T>()(T(0),c) && (details::e_div == operation))
               {
                  details::free_node(*expr_gen.node_allocator_, branch[0]);

                  return expr_gen(std::numeric_limits<T>::quiet_NaN());
               }
               else if (std::equal_to<T>()(T(0),c) && (details::e_add == operation))
                  return branch[0];
               else if (std::equal_to<T>()(T(1),c) && (details::e_mul == operation))
                  return branch[0];

               if (details::is_boc_node(branch[0]))
               {
                  // Simplify expressions of the form:
                  // 1. (((((((((x + 9) * 8) * 7) * 6) * 5) * 4) * 3) * 2) * 1) --> (x + 9) * 40320
                  // 2. (((((((((x + 9) + 8) + 7) + 6) + 5) + 4) + 3) + 2) + 1) --> x + 45
                  if (
                       (details::e_mul == operation) ||
                       (details::e_add == operation)
                     )
                  {
                     details::boc_base_node<Type>* bocnode = static_cast<details::boc_base_node<Type>*>(branch[0]);

                     if (operation == bocnode->operation())
                     {
                        switch (operation)
                        {
                           case details::e_add : bocnode->set_c(c + bocnode->c()); break;
                           case details::e_mul : bocnode->set_c(c * bocnode->c()); break;
                           default             : return error_node();
                        }

                        return bocnode;
                     }
                  }
                  else if (operation == details::e_div)
                  {
                     details::boc_base_node<Type>* bocnode = static_cast<details::boc_base_node<Type>*>(branch[0]);
                     details::operator_type        boc_opr = bocnode->operation();

                     if (
                          (details::e_div == boc_opr) ||
                          (details::e_mul == boc_opr)
                        )
                     {
                        switch (boc_opr)
                        {
                           case details::e_div : bocnode->set_c(c * bocnode->c()); break;
                           case details::e_mul : bocnode->set_c(bocnode->c() / c); break;
                           default             : return error_node();
                        }

                        return bocnode;
                     }
                  }
                  else if (operation == details::e_pow)
                  {
                     // (v ^ c0) ^ c1 --> v ^(c0 * c1)
                     details::boc_base_node<Type>* bocnode = static_cast<details::boc_base_node<Type>*>(branch[0]);
                     details::operator_type        boc_opr = bocnode->operation();

                     if (details::e_pow == boc_opr)
                     {
                        bocnode->set_c(bocnode->c() * c);

                        return bocnode;
                     }
                  }
               }

               #ifndef exprtk_disable_enhanced_features
               if (details::is_sf3ext_node(branch[0]))
               {
                  expression_node_ptr result = error_node();

                  const bool synthesis_result =
                     synthesize_sf4ext_expression::template compile_left<ctype>
                        (expr_gen, c, operation, branch[0], result);

                  if (synthesis_result)
                  {
                     free_node(*expr_gen.node_allocator_, branch[0]);

                     return result;
                  }
               }
               #endif

               switch (operation)
               {
                  #define case_stmt(op0, op1)                                                      \
                  case op0 : return expr_gen.node_allocator_->                                     \
                                template allocate_cr<typename details::boc_node<Type,op1<Type> > > \
                                   (branch[0], c);                                                 \

                  basic_opr_switch_statements
                  extended_opr_switch_statements
                  #undef case_stmt
                  default : return error_node();
               }
            }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %rbx
movq %rsi, %r12
movq %rdi, %r15
leaq 0x8(%rdx), %rsi
movq 0x8(%rdx), %rax
movsd 0x20(%rax), %xmm0
movsd %xmm0, 0x8(%rsp)
movsd %xmm0, (%rsp)
movq 0x8(%rdi), %rdi
callq 0x1ad9c8
xorpd %xmm0, %xmm0
movsd 0x8(%rsp), %xmm1
ucomisd %xmm0, %xmm1
movl (%r12), %eax
jne 0x22941d
jp 0x22941d
cmpl $0x2, %eax
je 0x229439
cmpl $0x5, %eax
je 0x2294aa
cmpl $0x4, %eax
jne 0x229441
movq 0x8(%r15), %rdi
movq %rbx, %rsi
callq 0x1ad9c8
leaq 0x10(%rsp), %rsi
andq $0x0, (%rsi)
jmp 0x2294c8
ucomisd 0xa4d9b(%rip), %xmm1    # 0x2ce1c0
setnp %cl
sete %dl
andb %cl, %dl
cmpl $0x4, %eax
sete %al
andb %dl, %al
cmpb $0x1, %al
jne 0x229441
movq (%rbx), %r14
jmp 0x2294d3
movq (%rbx), %rdi
callq 0x26d761
testb %al, %al
je 0x229555
movl (%r12), %r13d
leal -0x2(%r13), %eax
cmpl $0x5, %eax
ja 0x229555
leaq 0xa79cb(%rip), %rcx     # 0x2d0e34
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq (%rbx), %r14
movq (%r14), %rax
movq %r14, %rdi
callq *0x38(%rax)
cmpl %eax, %r13d
jne 0x229555
movl (%r12), %eax
cmpl $0x4, %eax
je 0x2294f6
cmpl $0x2, %eax
jne 0x2295d4
movq (%r14), %rax
movq %r14, %rdi
callq *0x40(%rax)
addsd 0x8(%rsp), %xmm0
jmp 0x229505
movq 0x8(%r15), %rdi
movq %rbx, %rsi
callq 0x1ad9c8
movabsq $0x7ff8000000000000, %rax # imm = 0x7FF8000000000000
leaq 0x10(%rsp), %rsi
movq %rax, (%rsi)
movq %r15, %rdi
callq 0x1ad9fe
movq %rax, %r14
movq %r14, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq (%rbx), %r14
movq (%r14), %rax
movq %r14, %rdi
callq *0x38(%rax)
cmpl $0x7, %eax
jne 0x229555
movq (%r14), %rax
movq %r14, %rdi
callq *0x40(%rax)
mulsd 0x8(%rsp), %xmm0
movq (%r14), %rax
movq %r14, %rdi
callq *0x48(%rax)
jmp 0x2294d3
movq (%rbx), %r14
movq (%r14), %rax
movq %r14, %rdi
callq *0x38(%rax)
movl %eax, %ebp
andl $-0x2, %eax
cmpl $0x4, %eax
jne 0x229555
movq (%r14), %rax
movq %r14, %rdi
callq *0x40(%rax)
movq (%r14), %rax
movq 0x48(%rax), %rax
cmpl $0x5, %ebp
jne 0x229730
movsd 0x8(%rsp), %xmm1
mulsd %xmm0, %xmm1
movq %r14, %rdi
movapd %xmm1, %xmm0
jmp 0x229739
movq (%rbx), %rdi
movq (%rdi), %rax
callq *0x28(%rax)
addl $-0x6a, %eax
cmpl $0x4, %eax
ja 0x22959d
leaq 0x10(%rsp), %rcx
andq $0x0, (%rcx)
movq %r15, %rdi
movsd 0x8(%rsp), %xmm0
movq %r12, %rsi
movq %rbx, %rdx
callq 0x27b05c
testb %al, %al
je 0x22959d
movq 0x8(%r15), %rdi
movq %rbx, %rsi
callq 0x1ad9c8
movq 0x10(%rsp), %r14
jmp 0x2294d3
movl (%r12), %eax
xorl %r14d, %r14d
addl $-0x2, %eax
cmpl $0x19, %eax
ja 0x2294d3
leaq 0xa7895(%rip), %rcx     # 0x2d0e4c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x8(%r15), %rdi
movq %rsp, %rdx
movq %rbx, %rsi
callq 0x27b27c
jmp 0x2294d0
xorl %r14d, %r14d
jmp 0x2294d3
movq 0x8(%r15), %rdi
movq %rsp, %rdx
movq %rbx, %rsi
callq 0x27b6c0
jmp 0x2294d0
movq 0x8(%r15), %rdi
movq %rsp, %rdx
movq %rbx, %rsi
callq 0x27b570
jmp 0x2294d0
movq 0x8(%r15), %rdi
movq %rsp, %rdx
movq %rbx, %rsi
callq 0x27b3cc
jmp 0x2294d0
movq 0x8(%r15), %rdi
movq %rsp, %rdx
movq %rbx, %rsi
callq 0x27b66c
jmp 0x2294d0
movq 0x8(%r15), %rdi
movq %rsp, %rdx
movq %rbx, %rsi
callq 0x27b2d0
jmp 0x2294d0
movq 0x8(%r15), %rdi
movq %rsp, %rdx
movq %rbx, %rsi
callq 0x27b420
jmp 0x2294d0
movq 0x8(%r15), %rdi
movq %rsp, %rdx
movq %rbx, %rsi
callq 0x27b51c
jmp 0x2294d0
movq 0x8(%r15), %rdi
movq %rsp, %rdx
movq %rbx, %rsi
callq 0x27b378
jmp 0x2294d0
movq 0x8(%r15), %rdi
movq %rsp, %rdx
movq %rbx, %rsi
callq 0x27b324
jmp 0x2294d0
movq 0x8(%r15), %rdi
movq %rsp, %rdx
movq %rbx, %rsi
callq 0x27b474
jmp 0x2294d0
movq 0x8(%r15), %rdi
movq %rsp, %rdx
movq %rbx, %rsi
callq 0x27b4c8
jmp 0x2294d0
movq 0x8(%r15), %rdi
movq %rsp, %rdx
movq %rbx, %rsi
callq 0x27b714
jmp 0x2294d0
movq 0x8(%r15), %rdi
movq %rsp, %rdx
movq %rbx, %rsi
callq 0x27b768
jmp 0x2294d0
movq 0x8(%r15), %rdi
movq %rsp, %rdx
movq %rbx, %rsi
callq 0x27b618
jmp 0x2294d0
movq 0x8(%r15), %rdi
movq %rsp, %rdx
movq %rbx, %rsi
callq 0x27b5c4
jmp 0x2294d0
movq 0x8(%r15), %rdi
movq %rsp, %rdx
movq %rbx, %rsi
callq 0x27b810
jmp 0x2294d0
movq 0x8(%r15), %rdi
movq %rsp, %rdx
movq %rbx, %rsi
callq 0x27b7bc
jmp 0x2294d0
divsd 0x8(%rsp), %xmm0
movq %r14, %rdi
callq *%rax
jmp 0x2294d3