// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slghpatexpress.cc
// Function: EqualEquation::genPattern(std::vector<TokenPattern, std::allocator<TokenPattern>> const&) const
void EqualEquation::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 val = rhs->getSubValue(cur);
    if ((val>=lhsmin)&&(val<=lhsmax)) {
      if (count==0)
	resultpattern = buildPattern(lhs,val,semval,cur);
      else
	resultpattern = resultpattern.doOr(buildPattern(lhs,val,semval,cur));
      count += 1;
    }
  } while(advance_combo(cur,min,max));
  if (count == 0)
    throw SleighError("Equal constraint is impossible to match");
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %rdi, %rbx
movq 0x38(%rdi), %rdi
movq (%rdi), %rax
callq *0x50(%rax)
movq %rax, %r14
movq 0x38(%rbx), %rdi
movq (%rdi), %rax
callq *0x58(%rax)
movq %rax, 0x80(%rsp)
xorl %eax, %eax
leaq 0x60(%rsp), %rsi
movq %rax, 0x10(%rsi)
xorps %xmm0, %xmm0
movaps %xmm0, (%rsi)
movq %rax, 0x30(%rsp)
movaps %xmm0, 0x20(%rsp)
movq %rax, 0x50(%rsp)
movaps %xmm0, 0x40(%rsp)
movq %rax, 0x10(%rsp)
movaps %xmm0, (%rsp)
movq 0x40(%rbx), %rdi
movq (%rdi), %rax
callq *0x20(%rax)
movq 0x40(%rbx), %rdi
movq (%rdi), %rax
leaq 0x20(%rsp), %rsi
leaq 0x40(%rsp), %rdx
callq *0x28(%rax)
movq %rsp, %rdi
leaq 0x20(%rsp), %rsi
callq 0x3f030
leaq 0x10(%rbx), %r12
xorl %r15d, %r15d
leaq 0x88(%rsp), %rbp
movq 0x40(%rbx), %rdi
movl $0x0, 0x88(%rsp)
movq (%rdi), %rax
movq %rsp, %rsi
movq %rbp, %rdx
callq *0x30(%rax)
cmpq %r14, %rax
leaq 0xb0(%rsp), %r13
jl 0x5eb69
cmpq 0x80(%rsp), %rax
jg 0x5eb69
testl %r15d, %r15d
je 0x5eb3c
movq 0x38(%rbx), %rsi
movq %r13, %rdi
movq %rax, %rdx
leaq 0x60(%rsp), %rcx
movq %rsp, %r8
callq 0x5ed83
movq %rbp, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x40d20
movq %r12, %rdi
movq %rbp, %rsi
callq 0x414a0
movq %rbp, %rdi
callq 0x3fa70
leaq 0xb0(%rsp), %rdi
jmp 0x5eb61
movq 0x38(%rbx), %rsi
movq %rbp, %rdi
movq %rax, %rdx
leaq 0x60(%rsp), %rcx
movq %rsp, %r8
callq 0x5ed83
movq %r12, %rdi
movq %rbp, %rsi
callq 0x414a0
movq %rbp, %rdi
callq 0x3fa70
incl %r15d
movq (%rsp), %rdi
movq 0x8(%rsp), %rax
subq %rdi, %rax
setne %cl
je 0x5ebda
sarq $0x3, %rax
movq 0x40(%rsp), %rcx
movq 0x20(%rsp), %rdx
cmpq $0x1, %rax
movq %rax, %rsi
adcq $0x0, %rsi
movq (%rdi), %r8
leaq 0x1(%r8), %r9
movq %r9, (%rdi)
cmpq (%rcx), %r8
jl 0x5eac3
movl $0x1, %r9d
movq %r9, %r8
movq -0x8(%rdx,%r9,8), %r9
movq %r9, -0x8(%rdi,%r8,8)
cmpq %r8, %rsi
je 0x5ebd4
movq (%rdi,%r8,8), %r10
leaq 0x1(%r10), %r9
movq %r9, (%rdi,%r8,8)
leaq 0x1(%r8), %r9
cmpq (%rcx,%r8,8), %r10
jge 0x5ebac
cmpq %r8, %rax
seta %cl
testb %cl, %cl
jne 0x5eac3
testl %r15d, %r15d
je 0x5ec50
testq %rdi, %rdi
je 0x5ebf9
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x40870
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x5ec10
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x40870
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x5ec27
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x40870
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x5ec3e
movq 0x70(%rsp), %rsi
subq %rdi, %rsi
callq 0x40870
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0x3fb00
movq %rax, %r14
leaq 0x98(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x21d9e(%rip), %rsi     # 0x80a0e
leaq 0x21dbe(%rip), %rdx     # 0x80a35
leaq 0x88(%rsp), %rdi
callq 0x3f8a0
movb $0x1, %bpl
leaq 0x88(%rsp), %rsi
movq %r14, %rdi
callq 0x3f890
xorl %ebp, %ebp
movq 0x441f0(%rip), %rsi     # 0xa2e90
movq 0x43f91(%rip), %rdx     # 0xa2c38
movq %r14, %rdi
callq 0x41d60
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %r15, %rdi
je 0x5ecd7
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x40870
jmp 0x5ecd7
movq %rax, %rbx
movb $0x1, %bpl
testb %bpl, %bpl
je 0x5ed20
movq %r14, %rdi
callq 0x40080
jmp 0x5ed20
jmp 0x5ed1d
movq %rax, %rbx
leaq 0x88(%rsp), %rdi
jmp 0x5ed16
jmp 0x5ed1d
jmp 0x5ed1d
movq %rax, %rbx
leaq 0x88(%rsp), %rdi
callq 0x3fa70
jmp 0x5ed0e
movq %rax, %rbx
leaq 0xb0(%rsp), %rdi
callq 0x3fa70
jmp 0x5ed20
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x5ed36
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x40870
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x5ed4d
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x40870
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x5ed64
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x40870
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x5ed7b
movq 0x70(%rsp), %rsi
subq %rdi, %rsi
callq 0x40870
movq %rbx, %rdi
callq 0x41f00