// File: /workspace/github_cpp_makefile_star2_O1/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 0x11967c
leaq 0x8(%rsp), %rdi
movl $0x1, %esi
callq 0x11975c
leaq 0x50(%rsp), %rdi
leaq 0x8(%rsp), %rbx
movq %rbx, %rsi
callq 0x11bfc4
leaq 0x40(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x1b054e(%rip), %rsi    # 0x2c98c1
leaq 0x1b0827(%rip), %rdx    # 0x2c9ba1
leaq 0x30(%rsp), %rdi
callq 0x1195ec
leaq 0x10(%rsp), %rdi
callq 0x1197a4
movq 0x18(%rsp), %rcx
movq 0x20(%rsp), %rax
subq %rcx, %rax
je 0x1193ea
sarq $0x3, %rax
cmpq $0x1, %rax
movq %rax, %rsi
adcq $0x0, %rsi
cmpq %rbx, %rcx
je 0x1193f9
movq 0x8(%rsp), %rdx
cmpq (%rcx), %rdx
je 0x1193f9
addq $0x8, %rcx
movl $0x1, %edi
subq %rsi, %rdi
xorl %esi, %esi
cmpq %rsi, %rdi
je 0x1193ea
decq %rsi
cmpq %rbx, %rcx
je 0x1193e2
leaq 0x8(%rcx), %r8
cmpq (%rcx), %rdx
movq %r8, %rcx
jne 0x1193c9
negq %rsi
cmpq %rax, %rsi
jb 0x1193f9
leaq 0x18(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x11e7b4
leaq 0x120(%rsp), %rdi
movl $0x7f, %esi
callq 0x11983e
leaq 0x270(%rsp), %rdi
leaq 0x120(%rsp), %rsi
callq 0x11993e
leaq 0x220(%rsp), %rdi
callq 0x11e9b6
leaq 0x1f0(%rsp), %rdi
callq 0x11e9b6
leaq 0x1c0(%rsp), %rdi
callq 0x11e9b6
leaq 0x190(%rsp), %rdi
callq 0x11e9b6
leaq 0x160(%rsp), %rdi
callq 0x11e9b6
leaq 0x130(%rsp), %rdi
callq 0x11e9b6
leaq 0x270(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0x10(%rsp), %rdx
callq 0x11a162
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rdi
movq (%rdi), %rax
callq *0x18(%rax)
leaq 0x270(%rsp), %rdi
callq 0x11ab34
leaq 0x10(%rsp), %rdi
callq 0x11adf6
movq 0x30(%rsp), %rdi
cmpq %r14, %rdi
je 0x1194c2
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x116090
leaq 0x8(%rsp), %rdi
callq 0x11ae44
leaq 0x110(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1194ed
movq 0x110(%rsp), %rsi
incq %rsi
callq 0x116090
leaq 0x2b54cc(%rip), %rbx    # 0x3ce9c0
leaq 0xe8(%rsp), %rax
movq %rbx, -0x30(%rax)
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x119519
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x116090
leaq 0xa8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x11953a
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x116090
leaq 0x80(%rsp), %rax
movq %rbx, -0x30(%rax)
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x11955f
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x116090
addq $0xb98, %rsp            # imm = 0xB98
popq %rbx
popq %r14
retq
jmp 0x11957e
movq %rax, %rbx
leaq 0x120(%rsp), %rdi
callq 0x11a11a
jmp 0x1195a4
movq %rax, %rbx
jmp 0x1195a4
movq %rax, %rbx
jmp 0x1195ae
jmp 0x11958a
movq %rax, %rbx
jmp 0x1195c5
movq %rax, %rbx
jmp 0x1195cf
movq %rax, %rbx
leaq 0x270(%rsp), %rdi
callq 0x11ab34
leaq 0x10(%rsp), %rdi
callq 0x11adf6
movq 0x30(%rsp), %rdi
cmpq %r14, %rdi
je 0x1195c5
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x116090
leaq 0x8(%rsp), %rdi
callq 0x11ae44
leaq 0x50(%rsp), %rdi
callq 0x11aeda
movq %rbx, %rdi
callq 0x1162e0