// File: /workspace/github_cpp_makefile_star2_O1/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, %r14
movq 0x60(%rsi), %rdi
movb $0x1, %r13b
testq %rdi, %rdi
je 0x2ee2b
movq %rsi, %rbx
callq 0x251a4
testb %al, %al
jne 0x2ee2b
movq 0x20(%rbx), %rax
subq 0x18(%rbx), %rax
shrq $0x3, %rax
cmpl $0x2, %eax
jl 0x2ee2b
leaq 0x30(%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 0x18(%rbx), %rax
movq 0x20(%rbx), %rcx
subq %rax, %rcx
shrq $0x3, %rcx
testl %ecx, %ecx
jle 0x2ee1e
movq %r14, 0x20(%rsp)
movb $0x1, %r13b
xorl %r15d, %r15d
movq 0x5e332(%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), %rax
cmpq 0x8(%rsp), %rax
je 0x2edd7
leaq 0x28(%rsp), %rdi
movq %rsp, %rsi
movl %r15d, %edx
callq 0x2eba4
movl %eax, %r14d
testl %eax, %eax
js 0x2eddf
movl $0x2, %r12d
movq 0x20(%rsp), %rax
cmpb $0x1, 0x337(%rax)
jne 0x2edd2
movl $0x20, %edx
movq %rbp, %rdi
leaq 0x335d9(%rip), %rsi     # 0x622fd
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 0x327b7(%rip), %rsi     # 0x6150a
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 0x33163(%rip), %rsi     # 0x61ee2
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 0x2ede2
movl $0x4, %r12d
jmp 0x2ede2
xorl %r12d, %r12d
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x2edf8
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0xf380
testb $0x3, %r12b
jne 0x2ee21
incq %r15
movq 0x18(%rbx), %rax
movq 0x20(%rbx), %rcx
subq %rax, %rcx
shrq $0x3, %rcx
movslq %ecx, %rcx
cmpq %rcx, %r15
jl 0x2ecb6
jmp 0x2ee21
movb $0x1, %r13b
leaq 0x28(%rsp), %rdi
callq 0x34b52
andb $0x1, %r13b
movl %r13d, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2ee43
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x2ee5c
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0xf380
leaq 0x28(%rsp), %rdi
callq 0x34b52
movq %rbx, %rdi
callq 0xf730