// File: ArashPartow[P]exprtk/./exprtk.hpp
// Function: exprtk::parser<double>::expression_generator<double>::while_loop(exprtk::details::expression_node<double>*&, exprtk::details::expression_node<double>*&, bool) const
inline expression_node_ptr while_loop(expression_node_ptr& condition,
                                               expression_node_ptr& branch,
                                               const 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,
                     "ERR260 - Infinite loop condition without 'break' or 'return' not allowed in while-loops",
                     exprtk_error_location));

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

               details::free_node(*node_allocator_, condition);
               details::free_node(*node_allocator_, branch   );

               return result;
            }
            else if (details::is_null_node(condition))
            {
               details::free_node(*node_allocator_,condition);

               return branch;
            }

            loop_runtime_check_ptr rtc = get_loop_runtime_check(loop_runtime_check::e_while_loop);

            if (!break_continue_present)
            {
               if (rtc)
                  return node_allocator_->allocate<while_loop_rtc_node_t>
                           (condition, branch,  rtc);
               else
                  return node_allocator_->allocate<while_loop_node_t>
                           (condition, branch);
            }
            #ifndef exprtk_disable_break_continue
            else
            {
               if (rtc)
                  return node_allocator_->allocate<while_loop_bc_rtc_node_t>
                           (condition, branch, rtc);
               else
                  return node_allocator_->allocate<while_loop_bc_node_t>
                           (condition, branch);
            }
            #else
               return error_node();
            #endif
         }

// Assembly:
subq $0x1b8, %rsp            # imm = 0x1B8
movb %cl, %al
movq %rdi, 0x1a8(%rsp)
movq %rsi, 0x1a0(%rsp)
movq %rdx, 0x198(%rsp)
andb $0x1, %al
movb %al, 0x197(%rsp)
movq 0x1a8(%rsp), %rax
movq %rax, 0x18(%rsp)
testb $0x1, 0x197(%rsp)
jne 0x4e5e53
movq 0x18(%rsp), %rax
movq 0x68(%rax), %rax
testb $0x1, 0x3ab(%rax)
jne 0x4e5e53
movq 0x1a0(%rsp), %rax
movq (%rax), %rdi
callq 0x39cbf0
testb $0x1, %al
jne 0x4e5c34
jmp 0x4e5e53
callq 0x2821f0
movq %rax, 0x188(%rsp)
movq 0x1a0(%rsp), %rax
movq (%rax), %rdi
callq 0x39d260
testb $0x1, %al
jne 0x4e5c5a
jmp 0x4e5dfc
movq 0x18(%rsp), %rax
movq 0x68(%rax), %rsi
movq %rsi, (%rsp)
leaq 0xa0(%rsp), %rdi
callq 0x3dc450
leaq 0xb0(%rsp), %rax
movq %rax, 0x8(%rsp)
leaq 0x7f(%rsp), %rdi
movq %rdi, 0x10(%rsp)
callq 0x11b6f0
movq 0x10(%rsp), %rdx
leaq 0xc2ae7(%rip), %rsi     # 0x5a8783
leaq 0x80(%rsp), %rdi
callq 0x134520
jmp 0x4e5cab
leaq 0x28(%rsp), %rdi
movl $0x8012, %esi           # imm = 0x8012
callq 0x371f20
jmp 0x4e5cbc
leaq 0xc1250(%rip), %rsi     # 0x5a6f13
leaq 0x48(%rsp), %rdi
leaq 0x28(%rsp), %rdx
callq 0x29dd70
jmp 0x4e5cd4
movq 0x8(%rsp), %rdx
leaq 0xe0(%rsp), %rdi
movl $0x9, %esi
leaq 0x80(%rsp), %rcx
leaq 0x48(%rsp), %r8
callq 0x3741e0
jmp 0x4e5cfa
movq (%rsp), %rdi
leaq 0xe0(%rsp), %rsi
callq 0x371e40
jmp 0x4e5d0d
leaq 0xe0(%rsp), %rdi
callq 0x371330
leaq 0x48(%rsp), %rdi
callq 0x11b838
leaq 0x28(%rsp), %rdi
callq 0x11b838
leaq 0x80(%rsp), %rdi
callq 0x11b838
leaq 0x7f(%rsp), %rdi
callq 0x11b820
leaq 0xa0(%rsp), %rdi
callq 0x3706b0
callq 0x2821f0
movq %rax, 0x188(%rsp)
jmp 0x4e5e12
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x70(%rsp)
movl %eax, 0x6c(%rsp)
jmp 0x4e5de0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x70(%rsp)
movl %eax, 0x6c(%rsp)
jmp 0x4e5dd3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x70(%rsp)
movl %eax, 0x6c(%rsp)
jmp 0x4e5dc9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x70(%rsp)
movl %eax, 0x6c(%rsp)
jmp 0x4e5dbf
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x70(%rsp)
movl %eax, 0x6c(%rsp)
leaq 0xe0(%rsp), %rdi
callq 0x371330
leaq 0x48(%rsp), %rdi
callq 0x11b838
leaq 0x28(%rsp), %rdi
callq 0x11b838
leaq 0x80(%rsp), %rdi
callq 0x11b838
leaq 0x7f(%rsp), %rdi
callq 0x11b820
leaq 0xa0(%rsp), %rdi
callq 0x3706b0
jmp 0x4e5f82
movq 0x18(%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x39c7b0
movq %rax, 0x188(%rsp)
movq 0x18(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x1a0(%rsp), %rsi
callq 0x284bd0
movq 0x18(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x198(%rsp), %rsi
callq 0x284bd0
movq 0x188(%rsp), %rax
movq %rax, 0x1b0(%rsp)
jmp 0x4e5f72
movq 0x1a0(%rsp), %rax
movq (%rax), %rdi
callq 0x3af620
testb $0x1, %al
jne 0x4e5e69
jmp 0x4e5e97
movq 0x18(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x1a0(%rsp), %rsi
callq 0x284bd0
movq 0x198(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x1b0(%rsp)
jmp 0x4e5f72
jmp 0x4e5e99
movq 0x18(%rsp), %rdi
movl $0x2, %esi
callq 0x4e6830
movq %rax, 0x20(%rsp)
testb $0x1, 0x197(%rsp)
jne 0x4e5f17
cmpq $0x0, 0x20(%rsp)
je 0x4e5eef
movq 0x18(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x1a0(%rsp), %rsi
movq 0x198(%rsp), %rdx
leaq 0x20(%rsp), %rcx
callq 0x4e68a0
movq %rax, 0x1b0(%rsp)
jmp 0x4e5f72
movq 0x18(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x1a0(%rsp), %rsi
movq 0x198(%rsp), %rdx
callq 0x4e6940
movq %rax, 0x1b0(%rsp)
jmp 0x4e5f72
cmpq $0x0, 0x20(%rsp)
je 0x4e5f4c
movq 0x18(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x1a0(%rsp), %rsi
movq 0x198(%rsp), %rdx
leaq 0x20(%rsp), %rcx
callq 0x4e69d0
movq %rax, 0x1b0(%rsp)
jmp 0x4e5f72
movq 0x18(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x1a0(%rsp), %rsi
movq 0x198(%rsp), %rdx
callq 0x4e6a70
movq %rax, 0x1b0(%rsp)
movq 0x1b0(%rsp), %rax
addq $0x1b8, %rsp            # imm = 0x1B8
retq
movq 0x70(%rsp), %rdi
callq 0x11b4e0
nopl (%rax)