// File: /workspace/github_cpp_makefile_star2_O2/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 0x123d4
pushq $0x1
popq %r15
movq %rsp, %r14
movq %r15, (%r14)
movq %r15, 0x8(%r14)
movq %r14, %rdi
callq 0x123d4
cmpq %r15, (%r14)
jne 0x4d13
cmpq $0x1, 0x8(%rsp)
jne 0x4d13
pushq $0x15
popq %r13
leaq 0x10(%rsp), %r14
movq %r13, (%r14)
pushq $0x5
popq %rbp
movq %rbp, 0x8(%r14)
movq %r14, %rdi
callq 0x123d4
movq (%r14), %r12
movq 0x8(%r14), %r15
movq %rsp, %r14
movq %r13, (%r14)
movq %rbp, 0x8(%r14)
movq %r14, %rdi
callq 0x123d4
cmpq (%r14), %r12
jne 0x4d4d
cmpq 0x8(%rsp), %r15
jne 0x4d4d
leaq 0x10(%rsp), %r14
movq $0x15, (%r14)
movq $0x5, 0x8(%r14)
movq %r14, %rdi
callq 0x123d4
movq %r14, %rdi
callq 0x5998
movq %rax, %r15
movq %rdx, %r14
movq %rsp, %r12
movq $0x1b9, (%r12)          # imm = 0x1B9
movq $0x19, 0x8(%r12)
movq %r12, %rdi
callq 0x123d4
cmpq (%r12), %r15
jne 0x4d8a
cmpq 0x8(%rsp), %r14
jne 0x4d8a
leaq 0x10(%rsp), %r14
movq $0x15, (%r14)
movq $0x5, 0x8(%r14)
movq %r14, %rdi
callq 0x123d4
movq %r14, %rdi
callq 0x59a0
movq %rax, %r15
movq %rdx, %r14
movq %rsp, %r12
movq $0x242d, (%r12)         # imm = 0x242D
movq $0x7d, 0x8(%r12)
movq %r12, %rdi
callq 0x123d4
cmpq (%r12), %r15
jne 0x4dc3
cmpq 0x8(%rsp), %r14
jne 0x4dc3
leaq 0x10(%rsp), %r14
movq $0x15, (%r14)
movq $0x5, 0x8(%r14)
movq %r14, %rdi
callq 0x123d4
movq %r14, %rdi
callq 0x59c8
movq %rax, %r15
movq %rdx, %r14
movq %rsp, %r12
movq $0x2f7b1, (%r12)        # imm = 0x2F7B1
movq $0x271, 0x8(%r12)       # imm = 0x271
movq %r12, %rdi
callq 0x123d4
cmpq (%r12), %r15
jne 0x4dfc
cmpq 0x8(%rsp), %r14
jne 0x4dfc
leaq 0x10(%rsp), %r14
movq $0x15, (%r14)
movq $0x5, 0x8(%r14)
movq %r14, %rdi
callq 0x123d4
movq %r14, %rdi
callq 0x59ea
movq %rax, %r15
movq %rdx, %r14
movq %rsp, %r12
movq $0x3e5185, (%r12)       # imm = 0x3E5185
movq $0xc35, 0x8(%r12)       # imm = 0xC35
movq %r12, %rdi
callq 0x123d4
cmpq (%r12), %r15
jne 0x4e35
cmpq 0x8(%rsp), %r14
jne 0x4e35
leaq 0x10(%rsp), %r14
movq %r13, (%r14)
movq %rbp, 0x8(%r14)
movq %r14, %rdi
callq 0x123d4
movq %r14, %rdi
callq 0x5a24
movq %rax, %r15
movq %rdx, %r14
movq %rsp, %r12
movq %rbp, (%r12)
movq %r13, 0x8(%r12)
movq %r12, %rdi
callq 0x123d4
cmpq (%r12), %r15
jne 0x4e6e
cmpq 0x8(%rsp), %r14
jne 0x4e6e
leaq 0x10(%rsp), %r14
movq $0x15, (%r14)
movq $0x5, 0x8(%r14)
movq %r14, %rdi
callq 0x123d4
movq %r14, %rdi
callq 0x5a44
movq %rax, %r15
movq %rdx, %r14
movq %rsp, %r12
movq $0x19, (%r12)
movq $0x1b9, 0x8(%r12)       # imm = 0x1B9
movq %r12, %rdi
callq 0x123d4
cmpq (%r12), %r15
jne 0x4ea7
cmpq 0x8(%rsp), %r14
jne 0x4ea7
leaq 0x10(%rsp), %r14
movq $0x15, (%r14)
movq $0x5, 0x8(%r14)
movq %r14, %rdi
callq 0x123d4
movq %r14, %rdi
callq 0x5a66
movq %rax, %r15
movq %rdx, %r14
movq %rsp, %r12
movq $0x7d, (%r12)
movq $0x242d, 0x8(%r12)      # imm = 0x242D
movq %r12, %rdi
callq 0x123d4
cmpq (%r12), %r15
jne 0x4edd
cmpq 0x8(%rsp), %r14
jne 0x4edd
leaq 0x10(%rsp), %r14
movq $0x15, (%r14)
movq $0x5, 0x8(%r14)
movq %r14, %rdi
callq 0x123d4
movq %r14, %rdi
callq 0x5aa0
movq %rax, %r15
movq %rdx, %r14
movq %rsp, %r12
movq $0x271, (%r12)          # imm = 0x271
movq $0x2f7b1, 0x8(%r12)     # imm = 0x2F7B1
movq %r12, %rdi
callq 0x123d4
cmpq (%r12), %r15
jne 0x4f13
cmpq 0x8(%rsp), %r14
jne 0x4f13
leaq 0x10(%rsp), %r14
movq $0x15, (%r14)
movq $0x5, 0x8(%r14)
movq %r14, %rdi
callq 0x123d4
movq %r14, %rdi
callq 0x5ac2
movq %rax, %r15
movq %rdx, %r14
movq %rsp, %r12
movq $0xc35, (%r12)          # imm = 0xC35
movq $0x3e5185, 0x8(%r12)    # imm = 0x3E5185
movq %r12, %rdi
callq 0x123d4
cmpq (%r12), %r15
jne 0x4cda
movb $0x1, %al
cmpq 0x8(%rsp), %r14
je 0x4f6c
leaq 0xe5b8(%rip), %rsi      # 0x13299
movq %rbx, %rdi
callq 0x4270
movq %rax, %rbx
movq %rsp, %r14
movq $0x15, (%r14)
movq $0x5, 0x8(%r14)
movq %r14, %rdi
callq 0x123d4
movq %r14, %rdi
callq 0x5ac2
jmp 0x4f47
leaq 0xe400(%rip), %rsi      # 0x1311a
movq %rbx, %rdi
callq 0x4270
movq %rax, %rbx
movq %rsp, %rdi
movq $0x15, (%rdi)
movq $0x5, 0x8(%rdi)
callq 0x123d4
leaq 0x10(%rsp), %rsi
movq %r15, (%rsi)
movq %r15, 0x8(%rsi)
jmp 0x4f53
leaq 0xe3e7(%rip), %rsi      # 0x1313b
movq %rbx, %rdi
callq 0x4270
movq %rax, %rbx
movq %rsp, %r14
movq $0x15, (%r14)
movq $0x5, 0x8(%r14)
movq %r14, %rdi
callq 0x123d4
movaps (%r14), %xmm0
leaq 0x10(%rsp), %rsi
movaps %xmm0, (%rsi)
jmp 0x4f53
leaq 0xe3cc(%rip), %rsi      # 0x1315d
movq %rbx, %rdi
callq 0x4270
movq %rax, %rbx
movq %rsp, %r14
movq $0x15, (%r14)
movq $0x5, 0x8(%r14)
movq %r14, %rdi
callq 0x123d4
movq %r14, %rdi
callq 0x5998
jmp 0x4f47
leaq 0xe3b7(%rip), %rsi      # 0x13181
movq %rbx, %rdi
callq 0x4270
movq %rax, %rbx
movq %rsp, %r14
movq $0x15, (%r14)
movq $0x5, 0x8(%r14)
movq %r14, %rdi
callq 0x123d4
movq %r14, %rdi
callq 0x59a0
jmp 0x4f47
leaq 0xe3a4(%rip), %rsi      # 0x131a7
movq %rbx, %rdi
callq 0x4270
movq %rax, %rbx
movq %rsp, %r14
movq $0x15, (%r14)
movq $0x5, 0x8(%r14)
movq %r14, %rdi
callq 0x123d4
movq %r14, %rdi
callq 0x59c8
jmp 0x4f47
leaq 0xe393(%rip), %rsi      # 0x131cf
movq %rbx, %rdi
callq 0x4270
movq %rax, %rbx
movq %rsp, %r14
movq $0x15, (%r14)
movq $0x5, 0x8(%r14)
movq %r14, %rdi
callq 0x123d4
movq %r14, %rdi
callq 0x59ea
jmp 0x4f47
leaq 0xe384(%rip), %rsi      # 0x131f9
movq %rbx, %rdi
callq 0x4270
movq %rax, %rbx
movq %rsp, %r14
movq $0x15, (%r14)
movq $0x5, 0x8(%r14)
movq %r14, %rdi
callq 0x123d4
movq %r14, %rdi
callq 0x5a24
jmp 0x4f47
leaq 0xe370(%rip), %rsi      # 0x1321e
movq %rbx, %rdi
callq 0x4270
movq %rax, %rbx
movq %rsp, %r14
movq $0x15, (%r14)
movq $0x5, 0x8(%r14)
movq %r14, %rdi
callq 0x123d4
movq %r14, %rdi
callq 0x5a44
jmp 0x4f47
leaq 0xe361(%rip), %rsi      # 0x13245
movq %rbx, %rdi
callq 0x4270
movq %rax, %rbx
movq %rsp, %r14
movq $0x15, (%r14)
movq $0x5, 0x8(%r14)
movq %r14, %rdi
callq 0x123d4
movq %r14, %rdi
callq 0x5a66
jmp 0x4f47
leaq 0xe354(%rip), %rsi      # 0x1326e
movq %rbx, %rdi
callq 0x4270
movq %rax, %rbx
movq %rsp, %r14
movq $0x15, (%r14)
movq $0x5, 0x8(%r14)
movq %r14, %rdi
callq 0x123d4
movq %r14, %rdi
callq 0x5aa0
leaq 0x10(%rsp), %rsi
movq %rax, (%rsi)
movq %rdx, 0x8(%rsi)
movq %rbx, %rdi
callq 0x596f
leaq 0xe3d3(%rip), %rsi      # 0x13335
movq %rax, %rdi
callq 0x4270
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq