LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/hyrise[P]sql-parser/src/sql/statements.cpp
// Function: hsql::SetOperation::~SetOperation()
SetOperation::~SetOperation() {
  delete nestedSelectStatement;
  delete resultLimit;

  if (resultOrder) {
    for (OrderDescription* desc : *resultOrder) {
      delete desc;
    }
    delete resultOrder;
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x19c5c(%rip), %rax     # 0x3afb8
addq $0x10, %rax
movq %rax, (%rdi)
movq 0x10(%rdi), %rdi
testq %rdi, %rdi
je 0x21372
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x20(%rbx), %rdi
testq %rdi, %rdi
je 0x21381
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x18(%rbx), %r14
testq %r14, %r14
je 0x213cf
movq (%r14), %r15
movq 0x8(%r14), %r12
cmpq %r12, %r15
je 0x213b9
movq (%r15), %rdi
testq %rdi, %rdi
je 0x213a4
movq (%rdi), %rax
callq *0x8(%rax)
addq $0x8, %r15
cmpq %r12, %r15
jne 0x21396
movq 0x18(%rbx), %r14
testq %r14, %r14
je 0x213db
movq (%r14), %r15
testq %r15, %r15
je 0x213de
movq 0x10(%r14), %rsi
subq %r15, %rsi
movq %r15, %rdi
callq 0x12990
jmp 0x213de
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
xorl %r14d, %r14d
movl $0x18, %esi
movq %r14, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x12990
// File: /workspace/github_cpp_makefile_star2_O3/hyrise[P]sql-parser/src/util/sqlhelper.cpp
// Function: hsql::printTableRefInfo(hsql::TableRef*, unsigned long)
void printTableRefInfo(TableRef* table, uintmax_t num_indent) {
  switch (table->type) {
    case kTableName:
      inprint(table->name, num_indent);
      if (table->schema) {
        inprint("Schema", num_indent + 1);
        inprint(table->schema, num_indent + 2);
      }
      break;
    case kTableSelect:
      printSelectStatementInfo(table->select, num_indent);
      break;
    case kTableJoin:
      inprint("Join Table", num_indent);
      inprint("Left", num_indent + 1);
      printTableRefInfo(table->join->left, num_indent + 2);
      inprint("Right", num_indent + 1);
      printTableRefInfo(table->join->right, num_indent + 2);
      inprint("Join Condition", num_indent + 1);
      printExpression(table->join->condition, num_indent + 2);
      break;
    case kTableCrossProduct:
      for (TableRef* tbl : *table->list) printTableRefInfo(tbl, num_indent);
      break;
  }

  if (table->alias) {
    printAlias(table->alias, num_indent);
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movl 0x8(%rdi), %eax
cmpq $0x3, %rax
ja 0x22433
leaq 0x110c2(%rip), %rcx     # 0x33410
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x18(%r14), %rdi
movq %rbx, %rsi
callq 0x13090
cmpq $0x0, 0x10(%r14)
je 0x22433
leaq 0x1(%rbx), %rsi
leaq 0x11179(%rip), %rdi     # 0x334f2
callq 0x13090
movq 0x10(%r14), %rdi
leaq 0x2(%rbx), %rsi
callq 0x13090
jmp 0x22433
leaq 0x11162(%rip), %rdi     # 0x334f9
movq %rbx, %rsi
callq 0x13090
leaq 0x1(%rbx), %r15
leaq 0x1115a(%rip), %rdi     # 0x33504
movq %r15, %rsi
callq 0x13090
movq 0x38(%r14), %rax
movq 0x8(%rax), %rdi
leaq 0x2(%rbx), %r12
movq %r12, %rsi
callq 0x12c10
leaq 0x1113c(%rip), %rdi     # 0x33509
movq %r15, %rsi
callq 0x13090
movq 0x38(%r14), %rax
movq 0x10(%rax), %rdi
movq %r12, %rsi
callq 0x12c10
leaq 0x11123(%rip), %rdi     # 0x3350f
movq %r15, %rsi
callq 0x13090
movq 0x38(%r14), %rax
movq 0x18(%rax), %rdi
movq %r12, %rsi
callq 0x12800
jmp 0x22433
movq 0x30(%r14), %rax
movq (%rax), %r15
movq 0x8(%rax), %r12
cmpq %r12, %r15
je 0x22433
movq (%r15), %rdi
movq %rbx, %rsi
callq 0x12c10
addq $0x8, %r15
jmp 0x22411
movq 0x28(%r14), %rdi
movq %rbx, %rsi
callq 0x12540
movq 0x20(%r14), %rdi
testq %rdi, %rdi
je 0x2244f
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x12210
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/hyrise[P]sql-parser/src/util/sqlhelper.cpp
// Function: hsql::printAlias(hsql::Alias*, unsigned long)
void printAlias(Alias* alias, uintmax_t num_indent) {
  inprint("Alias", num_indent + 1);
  inprint(alias->name, num_indent + 2);

  if (alias->columns) {
    for (char* column : *(alias->columns)) {
      inprint(column, num_indent + 3);
    }
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
incq %rsi
leaq 0x10a8d(%rip), %rdi     # 0x3351e
callq 0x13090
movq (%r14), %rdi
leaq 0x2(%rbx), %rsi
callq 0x13090
movq 0x8(%r14), %rax
testq %rax, %rax
je 0x22acf
movq (%rax), %r14
movq 0x8(%rax), %r15
cmpq %r15, %r14
je 0x22acf
addq $0x3, %rbx
movq (%r14), %rdi
movq %rbx, %rsi
callq 0x13090
addq $0x8, %r14
cmpq %r15, %r14
jne 0x22abb
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/hyrise[P]sql-parser/src/util/sqlhelper.cpp
// Function: hsql::printOperatorExpression(hsql::Expr*, unsigned long)
void printOperatorExpression(Expr* expr, uintmax_t num_indent) {
  if (expr == nullptr) {
    inprint("null", num_indent);
    return;
  }

  inprint(expr->opType, num_indent);

  printExpression(expr->expr, num_indent + 1);
  if (expr->expr2) {
    printExpression(expr->expr2, num_indent + 1);
  } else if (expr->exprList) {
    for (Expr* e : *expr->exprList) printExpression(e, num_indent + 1);
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
testq %rdi, %rdi
je 0x22b19
movq %rdi, %r14
addq $0x8c, %rdi
movq %rbx, %rsi
callq 0x12ed0
movq 0x10(%r14), %rdi
incq %rbx
movq %rbx, %rsi
callq 0x12800
movq 0x18(%r14), %rdi
testq %rdi, %rdi
je 0x22b2d
movq %rbx, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0x12800
leaq 0x10a04(%rip), %rdi     # 0x33524
movq %rbx, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0x13090
movq 0x20(%r14), %rax
testq %rax, %rax
je 0x22b53
movq (%rax), %r14
movq 0x8(%rax), %r15
cmpq %r15, %r14
je 0x22b53
movq (%r14), %rdi
movq %rbx, %rsi
callq 0x12800
addq $0x8, %r14
jmp 0x22b3d
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/hyrise[P]sql-parser/src/util/sqlhelper.cpp
// Function: hsql::printWindowDescription(hsql::WindowDescription*, unsigned long)
void printWindowDescription(WindowDescription* window_description, uintmax_t num_indent) {
  inprint("OVER", num_indent);
  if (window_description->partitionList) {
    inprint("PARTITION BY", num_indent + 1);
    for (const auto e : *window_description->partitionList) {
      printExpression(e, num_indent + 2);
    }
  }

  if (window_description->orderList) {
    inprint("ORDER BY", num_indent + 1);
    printOrderBy(window_description->orderList, num_indent + 2);
  }

  std::stringstream stream;
  switch (window_description->frameDescription->type) {
    case kRows:
      stream << "ROWS";
      break;
    case kRange:
      stream << "RANGE";
      break;
    case kGroups:
      stream << "GROUPS";
      break;
  }
  stream << " BETWEEN " << *window_description->frameDescription->start << " AND "
         << *window_description->frameDescription->end;
  inprint(stream.str().c_str(), num_indent + 1);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1b0, %rsp            # imm = 0x1B0
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x4783(%rip), %rdi      # 0x272f9
callq 0x13090
cmpq $0x0, 0x8(%r14)
je 0x22bbb
leaq 0x1(%rbx), %rsi
leaq 0x109d8(%rip), %rdi     # 0x33565
callq 0x13090
movq 0x8(%r14), %rax
movq (%rax), %r12
movq 0x8(%rax), %r13
cmpq %r13, %r12
je 0x22bbb
leaq 0x2(%rbx), %r15
movq (%r12), %rdi
movq %r15, %rsi
callq 0x12800
addq $0x8, %r12
cmpq %r13, %r12
jne 0x22ba6
cmpq $0x0, 0x10(%r14)
je 0x22bdf
leaq 0x1(%rbx), %rsi
leaq 0x109a5(%rip), %rdi     # 0x33572
callq 0x13090
movq 0x10(%r14), %rdi
leaq 0x2(%rbx), %rsi
callq 0x12e00
leaq 0x28(%rsp), %rdi
callq 0x12630
movq 0x18(%r14), %rax
movl 0x8(%rax), %eax
cmpq $0x3, %rax
jae 0x22c19
leaq 0x108bb(%rip), %rcx     # 0x334b8
movslq (%rcx,%rax,4), %rsi
addq %rcx, %rsi
leaq 0x108bd(%rip), %rcx     # 0x334c8
movq (%rcx,%rax,8), %rdx
leaq 0x38(%rsp), %rdi
callq 0x12a70
leaq 0x38(%rsp), %r15
leaq 0x10956(%rip), %rsi     # 0x3357b
movl $0x9, %edx
movq %r15, %rdi
callq 0x12a70
movq 0x18(%r14), %rax
movq 0x10(%rax), %rsi
movq %r15, %rdi
callq 0x12eb0
leaq 0x1093c(%rip), %rsi     # 0x33585
movl $0x5, %edx
movq %r15, %rdi
callq 0x12a70
movq 0x18(%r14), %rax
movq 0x18(%rax), %rsi
movq %r15, %rdi
callq 0x12eb0
leaq 0x40(%rsp), %rsi
leaq 0x8(%rsp), %rdi
callq 0x12f10
movq 0x8(%rsp), %rdi
incq %rbx
movq %rbx, %rsi
callq 0x13090
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x22ca0
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x12990
movq 0x18209(%rip), %rsi     # 0x3aeb0
leaq 0x28(%rsp), %rdi
callq 0x12670
leaq 0xa8(%rsp), %rdi
callq 0x122c0
addq $0x1b0, %rsp            # imm = 0x1B0
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x22cf4
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x12990
jmp 0x22cf4
jmp 0x22cf1
movq %rax, %rbx
movq 0x181b5(%rip), %rsi     # 0x3aeb0
leaq 0x28(%rsp), %rdi
callq 0x12670
leaq 0xa8(%rsp), %rdi
callq 0x122c0
movq %rbx, %rdi
callq 0x13110
// File: /workspace/github_cpp_makefile_star2_O3/hyrise[P]sql-parser/src/util/sqlhelper.cpp
// Function: hsql::printOrderBy(std::vector<hsql::OrderDescription*, std::allocator<hsql::OrderDescription*>> const*, unsigned long)
void printOrderBy(const std::vector<OrderDescription*>* expr, uintmax_t num_indent) {
  if (!expr) return;
  for (const auto& order_description : *expr) {
    printExpression(order_description->expr, num_indent);
    if (order_description->type == kOrderAsc) {
      inprint("ascending", num_indent);
    } else {
      inprint("descending", num_indent);
    }
  }
}

// Assembly:
testq %rdi, %rdi
je 0x22d7c
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq (%rdi), %r14
movq 0x8(%rdi), %r15
cmpq %r15, %r14
je 0x22d73
movq %rsi, %rbx
leaq 0x10812(%rip), %r12     # 0x33550
leaq 0x10815(%rip), %r13     # 0x3355a
movq (%r14), %rax
movq 0x10(%rax), %rdi
movq %rbx, %rsi
callq 0x12800
movq (%r14), %rax
cmpl $0x0, 0x8(%rax)
movq %r13, %rdi
cmoveq %r12, %rdi
movq %rbx, %rsi
callq 0x13090
addq $0x8, %r14
cmpq %r15, %r14
jne 0x22d45
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/hyrise[P]sql-parser/src/util/sqlhelper.cpp
// Function: hsql::operator<<(std::ostream&, hsql::FrameBound const&)
std::ostream& operator<<(std::ostream& os, const FrameBound& frame_bound) {
  if (frame_bound.type == kCurrentRow) {
    os << "CURRENT ROW";
    return os;
  }

  if (frame_bound.unbounded) {
    os << "UNBOUNDED";
  } else {
    os << frame_bound.offset;
  }

  os << " ";

  if (frame_bound.type == kPreceding) {
    os << "PRECEDING";
  } else {
    os << "FOLLOWING";
  }

  return os;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpl $0x2, 0x8(%rsi)
jne 0x22d98
leaq 0x109b9(%rip), %rsi     # 0x3374a
movl $0xb, %edx
jmp 0x22df2
movq %rsi, %r14
cmpb $0x1, 0xc(%rsi)
jne 0x22db7
leaq 0x46e0(%rip), %rsi      # 0x27488
movl $0x9, %edx
movq %rbx, %rdi
callq 0x12a70
jmp 0x22dc2
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x128b0
leaq 0x10724(%rip), %rsi     # 0x334ed
movl $0x1, %edx
movq %rbx, %rdi
callq 0x12a70
cmpl $0x1, 0x8(%r14)
jne 0x22de6
leaq 0x46b8(%rip), %rsi      # 0x2749c
jmp 0x22ded
leaq 0x46a5(%rip), %rsi      # 0x27492
movl $0x9, %edx
movq %rbx, %rdi
callq 0x12a70
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/hyrise[P]sql-parser/src/util/sqlhelper.cpp
// Function: hsql::printImportStatementInfo(hsql::ImportStatement const*, unsigned long)
void printImportStatementInfo(const ImportStatement* stmt, uintmax_t num_indent) {
  inprint("ImportStatement", num_indent);
  inprint(stmt->filePath, num_indent + 1);
  switch (stmt->type) {
    case ImportType::kImportCSV:
      inprint("CSV", num_indent + 1);
      break;
    case ImportType::kImportTbl:
      inprint("TBL", num_indent + 1);
      break;
    case ImportType::kImportBinary:
      inprint("BINARY", num_indent + 1);
      break;
    case ImportType::kImportAuto:
      inprint("AUTO", num_indent + 1);
      break;
  }
  inprint(stmt->tableName, num_indent + 1);
  if (stmt->whereClause) {
    inprint("WHERE:", num_indent + 1);
    printExpression(stmt->whereClause, num_indent + 2);
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x10877(%rip), %rdi     # 0x3368e
callq 0x13090
movq 0x20(%r14), %rdi
leaq 0x1(%rbx), %r15
movq %r15, %rsi
callq 0x13090
movl 0x1c(%r14), %eax
cmpq $0x3, %rax
ja 0x22e49
leaq 0x17e1b(%rip), %rcx     # 0x3ac58
movq (%rcx,%rax,8), %rdi
movq %r15, %rsi
callq 0x13090
movq 0x30(%r14), %rdi
movq %r15, %rsi
callq 0x13090
cmpq $0x0, 0x38(%r14)
je 0x22e80
leaq 0x1084f(%rip), %rdi     # 0x336b2
movq %r15, %rsi
callq 0x13090
movq 0x38(%r14), %rdi
addq $0x2, %rbx
movq %rbx, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0x12800
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/hyrise[P]sql-parser/src/util/sqlhelper.cpp
// Function: hsql::printExportStatementInfo(hsql::ExportStatement const*, unsigned long)
void printExportStatementInfo(const ExportStatement* stmt, uintmax_t num_indent) {
  inprint("ExportStatement", num_indent);
  inprint(stmt->filePath, num_indent + 1);
  switch (stmt->type) {
    case ImportType::kImportCSV:
      inprint("CSV", num_indent + 1);
      break;
    case ImportType::kImportTbl:
      inprint("TBL", num_indent + 1);
      break;
    case ImportType::kImportBinary:
      inprint("BINARY", num_indent + 1);
      break;
    case ImportType::kImportAuto:
      inprint("AUTO", num_indent + 1);
      break;
  }

  if (stmt->tableName) {
    inprint(stmt->tableName, num_indent + 1);
  } else {
    printSelectStatementInfo(stmt->select, num_indent + 1);
  }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x10822(%rip), %rdi     # 0x336b9
callq 0x13090
movq 0x20(%r14), %rdi
incq %rbx
movq %rbx, %rsi
callq 0x13090
movl 0x1c(%r14), %eax
cmpq $0x3, %rax
ja 0x22ec8
leaq 0x17d9c(%rip), %rcx     # 0x3ac58
movq (%rcx,%rax,8), %rdi
movq %rbx, %rsi
callq 0x13090
movq 0x30(%r14), %rdi
testq %rdi, %rdi
je 0x22ee0
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x13090
movq 0x38(%r14), %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x12540
// File: /workspace/github_cpp_makefile_star2_O3/hyrise[P]sql-parser/src/util/sqlhelper.cpp
// Function: hsql::printInsertStatementInfo(hsql::InsertStatement const*, unsigned long)
void printInsertStatementInfo(const InsertStatement* stmt, uintmax_t num_indent) {
  inprint("InsertStatement", num_indent);
  inprint(stmt->tableName, num_indent + 1);
  if (stmt->columns) {
    inprint("Columns", num_indent + 1);
    for (char* col_name : *stmt->columns) {
      inprint(col_name, num_indent + 2);
    }
  }
  switch (stmt->type) {
    case kInsertValues:
      inprint("Values", num_indent + 1);
      for (Expr* expr : *stmt->values) {
        printExpression(expr, num_indent + 2);
      }
      break;
    case kInsertSelect:
      printSelectStatementInfo(stmt->select, num_indent + 1);
      break;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x10789(%rip), %rdi     # 0x336d9
callq 0x13090
movq 0x28(%r14), %rdi
leaq 0x1(%rbx), %r15
movq %r15, %rsi
callq 0x13090
cmpq $0x0, 0x30(%r14)
je 0x22fa4
leaq 0x10776(%rip), %rdi     # 0x336e9
movq %r15, %rsi
callq 0x13090
movq 0x30(%r14), %rax
movq (%rax), %r13
movq 0x8(%rax), %rbp
cmpq %rbp, %r13
je 0x22fa4
leaq 0x2(%rbx), %r12
movq (%r13), %rdi
movq %r12, %rsi
callq 0x13090
addq $0x8, %r13
cmpq %rbp, %r13
jne 0x22f8f
movl 0x1c(%r14), %eax
cmpl $0x1, %eax
je 0x22ff7
testl %eax, %eax
jne 0x22fe8
leaq 0x10739(%rip), %rdi     # 0x336f1
movq %r15, %rsi
callq 0x13090
movq 0x38(%r14), %rax
movq (%rax), %r14
movq 0x8(%rax), %r15
cmpq %r15, %r14
je 0x22fe8
addq $0x2, %rbx
movq (%r14), %rdi
movq %rbx, %rsi
callq 0x12800
addq $0x8, %r14
cmpq %r15, %r14
jne 0x22fd4
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x40(%r14), %rdi
movq %r15, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x12540
// File: /workspace/github_cpp_makefile_star2_O3/hyrise[P]sql-parser/src/util/sqlhelper.cpp
// Function: hsql::printStatementInfo(hsql::SQLStatement const*)
void printStatementInfo(const SQLStatement* stmt) {
  switch (stmt->type()) {
    case kStmtSelect:
      printSelectStatementInfo((const SelectStatement*)stmt, 0);
      break;
    case kStmtInsert:
      printInsertStatementInfo((const InsertStatement*)stmt, 0);
      break;
    case kStmtCreate:
      printCreateStatementInfo((const CreateStatement*)stmt, 0);
      break;
    case kStmtImport:
      printImportStatementInfo((const ImportStatement*)stmt, 0);
      break;
    case kStmtExport:
      printExportStatementInfo((const ExportStatement*)stmt, 0);
      break;
    case kStmtTransaction:
      printTransactionStatementInfo((const TransactionStatement*)stmt, 0);
      break;
    default:
      break;
  }
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x12400
decl %eax
cmpl $0xd, %eax
ja 0x2309a
leaq 0x103f4(%rip), %rcx     # 0x33464
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %rbx, %rdi
xorl %esi, %esi
popq %rbx
jmp 0x12540
movq %rbx, %rdi
xorl %esi, %esi
popq %rbx
jmp 0x13030
movq %rbx, %rdi
xorl %esi, %esi
popq %rbx
jmp 0x12c70
popq %rbx
retq
movq %rbx, %rdi
xorl %esi, %esi
popq %rbx
jmp 0x12ca0
movq %rbx, %rdi
xorl %esi, %esi
popq %rbx
jmp 0x12f90
movq %rbx, %rdi
xorl %esi, %esi
popq %rbx
jmp 0x124d0
nop
// File: /workspace/github_cpp_makefile_star2_O3/SimpleButNotNaive[P]AES/aes_abstract.cpp
// Function: aes_abstract::MixColumns()
void aes_abstract::MixColumns() {
    uint8 new_state[4][4];
    for (int i = 0; i < 4; i++) {
        for (int j = 0; j < 4; j++) {
            uint8 n = 0;
            for (int k = 0; k < 4; k++) {
                n ^= FieldMul(mix_column_matrix[i][k], state[k][j]);
            }
            new_state[i][j] = n;
        }
    }

    for (int i = 0; i < 4; i++) {
        for (int j = 0; j < 4; j++) {
            state[i][j] = new_state[i][j];
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
xorl %eax, %eax
leaq 0x3cde(%rip), %rcx      # 0x51d0
leaq (%rcx,%rax,4), %rdx
leaq -0x40(,%rax,4), %rsi
addq %rbp, %rsi
xorl %r8d, %r8d
xorl %r9d, %r9d
xorl %r10d, %r10d
movb (%r9,%rdx), %r11b
leaq (%rdi,%r9,4), %rbx
movb (%r8,%rbx), %r14b
movl $0x8, %r15d
xorl %ebx, %ebx
movl %r14d, %r12d
andb $0x1, %r12b
negb %r12b
andb %r11b, %r12b
xorb %r12b, %bl
leal (%r11,%r11), %r12d
movzbl %r12b, %r13d
xorb $0x1b, %r12b
testb %r11b, %r11b
movzbl %r12b, %r11d
cmovnsl %r13d, %r11d
shrb %r14b
decl %r15d
jne 0x151e
xorb %bl, %r10b
incq %r9
cmpq $0x4, %r9
jne 0x150a
movb %r10b, (%r8,%rsi)
incq %r8
cmpq $0x4, %r8
jne 0x1504
incq %rax
cmpq $0x4, %rax
jne 0x14f2
xorl %eax, %eax
movl -0x40(%rbp,%rax,4), %ecx
movl %ecx, (%rdi,%rax,4)
incq %rax
cmpq $0x4, %rax
jne 0x1571
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/SimpleButNotNaive[P]AES/aes_abstract.cpp
// Function: aes_abstract::KeyExpansion(unsigned int*)
void aes_abstract::KeyExpansion(uint32 initial_key[4]) {
    // 将初始的密钥分为四个字，密钥拓展为44个字
    int i;
    for (i = 0; i <= 3; i++) {
        this->round_key[i] = initial_key[i];
    }

    for (; i <= 43; i++) {
        uint32 temp = round_key[i - 1];
        if (i % 4 == 0) {
            temp = SubWord(RotWord(temp)) ^ r_cont[i / 4 - 1];
        }
        this->round_key[i] = this->round_key[i - 4] ^ temp;
    }
}

// Assembly:
xorl %eax, %eax
movl (%rsi,%rax,4), %ecx
movl %ecx, 0x10(%rdi,%rax,4)
incq %rax
cmpq $0x4, %rax
jne 0x15d0
pushq %rbp
movq %rsp, %rbp
movl 0x1c(%rdi), %esi
movl $0x4, %eax
leaq 0x3add(%rip), %rcx      # 0x50d0
leaq 0x3cf6(%rip), %rdx      # 0x52f0
testb $0x3, %al
jne 0x1639
roll $0x8, %esi
movl %esi, -0x4(%rbp)
xorl %esi, %esi
movzbl -0x4(%rbp,%rsi), %r8d
movl %r8d, %r9d
andl $0xf, %r9d
andl $-0x10, %r8d
addq %rcx, %r8
movb (%r9,%r8), %r8b
movb %r8b, -0x4(%rbp,%rsi)
incq %rsi
cmpq $0x4, %rsi
jne 0x1606
movl %eax, %esi
shrl $0x2, %esi
decl %esi
movl (%rdx,%rsi,4), %esi
xorl -0x4(%rbp), %esi
xorl (%rdi,%rax,4), %esi
movl %esi, 0x10(%rdi,%rax,4)
incq %rax
cmpq $0x2c, %rax
jne 0x15fa
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/SimpleButNotNaive[P]AES/aes_abstract.cpp
// Function: aes_abstract::generate_roundkey(unsigned char*)
void aes_abstract::generate_roundkey(uint8 initial_key_byte[16]) {
    uint32 initial_key_word[4];
    for (int i = 0; i < 4; i++) {
        initial_key_word[i] = bytes_to_word(&initial_key_byte[4 * i]);
    }

    KeyExpansion(initial_key_word);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
xorl %eax, %eax
movl (%rsi,%rax,4), %ecx
bswapl %ecx
movl %ecx, -0x10(%rbp,%rax,4)
incq %rax
cmpq $0x4, %rax
jne 0x1698
leaq -0x10(%rbp), %rsi
callq 0x15ce
addq $0x10, %rsp
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/SimpleButNotNaive[P]AES/aes_abstract.cpp
// Function: aes_abstract::print_state()
void aes_abstract::print_state(){
    printf("The current state:\n");
    for(int i = 0;i < 4;i++){
        for(int j = 0;j < 4;j++){
            printf("%x ", state[i][j]);
        }
        printf("\n");
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
leaq 0x188d(%rip), %rdi      # 0x3020
callq 0x1120
leaq 0x187d(%rip), %r14      # 0x301c
xorl %r15d, %r15d
xorl %r12d, %r12d
movzbl (%rbx,%r12), %esi
movq %r14, %rdi
xorl %eax, %eax
callq 0x1040
incq %r12
cmpq $0x4, %r12
jne 0x17a5
movl $0xa, %edi
callq 0x1100
incq %r15
addq $0x4, %rbx
cmpq $0x4, %r15
jne 0x17a2
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_cpp_makefile_star2_O3/SimpleButNotNaive[P]AES/decryptor.cpp
// Function: aes_decryptor::reverse_round_key()
void aes_decryptor::reverse_round_key() {
    int i = 0, j = 10;
    uint32 temp;
    while (i < j) {
        for(int k = 0;k < 4;k++){
            swap(round_key[4*i + k], round_key[4*j + k]);
        }
        i++;
        j--;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq 0x10(%rdi), %rax
addq $0xb0, %rdi
xorl %ecx, %ecx
xorl %edx, %edx
movl (%rax,%rdx,4), %esi
movl (%rdi,%rdx,4), %r8d
movl %r8d, (%rax,%rdx,4)
movl %esi, (%rdi,%rdx,4)
incq %rdx
cmpq $0x4, %rdx
jne 0x1a2f
incq %rcx
addq $0x10, %rax
addq $-0x10, %rdi
cmpq $0x5, %rcx
jne 0x1a2d
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/SimpleButNotNaive[P]AES/decryptor.cpp
// Function: aes_decryptor::decrypt_one_group(unsigned char*)
void aes_decryptor::decrypt_one_group(uint8 cipher[16]) {
    current_round = 0;
    for (int i = 0; i < 16; i++) {
        state[i % 4][i / 4] = cipher[i];
    }

    AddRoundKey();
    for (int i = 1; i < NROUND; i++) {
        ShiftRows();
        SubBytes();
        AddRoundKey();
        MixColumns();
    }

    ShiftRows();
    SubBytes();
    AddRoundKey();

    for (int i = 0; i < 16; i++) {
        cipher[i] = state[i % 4][i / 4];
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r14
movl $0x0, 0xc0(%rdi)
xorl %eax, %eax
movb (%rsi,%rax), %cl
movl %eax, %edx
andl $0x3, %edx
movl %eax, %edi
shrl $0x2, %edi
leaq (%r14,%rdx,4), %rdx
movb %cl, (%rdi,%rdx)
incq %rax
cmpq $0x10, %rax
jne 0x1a7a
movq %rsi, -0x40(%rbp)
movq %r14, %rdi
callq 0x143c
leaq 0x4(%r14), %r12
leaq 0x5(%r14), %rbx
leaq 0xc(%r14), %rax
movq %rax, -0x38(%rbp)
leaq 0xd(%r14), %rax
movq %rax, -0x30(%rbp)
movl $0x1, %r13d
leaq 0x3718(%rip), %r15      # 0x51e0
movb 0x7(%r14), %al
movzwl (%r12), %ecx
movb 0x2(%r12), %dl
movb %dl, 0x2(%rbx)
movw %cx, (%rbx)
movb %al, 0x4(%r14)
roll $0x10, 0x8(%r14)
movb 0xc(%r14), %al
movq -0x30(%rbp), %rdx
movzwl (%rdx), %ecx
movb 0x2(%rdx), %dl
movq -0x38(%rbp), %rsi
movb %dl, 0x2(%rsi)
movw %cx, (%rsi)
movb %al, 0xf(%r14)
movq %r14, %rax
xorl %ecx, %ecx
xorl %edx, %edx
movzbl (%rax,%rdx), %esi
movl %esi, %edi
andl $0xf, %edi
andl $-0x10, %esi
addq %r15, %rsi
movb (%rdi,%rsi), %sil
movb %sil, (%rax,%rdx)
incq %rdx
cmpq $0x4, %rdx
jne 0x1b08
incq %rcx
addq $0x4, %rax
cmpq $0x4, %rcx
jne 0x1b06
movq %r14, %rdi
callq 0x143c
movq %r14, %rdi
callq 0x1c8c
incl %r13d
cmpl $0xa, %r13d
jne 0x1ac8
movb 0x7(%r14), %al
movzwl (%r12), %ecx
movb 0x2(%r12), %dl
movb %dl, 0x2(%rbx)
movw %cx, (%rbx)
movb %al, 0x4(%r14)
roll $0x10, 0x8(%r14)
movb 0xc(%r14), %al
movq -0x30(%rbp), %rdx
movzwl (%rdx), %ecx
movb 0x2(%rdx), %dl
movq -0x38(%rbp), %rsi
movb %dl, 0x2(%rsi)
movw %cx, (%rsi)
movb %al, 0xf(%r14)
xorl %eax, %eax
movq %r14, %rcx
xorl %edx, %edx
movzbl (%rcx,%rdx), %esi
movl %esi, %edi
andl $0xf, %edi
andl $-0x10, %esi
addq %r15, %rsi
movb (%rdi,%rsi), %sil
movb %sil, (%rcx,%rdx)
incq %rdx
cmpq $0x4, %rdx
jne 0x1b92
incq %rax
addq $0x4, %rcx
cmpq $0x4, %rax
jne 0x1b90
movq %r14, %rdi
callq 0x143c
xorl %eax, %eax
movq -0x40(%rbp), %rsi
movl %eax, %ecx
andl $0x3, %ecx
movl %eax, %edx
shrl $0x2, %edx
leaq (%r14,%rcx,4), %rcx
movb (%rdx,%rcx), %cl
movb %cl, (%rsi,%rax)
incq %rax
cmpq $0x10, %rax
jne 0x1bcd
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/SimpleButNotNaive[P]AES/decryptor.cpp
// Function: aes_decryptor::splice(unsigned char*, unsigned char*)
void aes_decryptor::splice(uint8* p_text_array, uint8 group[16]){
    static int cursor = 0;
    for(int i = 0;i < 16;i++){
        p_text_array[cursor] = group[i];
        cursor++;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movslq 0x371f(%rip), %rcx      # 0x5324
movl %ecx, %eax
addq %rcx, %rsi
xorl %ecx, %ecx
movb (%rdx,%rcx), %dil
movb %dil, (%rsi,%rcx)
incq %rcx
cmpq $0x10, %rcx
jne 0x1c0c
addl %ecx, %eax
movl %eax, 0x36ff(%rip)      # 0x5324
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/SimpleButNotNaive[P]AES/decryptor.cpp
// Function: aes_decryptor::MixColumns()
void aes_decryptor::MixColumns() {
    uint8 new_state[4][4];
    for (int i = 0; i < 4; i++) {
        for (int j = 0; j < 4; j++) {
            uint8 n = 0;
            for (int k = 0; k < 4; k++) {
                n ^= FieldMul(mix_column_matrix_inv[i][k], state[k][j]);
            }
            new_state[i][j] = n;
        }
    }

    for (int i = 0; i < 4; i++) {
        for (int j = 0; j < 4; j++) {
            state[i][j] = new_state[i][j];
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0x3639(%rip), %r14      # 0x52e0
xorl %eax, %eax
movq %rax, -0x30(%rbp)
leaq -0x50(,%rax,4), %rax
addq %rbp, %rax
movq %rax, -0x38(%rbp)
movq %rbx, %r13
xorl %eax, %eax
movq %rax, -0x40(%rbp)
xorl %r12d, %r12d
xorl %r15d, %r15d
movzbl (%r14,%r12), %esi
movzbl (%r13,%r12,4), %edx
movq %rbx, %rdi
callq 0x158c
xorb %al, %r15b
incq %r12
cmpq $0x4, %r12
jne 0x1ccb
movq -0x38(%rbp), %rax
movq -0x40(%rbp), %rcx
movb %r15b, (%rcx,%rax)
movq %rcx, %rax
incq %rax
incq %r13
cmpq $0x4, %rax
jne 0x1cc1
movq -0x30(%rbp), %rax
incq %rax
addq $0x4, %r14
cmpq $0x4, %rax
jne 0x1ca9
xorl %eax, %eax
movl -0x50(%rbp,%rax,4), %ecx
movl %ecx, (%rbx,%rax,4)
incq %rax
cmpq $0x4, %rax
jne 0x1d18
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/SimpleButNotNaive[P]AES/encryptor.cpp
// Function: aes_encryptor::padding(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
string aes_encryptor::padding(string s) {
    char padding[17];
    int pad_size;
    if (s.size() % 16 == 0) {
        pad_size = 16;
    }
    else{
        pad_size = 16 - (s.size() - (s.size() / 16) * 16);
    }

    for(int i = 0;i < pad_size;i++){
        padding[i] = pad_size;
    }
    padding[pad_size] = '\0';

    return s + padding;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %r14
movq %rdi, %rbx
movq 0x8(%rdx), %r15
movl %r15d, %eax
andl $0xf, %eax
movl $0x10, %ecx
movl $0x10, %r12d
subl %eax, %r12d
testb $0xf, %r15b
cmovel %ecx, %r12d
leaq -0x40(%rbp), %r13
movq %r13, %rdi
movl %r12d, %esi
movq %r12, %rdx
callq 0x1090
movb $0x0, -0x40(%rbp,%r12)
leaq 0x10(%rbx), %r12
movq %r12, (%rbx)
movq (%r14), %rsi
addq %rsi, %r15
movq %rbx, %rdi
movq %r15, %rdx
callq 0x2546
movq %rbx, %rdi
movq %r13, %rsi
callq 0x1170
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r12, %rdi
je 0x2253
movq (%r12), %rsi
incq %rsi
callq 0x10f0
movq %r14, %rdi
callq 0x1150
nop
// File: /workspace/github_cpp_makefile_star2_O3/SimpleButNotNaive[P]AES/encryptor.cpp
// Function: aes_encryptor::split(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
vector<vector<uint8>> aes_encryptor::split(string s){
    int group_number = s.size() / 16;
    vector<vector<uint8>> ret;
    for(int i = 0;i < group_number;i++){
        vector<uint8> one_group;
        for(int j = 0;j < 16;j++){
            one_group.push_back(s[i * 16 + j]);
        }
        ret.push_back(one_group);
        one_group.clear();
    }
    return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq 0x8(%rdx), %rax
shrq $0x4, %rax
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq %rdi, -0x58(%rbp)
movq $0x0, 0x10(%rdi)
movq %rax, -0x60(%rbp)
testl %eax, %eax
jle 0x232a
movq %rdx, %r14
movq -0x60(%rbp), %rax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movq %rax, -0x60(%rbp)
xorl %ebx, %ebx
leaq -0x50(%rbp), %r15
xorl %r13d, %r13d
xorps %xmm0, %xmm0
movaps %xmm0, -0x50(%rbp)
movq $0x0, -0x40(%rbp)
xorl %r12d, %r12d
movq (%r14), %rax
addq %rbx, %rax
movb (%r12,%rax), %al
movb %al, -0x29(%rbp)
movq -0x48(%rbp), %rsi
cmpq -0x40(%rbp), %rsi
je 0x22dd
movb %al, (%rsi)
incq -0x48(%rbp)
jmp 0x22e9
movq %r15, %rdi
leaq -0x29(%rbp), %rdx
callq 0x28da
incq %r12
cmpq $0x10, %r12
jne 0x22be
movq -0x58(%rbp), %rdi
movq %r15, %rsi
callq 0x249a
movq -0x50(%rbp), %rdi
cmpq %rdi, -0x48(%rbp)
je 0x230c
movq %rdi, -0x48(%rbp)
testq %rdi, %rdi
je 0x231d
movq -0x40(%rbp), %rsi
subq %rdi, %rsi
callq 0x10f0
incq %r13
addq $0x10, %rbx
cmpq -0x60(%rbp), %r13
jne 0x22ac
movq -0x58(%rbp), %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x233f
movq %rax, %r14
movq -0x50(%rbp), %rdi
testq %rdi, %rdi
je 0x2357
movq -0x40(%rbp), %rsi
subq %rdi, %rsi
callq 0x10f0
movq -0x58(%rbp), %rdi
callq 0x24d6
movq %r14, %rdi
callq 0x1150
// File: /workspace/github_cpp_makefile_star2_O3/SimpleButNotNaive[P]AES/encryptor.cpp
// Function: aes_encryptor::encrypt_one_group(unsigned char*)
void aes_encryptor::encrypt_one_group(uint8 p_text[16]) {
    current_round = 0;
    for (int i = 0; i < 16; i++) {
        state[i % 4][i / 4] = p_text[i];
    }
    AddRoundKey();

    for (int round = 1; round < NROUND; round++) {
        SubBytes();
        ShiftRows();
        MixColumns();
        AddRoundKey();
    }

    SubBytes();
    ShiftRows();
    AddRoundKey();

    for(int i = 0;i < 16;i++){
        p_text[i] = state[i % 4][i / 4];
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r14
movl $0x0, 0xc0(%rdi)
xorl %eax, %eax
movb (%rsi,%rax), %cl
movl %eax, %edx
andl $0x3, %edx
movl %eax, %edi
shrl $0x2, %edi
leaq (%r14,%rdx,4), %rdx
movb %cl, (%rdi,%rdx)
incq %rax
cmpq $0x10, %rax
jne 0x2388
movq %rsi, -0x38(%rbp)
movq %r14, %rdi
callq 0x143c
leaq 0x4(%r14), %r13
leaq 0x5(%r14), %rbx
leaq 0xc(%r14), %r12
leaq 0xd(%r14), %rax
movq %rax, -0x30(%rbp)
movl $0x9, %r15d
movq %r14, %rdi
callq 0x1480
movb 0x4(%r14), %al
movzwl (%rbx), %ecx
movb 0x2(%rbx), %dl
movb %dl, 0x2(%r13)
movw %cx, (%r13)
movb %al, 0x7(%r14)
roll $0x10, 0x8(%r14)
movb 0xf(%r14), %al
movzwl (%r12), %ecx
movb 0x2(%r12), %dl
movq -0x30(%rbp), %rsi
movb %dl, 0x2(%rsi)
movw %cx, (%rsi)
movb %al, 0xc(%r14)
movq %r14, %rdi
callq 0x14dc
movq %r14, %rdi
callq 0x143c
decl %r15d
jne 0x23cb
movq %r14, %rdi
callq 0x1480
movb 0x4(%r14), %al
movzwl (%rbx), %ecx
movb 0x2(%rbx), %dl
movb %dl, 0x2(%r13)
movw %cx, (%r13)
movb %al, 0x7(%r14)
roll $0x10, 0x8(%r14)
movb 0xf(%r14), %al
movzwl (%r12), %ecx
movb 0x2(%r12), %dl
movq -0x30(%rbp), %rsi
movb %dl, 0x2(%rsi)
movw %cx, (%rsi)
movb %al, 0xc(%r14)
movq %r14, %rdi
callq 0x143c
xorl %eax, %eax
movq -0x38(%rbp), %rsi
movl %eax, %ecx
andl $0x3, %ecx
movl %eax, %edx
shrl $0x2, %edx
leaq (%r14,%rcx,4), %rcx
movb (%rdx,%rcx), %cl
movb %cl, (%rsi,%rax)
incq %rax
cmpq $0x10, %rax
jne 0x246e
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/JameyWoo[P]csmile/main.cpp
// Function: main
int main(int argc, char *argv[]) {
    if (argc != 2) {  // 判断参数, 给出用法提示
        cout << "Usage:" << endl;
        cout << "./main <file_name>" << endl;
        return 0;
    }
    read.open(string(argv[1]), ios::in);
    readin();
    scanning = true;
    bool printParse = true;
    TreeNode* root = parse(printParse);
    buildSymtab(root);
    typeCheck(root);
    codeGen(root);  // 目前只传递根节点进去, 暂时不写入文件
    genAssembly(root);  // 生成汇编代码
}

// Assembly:
pushq %rbx
subq $0x30, %rsp
cmpl $0x2, %edi
jne 0x300d
movq 0x8(%rsi), %rsi
leaq 0x10(%rsp), %rbx
leaq 0xf(%rsp), %rdx
movq %rbx, %rdi
callq 0x30ee
leaq 0x18279(%rip), %rdi     # 0x1b220
movq %rbx, %rsi
movl $0x8, %edx
callq 0x2180
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2fcf
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x21c0
callq 0x31c4
leaq 0x181e5(%rip), %rax     # 0x1b1c0
movb $0x1, (%rax)
movl $0x1, %edi
callq 0x97f9
movq %rax, %rbx
movq %rax, %rdi
callq 0x9968
movq %rbx, %rdi
callq 0xa3c8
movq %rbx, %rdi
callq 0xe488
movq %rbx, %rdi
callq 0x134ed
jmp 0x308a
movq 0x17fbc(%rip), %rbx     # 0x1afd0
leaq 0x11fe9(%rip), %rsi     # 0x15004
movl $0x6, %edx
movq %rbx, %rdi
callq 0x2220
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21a0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2120
leaq 0x11fb5(%rip), %rsi     # 0x1500b
movl $0x12, %edx
movq %rbx, %rdi
callq 0x2220
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21a0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2120
xorl %eax, %eax
addq $0x30, %rsp
popq %rbx
retq
movq %rax, %rbx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x30b0
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x21c0
movq %rbx, %rdi
callq 0x2310
// File: /workspace/github_cpp_makefile_star2_O3/JameyWoo[P]csmile/scan.cpp
// Function: getNextChar(int&)
char getNextChar(int &line) {  // 获取下一个字符
    if (position >= cur_str.size()) {
        cur_str = words[++word_cnt];
        if (cur_str == "EOF") {
            scanning = false;
            return EOF;
        }
        cur_str += ' ';  // 默认加一个空格. 因为如果独立两行都没有空格的话, 会被合并
        position = 0;
    }
    position += 1;
    line = word_cnt;
    return cur_str[position - 1];
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x181bf(%rip), %rax     # 0x1b4b0
cmpq 0x18188(%rip), %rax     # 0x1b480
jb 0x334a
movslq 0x17ec3(%rip), %rsi     # 0x1b1c4
incq %rsi
movl %esi, 0x17eba(%rip)     # 0x1b1c4
shlq $0x5, %rsi
addq 0x18183(%rip), %rsi     # 0x1b498
leaq 0x1815c(%rip), %r14     # 0x1b478
movq %r14, %rdi
callq 0x2100
leaq 0x11e67(%rip), %rsi     # 0x15192
movq %r14, %rdi
callq 0x2090
testl %eax, %eax
je 0x336f
leaq 0x1813a(%rip), %rdi     # 0x1b478
movl $0x20, %esi
callq 0x2170
xorl %eax, %eax
leaq 0x1(%rax), %rcx
movq %rcx, 0x1815b(%rip)     # 0x1b4b0
movl 0x17e69(%rip), %ecx     # 0x1b1c4
movl %ecx, (%rbx)
movq 0x18114(%rip), %rcx     # 0x1b478
movb (%rcx,%rax), %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movb $0x0, 0x17e4a(%rip)     # 0x1b1c0
movb $-0x1, %al
jmp 0x3367
// File: /workspace/github_cpp_makefile_star2_O3/JameyWoo[P]csmile/parse.cpp
// Function: match(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
Token match(string expected) {
    Token tmp = ptoken;
    // cout << "ptoken.type = " << ptoken.type << " ptoken.val = " << ptoken.value << endl;
    // cout << "expected: " << expected << endl;
    // 匹配一个类型
    if (ptoken.type == expected) {
        // cout << "match: " << ptoken.value << endl;
        if (ptoken.type != "EndFile") ptoken = getToken();
    } else {
        error();
    }
    return tmp;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x50, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rdi), %r15
movq %r15, (%rdi)
movq 0x16e73(%rip), %rsi     # 0x1b4c0
movq 0x16e74(%rip), %rdx     # 0x1b4c8
addq %rsi, %rdx
callq 0x3c10
leaq 0x20(%rbx), %rdi
leaq 0x30(%rbx), %rax
movq %rax, 0x20(%rbx)
movq 0x16e71(%rip), %rsi     # 0x1b4e0
movq 0x16e72(%rip), %rdx     # 0x1b4e8
addq %rsi, %rdx
callq 0x3c10
movl 0x16e7c(%rip), %eax     # 0x1b500
movl %eax, 0x40(%rbx)
movq 0x16e3a(%rip), %rdx     # 0x1b4c8
cmpq 0x8(%r14), %rdx
jne 0x46ac
testq %rdx, %rdx
je 0x46be
movq (%r14), %rsi
movq 0x16e1d(%rip), %rdi     # 0x1b4c0
callq 0x21d0
testl %eax, %eax
je 0x46be
callq 0x45a0
movq %rbx, %rax
addq $0x50, %rsp
popq %rbx
popq %r14
popq %r15
retq
leaq 0x16dfb(%rip), %rdi     # 0x1b4c0
leaq 0x10a35(%rip), %rsi     # 0x15101
callq 0x2090
testl %eax, %eax
je 0x46b1
leaq 0x8(%rsp), %rdi
callq 0x3382
leaq 0x16dda(%rip), %rdi     # 0x1b4c0
leaq 0x8(%rsp), %rsi
callq 0x2240
leaq 0x28(%rsp), %r14
leaq 0x16de4(%rip), %rdi     # 0x1b4e0
movq %r14, %rsi
callq 0x2240
movl 0x20(%r14), %eax
movl %eax, 0x16df2(%rip)     # 0x1b500
movq (%r14), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x4728
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x21c0
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x46b1
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21c0
jmp 0x46b1
jmp 0x474e
movq %rax, %r14
movq %rbx, %rdi
callq 0x30b8
jmp 0x4771
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r15, %rdi
je 0x4771
movq (%r15), %rsi
incq %rsi
callq 0x21c0
movq %r14, %rdi
callq 0x2310
// File: /workspace/github_cpp_makefile_star2_O3/JameyWoo[P]csmile/parse.cpp
// Function: param_list(TreeNode*)
TreeNode* param_list(TreeNode* k) {
    // TODO: 到这里暂停, 明天再写. 完善函数的操作
    TreeNode* t = param(k);  // 先读一个参数
    TreeNode* p = t;
    k           = NULL;
    while (ptoken.type == "Comma") {  // 如果读到逗号, 说明还有下一个参数
        match("Comma");
        TreeNode* q = param(k);
        if (q != NULL) {
            if (t == NULL) {  // ! 是否多余
                t = p = q;
            } else {
                p->sibling = q;
                p          = q;
            }
        }
    }
    return t;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
callq 0x4779
movq %rax, 0x8(%rsp)
leaq 0x16894(%rip), %rdi     # 0x1b4c0
leaq 0x1053b(%rip), %rsi     # 0x1516e
callq 0x2090
testl %eax, %eax
jne 0x4cf4
leaq 0x20(%rsp), %r15
leaq 0x10522(%rip), %r14     # 0x1516e
leaq 0x10(%rsp), %r12
leaq 0x16868(%rip), %rbp     # 0x1b4c0
movq 0x8(%rsp), %r13
movq %r15, 0x10(%rsp)
movq %r12, %rdi
movq %r14, %rsi
leaq 0x10504(%rip), %rdx     # 0x15173
callq 0x312c
leaq 0x30(%rsp), %rdi
movq %r12, %rsi
callq 0x4630
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x4c9d
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x21c0
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x4cb9
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x21c0
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x4cd0
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x21c0
xorl %edi, %edi
callq 0x4779
movq %rax, %rbx
movq %rax, 0x20(%r13)
movq %rbp, %rdi
movq %r14, %rsi
callq 0x2090
movq %rbx, %r13
testl %eax, %eax
je 0x4c5d
movq 0x8(%rsp), %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x4d22
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x21c0
movq %rbx, %rdi
callq 0x2310
// File: /workspace/github_cpp_makefile_star2_O3/JameyWoo[P]csmile/parse.cpp
// Function: params()
TreeNode* params() {
    TreeNode* t = new TreeNode("Params");  // 根节点, 参数s
    TreeNode* p = NULL;
    if (ptoken.type == "void") {
        p = new TreeNode("void");
        match("void");
        if (ptoken.type == "RightBracket") {
            if (t != NULL) {
                t->child[0]  = p;
                t->child_cnt = 1;
            }
        } else {
            t->child[0]  = param_list(p);
            t->child_cnt = 1;
        }
    } else {
        t->child[0]  = param_list(p);
        t->child_cnt = 1;
    }
    return t;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movl $0xe0, %edi
callq 0x21b0
movq %rax, %rbx
leaq 0x30(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x104ce(%rip), %rsi     # 0x15223
leaq 0x104cd(%rip), %rdx     # 0x15229
leaq 0x20(%rsp), %rdi
callq 0x312c
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
callq 0x98d0
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0x4d8a
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x21c0
leaq 0x1672f(%rip), %rdi     # 0x1b4c0
leaq 0x1047e(%rip), %rsi     # 0x15216
callq 0x2090
testl %eax, %eax
je 0x4da8
xorl %edi, %edi
jmp 0x4e95
movl $0xe0, %edi
callq 0x21b0
movq %rax, %r14
leaq 0x10(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x10450(%rip), %rsi     # 0x15216
leaq 0x1044d(%rip), %rdx     # 0x1521a
movq %rsp, %rdi
callq 0x312c
movq %rsp, %rsi
movq %r14, %rdi
callq 0x98d0
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x4df6
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21c0
leaq 0x50(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x1040f(%rip), %rsi     # 0x15216
leaq 0x1040c(%rip), %rdx     # 0x1521a
leaq 0x40(%rsp), %r15
movq %r15, %rdi
callq 0x312c
leaq 0x60(%rsp), %rdi
movq %r15, %rsi
callq 0x4630
leaq 0x90(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4e49
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x21c0
leaq 0x70(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4e64
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x21c0
movq 0x40(%rsp), %rdi
cmpq %r12, %rdi
je 0x4e7b
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x21c0
leaq 0x1663e(%rip), %rdi     # 0x1b4c0
leaq 0x102af(%rip), %rsi     # 0x15138
callq 0x2090
testl %eax, %eax
je 0x4e9d
movq %r14, %rdi
callq 0x4c0d
movq %rax, %r14
movq %r14, (%rbx)
movl $0x1, 0x28(%rbx)
movq %rbx, %rax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %r15
movq 0x40(%rsp), %rdi
cmpq %r12, %rdi
je 0x4f24
movq 0x50(%rsp), %rsi
incq %rsi
jmp 0x4f1f
movq %rax, %r15
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x4eee
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21c0
jmp 0x4eee
movq %rax, %r15
movl $0xe0, %esi
movq %r14, %rdi
jmp 0x4f1f
movq %rax, %r15
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0x4f17
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x21c0
jmp 0x4f17
movq %rax, %r15
movl $0xe0, %esi
movq %rbx, %rdi
callq 0x21c0
movq %r15, %rdi
callq 0x2310
// File: /workspace/github_cpp_makefile_star2_O3/JameyWoo[P]csmile/parse.cpp
// Function: statement_list()
TreeNode* statement_list() {
    /**
     * 一系列的语句
     */
    TreeNode* t = statement();
    TreeNode* p = t;
    // 判断哪些token可以做为statement的开始
    while (ptoken.type == "if" || ptoken.type == "Id" || ptoken.type == "while" ||
           ptoken.type == "return" || ptoken.type == "semicolon" || ptoken.type == "input" ||
           ptoken.type == "output") {
        TreeNode* q;
        // cout << "ptoken.type == " << ptoken.type << endl;
        q = statement();
        if (q != NULL) {
            if (t == NULL) {
                t = p = q;
            } else {
                p->sibling = q;
                p          = q;
            }
        }
    }
    return t;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
callq 0x7d5f
leaq 0x14ef7(%rip), %r14     # 0x1b4c0
leaq 0xec6f(%rip), %r15      # 0x1523f
leaq 0xec49(%rip), %r12      # 0x15220
leaq 0xeb9a(%rip), %r13      # 0x15178
leaq 0xeb99(%rip), %rbp      # 0x1517e
leaq 0xeca8(%rip), %rbx      # 0x15294
movq %rax, 0x8(%rsp)
movq %rax, 0x10(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x2090
testl %eax, %eax
je 0x6667
movq %r14, %rdi
movq %r12, %rsi
callq 0x2090
testl %eax, %eax
je 0x6667
movq %r14, %rdi
movq %r13, %rsi
callq 0x2090
testl %eax, %eax
je 0x6667
movq %r14, %rdi
movq %rbp, %rsi
callq 0x2090
testl %eax, %eax
je 0x6667
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2090
testl %eax, %eax
je 0x6667
movq %r14, %rdi
leaq 0xeb3a(%rip), %rsi      # 0x15185
callq 0x2090
testl %eax, %eax
je 0x6667
movq %r14, %rdi
leaq 0xeb2d(%rip), %rsi      # 0x1518b
callq 0x2090
testl %eax, %eax
jne 0x668b
callq 0x7d5f
testq %rax, %rax
je 0x65f6
cmpq $0x0, 0x8(%rsp)
je 0x65ec
movq 0x10(%rsp), %rcx
movq %rax, 0x20(%rcx)
jmp 0x65f1
movq 0x8(%rsp), %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/JameyWoo[P]csmile/parse.cpp
// Function: args()
TreeNode* args() {
    TreeNode* t = new TreeNode("Args");
    TreeNode *s = NULL, *p = NULL;
    if (ptoken.type != "RightBracket") {
        s = expression();
        p = s;
        while (ptoken.type == "Comma") {
            TreeNode* q;
            match("Comma");
            q = expression();
            if (q != NULL) {
                if (s == NULL) {
                    s = p = q;
                } else {
                    p->sibling = q;
                    p          = q;
                }
            }
        }
    }
    if (s != NULL) {
        t->child[0] = s;
    }
    return t;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movl $0xe0, %edi
callq 0x21b0
movq %rax, %r15
leaq 0x40(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0xe60d(%rip), %rsi      # 0x15251
leaq 0xe60a(%rip), %rdx      # 0x15255
leaq 0x30(%rsp), %rdi
callq 0x312c
leaq 0x30(%rsp), %rsi
movq %r15, %rdi
callq 0x98d0
movq 0x30(%rsp), %rdi
cmpq %r14, %rdi
je 0x6c79
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x21c0
leaq 0x14840(%rip), %rdi     # 0x1b4c0
leaq 0xe4b1(%rip), %rsi      # 0x15138
callq 0x2090
testl %eax, %eax
je 0x6d94
movq %r15, 0x8(%rsp)
callq 0x5eb0
movq %rax, %r15
leaq 0x14818(%rip), %rdi     # 0x1b4c0
leaq 0xe4bf(%rip), %rsi      # 0x1516e
callq 0x2090
testl %eax, %eax
je 0x6cc0
movq %r15, %rbx
jmp 0x6d87
leaq 0x20(%rsp), %rbp
leaq 0xe4a2(%rip), %r14      # 0x1516e
leaq 0x10(%rsp), %r13
movq %r15, %rbx
movq %rbp, 0x10(%rsp)
movq %r13, %rdi
movq %r14, %rsi
leaq 0xe48d(%rip), %rdx      # 0x15173
callq 0x312c
leaq 0x50(%rsp), %rdi
movq %r13, %rsi
callq 0x4630
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x6d1a
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x21c0
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x6d36
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x21c0
movq 0x10(%rsp), %rdi
cmpq %rbp, %rdi
je 0x6d4d
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x21c0
callq 0x5eb0
testq %rax, %rax
je 0x6d65
movq %rax, %r12
testq %rbx, %rbx
je 0x6d6a
movq %r12, 0x20(%r15)
jmp 0x6d6d
movq %r15, %r12
jmp 0x6d6d
movq %r12, %rbx
leaq 0x1474c(%rip), %rdi     # 0x1b4c0
movq %r14, %rsi
callq 0x2090
movq %r12, %r15
testl %eax, %eax
je 0x6cd4
testq %rbx, %rbx
movq 0x8(%rsp), %r15
je 0x6d94
movq %rbx, (%r15)
movq %r15, %rax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x30(%rsp), %rdi
cmpq %r14, %rdi
je 0x6dc8
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x21c0
jmp 0x6dc8
movq %rax, %rbx
movl $0xe0, %esi
movq %r15, %rdi
jmp 0x6de7
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %rbp, %rdi
je 0x6dec
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x21c0
movq %rbx, %rdi
callq 0x2310