// File: /workspace/github_cpp_makefile_star2_O3/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, 0x80(%rsp)
movq 0x38(%rbx), %rdi
movq (%rdi), %rax
callq *0x58(%rax)
movq %rax, 0x78(%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
leaq 0xb0(%rsp), %r14
movq %r14, %r13
movq 0x40(%rbx), %rdi
movl $0x0, 0x88(%rsp)
movq (%rdi), %rax
movq %rsp, %rsi
movq %rbp, %rdx
callq *0x30(%rax)
cmpq 0x80(%rsp), %rax
jl 0x5e886
cmpq 0x78(%rsp), %rax
movq %r13, %r14
jg 0x5e889
testl %r15d, %r15d
je 0x5e859
movq 0x38(%rbx), %rsi
movq %r14, %rdi
movq %rax, %rdx
leaq 0x60(%rsp), %rcx
movq %rsp, %r8
callq 0x5ea98
movq %rbp, %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x40d30
movq %r12, %rdi
movq %rbp, %rsi
callq 0x414b0
movq %rbp, %rdi
callq 0x3fa70
movq %r13, %rdi
jmp 0x5e87e
movq 0x38(%rbx), %rsi
movq %rbp, %rdi
movq %rax, %rdx
leaq 0x60(%rsp), %rcx
movq %rsp, %r8
callq 0x5ea98
movq %r12, %rdi
movq %rbp, %rsi
callq 0x414b0
movq %rbp, %rdi
callq 0x3fa70
incl %r15d
movq %r13, %r14
movq (%rsp), %rdi
movq 0x8(%rsp), %rax
subq %rdi, %rax
je 0x5e8fa
sarq $0x3, %rax
movq 0x20(%rsp), %rcx
movq 0x40(%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 0x5e7e5
movl $0x1, %r9d
movq %r9, %r8
movq -0x8(%rcx,%r9,8), %r9
movq %r9, -0x8(%rdi,%r8,8)
cmpq %r8, %rsi
je 0x5e8f1
movq (%rdi,%r8,8), %r10
leaq 0x1(%r10), %r9
movq %r9, (%rdi,%r8,8)
leaq 0x1(%r8), %r9
cmpq (%rdx,%r8,8), %r10
jge 0x5e8c9
cmpq %r8, %rax
ja 0x5e7e5
testl %r15d, %r15d
je 0x5e968
testq %rdi, %rdi
je 0x5e911
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x40880
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x5e928
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x40880
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x5e93f
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x40880
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x5e956
movq 0x70(%rsp), %rsi
subq %rdi, %rsi
callq 0x40880
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 0x22086(%rip), %rsi     # 0x80a0e
leaq 0x220a6(%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 0x444d8(%rip), %rsi     # 0xa2e90
movq 0x44279(%rip), %rdx     # 0xa2c38
movq %r14, %rdi
callq 0x41d70
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %r15, %rdi
je 0x5e9e7
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x40880
testb %bpl, %bpl
jne 0x5e9f1
jmp 0x5ea35
movq %rax, %rbx
movq %r14, %rdi
callq 0x40090
jmp 0x5ea35
jmp 0x5ea32
movq %rax, %rbx
leaq 0x88(%rsp), %rdi
jmp 0x5ea29
jmp 0x5ea32
movq %rax, %rbx
leaq 0x88(%rsp), %rdi
callq 0x3fa70
jmp 0x5ea21
movq %rax, %rbx
leaq 0xb0(%rsp), %rdi
callq 0x3fa70
jmp 0x5ea35
jmp 0x5ea32
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x5ea4b
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x40880
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x5ea62
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x40880
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x5ea79
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x40880
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x5ea90
movq 0x70(%rsp), %rsi
subq %rdi, %rsi
callq 0x40880
movq %rbx, %rdi
callq 0x41f10