// File: /workspace/github_cpp_makefile_star2_O3/ArashPartow[P]exprtk-extras/exprtk_pyramid.cpp
// Function: void pyramid<double>()
void pyramid()
{
   typedef exprtk::symbol_table<T> symbol_table_t;
   typedef exprtk::expression<T>   expression_t;
   typedef exprtk::parser<T>       parser_t;

   exprtk::rtl::io::package<T> io_package;

   symbol_table_t symbol_table;

   symbol_table.add_package(io_package);

   const std::string pyramid_program =
      " const var n := 30;                           "
      "                                              "
      " for (var i := 0; i < n; i += 1)              "
      " {                                            "
      "    for (var j := 0; j < n - i - 1; j += 1)   "
      "    {                                         "
      "       print(' ');                            "
      "    };                                        "
      "                                              "
      "    for (var j := 0; j < 2 * i + 1; j += 1)   "
      "    {                                         "
      "       print('*');                            "
      "    };                                        "
      "                                              "
      "    println();                                "
      " }                                            ";

   expression_t expression;
   expression.register_symbol_table(symbol_table);

   parser_t parser;
   parser.compile(pyramid_program,expression);

   expression.value();
}

// Assembly:
pushq %r14
pushq %rbx
subq $0xb98, %rsp            # imm = 0xB98
leaq 0x50(%rsp), %rdi
callq 0x117600
leaq 0x8(%rsp), %rdi
movl $0x1, %esi
callq 0x1176e0
leaq 0x50(%rsp), %rdi
leaq 0x8(%rsp), %rbx
movq %rbx, %rsi
callq 0x11a116
leaq 0x40(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x18e61f(%rip), %rsi    # 0x2a5939
leaq 0x18e8f8(%rip), %rdx    # 0x2a5c19
leaq 0x30(%rsp), %rdi
callq 0x11756a
leaq 0x10(%rsp), %rdi
callq 0x117728
movq 0x18(%rsp), %rax
movq 0x20(%rsp), %rcx
subq %rax, %rcx
je 0x117368
sarq $0x3, %rcx
movq 0x8(%rsp), %rdx
cmpq $0x1, %rcx
adcq $0x0, %rcx
cmpq %rbx, %rax
je 0x117377
cmpq (%rax), %rdx
je 0x117377
addq $0x8, %rax
decq %rcx
jne 0x117355
leaq 0x18(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x11c04c
leaq 0x120(%rsp), %rdi
movl $0x7f, %esi
callq 0x1177b4
leaq 0x270(%rsp), %rdi
leaq 0x120(%rsp), %rsi
callq 0x1178b4
leaq 0x220(%rsp), %rdi
callq 0x11c24e
leaq 0x1f0(%rsp), %rdi
callq 0x11c24e
leaq 0x1c0(%rsp), %rdi
callq 0x11c24e
leaq 0x190(%rsp), %rdi
callq 0x11c24e
leaq 0x160(%rsp), %rdi
callq 0x11c24e
leaq 0x130(%rsp), %rdi
callq 0x11c24e
leaq 0x270(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0x10(%rsp), %rdx
callq 0x1180d8
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rdi
movq (%rdi), %rax
callq *0x18(%rax)
leaq 0x270(%rsp), %rdi
callq 0x118c74
leaq 0x10(%rsp), %rdi
callq 0x118f36
movq 0x30(%rsp), %rdi
cmpq %r14, %rdi
je 0x117440
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x114090
leaq 0x8(%rsp), %rdi
callq 0x118f84
leaq 0x110(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x11746b
movq 0x110(%rsp), %rsi
incq %rsi
callq 0x114090
leaq 0x284146(%rip), %rbx    # 0x39b5b8
leaq 0xe8(%rsp), %rax
movq %rbx, -0x30(%rax)
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x117497
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x114090
leaq 0xa8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1174b8
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x114090
leaq 0x80(%rsp), %rax
movq %rbx, -0x30(%rax)
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1174dd
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x114090
addq $0xb98, %rsp            # imm = 0xB98
popq %rbx
popq %r14
retq
jmp 0x1174fc
movq %rax, %rbx
leaq 0x120(%rsp), %rdi
callq 0x118090
jmp 0x117522
movq %rax, %rbx
jmp 0x117522
movq %rax, %rbx
jmp 0x11752c
jmp 0x117508
movq %rax, %rbx
jmp 0x117543
movq %rax, %rbx
jmp 0x11754d
movq %rax, %rbx
leaq 0x270(%rsp), %rdi
callq 0x118c74
leaq 0x10(%rsp), %rdi
callq 0x118f36
movq 0x30(%rsp), %rdi
cmpq %r14, %rdi
je 0x117543
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x114090
leaq 0x8(%rsp), %rdi
callq 0x118f84
leaq 0x50(%rsp), %rdi
callq 0x11901a
movq %rbx, %rdi
callq 0x1142e0