// File: /workspace/github_cpp_makefile_star2_O1/ef-gy[P]libefgy/src/test-case/cf.cpp
// Function: testContinuedFractionArithmetic(std::ostream&)
bool testContinuedFractionArithmetic(std::ostream &log) {
  numeric::fractional<long long> af(6, 11), bf(4, 5), rf;
  numeric::continuedFractional<long long> a(af), b(bf), r;

  rf = af + bf;
  log << af << " + " << bf << " = " << rf << "\n";

  r = a + b;
  rf = r;
  log << a << " + " << b << " = " << r << " = " << rf << "\n";

  if (rf != r) {
    return false;
  }

  rf = af - bf;
  log << af << " - " << bf << " = " << rf << "\n";

  r = a - b;
  rf = r;
  log << a << " - " << b << " = " << r << " = " << rf << "\n";

  if (rf != r) {
    return false;
  }

  rf = af * bf;
  log << af << " * " << bf << " = " << rf << "\n";

  r = a * b;
  rf = r;
  log << a << " * " << b << " = " << r << " = " << rf << "\n";

  if (rf != r) {
    return false;
  }

  rf = af / bf;
  log << af << " / " << bf << " = " << rf << "\n";

  r = a / b;
  rf = r;
  log << a << " / " << b << " = " << r << " = " << rf << "\n";

  if (rf != r) {
    return false;
  }

  return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0xf8, %rsp
movq %rdi, %rbx
leaq 0x60(%rsp), %r14
movq $0x6, (%r14)
movq $0xb, 0x8(%r14)
movq %r14, %rdi
callq 0x13dc0
leaq 0x50(%rsp), %r15
movq $0x4, (%r15)
movq $0x5, 0x8(%r15)
movq %r15, %rdi
callq 0x13dc0
movq $0x0, (%rsp)
movq $0x1, 0x8(%rsp)
leaq 0x90(%rsp), %rdi
movq %r14, %rsi
callq 0x5752
leaq 0x70(%rsp), %rdi
movq %r15, %rsi
callq 0x5752
xorps %xmm0, %xmm0
movups %xmm0, 0x39(%rsp)
movaps %xmm0, 0x30(%rsp)
movq 0x58(%rsp), %rax
movq 0x60(%rsp), %rcx
imulq %rax, %rcx
movq 0x68(%rsp), %rdx
movq 0x50(%rsp), %rsi
imulq %rdx, %rsi
addq %rcx, %rsi
imulq %rax, %rdx
leaq 0xb0(%rsp), %rdi
movq %rsi, (%rdi)
movq %rdx, 0x8(%rdi)
callq 0x13dc0
movups 0xb0(%rsp), %xmm0
movups %xmm0, (%rsp)
leaq 0x60(%rsp), %rsi
movq %rbx, %rdi
callq 0x58eb
movq %rax, %r14
leaq 0x1058f(%rip), %rsi     # 0x1511a
movl $0x3, %edx
movq %rax, %rdi
callq 0x42b0
leaq 0x50(%rsp), %rsi
movq %r14, %rdi
callq 0x58eb
movq %rax, %r14
leaq 0x1056f(%rip), %rsi     # 0x1511e
movl $0x3, %edx
movq %rax, %rdi
callq 0x42b0
movq %rsp, %rsi
movq %r14, %rdi
callq 0x58eb
leaq 0x105cf(%rip), %rsi     # 0x1519d
movl $0x1, %r14d
movl $0x1, %edx
movq %rax, %rdi
callq 0x42b0
xorl %eax, %eax
leaq 0xb0(%rsp), %rsi
movq %rax, (%rsi)
movq %r14, 0x8(%rsi)
movq %r14, 0x10(%rsi)
movq %rax, 0x18(%rsi)
movq %r14, 0x20(%rsi)
xorps %xmm0, %xmm0
movups %xmm0, 0x28(%rsi)
movq %rax, 0x38(%rsi)
leaq 0x10(%rsp), %rdi
leaq 0x90(%rsp), %rdx
leaq 0x70(%rsp), %rcx
callq 0x140a0
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x14952
movb 0x28(%rsp), %al
movb %al, 0x48(%rsp)
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x4c4e
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x4250
leaq 0x30(%rsp), %rdi
callq 0x5924
movq %rax, (%rsp)
movq %rdx, 0x8(%rsp)
leaq 0x90(%rsp), %rsi
movq %rbx, %rdi
callq 0x59e0
movq %rax, %r14
leaq 0x1049f(%rip), %rsi     # 0x1511a
movl $0x3, %edx
movq %rax, %rdi
callq 0x42b0
leaq 0x70(%rsp), %rsi
movq %r14, %rdi
callq 0x59e0
movq %rax, %r14
leaq 0x1047f(%rip), %rsi     # 0x1511e
movl $0x3, %edx
movq %rax, %rdi
callq 0x42b0
leaq 0x30(%rsp), %rsi
movq %r14, %rdi
callq 0x59e0
movq %rax, %r14
leaq 0x1045b(%rip), %rsi     # 0x1511e
movl $0x3, %edx
movq %rax, %rdi
callq 0x42b0
movq %rsp, %rsi
movq %r14, %rdi
callq 0x58eb
leaq 0x104bb(%rip), %rsi     # 0x1519d
movl $0x1, %edx
movq %rax, %rdi
callq 0x42b0
leaq 0x30(%rsp), %rdi
callq 0x5924
xorl %ebp, %ebp
cmpq %rax, (%rsp)
jne 0x5288
cmpq %rdx, 0x8(%rsp)
jne 0x5288
movq 0x58(%rsp), %rax
movq 0x60(%rsp), %rcx
imulq %rax, %rcx
movq 0x68(%rsp), %rdx
movq 0x50(%rsp), %rsi
imulq %rdx, %rsi
subq %rsi, %rcx
imulq %rax, %rdx
leaq 0xb0(%rsp), %rdi
movq %rcx, (%rdi)
movq %rdx, 0x8(%rdi)
callq 0x13dc0
movups 0xb0(%rsp), %xmm0
movups %xmm0, (%rsp)
leaq 0x60(%rsp), %rsi
movq %rbx, %rdi
callq 0x58eb
movq %rax, %r14
leaq 0x103b8(%rip), %rsi     # 0x15122
movl $0x3, %edx
movq %rax, %rdi
callq 0x42b0
leaq 0x50(%rsp), %rsi
movq %r14, %rdi
callq 0x58eb
movq %rax, %r14
leaq 0x10390(%rip), %rsi     # 0x1511e
movl $0x3, %edx
movq %rax, %rdi
callq 0x42b0
movq %rsp, %rsi
movq %r14, %rdi
callq 0x58eb
leaq 0x103f0(%rip), %rsi     # 0x1519d
movl $0x1, %r14d
movl $0x1, %edx
movq %rax, %rdi
callq 0x42b0
xorl %eax, %eax
leaq 0xb0(%rsp), %rsi
movq %rax, (%rsi)
movq %r14, 0x8(%rsi)
movq $-0x1, 0x10(%rsi)
movq %rax, 0x18(%rsi)
movq %r14, 0x20(%rsi)
xorps %xmm0, %xmm0
movups %xmm0, 0x28(%rsi)
movq %rax, 0x38(%rsi)
leaq 0x10(%rsp), %rdi
leaq 0x90(%rsp), %rdx
leaq 0x70(%rsp), %rcx
callq 0x140a0
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x14952
movb 0x28(%rsp), %al
movb %al, 0x48(%rsp)
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x4e31
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x4250
leaq 0x30(%rsp), %rdi
callq 0x5924
movq %rax, (%rsp)
movq %rdx, 0x8(%rsp)
leaq 0x90(%rsp), %rsi
movq %rbx, %rdi
callq 0x59e0
movq %rax, %r14
leaq 0x102c4(%rip), %rsi     # 0x15122
movl $0x3, %edx
movq %rax, %rdi
callq 0x42b0
leaq 0x70(%rsp), %rsi
movq %r14, %rdi
callq 0x59e0
movq %rax, %r14
leaq 0x1029c(%rip), %rsi     # 0x1511e
movl $0x3, %edx
movq %rax, %rdi
callq 0x42b0
leaq 0x30(%rsp), %rsi
movq %r14, %rdi
callq 0x59e0
movq %rax, %r14
leaq 0x10278(%rip), %rsi     # 0x1511e
movl $0x3, %edx
movq %rax, %rdi
callq 0x42b0
movq %rsp, %rsi
movq %r14, %rdi
callq 0x58eb
leaq 0x102d8(%rip), %rsi     # 0x1519d
movl $0x1, %edx
movq %rax, %rdi
callq 0x42b0
leaq 0x30(%rsp), %rdi
callq 0x5924
xorl %ebp, %ebp
cmpq %rax, (%rsp)
jne 0x5288
cmpq %rdx, 0x8(%rsp)
jne 0x5288
movq 0x50(%rsp), %rax
movq 0x58(%rsp), %rcx
imulq 0x60(%rsp), %rax
imulq 0x68(%rsp), %rcx
leaq 0xb0(%rsp), %rdi
movq %rax, (%rdi)
movq %rcx, 0x8(%rdi)
callq 0x13dc0
movups 0xb0(%rsp), %xmm0
movups %xmm0, (%rsp)
leaq 0x60(%rsp), %rsi
movq %rbx, %rdi
callq 0x58eb
movq %rax, %r14
leaq 0x101e6(%rip), %rsi     # 0x15126
movl $0x3, %edx
movq %rax, %rdi
callq 0x42b0
leaq 0x50(%rsp), %rsi
movq %r14, %rdi
callq 0x58eb
movq %rax, %r14
leaq 0x101ba(%rip), %rsi     # 0x1511e
movl $0x3, %edx
movq %rax, %rdi
callq 0x42b0
movq %rsp, %rsi
movq %r14, %rdi
callq 0x58eb
leaq 0x1021a(%rip), %rsi     # 0x1519d
movl $0x1, %r14d
movl $0x1, %edx
movq %rax, %rdi
callq 0x42b0
xorl %eax, %eax
leaq 0xb0(%rsp), %rsi
movq %rax, 0x10(%rsi)
xorps %xmm0, %xmm0
movaps %xmm0, (%rsi)
movq %r14, 0x18(%rsi)
movq %r14, 0x20(%rsi)
movups %xmm0, 0x28(%rsi)
movq %rax, 0x38(%rsi)
leaq 0x10(%rsp), %rdi
leaq 0x90(%rsp), %rdx
leaq 0x70(%rsp), %rcx
callq 0x140a0
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x14952
movb 0x28(%rsp), %al
movb %al, 0x48(%rsp)
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x4fff
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x4250
leaq 0x30(%rsp), %rdi
callq 0x5924
movq %rax, (%rsp)
movq %rdx, 0x8(%rsp)
leaq 0x90(%rsp), %rsi
movq %rbx, %rdi
callq 0x59e0
movq %rax, %r14
leaq 0x100fa(%rip), %rsi     # 0x15126
movl $0x3, %edx
movq %rax, %rdi
callq 0x42b0
leaq 0x70(%rsp), %rsi
movq %r14, %rdi
callq 0x59e0
movq %rax, %r14
leaq 0x100ce(%rip), %rsi     # 0x1511e
movl $0x3, %edx
movq %rax, %rdi
callq 0x42b0
leaq 0x30(%rsp), %rsi
movq %r14, %rdi
callq 0x59e0
movq %rax, %r14
leaq 0x100aa(%rip), %rsi     # 0x1511e
movl $0x3, %edx
movq %rax, %rdi
callq 0x42b0
movq %rsp, %rsi
movq %r14, %rdi
callq 0x58eb
leaq 0x1010a(%rip), %rsi     # 0x1519d
movl $0x1, %edx
movq %rax, %rdi
callq 0x42b0
leaq 0x30(%rsp), %rdi
callq 0x5924
xorl %ebp, %ebp
cmpq %rax, (%rsp)
jne 0x5288
cmpq %rdx, 0x8(%rsp)
jne 0x5288
movq 0x50(%rsp), %rax
movq 0x58(%rsp), %rcx
imulq 0x60(%rsp), %rcx
imulq 0x68(%rsp), %rax
leaq 0xb0(%rsp), %rdi
movq %rcx, (%rdi)
movq %rax, 0x8(%rdi)
callq 0x13dc0
movups 0xb0(%rsp), %xmm0
movups %xmm0, (%rsp)
leaq 0x60(%rsp), %rsi
movq %rbx, %rdi
callq 0x58eb
movq %rax, %r14
leaq 0x1001c(%rip), %rsi     # 0x1512a
movl $0x3, %edx
movq %rax, %rdi
callq 0x42b0
leaq 0x50(%rsp), %rsi
movq %r14, %rdi
callq 0x58eb
movq %rax, %r14
leaq 0xffec(%rip), %rsi      # 0x1511e
movl $0x3, %edx
movq %rax, %rdi
callq 0x42b0
movq %rsp, %rsi
movq %r14, %rdi
callq 0x58eb
leaq 0x1004c(%rip), %rsi     # 0x1519d
movl $0x1, %r14d
movl $0x1, %edx
movq %rax, %rdi
callq 0x42b0
xorl %eax, %eax
leaq 0xb0(%rsp), %rsi
movq %rax, (%rsi)
movq %r14, 0x8(%rsi)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rsi)
movups %xmm0, 0x20(%rsi)
movq %r14, 0x30(%rsi)
movq %rax, 0x38(%rsi)
leaq 0x10(%rsp), %rdi
leaq 0x90(%rsp), %rdx
leaq 0x70(%rsp), %rcx
callq 0x140a0
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x14952
movb 0x28(%rsp), %al
movb %al, 0x48(%rsp)
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x51cd
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x4250
leaq 0x30(%rsp), %rdi
callq 0x5924
movq %rax, (%rsp)
movq %rdx, 0x8(%rsp)
leaq 0x90(%rsp), %rsi
movq %rbx, %rdi
callq 0x59e0
movq %rax, %rbx
leaq 0xff30(%rip), %rsi      # 0x1512a
movl $0x3, %edx
movq %rax, %rdi
callq 0x42b0
leaq 0x70(%rsp), %rsi
movq %rbx, %rdi
callq 0x59e0
movq %rax, %rbx
leaq 0xff00(%rip), %rsi      # 0x1511e
movl $0x3, %edx
movq %rax, %rdi
callq 0x42b0
leaq 0x30(%rsp), %rsi
movq %rbx, %rdi
callq 0x59e0
movq %rax, %rbx
leaq 0xfedc(%rip), %rsi      # 0x1511e
movl $0x3, %edx
movq %rax, %rdi
callq 0x42b0
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x58eb
leaq 0xff3c(%rip), %rsi      # 0x1519d
movl $0x1, %edx
movq %rax, %rdi
callq 0x42b0
leaq 0x30(%rsp), %rdi
callq 0x5924
xorq (%rsp), %rax
xorq 0x8(%rsp), %rdx
orq %rax, %rdx
sete %bpl
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x529f
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x4250
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x52b9
movq 0x80(%rsp), %rsi
subq %rdi, %rsi
callq 0x4250
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0x52d6
movq 0xa0(%rsp), %rsi
subq %rdi, %rsi
callq 0x4250
movl %ebp, %eax
addq $0xf8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0x5325
jmp 0x5300
jmp 0x5325
jmp 0x5325
jmp 0x5325
jmp 0x5300
jmp 0x5325
jmp 0x5325
jmp 0x5325
jmp 0x5300
jmp 0x5325
jmp 0x5325
jmp 0x5325
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x5328
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x4250
jmp 0x5328
jmp 0x5325
jmp 0x5325
movq %rax, %rbx
jmp 0x5359
movq %rax, %rbx
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x533f
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x4250
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x5359
movq 0x80(%rsp), %rsi
subq %rdi, %rsi
callq 0x4250
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0x5376
movq 0xa0(%rsp), %rsi
subq %rdi, %rsi
callq 0x4250
movq %rbx, %rdi
callq 0x43c0