// File: /workspace/github_cpp_makefile_star2_O1/Mariotti94[P]BigFloat/BigFloat.cc
// Function: BigFloat::Exp[abi:cxx11]() const
std::string BigFloat::Exp() const
{
    std::stringstream out;
    if(error) {
        out << "nan";
        return out.str();
    }

    int check = BigFloat::CompareNum(*this, BigFloat(1));
    if(check == 0) {
        out << sign;
        out << "1e+0";
    }
    if(check == 1) {
        out << sign;
        int i = number.size() - 1;
        out << number[i];
        i--;
        if(i > 0) {
            out << '.';
            for(; (i >= (int)number.size() - 6) && (i >= 0); --i) {
                out << number[i];
            }
        }
        out << "e+" << Ints() - 1;
    }
    if(check == 2) {
        int exp = 0;
        int count = number.size() - 1;
        while(number[count] == '0' && count > 0) {
            count--;
            exp++;
        }
        if(count == 0)
            if(number[count] == '0')
                out << "+0";
            else
                out << sign << number[count] << "e-" << exp;
        else {
            out << sign << number[count] << '.';
            for(int i = count - 1; (i >= (int)count - 5) && (i >= 0); --i) {
                out << number[i];
            }
            out << "e-" << exp;
        }
    }
    return out.str();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x248, %rsp            # imm = 0x248
movq %rsi, %r14
movq %rdi, %rbx
leaq 0xc0(%rsp), %rdi
callq 0x20c0
cmpb $0x1, 0x5c(%r14)
jne 0x93b5
leaq 0xd0(%rsp), %rdi
leaq 0x2d1c(%rip), %rsi      # 0xc0b2
movl $0x3, %edx
callq 0x2150
leaq 0xd8(%rsp), %rsi
movq %rbx, %rdi
callq 0x21c0
jmp 0x9988
leaq 0x40(%rsp), %rdi
movl $0x1, %esi
callq 0x277c
movq %rbx, 0x38(%rsp)
leaq 0x40(%rsp), %rsi
movq %r14, %rdi
callq 0x2e60
movl %eax, %ebp
leaq 0xb0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x93ee
callq 0x2120
leaq 0x48(%rsp), %rdi
callq 0x28a2
cmpl $0x2, %ebp
je 0x9621
cmpl $0x1, %ebp
je 0x9453
testl %ebp, %ebp
jne 0x9973
leaq 0xd0(%rsp), %r15
movb (%r14), %al
leaq 0x40(%rsp), %rsi
movb %al, (%rsi)
movl $0x1, %edx
movq %r15, %rdi
callq 0x2150
leaq 0x2c87(%rip), %rsi      # 0xc0bb
movl $0x4, %edx
movq %r15, %rdi
callq 0x2150
cmpl $0x2, %ebp
je 0x9621
cmpl $0x1, %ebp
jne 0x9973
leaq 0xd0(%rsp), %r15
movb (%r14), %al
leaq 0x40(%rsp), %rsi
movb %al, (%rsi)
movl $0x1, %edx
movq %r15, %rdi
callq 0x2150
movabsq $-0x80000000000000, %rbx # imm = 0xFF80000000000000
movq 0x50(%r14), %rcx
movq 0x30(%r14), %rax
movq %rcx, %rdx
subq %rax, %rdx
shrq $0x3, %rdx
cmpq $0x1, %rcx
adcq $-0x1, %rdx
movq 0x18(%r14), %rcx
movq 0x38(%r14), %r13
subq 0x40(%r14), %r13
shlq $0x9, %rdx
addq 0x28(%r14), %r13
addq %rdx, %r13
subq %rcx, %r13
leal -0x1(%r13), %edx
movslq %edx, %rsi
movq %rcx, %rdx
subq 0x20(%r14), %rdx
addq %rsi, %rdx
cmpq $0x1ff, %rdx            # imm = 0x1FF
ja 0x94cf
addq %rsi, %rcx
jmp 0x94f4
movq %rdx, %rcx
shrq $0x9, %rcx
movq %rcx, %rsi
orq %rbx, %rsi
testq %rdx, %rdx
cmovgq %rcx, %rsi
movq %rsi, %rcx
shlq $0x9, %rcx
subq %rcx, %rdx
addq (%rax,%rsi,8), %rdx
movq %rdx, %rcx
movb (%rcx), %al
leaq 0x40(%rsp), %rsi
movb %al, (%rsi)
movl $0x1, %edx
movq %r15, %rdi
callq 0x2150
addl $-0x2, %r13d
testl %r13d, %r13d
jle 0x95c9
leaq 0x40(%rsp), %rsi
movb $0x2e, (%rsi)
movl $0x1, %edx
movq %r15, %rdi
callq 0x2150
leaq 0x40(%rsp), %r12
movq 0x50(%r14), %rcx
movq 0x30(%r14), %rax
movl %ecx, %edx
subl %eax, %edx
shrl $0x3, %edx
cmpq $0x1, %rcx
adcl $-0x1, %edx
testl %r13d, %r13d
js 0x95c9
movq 0x18(%r14), %rcx
shll $0x9, %edx
movl 0x38(%r14), %esi
subl 0x40(%r14), %esi
addl 0x28(%r14), %esi
addl %edx, %esi
subl %ecx, %esi
addl $-0x6, %esi
cmpl %esi, %r13d
jl 0x95c9
movl %r13d, %esi
movq %rcx, %rdx
subq 0x20(%r14), %rdx
addq %rsi, %rdx
cmpq $0x1ff, %rdx            # imm = 0x1FF
ja 0x9586
addq %rsi, %rcx
jmp 0x95ab
movq %rdx, %rcx
shrq $0x9, %rcx
movq %rcx, %rsi
orq %rbx, %rsi
testq %rdx, %rdx
cmovgq %rcx, %rsi
movq %rsi, %rcx
shlq $0x9, %rcx
subq %rcx, %rdx
addq (%rax,%rsi,8), %rdx
movq %rdx, %rcx
movb (%rcx), %al
movb %al, 0x40(%rsp)
movl $0x1, %edx
movq %r15, %rdi
movq %r12, %rsi
callq 0x2150
decl %r13d
jmp 0x9531
leaq 0x2af0(%rip), %rsi      # 0xc0c0
movl $0x2, %edx
movq %r15, %rdi
callq 0x2150
movq 0x50(%r14), %rax
movl 0x30(%r14), %ecx
movl %eax, %edx
subl %ecx, %edx
shrl $0x3, %edx
cmpq $0x1, %rax
adcl $-0x1, %edx
movl 0x38(%r14), %eax
subl 0x40(%r14), %eax
addl 0x28(%r14), %eax
shll $0x9, %edx
addl %edx, %eax
subl 0x18(%r14), %eax
movl 0x58(%r14), %esi
notl %esi
addl %eax, %esi
movq %r15, %rdi
callq 0x21f0
cmpl $0x2, %ebp
jne 0x9973
movabsq $-0x80000000000000, %r10 # imm = 0xFF80000000000000
movq 0x50(%r14), %rcx
movq 0x30(%r14), %rax
movq %rcx, %rbx
subq %rax, %rbx
shrq $0x3, %rbx
cmpq $0x1, %rcx
adcq $-0x1, %rbx
shlq $0x9, %rbx
movq 0x38(%r14), %rdx
movq 0x40(%r14), %rsi
movq 0x18(%r14), %r12
movq 0x28(%r14), %rdi
movq %r12, %rcx
subq 0x20(%r14), %rcx
movq %rdx, 0x20(%rsp)
movq %rdi, 0x18(%rsp)
addl %edi, %edx
addl %ebx, %edx
leaq (%rsi,%r12), %r11
movq %rsi, 0x28(%rsp)
subl %esi, %edx
movl %r12d, %esi
notl %esi
addl %edx, %esi
xorl %ebp, %ebp
movslq %esi, %r15
leaq (%rcx,%r15), %rdx
cmpq $0x1ff, %rdx            # imm = 0x1FF
ja 0x9698
leaq (%r12,%r15), %rdi
jmp 0x96bd
movq %rdx, %rdi
shrq $0x9, %rdi
movq %rdi, %r8
orq %r10, %r8
testq %rdx, %rdx
cmovgq %rdi, %r8
movq %r8, %r9
shlq $0x9, %r9
movq %rdx, %rdi
subq %r9, %rdi
addq (%rax,%r8,8), %rdi
incl %ebp
leal -0x1(%rsi), %r13d
testl %esi, %esi
jle 0x96cf
cmpb $0x30, (%rdi)
movl %r13d, %esi
je 0x9682
movq 0x20(%rsp), %rsi
movq 0x18(%rsp), %rdi
addl %edi, %esi
leal (%rbx,%rsi), %edi
movl %edi, %esi
subl 0x28(%rsp), %esi
subl %r12d, %esi
cmpl %ebp, %esi
jne 0x96f9
cmpq $0x1ff, %rdx            # imm = 0x1FF
ja 0x9746
addq %r15, %r12
jmp 0x9768
movl %edi, 0x14(%rsp)
movq %r11, 0x30(%rsp)
leaq 0xd0(%rsp), %rdi
movb (%r14), %al
leaq 0x40(%rsp), %rsi
movb %al, (%rsi)
movl $0x1, %edx
movq %rdi, 0x8(%rsp)
callq 0x2150
movq 0x18(%r14), %rdx
movq %rdx, %rcx
subq 0x20(%r14), %rcx
addq %r15, %rcx
cmpq $0x1ff, %rcx            # imm = 0x1FF
ja 0x97c1
addq %r15, %rdx
jmp 0x97f4
shrq $0x9, %rcx
movq %rcx, %rsi
orq %r10, %rsi
testq %rdx, %rdx
cmovgq %rcx, %rsi
movq %rsi, %rcx
shlq $0x9, %rcx
subq %rcx, %rdx
addq (%rax,%rsi,8), %rdx
movq %rdx, %r12
cmpb $0x30, (%r12)
leaq 0xd0(%rsp), %rdi
jne 0x978d
leaq 0x293f(%rip), %rsi      # 0xc0bd
movl $0x2, %edx
callq 0x2150
jmp 0x9973
movb (%r14), %al
leaq 0x40(%rsp), %rsi
movb %al, (%rsi)
movl $0x1, %edx
callq 0x2150
movq 0x18(%r14), %rdx
movq %rdx, %rcx
subq 0x20(%r14), %rcx
cmpq $0x1ff, %rcx            # imm = 0x1FF
ja 0x9904
addq %r15, %rdx
jmp 0x9934
movq 0x30(%r14), %rdx
movq %rcx, %rsi
shrq $0x9, %rsi
movq %rsi, %rdi
movabsq $-0x80000000000000, %r8 # imm = 0xFF80000000000000
orq %r8, %rdi
testq %rcx, %rcx
cmovgq %rsi, %rdi
movq %rdi, %rsi
shlq $0x9, %rsi
subq %rsi, %rcx
addq (%rdx,%rdi,8), %rcx
movq %rcx, %rdx
movb (%rdx), %cl
leaq 0x40(%rsp), %rsi
movb %cl, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x2150
leaq 0x40(%rsp), %rsi
movb $0x2e, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x2150
movq 0x20(%rsp), %rax
addl 0x18(%rsp), %eax
addl %eax, %ebx
subl 0x28(%rsp), %ebx
subl %r12d, %ebx
subl %ebp, %ebx
addl $-0x5, %ebx
cmpl %ebx, %r13d
setl %al
testl %r13d, %r13d
sets %cl
orb %al, %cl
movabsq $-0x80000000000000, %rdi # imm = 0xFF80000000000000
leaq 0xd0(%rsp), %r13
jne 0x98ee
movl 0x14(%rsp), %ecx
subl 0x30(%rsp), %ecx
movl %ebp, %eax
notl %eax
addl %ecx, %eax
movl %eax, %r15d
leaq 0x40(%rsp), %r12
movq 0x18(%r14), %rcx
movq %rcx, %rax
subq 0x20(%r14), %rax
leaq (%r15,%rax), %rdx
cmpq $0x1ff, %rdx            # imm = 0x1FF
ja 0x988f
addq %r15, %rcx
jmp 0x98bb
movq %rdx, %rcx
shrq $0x9, %rcx
movq %rcx, %rsi
orq %rdi, %rsi
testq %rdx, %rdx
cmovgq %rcx, %rsi
movq 0x30(%r14), %rcx
movq %rsi, %rdx
shlq $0x9, %rdx
subq %rdx, %rax
addq (%rcx,%rsi,8), %rax
addq %r15, %rax
movq %rax, %rcx
movb (%rcx), %al
movb %al, 0x40(%rsp)
movl $0x1, %edx
movq %r13, %rdi
movq %r12, %rsi
callq 0x2150
cmpl %r15d, %ebx
movabsq $-0x80000000000000, %rdi # imm = 0xFF80000000000000
jge 0x98ee
movq %r15, %rax
decq %rax
testl %r15d, %r15d
movq %rax, %r15
jg 0x9872
leaq 0x27ce(%rip), %rsi      # 0xc0c3
movl $0x2, %edx
movq %r13, %rdi
callq 0x2150
jmp 0x9965
movq 0x30(%r14), %rdx
movq %rcx, %rsi
shrq $0x9, %rsi
movabsq $-0x80000000000000, %rdi # imm = 0xFF80000000000000
orq %rsi, %rdi
testq %rcx, %rcx
cmovgq %rsi, %rdi
movq %rdi, %rsi
shlq $0x9, %rsi
subq %rsi, %rcx
addq (%rdx,%rdi,8), %rcx
movq %rcx, %rdx
movb (%rdx), %cl
leaq 0x40(%rsp), %rsi
movb %cl, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x2150
movq %rax, 0x8(%rsp)
leaq 0x276d(%rip), %rsi      # 0xc0c3
movl $0x2, %edx
movq 0x8(%rsp), %rdi
callq 0x2150
decl %ebp
movq 0x8(%rsp), %rdi
movl %ebp, %esi
callq 0x21f0
leaq 0xd8(%rsp), %rsi
movq 0x38(%rsp), %rbx
movq %rbx, %rdi
callq 0x21c0
movq 0x6629(%rip), %rsi      # 0xffb8
leaq 0xc0(%rsp), %rdi
callq 0x20e0
leaq 0x140(%rsp), %rdi
callq 0x2060
movq %rbx, %rax
addq $0x248, %rsp            # imm = 0x248
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x2758
jmp 0x99dc
jmp 0x99d9
jmp 0x99d9
jmp 0x99d9
jmp 0x99d9
jmp 0x99d9
jmp 0x99d9
movq %rax, %rbx
movq 0x65d5(%rip), %rsi      # 0xffb8
leaq 0xc0(%rsp), %rdi
callq 0x20e0
leaq 0x140(%rsp), %rdi
callq 0x2060
movq %rbx, %rdi
callq 0x2200
nop