// File: /workspace/github_cpp_makefile_star2_O2/ArashPartow[P]exprtk/./exprtk.hpp
// Function: exprtk::parser<double>::expression_generator<double>::for_loop(exprtk::details::expression_node<double>*&, exprtk::details::expression_node<double>*&, exprtk::details::expression_node<double>*&, exprtk::details::expression_node<double>*&, bool) const
inline expression_node_ptr for_loop(expression_node_ptr& initialiser,
                                             expression_node_ptr& condition,
                                             expression_node_ptr& incrementor,
                                             expression_node_ptr& loop_body,
                                             bool break_continue_present = false) const
         {
            if (
                 !break_continue_present              &&
                 !parser_->state_.return_stmt_present &&
                 details::is_constant_node(condition)
               )
            {
               expression_node_ptr result = error_node();

               if (details::is_true(condition))
               {
                  // Infinite loops are not allowed.

                  parser_->set_error(parser_error::make_error(
                     parser_error::e_parser,
                     parser_->current_state().token,
                     "ERR261 - Infinite loop condition without 'break' or 'return' not allowed in for-loop",
                     exprtk_error_location));

                  result = error_node();
               }
               else
                  result = node_allocator_->allocate<details::null_node<Type> >();

               details::free_node(*node_allocator_, initialiser);
               details::free_node(*node_allocator_, condition  );
               details::free_node(*node_allocator_, incrementor);
               details::free_node(*node_allocator_, loop_body  );

               return result;
            }
            else if (details::is_null_node(condition) || (0 == condition))
            {
               details::free_node(*node_allocator_, initialiser);
               details::free_node(*node_allocator_, condition  );
               details::free_node(*node_allocator_, incrementor);

               return loop_body;
            }

            loop_runtime_check_ptr rtc = get_loop_runtime_check(loop_runtime_check::e_for_loop);

            if (!break_continue_present)
            {
               if (rtc)
                  return node_allocator_->allocate<for_loop_rtc_node_t>
                                          (
                                             initialiser,
                                             condition,
                                             incrementor,
                                             loop_body,
                                             rtc
                                          );
               else
                  return node_allocator_->allocate<for_loop_node_t>
                                          (
                                             initialiser,
                                             condition,
                                             incrementor,
                                             loop_body
                                          );
            }
            #ifndef exprtk_disable_break_continue
            else
            {
               if (rtc)
                  return node_allocator_->allocate<for_loop_bc_rtc_node_t>
                                          (
                                             initialiser,
                                             condition,
                                             incrementor,
                                             loop_body,
                                             rtc
                                          );
               else
                  return node_allocator_->allocate<for_loop_bc_node_t>
                                          (
                                             initialiser,
                                             condition,
                                             incrementor,
                                             loop_body
                                          );
            }
            #else
            return error_node();
            #endif
         }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x158, %rsp            # imm = 0x158
movl %r9d, %ebp
movq %r8, %rbx
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r13
movq %rdi, %r12
testl %r9d, %r9d
jne 0x28cd5a
movq 0x68(%r12), %rax
cmpb $0x0, 0x3ab(%rax)
jne 0x28cd5a
movq (%r15), %rdi
callq 0x208267
testb %al, %al
je 0x28cd5a
movq (%r15), %rdi
movq (%rdi), %rax
callq *0x18(%rax)
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x28cc95
jnp 0x28ce0a
movq 0x68(%r12), %rbp
leaq 0x70(%rsp), %rdi
movq %rbp, %rsi
callq 0x2248d4
leaq 0x4ec83(%rip), %rsi     # 0x2db931
leaq 0x50(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x127016
leaq 0x10(%rsp), %rdi
movl $0x808b, %esi           # imm = 0x808B
callq 0x1f7a3c
leaq 0x4cf28(%rip), %rsi     # 0x2d9bfb
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rdx
callq 0x1b4349
leaq 0x80(%rsp), %rdx
leaq 0xb0(%rsp), %rdi
pushq $0x9
popq %rsi
leaq 0x50(%rsp), %rcx
leaq 0x30(%rsp), %r8
callq 0x1f7341
addq $0x308, %rbp            # imm = 0x308
leaq 0xb0(%rsp), %rsi
movq %rbp, %rdi
callq 0x1f76ce
leaq 0xb0(%rsp), %rdi
callq 0x1f5c4c
leaq 0x30(%rsp), %rdi
callq 0x118648
leaq 0x10(%rsp), %rdi
callq 0x118648
leaq 0x50(%rsp), %rdi
callq 0x118648
leaq 0x88(%rsp), %rdi
callq 0x118648
xorl %ebp, %ebp
jmp 0x28ce17
movq (%r15), %rdi
testq %rdi, %rdi
je 0x28cdaa
movq (%rdi), %rax
callq *0x28(%rax)
cmpl $0x1, %eax
je 0x28cdaa
cmpq $0x0, (%r15)
je 0x28cdaa
movq 0x68(%r12), %rax
movq 0x8d8(%rax), %rax
testq %rax, %rax
je 0x28cd8a
testb $0x1, 0x8(%rax)
jne 0x28cddd
movq 0x8(%r12), %rdi
movq %r13, %rsi
movq %r15, %rdx
movq %r14, %rcx
movq %rbx, %r8
testb %bpl, %bpl
je 0x28cdd6
callq 0x28da5a
jmp 0x28ce52
movq 0x8(%r12), %rdi
movq %r13, %rsi
callq 0x1ad9c8
movq 0x8(%r12), %rdi
movq %r15, %rsi
callq 0x1ad9c8
movq 0x8(%r12), %rdi
movq %r14, %rsi
callq 0x1ad9c8
movq (%rbx), %rbp
jmp 0x28ce55
callq 0x28d978
jmp 0x28ce52
movq %rax, 0xb0(%rsp)
movq 0x8(%r12), %rdi
leaq 0xb0(%rsp), %r9
movq %r13, %rsi
movq %r15, %rdx
movq %r14, %rcx
movq %rbx, %r8
testb %bpl, %bpl
je 0x28ce4d
callq 0x28d9e0
jmp 0x28ce52
movq 0x8(%r12), %rdi
callq 0x208182
movq %rax, %rbp
movq 0x8(%r12), %rdi
movq %r13, %rsi
callq 0x1ad9c8
movq 0x8(%r12), %rdi
movq %r15, %rsi
callq 0x1ad9c8
movq 0x8(%r12), %rdi
movq %r14, %rsi
callq 0x1ad9c8
movq 0x8(%r12), %rdi
movq %rbx, %rsi
callq 0x1ad9c8
jmp 0x28ce55
callq 0x28d8fe
movq %rax, %rbp
movq %rbp, %rax
addq $0x158, %rsp            # imm = 0x158
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0xb0(%rsp), %rdi
callq 0x1f5c4c
jmp 0x28ce7f
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x118648
jmp 0x28ce8e
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x118648
jmp 0x28ce9d
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x118648
jmp 0x28ceac
movq %rax, %rbx
leaq 0x88(%rsp), %rdi
callq 0x118648
movq %rbx, %rdi
callq 0x118360
nop