// File: /workspace/github_cpp_makefile_star2_O1/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 0x14406
movq %rsp, %rsi
movq $0x0, (%rsi)
movq %r14, %rdi
callq 0x6034
movq %rax, %r15
movq %rdx, %r14
movl $0x1, %eax
leaq 0x8(%rsp), %r12
movq %rax, (%r12)
movq %rax, 0x8(%r12)
movq %r12, %rdi
callq 0x14406
cmpq (%r12), %r15
jne 0x56f0
cmpq 0x10(%rsp), %r14
jne 0x56f0
movl $0x15, %r13d
leaq 0x18(%rsp), %r14
movq %r13, (%r14)
movl $0x5, %ebp
movq %rbp, 0x8(%r14)
movq %r14, %rdi
callq 0x14406
movq %rsp, %rsi
movq $0x1, (%rsi)
movq %r14, %rdi
callq 0x6034
movq %rax, %r15
movq %rdx, %r14
leaq 0x8(%rsp), %r12
movq %r13, (%r12)
movq %rbp, 0x8(%r12)
movq %r12, %rdi
callq 0x14406
cmpq (%r12), %r15
jne 0x572f
cmpq 0x10(%rsp), %r14
jne 0x572f
leaq 0x18(%rsp), %r14
movq $0x15, (%r14)
movq $0x5, 0x8(%r14)
movq %r14, %rdi
callq 0x14406
movq %rsp, %rsi
movq $0x2, (%rsi)
movq %r14, %rdi
callq 0x6034
movq %rax, %r15
movq %rdx, %r14
leaq 0x8(%rsp), %r12
movq $0x1b9, (%r12)          # imm = 0x1B9
movq $0x19, 0x8(%r12)
movq %r12, %rdi
callq 0x14406
cmpq (%r12), %r15
jne 0x576e
cmpq 0x10(%rsp), %r14
jne 0x576e
leaq 0x18(%rsp), %r14
movq $0x15, (%r14)
movq $0x5, 0x8(%r14)
movq %r14, %rdi
callq 0x14406
movq %rsp, %rsi
movq $0x3, (%rsi)
movq %r14, %rdi
callq 0x6034
movq %rax, %r15
movq %rdx, %r14
leaq 0x8(%rsp), %r12
movq $0x242d, (%r12)         # imm = 0x242D
movq $0x7d, 0x8(%r12)
movq %r12, %rdi
callq 0x14406
cmpq (%r12), %r15
jne 0x57ad
cmpq 0x10(%rsp), %r14
jne 0x57ad
leaq 0x18(%rsp), %r14
movq $0x15, (%r14)
movq $0x5, 0x8(%r14)
movq %r14, %rdi
callq 0x14406
movq %rsp, %rsi
movq $0x4, (%rsi)
movq %r14, %rdi
callq 0x6034
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 0x14406
cmpq (%r12), %r15
jne 0x57ec
cmpq 0x10(%rsp), %r14
jne 0x57ec
leaq 0x18(%rsp), %r14
movq $0x15, (%r14)
movl $0x5, %r13d
movq %r13, 0x8(%r14)
movq %r14, %rdi
callq 0x14406
movq %rsp, %rsi
movq %r13, (%rsi)
movq %r14, %rdi
callq 0x6034
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 0x14406
cmpq (%r12), %r15
jne 0x582b
cmpq 0x10(%rsp), %r14
jne 0x582b
movl $0x15, %r13d
leaq 0x18(%rsp), %r14
movq %r13, (%r14)
movl $0x5, %ebp
movq %rbp, 0x8(%r14)
movq %r14, %rdi
callq 0x14406
movq %rsp, %rsi
movq $-0x1, (%rsi)
movq %r14, %rdi
callq 0x6034
movq %rax, %r15
movq %rdx, %r14
leaq 0x8(%rsp), %r12
movq %rbp, (%r12)
movq %r13, 0x8(%r12)
movq %r12, %rdi
callq 0x14406
cmpq (%r12), %r15
jne 0x5862
cmpq 0x10(%rsp), %r14
jne 0x5862
leaq 0x18(%rsp), %r14
movq $0x15, (%r14)
movq $0x5, 0x8(%r14)
movq %r14, %rdi
callq 0x14406
movq %rsp, %rsi
movq $-0x2, (%rsi)
movq %r14, %rdi
callq 0x6034
movq %rax, %r15
movq %rdx, %r14
leaq 0x8(%rsp), %r12
movq $0x19, (%r12)
movq $0x1b9, 0x8(%r12)       # imm = 0x1B9
movq %r12, %rdi
callq 0x14406
cmpq (%r12), %r15
jne 0x58a1
cmpq 0x10(%rsp), %r14
jne 0x58a1
leaq 0x18(%rsp), %r14
movq $0x15, (%r14)
movq $0x5, 0x8(%r14)
movq %r14, %rdi
callq 0x14406
movq %rsp, %rsi
movq $-0x3, (%rsi)
movq %r14, %rdi
callq 0x6034
movq %rax, %r15
movq %rdx, %r14
leaq 0x8(%rsp), %r12
movq $0x7d, (%r12)
movq $0x242d, 0x8(%r12)      # imm = 0x242D
movq %r12, %rdi
callq 0x14406
cmpq (%r12), %r15
jne 0x58dd
cmpq 0x10(%rsp), %r14
jne 0x58dd
leaq 0x18(%rsp), %r14
movq $0x15, (%r14)
movq $0x5, 0x8(%r14)
movq %r14, %rdi
callq 0x14406
movq %rsp, %rsi
movq $-0x4, (%rsi)
movq %r14, %rdi
callq 0x6034
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 0x14406
cmpq (%r12), %r15
jne 0x5919
cmpq 0x10(%rsp), %r14
jne 0x5919
leaq 0x18(%rsp), %r14
movq $0x15, (%r14)
movq $0x5, 0x8(%r14)
movq %r14, %rdi
callq 0x14406
movq %rsp, %rsi
movq $-0x5, (%rsi)
movq %r14, %rdi
callq 0x6034
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 0x14406
cmpq (%r12), %r15
jne 0x56b1
movb $0x1, %al
cmpq 0x10(%rsp), %r14
je 0x5985
leaq 0xfbe1(%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 0x14406
movq %rsp, %rsi
movq $-0x5, (%rsi)
jmp 0x5953
leaq 0xfa23(%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 0x14406
movq %rsp, %rsi
movq $0x0, (%rsi)
jmp 0x5953
leaq 0xfa05(%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 0x14406
movq %rsp, %rsi
movq $0x1, (%rsi)
jmp 0x5953
leaq 0xf9e8(%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 0x14406
movq %rsp, %rsi
movq $0x2, (%rsi)
jmp 0x5953
leaq 0xf9cd(%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 0x14406
movq %rsp, %rsi
movq $0x3, (%rsi)
jmp 0x5953
leaq 0xf9b4(%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 0x14406
movq %rsp, %rsi
movq $0x4, (%rsi)
jmp 0x5953
leaq 0xf99d(%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 0x14406
movq %rsp, %rsi
movq %r13, (%rsi)
jmp 0x5953
leaq 0xf990(%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 0x14406
movq %rsp, %rsi
movq $-0x1, (%rsi)
jmp 0x5953
leaq 0xf976(%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 0x14406
movq %rsp, %rsi
movq $-0x2, (%rsi)
jmp 0x5953
leaq 0xf961(%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 0x14406
movq %rsp, %rsi
movq $-0x3, (%rsi)
jmp 0x5953
leaq 0xf94e(%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 0x14406
movq %rsp, %rsi
movq $-0x4, (%rsi)
movq %r14, %rdi
callq 0x6034
leaq 0x18(%rsp), %rsi
movq %rax, (%rsi)
movq %rdx, 0x8(%rsi)
movq %rbx, %rdi
callq 0x5d68
leaq 0xf9bf(%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