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

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

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

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

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

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

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

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

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

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

  if (exponentiate::integral<fraction>::raise(fraction(21, 5), -5) !=
      fraction(3125, 4084101l)) {
    log << "(21/5)^(-5) should be (3125/4084101) but is "
        << exponentiate::integral<fraction>::raise(fraction(21, 5), -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 0x18(%rsp), %r14
movq $0x15, (%r14)
movq $0x5, 0x8(%r14)
movq %r14, %rdi
callq 0x1440e
movq %rsp, %rsi
movq $0x0, (%rsi)
movq %r14, %rdi
callq 0x5fec
movq %rax, %r15
movq %rdx, %r14
movl $0x1, %eax
leaq 0x8(%rsp), %r12
movq %rax, (%r12)
movq %rax, 0x8(%r12)
movq %r12, %rdi
callq 0x1440e
cmpq (%r12), %r15
jne 0x56c2
cmpq 0x10(%rsp), %r14
jne 0x56c2
movl $0x15, %r13d
leaq 0x18(%rsp), %r14
movq %r13, (%r14)
movl $0x5, %ebp
movq %rbp, 0x8(%r14)
movq %r14, %rdi
callq 0x1440e
movq %rsp, %rsi
movq $0x1, (%rsi)
movq %r14, %rdi
callq 0x5fec
movq %rax, %r15
movq %rdx, %r14
leaq 0x8(%rsp), %r12
movq %r13, (%r12)
movq %rbp, 0x8(%r12)
movq %r12, %rdi
callq 0x1440e
cmpq (%r12), %r15
jne 0x5701
cmpq 0x10(%rsp), %r14
jne 0x5701
leaq 0x18(%rsp), %r14
movq $0x15, (%r14)
movq $0x5, 0x8(%r14)
movq %r14, %rdi
callq 0x1440e
movq %rsp, %rsi
movq $0x2, (%rsi)
movq %r14, %rdi
callq 0x5fec
movq %rax, %r15
movq %rdx, %r14
leaq 0x8(%rsp), %r12
movq $0x1b9, (%r12)          # imm = 0x1B9
movq $0x19, 0x8(%r12)
movq %r12, %rdi
callq 0x1440e
cmpq (%r12), %r15
jne 0x5740
cmpq 0x10(%rsp), %r14
jne 0x5740
leaq 0x18(%rsp), %r14
movq $0x15, (%r14)
movq $0x5, 0x8(%r14)
movq %r14, %rdi
callq 0x1440e
movq %rsp, %rsi
movq $0x3, (%rsi)
movq %r14, %rdi
callq 0x5fec
movq %rax, %r15
movq %rdx, %r14
leaq 0x8(%rsp), %r12
movq $0x242d, (%r12)         # imm = 0x242D
movq $0x7d, 0x8(%r12)
movq %r12, %rdi
callq 0x1440e
cmpq (%r12), %r15
jne 0x577f
cmpq 0x10(%rsp), %r14
jne 0x577f
leaq 0x18(%rsp), %r14
movq $0x15, (%r14)
movq $0x5, 0x8(%r14)
movq %r14, %rdi
callq 0x1440e
movq %rsp, %rsi
movq $0x4, (%rsi)
movq %r14, %rdi
callq 0x5fec
movq %rax, %r15
movq %rdx, %r14
leaq 0x8(%rsp), %r12
movq $0x2f7b1, (%r12)        # imm = 0x2F7B1
movq $0x271, 0x8(%r12)       # imm = 0x271
movq %r12, %rdi
callq 0x1440e
cmpq (%r12), %r15
jne 0x57be
cmpq 0x10(%rsp), %r14
jne 0x57be
leaq 0x18(%rsp), %r14
movq $0x15, (%r14)
movl $0x5, %r13d
movq %r13, 0x8(%r14)
movq %r14, %rdi
callq 0x1440e
movq %rsp, %rsi
movq %r13, (%rsi)
movq %r14, %rdi
callq 0x5fec
movq %rax, %r15
movq %rdx, %r14
leaq 0x8(%rsp), %r12
movq $0x3e5185, (%r12)       # imm = 0x3E5185
movq $0xc35, 0x8(%r12)       # imm = 0xC35
movq %r12, %rdi
callq 0x1440e
cmpq (%r12), %r15
jne 0x57fd
cmpq 0x10(%rsp), %r14
jne 0x57fd
movl $0x15, %r13d
leaq 0x18(%rsp), %r14
movq %r13, (%r14)
movl $0x5, %ebp
movq %rbp, 0x8(%r14)
movq %r14, %rdi
callq 0x1440e
movq %rsp, %rsi
movq $-0x1, (%rsi)
movq %r14, %rdi
callq 0x5fec
movq %rax, %r15
movq %rdx, %r14
leaq 0x8(%rsp), %r12
movq %rbp, (%r12)
movq %r13, 0x8(%r12)
movq %r12, %rdi
callq 0x1440e
cmpq (%r12), %r15
jne 0x5834
cmpq 0x10(%rsp), %r14
jne 0x5834
leaq 0x18(%rsp), %r14
movq $0x15, (%r14)
movq $0x5, 0x8(%r14)
movq %r14, %rdi
callq 0x1440e
movq %rsp, %rsi
movq $-0x2, (%rsi)
movq %r14, %rdi
callq 0x5fec
movq %rax, %r15
movq %rdx, %r14
leaq 0x8(%rsp), %r12
movq $0x19, (%r12)
movq $0x1b9, 0x8(%r12)       # imm = 0x1B9
movq %r12, %rdi
callq 0x1440e
cmpq (%r12), %r15
jne 0x5873
cmpq 0x10(%rsp), %r14
jne 0x5873
leaq 0x18(%rsp), %r14
movq $0x15, (%r14)
movq $0x5, 0x8(%r14)
movq %r14, %rdi
callq 0x1440e
movq %rsp, %rsi
movq $-0x3, (%rsi)
movq %r14, %rdi
callq 0x5fec
movq %rax, %r15
movq %rdx, %r14
leaq 0x8(%rsp), %r12
movq $0x7d, (%r12)
movq $0x242d, 0x8(%r12)      # imm = 0x242D
movq %r12, %rdi
callq 0x1440e
cmpq (%r12), %r15
jne 0x58af
cmpq 0x10(%rsp), %r14
jne 0x58af
leaq 0x18(%rsp), %r14
movq $0x15, (%r14)
movq $0x5, 0x8(%r14)
movq %r14, %rdi
callq 0x1440e
movq %rsp, %rsi
movq $-0x4, (%rsi)
movq %r14, %rdi
callq 0x5fec
movq %rax, %r15
movq %rdx, %r14
leaq 0x8(%rsp), %r12
movq $0x271, (%r12)          # imm = 0x271
movq $0x2f7b1, 0x8(%r12)     # imm = 0x2F7B1
movq %r12, %rdi
callq 0x1440e
cmpq (%r12), %r15
jne 0x58eb
cmpq 0x10(%rsp), %r14
jne 0x58eb
leaq 0x18(%rsp), %r14
movq $0x15, (%r14)
movq $0x5, 0x8(%r14)
movq %r14, %rdi
callq 0x1440e
movq %rsp, %rsi
movq $-0x5, (%rsi)
movq %r14, %rdi
callq 0x5fec
movq %rax, %r15
movq %rdx, %r14
leaq 0x8(%rsp), %r12
movq $0xc35, (%r12)          # imm = 0xC35
movq $0x3e5185, 0x8(%r12)    # imm = 0x3E5185
movq %r12, %rdi
callq 0x1440e
cmpq (%r12), %r15
jne 0x5683
movb $0x1, %al
cmpq 0x10(%rsp), %r14
je 0x5957
leaq 0xfc0f(%rip), %rsi      # 0x15299
movl $0x2c, %edx
movq %rbx, %rdi
callq 0x42b0
leaq 0x8(%rsp), %r14
movq $0x15, (%r14)
movq $0x5, 0x8(%r14)
movq %r14, %rdi
callq 0x1440e
movq %rsp, %rsi
movq $-0x5, (%rsi)
jmp 0x5925
leaq 0xfa51(%rip), %rsi      # 0x1511a
movl $0x20, %edx
movq %rbx, %rdi
callq 0x42b0
leaq 0x8(%rsp), %r14
movq $0x15, (%r14)
movq $0x5, 0x8(%r14)
movq %r14, %rdi
callq 0x1440e
movq %rsp, %rsi
movq $0x0, (%rsi)
jmp 0x5925
leaq 0xfa33(%rip), %rsi      # 0x1513b
movl $0x21, %edx
movq %rbx, %rdi
callq 0x42b0
leaq 0x8(%rsp), %r14
movq $0x15, (%r14)
movq $0x5, 0x8(%r14)
movq %r14, %rdi
callq 0x1440e
movq %rsp, %rsi
movq $0x1, (%rsi)
jmp 0x5925
leaq 0xfa16(%rip), %rsi      # 0x1515d
movl $0x23, %edx
movq %rbx, %rdi
callq 0x42b0
leaq 0x8(%rsp), %r14
movq $0x15, (%r14)
movq $0x5, 0x8(%r14)
movq %r14, %rdi
callq 0x1440e
movq %rsp, %rsi
movq $0x2, (%rsi)
jmp 0x5925
leaq 0xf9fb(%rip), %rsi      # 0x15181
movl $0x25, %edx
movq %rbx, %rdi
callq 0x42b0
leaq 0x8(%rsp), %r14
movq $0x15, (%r14)
movq $0x5, 0x8(%r14)
movq %r14, %rdi
callq 0x1440e
movq %rsp, %rsi
movq $0x3, (%rsi)
jmp 0x5925
leaq 0xf9e2(%rip), %rsi      # 0x151a7
movl $0x27, %edx
movq %rbx, %rdi
callq 0x42b0
leaq 0x8(%rsp), %r14
movq $0x15, (%r14)
movq $0x5, 0x8(%r14)
movq %r14, %rdi
callq 0x1440e
movq %rsp, %rsi
movq $0x4, (%rsi)
jmp 0x5925
leaq 0xf9cb(%rip), %rsi      # 0x151cf
movl $0x29, %edx
movq %rbx, %rdi
callq 0x42b0
leaq 0x8(%rsp), %r14
movq $0x15, (%r14)
movq %r13, 0x8(%r14)
movq %r14, %rdi
callq 0x1440e
movq %rsp, %rsi
movq %r13, (%rsi)
jmp 0x5925
leaq 0xf9be(%rip), %rsi      # 0x151f9
movl $0x24, %edx
movq %rbx, %rdi
callq 0x42b0
leaq 0x8(%rsp), %r14
movq $0x15, (%r14)
movq $0x5, 0x8(%r14)
movq %r14, %rdi
callq 0x1440e
movq %rsp, %rsi
movq $-0x1, (%rsi)
jmp 0x5925
leaq 0xf9a4(%rip), %rsi      # 0x1521e
movl $0x26, %edx
movq %rbx, %rdi
callq 0x42b0
leaq 0x8(%rsp), %r14
movq $0x15, (%r14)
movq $0x5, 0x8(%r14)
movq %r14, %rdi
callq 0x1440e
movq %rsp, %rsi
movq $-0x2, (%rsi)
jmp 0x5925
leaq 0xf98f(%rip), %rsi      # 0x15245
movl $0x28, %edx
movq %rbx, %rdi
callq 0x42b0
leaq 0x8(%rsp), %r14
movq $0x15, (%r14)
movq $0x5, 0x8(%r14)
movq %r14, %rdi
callq 0x1440e
movq %rsp, %rsi
movq $-0x3, (%rsi)
jmp 0x5925
leaq 0xf97c(%rip), %rsi      # 0x1526e
movl $0x2a, %edx
movq %rbx, %rdi
callq 0x42b0
leaq 0x8(%rsp), %r14
movq $0x15, (%r14)
movq $0x5, 0x8(%r14)
movq %r14, %rdi
callq 0x1440e
movq %rsp, %rsi
movq $-0x4, (%rsi)
movq %r14, %rdi
callq 0x5fec
leaq 0x18(%rsp), %rsi
movq %rax, (%rsi)
movq %rdx, 0x8(%rsi)
movq %rbx, %rdi
callq 0x5d2d
leaq 0xf9ed(%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