// File: /workspace/github_cpp_makefile_star2_O3/jstaursky[P]hutch/src/Sleigh/slgh_compile.cc
// Function: SleighCompile::checkLocalExports(Constructor*)
bool SleighCompile::checkLocalExports(Constructor *ct)

{
  if (ct->getTempl() == (ConstructTpl *)0)
    return true;		// No template, collisions impossible
  if (ct->getTempl()->buildOnly())
    return true;		// Operand exports aren't manipulated, so no collision is possible
  if (ct->getNumOperands() < 2)
    return true;		// Collision can only happen with multiple operands
  bool noCollisions = true;
  map<uintb,int4> collect;
  for(int4 i=0;i<ct->getNumOperands();++i) {
    vector<uintb> newCollect;
    ct->getOperand(i)->collectLocalValues(newCollect);
    if (newCollect.empty()) continue;
    int4 collideOperand = findCollision(collect, newCollect, i);
    if (collideOperand >= 0) {
      noCollisions = false;
      if (warnalllocalcollisions) {
	cerr << "Possible collision with symbols ";
	cerr << ct->getOperand(collideOperand)->getName();
	cerr << " and " << ct->getOperand(i)->getName();
	cerr << " in constructor starting at line " << dec << ct->getLineno() << endl;
      }
      break;	// Don't continue
    }
  }
  return noCollisions;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdi, 0x20(%rsp)
movq 0x60(%rsi), %rdi
movb $0x1, %r13b
testq %rdi, %rdi
je 0x2eb93
movq %rsi, %rbx
callq 0x2504a
testb %al, %al
jne 0x2eb93
movq 0x18(%rbx), %rax
movq 0x20(%rbx), %rcx
subq %rax, %rcx
shrq $0x3, %rcx
cmpl $0x2, %ecx
jl 0x2eb93
leaq 0x30(%rsp), %rcx
movl $0x0, (%rcx)
xorl %r15d, %r15d
movq %r15, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %r15, 0x20(%rcx)
movb $0x1, %r13b
movq 0x5e5c5(%rip), %rbp     # 0x8cfe8
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movq (%rax,%r15,8), %rdi
movq (%rdi), %rax
movq %rsp, %rsi
callq *0x58(%rax)
movq (%rsp), %rdi
cmpq 0x8(%rsp), %rdi
je 0x2eb44
leaq 0x28(%rsp), %rdi
movq %rsp, %rsi
movl %r15d, %edx
callq 0x2e93a
movl %eax, %r14d
testl %eax, %eax
js 0x2eb4c
movl $0x2, %r12d
movq 0x20(%rsp), %rax
cmpb $0x1, 0x337(%rax)
jne 0x2eb3f
movl $0x20, %edx
movq %rbp, %rdi
leaq 0x338bc(%rip), %rsi     # 0x6234d
callq 0xf420
movl %r14d, %eax
movq 0x18(%rbx), %rcx
movq (%rcx,%rax,8), %rax
movq 0x8(%rax), %rsi
movq 0x10(%rax), %rdx
movq %rbp, %rdi
callq 0xf420
movl $0x5, %edx
movq %rbp, %rdi
leaq 0x32a9a(%rip), %rsi     # 0x6155a
callq 0xf420
movq 0x18(%rbx), %rax
movq (%rax,%r15,8), %rax
movq 0x8(%rax), %rsi
movq 0x10(%rax), %rdx
movq %rbp, %rdi
callq 0xf420
movl $0x21, %edx
movq %rbp, %rdi
leaq 0x33446(%rip), %rsi     # 0x61f32
callq 0xf420
movq (%rbp), %rax
movq -0x18(%rax), %rax
movl 0x18(%rbp,%rax), %ecx
andl $-0x4b, %ecx
orl $0x2, %ecx
movl %ecx, 0x18(%rbp,%rax)
movl 0x90(%rbx), %esi
movq %rbp, %rdi
callq 0xf6e0
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
xorl %r13d, %r13d
jmp 0x2eb4f
movl $0x4, %r12d
jmp 0x2eb53
xorl %r12d, %r12d
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x2eb65
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0xf380
testb $0x3, %r12b
jne 0x2eb89
incq %r15
movq 0x18(%rbx), %rax
movq 0x20(%rbx), %rcx
subq %rax, %rcx
shrq $0x3, %rcx
movslq %ecx, %rcx
cmpq %rcx, %r15
jl 0x2ea23
leaq 0x28(%rsp), %rdi
callq 0x3476e
andb $0x1, %r13b
movl %r13d, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2ebab
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x2ebc4
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0xf380
leaq 0x28(%rsp), %rdi
callq 0x3476e
movq %rbx, %rdi
callq 0xf730