// File: 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:
subq $0x188, %rsp            # imm = 0x188
movq %rdi, 0x180(%rsp)
movq %rsi, 0x178(%rsp)
movq 0x180(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x38(%rax), %rdi
movq (%rdi), %rax
movq 0x50(%rax), %rax
callq *%rax
movq %rax, %rcx
movq 0x30(%rsp), %rax
movq %rcx, 0x170(%rsp)
movq 0x38(%rax), %rdi
movq (%rdi), %rax
movq 0x58(%rax), %rax
callq *%rax
movq %rax, 0x168(%rsp)
leaq 0x150(%rsp), %rdi
movq %rdi, 0x38(%rsp)
callq 0xe17a0
leaq 0x138(%rsp), %rdi
callq 0xe0900
leaq 0x120(%rsp), %rdi
callq 0xe0900
leaq 0x108(%rsp), %rdi
callq 0xe0900
movq 0x30(%rsp), %rax
movq 0x38(%rsp), %rsi
movl $0x0, 0x104(%rsp)
movq 0x40(%rax), %rdi
movq (%rdi), %rax
movq 0x20(%rax), %rax
callq *%rax
jmp 0x12dbc3
movq 0x30(%rsp), %rax
movq 0x40(%rax), %rdi
movq (%rdi), %rax
movq 0x28(%rax), %rax
leaq 0x138(%rsp), %rsi
leaq 0x120(%rsp), %rdx
callq *%rax
jmp 0x12dbe7
leaq 0x108(%rsp), %rdi
leaq 0x138(%rsp), %rsi
callq 0xce030
jmp 0x12dbfe
jmp 0x12dc00
movq 0x30(%rsp), %rax
movq 0x40(%rax), %rdi
leaq 0x108(%rsp), %rsi
callq 0xd69f0
movq %rax, 0x28(%rsp)
jmp 0x12dc1d
movq 0x28(%rsp), %rax
movq %rax, 0xe0(%rsp)
movq 0x170(%rsp), %rax
movq %rax, 0xe8(%rsp)
movq 0xe8(%rsp), %rax
cmpq 0x168(%rsp), %rax
jg 0x12de01
movq 0xe8(%rsp), %rax
cmpq 0xe0(%rsp), %rax
jg 0x12dc80
jmp 0x12dde8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xf8(%rsp)
movl %eax, 0xf4(%rsp)
jmp 0x12df3f
cmpl $0x0, 0x104(%rsp)
jne 0x12dd0e
movq 0x30(%rsp), %rax
movq 0x38(%rax), %rsi
movq 0xe8(%rsp), %rdx
leaq 0xb8(%rsp), %rdi
leaq 0x150(%rsp), %rcx
leaq 0x108(%rsp), %r8
callq 0x12cb20
jmp 0x12dcbe
movq 0x30(%rsp), %rdi
addq $0x10, %rdi
leaq 0xb8(%rsp), %rsi
callq 0xdd160
jmp 0x12dcd6
leaq 0xb8(%rsp), %rdi
callq 0xd2580
jmp 0x12ddd7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xf8(%rsp)
movl %eax, 0xf4(%rsp)
leaq 0xb8(%rsp), %rdi
callq 0xd2580
jmp 0x12df3f
movq 0x30(%rsp), %rax
movq %rax, %rcx
addq $0x10, %rcx
movq %rcx, 0x20(%rsp)
movq 0x38(%rax), %rsi
movq 0xe8(%rsp), %rdx
leaq 0x68(%rsp), %rdi
leaq 0x150(%rsp), %rcx
leaq 0x108(%rsp), %r8
callq 0x12cb20
jmp 0x12dd47
movq 0x20(%rsp), %rsi
leaq 0x90(%rsp), %rdi
leaq 0x68(%rsp), %rdx
callq 0xda5f0
jmp 0x12dd60
movq 0x30(%rsp), %rdi
addq $0x10, %rdi
leaq 0x90(%rsp), %rsi
callq 0xdd160
jmp 0x12dd78
leaq 0x90(%rsp), %rdi
callq 0xd2580
leaq 0x68(%rsp), %rdi
callq 0xd2580
jmp 0x12ddd7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xf8(%rsp)
movl %eax, 0xf4(%rsp)
jmp 0x12ddc8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xf8(%rsp)
movl %eax, 0xf4(%rsp)
leaq 0x90(%rsp), %rdi
callq 0xd2580
leaq 0x68(%rsp), %rdi
callq 0xd2580
jmp 0x12df3f
movl 0x104(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x104(%rsp)
movq 0xe8(%rsp), %rax
addq $0x1, %rax
movq %rax, 0xe8(%rsp)
jmp 0x12dc3a
jmp 0x12de03
leaq 0x108(%rsp), %rdi
leaq 0x138(%rsp), %rsi
leaq 0x120(%rsp), %rdx
callq 0x12ccd0
movb %al, 0x1f(%rsp)
jmp 0x12de26
movb 0x1f(%rsp), %al
testb $0x1, %al
jne 0x12dc00
jmp 0x12de34
cmpl $0x0, 0x104(%rsp)
jne 0x12df03
movb $0x1, 0x46(%rsp)
movl $0x20, %edi
callq 0xd2b40
movq %rax, 0x8(%rsp)
leaq 0x47(%rsp), %rdi
movq %rdi, 0x10(%rsp)
callq 0xe0c80
movq 0x10(%rsp), %rdx
leaq 0x5ac59(%rip), %rsi     # 0x188aca
leaq 0x48(%rsp), %rdi
callq 0xe00a0
jmp 0x12de7d
movq 0x8(%rsp), %rdi
leaq 0x48(%rsp), %rsi
callq 0xd06e0
jmp 0x12de8e
movq 0x8(%rsp), %rdi
movb $0x0, 0x46(%rsp)
movq 0x99fc9(%rip), %rsi     # 0x1c7e68
movq 0x99b7a(%rip), %rdx     # 0x1c7a20
callq 0xe01f0
jmp 0x12df80
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xf8(%rsp)
movl %eax, 0xf4(%rsp)
jmp 0x12dee4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xf8(%rsp)
movl %eax, 0xf4(%rsp)
leaq 0x48(%rsp), %rdi
callq 0xd4550
leaq 0x47(%rsp), %rdi
callq 0xd8ec0
testb $0x1, 0x46(%rsp)
jne 0x12def7
jmp 0x12df01
movq 0x8(%rsp), %rdi
callq 0xd5400
jmp 0x12df3f
leaq 0x108(%rsp), %rdi
callq 0xe1230
leaq 0x120(%rsp), %rdi
callq 0xe1230
leaq 0x138(%rsp), %rdi
callq 0xe1230
leaq 0x150(%rsp), %rdi
callq 0xd3b20
addq $0x188, %rsp            # imm = 0x188
retq
leaq 0x108(%rsp), %rdi
callq 0xe1230
leaq 0x120(%rsp), %rdi
callq 0xe1230
leaq 0x138(%rsp), %rdi
callq 0xe1230
leaq 0x150(%rsp), %rdi
callq 0xd3b20
movq 0xf8(%rsp), %rdi
callq 0xe0be0