// File: /workspace/github_cpp_makefile_star2_O3/jstaursky[P]hutch/src/Sleigh/slghpatexpress.cc
// Function: NotEqualEquation::genPattern(std::vector<TokenPattern, std::allocator<TokenPattern>> const&) const
void NotEqualEquation::genPattern(const vector<TokenPattern> &ops) const

{
  intb lhsmin = lhs->minValue();
  intb lhsmax = lhs->maxValue();
  vector<const PatternValue *> semval;
  vector<intb> min;
  vector<intb> max;
  vector<intb> cur;
  int4 count=0;

  rhs->listValues(semval);
  rhs->getMinMax(min,max);
  cur = min;

  do {
    intb lhsval;
    intb val = rhs->getSubValue(cur);
    for(lhsval=lhsmin;lhsval<=lhsmax;++lhsval) {
      if (lhsval == val) continue;
      if (count==0)
	resultpattern = buildPattern(lhs,lhsval,semval,cur);
      else
	resultpattern = resultpattern.doOr(buildPattern(lhs,lhsval,semval,cur));
      count += 1;
    }
  } while(advance_combo(cur,min,max));
  if (count == 0)
    throw SleighError("Notequal constraint is impossible to match");
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xf8, %rsp
movq %rdi, %rbx
movq 0x38(%rdi), %rdi
movq (%rdi), %rax
callq *0x50(%rax)
movq %rax, %r13
movq 0x38(%rbx), %rdi
movq (%rdi), %rax
callq *0x58(%rax)
movq %rax, 0x48(%rsp)
xorl %eax, %eax
leaq 0x70(%rsp), %rsi
movq %rax, 0x10(%rsi)
xorps %xmm0, %xmm0
movaps %xmm0, (%rsi)
movq %rax, 0x40(%rsp)
movaps %xmm0, 0x30(%rsp)
movq %rax, 0x60(%rsp)
movaps %xmm0, 0x50(%rsp)
movq %rax, 0x20(%rsp)
movaps %xmm0, 0x10(%rsp)
movq %rbx, 0x8(%rsp)
movq 0x40(%rbx), %rdi
movq (%rdi), %rax
callq *0x20(%rax)
movq 0x8(%rsp), %rax
movq 0x40(%rax), %rdi
movq (%rdi), %rax
leaq 0x30(%rsp), %rsi
leaq 0x50(%rsp), %rdx
callq *0x28(%rax)
leaq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x3f030
movq 0x8(%rsp), %rax
leaq 0x10(%rax), %r14
movq 0x48(%rsp), %rax
leaq 0x1(%rax), %r15
xorl %r11d, %r11d
leaq 0xa8(%rsp), %rbp
movq %r13, 0x90(%rsp)
movq %r15, 0x98(%rsp)
movl %r11d, %ebx
movq 0x8(%rsp), %rax
movq 0x40(%rax), %rdi
movl $0x0, 0xa8(%rsp)
movq (%rdi), %rax
leaq 0x10(%rsp), %rsi
movq %rbp, %rdx
callq *0x30(%rax)
cmpq 0x48(%rsp), %r13
jle 0x5ec55
movl %ebx, %r11d
jmp 0x5ed2a
movl %ebx, %r11d
movq %rax, 0xa0(%rsp)
cmpq %r13, %rax
je 0x5ed1e
movq %r14, %rbx
movq %rbp, %r14
movl %r11d, %r15d
testl %r11d, %r11d
leaq 0xd0(%rsp), %rbp
je 0x5ecd1
movq 0x8(%rsp), %rax
movq 0x38(%rax), %rsi
movq %rbp, %r12
movq %rbp, %rdi
movq %r13, %rdx
leaq 0x70(%rsp), %rcx
leaq 0x10(%rsp), %r8
callq 0x5ea98
movq %r14, %rbp
movq %r14, %rdi
movq %rbx, %r14
movq %rbx, %rsi
movq %r12, %rdx
callq 0x40d30
movq %r14, %rdi
movq %rbp, %rsi
callq 0x414b0
movq %rbp, %rdi
callq 0x3fa70
leaq 0xd0(%rsp), %rdi
jmp 0x5ed03
movq 0x8(%rsp), %rax
movq 0x38(%rax), %rsi
movq %r14, %rbp
movq %r14, %rdi
movq %r13, %rdx
leaq 0x70(%rsp), %rcx
leaq 0x10(%rsp), %r8
callq 0x5ea98
movq %rbx, %r14
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x414b0
movq %rbp, %rdi
callq 0x3fa70
movl %r15d, %r11d
incl %r11d
movq 0x98(%rsp), %r15
movq 0xa0(%rsp), %rax
incq %r13
cmpq %r13, %r15
jne 0x5ec60
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rax
subq %rdi, %rax
movq 0x90(%rsp), %r13
je 0x5eda4
sarq $0x3, %rax
movq 0x30(%rsp), %rcx
movq 0x50(%rsp), %rdx
cmpq $0x1, %rax
movq %rax, %rsi
adcq $0x0, %rsi
movq (%rdi), %r8
leaq 0x1(%r8), %r9
movq %r9, (%rdi)
cmpq (%rdx), %r8
jl 0x5ec21
movl $0x1, %r9d
movq %r9, %r8
movq -0x8(%rcx,%r9,8), %r9
movq %r9, -0x8(%rdi,%r8,8)
cmpq %r8, %rsi
je 0x5ed9b
movq (%rdi,%r8,8), %r10
leaq 0x1(%r10), %r9
movq %r9, (%rdi,%r8,8)
leaq 0x1(%r8), %r9
cmpq (%rdx,%r8,8), %r10
jge 0x5ed73
cmpq %r8, %rax
ja 0x5ec21
testl %r11d, %r11d
je 0x5ee15
testq %rdi, %rdi
je 0x5edbb
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x40880
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x5edd2
movq 0x60(%rsp), %rsi
subq %rdi, %rsi
callq 0x40880
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x5ede9
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x40880
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x5ee03
movq 0x80(%rsp), %rsi
subq %rdi, %rsi
callq 0x40880
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0x3fb00
movq %rax, %r14
leaq 0xb8(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x21c01(%rip), %rsi     # 0x80a36
leaq 0x21c24(%rip), %rdx     # 0x80a60
leaq 0xa8(%rsp), %rdi
callq 0x3f8a0
movb $0x1, %bpl
leaq 0xa8(%rsp), %rsi
movq %r14, %rdi
callq 0x3f890
xorl %ebp, %ebp
movq 0x4402b(%rip), %rsi     # 0xa2e90
movq 0x43dcc(%rip), %rdx     # 0xa2c38
movq %r14, %rdi
callq 0x41d70
movq %rax, %rbx
movq 0xa8(%rsp), %rdi
cmpq %r15, %rdi
je 0x5ee94
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x40880
testb %bpl, %bpl
jne 0x5ee9e
jmp 0x5eee2
movq %rax, %rbx
movq %r14, %rdi
callq 0x40090
jmp 0x5eee2
jmp 0x5eec0
jmp 0x5eec0
movq %rax, %rbx
leaq 0xa8(%rsp), %rdi
jmp 0x5eedd
jmp 0x5eec0
movq %rax, %rbx
jmp 0x5eed5
movq %rax, %rbx
jmp 0x5eee2
movq %rax, %rbx
leaq 0xa8(%rsp), %rdi
callq 0x3fa70
leaq 0xd0(%rsp), %rdi
callq 0x3fa70
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x5eef9
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x40880
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x5ef10
movq 0x60(%rsp), %rsi
subq %rdi, %rsi
callq 0x40880
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x5ef27
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x40880
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x5ef41
movq 0x80(%rsp), %rsi
subq %rdi, %rsi
callq 0x40880
movq %rbx, %rdi
callq 0x41f10
nop