// File: /workspace/github_cpp_makefile_star2_O2/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, 0x68(%rsp)
movq 0x38(%rbx), %rdi
movq (%rdi), %rax
callq *0x58(%rax)
movq %rax, 0x60(%rsp)
leaq 0x70(%rsp), %rsi
andq $0x0, 0x10(%rsi)
xorps %xmm0, %xmm0
andq $0x0, 0x10(%rsp)
movaps %xmm0, (%rsi)
andq $0x0, 0x50(%rsp)
movaps %xmm0, (%rsp)
andq $0x0, 0x30(%rsp)
movaps %xmm0, 0x40(%rsp)
movaps %xmm0, 0x20(%rsp)
movq 0x40(%rbx), %rdi
movq (%rdi), %rax
callq *0x20(%rax)
movq 0x40(%rbx), %rdi
movq (%rdi), %rax
movq %rsp, %rsi
leaq 0x40(%rsp), %rdx
callq *0x28(%rax)
leaq 0x20(%rsp), %rdi
movq %rsp, %rsi
callq 0x4d030
leaq 0x10(%rbx), %r12
xorl %r15d, %r15d
leaq 0x20(%rsp), %r13
leaq 0x88(%rsp), %rbp
movq 0x40(%rbx), %rdi
andl $0x0, 0x88(%rsp)
movq (%rdi), %rax
movq %r13, %rsi
movq %rbp, %rdx
callq *0x30(%rax)
cmpq 0x68(%rsp), %rax
jl 0x69927
cmpq 0x60(%rsp), %rax
jg 0x69927
testl %r15d, %r15d
je 0x698fa
movq 0x38(%rbx), %rsi
leaq 0xb0(%rsp), %r14
movq %r14, %rdi
movq %rax, %rdx
leaq 0x70(%rsp), %rcx
movq %r13, %r8
callq 0x69a5a
movq %rbp, %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x4fe00
movq %r12, %rdi
movq %rbp, %rsi
callq 0x50980
movq %rbp, %rdi
callq 0x4e060
leaq 0xb0(%rsp), %rdi
jmp 0x6991f
movq 0x38(%rbx), %rsi
movq %rbp, %rdi
movq %rax, %rdx
leaq 0x70(%rsp), %rcx
movq %r13, %r8
callq 0x69a5a
movq %r12, %rdi
movq %rbp, %rsi
callq 0x50980
movq %rbp, %rdi
callq 0x4e060
incl %r15d
movq %r13, %rdi
movq %rsp, %rsi
leaq 0x40(%rsp), %rdx
callq 0x69b1b
testb %al, %al
jne 0x69881
testl %r15d, %r15d
je 0x6997c
leaq 0x20(%rsp), %rdi
callq 0x4d810
leaq 0x40(%rsp), %rdi
callq 0x4d810
movq %rsp, %rdi
callq 0x4d810
leaq 0x70(%rsp), %rdi
callq 0x4d930
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x20
popq %rdi
callq 0x4e180
movq %rax, %r14
leaq 0x1e060(%rip), %rsi     # 0x879ee
leaq 0x88(%rsp), %rdi
leaq 0xb0(%rsp), %rdx
callq 0x515e0
movb $0x1, %bpl
leaq 0x88(%rsp), %rsi
movq %r14, %rdi
callq 0x4ddf0
xorl %ebp, %ebp
movq 0x454c9(%rip), %rsi     # 0xaee88
movq 0x45272(%rip), %rdx     # 0xaec38
movq %r14, %rdi
callq 0x51630
movq %rax, %rbx
leaq 0x88(%rsp), %rdi
callq 0x4e020
testb %bpl, %bpl
jne 0x699e8
jmp 0x69a2c
movq %rax, %rbx
movq %r14, %rdi
callq 0x4ea60
jmp 0x69a2c
jmp 0x69a29
movq %rax, %rbx
leaq 0x88(%rsp), %rdi
jmp 0x69a22
jmp 0x69a29
movq %rax, %rbx
jmp 0x69a1a
jmp 0x69a29
movq %rax, %rbx
leaq 0x88(%rsp), %rdi
callq 0x4e060
leaq 0xb0(%rsp), %rdi
callq 0x4e060
jmp 0x69a2c
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x4d810
leaq 0x40(%rsp), %rdi
callq 0x4d810
movq %rsp, %rdi
callq 0x4d810
leaq 0x70(%rsp), %rdi
callq 0x4d930
movq %rbx, %rdi
callq 0x518c0