LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slgh_compile.cc
// Function: ConsistencyChecker::test()
bool ConsistencyChecker::test(void)

{ // Main entry point for size consistency check
  setPostOrder(root_symbol);
  bool testresult = true;

  for(int4 i=0;i<postorder.size();++i) {
    SubtableSymbol *sym = postorder[i];
    if (!checkSubtable(sym))
      testresult = false;
  }
  return testresult;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x10(%rdi), %rsi
callq 0x2c308
movq 0x18(%rbx), %rax
cmpq %rax, 0x20(%rbx)
je 0x2d019
movb $0x1, %bpl
xorl %r14d, %r14d
xorl %r15d, %r15d
movq (%rax,%r15,8), %rsi
movq %rbx, %rdi
callq 0x2be3c
movzbl %bpl, %ebp
testb %al, %al
cmovel %r14d, %ebp
incq %r15
movq 0x18(%rbx), %rax
movq 0x20(%rbx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %r15, %rcx
ja 0x2cfea
jmp 0x2d01c
movb $0x1, %bpl
andb $0x1, %bpl
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slgh_compile.cc
// Function: MacroBuilder::free()
void MacroBuilder::free(void)

{
  vector<HandleTpl *>::iterator iter;

  for(iter=params.begin();iter!=params.end();++iter)
    delete *iter;

  params.clear();
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x30(%rdi), %r14
movq 0x38(%rdi), %rax
cmpq %rax, %r14
je 0x2d24a
movq (%r14), %rdi
testq %rdi, %rdi
je 0x2d240
movl $0xe0, %esi
callq 0xf380
addq $0x8, %r14
movq 0x38(%rbx), %rax
jmp 0x2d229
movq 0x30(%rbx), %rcx
cmpq %rcx, %rax
je 0x2d257
movq %rcx, 0x38(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slgh_compile.cc
// Function: SleighCompile::reportError(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, bool)
void SleighCompile::reportError(const string &msg,bool includeline)

{
  cerr << "Error in " << filename.back() << ' ';
  if (includeline)
    cerr << "at line " << dec << lineno.back() << ": ";
  cerr << msg << endl;
  errors += 1;
  if (errors >50) {
    cerr << "Too many errors: Aborting" << endl;
    exit(2);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
movq 0x5fd5c(%rip), %r15     # 0x8cfe8
leaq 0x3517b(%rip), %rsi     # 0x6240e
movl $0x9, %edx
movq %r15, %rdi
callq 0xf420
movq 0x308(%rbx), %rax
movq -0x20(%rax), %rsi
movq -0x18(%rax), %rdx
movq %r15, %rdi
callq 0xf420
leaq 0x7(%rsp), %rsi
movb $0x20, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0xf420
testl %ebp, %ebp
je 0x2d321
leaq 0x34cd0(%rip), %rsi     # 0x61fa7
movl $0x8, %edx
movq %r15, %rdi
callq 0xf420
movq (%r15), %rax
movq -0x18(%rax), %rax
movl 0x18(%r15,%rax), %ecx
andl $-0x4b, %ecx
orl $0x2, %ecx
movl %ecx, 0x18(%r15,%rax)
movq 0x320(%rbx), %rax
movl -0x4(%rax), %esi
movq %r15, %rdi
callq 0xf6e0
leaq 0x35011(%rip), %rsi     # 0x62325
movl $0x2, %edx
movq %rax, %rdi
callq 0xf420
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq 0x5fcb9(%rip), %rdi     # 0x8cfe8
callq 0xf420
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0xf340
movsbl %al, %esi
movq %r14, %rdi
callq 0xf040
movq %rax, %rdi
callq 0xf260
movl 0x358(%rbx), %eax
leal 0x1(%rax), %ecx
movl %ecx, 0x358(%rbx)
cmpl $0x32, %eax
jge 0x2d37d
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq 0x5fc64(%rip), %rdi     # 0x8cfe8
leaq 0x3508d(%rip), %rsi     # 0x62418
callq 0xf350
movq %rax, %rdi
callq 0xf1a0
movl $0x2, %edi
callq 0xf480
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slgh_compile.cc
// Function: MacroBuilder::setMacroOp(OpTpl*)
void MacroBuilder::setMacroOp(OpTpl *macroop)

{				// Set up parameters for a particular macro invocation
  VarnodeTpl *vn;
  HandleTpl *hand;
  free();
  for(int4 i=1;i<macroop->numInput();++i) {
    vn = macroop->getIn(i);
    hand = new HandleTpl(vn);
    params.push_back(hand);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
callq 0x2d21a
movq 0x10(%rbx), %rax
movq 0x18(%rbx), %rcx
subq %rax, %rcx
shrq $0x3, %rcx
cmpl $0x2, %ecx
jl 0x2d42f
leaq 0x30(%r14), %r15
movl $0x1, %r12d
movq (%rax,%r12,8), %rbp
movl $0xe0, %edi
callq 0xf370
movq %rax, %r13
movq %rax, %rdi
movq %rbp, %rsi
callq 0x24754
movq %r13, (%rsp)
movq 0x38(%r14), %rsi
cmpq 0x40(%r14), %rsi
je 0x2d40a
movq %r13, (%rsi)
addq $0x8, 0x38(%r14)
jmp 0x2d415
movq %r15, %rdi
movq %rsp, %rdx
callq 0x35d10
incq %r12
movq 0x10(%rbx), %rax
movq 0x18(%rbx), %rcx
subq %rax, %rcx
shrq $0x3, %rcx
movslq %ecx, %rcx
cmpq %rcx, %r12
jl 0x2d3d6
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movl $0xe0, %esi
movq %r13, %rdi
callq 0xf380
movq %rbx, %rdi
callq 0xf730
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slgh_compile.cc
// Function: MacroBuilder::dump(OpTpl*)
void MacroBuilder::dump(OpTpl *op)

{
  OpTpl *clone;
  VarnodeTpl *v_clone,*vn;
  
  clone = new OpTpl(op->getOpcode());
  vn = op->getOut();
  if (vn != (VarnodeTpl *)0) {
    v_clone = new VarnodeTpl(*vn);
    clone->setOutput(v_clone);
  }
  for(int4 i=0;i<op->numInput();++i) {
    vn = op->getIn(i);
    v_clone = new VarnodeTpl(*vn);
    if (v_clone->isRelative()) {
      // Adjust relative index, depending on the labelbase
      uintb val = v_clone->getOffset().getReal() + getLabelBase();
      v_clone->setRelative(val);
    }
    clone->addInput(v_clone);
  }
  if (!transferOp(clone,params))
    delete clone;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r15
movq %rdi, %r14
movl $0x28, %edi
callq 0xf370
movq %rax, %rbx
movl 0x8(%r15), %eax
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rbx)
xorl %ecx, %ecx
movq %rcx, 0x20(%rbx)
movl %eax, 0x8(%rbx)
movq %rcx, (%rbx)
movq (%r15), %r13
testq %r13, %r13
je 0x2d86f
movl $0x68, %edi
callq 0xf370
movq %rax, %r12
movq %rax, %rdi
movq %r13, %rsi
callq 0x244a4
movq %r12, (%rbx)
movq 0x10(%r15), %rax
movq 0x18(%r15), %rcx
subq %rax, %rcx
shrq $0x3, %rcx
testl %ecx, %ecx
jle 0x2d8ff
xorl %r13d, %r13d
movq (%rax,%r13,8), %rbp
movl $0x68, %edi
callq 0xf370
movq %rax, %r12
movq %rax, %rdi
movq %rbp, %rsi
callq 0x244a4
cmpl $0x7, 0x20(%r12)
jne 0x2d8da
movq %r12, %rbp
addq $0x20, %rbp
movl 0x8(%r14), %edx
addq 0x30(%r12), %rdx
leaq 0x8(%rsp), %rdi
movl $0x7, %esi
callq 0x2346c
movups 0x8(%rsp), %xmm0
movups 0x14(%rsp), %xmm1
movups %xmm1, 0xc(%rbp)
movups %xmm0, (%rbp)
movq %rbx, %rdi
movq %r12, %rsi
callq 0x200b0
incq %r13
movq 0x10(%r15), %rax
movq 0x18(%r15), %rcx
subq %rax, %rcx
shrq $0x3, %rcx
movslq %ecx, %rcx
cmpq %rcx, %r13
jl 0x2d885
leaq 0x30(%r14), %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2d456
testb %al, %al
jne 0x2d927
movq %rbx, %rdi
callq 0x24b74
movl $0x28, %esi
movq %rbx, %rdi
callq 0xf380
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2d938
movq %rax, %rbx
movl $0x68, %esi
movq %r12, %rdi
callq 0xf380
movq %rbx, %rdi
callq 0xf730
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slgh_compile.cc
// Function: MacroBuilder::setLabel(OpTpl*)
void MacroBuilder::setLabel(OpTpl *op)

{ // A label within a macro is local to the macro, but when
  // we expand the macro, we have to adjust the index of
  // the label, which is local to the macro, so that it fits
  // in with other labels local to the parent
  OpTpl *clone;
  VarnodeTpl *v_clone;

  clone = new OpTpl(op->getOpcode());
  v_clone = new VarnodeTpl( *op->getIn(0) ); // Clone the label index
  // Make adjustment to macro local value so that it is parent local
  uintb val = v_clone->getOffset().getReal() + getLabelBase();
  v_clone->setOffset(val);
  clone->addInput(v_clone);
  outvec.push_back(clone);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rsi, %r15
movq %rdi, %rbx
movl $0x28, %edi
callq 0xf370
movl 0x8(%r15), %ecx
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
xorl %edx, %edx
movq %rdx, 0x20(%rax)
movl %ecx, 0x8(%rax)
movq %rdx, (%rax)
movq %rax, 0x8(%rsp)
movl $0x68, %edi
callq 0xf370
movq %rax, %r14
movq 0x10(%r15), %rax
movq (%rax), %rsi
movq %r14, %rdi
callq 0x244a4
movl 0x8(%rbx), %edx
addq 0x30(%r14), %rdx
leaq 0x10(%rsp), %r15
movq %r15, %rdi
xorl %esi, %esi
callq 0x2346c
movups (%r15), %xmm0
movups 0xc(%r15), %xmm1
movups %xmm1, 0x2c(%r14)
movups %xmm0, 0x20(%r14)
movq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x200b0
movq 0x28(%rbx), %rdi
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x2d9f4
movq 0x8(%rsp), %rax
movq %rax, (%rsi)
addq $0x8, 0x8(%rdi)
jmp 0x2d9fe
leaq 0x8(%rsp), %rdx
callq 0x203d6
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movl $0x68, %esi
movq %r14, %rdi
callq 0xf380
movq %rbx, %rdi
callq 0xf730
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slgh_compile.cc
// Function: SleighCompile::SleighCompile()
SleighCompile::SleighCompile(void)
  : SleighBase()
{
  pcode.setCompiler(this);
  contextlock = false;		// Context layout is not locked
  userop_count = 0;
  errors = 0;
  warnunnecessarypcode = false;
  warndeadtemps = false;
  lenientconflicterrors = true;
  warnalllocalcollisions = false;
  warnallnops = false;
  root = (SubtableSymbol *)0;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x2804c
leaq 0x5d0ae(%rip), %rax     # 0x8ab78
movq %rax, (%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x1e8(%rbx)
movups %xmm0, 0x1f5(%rbx)
leaq 0x5d1cb(%rip), %rax     # 0x8acb0
movq %rax, 0x1e0(%rbx)
xorl %eax, %eax
movq %rax, 0x208(%rbx)
leaq 0x218(%rbx), %rcx
movl %eax, 0x218(%rbx)
movq %rax, 0x220(%rbx)
movq %rcx, 0x228(%rbx)
movq %rcx, 0x230(%rbx)
leaq 0x2b8(%rbx), %rcx
movups %xmm0, 0x238(%rbx)
movups %xmm0, 0x248(%rbx)
movups %xmm0, 0x258(%rbx)
movups %xmm0, 0x268(%rbx)
movups %xmm0, 0x278(%rbx)
movups %xmm0, 0x288(%rbx)
movups %xmm0, 0x298(%rbx)
movups %xmm0, 0x2a8(%rbx)
movq %rcx, 0x2c0(%rbx)
movq %rcx, 0x2b8(%rbx)
movq %rax, 0x2c8(%rbx)
movups %xmm0, 0x340(%rbx)
movq %rax, 0x350(%rbx)
movq %rax, 0x328(%rbx)
movups %xmm0, 0x318(%rbx)
movups %xmm0, 0x308(%rbx)
movups %xmm0, 0x2f8(%rbx)
movups %xmm0, 0x2e8(%rbx)
movq %rbx, 0x208(%rbx)
movb %al, 0x2e0(%rbx)
movabsq $0x1000000000000, %rcx  # imm = 0x1000000000000
movq %rcx, 0x330(%rbx)
movl %eax, 0x358(%rbx)
movb %al, 0x338(%rbx)
movq %rax, 0x190(%rbx)
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slgh_compile.cc
// Function: SleighCompile::buildDecisionTrees()
void SleighCompile::buildDecisionTrees(void)

{
  DecisionProperties props;
  root->buildDecisionTree(props);

  for(int4 i=0;i<tables.size();++i)
    tables[i]->buildDecisionTree(props);

  const vector<string> &ierrors( props.getIdentErrors() );
  for(int4 i=0;i<ierrors.size();++i) {
    errors += 1;
    cerr << ierrors[i];
  }

  if (!lenientconflicterrors) {
    const vector<string> &cerrors( props.getConflictErrors() );
    for(int4 i=0;i<cerrors.size();++i) {
      errors += 1;
      cerr << cerrors[i];
    }
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
xorps %xmm0, %xmm0
movq %rsp, %rsi
movaps %xmm0, 0x20(%rsi)
movaps %xmm0, 0x10(%rsi)
movaps %xmm0, (%rsi)
movq 0x190(%rdi), %rdi
callq 0x4f622
movq 0x288(%rbx), %rax
cmpq %rax, 0x290(%rbx)
je 0x2e61c
xorl %r15d, %r15d
movq %rsp, %r14
movq (%rax,%r15,8), %rdi
movq %r14, %rsi
callq 0x4f622
incq %r15
movq 0x288(%rbx), %rax
movq 0x290(%rbx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %r15, %rcx
ja 0x2e5f3
movq (%rsp), %rax
cmpq %rax, 0x8(%rsp)
je 0x2e66a
movl $0x8, %r15d
xorl %r12d, %r12d
movq 0x5e9b1(%rip), %r14     # 0x8cfe8
incl 0x358(%rbx)
movq -0x8(%rax,%r15), %rsi
movq (%rax,%r15), %rdx
movq %r14, %rdi
callq 0xf420
incq %r12
movq (%rsp), %rax
movq 0x8(%rsp), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
addq $0x20, %r15
cmpq %r12, %rcx
ja 0x2e637
cmpb $0x0, 0x336(%rbx)
jne 0x2e6c3
movq 0x18(%rsp), %rax
cmpq %rax, 0x20(%rsp)
je 0x2e6c3
movl $0x8, %r15d
xorl %r12d, %r12d
movq 0x5e959(%rip), %r14     # 0x8cfe8
incl 0x358(%rbx)
movq -0x8(%rax,%r15), %rsi
movq (%rax,%r15), %rdx
movq %r14, %rdi
callq 0xf420
incq %r12
movq 0x18(%rsp), %rax
movq 0x20(%rsp), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
addq $0x20, %r15
cmpq %r12, %rcx
ja 0x2e68f
leaq 0x18(%rsp), %rdi
callq 0x13962
movq %rsp, %rdi
callq 0x13962
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0x2e6e7
jmp 0x2e6e7
jmp 0x2e6e7
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x13962
movq %rsp, %rdi
callq 0x13962
movq %rbx, %rdi
callq 0xf730
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slgh_compile.cc
// Function: SleighCompile::buildPatterns()
void SleighCompile::buildPatterns(void)

{
  if (root == 0) {
    reportError("No patterns to match.",false);
    return;
  }
  root->buildPattern(cerr);	// This should recursively hit everything
  if (root->isError()) errors += 1;
  for(int4 i=0;i<tables.size();++i) {
    if (tables[i]->isError())
      errors += 1;
    if (tables[i]->getPattern() == (TokenPattern *)0)
      reportWarning("Unreferenced table: "+tables[i]->getName(),false);
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
movq 0x190(%rdi), %rdi
testq %rdi, %rdi
je 0x2e7d5
movq 0x5e8bd(%rip), %rsi     # 0x8cfe8
callq 0x4e7f4
movq 0x190(%rbx), %rax
cmpb $0x1, 0x39(%rax)
jne 0x2e743
incl 0x358(%rbx)
movq 0x288(%rbx), %rax
cmpq %rax, 0x290(%rbx)
je 0x2e817
leaq 0x10(%rsp), %r12
xorl %r13d, %r13d
leaq 0x33ac1(%rip), %r14     # 0x62227
movq %rsp, %r15
movq (%rax,%r13,8), %rcx
cmpb $0x1, 0x39(%rcx)
jne 0x2e779
incl 0x358(%rbx)
cmpq $0x0, 0x30(%rcx)
jne 0x2e7b6
movq (%rax,%r13,8), %rdx
addq $0x8, %rdx
movq %r15, %rdi
movq %r14, %rsi
callq 0x11754
movq %rbx, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x2e85a
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x2e7b6
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xf380
incq %r13
movq 0x288(%rbx), %rax
movq 0x290(%rbx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %r13, %rcx
ja 0x2e769
jmp 0x2e817
leaq 0x10(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x33a2c(%rip), %rsi     # 0x62211
leaq 0x33a3a(%rip), %rdx     # 0x62226
movq %rsp, %rdi
callq 0x1183c
movq %rsp, %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x2d276
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x2e817
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xf380
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r14, %rdi
jne 0x2e844
jmp 0x2e851
movq %rax, %rbx
jmp 0x2e851
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x2e851
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xf380
movq %rbx, %rdi
callq 0xf730
nop
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slgh_compile.cc
// Function: SleighCompile::reportWarning(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, bool)
void SleighCompile::reportWarning(const string &msg,bool includeline)

{
  cerr << "Warning in " << filename.back() << ' ';
  if (includeline)
    cerr << "at line " << dec << lineno.back() << ": ";
  cerr << msg << endl;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebp
movq %rsi, %rbx
movq %rdi, %r15
movq 0x5e778(%rip), %r14     # 0x8cfe8
leaq 0x33bbb(%rip), %rsi     # 0x62432
movl $0xb, %edx
movq %r14, %rdi
callq 0xf420
movq 0x308(%r15), %rax
movq -0x20(%rax), %rsi
movq -0x18(%rax), %rdx
movq %r14, %rdi
callq 0xf420
leaq 0x7(%rsp), %rsi
movb $0x20, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0xf420
testl %ebp, %ebp
je 0x2e905
leaq 0x336ec(%rip), %rsi     # 0x61fa7
movl $0x8, %edx
movq %r14, %rdi
callq 0xf420
movq (%r14), %rax
movq -0x18(%rax), %rax
movl 0x18(%r14,%rax), %ecx
andl $-0x4b, %ecx
orl $0x2, %ecx
movl %ecx, 0x18(%r14,%rax)
movq 0x320(%r15), %rax
movl -0x4(%rax), %esi
movq %r14, %rdi
callq 0xf6e0
leaq 0x33a2d(%rip), %rsi     # 0x62325
movl $0x2, %edx
movq %rax, %rdi
callq 0xf420
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq 0x5e6d5(%rip), %rdi     # 0x8cfe8
callq 0xf420
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0xf340
movsbl %al, %esi
movq %rbx, %rdi
callq 0xf040
movq %rax, %rdi
callq 0xf260
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slgh_compile.cc
// Function: SleighCompile::checkLocalCollisions()
void SleighCompile::checkLocalCollisions(void)

{
  int4 collisionCount = 0;
  SubtableSymbol *sym = root; // Start with the instruction table
  int4 i = -1;
  for(;;) {
    int4 numconst = sym->getNumConstructors();
    for(int4 j=0;j<numconst;++j) {
      if (!checkLocalExports(sym->getConstructor(j)))
	collisionCount += 1;
    }
    i+=1;
    if (i>=tables.size()) break;
    sym = tables[i];
  }
  if (collisionCount > 0) {
    cerr << "WARNING: " << dec << collisionCount << " constructors with local collisions between operands" << endl;
    if (!warnalllocalcollisions)
      cerr << "Use -c switch to list each individually" << endl;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x190(%rdi), %r15
xorl %r14d, %r14d
movq $-0x1, %r12
movq 0x48(%r15), %r13
subq 0x40(%r15), %r13
shrq $0x3, %r13
testl %r13d, %r13d
jle 0x2eec7
andl $0x7fffffff, %r13d      # imm = 0x7FFFFFFF
xorl %ebp, %ebp
movq 0x40(%r15), %rax
movq (%rax,%rbp,8), %rsi
movq %rbx, %rdi
callq 0x2ec2a
xorb $0x1, %al
movzbl %al, %eax
addl %eax, %r14d
incq %rbp
cmpq %rbp, %r13
jne 0x2eea7
incq %r12
movq 0x288(%rbx), %rcx
movq 0x290(%rbx), %rax
subq %rcx, %rax
sarq $0x3, %rax
cmpq %r12, %rax
jbe 0x2eee8
movq (%rcx,%r12,8), %r15
cmpq %r12, %rax
ja 0x2ee8d
testl %r14d, %r14d
jle 0x2ef7a
movq 0x5e0eb(%rip), %r15     # 0x8cfe8
leaq 0x3341a(%rip), %rsi     # 0x6231e
movl $0x9, %edx
movq %r15, %rdi
callq 0xf420
movq (%r15), %rax
movq -0x18(%rax), %rax
movl 0x18(%r15,%rax), %ecx
andl $-0x4b, %ecx
orl $0x2, %ecx
movl %ecx, 0x18(%r15,%rax)
movq %r15, %rdi
movl %r14d, %esi
callq 0xf6e0
movq %rax, %r14
leaq 0x333eb(%rip), %rsi     # 0x62328
movl $0x34, %edx
movq %rax, %rdi
callq 0xf420
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0xf340
movsbl %al, %esi
movq %r14, %rdi
callq 0xf040
movq %rax, %rdi
callq 0xf260
cmpb $0x0, 0x337(%rbx)
je 0x2ef89
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x333cd(%rip), %rsi     # 0x6235d
movl $0x27, %edx
movq %r15, %rdi
callq 0xf420
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0xf340
movsbl %al, %esi
movq %r15, %rdi
callq 0xf040
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xf260
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slgh_compile.cc
// Function: SleighCompile::checkSymbols[abi:cxx11](SymbolScope*)
string SleighCompile::checkSymbols(SymbolScope *scope)

{ // Make sure label symbols are used properly
  ostringstream s;
  SymbolTree::const_iterator iter;
  for(iter=scope->begin();iter!=scope->end();++iter) {
    LabelSymbol *sym = (LabelSymbol *)*iter;
    if (sym->getType() != SleighSymbol::label_symbol) continue;
    if (sym->getRefCount() == 0)
      s << "   Label <" << sym->getName() << "> was placed but not used\n";
    else if (!sym->isPlaced())
      s << "   Label <" << sym->getName() << "> was referenced but never placed\n";
  }
  return s.str();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x178, %rsp            # imm = 0x178
movq %rdx, %r14
movq %rdi, %rbx
movq %rsp, %rdi
callq 0xf530
movq 0x20(%r14), %r15
addq $0x10, %r14
cmpq %r14, %r15
je 0x2f213
leaq 0x3324a(%rip), %r12     # 0x623c5
movq %rsp, %r13
movq 0x20(%r15), %rbp
movq (%rbp), %rax
movq %rbp, %rdi
callq *0x10(%rax)
cmpl $0x11, %eax
jne 0x2f1ff
cmpl $0x0, 0x38(%rbp)
je 0x2f1cb
cmpb $0x0, 0x34(%rbp)
jne 0x2f1ff
movl $0xa, %edx
movq %r13, %rdi
movq %r12, %rsi
callq 0xf420
movq 0x8(%rbp), %rsi
movq 0x10(%rbp), %rdx
movq %r13, %rdi
callq 0xf420
movl $0x22, %edx
leaq 0x33222(%rip), %rsi     # 0x623eb
jmp 0x2f1f7
movl $0xa, %edx
movq %r13, %rdi
movq %r12, %rsi
callq 0xf420
movq 0x8(%rbp), %rsi
movq 0x10(%rbp), %rdx
movq %r13, %rdi
callq 0xf420
movl $0x1a, %edx
leaq 0x331d9(%rip), %rsi     # 0x623d0
movq %rax, %rdi
callq 0xf420
movq %r15, %rdi
callq 0xf430
movq %rax, %r15
cmpq %r14, %rax
jne 0x2f17e
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0xf640
movq 0x5dd91(%rip), %rsi     # 0x8cfb8
movq %rsp, %rdi
callq 0xf1e0
leaq 0x70(%rsp), %rdi
callq 0xf150
movq %rbx, %rax
addq $0x178, %rsp            # imm = 0x178
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2f250
movq %rax, %rbx
movq 0x5dd5e(%rip), %rsi     # 0x8cfb8
movq %rsp, %rdi
callq 0xf1e0
leaq 0x70(%rsp), %rdi
callq 0xf150
movq %rbx, %rdi
callq 0xf730
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slgh_compile.cc
// Function: SleighCompile::process()
void SleighCompile::process(void)

{				// Do all post processing on the parsed data structures
  checkNops();
  if (getDefaultSpace() == (AddrSpace *)0)
    reportError("No default space specified",false);
  if (errors>0) return;
  checkConsistency();
  if (errors>0) return;
  checkLocalCollisions();
  if (errors>0) return;
  buildPatterns();
  if (errors>0) return;
  buildDecisionTrees();
  if (errors>0) return;
  try {
    buildXrefs();		// Make sure we can build crossrefs properly
  } catch(SleighError &err) {
    cerr << err.explain << endl;
    errors += 1;
    return;
  }
  checkUniqueAllocation();
  symtab.purge();		// Get rid of any symbols we don't plan to save
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
callq 0x2efd2
cmpq $0x0, 0xa0(%rbx)
jne 0x2f2d1
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x3319f(%rip), %rsi     # 0x6243e
leaq 0x331b2(%rip), %rdx     # 0x62458
movq %rsp, %rdi
callq 0x1183c
movq %rsp, %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x2d276
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x2f2d1
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xf380
cmpl $0x0, 0x358(%rbx)
jg 0x2f33d
movq %rbx, %rdi
callq 0x2e94e
cmpl $0x0, 0x358(%rbx)
jg 0x2f33d
movq %rbx, %rdi
callq 0x2ee6e
cmpl $0x0, 0x358(%rbx)
jg 0x2f33d
movq %rbx, %rdi
callq 0x2e704
cmpl $0x0, 0x358(%rbx)
jg 0x2f33d
movq %rbx, %rdi
callq 0x2e5b2
cmpl $0x0, 0x358(%rbx)
jg 0x2f33d
movq %rbx, %rdi
callq 0x280c0
movq %rbx, %rdi
callq 0x2f3b8
addq $0x198, %rbx            # imm = 0x198
movq %rbx, %rdi
callq 0x49030
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r14
cmpl $0x1, %edx
jne 0x2f3af
movq %r14, %rdi
callq 0xf180
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq 0x5dc83(%rip), %rdi     # 0x8cfe8
callq 0xf420
movq %rax, %rdi
callq 0xf1a0
incl 0x358(%rbx)
callq 0xf680
jmp 0x2f33d
movq %rax, %r14
callq 0xf680
jmp 0x2f3af
movq %rax, %rdi
callq 0x13ad1
movq %rax, %r14
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x2f3af
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xf380
jmp 0x2f3af
movq %rax, %r14
movq %r14, %rdi
callq 0xf730
nop
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slgh_compile.cc
// Function: SleighCompile::checkUniqueAllocation()
void SleighCompile::checkUniqueAllocation(void)

{ // With crossbuilds,  temporaries may need to survive across instructions in a packet, so here we
  // provide space in the offset of the temporary (within the unique space) so that the run-time sleigh
  // engine can alter the value to prevent collisions with other nearby instructions
  if (unique_allocatemask == 0) return;	// We don't have any crossbuild directives

  unique_allocatemask = 0xff;	// Provide 8 bits of free space
  int4 sa = 8;
  int4 secsize = sections.size(); // This is the upper bound for section numbers
  SubtableSymbol *sym = root; // Start with the instruction table
  int4 i = -1;
  for(;;) {
    int4 numconst = sym->getNumConstructors();
    for(int4 j=0;j<numconst;++j) {
      Constructor *ct = sym->getConstructor(j);
      ConstructTpl *tpl = ct->getTempl();
      if (tpl != (ConstructTpl *)0)
	shiftUniqueConstruct(tpl,sa);
      for(int4 k=0;k<secsize;++k) {
	ConstructTpl *namedtpl = ct->getNamedTempl(k);
	if (namedtpl != (ConstructTpl *)0)
	  shiftUniqueConstruct(namedtpl,sa);
      }
    }
    i+=1;
    if (i>=tables.size()) break;
    sym = tables[i];
  }
  uintm ubase = getUniqueBase(); // We have to adjust the unique base
  ubase <<= sa;
  setUniqueBase(ubase);
}

// Assembly:
cmpl $0x0, 0x1d4(%rdi)
je 0x2f4c8
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl $0xff, 0x1d4(%rdi)
movq 0x190(%rdi), %r12
movq 0x2a8(%rdi), %r15
subq 0x2a0(%rdi), %r15
shrq $0x3, %r15
movq $-0x1, %rdx
movq %rdi, 0x8(%rsp)
movq %rdx, 0x10(%rsp)
movq 0x48(%r12), %rbx
subq 0x40(%r12), %rbx
shrq $0x3, %rbx
testl %ebx, %ebx
jle 0x2f470
andl $0x7fffffff, %ebx       # imm = 0x7FFFFFFF
xorl %r13d, %r13d
movq 0x40(%r12), %rax
movq (%rax,%r13,8), %r14
movq 0x60(%r14), %rdi
testq %rdi, %rdi
je 0x2f43e
movl $0x8, %esi
callq 0x329f0
testl %r15d, %r15d
jle 0x2f468
xorl %ebp, %ebp
movq %r14, %rdi
movl %ebp, %esi
callq 0x4cf22
testq %rax, %rax
je 0x2f461
movq %rax, %rdi
movl $0x8, %esi
callq 0x329f0
incl %ebp
cmpl %ebp, %r15d
jne 0x2f445
incq %r13
cmpq %rbx, %r13
jne 0x2f422
movq 0x10(%rsp), %rdx
incq %rdx
movq 0x8(%rsp), %rdi
movq 0x288(%rdi), %rcx
movq 0x290(%rdi), %rax
subq %rcx, %rax
sarq $0x3, %rax
cmpq %rdx, %rax
jbe 0x2f49b
movq (%rcx,%rdx,8), %r12
cmpq %rdx, %rax
ja 0x2f402
movl 0x124(%rdi), %ecx
movl %ecx, %eax
shll $0x8, %eax
cmpl %eax, %ecx
leaq 0x18(%rsp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jae 0x2f4c8
movl %eax, 0x124(%rdi)
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slgh_compile.cc
// Function: SleighCompile::calcContextLayout()
void SleighCompile::calcContextLayout(void)

{
  if (contextlock) return;	// Already locked
  contextlock = true;

  int4 context_offset = 0;
  int4 begin,sz;
  stable_sort(contexttable.begin(),contexttable.end());
  begin = 0;
  while(begin < contexttable.size()) { // Define the context variables
    sz = 1;
    while ((begin+sz < contexttable.size())&&(contexttable[begin+sz].sym==contexttable[begin].sym))
      sz += 1;
    context_offset = calcContextVarLayout(begin,sz,context_offset);
    begin += sz;
  } 

  //  context_size = (context_offset+8*sizeof(uintm)-1)/(8*sizeof(uintm));

  // Delete the quals
  for(int4 i=0;i<contexttable.size();++i) {
    FieldQuality *qual = contexttable[i].qual;
    delete qual;
  }

  contexttable.clear();
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
cmpb $0x0, 0x2e0(%rdi)
jne 0x2f66b
movq %rdi, %rbx
movb $0x1, 0x2e0(%rdi)
movq 0x240(%rdi), %r15
movq 0x248(%rdi), %r14
cmpq %r14, %r15
je 0x2f563
movq %r14, %rax
subq %r15, %rax
sarq $0x4, %rax
leaq 0x1(%rax), %rcx
shrq $0x3f, %rcx
leaq (%rax,%rcx), %rdx
incq %rdx
sarq %rdx
movq %rsp, %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x35f98
movq 0x10(%r12), %rdx
testq %rdx, %rdx
je 0x2f545
movq 0x8(%rsp), %rcx
movq %r15, %rdi
movq %r14, %rsi
callq 0x36089
jmp 0x2f550
movq %r15, %rdi
movq %r14, %rsi
callq 0x3600c
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdi
shlq $0x4, %rsi
callq 0xf380
movq 0x240(%rbx), %rdi
movq 0x248(%rbx), %rcx
subq %rdi, %rcx
je 0x2f5f2
sarq $0x4, %rcx
xorl %r8d, %r8d
xorl %eax, %eax
xorl %esi, %esi
leal 0x1(%rsi), %r14d
movl $0x1, %edx
cmpq %r14, %rcx
jbe 0x2f5c8
shlq $0x4, %r8
movq (%rdi,%r8), %r8
movl %esi, %r14d
movq %r14, %rdx
shlq $0x4, %rdx
addq %rdx, %rdi
addq $0x10, %rdi
movl $0x1, %edx
cmpq %r8, (%rdi)
jne 0x2f5c5
leaq (%r14,%rdx), %r9
incq %r9
incq %rdx
addq $0x10, %rdi
cmpq %r9, %rcx
ja 0x2f5ad
addq %rdx, %r14
movq %rbx, %rdi
movl %eax, %ecx
callq 0x2e086
movl %r14d, %r8d
movq 0x240(%rbx), %rdi
movq 0x248(%rbx), %rcx
subq %rdi, %rcx
sarq $0x4, %rcx
movl %r14d, %esi
cmpq %r8, %rcx
ja 0x2f581
movq 0x240(%rbx), %rax
movq 0x248(%rbx), %rcx
cmpq %rax, %rcx
je 0x2f65f
movl $0x8, %r15d
xorl %r12d, %r12d
movq (%rax,%r15), %r14
testq %r14, %r14
je 0x2f63b
movq (%r14), %rdi
leaq 0x10(%r14), %rax
cmpq %rax, %rdi
je 0x2f62e
movq (%rax), %rsi
incq %rsi
callq 0xf380
movl $0x30, %esi
movq %r14, %rdi
callq 0xf380
incq %r12
movq 0x240(%rbx), %rax
movq 0x248(%rbx), %rcx
movq %rcx, %rdx
subq %rax, %rdx
sarq $0x4, %rdx
addq $0x10, %r15
cmpq %r12, %rdx
ja 0x2f60e
cmpq %rax, %rcx
je 0x2f66b
movq %rax, 0x248(%rbx)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdi
shlq $0x4, %rsi
callq 0xf380
movq %rbx, %rdi
callq 0xf730
nop
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slgh_compile.cc
// Function: SleighCompile::parseFromNewFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void SleighCompile::parseFromNewFile(const string &fname)

{
  string base,path;
  FileManage::splitPath(fname,path,base);
  filename.push_back(base);
  if (relpath.empty() || FileManage::isAbsolutePath(path))
    relpath.push_back(path);
  else {			// Relative paths from successive includes, combine
    string totalpath = relpath.back();
    totalpath += path;
    relpath.push_back(totalpath);
  }
  lineno.push_back(1);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x60, %rsp
movq %rsi, %rax
movq %rdi, %rbx
leaq 0x50(%rsp), %r15
movq %r15, -0x10(%r15)
xorl %ecx, %ecx
movq %rcx, -0x8(%r15)
movb %cl, (%r15)
leaq 0x10(%rsp), %r12
movq %r12, -0x10(%r12)
movq %rcx, -0x8(%r12)
movb %cl, (%r12)
movq %rsp, %rsi
leaq 0x40(%rsp), %rdx
movq %rax, %rdi
callq 0x14ad0
leaq 0x300(%rbx), %rdi
leaq 0x40(%rsp), %rsi
callq 0x153e8
leaq 0x2e8(%rbx), %r14
movq 0x2f0(%rbx), %rax
cmpq %rax, 0x2e8(%rbx)
je 0x2f76d
cmpq $0x0, 0x8(%rsp)
je 0x2f77a
movq (%rsp), %rcx
movb (%rcx), %cl
leaq 0x5dcd7(%rip), %rdx     # 0x8d440
cmpb (%rdx), %cl
jne 0x2f77a
movq %rsp, %rsi
movq %r14, %rdi
callq 0x153e8
jmp 0x2f7cf
leaq 0x30(%rsp), %r13
movq %r13, -0x10(%r13)
movq -0x20(%rax), %rsi
movq -0x18(%rax), %rdx
addq %rsi, %rdx
leaq 0x20(%rsp), %rdi
callq 0x154be
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
leaq 0x20(%rsp), %rdi
callq 0xf130
leaq 0x20(%rsp), %rsi
movq %r14, %rdi
callq 0x153e8
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x2f7cf
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xf380
movl $0x1, 0x20(%rsp)
movq 0x320(%rbx), %rsi
cmpq 0x328(%rbx), %rsi
je 0x2f7fa
movl $0x1, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x320(%rbx)
jmp 0x2f80e
addq $0x318, %rbx            # imm = 0x318
leaq 0x20(%rsp), %rdx
movq %rbx, %rdi
callq 0x358ce
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x2f824
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xf380
movq 0x40(%rsp), %rdi
cmpq %r15, %rdi
je 0x2f83b
movq 0x50(%rsp), %rsi
incq %rsi
callq 0xf380
addq $0x60, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0x2f869
jmp 0x2f869
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x2f86c
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xf380
jmp 0x2f86c
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x2f882
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xf380
movq 0x40(%rsp), %rdi
cmpq %r15, %rdi
je 0x2f899
movq 0x50(%rsp), %rsi
incq %rsi
callq 0xf380
movq %rbx, %rdi
callq 0xf730
nop
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slgh_compile.cc
// Function: SleighCompile::getPreprocValue(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&) const
bool SleighCompile::getPreprocValue(const string &nm,string &res) const

{
  map<string,string>::const_iterator iter = preproc_defines.find(nm);
  if (iter == preproc_defines.end()) return false;
  res = (*iter).second;
  return true;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r14
movq %rdi, %rbx
addq $0x210, %rdi            # imm = 0x210
callq 0x36cba
movq %rax, %r15
addq $0x218, %rbx            # imm = 0x218
cmpq %rbx, %rax
je 0x2fa16
leaq 0x40(%r15), %rsi
movq %r14, %rdi
callq 0xf1f0
cmpq %rbx, %r15
setne %al
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slgh_compile.cc
// Function: SleighCompile::undefinePreprocValue(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
bool SleighCompile::undefinePreprocValue(const string &nm)

{
  map<string,string>::iterator iter = preproc_defines.find(nm);
  if (iter==preproc_defines.end()) return false;
  preproc_defines.erase(iter);
  return true;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x210(%rdi), %r14
movq %r14, %rdi
callq 0x370c2
movq %rax, %r15
addq $0x218, %rbx            # imm = 0x218
cmpq %rbx, %rax
je 0x2fa6f
movq %r14, %rdi
movq %r15, %rsi
callq 0x37108
cmpq %rbx, %r15
setne %al
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slgh_compile.cc
// Function: SleighCompile::defineToken(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, unsigned long*)
TokenSymbol *SleighCompile::defineToken(string *name,uintb *sz)

{
  uint4 size = *sz;
  delete sz;
  if ((size&7)!=0) {
    reportError(*name+"token size must be multiple of 8",true);
    size = (size/8)+1;
  }
  else
    size = size/8;
  Token *newtoken = new Token(*name,size,isBigEndian(),tokentable.size());
  tokentable.push_back(newtoken);
  delete name;
  TokenSymbol *res = new TokenSymbol(newtoken);
  addSymbol(res);
  return res;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movl (%rdx), %ebp
movl $0x8, %esi
movq %rdx, %rdi
callq 0xf380
testb $0x7, %bpl
je 0x2fb05
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x154be
leaq 0x32993(%rip), %rsi     # 0x62460
movq %r15, %rdi
callq 0xf780
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
movl $0x1, %edx
callq 0x2d276
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x2fafe
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xf380
shrl $0x3, %ebp
incl %ebp
jmp 0x2fb08
shrl $0x3, %ebp
movl $0x30, %edi
callq 0xf370
movq %rax, %r15
movb 0x120(%rbx), %al
movb %al, 0x7(%rsp)
movq 0x278(%rbx), %r13
movq 0x270(%rbx), %r12
leaq 0x10(%r15), %rax
movq %rax, (%r15)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x154be
subq %r12, %r13
shrq $0x3, %r13
movl %ebp, 0x20(%r15)
movb 0x7(%rsp), %al
movb %al, 0x28(%r15)
movl %r13d, 0x24(%r15)
movq %r15, 0x8(%rsp)
movq 0x278(%rbx), %rsi
cmpq 0x280(%rbx), %rsi
je 0x2fb7f
movq %r15, (%rsi)
addq $0x8, 0x278(%rbx)
jmp 0x2fb90
leaq 0x270(%rbx), %rdi
leaq 0x8(%rsp), %rdx
callq 0x37146
movq (%r14), %rdi
leaq 0x10(%r14), %rax
cmpq %rax, %rdi
je 0x2fba7
movq (%rax), %rsi
incq %rsi
callq 0xf380
movl $0x20, %esi
movq %r14, %rdi
callq 0xf380
movl $0x38, %edi
callq 0xf370
movq %rax, %r14
movq 0x8(%rsp), %r15
movq %rax, %rdi
movq %r15, %rsi
callq 0x202ec
leaq 0x5b140(%rip), %rax     # 0x8ad18
movq %rax, (%r14)
movq %r15, 0x30(%r14)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2da5a
movq %r14, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2fbfe
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x2fc32
movq 0x18(%rsp), %rsi
incq %rsi
jmp 0x2fc2d
movq %rax, %rbx
movl $0x38, %esi
movq %r14, %rdi
jmp 0x2fc2d
movq %rax, %rbx
movl $0x30, %esi
movq %r15, %rdi
callq 0xf380
movq %rbx, %rdi
callq 0xf730
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slgh_compile.cc
// Function: SleighCompile::addContextField(VarnodeSymbol*, FieldQuality*)
bool SleighCompile::addContextField(VarnodeSymbol *sym,FieldQuality *qual)

{
  if (contextlock)
    return false;		// Context layout has already been satisfied

  contexttable.push_back(FieldContext(sym,qual));
  return true;
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movb 0x2e0(%rdi), %bl
testb %bl, %bl
jne 0x2fd32
movq %rsi, (%rsp)
movq %rdx, 0x8(%rsp)
movq 0x248(%rdi), %rsi
cmpq 0x250(%rdi), %rsi
je 0x2fd23
movups (%rsp), %xmm0
movups %xmm0, (%rsi)
addq $0x10, 0x248(%rdi)
jmp 0x2fd32
addq $0x240, %rdi            # imm = 0x240
movq %rsp, %rdx
callq 0x37282
xorb $0x1, %bl
movl %ebx, %eax
addq $0x10, %rsp
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slgh_compile.cc
// Function: SleighCompile::newSectionSymbol(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
SectionSymbol *SleighCompile::newSectionSymbol(const string &nm)

{
  SectionSymbol *sym = new SectionSymbol(nm,sections.size());
  try {
    symtab.addGlobalSymbol(sym);
  } catch(SleighError &err) {
    reportError(err.explain,true);
  }
  sections.push_back(sym);
  numSections = sections.size();
  return sym;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r15
movq %rdi, %rbx
movl $0x40, %edi
callq 0xf370
movq %rax, %r14
movq 0x2a0(%rbx), %r13
movq 0x2a8(%rbx), %r12
movq %rax, %rdi
movq %r15, %rsi
callq 0x202ec
subq %r13, %r12
shrq $0x3, %r12
leaq 0x5adcf(%rip), %rax     # 0x8ad70
movq %rax, (%r14)
movl %r12d, 0x30(%r14)
movq $0x0, 0x34(%r14)
movq %r14, 0x8(%rsp)
leaq 0x198(%rbx), %rdi
movq %r14, %rsi
callq 0x47ec8
movq 0x2a8(%rbx), %rsi
cmpq 0x2b0(%rbx), %rsi
je 0x2ffe6
movq 0x8(%rsp), %rax
movq %rax, (%rsi)
addq $0x8, 0x2a8(%rbx)
jmp 0x2fff7
leaq 0x2a0(%rbx), %rdi
leaq 0x8(%rsp), %rdx
callq 0x373c2
movq 0x2a8(%rbx), %rax
subq 0x2a0(%rbx), %rax
shrq $0x3, %rax
movl %eax, 0x1d8(%rbx)
movq 0x8(%rsp), %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %r15
cmpl $0x1, %edx
jne 0x3006e
movq %r15, %rdi
callq 0xf180
movq %rbx, %rdi
movq %rax, %rsi
movl $0x1, %edx
callq 0x2d276
callq 0xf680
jmp 0x2ffc4
movq %rax, %r15
callq 0xf680
jmp 0x3006e
movq %rax, %rdi
callq 0x13ad1
movq %rax, %r15
movl $0x40, %esi
movq %r14, %rdi
callq 0xf380
movq %r15, %rdi
callq 0xf730
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slgh_compile.cc
// Function: SleighCompile::defineVarnodes(SpaceSymbol*, unsigned long*, unsigned long*, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>*)
void SleighCompile::defineVarnodes(SpaceSymbol *spacesym,uintb *off,uintb *size,vector<string> *names)

{
  AddrSpace *spc = spacesym->getSpace();
  uintb myoff = *off;
  for(int4 i=0;i<names->size();++i) {
    if ((*names)[i] != "_")
      addSymbol( new VarnodeSymbol((*names)[i],spc,myoff,*size) );
    myoff += *size;
  }
  delete names;
  delete off;
  delete size;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r8, %r15
movq %rcx, %rbx
movq %rdx, (%rsp)
movq %rdi, 0x10(%rsp)
movq (%r8), %rdi
cmpq %rdi, 0x8(%r8)
je 0x30125
movq 0x30(%rsi), %rax
movq %rax, 0x8(%rsp)
movq (%rsp), %rax
movq (%rax), %rbp
xorl %r12d, %r12d
xorl %r13d, %r13d
addq %r12, %rdi
leaq 0x323f5(%rip), %rsi     # 0x624c1
callq 0xf110
testl %eax, %eax
je 0x30108
movl $0x58, %edi
callq 0xf370
movq %rax, %r14
movq (%r15), %rsi
addq %r12, %rsi
movl (%rbx), %r8d
movq %rax, %rdi
movq 0x8(%rsp), %rdx
movq %rbp, %rcx
callq 0x4a540
movq 0x10(%rsp), %rdi
movq %r14, %rsi
callq 0x2da5a
addq (%rbx), %rbp
incq %r13
movq (%r15), %rdi
movq 0x8(%r15), %rax
subq %rdi, %rax
sarq $0x5, %rax
addq $0x20, %r12
cmpq %r13, %rax
ja 0x300c2
movq %r15, %rdi
callq 0x13962
movl $0x18, %esi
movq %r15, %rdi
callq 0xf380
movl $0x8, %esi
movq (%rsp), %rdi
callq 0xf380
testq %rbx, %rbx
je 0x30168
movl $0x8, %esi
movq %rbx, %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xf380
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movl $0x58, %esi
movq %r14, %rdi
callq 0xf380
movq %rbx, %rdi
callq 0xf730
nop
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slgh_compile.cc
// Function: SleighCompile::addUserOp(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>*)
void SleighCompile::addUserOp(vector<string> *names)

{
  for(int4 i=0;i<names->size();++i) {
    UserOpSymbol *sym = new UserOpSymbol((*names)[i]);
    sym->setIndex(userop_count++);
    addSymbol( sym );
  }
  delete names;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq (%rsi), %r15
cmpq %r15, 0x8(%rsi)
je 0x3044d
movq %rdi, %r14
xorl %r13d, %r13d
leaq 0x5c124(%rip), %rax     # 0x8c500
addq $0x10, %rax
movq %rax, (%rsp)
xorl %ebp, %ebp
movl $0x38, %edi
callq 0xf370
movq %rax, %r12
addq %r13, %r15
movq %rax, %rdi
movq %r15, %rsi
callq 0x202ec
movq (%rsp), %rax
movq %rax, (%r12)
movl $0x0, 0x30(%r12)
movl 0x330(%r14), %eax
leal 0x1(%rax), %ecx
movl %ecx, 0x330(%r14)
movl %eax, 0x30(%r12)
movq %r14, %rdi
movq %r12, %rsi
callq 0x2da5a
incq %rbp
movq (%rbx), %r15
movq 0x8(%rbx), %rax
subq %r15, %rax
sarq $0x5, %rax
addq $0x20, %r13
cmpq %rbp, %rax
ja 0x303e6
movq %rbx, %rdi
callq 0x13962
movl $0x18, %esi
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xf380
movq %rax, %rbx
movl $0x38, %esi
movq %r12, %rdi
callq 0xf380
movq %rbx, %rdi
callq 0xf730
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slgh_compile.cc
// Function: SleighCompile::newTable(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*)
SubtableSymbol *SleighCompile::newTable(string *nm)

{
  SubtableSymbol *sym = new SubtableSymbol(*nm);
  addSymbol(sym);
  tables.push_back(sym);
  delete nm;
  return sym;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movl $0x60, %edi
callq 0xf370
movq %rax, %r15
movq %rax, %rdi
movq %rbx, %rsi
callq 0x4eb34
movq %r15, 0x8(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x2da5a
movq 0x290(%r14), %rsi
cmpq 0x298(%r14), %rsi
je 0x30db7
movq 0x8(%rsp), %rax
movq %rax, (%rsi)
addq $0x8, 0x290(%r14)
jmp 0x30dcb
addq $0x288, %r14            # imm = 0x288
leaq 0x8(%rsp), %rdx
movq %r14, %rdi
callq 0x35792
movq (%rbx), %rdi
leaq 0x10(%rbx), %rax
cmpq %rax, %rdi
je 0x30de2
movq (%rax), %rsi
incq %rsi
callq 0xf380
movl $0x20, %esi
movq %rbx, %rdi
callq 0xf380
movq 0x8(%rsp), %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movl $0x60, %esi
movq %r15, %rdi
callq 0xf380
movq %rbx, %rdi
callq 0xf730
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slgh_compile.cc
// Function: SleighCompile::newOperand(Constructor*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*)
void SleighCompile::newOperand(Constructor *ct,string *nm)

{
  int4 index = ct->getNumOperands();
  OperandSymbol *sym = new OperandSymbol(*nm,index,ct);
  addSymbol(sym);
  ct->addOperand(sym);
  delete nm;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r12
movq 0x20(%rsi), %r13
subq 0x18(%rsi), %r13
shrq $0x3, %r13
movl $0x60, %edi
callq 0xf370
movq %rax, %r15
movq %rax, %rdi
movq %rbx, %rsi
movl %r13d, %edx
movq %r14, %rcx
callq 0x4b6c8
movq %r12, %rdi
movq %r15, %rsi
callq 0x2da5a
movq %r14, %rdi
movq %r15, %rsi
callq 0x4cc80
movq (%rbx), %rdi
leaq 0x10(%rbx), %rax
cmpq %rax, %rdi
je 0x30e7f
movq (%rax), %rsi
incq %rsi
callq 0xf380
movl $0x20, %esi
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0xf380
movq %rax, %rbx
movl $0x60, %esi
movq %r15, %rdi
callq 0xf380
movq %rbx, %rdi
callq 0xf730
nop
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slgh_compile.cc
// Function: SleighCompile::constrainOperand(OperandSymbol*, PatternExpression*)
PatternEquation *SleighCompile::constrainOperand(OperandSymbol *sym,PatternExpression *patexp)

{				// Create constraint on operand
  PatternEquation *res;
  FamilySymbol *famsym = dynamic_cast<FamilySymbol *>(sym->getDefiningSymbol());
  if (famsym != (FamilySymbol *)0) { // Operand already defined as family symbol
				// This equation must be a constraint
    res = new EqualEquation(famsym->getPatternValue(),patexp);
  }
  else {			// Operand is currently undefined, so we can't constrain
    PatternExpression::release(patexp);
    res = (PatternEquation *)0;
  }
  return res;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq 0x48(%rsi), %rdi
testq %rdi, %rdi
je 0x30ed9
leaq 0x59c8a(%rip), %rsi     # 0x8ab50
leaq 0x59d1b(%rip), %rdx     # 0x8abe8
xorl %ecx, %ecx
callq 0xf410
movq %rax, %r15
jmp 0x30edc
xorl %r15d, %r15d
testq %r15, %r15
je 0x30f15
movl $0x48, %edi
callq 0xf370
movq %rax, %r14
movq (%r15), %rax
movq %r15, %rdi
callq *0x60(%rax)
movq %r14, %rdi
movq %rax, %rsi
movq %rbx, %rdx
callq 0x3e11a
leaq 0x5a944(%rip), %rax     # 0x8b850
addq $0x10, %rax
movq %rax, (%r14)
jmp 0x30f20
movq %rbx, %rdi
callq 0x3bd78
xorl %r14d, %r14d
movq %r14, %rax
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movl $0x48, %esi
movq %r14, %rdi
callq 0xf380
movq %rbx, %rdi
callq 0xf730
nop
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slgh_compile.cc
// Function: SleighCompile::defineOperand(OperandSymbol*, PatternExpression*)
void SleighCompile::defineOperand(OperandSymbol *sym,PatternExpression *patexp)

{				// Define operand in terms of PatternExpression
  try {
    sym->defineOperand(patexp);
    sym->setOffsetIrrelevant();	// If not a self-definition, the operand has no
				// pattern directly associated with it, so
				// the operand's offset is irrelevant
  }
  catch(SleighError &err) {
    reportError(err.explain,true);
    PatternExpression::release(patexp);
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
movq %rsi, %rdi
movq %rdx, %rsi
callq 0x4b758
orb $0x2, 0x58(%r15)
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r15
cmpl $0x1, %edx
jne 0x30fa0
movq %r15, %rdi
callq 0xf180
movq %r14, %rdi
movq %rax, %rsi
movl $0x1, %edx
callq 0x2d276
movq %rbx, %rdi
callq 0x3bd78
popq %rbx
popq %r14
popq %r15
jmp 0xf680
movq %rax, %r15
callq 0xf680
movq %r15, %rdi
callq 0xf730
movq %rax, %rdi
callq 0x13ad1
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slgh_compile.cc
// Function: SleighCompile::defineInvisibleOperand(TripleSymbol*)
PatternEquation *SleighCompile::defineInvisibleOperand(TripleSymbol *sym)

{
  int4 index = curct->getNumOperands();
  OperandSymbol *opsym = new OperandSymbol(sym->getName(),index,curct);
  addSymbol(opsym);
  curct->addInvisibleOperand(opsym);
  PatternEquation *res = new OperandEquation(opsym->getIndex());
  SleighSymbol::symbol_type tp = sym->getType();
  try {
    if ((tp==SleighSymbol::value_symbol)||(tp==SleighSymbol::context_symbol)) {
      opsym->defineOperand(sym->getPatternExpression());
    }
    else {
      opsym->defineOperand(sym);
      //      reportWarning("Defining invisible operand "+sym->getName(),true);
    }
  }
  catch(SleighError &err) {
    reportError(err.explain,true);
  }
  return res;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r12
movq %rdi, %rbx
movq 0x2d0(%rdi), %r14
movq 0x20(%r14), %r13
subq 0x18(%r14), %r13
shrq $0x3, %r13
movl $0x60, %edi
callq 0xf370
movq %rax, %r15
leaq 0x8(%r12), %rsi
movq %rax, %rdi
movl %r13d, %edx
movq %r14, %rcx
callq 0x4b6c8
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2da5a
movq 0x2d0(%rbx), %rdi
movq %r15, %rsi
callq 0x4cc56
movl $0x40, %edi
callq 0xf370
movq %rax, %r14
movl 0x3c(%r15), %ebp
leaq 0x59dfa(%rip), %rax     # 0x8ae20
movq %rax, (%r14)
leaq 0x10(%r14), %rdi
callq 0x3b3fc
movl $0x0, 0x8(%r14)
leaq 0x5a7bf(%rip), %rax     # 0x8b800
addq $0x10, %rax
movq %rax, (%r14)
movl %ebp, 0x38(%r14)
movq (%r12), %rax
movq %r12, %rdi
callq *0x10(%rax)
cmpl $0xf, %eax
je 0x31060
cmpl $0x3, %eax
jne 0x31077
movq (%r12), %rax
movq %r12, %rdi
callq *0x38(%rax)
movq %r15, %rdi
movq %rax, %rsi
callq 0x4b758
jmp 0x31082
movq %r15, %rdi
movq %r12, %rsi
callq 0x4b80c
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r12
movl $0x40, %esi
movq %r14, %rdi
jmp 0x310ac
movq %rax, %r12
movl $0x60, %esi
movq %r15, %rdi
callq 0xf380
movq %r12, %rdi
callq 0xf730
movq %rax, %r12
cmpl $0x1, %edx
jne 0x310b1
movq %r12, %rdi
callq 0xf180
movq %rbx, %rdi
movq %rax, %rsi
movl $0x1, %edx
callq 0x2d276
callq 0xf680
jmp 0x31082
movq %rax, %r12
callq 0xf680
jmp 0x310b1
movq %rax, %rdi
callq 0x13ad1