// File: /workspace/github_cpp_makefile_star2_O2/ArashPartow[P]exprtk/./exprtk.hpp
// Function: exprtk::parser<double>::expression_generator<double>::synthesize_cob_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[0])->value();

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

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

                  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[1]);

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

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

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

                        return cobnode;
                     }
                  }

                  if (operation == details::e_mul)
                  {
                     details::cob_base_node<Type>* cobnode = static_cast<details::cob_base_node<Type>*>(branch[1]);
                     details::operator_type cob_opr = cobnode->operation();

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

                        return cobnode;
                     }
                  }
                  else if (operation == details::e_div)
                  {
                     details::cob_base_node<Type>* cobnode = static_cast<details::cob_base_node<Type>*>(branch[1]);
                     details::operator_type cob_opr = cobnode->operation();

                     if (
                          (details::e_div == cob_opr) ||
                          (details::e_mul == cob_opr)
                        )
                     {
                        details::expression_node<Type>* new_cobnode = error_node();

                        switch (cob_opr)
                        {
                           case details::e_div : new_cobnode = expr_gen.node_allocator_->
                                                    template allocate_tt<typename details::cob_node<Type,details::mul_op<Type> > >
                                                       (c / cobnode->c(), cobnode->move_branch(0));
                                                 break;

                           case details::e_mul : new_cobnode = expr_gen.node_allocator_->
                                                    template allocate_tt<typename details::cob_node<Type,details::div_op<Type> > >
                                                       (c / cobnode->c(), cobnode->move_branch(0));
                                                 break;

                           default             : return error_node();
                        }

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

                        return new_cobnode;
                     }
                  }
               }
               #ifndef exprtk_disable_enhanced_features
               else if (details::is_sf3ext_node(branch[1]))
               {
                  expression_node_ptr result = error_node();

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

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

                     return result;
                  }
               }
               #endif

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

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

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdx, %rbx
movq %rsi, %r12
movq %rdi, %r14
movq (%rdx), %rax
movsd 0x20(%rax), %xmm0
movsd %xmm0, (%rsp)
movq 0x8(%rdi), %rdi
movq %rdx, %rsi
callq 0x1ad9c8
xorpd %xmm0, %xmm0
movsd (%rsp), %xmm1
ucomisd %xmm0, %xmm1
movl (%r12), %eax
jne 0x229022
jp 0x229022
cmpl $0x2, %eax
je 0x22903e
cmpl $0x5, %eax
je 0x228ffc
cmpl $0x4, %eax
jne 0x229052
movq 0x8(%r14), %rdi
addq $0x8, %rbx
movq %rbx, %rsi
callq 0x1ad9c8
leaq 0x8(%rsp), %rsi
andq $0x0, (%rsi)
movq %r14, %rdi
callq 0x1ad9fe
movq %rax, %r15
jmp 0x229042
ucomisd 0xa5196(%rip), %xmm1    # 0x2ce1c0
setnp %cl
sete %dl
andb %cl, %dl
cmpl $0x4, %eax
sete %al
andb %dl, %al
cmpb $0x1, %al
jne 0x229052
movq 0x8(%rbx), %r15
movq %r15, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0x8(%rbx), %rdi
addq $0x8, %rbx
callq 0x26d2c8
testb %al, %al
je 0x2290ae
movl (%r12), %ebp
cmpl $0x4, %ebp
je 0x229075
cmpl $0x2, %ebp
jne 0x2290fd
movq (%rbx), %r15
movq (%r15), %rax
movq %r15, %rdi
callq *0x38(%rax)
cmpl %eax, %ebp
movl (%r12), %ebp
jne 0x2290fd
cmpl $0x4, %ebp
je 0x2291ed
cmpl $0x2, %ebp
jne 0x229209
movq (%r15), %rax
movq %r15, %rdi
callq *0x40(%rax)
addsd (%rsp), %xmm0
jmp 0x2291fb
movq (%rbx), %rdi
movq (%rdi), %rax
callq *0x28(%rax)
addl $-0x6a, %eax
cmpl $0x4, %eax
ja 0x2291b4
leaq 0x8(%rsp), %rcx
andq $0x0, (%rcx)
movq %r14, %rdi
movsd (%rsp), %xmm0
movq %r12, %rsi
movq %rbx, %rdx
callq 0x270b00
testb %al, %al
je 0x2291b4
movq 0x8(%r14), %rdi
movq %rbx, %rsi
callq 0x1ad9c8
movq 0x8(%rsp), %r15
jmp 0x229042
cmpl $0x5, %ebp
je 0x229153
cmpl $0x4, %ebp
jne 0x2291b4
movq (%rbx), %r15
movq (%r15), %rax
movq %r15, %rdi
callq *0x38(%rax)
movl %eax, %ebp
andl $-0x2, %eax
cmpl $0x4, %eax
jne 0x2291b4
movq (%r15), %rax
movq %r15, %rdi
callq *0x40(%rax)
movq (%r15), %rax
movq 0x48(%rax), %rax
cmpl $0x5, %ebp
jne 0x229332
movsd (%rsp), %xmm1
mulsd %xmm0, %xmm1
movq %r15, %rdi
movapd %xmm1, %xmm0
jmp 0x22933a
movq (%rbx), %r15
movq (%r15), %rax
movq %r15, %rdi
callq *0x38(%rax)
movl %eax, %ebp
andl $-0x2, %eax
cmpl $0x4, %eax
jne 0x2291b4
movq 0x8(%r14), %r12
movq (%r15), %rax
movq %r15, %rdi
callq *0x40(%rax)
movsd (%rsp), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
leaq 0x8(%rsp), %rsi
cmpl $0x5, %ebp
jne 0x229341
andq $0x0, (%rsi)
movq (%r15), %rax
movq %r15, %rdi
callq *0x50(%rax)
movq %r12, %rdi
movsd (%rsp), %xmm0
movq %rax, %rsi
callq 0x26d3f4
jmp 0x22935e
movl (%r12), %eax
xorl %r15d, %r15d
addl $-0x2, %eax
cmpl $0x19, %eax
movsd (%rsp), %xmm0
ja 0x229042
leaq 0xa7bf9(%rip), %rcx     # 0x2d0dcc
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x8(%r14), %rdi
movq (%rbx), %rsi
callq 0x26d39e
jmp 0x22901d
movq (%r15), %rax
movq %r15, %rdi
callq *0x40(%rax)
mulsd (%rsp), %xmm0
movq (%r15), %rax
movq %r15, %rdi
callq *0x48(%rax)
jmp 0x229042
xorl %r15d, %r15d
jmp 0x229042
movq 0x8(%r14), %rdi
movq (%rbx), %rsi
callq 0x271026
jmp 0x22901d
movq 0x8(%r14), %rdi
movq (%rbx), %rsi
callq 0x270ece
jmp 0x22901d
movq 0x8(%r14), %rdi
movq (%rbx), %rsi
callq 0x270d20
jmp 0x22901d
movq 0x8(%r14), %rdi
movq (%rbx), %rsi
callq 0x270fd0
jmp 0x22901d
movq 0x8(%r14), %rdi
movq (%rbx), %rsi
callq 0x26d348
jmp 0x22901d
movq 0x8(%r14), %rdi
movq (%rbx), %rsi
callq 0x270d76
jmp 0x22901d
movq 0x8(%r14), %rdi
movq (%rbx), %rsi
callq 0x270e78
jmp 0x22901d
movq 0x8(%r14), %rdi
movq (%rbx), %rsi
callq 0x26d2f2
jmp 0x22901d
movq 0x8(%r14), %rdi
movq (%rbx), %rsi
callq 0x26d3f4
jmp 0x22901d
movq 0x8(%r14), %rdi
movq (%rbx), %rsi
callq 0x270dcc
jmp 0x22901d
movq 0x8(%r14), %rdi
movq (%rbx), %rsi
callq 0x270e22
jmp 0x22901d
movq 0x8(%r14), %rdi
movq (%rbx), %rsi
callq 0x27107c
jmp 0x22901d
movq 0x8(%r14), %rdi
movq (%rbx), %rsi
callq 0x2710d2
jmp 0x22901d
movq 0x8(%r14), %rdi
movq (%rbx), %rsi
callq 0x270f7a
jmp 0x22901d
movq 0x8(%r14), %rdi
movq (%rbx), %rsi
callq 0x270f24
jmp 0x22901d
movq 0x8(%r14), %rdi
movq (%rbx), %rsi
callq 0x27117e
jmp 0x22901d
movq 0x8(%r14), %rdi
movq (%rbx), %rsi
callq 0x271128
jmp 0x22901d
divsd (%rsp), %xmm0
movq %r15, %rdi
callq *%rax
jmp 0x229042
andq $0x0, (%rsi)
movq (%r15), %rax
movq %r15, %rdi
callq *0x50(%rax)
movq %r12, %rdi
movsd (%rsp), %xmm0
movq %rax, %rsi
callq 0x26d2f2
movq %rax, %r15
movq 0x8(%r14), %rdi
movq %rbx, %rsi
callq 0x1ad9c8
jmp 0x229042