// File: /workspace/github_cpp_makefile_star2_O3/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 $0x238, %rsp            # imm = 0x238
movq %rsi, %r14
movq %rdi, %r12
leaq 0xb0(%rsp), %rdi
callq 0x20c0
cmpb $0x1, 0x5c(%r14)
jne 0x928d
leaq 0xc0(%rsp), %rdi
leaq 0x2e44(%rip), %rsi      # 0xc0b2
movl $0x3, %edx
callq 0x2150
leaq 0xc8(%rsp), %rsi
movq %r12, %rdi
callq 0x21c0
jmp 0x9816
leaq 0x30(%rsp), %rdi
movl $0x1, %esi
callq 0x277c
leaq 0x30(%rsp), %rsi
movq %r14, %rdi
callq 0x2e64
movl %eax, %ebp
leaq 0xa0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x92c1
callq 0x2120
leaq 0x38(%rsp), %rdi
callq 0x28a2
cmpl $0x2, %ebp
je 0x939b
cmpl $0x1, %ebp
je 0x9319
testl %ebp, %ebp
jne 0x9806
leaq 0xc0(%rsp), %r15
movb (%r14), %al
leaq 0x30(%rsp), %rsi
movb %al, (%rsi)
movl $0x1, %edx
movq %r15, %rdi
callq 0x2150
leaq 0x2db4(%rip), %rsi      # 0xc0bb
movl $0x4, %edx
movq %r15, %rdi
callq 0x2150
jmp 0x9806
leaq 0xc0(%rsp), %r15
movb (%r14), %al
leaq 0x30(%rsp), %rsi
movb %al, (%rsi)
movl $0x1, %edx
movq %r15, %rdi
callq 0x2150
movq 0x50(%r14), %rdx
movq 0x18(%r14), %rcx
movq 0x30(%r14), %rax
movq %rdx, %rsi
subq %rax, %rsi
shrq $0x3, %rsi
cmpq $0x1, %rdx
adcq $-0x1, %rsi
shlq $0x9, %rsi
movq 0x38(%r14), %r13
subq 0x40(%r14), %r13
addq 0x28(%r14), %r13
addq %rsi, %r13
subq %rcx, %r13
leal -0x1(%r13), %edx
movslq %edx, %rsi
movq %rcx, %rdx
subq 0x20(%r14), %rdx
addq %rsi, %rdx
js 0x94d3
cmpq $0x1ff, %rdx            # imm = 0x1FF
ja 0x94dc
addq %rsi, %rcx
movq %rcx, %rdx
jmp 0x94f1
movq 0x50(%r14), %rcx
movq 0x30(%r14), %rax
movq %rcx, %r11
subq %rax, %r11
shrq $0x3, %r11
cmpq $0x1, %rcx
adcq $-0x1, %r11
shlq $0x9, %r11
movq 0x38(%r14), %r8
movq 0x40(%r14), %rsi
movq 0x18(%r14), %rcx
movq 0x28(%r14), %r9
movl %r8d, %edi
subl %esi, %edi
addl %r9d, %edi
addl %r11d, %edi
subl %ecx, %edi
movq %rcx, %rdx
subq 0x20(%r14), %rdx
movq %r8, 0x20(%rsp)
movq %r9, 0x18(%rsp)
addl %r9d, %r8d
addl %r11d, %r8d
addq %rcx, %rsi
movq %rsi, 0x28(%rsp)
subl %esi, %r8d
addl $-0x2, %r8d
xorl %r10d, %r10d
movl %edi, %r13d
movl %r10d, %r15d
movl %r8d, %ebp
leal -0x1(%r13), %edi
movslq %edi, %rbx
movq %rdx, %rsi
addq %rbx, %rsi
js 0x9426
cmpq $0x1ff, %rsi            # imm = 0x1FF
ja 0x942f
leaq (%rcx,%rbx), %r9
jmp 0x9447
movq %rsi, %r8
sarq $0x9, %r8
jmp 0x9436
movq %rsi, %r8
shrq $0x9, %r8
movq %r8, %r10
shlq $0x9, %r10
movq %rsi, %r9
subq %r10, %r9
addq (%rax,%r8,8), %r9
testl %edi, %edi
jle 0x9459
leal 0x1(%r15), %r10d
leal -0x1(%rbp), %r8d
cmpb $0x30, (%r9)
je 0x93ff
testl %edi, %edi
je 0x94b2
movq %r11, 0x8(%rsp)
leaq 0xc0(%rsp), %rdi
movb (%r14), %al
leaq 0x30(%rsp), %rsi
movb %al, (%rsi)
movl $0x1, %edx
movq %rdi, (%rsp)
callq 0x2150
movq 0x18(%r14), %rsi
movq 0x30(%r14), %rdx
movq %rsi, %rcx
subq 0x20(%r14), %rcx
addq %rbx, %rcx
js 0x961e
cmpq $0x1ff, %rcx            # imm = 0x1FF
ja 0x9627
addq %rbx, %rsi
movq %rsi, %rcx
jmp 0x963c
testq %rsi, %rsi
js 0x973c
cmpq $0x1ff, %rsi            # imm = 0x1FF
ja 0x9742
addq %rbx, %rcx
movq %rcx, %rsi
jmp 0x9754
movq %rdx, %rcx
sarq $0x9, %rcx
jmp 0x94e3
movq %rdx, %rcx
shrq $0x9, %rcx
movq %rcx, %rsi
shlq $0x9, %rsi
subq %rsi, %rdx
addq (%rax,%rcx,8), %rdx
movb (%rdx), %al
leaq 0x30(%rsp), %rsi
movb %al, (%rsi)
movl $0x1, %edx
movq %r15, %rdi
callq 0x2150
movq %r12, %rbx
addl $-0x2, %r13d
testl %r13d, %r13d
jle 0x95c7
leaq 0x30(%rsp), %rsi
movb $0x2e, (%rsi)
movl $0x1, %edx
movq %r15, %rdi
callq 0x2150
leaq 0x30(%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 0x95c7
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 0x95c7
movl %r13d, %esi
movq %rcx, %rdx
subq 0x20(%r14), %rdx
addq %rsi, %rdx
js 0x958b
cmpq $0x1ff, %rdx            # imm = 0x1FF
ja 0x9594
addq %rsi, %rcx
movq %rcx, %rdx
jmp 0x95a9
movq %rdx, %rcx
sarq $0x9, %rcx
jmp 0x959b
movq %rdx, %rcx
shrq $0x9, %rcx
movq %rcx, %rsi
shlq $0x9, %rsi
subq %rsi, %rdx
addq (%rax,%rcx,8), %rdx
movb (%rdx), %al
movb %al, 0x30(%rsp)
movl $0x1, %edx
movq %r15, %rdi
movq %r12, %rsi
callq 0x2150
decl %r13d
jmp 0x9531
leaq 0x2af2(%rip), %rsi      # 0xc0c0
movl $0x2, %edx
movq %r15, %rdi
callq 0x2150
movq %rbx, %r12
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
jmp 0x9806
movq %rcx, %rsi
sarq $0x9, %rsi
jmp 0x962e
movq %rcx, %rsi
shrq $0x9, %rsi
movq %rsi, %rdi
shlq $0x9, %rdi
subq %rdi, %rcx
addq (%rdx,%rsi,8), %rcx
movb (%rcx), %cl
leaq 0x30(%rsp), %rsi
movb %cl, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x2150
leaq 0x30(%rsp), %rsi
movb $0x2e, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x2150
movq %r12, 0x10(%rsp)
leal -0x6(%r13), %eax
addl $-0x2, %r13d
sets %cl
cmpl %eax, %r13d
setl %dl
orb %cl, %dl
jne 0x9719
xorl %ebx, %ebx
testl %eax, %eax
cmovgl %eax, %ebx
movl %ebp, %ebp
movq 0x20(%rsp), %rcx
addl 0x18(%rsp), %ecx
movq 0x8(%rsp), %rax
addl %ecx, %eax
subl 0x28(%rsp), %eax
movl %r15d, %r12d
notl %r12d
addl %eax, %r12d
leaq 0x30(%rsp), %r13
movq 0x18(%r14), %rsi
movq 0x30(%r14), %rcx
movq %rsi, %rax
subq 0x20(%r14), %rax
movq %rbp, %rdx
addq %rax, %rdx
js 0x96d8
cmpq $0x1ff, %rdx            # imm = 0x1FF
ja 0x96de
addq %rbp, %rsi
movq %rsi, %rax
jmp 0x96f3
sarq $0x9, %rdx
jmp 0x96e2
shrq $0x9, %rdx
movq %rdx, %rsi
shlq $0x9, %rsi
subq %rsi, %rax
addq (%rcx,%rdx,8), %rax
addq %rbp, %rax
movb (%rax), %al
movb %al, 0x30(%rsp)
movl $0x1, %edx
leaq 0xc0(%rsp), %rdi
movq %r13, %rsi
callq 0x2150
decq %rbp
decl %r12d
cmpl %r12d, %ebx
jl 0x96b0
leaq 0x29a3(%rip), %rsi      # 0xc0c3
movl $0x2, %edx
leaq 0xc0(%rsp), %rdi
callq 0x2150
movq 0x10(%rsp), %r12
jmp 0x97fa
sarq $0x9, %rdx
jmp 0x9746
shrq $0x9, %rdx
movq %rdx, %rcx
shlq $0x9, %rcx
subq %rcx, %rsi
addq (%rax,%rdx,8), %rsi
cmpb $0x30, (%rsi)
leaq 0xc0(%rsp), %rdi
jne 0x9777
leaq 0x2955(%rip), %rsi      # 0xc0bd
movl $0x2, %edx
callq 0x2150
jmp 0x9806
movb (%r14), %al
leaq 0x30(%rsp), %rsi
movb %al, (%rsi)
movl $0x1, %edx
callq 0x2150
movq 0x18(%r14), %rsi
movq 0x30(%r14), %rdx
movq %rsi, %rcx
subq 0x20(%r14), %rcx
js 0x97ad
cmpq $0x1ff, %rcx            # imm = 0x1FF
ja 0x97b6
addq %rbx, %rsi
movq %rsi, %rcx
jmp 0x97cb
movq %rcx, %rsi
sarq $0x9, %rsi
jmp 0x97bd
movq %rcx, %rsi
shrq $0x9, %rsi
movq %rsi, %rdi
shlq $0x9, %rdi
subq %rdi, %rcx
addq (%rdx,%rsi,8), %rcx
movb (%rcx), %cl
leaq 0x30(%rsp), %rsi
movb %cl, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x2150
movq %rax, (%rsp)
leaq 0x28d7(%rip), %rsi      # 0xc0c3
movl $0x2, %edx
movq (%rsp), %rdi
callq 0x2150
movq (%rsp), %rdi
movl %r15d, %esi
callq 0x21f0
leaq 0xc8(%rsp), %rsi
movq %r12, %rdi
callq 0x21c0
movq 0x679b(%rip), %rsi      # 0xffb8
leaq 0xb0(%rsp), %rdi
callq 0x20e0
leaq 0x130(%rsp), %rdi
callq 0x2060
movq %r12, %rax
addq $0x238, %rsp            # imm = 0x238
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x9867
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x2758
jmp 0x986a
jmp 0x9867
jmp 0x9867
jmp 0x9867
jmp 0x9867
jmp 0x9867
movq %rax, %rbx
movq 0x6747(%rip), %rsi      # 0xffb8
leaq 0xb0(%rsp), %rdi
callq 0x20e0
leaq 0x130(%rsp), %rdi
callq 0x2060
movq %rbx, %rdi
callq 0x2200
nop