// File: /workspace/github_cpp_makefile_star2_O1/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, %r14
movq 0x8(%rdx), %rdi
movsd 0x20(%rdi), %xmm0
movsd %xmm0, (%rsp)
testq %rdi, %rdi
je 0x2bab86
movq (%rdi), %rax
callq *0x28(%rax)
cmpl $0x11, %eax
je 0x2bab86
leaq 0x8(%rbx), %r15
movq (%r15), %rdi
testq %rdi, %rdi
je 0x2bab7e
movq (%rdi), %rax
callq *0x28(%rax)
cmpl $0x12, %eax
je 0x2bab86
movq %r15, %rdi
callq 0x1f1690
movsd (%rsp), %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x2baca5
jp 0x2baca5
cmpl $0x4, (%r12)
jne 0x2bac08
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x2babd4
movq (%rdi), %rax
callq *0x28(%rax)
cmpl $0x11, %eax
je 0x2babd4
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x2babcc
movq (%rdi), %rax
callq *0x28(%rax)
cmpl $0x12, %eax
je 0x2babd4
movq %rbx, %rdi
callq 0x1f1690
movl $0x28, %edi
callq 0x1200f0
movq %rax, %r15
movb $0x0, 0x10(%rax)
xorpd %xmm0, %xmm0
movupd %xmm0, 0x18(%rax)
leaq 0x256693(%rip), %rax    # 0x511288
movq %rax, (%r15)
leaq 0x2566d1(%rip), %rax    # 0x5112d0
movq %rax, 0x8(%r15)
jmp 0x2bafa7
ucomisd %xmm1, %xmm0
jne 0x2baca5
jp 0x2baca5
cmpl $0x5, (%r12)
jne 0x2bac8e
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x2bac4d
movq (%rdi), %rax
callq *0x28(%rax)
cmpl $0x11, %eax
je 0x2bac4d
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x2bac45
movq (%rdi), %rax
callq *0x28(%rax)
cmpl $0x12, %eax
je 0x2bac4d
movq %rbx, %rdi
callq 0x1f1690
movl $0x28, %edi
callq 0x1200f0
movq %rax, %r15
movb $0x0, 0x10(%rax)
movq $0x0, 0x18(%rax)
leaq 0x25661b(%rip), %rax    # 0x511288
movq %rax, (%r15)
leaq 0x256659(%rip), %rax    # 0x5112d0
movq %rax, 0x8(%r15)
movabsq $0x7ff8000000000000, %rax # imm = 0x7FF8000000000000
movq %rax, 0x20(%r15)
jmp 0x2bafa7
ucomisd %xmm1, %xmm0
jne 0x2baca5
jp 0x2baca5
cmpl $0x2, (%r12)
jne 0x2baca5
movq (%rbx), %r15
jmp 0x2bafa7
ucomisd 0xf7373(%rip), %xmm0    # 0x3b2020
movq (%rbx), %r15
jne 0x2bacbf
jp 0x2bacbf
cmpl $0x4, (%r12)
je 0x2bafa7
testq %r15, %r15
je 0x2bad4b
leaq 0x254761(%rip), %rsi    # 0x50f430
leaq 0x29e912(%rip), %rdx    # 0x5595e8
movq %r15, %rdi
xorl %ecx, %ecx
callq 0x1204f0
testq %rax, %rax
je 0x2bad4b
movl (%r12), %r13d
leal -0x2(%r13), %eax
cmpl $0x5, %eax
ja 0x2bad4b
leaq 0xf9bc3(%rip), %rcx     # 0x3b48bc
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq (%r15), %rax
movq %r15, %rdi
callq *0x38(%rax)
movl %eax, %ebp
cmpl %eax, %r13d
jne 0x2bafe1
movl (%r12), %eax
cmpl $0x4, %eax
je 0x2bafb9
cmpl $0x2, %eax
jne 0x2bafde
movsd (%rsp), %xmm0
movsd %xmm0, 0x8(%rsp)
movq (%r15), %rax
movq %r15, %rdi
callq *0x40(%rax)
addsd 0x8(%rsp), %xmm0
jmp 0x2bafd3
movq (%rbx), %rdi
movq (%rdi), %rax
callq *0x28(%rax)
addl $-0x6a, %eax
cmpl $0x4, %eax
ja 0x2badbd
leaq 0x10(%rsp), %rcx
movq $0x0, (%rcx)
movsd (%rsp), %xmm0
movq %r14, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x32934e
movl %eax, %ebp
testb %al, %al
je 0x2badb4
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x2badaf
movq (%rdi), %rax
callq *0x28(%rax)
cmpl $0x11, %eax
je 0x2badaf
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x2bada7
movq (%rdi), %rax
callq *0x28(%rax)
cmpl $0x12, %eax
je 0x2badaf
movq %rbx, %rdi
callq 0x1f1690
movq 0x10(%rsp), %r15
testb %bpl, %bpl
jne 0x2bafa7
movl (%r12), %eax
xorl %r15d, %r15d
addl $-0x2, %eax
cmpl $0x19, %eax
ja 0x2bafa7
leaq 0xf9afd(%rip), %rcx     # 0x3b48d4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x8(%r14), %rdi
movq %rsp, %rdx
movq %rbx, %rsi
callq 0x329a8c
jmp 0x2bafa4
movq (%r15), %rax
movq %r15, %rdi
callq *0x38(%rax)
cmpl $0x7, %eax
jne 0x2bad4b
movq (%r15), %rax
movq %r15, %rdi
callq *0x40(%rax)
mulsd (%rsp), %xmm0
movq (%r15), %rax
movq %r15, %rdi
callq *0x48(%rax)
jmp 0x2bafa7
movq (%r15), %rax
movq %r15, %rdi
callq *0x38(%rax)
movl %eax, %ebp
andl $-0x2, %ebp
cmpl $0x4, %ebp
jne 0x2bb008
cmpl $0x4, %eax
je 0x2bafec
cmpl $0x5, %eax
jne 0x2bb005
movsd (%rsp), %xmm0
movsd %xmm0, 0x8(%rsp)
movq (%r15), %rax
movq %r15, %rdi
callq *0x40(%rax)
mulsd 0x8(%rsp), %xmm0
jmp 0x2baffa
movq 0x8(%r14), %rdi
movq %rsp, %rdx
movq %rbx, %rsi
callq 0x329f04
jmp 0x2bafa4
movq 0x8(%r14), %rdi
movq %rsp, %rdx
movq %rbx, %rsi
callq 0x329da4
jmp 0x2bafa4
movq 0x8(%r14), %rdi
movq %rsp, %rdx
movq %rbx, %rsi
callq 0x329bec
jmp 0x2bafa4
movq 0x8(%r14), %rdi
movq %rsp, %rdx
movq %rbx, %rsi
callq 0x329eac
jmp 0x2bafa4
movq 0x8(%r14), %rdi
movq %rsp, %rdx
movq %rbx, %rsi
callq 0x329ae4
jmp 0x2bafa4
movq 0x8(%r14), %rdi
movq %rsp, %rdx
movq %rbx, %rsi
callq 0x329c44
jmp 0x2bafa4
movq 0x8(%r14), %rdi
movq %rsp, %rdx
movq %rbx, %rsi
callq 0x329d4c
jmp 0x2bafa4
movq 0x8(%r14), %rdi
movq %rsp, %rdx
movq %rbx, %rsi
callq 0x329b94
jmp 0x2bafa4
movq 0x8(%r14), %rdi
movq %rsp, %rdx
movq %rbx, %rsi
callq 0x329b3c
jmp 0x2bafa4
movq 0x8(%r14), %rdi
movq %rsp, %rdx
movq %rbx, %rsi
callq 0x329c9c
jmp 0x2bafa4
movq 0x8(%r14), %rdi
movq %rsp, %rdx
movq %rbx, %rsi
callq 0x329cf4
jmp 0x2bafa4
movq 0x8(%r14), %rdi
movq %rsp, %rdx
movq %rbx, %rsi
callq 0x329f5c
jmp 0x2bafa4
movq 0x8(%r14), %rdi
movq %rsp, %rdx
movq %rbx, %rsi
callq 0x329fb4
jmp 0x2bafa4
movq 0x8(%r14), %rdi
movq %rsp, %rdx
movq %rbx, %rsi
callq 0x329e54
jmp 0x2bafa4
movq 0x8(%r14), %rdi
movq %rsp, %rdx
movq %rbx, %rsi
callq 0x329dfc
jmp 0x2bafa4
movq 0x8(%r14), %rdi
movq %rsp, %rdx
movq %rbx, %rsi
callq 0x32a064
jmp 0x2bafa4
movq 0x8(%r14), %rdi
movq %rsp, %rdx
movq %rbx, %rsi
callq 0x32a00c
movq %rax, %r15
movq %r15, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movsd (%rsp), %xmm0
movsd %xmm0, 0x8(%rsp)
movq (%r15), %rax
movq %r15, %rdi
callq *0x40(%rax)
mulsd 0x8(%rsp), %xmm0
movq (%r15), %rax
movq %r15, %rdi
callq *0x48(%rax)
jmp 0x2bafe1
xorl %r15d, %r15d
cmpl %ebp, %r13d
jne 0x2bad4b
jmp 0x2bafa7
movq (%r15), %rax
movq %r15, %rdi
callq *0x40(%rax)
divsd (%rsp), %xmm0
movq (%r15), %rax
movq %r15, %rdi
callq *0x48(%rax)
jmp 0x2bb008
xorl %r15d, %r15d
cmpl $0x4, %ebp
jne 0x2bad4b
jmp 0x2bafa7
nop