// File: /workspace/github_cpp_makefile_star2_O2/mouda[P]LTE_random_access-simulate/ap.cpp
// Function: alglib::arraytostring[abi:cxx11](double const*, long, int)
std::string alglib::arraytostring(const double *ptr, ae_int_t n, int _dps)
{
    std::string result;
    ae_int_t i;
    char buf[64];
    char mask1[64];
    char mask2[64];
    int dps = _dps>=0 ? _dps : -_dps;
    result = "[";
    if( sprintf(mask1, "%%.%d%s", dps, _dps>=0 ? "f" : "e")>=(int)sizeof(mask1) )
        throw ap_error("arraytostring(): buffer overflow");
    if( sprintf(mask2, ",%s", mask1)>=(int)sizeof(mask2) )
        throw ap_error("arraytostring(): buffer overflow");
    for(i=0; i<n; i++)
    {
        buf[0] = 0;
        if( fp_isfinite(ptr[i]) )
        {
            if( sprintf(buf, i==0 ? mask1 : mask2, double(ptr[i]))>=(int)sizeof(buf) )
                throw ap_error("arraytostring(): buffer overflow");
        }
        else if( fp_isnan(ptr[i]) )
            strcpy(buf, i==0 ?  "NAN" :  ",NAN");
        else if( fp_isposinf(ptr[i]) )
            strcpy(buf, i==0 ? "+INF" : ",+INF");
        else if( fp_isneginf(ptr[i]) )
            strcpy(buf, i==0 ? "-INF" : ",-INF");
        result += buf;
    }
    result += "]";
    return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movl %ecx, %ebp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, (%rdi)
andq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
leaq 0xa14e(%rip), %rsi      # 0x33b8d
callq 0x3440
movl %ebp, %edx
negl %edx
cmovsl %ebp, %edx
testl %ebp, %ebp
leaq 0xa06c(%rip), %rax      # 0x33ac0
leaq 0x6938(%rip), %rcx      # 0x30393
cmovnsq %rax, %rcx
leaq 0x9f40(%rip), %rsi      # 0x339a6
leaq 0x50(%rsp), %rdi
xorl %eax, %eax
callq 0x3070
cmpl $0x40, %eax
jge 0x29be0
leaq 0xa1ab(%rip), %rsi      # 0x33c2d
leaq 0x10(%rsp), %rdi
leaq 0x50(%rsp), %r13
movq %r13, %rdx
xorl %eax, %eax
callq 0x3070
cmpl $0x3f, %eax
jg 0x29bfc
xorl %r12d, %r12d
testq %r14, %r14
cmovleq %r12, %r14
leaq 0x90(%rsp), %rbp
cmpq %r12, %r14
je 0x29b8c
movb $0x0, 0x90(%rsp)
movq (%r15,%r12,8), %xmm0
movq %xmm0, %rax
movq %rax, %rcx
shrq $0x20, %rcx
cmpq $0x1, 0x177e4(%rip)     # 0x412c0
cmovnel %eax, %ecx
notl %ecx
testl $0x7ff00000, %ecx       # imm = 0x7FF00000
jne 0x29b0b
movq %xmm0, 0x8(%rsp)
callq 0x273fb
testb %al, %al
je 0x29b2b
testq %r12, %r12
leaq 0xa12f(%rip), %rsi      # 0x33c31
leaq 0xa129(%rip), %rax      # 0x33c32
jmp 0x29b6d
testq %r12, %r12
leaq 0x10(%rsp), %rsi
cmoveq %r13, %rsi
movq %rbp, %rdi
movb $0x1, %al
callq 0x3070
cmpl $0x40, %eax
jl 0x29b79
jmp 0x29bb0
movq 0x8(%rsp), %xmm0
callq 0x2ba61
testb %al, %al
je 0x29b4d
testq %r12, %r12
leaq 0xa0f2(%rip), %rsi      # 0x33c36
leaq 0xa0ec(%rip), %rax      # 0x33c37
jmp 0x29b6d
movq 0x8(%rsp), %xmm0
callq 0x2ba8d
testb %al, %al
je 0x29b79
testq %r12, %r12
leaq 0xa0d6(%rip), %rsi      # 0x33c3c
leaq 0xa0d0(%rip), %rax      # 0x33c3d
cmoveq %rax, %rsi
movq %rbp, %rdi
callq 0x3220
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x3430
incq %r12
jmp 0x29ab1
leaq 0x9f30(%rip), %rsi      # 0x33ac3
movq %rbx, %rdi
callq 0x3430
movq %rbx, %rax
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x20
popq %rdi
callq 0x3130
movq %rax, %r14
leaq 0xa04a(%rip), %rsi      # 0x33c0c
movq %rax, %rdi
callq 0x26d2a
leaq 0x16faf(%rip), %rsi     # 0x40b80
leaq -0x174c0(%rip), %rdx    # 0x12718
movq %r14, %rdi
callq 0x33b0
pushq $0x20
popq %rdi
callq 0x3130
movq %rax, %r14
leaq 0xa01a(%rip), %rsi      # 0x33c0c
movq %rax, %rdi
callq 0x26d2a
jmp 0x29bca
pushq $0x20
popq %rdi
callq 0x3130
movq %rax, %r14
leaq 0x9ffe(%rip), %rsi      # 0x33c0c
movq %rax, %rdi
callq 0x26d2a
jmp 0x29bca
jmp 0x29c1c
jmp 0x29c1c
movq %rax, %r15
movq %r14, %rdi
callq 0x3190
jmp 0x29c2e
jmp 0x29c2b
movq %rax, %r15
movq %rbx, %rdi
callq 0x3100
movq %r15, %rdi
callq 0x33e0