// File: /workspace/github_cpp_makefile_star2_O3/ef-gy[P]libefgy/src/test-case/exponential.cpp
// Function: testIntegralExponents(std::ostream&)
bool testIntegralExponents(std::ostream &log) {
  if (exponentiate::integral<fraction, 0>::raise(fraction(21, 5)) !=
      fraction(1, 1)) {
    log << "(21/5)^0 should be (1/1) but is "
        << exponentiate::integral<fraction, 0>::raise(fraction(21, 5)) << "\n";
    return false;
  }

  if (exponentiate::integral<fraction, 1>::raise(fraction(21, 5)) !=
      fraction(21, 5)) {
    log << "(21/5)^1 should be (21/5) but is "
        << exponentiate::integral<fraction, 1>::raise(fraction(21, 5)) << "\n";
    return false;
  }

  if (exponentiate::integral<fraction, 2>::raise(fraction(21, 5)) !=
      fraction(441, 25)) {
    log << "(21/5)^2 should be (441/25) but is "
        << exponentiate::integral<fraction, 2>::raise(fraction(21, 5)) << "\n";
    return false;
  }

  if (exponentiate::integral<fraction, 3>::raise(fraction(21, 5)) !=
      fraction(9261, 125)) {
    log << "(21/5)^3 should be (9261/125) but is "
        << exponentiate::integral<fraction, 3>::raise(fraction(21, 5)) << "\n";
    return false;
  }

  if (exponentiate::integral<fraction, 4>::raise(fraction(21, 5)) !=
      fraction(194481, 625)) {
    log << "(21/5)^4 should be (194481/625) but is "
        << exponentiate::integral<fraction, 4>::raise(fraction(21, 5)) << "\n";
    return false;
  }

  if (exponentiate::integral<fraction, 5>::raise(fraction(21, 5)) !=
      fraction(4084101l, 3125)) {
    log << "(21/5)^5 should be (4084101/3125) but is "
        << exponentiate::integral<fraction, 5>::raise(fraction(21, 5)) << "\n";
    return false;
  }

  if (exponentiate::integral<fraction, -1>::raise(fraction(21, 5)) !=
      fraction(5, 21)) {
    log << "(21/5)^(-1) should be (5/21) but is "
        << exponentiate::integral<fraction, -1>::raise(fraction(21, 5)) << "\n";
    return false;
  }

  if (exponentiate::integral<fraction, -2>::raise(fraction(21, 5)) !=
      fraction(25, 441)) {
    log << "(21/5)^(-2) should be (25/441) but is "
        << exponentiate::integral<fraction, -2>::raise(fraction(21, 5)) << "\n";
    return false;
  }

  if (exponentiate::integral<fraction, -3>::raise(fraction(21, 5)) !=
      fraction(125, 9261)) {
    log << "(21/5)^(-3) should be (125/9261) but is "
        << exponentiate::integral<fraction, -3>::raise(fraction(21, 5)) << "\n";
    return false;
  }

  if (exponentiate::integral<fraction, -4>::raise(fraction(21, 5)) !=
      fraction(625, 194481)) {
    log << "(21/5)^(-4) should be (625/194481) but is "
        << exponentiate::integral<fraction, -4>::raise(fraction(21, 5)) << "\n";
    return false;
  }

  if (exponentiate::integral<fraction, -5>::raise(fraction(21, 5)) !=
      fraction(3125, 4084101l)) {
    log << "(21/5)^(-5) should be (3125/4084101) but is "
        << exponentiate::integral<fraction, -5>::raise(fraction(21, 5)) << "\n";
    return false;
  }

  return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0x10(%rsp), %rdi
movq $0x15, (%rdi)
movq $0x5, 0x8(%rdi)
callq 0x1440e
movl $0x1, %r15d
movq %rsp, %r14
movq %r15, (%r14)
movq %r15, 0x8(%r14)
movq %r14, %rdi
callq 0x1440e
cmpq %r15, (%r14)
jne 0x4f61
cmpq $0x1, 0x8(%rsp)
jne 0x4f61
movl $0x15, %r12d
leaq 0x10(%rsp), %r14
movq %r12, (%r14)
movl $0x5, %r13d
movq %r13, 0x8(%r14)
movq %r14, %rdi
callq 0x1440e
movq (%r14), %rbp
movq 0x8(%r14), %r15
movq %rsp, %r14
movq %r12, (%r14)
movq %r13, 0x8(%r14)
movq %r14, %rdi
callq 0x1440e
cmpq (%r14), %rbp
jne 0x4f9d
cmpq 0x8(%rsp), %r15
jne 0x4f9d
movq %rsp, %r14
movq $0x15, (%r14)
movq $0x5, 0x8(%r14)
movq %r14, %rdi
callq 0x1440e
movq (%r14), %rax
movq 0x8(%r14), %rcx
imulq %rax, %rax
imulq %rcx, %rcx
leaq 0x10(%rsp), %r14
movq %rax, (%r14)
movq %rcx, 0x8(%r14)
movq %r14, %rdi
callq 0x1440e
movq (%r14), %r12
movq 0x8(%r14), %r15
movq $0x1b9, (%r14)          # imm = 0x1B9
movq $0x19, 0x8(%r14)
leaq 0x10(%rsp), %r14
movq %r14, %rdi
callq 0x1440e
cmpq (%r14), %r12
jne 0x4fde
cmpq 0x18(%rsp), %r15
jne 0x4fde
leaq 0x10(%rsp), %r14
movq $0x15, (%r14)
movq $0x5, 0x8(%r14)
movq %r14, %rdi
callq 0x1440e
movq %r14, %rdi
callq 0x5d66
movq %rax, %r15
movq %rdx, %r14
movq %rsp, %r12
movq $0x242d, (%r12)         # imm = 0x242D
movq $0x7d, 0x8(%r12)
movq %r12, %rdi
callq 0x1440e
cmpq (%r12), %r15
jne 0x5043
cmpq 0x8(%rsp), %r14
jne 0x5043
leaq 0x10(%rsp), %r14
movq $0x15, (%r14)
movq $0x5, 0x8(%r14)
movq %r14, %rdi
callq 0x1440e
movq %r14, %rdi
callq 0x5dc6
movq %rax, %r15
movq %rdx, %r14
movq %rsp, %r12
movq $0x2f7b1, (%r12)        # imm = 0x2F7B1
movq $0x271, 0x8(%r12)       # imm = 0x271
movq %r12, %rdi
callq 0x1440e
cmpq (%r12), %r15
jne 0x507b
cmpq 0x8(%rsp), %r14
jne 0x507b
leaq 0x10(%rsp), %r14
movq $0x15, (%r14)
movq $0x5, 0x8(%r14)
movq %r14, %rdi
callq 0x1440e
movq %r14, %rdi
callq 0x5e1a
movq %rax, %r15
movq %rdx, %r14
movq %rsp, %r12
movq $0x3e5185, (%r12)       # imm = 0x3E5185
movq $0xc35, 0x8(%r12)       # imm = 0xC35
movq %r12, %rdi
callq 0x1440e
cmpq (%r12), %r15
jne 0x50b3
cmpq 0x8(%rsp), %r14
jne 0x50b3
movl $0x15, %r12d
movq %rsp, %r14
movq %r12, (%r14)
movl $0x5, %r13d
movq %r13, 0x8(%r14)
movq %r14, %rdi
callq 0x1440e
pshufd $0x4e, (%r14), %xmm0    # xmm0 = mem[2,3,0,1]
leaq 0x10(%rsp), %r14
movdqa %xmm0, (%r14)
movq %r14, %rdi
callq 0x1440e
movq (%r14), %rbp
movq 0x8(%r14), %r15
movq %r13, (%r14)
movq %r12, 0x8(%r14)
leaq 0x10(%rsp), %r14
movq %r14, %rdi
callq 0x1440e
cmpq (%r14), %rbp
jne 0x5122
cmpq 0x18(%rsp), %r15
jne 0x5122
leaq 0x10(%rsp), %r14
movq $0x15, (%r14)
movq $0x5, 0x8(%r14)
movq %r14, %rdi
callq 0x1440e
movq %r14, %rdi
callq 0x5e9e
movq %rax, %r15
movq %rdx, %r14
movq %rsp, %r12
movq $0x19, (%r12)
movq $0x1b9, 0x8(%r12)       # imm = 0x1B9
movq %r12, %rdi
callq 0x1440e
cmpq (%r12), %r15
jne 0x5165
cmpq 0x8(%rsp), %r14
jne 0x5165
leaq 0x10(%rsp), %r14
movq $0x15, (%r14)
movq $0x5, 0x8(%r14)
movq %r14, %rdi
callq 0x1440e
movq %r14, %rdi
callq 0x5ee6
movq %rax, %r15
movq %rdx, %r14
movq %rsp, %r12
movq $0x7d, (%r12)
movq $0x242d, 0x8(%r12)      # imm = 0x242D
movq %r12, %rdi
callq 0x1440e
cmpq (%r12), %r15
jne 0x51a0
cmpq 0x8(%rsp), %r14
jne 0x51a0
leaq 0x10(%rsp), %r14
movq $0x15, (%r14)
movq $0x5, 0x8(%r14)
movq %r14, %rdi
callq 0x1440e
movq %r14, %rdi
callq 0x5f4c
movq %rax, %r15
movq %rdx, %r14
movq %rsp, %r12
movq $0x271, (%r12)          # imm = 0x271
movq $0x2f7b1, 0x8(%r12)     # imm = 0x2F7B1
movq %r12, %rdi
callq 0x1440e
cmpq (%r12), %r15
jne 0x51db
cmpq 0x8(%rsp), %r14
jne 0x51db
leaq 0x10(%rsp), %r14
movq $0x15, (%r14)
movq $0x5, 0x8(%r14)
movq %r14, %rdi
callq 0x1440e
movq %r14, %rdi
callq 0x5f86
movq %rax, %r15
movq %rdx, %r14
movq %rsp, %r12
movq $0xc35, (%r12)          # imm = 0xC35
movq $0x3e5185, 0x8(%r12)    # imm = 0x3E5185
movq %r12, %rdi
callq 0x1440e
cmpq (%r12), %r15
jne 0x4f26
movb $0x1, %al
cmpq 0x8(%rsp), %r14
je 0x5113
leaq 0x1036c(%rip), %rsi     # 0x15299
movl $0x2c, %edx
movq %rbx, %rdi
callq 0x42b0
movq %rsp, %r14
movq $0x15, (%r14)
movq $0x5, 0x8(%r14)
movq %r14, %rdi
callq 0x1440e
movq %r14, %rdi
callq 0x5f86
jmp 0x50e9
leaq 0x101b2(%rip), %rsi     # 0x1511a
movl $0x20, %edx
movq %rbx, %rdi
callq 0x42b0
movq %rsp, %rdi
movq $0x15, (%rdi)
movq $0x5, 0x8(%rdi)
callq 0x1440e
leaq 0x10(%rsp), %rsi
movq %r15, (%rsi)
movq %r15, 0x8(%rsi)
jmp 0x50f5
leaq 0x10197(%rip), %rsi     # 0x1513b
movl $0x21, %edx
movq %rbx, %rdi
callq 0x42b0
movq %rsp, %r14
movq $0x15, (%r14)
movq $0x5, 0x8(%r14)
movq %r14, %rdi
callq 0x1440e
movdqa (%r14), %xmm0
leaq 0x10(%rsp), %rsi
movdqa %xmm0, (%rsi)
jmp 0x50f5
leaq 0x10178(%rip), %rsi     # 0x1515d
movl $0x23, %edx
movq %rbx, %rdi
callq 0x42b0
movq %rsp, %r14
movq $0x15, (%r14)
movq $0x5, 0x8(%r14)
movq %r14, %rdi
callq 0x1440e
movq (%r14), %rax
movq 0x8(%r14), %rcx
imulq %rax, %rax
imulq %rcx, %rcx
leaq 0x10(%rsp), %r14
movq %rax, (%r14)
movq %rcx, 0x8(%r14)
movq %r14, %rdi
callq 0x1440e
movdqa (%r14), %xmm0
movdqa %xmm0, (%r14)
leaq 0x10(%rsp), %rsi
jmp 0x50f5
leaq 0x10137(%rip), %rsi     # 0x15181
movl $0x25, %edx
movq %rbx, %rdi
callq 0x42b0
movq %rsp, %r14
movq $0x15, (%r14)
movq $0x5, 0x8(%r14)
movq %r14, %rdi
callq 0x1440e
movq %r14, %rdi
callq 0x5d66
jmp 0x50e9
leaq 0x10125(%rip), %rsi     # 0x151a7
movl $0x27, %edx
movq %rbx, %rdi
callq 0x42b0
movq %rsp, %r14
movq $0x15, (%r14)
movq $0x5, 0x8(%r14)
movq %r14, %rdi
callq 0x1440e
movq %r14, %rdi
callq 0x5dc6
jmp 0x50e9
leaq 0x10115(%rip), %rsi     # 0x151cf
movl $0x29, %edx
movq %rbx, %rdi
callq 0x42b0
movq %rsp, %r14
movq $0x15, (%r14)
movq $0x5, 0x8(%r14)
movq %r14, %rdi
callq 0x1440e
movq %r14, %rdi
callq 0x5e1a
leaq 0x10(%rsp), %rsi
movq %rax, (%rsi)
movq %rdx, 0x8(%rsi)
movq %rbx, %rdi
callq 0x5d2d
leaq 0x10231(%rip), %rsi     # 0x15335
movl $0x1, %edx
movq %rax, %rdi
callq 0x42b0
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x100d0(%rip), %rsi     # 0x151f9
movl $0x24, %edx
movq %rbx, %rdi
callq 0x42b0
movq %rsp, %r14
movq $0x15, (%r14)
movq $0x5, 0x8(%r14)
movq %r14, %rdi
callq 0x1440e
pshufd $0x4e, (%r14), %xmm0    # xmm0 = mem[2,3,0,1]
leaq 0x10(%rsp), %r14
movdqa %xmm0, (%r14)
jmp 0x5027
leaq 0x100b2(%rip), %rsi     # 0x1521e
movl $0x26, %edx
movq %rbx, %rdi
callq 0x42b0
movq %rsp, %r14
movq $0x15, (%r14)
movq $0x5, 0x8(%r14)
movq %r14, %rdi
callq 0x1440e
movq %r14, %rdi
callq 0x5e9e
jmp 0x50e9
leaq 0x1009e(%rip), %rsi     # 0x15245
movl $0x28, %edx
movq %rbx, %rdi
callq 0x42b0
movq %rsp, %r14
movq $0x15, (%r14)
movq $0x5, 0x8(%r14)
movq %r14, %rdi
callq 0x1440e
movq %r14, %rdi
callq 0x5ee6
jmp 0x50e9
leaq 0x1008c(%rip), %rsi     # 0x1526e
movl $0x2a, %edx
movq %rbx, %rdi
callq 0x42b0
movq %rsp, %r14
movq $0x15, (%r14)
movq $0x5, 0x8(%r14)
movq %r14, %rdi
callq 0x1440e
movq %r14, %rdi
callq 0x5f4c
jmp 0x50e9