LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/jstaursky[P]hutch/src/Sleigh/slgh_compile.cc
// Function: ConsistencyChecker::checkUnusedTemps(Constructor*, std::map<unsigned long, ConsistencyChecker::OptimizeRecord, std::less<unsigned long>, std::allocator<std::pair<unsigned long const, ConsistencyChecker::OptimizeRecord>>> const&)
void ConsistencyChecker::checkUnusedTemps(Constructor *ct,const map<uintb,OptimizeRecord> &recs)

{
  map<uintb,OptimizeRecord>::const_iterator iter;
  iter = recs.begin();
  while(iter != recs.end()) {
    const OptimizeRecord &currec( (*iter).second );
    if (currec.readcount == 0) {
      if (printdeadwarning)
	cerr << "Warning: temporary is written but not read in constructor starting at line " << dec << ct->getLineno() << endl;
      writenoread += 1;
    }
    else if (currec.writecount == 0) {
      cerr << "Error: temporary is read but not written in constructor starting at line " << dec << ct->getLineno() << endl;
      readnowrite += 1;
    }
    ++iter;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq 0x18(%rdx), %r12
addq $0x8, %rbx
cmpq %rbx, %r12
je 0x2cc97
movq %rsi, %r14
movq %rdi, %r15
movq 0x60454(%rip), %r13     # 0x8cfe8
cmpl $0x0, 0x38(%r12)
je 0x2cc13
cmpl $0x0, 0x34(%r12)
jne 0x2cc83
movl $0x49, %edx
movq %r13, %rdi
leaq 0x3551e(%rip), %rsi     # 0x620d5
callq 0xf420
movq (%r13), %rax
movq -0x18(%rax), %rax
movl 0x18(%r13,%rax), %ecx
andl $-0x4b, %ecx
orl $0x2, %ecx
movl %ecx, 0x18(%r13,%rax)
movl 0x90(%r14), %esi
movq %r13, %rdi
callq 0xf6e0
movq %rax, %rbp
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbp, %rdi
movl $0xa, %esi
callq 0xf340
movsbl %al, %esi
movq %rbp, %rdi
callq 0xf040
movq %rax, %rdi
callq 0xf260
incl 0x4(%r15)
jmp 0x2cc83
cmpb $0x1, 0xd(%r15)
jne 0x2cc7f
movl $0x4b, %edx
movq %r13, %rdi
leaq 0x35460(%rip), %rsi     # 0x62089
callq 0xf420
movq (%r13), %rax
movq -0x18(%rax), %rax
movl 0x18(%r13,%rax), %ecx
andl $-0x4b, %ecx
orl $0x2, %ecx
movl %ecx, 0x18(%r13,%rax)
movl 0x90(%r14), %esi
movq %r13, %rdi
callq 0xf6e0
movq %rax, %rbp
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbp, %rdi
movl $0xa, %esi
callq 0xf340
movsbl %al, %esi
movq %rbp, %rdi
callq 0xf040
movq %rax, %rdi
callq 0xf260
incl 0x8(%r15)
movq %r12, %rdi
callq 0xf430
movq %rax, %r12
cmpq %rbx, %rax
jne 0x2cb94
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/jstaursky[P]hutch/src/Sleigh/slgh_compile.cc
// Function: ConsistencyChecker::optimize(Constructor*)
void ConsistencyChecker::optimize(Constructor *ct)

{
  OptimizeRecord *currec;
  map<uintb,OptimizeRecord> recs;
  int4 numsections = ct->getNumSections();
  do {
    recs.clear();
    for(int4 i=-1;i<numsections;++i) {
      optimizeGather1(ct,recs,i);
      optimizeGather2(ct,recs,i);
    }
    currec = findValidRule(ct,recs);
    if (currec != (OptimizeRecord *)0)
      applyOptimization(ct,*currec);
  } while(currec != (OptimizeRecord *)0);
  checkUnusedTemps(ct,recs);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x8(%rsp), %rax
movl $0x0, (%rax)
xorl %ecx, %ecx
movq %rcx, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
movq %rcx, 0x20(%rax)
movq 0x70(%rsi), %r12
subq 0x68(%rsi), %r12
shrq $0x3, %r12
movq %rsp, %r15
movq %r15, %rdi
callq 0x35922
testl %r12d, %r12d
js 0x2cd17
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movq %rbx, %rsi
movq %r15, %rdx
movl %ebp, %ecx
callq 0x2c67a
movq %rbx, %rsi
movq %r15, %rdx
movl %ebp, %ecx
callq 0x2c73e
incl %ebp
cmpl %ebp, %r12d
jne 0x2ccf6
movq %rbx, %rsi
movq %r15, %rdx
callq 0x2c828
testq %rax, %rax
je 0x2cd34
movq %rbx, %rsi
movq %rax, %rdx
callq 0x2c9f2
jmp 0x2cce4
movq %rsp, %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2cb68
movq %rsp, %rdi
callq 0x34604
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2cd5b
jmp 0x2cd5b
movq %rax, %rbx
movq %rsp, %rdi
callq 0x34604
movq %rbx, %rdi
callq 0xf730
// File: /workspace/github_cpp_makefile_star2_O3/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 %r14
pushq %rbx
movq %rdi, %rbx
movq 0x10(%rdi), %rsi
callq 0x2c142
movq 0x18(%rbx), %rax
cmpq %rax, 0x20(%rbx)
je 0x2cdb6
movb $0x1, %bpl
xorl %r14d, %r14d
movq (%rax,%r14,8), %rsi
movq %rbx, %rdi
callq 0x2bc92
andb %al, %bpl
incq %r14
movq 0x18(%rbx), %rax
movq 0x20(%rbx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %r14, %rcx
ja 0x2cd8e
jmp 0x2cdb9
movb $0x1, %bpl
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/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 0x5ffd2(%rip), %r15     # 0x8cfe8
leaq 0x35441(%rip), %rsi     # 0x6245e
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 0x2d0ab
leaq 0x34f96(%rip), %rsi     # 0x61ff7
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 0x352d7(%rip), %rsi     # 0x62375
movl $0x2, %edx
movq %rax, %rdi
callq 0xf420
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq 0x5ff2f(%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 0x2d107
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq 0x5feda(%rip), %rdi     # 0x8cfe8
leaq 0x35353(%rip), %rsi     # 0x62468
callq 0xf350
movq %rax, %rdi
callq 0xf1a0
movl $0x2, %edi
callq 0xf480
// File: /workspace/github_cpp_makefile_star2_O3/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 0x2cfac
movq 0x10(%rbx), %rax
movq 0x18(%rbx), %rcx
subq %rax, %rcx
shrq $0x3, %rcx
cmpl $0x2, %ecx
jl 0x2d1b9
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 0x2462e
movq %r13, (%rsp)
movq 0x38(%r14), %rsi
cmpq 0x40(%r14), %rsi
je 0x2d194
movq %r13, (%rsi)
addq $0x8, 0x38(%r14)
jmp 0x2d19f
movq %r15, %rdi
movq %rsp, %rdx
callq 0x35950
incq %r12
movq 0x10(%rbx), %rax
movq 0x18(%rbx), %rcx
subq %rax, %rcx
shrq $0x3, %rcx
movslq %ecx, %rcx
cmpq %rcx, %r12
jl 0x2d160
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_O3/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 0x2d5fb
movl $0x68, %edi
callq 0xf370
movq %rax, %r12
movq %rax, %rdi
movq %r13, %rsi
callq 0x24386
movq %r12, (%rbx)
movq 0x10(%r15), %rax
movq 0x18(%r15), %rcx
subq %rax, %rcx
shrq $0x3, %rcx
testl %ecx, %ecx
jle 0x2d689
xorl %r12d, %r12d
movq (%rax,%r12,8), %rbp
movl $0x68, %edi
callq 0xf370
movq %rax, %r13
movq %rax, %rdi
movq %rbp, %rsi
callq 0x24386
cmpl $0x7, 0x20(%r13)
jne 0x2d664
movq %r13, %rbp
addq $0x20, %rbp
movl 0x8(%r14), %edx
addq 0x30(%r13), %rdx
leaq 0x8(%rsp), %rdi
movl $0x7, %esi
callq 0x23374
movups 0x8(%rsp), %xmm0
movups 0x14(%rsp), %xmm1
movups %xmm1, 0xc(%rbp)
movups %xmm0, (%rbp)
movq %rbx, %rdi
movq %r13, %rsi
callq 0x20118
incq %r12
movq 0x10(%r15), %rax
movq 0x18(%r15), %rcx
subq %rax, %rcx
shrq $0x3, %rcx
movslq %ecx, %rcx
cmpq %rcx, %r12
jl 0x2d611
leaq 0x30(%r14), %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2d1e0
testb %al, %al
jne 0x2d6b1
movq %rbx, %rdi
callq 0x24a4a
movl $0x28, %esi
movq %rbx, %rdi
callq 0xf380
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movl $0x68, %esi
movq %r12, %rdi
jmp 0x2d6d8
movq %rax, %rbx
movl $0x68, %esi
movq %r13, %rdi
callq 0xf380
movq %rbx, %rdi
callq 0xf730
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r12
movq %rdi, %r14
movl $0x28, %edi
callq 0xf370
movq %rax, %rbx
movl 0x8(%r12), %eax
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rbx)
xorl %ecx, %ecx
movq %rcx, 0x20(%rbx)
movl %eax, 0x8(%rbx)
movq %rcx, (%rbx)
movq %rbx, (%rsp)
movl $0x68, %edi
callq 0xf370
movq %rax, %r15
movq 0x10(%r12), %rax
movq (%rax), %rsi
movq %r15, %rdi
callq 0x24386
movl 0x8(%r14), %edx
addq 0x30(%r15), %rdx
leaq 0x8(%rsp), %r12
movq %r12, %rdi
xorl %esi, %esi
callq 0x23374
movups (%r12), %xmm0
movups 0xc(%r12), %xmm1
movups %xmm1, 0x2c(%r15)
movups %xmm0, 0x20(%r15)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x20118
movq 0x28(%r14), %rdi
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x2d78c
movq %rbx, (%rsi)
addq $0x8, 0x8(%rdi)
jmp 0x2d794
movq %rsp, %rdx
callq 0x2044c
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
movl $0x68, %esi
movq %r15, %rdi
callq 0xf380
movq %rbx, %rdi
callq 0xf730
// File: /workspace/github_cpp_makefile_star2_O3/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 0x27e80
leaq 0x5d36e(%rip), %rax     # 0x8abd0
movq %rax, (%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x1e8(%rbx)
movups %xmm0, 0x1f5(%rbx)
leaq 0x5d48b(%rip), %rax     # 0x8ad08
movq %rax, 0x1e0(%rbx)
leaq 0x218(%rbx), %rcx
xorl %eax, %eax
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)
movq %rax, 0x350(%rbx)
movups %xmm0, 0x340(%rbx)
movups %xmm0, 0x2e8(%rbx)
movups %xmm0, 0x2f8(%rbx)
movups %xmm0, 0x308(%rbx)
movups %xmm0, 0x318(%rbx)
movq %rax, 0x328(%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
// File: /workspace/github_cpp_makefile_star2_O3/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 0x4f1fc
movq 0x288(%rbx), %rax
cmpq %rax, 0x290(%rbx)
je 0x2e3b0
xorl %r15d, %r15d
movq %rsp, %r14
movq (%rax,%r15,8), %rdi
movq %r14, %rsi
callq 0x4f1fc
incq %r15
movq 0x288(%rbx), %rax
movq 0x290(%rbx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %r15, %rcx
ja 0x2e387
movq (%rsp), %rax
cmpq %rax, 0x8(%rsp)
je 0x2e3fe
movl $0x8, %r15d
xorl %r12d, %r12d
movq 0x5ec1d(%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 0x2e3cb
cmpb $0x0, 0x336(%rbx)
jne 0x2e457
movq 0x18(%rsp), %rax
cmpq %rax, 0x20(%rsp)
je 0x2e457
movl $0x8, %r15d
xorl %r12d, %r12d
movq 0x5ebc5(%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 0x2e423
leaq 0x18(%rsp), %rdi
callq 0x138c4
movq %rsp, %rdi
callq 0x138c4
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0x2e47b
jmp 0x2e47b
jmp 0x2e47b
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x138c4
movq %rsp, %rdi
callq 0x138c4
movq %rbx, %rdi
callq 0xf730
// File: /workspace/github_cpp_makefile_star2_O3/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 0x2e56b
movq 0x5eb29(%rip), %rsi     # 0x8cfe8
callq 0x4e3c8
movq 0x190(%rbx), %rax
cmpb $0x1, 0x39(%rax)
jne 0x2e4d7
incl 0x358(%rbx)
movq 0x288(%rbx), %rax
movq 0x290(%rbx), %rcx
cmpq %rax, %rcx
je 0x2e5ad
leaq 0x10(%rsp), %r12
xorl %r13d, %r13d
leaq 0x33d7a(%rip), %r14     # 0x62277
movq %rsp, %r15
movq (%rax,%r13,8), %rdx
cmpb $0x1, 0x39(%rdx)
jne 0x2e510
incl 0x358(%rbx)
cmpq $0x0, 0x30(%rdx)
jne 0x2e557
addq $0x8, %rdx
movq %r15, %rdi
movq %r14, %rsi
callq 0x1170e
movq %rbx, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x2e5f0
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x2e549
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xf380
movq 0x288(%rbx), %rax
movq 0x290(%rbx), %rcx
incq %r13
movq %rcx, %rdx
subq %rax, %rdx
sarq $0x3, %rdx
cmpq %r13, %rdx
ja 0x2e500
jmp 0x2e5ad
leaq 0x10(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x33ce6(%rip), %rsi     # 0x62261
leaq 0x33cf4(%rip), %rdx     # 0x62276
movq %rsp, %rdi
callq 0x117f6
movq %rsp, %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x2d000
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x2e5ad
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 0x2e5da
jmp 0x2e5e7
movq %rax, %rbx
jmp 0x2e5e7
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x2e5e7
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xf380
movq %rbx, %rdi
callq 0xf730
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 0x5e9e2(%rip), %r14     # 0x8cfe8
leaq 0x33e75(%rip), %rsi     # 0x62482
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 0x2e69b
leaq 0x339a6(%rip), %rsi     # 0x61ff7
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 0x33ce7(%rip), %rsi     # 0x62375
movl $0x2, %edx
movq %rax, %rdi
callq 0xf420
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq 0x5e93f(%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_O3/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
leaq 0x190(%rdi), %rax
xorl %r14d, %r14d
movq $-0x1, %r15
movq (%rax), %r12
movq 0x48(%r12), %r13
subq 0x40(%r12), %r13
shrq $0x3, %r13
testl %r13d, %r13d
jle 0x2ec35
andl $0x7fffffff, %r13d      # imm = 0x7FFFFFFF
xorl %ebp, %ebp
movq 0x40(%r12), %rax
movq (%rax,%rbp,8), %rsi
movq %rbx, %rdi
callq 0x2e9b0
xorb $0x1, %al
movzbl %al, %eax
addl %eax, %r14d
incq %rbp
cmpq %rbp, %r13
jne 0x2ec14
incq %r15
movq 0x288(%rbx), %rax
movq 0x290(%rbx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %r15, %rcx
jbe 0x2ec58
leaq (%rax,%r15,8), %rax
jmp 0x2ebf5
testl %r14d, %r14d
jle 0x2ece5
movq 0x5e380(%rip), %r15     # 0x8cfe8
leaq 0x336ff(%rip), %rsi     # 0x6236e
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 0x336d0(%rip), %rsi     # 0x62378
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 0x2ecf4
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x336b2(%rip), %rsi     # 0x623ad
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
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 0x2ef6b
leaq 0x33542(%rip), %r12     # 0x62415
movq %rsp, %r13
movq 0x20(%r15), %rbp
movq (%rbp), %rax
movq %rbp, %rdi
callq *0x10(%rax)
cmpl $0x11, %eax
jne 0x2ef57
cmpl $0x0, 0x38(%rbp)
je 0x2ef23
cmpb $0x0, 0x34(%rbp)
jne 0x2ef57
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 0x3351a(%rip), %rsi     # 0x6243b
jmp 0x2ef4f
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 0x334d1(%rip), %rsi     # 0x62420
movq %rax, %rdi
callq 0xf420
movq %r15, %rdi
callq 0xf430
movq %rax, %r15
cmpq %r14, %rax
jne 0x2eed6
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0xf640
movq 0x5e039(%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 0x2efa8
movq %rax, %rbx
movq 0x5e006(%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_O3/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 0x2ed3e
cmpq $0x0, 0xa0(%rbx)
jne 0x2f029
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x33497(%rip), %rsi     # 0x6248e
leaq 0x334aa(%rip), %rdx     # 0x624a8
movq %rsp, %rdi
callq 0x117f6
movq %rsp, %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x2d000
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x2f029
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xf380
cmpl $0x0, 0x358(%rbx)
jg 0x2f095
movq %rbx, %rdi
callq 0x2e6e4
cmpl $0x0, 0x358(%rbx)
jg 0x2f095
movq %rbx, %rdi
callq 0x2ebd6
cmpl $0x0, 0x358(%rbx)
jg 0x2f095
movq %rbx, %rdi
callq 0x2e498
cmpl $0x0, 0x358(%rbx)
jg 0x2f095
movq %rbx, %rdi
callq 0x2e346
cmpl $0x0, 0x358(%rbx)
jg 0x2f095
movq %rbx, %rdi
callq 0x27ef4
movq %rbx, %rdi
callq 0x2f110
addq $0x198, %rbx            # imm = 0x198
movq %rbx, %rdi
callq 0x48c44
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r14
cmpl $0x1, %edx
jne 0x2f107
movq %r14, %rdi
callq 0xf180
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq 0x5df2b(%rip), %rdi     # 0x8cfe8
callq 0xf420
movq %rax, %rdi
callq 0xf1a0
incl 0x358(%rbx)
callq 0xf680
jmp 0x2f095
movq %rax, %r14
callq 0xf680
jmp 0x2f107
movq %rax, %rdi
callq 0x13a37
movq %rax, %r14
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x2f107
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xf380
jmp 0x2f107
movq %rax, %r14
movq %r14, %rdi
callq 0xf730
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 0x2f21e
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl $0xff, 0x1d4(%rdi)
movq 0x2a8(%rdi), %r15
subq 0x2a0(%rdi), %r15
shrq $0x3, %r15
movq %rdi, 0x10(%rsp)
leaq 0x190(%rdi), %rax
movq $-0x1, 0x8(%rsp)
movq (%rax), %r13
movq 0x48(%r13), %rbx
subq 0x40(%r13), %rbx
shrq $0x3, %rbx
testl %ebx, %ebx
jle 0x2f1c5
andl $0x7fffffff, %ebx       # imm = 0x7FFFFFFF
xorl %r12d, %r12d
movq 0x40(%r13), %rax
movq (%rax,%r12,8), %r14
movq 0x60(%r14), %rdi
testq %rdi, %rdi
je 0x2f193
movl $0x8, %esi
callq 0x326ea
testl %r15d, %r15d
jle 0x2f1bd
xorl %ebp, %ebp
movq %r14, %rdi
movl %ebp, %esi
callq 0x4cae0
testq %rax, %rax
je 0x2f1b6
movq %rax, %rdi
movl $0x8, %esi
callq 0x326ea
incl %ebp
cmpl %ebp, %r15d
jne 0x2f19a
incq %r12
cmpq %rbx, %r12
jne 0x2f178
movq 0x8(%rsp), %rsi
incq %rsi
movq 0x10(%rsp), %rdx
movq 0x288(%rdx), %rax
movq 0x290(%rdx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %rsi, %rcx
jbe 0x2f1fa
movq %rsi, 0x8(%rsp)
leaq (%rax,%rsi,8), %rax
jmp 0x2f15c
movl 0x124(%rdx), %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 0x2f21e
movl %eax, 0x124(%rdx)
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 0x2f3c4
movq %rdi, %rbx
movb $0x1, 0x2e0(%rdi)
movq 0x240(%rdi), %r15
movq 0x248(%rdi), %r14
cmpq %r14, %r15
je 0x2f3c4
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 0x35bd8
movq 0x10(%r12), %rdx
testq %rdx, %rdx
je 0x2f29f
movq 0x8(%rsp), %rcx
movq %r15, %rdi
movq %r14, %rsi
callq 0x35cc9
jmp 0x2f2aa
movq %r15, %rdi
movq %r14, %rsi
callq 0x35c4c
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdi
shlq $0x4, %rsi
callq 0xf380
movq 0x240(%rbx), %rcx
movq 0x248(%rbx), %rdi
subq %rcx, %rdi
je 0x2f3c4
sarq $0x4, %rdi
xorl %r8d, %r8d
xorl %eax, %eax
xorl %esi, %esi
leal 0x1(%rsi), %r15d
movl $0x1, %edx
movl %r15d, %r14d
cmpq %r15, %rdi
jbe 0x2f32c
shlq $0x4, %r8
movq (%rcx,%r8), %r8
movl %esi, %r14d
movq %r14, %rdx
shlq $0x4, %rdx
addq %rdx, %rcx
addq $0x10, %rcx
movl $0x1, %edx
cmpq %r8, (%rcx)
jne 0x2f326
leaq (%r14,%rdx), %r9
incq %r9
incq %rdx
addq $0x10, %rcx
cmpq %r9, %rdi
ja 0x2f30e
addq %rdx, %r14
movl %r14d, %r15d
movq %rbx, %rdi
movl %eax, %ecx
callq 0x2de0a
movq 0x240(%rbx), %rcx
movq 0x248(%rbx), %rdx
movq %rdx, %rdi
subq %rcx, %rdi
sarq $0x4, %rdi
movq %r15, %r8
movl %r14d, %esi
cmpq %r15, %rdi
ja 0x2f2df
cmpq %rcx, %rdx
je 0x2f3c4
movl $0x8, %r15d
xorl %r12d, %r12d
movq (%rcx,%r15), %r14
testq %r14, %r14
je 0x2f387
movq (%r14), %rdi
leaq 0x10(%r14), %rax
cmpq %rax, %rdi
je 0x2f387
movq (%rax), %rsi
incq %rsi
callq 0xf380
movl $0x30, %esi
movq %r14, %rdi
callq 0xf380
incq %r12
movq 0x240(%rbx), %rcx
movq 0x248(%rbx), %rax
movq %rax, %rdx
subq %rcx, %rdx
sarq $0x4, %rdx
addq $0x10, %r15
cmpq %r12, %rdx
ja 0x2f367
cmpq %rcx, %rax
je 0x2f3c4
movq %rcx, 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
// File: /workspace/github_cpp_makefile_star2_O3/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 0x14a38
leaq 0x300(%rbx), %rdi
leaq 0x40(%rsp), %rsi
callq 0x1534a
leaq 0x2e8(%rbx), %r14
movq 0x2f0(%rbx), %rax
cmpq %rax, 0x2e8(%rbx)
je 0x2f4c5
cmpq $0x0, 0x8(%rsp)
je 0x2f4d2
movq (%rsp), %rcx
movb (%rcx), %cl
leaq 0x5df7f(%rip), %rdx     # 0x8d440
cmpb (%rdx), %cl
jne 0x2f4d2
movq %rsp, %rsi
movq %r14, %rdi
callq 0x1534a
jmp 0x2f527
leaq 0x30(%rsp), %r13
movq %r13, -0x10(%r13)
movq -0x20(%rax), %rsi
movq -0x18(%rax), %rdx
addq %rsi, %rdx
leaq 0x20(%rsp), %rdi
callq 0x15420
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
leaq 0x20(%rsp), %rdi
callq 0xf130
leaq 0x20(%rsp), %rsi
movq %r14, %rdi
callq 0x1534a
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x2f527
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xf380
movl $0x1, 0x20(%rsp)
movq 0x320(%rbx), %rsi
cmpq 0x328(%rbx), %rsi
je 0x2f552
movl $0x1, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x320(%rbx)
jmp 0x2f566
addq $0x318, %rbx            # imm = 0x318
leaq 0x20(%rsp), %rdx
movq %rbx, %rdi
callq 0x3550e
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x2f57c
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xf380
movq 0x40(%rsp), %rdi
cmpq %r15, %rdi
je 0x2f593
movq 0x50(%rsp), %rsi
incq %rsi
callq 0xf380
addq $0x60, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0x2f5c1
jmp 0x2f5c1
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x2f5c4
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xf380
jmp 0x2f5c4
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x2f5da
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xf380
movq 0x40(%rsp), %rdi
cmpq %r15, %rdi
je 0x2f5f1
movq 0x50(%rsp), %rsi
incq %rsi
callq 0xf380
movq %rbx, %rdi
callq 0xf730
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 0x36902
movq %rax, %r15
addq $0x218, %rbx            # imm = 0x218
cmpq %rbx, %rax
je 0x2f76e
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_O3/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 0x36d0a
movq %rax, %r15
addq $0x218, %rbx            # imm = 0x218
cmpq %rbx, %rax
je 0x2f7c7
movq %r14, %rdi
movq %r15, %rsi
callq 0x36d50
cmpq %rbx, %r15
setne %al
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 0x2f85d
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 0x15420
leaq 0x32c8b(%rip), %rsi     # 0x624b0
movq %r15, %rdi
callq 0xf780
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
movl $0x1, %edx
callq 0x2d000
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x2f856
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xf380
shrl $0x3, %ebp
incl %ebp
jmp 0x2f860
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 0x15420
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 0x2f8d7
movq %r15, (%rsi)
addq $0x8, 0x278(%rbx)
jmp 0x2f8e8
leaq 0x270(%rbx), %rdi
leaq 0x8(%rsp), %rdx
callq 0x36d8e
movq (%r14), %rdi
leaq 0x10(%r14), %rax
cmpq %rax, %rdi
je 0x2f8ff
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 0x20362
leaq 0x5b440(%rip), %rax     # 0x8ad70
movq %rax, (%r14)
movq %r15, 0x30(%r14)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2d7f2
movq %r14, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2f956
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x2f98a
movq 0x18(%rsp), %rsi
incq %rsi
jmp 0x2f985
movq %rax, %rbx
movl $0x38, %esi
movq %r14, %rdi
jmp 0x2f985
movq %rax, %rbx
movl $0x30, %esi
movq %r15, %rdi
callq 0xf380
movq %rbx, %rdi
callq 0xf730
// File: /workspace/github_cpp_makefile_star2_O3/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 0x2fa8a
movq %rsi, (%rsp)
movq %rdx, 0x8(%rsp)
movq 0x248(%rdi), %rsi
cmpq 0x250(%rdi), %rsi
je 0x2fa7b
movups (%rsp), %xmm0
movups %xmm0, (%rsi)
addq $0x10, 0x248(%rdi)
jmp 0x2fa8a
addq $0x240, %rdi            # imm = 0x240
movq %rsp, %rdx
callq 0x36eca
xorb $0x1, %bl
movl %ebx, %eax
addq $0x10, %rsp
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 0x20362
subq %r13, %r12
shrq $0x3, %r12
leaq 0x5b0db(%rip), %rax     # 0x8adc8
movq %rax, (%r14)
movl %r12d, 0x30(%r14)
movq $0x0, 0x34(%r14)
movq %r14, 0x8(%rsp)
leaq 0x198(%rbx), %rdi
movq %r14, %rsi
callq 0x47aea
movq 0x2a8(%rbx), %rsi
cmpq 0x2b0(%rbx), %rsi
je 0x2fd37
movq %r14, (%rsi)
movq 0x2a8(%rbx), %rax
addq $0x8, %rax
movq %rax, 0x2a8(%rbx)
jmp 0x2fd55
leaq 0x2a0(%rbx), %rdi
leaq 0x8(%rsp), %r14
movq %r14, %rdx
callq 0x3700a
movq 0x2a8(%rbx), %rax
movq (%r14), %r14
subq 0x2a0(%rbx), %rax
shrq $0x3, %rax
movl %eax, 0x1d8(%rbx)
movq %r14, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %r15
cmpl $0x1, %edx
jne 0x2fdc3
movq %r15, %rdi
callq 0xf180
movq %rbx, %rdi
movq %rax, %rsi
movl $0x1, %edx
callq 0x2d000
callq 0xf680
jmp 0x2fd10
movq %rax, %r15
callq 0xf680
jmp 0x2fdc3
movq %rax, %rdi
callq 0x13a37
movq %rax, %r15
movl $0x40, %esi
movq %r14, %rdi
callq 0xf380
movq %r15, %rdi
callq 0xf730
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 0x2fe7b
movq 0x30(%rsi), %rax
movq %rax, 0x8(%rsp)
movq (%rsp), %rax
movq (%rax), %rbp
xorl %r12d, %r12d
xorl %r13d, %r13d
addq %r12, %rdi
leaq 0x326ef(%rip), %rsi     # 0x62511
callq 0xf110
testl %eax, %eax
je 0x2fe5e
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 0x4a14c
movq 0x10(%rsp), %rdi
movq %r14, %rsi
callq 0x2d7f2
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 0x2fe18
movq %r15, %rdi
callq 0x138c4
movl $0x18, %esi
movq %r15, %rdi
callq 0xf380
movl $0x8, %esi
movq (%rsp), %rdi
callq 0xf380
movl $0x8, %esi
movq %rbx, %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xf380
movq %rax, %rbx
movl $0x58, %esi
movq %r14, %rdi
callq 0xf380
movq %rbx, %rdi
callq 0xf730
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 0x30186
movq %rdi, %r14
xorl %r13d, %r13d
leaq 0x5c3e2(%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 0x20362
movq (%rsp), %rax
movq %rax, (%r12)
movl 0x330(%r14), %eax
leal 0x1(%rax), %ecx
movl %ecx, 0x330(%r14)
movl %eax, 0x30(%r12)
movq %r14, %rdi
movq %r12, %rsi
callq 0x2d7f2
incq %rbp
movq (%rbx), %r15
movq 0x8(%rbx), %rax
subq %r15, %rax
sarq $0x5, %rax
addq $0x20, %r13
cmpq %rbp, %rax
ja 0x30128
movq %rbx, %rdi
callq 0x138c4
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
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 0x4e708
movq %r15, 0x8(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x2d7f2
movq 0x290(%r14), %rsi
cmpq 0x298(%r14), %rsi
je 0x30b08
movq %r15, (%rsi)
addq $0x8, 0x290(%r14)
jmp 0x30b1c
addq $0x288, %r14            # imm = 0x288
leaq 0x8(%rsp), %rdx
movq %r14, %rdi
callq 0x353d2
movq (%rbx), %rdi
leaq 0x10(%rbx), %rax
cmpq %rax, %rdi
je 0x30b33
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
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 0x4b2aa
movq %r12, %rdi
movq %r15, %rsi
callq 0x2d7f2
movq %r14, %rdi
movq %r15, %rsi
callq 0x4c83e
movq (%rbx), %rdi
leaq 0x10(%rbx), %rax
cmpq %rax, %rdi
je 0x30bd1
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_O3/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 0x30c62
leaq 0x59f90(%rip), %rsi     # 0x8aba8
leaq 0x5a021(%rip), %rdx     # 0x8ac40
xorl %ecx, %ecx
callq 0xf410
testq %rax, %rax
je 0x30c62
movq %rax, %r15
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 0x3de4a
leaq 0x5abf7(%rip), %rax     # 0x8b850
addq $0x10, %rax
movq %rax, (%r14)
jmp 0x30c6d
movq %rbx, %rdi
callq 0x3bab8
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