LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: VarnodeListSymbol::restoreXml(Element const*, SleighBase*)
void VarnodeListSymbol::restoreXml(const Element *el,SleighBase *trans)

{
  const List &list(el->getChildren());
  List::const_iterator iter;
  iter = list.begin();
  patval = (PatternValue *) PatternExpression::restoreExpression(*iter,trans);
  patval->layClaim();
  ++iter;
  while(iter!=list.end()) {
    const Element *subel = *iter;
    if (subel->getName() == "var") {
      uintm id;
      istringstream s(subel->getAttributeValue("id"));
      s.unsetf(ios::dec | ios::hex | ios::oct);
      s >> id;
      varnode_table.push_back( (VarnodeSymbol *)trans->findSymbol(id) );
    }
    else
      varnode_table.push_back( (VarnodeSymbol *)0 );
    ++iter;
  }
  checkTableFill();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1b8, %rsp            # imm = 0x1B8
movq %rsi, %r15
movq %rdi, %rbx
movq 0x78(%rsi), %rbp
movq (%rbp), %rdi
movq %rdx, 0x30(%rsp)
movq %rdx, %rsi
callq 0x407c0
movq %rbx, 0x8(%rsp)
movq %rax, 0x30(%rbx)
incl 0x8(%rax)
addq $0x8, %rbp
cmpq 0x80(%r15), %rbp
je 0x681af
movq 0x8(%rsp), %rax
leaq 0x38(%rax), %r12
leaq 0x10(%rsp), %rbx
leaq 0x38(%rsp), %r13
movq (%rbp), %r14
movq %r14, %rdi
leaq 0x192db(%rip), %rsi     # 0x813a5
callq 0x3f590
testl %eax, %eax
je 0x680ec
movq $0x0, 0x38(%rsp)
movq %r12, %rdi
movq %r13, %rsi
callq 0x41de0
jmp 0x6819e
leaq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
movq %rbx, %rdi
leaq 0x17c10(%rip), %rsi     # 0x7fd10
leaq 0x17c0b(%rip), %rdx     # 0x7fd12
callq 0x3f8a0
movq %r14, %rdi
movq %rbx, %rsi
callq 0x40f70
movq %r13, %rdi
movq %rax, %rsi
movl $0x8, %edx
callq 0x41c80
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x68143
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x40870
movq 0x38(%rsp), %rax
movq -0x18(%rax), %rax
andl $-0x4b, 0x50(%rsp,%rax)
movq %r13, %rdi
leaq 0x4(%rsp), %rsi
callq 0x41eb0
movl 0x4(%rsp), %eax
movq 0x30(%rsp), %rcx
movq 0x198(%rcx), %rcx
movq (%rcx,%rax,8), %rax
movq %rax, 0x10(%rsp)
movq %r12, %rdi
movq %rbx, %rsi
callq 0x41de0
movq %r13, %rdi
movq 0x3ab84(%rip), %rsi     # 0xa2d10
callq 0x41440
leaq 0xb0(%rsp), %rdi
callq 0x3f730
addq $0x8, %rbp
cmpq 0x80(%r15), %rbp
jne 0x680bc
movq 0x8(%rsp), %rdi
callq 0x41be0
addq $0x1b8, %rsp            # imm = 0x1B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x681cd
movq %rax, %rbx
movq 0x3ab39(%rip), %rsi     # 0xa2d10
leaq 0x38(%rsp), %rdi
callq 0x41440
leaq 0xb0(%rsp), %rdi
callq 0x3f730
jmp 0x68214
movq %rax, %rbx
jmp 0x68214
movq %rax, %rbx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x68214
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x40870
movq %rbx, %rdi
callq 0x41f00
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: OperandSymbol::OperandSymbol(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, int, Constructor*)
OperandSymbol::OperandSymbol(const string &nm,int4 index,Constructor *ct)
  : SpecificSymbol(nm)
{
  flags = 0;
  hand = index;
  localexp = new OperandValue(index,ct);
  localexp->layClaim();
  defexp = (PatternExpression *)0;
  triple = (TripleSymbol *)0;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rcx, %r14
movl %edx, %ebp
movq %rdi, %rbx
callq 0x40550
movq 0x3a894(%rip), %rax     # 0xa2ac8
addq $0x10, %rax
movq %rax, (%rbx)
movl $0x0, 0x58(%rbx)
movl %ebp, 0x3c(%rbx)
movl $0x18, %edi
callq 0x40800
movl $0x0, 0x8(%rax)
movq 0x3abe3(%rip), %rcx     # 0xa2e40
addq $0x10, %rcx
movq %rcx, (%rax)
movl %ebp, 0xc(%rax)
movq %r14, 0x10(%rax)
movq %rax, 0x40(%rbx)
movl $0x1, 0x8(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x48(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %r14
movq 0x3a824(%rip), %rax     # 0xa2ab0
addq $0x10, %rax
movq %rax, (%rbx)
movq 0x8(%rbx), %rdi
addq $0x18, %rbx
cmpq %rbx, %rdi
je 0x682ab
movq (%rbx), %rsi
incq %rsi
callq 0x40870
movq %r14, %rdi
callq 0x41f00
nop
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: OperandSymbol::defineOperand(PatternExpression*)
void OperandSymbol::defineOperand(PatternExpression *pe)

{
  if ((defexp != (PatternExpression *)0)||(triple!=(TripleSymbol *)0))
    throw SleighError("Redefining operand");
  defexp = pe;
  defexp->layClaim();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq 0x48(%rdi), %rax
orq 0x50(%rdi), %rax
jne 0x682da
movq %rsi, 0x50(%rdi)
incl 0x8(%rsi)
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0x3fb00
movq %rax, %rbx
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x190b2(%rip), %rsi     # 0x813a9
leaq 0x190bd(%rip), %rdx     # 0x813bb
leaq 0x8(%rsp), %rdi
callq 0x3f8a0
movb $0x1, %bpl
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x3f890
xorl %ebp, %ebp
movq 0x3ab6f(%rip), %rsi     # 0xa2e90
movq 0x3a910(%rip), %rdx     # 0xa2c38
movq %rbx, %rdi
callq 0x41d60
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x68352
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x40870
jmp 0x68352
movq %rax, %r14
movb $0x1, %bpl
testb %bpl, %bpl
je 0x6835f
movq %rbx, %rdi
callq 0x40080
movq %r14, %rdi
callq 0x41f00
nop
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: OperandSymbol::getVarnode() const
VarnodeTpl *OperandSymbol::getVarnode(void) const

{
  VarnodeTpl *res;
  if (defexp != (PatternExpression *)0)
    res = new VarnodeTpl(hand,true); // Definite constant handle
  else {
    SpecificSymbol *specsym = dynamic_cast<SpecificSymbol *>(triple);
    if (specsym != (SpecificSymbol *)0)
      res = specsym->getVarnode();
    else if ((triple != (TripleSymbol *)0)&&
	     ((triple->getType() == valuemap_symbol)||(triple->getType() == name_symbol)))
      res = new VarnodeTpl(hand,true); // Zero-size symbols
    else
      res = new VarnodeTpl(hand,false); // Possible dynamic handle
  }
  return res;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpq $0x0, 0x50(%rdi)
je 0x684c4
movl $0x68, %edi
callq 0x40800
movq %rax, %r14
movl 0x3c(%rbx), %esi
movq %rax, %rdi
movl $0x1, %edx
callq 0x3f230
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq 0x48(%rbx), %r14
testq %r14, %r14
je 0x684e7
movq 0x3aa1c(%rip), %rsi     # 0xa2ef0
movq 0x3a88d(%rip), %rdx     # 0xa2d68
movq %r14, %rdi
xorl %ecx, %ecx
callq 0x40b50
jmp 0x684e9
xorl %eax, %eax
testq %rax, %rax
je 0x684fe
movq (%rax), %rcx
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmpq *0x60(%rcx)
testq %r14, %r14
je 0x68542
movq (%r14), %rax
movq %r14, %rdi
callq *0x10(%rax)
cmpl $0x4, %eax
je 0x68520
movq 0x48(%rbx), %rdi
movq (%rdi), %rax
callq *0x10(%rax)
cmpl $0x5, %eax
jne 0x68542
movl $0x68, %edi
callq 0x40800
movq %rax, %r14
movl 0x3c(%rbx), %esi
movq %rax, %rdi
movl $0x1, %edx
callq 0x3f230
jmp 0x684b9
movl $0x68, %edi
callq 0x40800
movq %rax, %r14
movl 0x3c(%rbx), %esi
movq %rax, %rdi
xorl %edx, %edx
callq 0x3f230
jmp 0x684b9
jmp 0x68565
jmp 0x68565
movq %rax, %rbx
movl $0x68, %esi
movq %r14, %rdi
callq 0x40870
movq %rbx, %rdi
callq 0x41f00
nop
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: OperandSymbol::print(std::ostream&, ParserWalker&) const
void OperandSymbol::print(ostream &s,ParserWalker &walker) const

{
  walker.pushOperand(getIndex());
  if (triple != (TripleSymbol *)0) {
    if (triple->getType() == SleighSymbol::subtable_symbol)
      walker.getConstructor()->print(s,walker);
    else
      triple->print(s,walker);
  }
  else {
    intb val = defexp->getValue(walker);
    if (val >= 0)
      s << "0x" << hex << val;
    else
      s << "-0x" << hex << -val;
  }
  walker.popOperand();
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movslq 0x3c(%rdi), %rax
leal 0x1(%rax), %ecx
movslq 0x18(%rdx), %rdx
leal 0x1(%rdx), %esi
movl %esi, 0x18(%rbx)
movl %ecx, 0x1c(%rbx,%rdx,4)
movq 0x10(%rbx), %rcx
movq 0x40(%rcx), %rcx
movq (%rcx,%rax,8), %rax
movq %rax, 0x10(%rbx)
movslq 0x18(%rbx), %rax
movl $0x0, 0x1c(%rbx,%rax,4)
movq 0x48(%rdi), %rdi
testq %rdi, %rdi
je 0x6862a
movq (%rdi), %rax
callq *0x10(%rax)
cmpl $0xb, %eax
jne 0x6866c
movq 0x10(%rbx), %rax
movq (%rax), %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x3f050
jmp 0x686b7
movq 0x50(%r15), %rdi
movq (%rdi), %rax
movq %rbx, %rsi
callq *0x10(%rax)
movq %rax, %r15
testq %rax, %rax
js 0x6867e
leaq 0x18a6e(%rip), %rsi     # 0x810b4
movl $0x2, %edx
movq %r14, %rdi
callq 0x40b80
movq (%r14), %rax
movq -0x18(%rax), %rax
movl 0x18(%r14,%rax), %ecx
andl $-0x4b, %ecx
orl $0x8, %ecx
movl %ecx, 0x18(%r14,%rax)
jmp 0x686ac
movq 0x48(%r15), %rdi
movq (%rdi), %rax
movq %r14, %rsi
movq %rbx, %rdx
callq *0x50(%rax)
jmp 0x686b7
leaq 0x18ad2(%rip), %rsi     # 0x81157
movl $0x3, %edx
movq %r14, %rdi
callq 0x40b80
movq (%r14), %rax
movq -0x18(%rax), %rax
movl 0x18(%r14,%rax), %ecx
andl $-0x4b, %ecx
orl $0x8, %ecx
movl %ecx, 0x18(%r14,%rax)
negq %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x406f0
movq 0x10(%rbx), %rax
movq 0x58(%rax), %rax
movq %rax, 0x10(%rbx)
decl 0x18(%rbx)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: OperandSymbol::saveXml(std::ostream&) const
void OperandSymbol::saveXml(ostream &s) const

{
  s << "<operand_sym";
  SleighSymbol::saveXmlHeader(s);
  if (triple != (TripleSymbol *)0)
    s << " subsym=\"0x" << hex << triple->getId() << "\"";
  s << " off=\"" << dec << reloffset << "\"";
  s << " base=\"" << offsetbase << "\"";
  s << " minlen=\"" << minimumlength << "\"";
  if (isCodeAddress())
    s << " code=\"true\"";
  s << " index=\"" << dec << hand << "\">\n";
  localexp->saveXml(s);
  if (defexp != (PatternExpression *)0)
    defexp->saveXml(s);
  s << "</operand_sym>\n";
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x18c64(%rip), %rsi     # 0x813bc
movl $0xc, %edx
movq %rbx, %rdi
callq 0x40b80
movq %r14, %rdi
movq %rbx, %rsi
callq 0x415b0
cmpq $0x0, 0x48(%r14)
je 0x687c3
leaq 0x18c4b(%rip), %rsi     # 0x813c9
movl $0xb, %edx
movq %rbx, %rdi
callq 0x40b80
movq (%rbx), %rax
movq -0x18(%rax), %rax
movl 0x18(%rbx,%rax), %ecx
andl $-0x4b, %ecx
orl $0x8, %ecx
movl %ecx, 0x18(%rbx,%rax)
movq 0x48(%r14), %rax
movl 0x28(%rax), %esi
movq %rbx, %rdi
callq 0x3ffb0
leaq 0x18e31(%rip), %rsi     # 0x815e7
movl $0x1, %edx
movq %rax, %rdi
callq 0x40b80
leaq 0x18c0b(%rip), %rsi     # 0x813d5
movl $0x6, %edx
movq %rbx, %rdi
callq 0x40b80
movq (%rbx), %rax
movq -0x18(%rax), %rax
movl 0x18(%rbx,%rax), %ecx
andl $-0x4b, %ecx
orl $0x2, %ecx
movl %ecx, 0x18(%rbx,%rax)
movl 0x30(%r14), %esi
movq %rbx, %rdi
callq 0x3ffb0
leaq 0x18de8(%rip), %r15     # 0x815e7
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x40b80
leaq 0x18bc6(%rip), %rsi     # 0x813dc
movl $0x7, %edx
movq %rbx, %rdi
callq 0x40b80
movl 0x34(%r14), %esi
movq %rbx, %rdi
callq 0x41da0
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x40b80
leaq 0x18b9e(%rip), %rsi     # 0x813e4
movl $0x9, %edx
movq %rbx, %rdi
callq 0x40b80
movl 0x38(%r14), %esi
movq %rbx, %rdi
callq 0x41da0
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x40b80
testb $0x1, 0x58(%r14)
je 0x6888a
leaq 0x18b71(%rip), %rsi     # 0x813ee
movl $0xc, %edx
movq %rbx, %rdi
callq 0x40b80
leaq 0x18052(%rip), %rsi     # 0x808e3
movl $0x8, %edx
movq %rbx, %rdi
callq 0x40b80
movq (%rbx), %rax
movq -0x18(%rax), %rax
movl 0x18(%rbx,%rax), %ecx
andl $-0x4b, %ecx
orl $0x2, %ecx
movl %ecx, 0x18(%rbx,%rax)
movl 0x3c(%r14), %esi
movq %rbx, %rdi
callq 0x41da0
leaq 0x18533(%rip), %rsi     # 0x80df9
movl $0x3, %edx
movq %rax, %rdi
callq 0x40b80
movq 0x40(%r14), %rdi
movq (%rdi), %rax
movq %rbx, %rsi
callq *0x38(%rax)
movq 0x50(%r14), %rdi
testq %rdi, %rdi
je 0x688f2
movq (%rdi), %rax
movq %rbx, %rsi
callq *0x38(%rax)
leaq 0x18b02(%rip), %rsi     # 0x813fb
movl $0xf, %edx
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x40b80
nop
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: StartSymbol::getVarnode() const
VarnodeTpl *StartSymbol::getVarnode(void) const

{ // Returns current instruction offset as a constant
  ConstTpl spc(const_space);
  ConstTpl off(ConstTpl::j_start);
  ConstTpl sz_zero;
  return new VarnodeTpl(spc,off,sz_zero);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq 0x30(%rdi), %rsi
leaq 0x48(%rsp), %r14
movq %r14, %rdi
callq 0x40390
leaq 0x28(%rsp), %r15
movq %r15, %rdi
movl $0x2, %esi
callq 0x40760
leaq 0x8(%rsp), %r12
movl $0x0, (%r12)
movq $0x0, 0x10(%r12)
movl $0x68, %edi
callq 0x40800
movq %rax, %rbx
movq %rax, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %r12, %rcx
callq 0x41aa0
movq %rbx, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %r14
movl $0x68, %esi
movq %rbx, %rdi
callq 0x40870
movq %r14, %rdi
callq 0x41f00
nop
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: Constructor::~Constructor()
Constructor::~Constructor(void)

{
  if (pattern != (TokenPattern *)0)
    delete pattern;
  if (pateq != (PatternEquation *)0)
    PatternEquation::release(pateq);
  if (templ != (ConstructTpl *)0)
    delete templ;
  for(int4 i=0;i<namedtempl.size();++i) {
    ConstructTpl *ntpl = namedtempl[i];
    if (ntpl != (ConstructTpl *)0)
      delete ntpl;
  }
  vector<ContextChange *>::iterator iter;
  for(iter=context.begin();iter!=context.end();++iter)
    delete *iter;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %r14
testq %r14, %r14
je 0x6970b
movq %r14, %rdi
callq 0x3fa70
movl $0x28, %esi
movq %r14, %rdi
callq 0x40870
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x69719
callq 0x400d0
movq 0x60(%rbx), %r14
testq %r14, %r14
je 0x69737
movq %r14, %rdi
callq 0x41740
movl $0x28, %esi
movq %r14, %rdi
callq 0x40870
movq 0x68(%rbx), %rax
cmpq %rax, 0x70(%rbx)
je 0x69779
xorl %r15d, %r15d
movq (%rax,%r15,8), %r14
testq %r14, %r14
je 0x69762
movq %r14, %rdi
callq 0x41740
movl $0x28, %esi
movq %r14, %rdi
callq 0x40870
incq %r15
movq 0x68(%rbx), %rax
movq 0x70(%rbx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %r15, %rcx
ja 0x69744
movq 0x48(%rbx), %r14
cmpq 0x50(%rbx), %r14
je 0x69797
movq (%r14), %rdi
testq %rdi, %rdi
je 0x69791
movq (%rdi), %rax
callq *0x8(%rax)
addq $0x8, %r14
jmp 0x6977d
movq 0x68(%rbx), %rdi
testq %rdi, %rdi
je 0x697ac
movq 0x78(%rbx), %rsi
subq %rdi, %rsi
callq 0x40870
movq 0x48(%rbx), %rdi
testq %rdi, %rdi
je 0x697c1
movq 0x58(%rbx), %rsi
subq %rdi, %rsi
callq 0x40870
leaq 0x30(%rbx), %rdi
callq 0x40090
movq 0x18(%rbx), %rdi
testq %rdi, %rdi
je 0x697e4
movq 0x28(%rbx), %rsi
subq %rdi, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0x40870
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rdi
callq 0x477f0
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: Constructor::addOperand(OperandSymbol*)
void Constructor::addOperand(OperandSymbol *sym)

{
  string operstring = "\n ";	// Indicater character for operand
  operstring[1] = ('A'+operands.size()); // Encode index of operand
  operands.push_back(sym);
  printpiece.push_back(operstring); // Placeholder for operand's string
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rdi, %rbx
movq %rsi, 0x8(%rsp)
leaq 0x20(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x16cff(%rip), %rsi     # 0x8053c
leaq 0x16cfa(%rip), %rdx     # 0x8053e
leaq 0x10(%rsp), %r14
movq %r14, %rdi
callq 0x3f8a0
movl 0x20(%rbx), %eax
subl 0x18(%rbx), %eax
shrl $0x3, %eax
addb $0x41, %al
movq (%r14), %rcx
movb %al, 0x1(%rcx)
movq 0x20(%rbx), %rsi
cmpq 0x28(%rbx), %rsi
je 0x6987b
movq 0x8(%rsp), %rax
movq %rax, (%rsi)
addq $0x8, 0x20(%rbx)
jmp 0x69889
leaq 0x18(%rbx), %rdi
leaq 0x8(%rsp), %rdx
callq 0x41b90
addq $0x30, %rbx
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x3fbc0
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x698b1
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x40870
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x698d5
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x40870
movq %rbx, %rdi
callq 0x41f00
nop
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: Constructor::setNamedSection(ConstructTpl*, int)
void Constructor::setNamedSection(ConstructTpl *tpl,int4 id)

{				// Add a named section to the constructor
  while(namedtempl.size() <= id)
    namedtempl.push_back((ConstructTpl *)0);
  namedtempl[id] = tpl;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movslq %edx, %r13
movq 0x68(%rdi), %rax
movq 0x70(%rdi), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %r13, %rcx
ja 0x69aab
movq %rdi, %r14
leaq 0x68(%rdi), %r15
leaq 0x8(%rsp), %r12
movq $0x0, 0x8(%rsp)
movq %r15, %rdi
movq %r12, %rsi
callq 0x3fce0
movq 0x68(%r14), %rax
movq 0x70(%r14), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %r13, %rcx
jbe 0x69a83
movq %rbx, (%rax,%r13,8)
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: Constructor::printMnemonic(std::ostream&, ParserWalker&) const
void Constructor::printMnemonic(ostream &s,ParserWalker &walker) const

{
  if (flowthruindex != -1) {
    SubtableSymbol *sym = dynamic_cast<SubtableSymbol *>(operands[flowthruindex]->getDefiningSymbol());
    if (sym != (SubtableSymbol *)0) {
      walker.pushOperand(flowthruindex);
      walker.getConstructor()->printMnemonic(s,walker);
      walker.popOperand();
      return;
    }
  }
  int4 endind = (firstwhitespace==-1) ? printpiece.size() : firstwhitespace;
  for(int4 i=0;i<endind;++i) {
    if (printpiece[i][0] == '\n') {
      int4 index = printpiece[i][1]-'A';
      operands[index]->print(s,walker);
    }
    else
      s << printpiece[i];
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movslq 0x8c(%rdi), %r12
cmpq $-0x1, %r12
je 0x69b76
movq 0x18(%r15), %rax
movq (%rax,%r12,8), %rax
movq 0x48(%rax), %rdi
testq %rdi, %rdi
je 0x69b76
movq 0x393db(%rip), %rsi     # 0xa2ef0
movq 0x393dc(%rip), %rdx     # 0xa2ef8
xorl %ecx, %ecx
callq 0x40b50
testq %rax, %rax
je 0x69b76
leal 0x1(%r12), %eax
movslq 0x18(%rbx), %rcx
leal 0x1(%rcx), %edx
movl %edx, 0x18(%rbx)
movl %eax, 0x1c(%rbx,%rcx,4)
movq 0x10(%rbx), %rax
movq 0x40(%rax), %rax
movq (%rax,%r12,8), %rax
movq %rax, 0x10(%rbx)
movslq 0x18(%rbx), %rcx
movl $0x0, 0x1c(%rbx,%rcx,4)
movq (%rax), %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x3fbf0
movq 0x10(%rbx), %rax
movq 0x58(%rax), %rax
movq %rax, 0x10(%rbx)
decl 0x18(%rbx)
jmp 0x69bdf
movl 0x88(%r15), %ecx
movq 0x38(%r15), %rax
subq 0x30(%r15), %rax
shrq $0x5, %rax
cmpl $-0x1, %ecx
cmovnel %ecx, %eax
testl %eax, %eax
jle 0x69bdf
movl %eax, %r12d
shlq $0x5, %r12
xorl %r13d, %r13d
movq 0x30(%r15), %rax
movq (%rax,%r13), %rsi
cmpb $0xa, (%rsi)
jne 0x69bc9
movsbq 0x1(%rsi), %rax
movq 0x18(%r15), %rcx
movq -0x208(%rcx,%rax,8), %rdi
movq (%rdi), %rax
movq %r14, %rsi
movq %rbx, %rdx
callq *0x50(%rax)
jmp 0x69bd6
movq 0x8(%rax,%r13), %rdx
movq %r14, %rdi
callq 0x40b80
addq $0x20, %r13
cmpq %r13, %r12
jne 0x69b9d
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: Constructor::printBody(std::ostream&, ParserWalker&) const
void Constructor::printBody(ostream &s,ParserWalker &walker) const

{
  if (flowthruindex != -1) {
    SubtableSymbol *sym = dynamic_cast<SubtableSymbol *>(operands[flowthruindex]->getDefiningSymbol());
    if (sym != (SubtableSymbol *)0) {
      walker.pushOperand(flowthruindex);
      walker.getConstructor()->printBody(s,walker);
      walker.popOperand();
      return;
    }
  }
  if (firstwhitespace == -1) return; // Nothing to print after firstwhitespace
  for(int4 i=firstwhitespace+1;i<printpiece.size();++i) {
    if (printpiece[i][0]=='\n') {
      int4 index = printpiece[i][1]-'A';
      operands[index]->print(s,walker);
    }
    else
      s << printpiece[i];
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movslq 0x8c(%rdi), %r12
cmpq $-0x1, %r12
je 0x69c3a
movq 0x18(%r15), %rax
movq (%rax,%r12,8), %rax
movq 0x48(%rax), %rdi
testq %rdi, %rdi
je 0x69c4b
movq 0x392cd(%rip), %rsi     # 0xa2ef0
movq 0x392ce(%rip), %rdx     # 0xa2ef8
xorl %ecx, %ecx
callq 0x40b50
testq %rax, %rax
sete %bpl
jmp 0x69c4e
movl 0x88(%r15), %ecx
cmpl $-0x1, %ecx
jne 0x69cb1
jmp 0x69d26
movb $0x1, %bpl
testb %bpl, %bpl
jne 0x69c9f
leal 0x1(%r12), %eax
movslq 0x18(%rbx), %rcx
leal 0x1(%rcx), %edx
movl %edx, 0x18(%rbx)
movl %eax, 0x1c(%rbx,%rcx,4)
movq 0x10(%rbx), %rax
movq 0x40(%rax), %rax
movq (%rax,%r12,8), %rax
movq %rax, 0x10(%rbx)
movslq 0x18(%rbx), %rcx
movl $0x0, 0x1c(%rbx,%rcx,4)
movq (%rax), %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x40e40
movq 0x10(%rbx), %rax
movq 0x58(%rax), %rax
movq %rax, 0x10(%rbx)
decl 0x18(%rbx)
movl 0x88(%r15), %ecx
cmpl $-0x1, %ecx
setne %al
testb %al, %bpl
je 0x69d26
leal 0x1(%rcx), %eax
movslq %eax, %r12
movq 0x30(%r15), %rax
movq 0x38(%r15), %rdx
subq %rax, %rdx
sarq $0x5, %rdx
cmpq %r12, %rdx
jbe 0x69d26
movslq %ecx, %r13
shlq $0x5, %r13
addq $0x28, %r13
movq -0x8(%rax,%r13), %rsi
cmpb $0xa, (%rsi)
jne 0x69cff
movsbq 0x1(%rsi), %rax
movq 0x18(%r15), %rcx
movq -0x208(%rcx,%rax,8), %rdi
movq (%rdi), %rax
movq %r14, %rsi
movq %rbx, %rdx
callq *0x50(%rax)
jmp 0x69d0b
movq (%rax,%r13), %rdx
movq %r14, %rdi
callq 0x40b80
incq %r12
movq 0x30(%r15), %rax
movq 0x38(%r15), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
addq $0x20, %r13
cmpq %r12, %rcx
ja 0x69cd6
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: Constructor::removeTrailingSpace()
void Constructor::removeTrailingSpace(void)

{
  // Allow for user to force extra space at end of printing
  if ((!printpiece.empty())&&(printpiece.back()==" "))
    printpiece.pop_back();
  //  while((!printpiece.empty())&&(printpiece.back()==" "))
  //    printpiece.pop_back();
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq 0x38(%rdi), %rdi
cmpq %rdi, 0x30(%rbx)
je 0x69d58
addq $-0x20, %rdi
leaq 0x167ee(%rip), %rsi     # 0x8053d
callq 0x3f590
testl %eax, %eax
je 0x69d5a
popq %rbx
retq
movq 0x38(%rbx), %rax
leaq -0x20(%rax), %rcx
movq %rcx, 0x38(%rbx)
movq -0x20(%rax), %rdi
addq $-0x10, %rax
cmpq %rax, %rdi
je 0x69d58
movq (%rax), %rsi
incq %rsi
popq %rbx
jmp 0x40870
nop
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: Constructor::markSubtableOperands(std::vector<int, std::allocator<int>>&) const
void Constructor::markSubtableOperands(vector<int4> &check) const

{ // Adjust -check- so it has one entry for every operand, a 0 if it is a subtable, a 2 if it is not
  check.resize(operands.size());
  for(int4 i=0;i<operands.size();++i) {
    TripleSymbol *sym = operands[i]->getDefiningSymbol();
    if ((sym != (TripleSymbol *)0)&&(sym->getType() == SleighSymbol::subtable_symbol))
      check[i] = 0;
    else
      check[i] = 2;
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq 0x20(%rdi), %rsi
subq 0x18(%rdi), %rsi
sarq $0x3, %rsi
movq %rbx, %rdi
callq 0x40000
movq 0x18(%r14), %rax
cmpq %rax, 0x20(%r14)
je 0x69de9
xorl %r15d, %r15d
movq (%rax,%r15,8), %rax
movq 0x48(%rax), %rdi
testq %rdi, %rdi
je 0x69dc6
movq (%rdi), %rax
callq *0x10(%rax)
xorl %ecx, %ecx
cmpl $0xb, %eax
je 0x69dcb
movl $0x2, %ecx
movq (%rbx), %rax
movl %ecx, (%rax,%r15,4)
incq %r15
movq 0x18(%r14), %rax
movq 0x20(%r14), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %r15, %rcx
ja 0x69dac
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: Constructor::collectLocalExports(std::vector<unsigned long, std::allocator<unsigned long>>&) const
void Constructor::collectLocalExports(vector<uintb> &results) const

{
  if (templ == (ConstructTpl *)0) return;
  HandleTpl *handle = templ->getResult();
  if (handle == (HandleTpl *)0) return;
  if (handle->getSpace().isConstSpace()) return;	// Even if the value is dynamic, the pointed to value won't get used
  if (handle->getPtrSpace().getType() != ConstTpl::real) {
    if (handle->getTempSpace().isUniqueSpace())
      results.push_back(handle->getTempOffset().getReal());
    return;
  }
  if (handle->getSpace().isUniqueSpace()) {
    results.push_back(handle->getPtrOffset().getReal());
    return;
  }
  if (handle->getSpace().getType() == ConstTpl::handle) {
    int4 handleIndex = handle->getSpace().getHandleIndex();
    OperandSymbol *opSym = getOperand(handleIndex);
    opSym->collectLocalValues(results);
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq 0x60(%rdi), %rax
testq %rax, %rax
je 0x69ea9
movq 0x20(%rax), %r14
testq %r14, %r14
je 0x69ea9
movq %rsi, %rbx
movq %rdi, %r15
movq %r14, %rdi
callq 0x3f640
testb %al, %al
jne 0x69ea9
cmpl $0x0, 0x40(%r14)
je 0x69e49
leaq 0xa0(%r14), %rdi
callq 0x401f0
testb %al, %al
je 0x69ea9
movq 0xd0(%r14), %rax
jmp 0x69e59
movq %r14, %rdi
callq 0x401f0
testb %al, %al
je 0x69e75
movq 0x70(%r14), %rax
movq %rax, 0x8(%rsp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x69e9c
movq %rax, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x69ea9
cmpl $0x1, (%r14)
jne 0x69ea9
movslq 0x8(%r14), %rax
movq 0x18(%r15), %rcx
movq (%rcx,%rax,8), %rdi
movq (%rdi), %rax
movq 0x58(%rax), %rax
movq %rbx, %rsi
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
jmpq *%rax
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x3fa20
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: Constructor::isRecursive() const
bool Constructor::isRecursive(void) const

{ // Does this constructor cause recursion with its table
  for(int4 i=0;i<operands.size();++i) {
    TripleSymbol *sym = operands[i]->getDefiningSymbol();
    if (sym == parent) return true;
  }
  return false;
}

// Assembly:
movq 0x18(%rdi), %rdx
movq 0x20(%rdi), %rcx
subq %rdx, %rcx
setne %al
je 0x69f02
sarq $0x3, %rcx
cmpq $0x1, %rcx
movq %rcx, %rsi
adcq $0x0, %rsi
movq 0x8(%rdi), %rdi
movq (%rdx), %r8
cmpq %rdi, 0x48(%r8)
je 0x69f02
movl $0x1, %r8d
movq %r8, %rax
cmpq %r8, %rsi
je 0x69efc
movq (%rdx,%rax,8), %r9
leaq 0x1(%rax), %r8
cmpq %rdi, 0x48(%r9)
jne 0x69ee6
cmpq %rax, %rcx
seta %al
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: Constructor::printInfo(std::ostream&) const
void Constructor::printInfo(ostream &s) const

{				// Print identifying information about constructor
				// for use in error messages
  s << "table \"" << parent->getName();
  s << "\" constructor starting at line " << dec << lineno;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x15f44(%rip), %rsi     # 0x815e1
movl $0x7, %edx
movq %rbx, %rdi
callq 0x40b80
movq 0x8(%r14), %rax
movq 0x8(%rax), %rsi
movq 0x10(%rax), %rdx
movq %rbx, %rdi
callq 0x40b80
leaq 0x15f24(%rip), %rsi     # 0x815e9
movl $0x1f, %edx
movq %rbx, %rdi
callq 0x40b80
movq (%rbx), %rax
movq -0x18(%rax), %rax
movl 0x18(%rbx,%rax), %ecx
andl $-0x4b, %ecx
orl $0x2, %ecx
movl %ecx, 0x18(%rbx,%rax)
movl 0x90(%r14), %esi
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x41da0
nop
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: SubtableSymbol::SubtableSymbol(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
SubtableSymbol::SubtableSymbol(const string &nm) : TripleSymbol(nm)

{
  beingbuilt = false;
  pattern = (TokenPattern *)0;
  decisiontree = (DecisionNode *)0;
  errors = 0;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x40550
movq 0x375da(%rip), %rax     # 0xa2ce8
addq $0x10, %rax
movq %rax, (%rbx)
movw $0x0, 0x38(%rbx)
movq $0x0, 0x30(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x40(%rbx)
movups %xmm0, 0x50(%rbx)
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: SubtableSymbol::~SubtableSymbol()
SubtableSymbol::~SubtableSymbol(void)

{
  if (pattern != (TokenPattern *)0)
    delete pattern;
  if (decisiontree != (DecisionNode *)0)
    delete decisiontree;
  vector<Constructor *>::iterator iter;
  for(iter=construct.begin();iter!=construct.end();++iter)
    delete *iter;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x375a9(%rip), %rax     # 0xa2ce8
addq $0x10, %rax
movq %rax, (%rdi)
movq 0x30(%rdi), %r14
testq %r14, %r14
je 0x6b764
movq %r14, %rdi
callq 0x3fa70
movl $0x28, %esi
movq %r14, %rdi
callq 0x40870
movq 0x58(%rbx), %r14
testq %r14, %r14
je 0x6b782
movq %r14, %rdi
callq 0x3f040
movl $0x48, %esi
movq %r14, %rdi
callq 0x40870
movq 0x40(%rbx), %r15
cmpq 0x48(%rbx), %r15
je 0x6b7af
movq (%r15), %r14
testq %r14, %r14
je 0x6b7a9
movq %r14, %rdi
callq 0x42330
movl $0x98, %esi
movq %r14, %rdi
callq 0x40870
addq $0x8, %r15
jmp 0x6b786
movq 0x40(%rbx), %rdi
testq %rdi, %rdi
je 0x6b7c4
movq 0x50(%rbx), %rsi
subq %rdi, %rsi
callq 0x40870
movq 0x372e5(%rip), %rax     # 0xa2ab0
addq $0x10, %rax
movq %rax, (%rbx)
movq 0x8(%rbx), %rdi
addq $0x18, %rbx
cmpq %rbx, %rdi
je 0x6b7ef
movq (%rbx), %rsi
incq %rsi
popq %rbx
popq %r14
popq %r15
jmp 0x40870
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: SubtableSymbol::saveXml(std::ostream&) const
void SubtableSymbol::saveXml(ostream &s) const

{
  if (decisiontree == (DecisionNode *)0) return; // Not fully formed
  s << "<subtable_sym";
  SleighSymbol::saveXmlHeader(s);
  s << " numct=\"" << dec << construct.size() << "\">\n";
  for(int4 i=0;i<construct.size();++i)
    construct[i]->saveXml(s);
  decisiontree->saveXml(s);
  s << "</subtable_sym>\n";
}

// Assembly:
cmpq $0x0, 0x58(%rdi)
je 0x6b92b
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x15d9c(%rip), %rsi     # 0x81609
movl $0xd, %edx
movq %rbx, %rdi
callq 0x40b80
movq %r14, %rdi
movq %rbx, %rsi
callq 0x415b0
leaq 0x15d8b(%rip), %rsi     # 0x81617
movl $0x8, %edx
movq %rbx, %rdi
callq 0x40b80
movq (%rbx), %rax
movq -0x18(%rax), %rax
movl 0x18(%rbx,%rax), %ecx
andl $-0x4b, %ecx
orl $0x2, %ecx
movl %ecx, 0x18(%rbx,%rax)
movq 0x48(%r14), %rsi
subq 0x40(%r14), %rsi
sarq $0x3, %rsi
movq %rbx, %rdi
callq 0x3ffb0
leaq 0x15530(%rip), %rsi     # 0x80df9
movl $0x3, %edx
movq %rax, %rdi
callq 0x40b80
movq 0x40(%r14), %rax
cmpq %rax, 0x48(%r14)
je 0x6b906
xorl %r15d, %r15d
movq (%rax,%r15,8), %rdi
movq %rbx, %rsi
callq 0x40d10
incq %r15
movq 0x40(%r14), %rax
movq 0x48(%r14), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %r15, %rcx
ja 0x6b8e3
movq 0x58(%r14), %rdi
movq %rbx, %rsi
callq 0x40ad0
leaq 0x15d07(%rip), %rsi     # 0x81620
movl $0x10, %edx
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x40b80
retq
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: SubtableSymbol::restoreXml(Element const*, SleighBase*)
void SubtableSymbol::restoreXml(const Element *el,SleighBase *trans)

{
  {
    int4 numct;
    istringstream s(el->getAttributeValue("numct"));
    s.unsetf(ios::dec | ios::hex | ios::oct);
    s >> numct;
    construct.reserve(numct);
  }
  const List &list(el->getChildren());
  List::const_iterator iter;
  iter = list.begin();
  while(iter != list.end()) {
    if ((*iter)->getName() == "constructor") {
      Constructor *ct = new Constructor();
      addConstructor(ct);
      ct->restoreXml(*iter,trans);
    }
    else if ((*iter)->getName() == "decision") {
      decisiontree = new DecisionNode();
      decisiontree->restoreXml(*iter,(DecisionNode *)0,this);
    }
    ++iter;
  }
  pattern = (TokenPattern *)0;
  beingbuilt = false;
  errors = 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1b8, %rsp            # imm = 0x1B8
movq %rdx, 0x10(%rsp)
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x28(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x15a86(%rip), %rsi     # 0x81644
leaq 0x15a84(%rip), %rdx     # 0x81649
leaq 0x18(%rsp), %rdi
callq 0x3f8a0
leaq 0x18(%rsp), %rsi
movq %r15, %rdi
callq 0x40f70
leaq 0x38(%rsp), %rdi
movq %rax, %rsi
movl $0x8, %edx
callq 0x41c80
movq 0x18(%rsp), %rdi
cmpq %r14, %rdi
je 0x6bc05
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x40870
leaq 0x38(%rsp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
andl $-0x4b, 0x50(%rsp,%rax)
leaq 0xc(%rsp), %rsi
callq 0x3fe80
leaq 0x40(%rbx), %rdi
movslq 0xc(%rsp), %rsi
callq 0x41490
movq 0x370db(%rip), %rsi     # 0xa2d10
leaq 0x38(%rsp), %rdi
callq 0x41440
leaq 0xb0(%rsp), %rdi
callq 0x3f730
movq 0x78(%r15), %r14
cmpq 0x80(%r15), %r14
je 0x6bcf8
leaq 0x15ab8(%rip), %r12     # 0x8171c
leaq 0x15abe(%rip), %r13     # 0x81729
movq (%r14), %rdi
movq %r12, %rsi
callq 0x3f590
testl %eax, %eax
je 0x6bcb7
movq (%r14), %rdi
movq %r13, %rsi
callq 0x3f590
testl %eax, %eax
jne 0x6bce7
movl $0x48, %edi
callq 0x40800
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x20(%rax)
movq %rax, 0x58(%rbx)
movq (%r14), %rsi
movq %rax, %rdi
xorl %edx, %edx
movq %rbx, %rcx
callq 0x40e90
jmp 0x6bce7
movl $0x98, %edi
callq 0x40800
movq %rax, %rbp
movq %rax, %rdi
callq 0x3f430
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x419c0
movq (%r14), %rsi
movq %rbp, %rdi
movq 0x10(%rsp), %rdx
callq 0x41730
addq $0x8, %r14
cmpq 0x80(%r15), %r14
jne 0x6bc6b
movq $0x0, 0x30(%rbx)
movw $0x0, 0x38(%rbx)
addq $0x1b8, %rsp            # imm = 0x1B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x6bd67
movq %rax, %rbx
movq 0x36fe9(%rip), %rsi     # 0xa2d10
leaq 0x38(%rsp), %rdi
callq 0x41440
leaq 0xb0(%rsp), %rdi
callq 0x3f730
jmp 0x6bd67
movq %rax, %rbx
movq 0x18(%rsp), %rdi
cmpq %r14, %rdi
je 0x6bd67
movq 0x28(%rsp), %rsi
incq %rsi
jmp 0x6bd62
movq %rax, %rbx
movl $0x98, %esi
movq %rbp, %rdi
callq 0x40870
movq %rbx, %rdi
callq 0x41f00
nop
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: SubtableSymbol::buildDecisionTree(DecisionProperties&)
void SubtableSymbol::buildDecisionTree(DecisionProperties &props)

{				// Associate pattern disjoints to constructors
  if (pattern == (TokenPattern *)0) return; // Pattern not fully formed
  Pattern *pat;
  decisiontree = new DecisionNode((DecisionNode *)0);
  for(int4 i=0;i<construct.size();++i) {
    pat = construct[i]->getPattern()->getPattern();
    if (pat->numDisjoint() == 0)
      decisiontree->addConstructorPair((const DisjointPattern *)pat,construct[i]);
    else
      for(int4 j=0;j<pat->numDisjoint();++j)
	decisiontree->addConstructorPair(pat->getDisjoint(j),construct[i]);
  }
  decisiontree->split(props);	// Create the decision strategy
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
cmpq $0x0, 0x30(%rdi)
je 0x6c2c0
movq %rsi, %rbx
movq %rdi, %r14
movl $0x48, %edi
callq 0x40800
movq %rax, %r15
movq %rax, %rdi
xorl %esi, %esi
callq 0x40c80
movq %r15, 0x58(%r14)
movq 0x40(%r14), %rax
cmpq %rax, 0x48(%r14)
je 0x6c2a6
xorl %r13d, %r13d
movq (%rax,%r13,8), %rax
movq (%rax), %rax
movq (%rax), %r15
movq (%r15), %rax
movq %r15, %rdi
callq *0x40(%rax)
testl %eax, %eax
je 0x6c277
movq (%r15), %rax
movq %r15, %rdi
callq *0x40(%rax)
testl %eax, %eax
jle 0x6c28b
xorl %ebp, %ebp
movq 0x58(%r14), %r12
movq (%r15), %rax
movq %r15, %rdi
movl %ebp, %esi
callq *0x48(%rax)
movq 0x40(%r14), %rcx
movq (%rcx,%r13,8), %rdx
movq %r12, %rdi
movq %rax, %rsi
callq 0x3f3f0
incl %ebp
movq (%r15), %rax
movq %r15, %rdi
callq *0x40(%rax)
cmpl %eax, %ebp
jl 0x6c244
jmp 0x6c28b
movq 0x40(%r14), %rax
movq 0x58(%r14), %rdi
movq (%rax,%r13,8), %rdx
movq %r15, %rsi
callq 0x3f3f0
incq %r13
movq 0x40(%r14), %rax
movq 0x48(%r14), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %r13, %rcx
ja 0x6c21e
movq 0x58(%r14), %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x40200
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movl $0x48, %esi
movq %r15, %rdi
callq 0x40870
movq %rbx, %rdi
callq 0x41f00
nop
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: DecisionProperties::identicalPattern(Constructor*, Constructor*)
void DecisionProperties::identicalPattern(Constructor *a,Constructor *b)

{ // Note that -a- and -b- have identical patterns
  if ((!a->isError())&&(!b->isError())) {
    a->setError(true);
    b->setError(true);
    ostringstream s;
    s << "Constructors with identical patterns: \n   ";
    a->printInfo(s);
    s << "\n   ";
    b->printInfo(s);
    s << endl;
    identerrors.push_back(s.str());
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x198, %rsp            # imm = 0x198
cmpb $0x0, 0x94(%rsi)
jne 0x6c6fe
movq %rdx, %r14
cmpb $0x0, 0x94(%rdx)
jne 0x6c6fe
movq %rsi, %r15
movq %rdi, %rbx
movb $0x1, %al
movb %al, 0x94(%rsi)
movb %al, 0x94(%r14)
leaq 0x20(%rsp), %r12
movq %r12, %rdi
callq 0x41110
leaq 0x15043(%rip), %rsi     # 0x81685
movl $0x2a, %edx
movq %r12, %rdi
callq 0x40b80
leaq 0x20(%rsp), %rsi
movq %r15, %rdi
callq 0x42190
leaq 0x1507b(%rip), %rsi     # 0x816de
leaq 0x20(%rsp), %rdi
movl $0x4, %edx
callq 0x40b80
leaq 0x20(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x42190
movq 0x20(%rsp), %rax
addq -0x18(%rax), %r15
movq %r15, %rdi
movl $0xa, %esi
callq 0x40740
movsbl %al, %esi
leaq 0x20(%rsp), %rdi
callq 0x3f0a0
movq %rax, %rdi
callq 0x3ffc0
leaq 0x28(%rsp), %rsi
movq %rsp, %rdi
callq 0x418b0
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x3f7b0
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6c6e0
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x40870
movq 0x36699(%rip), %rsi     # 0xa2d80
leaq 0x20(%rsp), %rdi
callq 0x3fc30
leaq 0x90(%rsp), %rdi
callq 0x3f730
addq $0x198, %rsp            # imm = 0x198
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6c732
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x40870
jmp 0x6c732
jmp 0x6c72f
movq %rax, %rbx
movq 0x36647(%rip), %rsi     # 0xa2d80
leaq 0x20(%rsp), %rdi
callq 0x3fc30
leaq 0x90(%rsp), %rdi
callq 0x3f730
movq %rbx, %rdi
callq 0x41f00
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: DecisionProperties::conflictingPattern(Constructor*, Constructor*)
void DecisionProperties::conflictingPattern(Constructor *a,Constructor *b)

{ // Note that -a- and -b- have (potentially) conflicting patterns
  if ((!a->isError())&&(!b->isError())) {
    a->setError(true);
    b->setError(true);
    ostringstream s;
    s << "Constructor patterns cannot be distinguished: \n   ";
    a->printInfo(s);
    s << "\n   ";
    b->printInfo(s);
    s << endl;
    conflicterrors.push_back(s.str());
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x198, %rsp            # imm = 0x198
cmpb $0x0, 0x94(%rsi)
jne 0x6c86c
movq %rdx, %r14
cmpb $0x0, 0x94(%rdx)
jne 0x6c86c
movq %rsi, %r15
movq %rdi, %rbx
movb $0x1, %al
movb %al, 0x94(%rsi)
movb %al, 0x94(%r14)
leaq 0x20(%rsp), %r12
movq %r12, %rdi
callq 0x41110
leaq 0x14f04(%rip), %rsi     # 0x816b0
movl $0x32, %edx
movq %r12, %rdi
callq 0x40b80
leaq 0x20(%rsp), %rsi
movq %r15, %rdi
callq 0x42190
leaq 0x14f11(%rip), %rsi     # 0x816de
leaq 0x20(%rsp), %rdi
movl $0x4, %edx
callq 0x40b80
leaq 0x20(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x42190
movq 0x20(%rsp), %rax
addq -0x18(%rax), %r15
movq %r15, %rdi
movl $0xa, %esi
callq 0x40740
movsbl %al, %esi
leaq 0x20(%rsp), %rdi
callq 0x3f0a0
movq %rax, %rdi
callq 0x3ffc0
leaq 0x28(%rsp), %rsi
movq %rsp, %rdi
callq 0x418b0
addq $0x18, %rbx
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x3f7b0
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6c84e
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x40870
movq 0x3652b(%rip), %rsi     # 0xa2d80
leaq 0x20(%rsp), %rdi
callq 0x3fc30
leaq 0x90(%rsp), %rdi
callq 0x3f730
addq $0x198, %rsp            # imm = 0x198
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6c8a0
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x40870
jmp 0x6c8a0
jmp 0x6c89d
movq %rax, %rbx
movq 0x364d9(%rip), %rsi     # 0xa2d80
leaq 0x20(%rsp), %rdi
callq 0x3fc30
leaq 0x90(%rsp), %rdi
callq 0x3f730
movq %rbx, %rdi
callq 0x41f00
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: DecisionNode::~DecisionNode()
DecisionNode::~DecisionNode(void)

{				// We own sub nodes
  vector<DecisionNode *>::iterator iter;
  for(iter=children.begin();iter!=children.end();++iter)
    delete *iter;
  vector<pair<DisjointPattern *,Constructor *> >::iterator piter;
  for(piter=list.begin();piter!=list.end();++piter)
    delete (*piter).first;	// Delete the patterns
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x18(%rdi), %r15
cmpq 0x20(%rdi), %r15
je 0x6c925
movq (%r15), %r14
testq %r14, %r14
je 0x6c91b
movq %r14, %rdi
callq 0x3f040
movl $0x48, %esi
movq %r14, %rdi
callq 0x40870
addq $0x8, %r15
cmpq 0x20(%rbx), %r15
jne 0x6c8fe
movq (%rbx), %r14
cmpq 0x8(%rbx), %r14
je 0x6c942
movq (%r14), %rdi
testq %rdi, %rdi
je 0x6c93c
movq (%rdi), %rax
callq *0x8(%rax)
addq $0x10, %r14
jmp 0x6c928
movq 0x18(%rbx), %rdi
testq %rdi, %rdi
je 0x6c957
movq 0x28(%rbx), %rsi
subq %rdi, %rsi
callq 0x40870
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x6c970
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0x40870
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: DecisionNode::getNumFixed(int, int, bool)
int4 DecisionNode::getNumFixed(int4 low,int4 size,bool context)

{				// Get number of patterns that specify this field
  int4 count = 0;
  uintm mask;
				// Bits which must be specified in the mask
  uintm m = (size==8*sizeof(uintm)) ? 0 : (((uintm)1)<<size);
  m = m-1;

  for(int4 i=0;i<list.size();++i) {
    mask = list[i].first->getMask(low,size,context);
    if ((mask&m)==m)
      count += 1;
  }
  return count;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, (%rsp)
movq (%rdi), %rdx
cmpq %rdx, 0x8(%rdi)
je 0x6ca4b
movl %ecx, %eax
movl %esi, %r13d
movq %rdi, %r14
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
movl (%rsp), %ecx
shll %cl, %edi
xorl %ebp, %ebp
cmpl $0x20, %ecx
cmovel %ebp, %edi
movl %edi, 0x4(%rsp)
movzbl %al, %r12d
xorl %ebx, %ebx
xorl %r15d, %r15d
movq (%rdx,%rbp), %rdi
movl %r13d, %esi
movl (%rsp), %edx
movl %r12d, %ecx
callq 0x421c0
orl 0x4(%rsp), %eax
xorl %ecx, %ecx
cmpl $-0x1, %eax
sete %cl
addl %ecx, %r15d
incq %rbx
movq (%r14), %rdx
movq 0x8(%r14), %rax
subq %rdx, %rax
sarq $0x4, %rax
addq $0x10, %rbp
cmpq %rbx, %rax
ja 0x6ca0e
jmp 0x6ca4e
xorl %r15d, %r15d
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: DecisionNode::getScore(int, int, bool)
double DecisionNode::getScore(int4 low,int4 size,bool context)

{
  int4 numBins = 1 << size;		// size is between 1 and 8
  int4 i;
  uintm val,mask;
  uintm m = ((uintm)1)<<size;
  m = m-1;

  int4 total = 0;
  vector<int4> count(numBins,0);

  for(i=0;i<list.size();++i) {
    mask = list[i].first->getMask(low,size,context);
    if ((mask&m)!=m) continue;	// Skip if field not fully specified
    val = list[i].first->getValue(low,size,context);
    total += 1;
    count[val] += 1;
  }
  if (total <= 0) return -1.0;
  double sc = 0.0;
  for(i=0;i<numBins;++i) {
    if (count[i] <= 0) continue;
    if (count[i] >= list.size()) return -1.0;
    double p = ((double)count[i])/total;
    sc -= p * log(p);
  }
  return ( sc / log(2.0) );
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movl %ecx, %r15d
movl %edx, %ebp
movl %esi, %r14d
movl $0x1, %r12d
movl %ebp, %ecx
shll %cl, %r12d
movq %rdi, %rbx
movslq %r12d, %rsi
leaq 0x54(%rsp), %rdx
movl $0x0, (%rdx)
leaq 0x30(%rsp), %rdi
leaq 0xf(%rsp), %rcx
callq 0x42250
movq (%rbx), %rax
cmpq %rax, 0x8(%rbx)
movl %r12d, 0x24(%rsp)
je 0x6cb21
negl %r12d
movl %r12d, 0x18(%rsp)
xorl %r13d, %r13d
movzbl %r15b, %r15d
xorl %r12d, %r12d
movl $0x0, 0x10(%rsp)
movq (%rax,%r13), %rdi
movl %r14d, %esi
movl %ebp, %edx
movl %r15d, %ecx
callq 0x421c0
orl 0x18(%rsp), %eax
cmpl $-0x1, %eax
jne 0x6cb05
movq (%rbx), %rax
movq (%rax,%r13), %rdi
movl %r14d, %esi
movl %ebp, %edx
movl %r15d, %ecx
callq 0x40c00
incl 0x10(%rsp)
movl %eax, %eax
movq 0x30(%rsp), %rcx
incl (%rcx,%rax,4)
incq %r12
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
subq %rax, %rcx
sarq $0x4, %rcx
addq $0x10, %r13
cmpq %r12, %rcx
ja 0x6cac9
jmp 0x6cb29
movl $0x0, 0x10(%rsp)
movsd 0x1451f(%rip), %xmm0    # 0x81050
movsd %xmm0, 0x28(%rsp)
movl 0x10(%rsp), %eax
testl %eax, %eax
jle 0x6cbdf
xorpd %xmm1, %xmm1
cmpl $0x1f, %ebp
je 0x6cbd1
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0x48(%rsp)
movl 0x24(%rsp), %eax
cmpl $0x2, %eax
movl $0x1, %r14d
cmovgel %eax, %r14d
xorl %r15d, %r15d
movq 0x30(%rsp), %rax
movslq (%rax,%r15,4), %rax
testq %rax, %rax
jle 0x6cbc9
movq 0x8(%rbx), %rcx
subq (%rbx), %rcx
sarq $0x4, %rcx
cmpq %rax, %rcx
jbe 0x6cbdf
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
divsd 0x48(%rsp), %xmm0
movsd %xmm0, 0x10(%rsp)
movsd %xmm1, 0x18(%rsp)
callq 0x402b0
mulsd 0x10(%rsp), %xmm0
movsd 0x18(%rsp), %xmm1
subsd %xmm0, %xmm1
movsd %xmm1, 0x18(%rsp)
movsd 0x18(%rsp), %xmm1
incq %r15
cmpq %r15, %r14
jne 0x6cb71
divsd 0x1447f(%rip), %xmm1    # 0x81058
movsd %xmm1, 0x28(%rsp)
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x6cbf6
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x40870
movsd 0x28(%rsp), %xmm0
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x6cc25
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x40870
movq %rbx, %rdi
callq 0x41f00
nop
// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghsymbol.cc
// Function: DecisionNode::consistentValues(std::vector<unsigned int, std::allocator<unsigned int>>&, DisjointPattern*)
void DecisionNode::consistentValues(vector<uint4> &bins,DisjointPattern *pat)

{				// Produce all possible values of -pat- by
				// iterating through all possible values of the
				// "don't care" bits within the value of -pat-
				// that intersects with this node (startbit,bitsize,context)
  uintm m = (bitsize==8*sizeof(uintm)) ? 0 : (((uintm)1)<<bitsize);
  m = m-1;
  uintm commonMask = m & pat->getMask(startbit,bitsize,contextdecision);
  uintm commonValue = commonMask & pat->getValue(startbit,bitsize,contextdecision);
  uintm dontCareMask = m^commonMask;

  for(uintm i=0;i<=dontCareMask;++i) { // Iterate over values that contain all don't care bits
    if ((i&dontCareMask)!=i) continue; // If all 1 bits in the value are don't cares
    bins.push_back( commonValue | i ); // add 1 bits into full value and store
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
movl 0x38(%rdi), %esi
movl 0x3c(%rdi), %ecx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
shll %cl, %r12d
cmpl $0x20, %ecx
notl %r12d
cmovel %eax, %r12d
movzbl 0x34(%rdi), %eax
movq %rdx, %rdi
movl %ecx, %edx
movl %eax, %ecx
callq 0x421c0
movl %eax, %ebp
andl %r12d, %ebp
movl 0x38(%r15), %esi
movl 0x3c(%r15), %edx
movzbl 0x34(%r15), %ecx
movq %r14, %rdi
callq 0x40c00
movl %eax, %r14d
andl %ebp, %r14d
xorl %r12d, %ebp
xorl %r12d, %r12d
movl %ebp, %r13d
notl %r13d
leaq 0x4(%rsp), %r15
testl %r13d, %r12d
jne 0x6ce55
movl %r12d, %eax
orl %r14d, %eax
movl %eax, 0x4(%rsp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x6ce4a
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x6ce55
movq %rbx, %rdi
movq %r15, %rdx
callq 0x3f740
incl %r12d
cmpl %ebp, %r12d
jbe 0x6ce25
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq