// File: /workspace/github_cpp_makefile_star2_O2/jstaursky[P]hutch/src/Sleigh/slghpatexpress.cc
// Function: GreaterEquation::genPattern(std::vector<TokenPattern, std::allocator<TokenPattern>> const&) const
void GreaterEquation::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("Greater than constraint is impossible to match");
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movq %rdi, %rbx
movq 0x38(%rdi), %rdi
movq (%rdi), %rax
callq *0x50(%rax)
movq %rax, 0x70(%rsp)
movq 0x38(%rbx), %rdi
movq (%rdi), %rax
callq *0x58(%rax)
movq %rax, 0x78(%rsp)
leaq 0x80(%rsp), %rsi
andq $0x0, 0x10(%rsi)
xorps %xmm0, %xmm0
andq $0x0, 0x40(%rsp)
movaps %xmm0, (%rsi)
andq $0x0, 0x60(%rsp)
movaps %xmm0, 0x30(%rsp)
andq $0x0, 0x20(%rsp)
movaps %xmm0, 0x50(%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 0x4d030
movq 0x8(%rsp), %rax
leaq 0x10(%rax), %r12
xorl %r14d, %r14d
leaq 0x10(%rsp), %rbx
leaq 0x98(%rsp), %rbp
movq 0x8(%rsp), %rax
movq 0x40(%rax), %rdi
andl $0x0, 0x98(%rsp)
movq (%rdi), %rax
movq %rbx, %rsi
movq %rbp, %rdx
callq *0x30(%rax)
movq %rax, %r13
movq 0x70(%rsp), %rbx
cmpq 0x78(%rsp), %rbx
jg 0x6a547
cmpq %r13, %rbx
jle 0x6a53f
testl %r14d, %r14d
leaq 0xc0(%rsp), %r15
je 0x6a508
movq 0x8(%rsp), %rax
movq 0x38(%rax), %rsi
movq %r15, %rdi
movq %rbx, %rdx
leaq 0x80(%rsp), %rcx
leaq 0x10(%rsp), %r8
callq 0x69a5a
movq %rbp, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x4fe00
movq %r12, %rdi
movq %rbp, %rsi
callq 0x50980
movq %rbp, %rdi
callq 0x4e060
leaq 0xc0(%rsp), %rdi
jmp 0x6a537
movq 0x8(%rsp), %rax
movq 0x38(%rax), %rsi
movq %rbp, %rdi
movq %rbx, %rdx
leaq 0x80(%rsp), %rcx
leaq 0x10(%rsp), %r8
callq 0x69a5a
movq %r12, %rdi
movq %rbp, %rsi
callq 0x50980
movq %rbp, %rdi
callq 0x4e060
incl %r14d
incq %rbx
jmp 0x6a49b
leaq 0x10(%rsp), %rbx
movq %rbx, %rdi
leaq 0x30(%rsp), %rsi
leaq 0x50(%rsp), %rdx
callq 0x69b1b
testb %al, %al
jne 0x6a476
testl %r14d, %r14d
je 0x6a5a8
leaq 0x10(%rsp), %rdi
callq 0x4d810
leaq 0x50(%rsp), %rdi
callq 0x4d810
leaq 0x30(%rsp), %rdi
callq 0x4d810
leaq 0x80(%rsp), %rdi
callq 0x4d930
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x20
popq %rdi
callq 0x4e180
movq %rax, %r14
leaq 0x1d4e8(%rip), %rsi     # 0x87aa2
leaq 0x98(%rsp), %rdi
leaq 0xc0(%rsp), %rdx
callq 0x515e0
movb $0x1, %bpl
leaq 0x98(%rsp), %rsi
movq %r14, %rdi
callq 0x4ddf0
xorl %ebp, %ebp
movq 0x4489d(%rip), %rsi     # 0xaee88
movq 0x44646(%rip), %rdx     # 0xaec38
movq %r14, %rdi
callq 0x51630
movq %rax, %rbx
leaq 0x98(%rsp), %rdi
callq 0x4e020
testb %bpl, %bpl
jne 0x6a614
jmp 0x6a658
movq %rax, %rbx
movq %r14, %rdi
callq 0x4ea60
jmp 0x6a658
jmp 0x6a636
jmp 0x6a636
movq %rax, %rbx
leaq 0x98(%rsp), %rdi
jmp 0x6a653
jmp 0x6a636
movq %rax, %rbx
jmp 0x6a64b
movq %rax, %rbx
jmp 0x6a658
movq %rax, %rbx
leaq 0x98(%rsp), %rdi
callq 0x4e060
leaq 0xc0(%rsp), %rdi
callq 0x4e060
leaq 0x10(%rsp), %rdi
callq 0x4d810
leaq 0x50(%rsp), %rdi
callq 0x4d810
leaq 0x30(%rsp), %rdi
callq 0x4d810
leaq 0x80(%rsp), %rdi
callq 0x4d930
movq %rbx, %rdi
callq 0x518c0
nop