#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
double fabs(double);
int /*<<< orphan*/ memset(char *, int /*<<< orphan*/, int);
int /*<<< orphan*/ snprintf(char *, int, char *, double);
void doubleToString(double value, char *string, int len, char siPrefix,
                    int precision) {
  double absval;
  char strFormat[20];
  memset(string, 0, len);
  absval = fabs(value);
  if ((absval >= 1.0e24 && siPrefix == '\0') || siPrefix == 'Y') {
    snprintf(string, len, "%gY", value / 1.0e24);
  } else if ((absval >= 1.0e21 && siPrefix == '\0') || siPrefix == 'Z') {
    snprintf(string, len, "%gZ", value / 1.0e21);
  } else if ((absval >= 1.0e18 && siPrefix == '\0') || siPrefix == 'E') {
    snprintf(string, len, "%gE", value / 1.0e18);
  } else if ((absval >= 1.0e15 && siPrefix == '\0') || siPrefix == 'P') {
    snprintf(string, len, "%gP", value / 1.0e15);
  } else if ((absval >= 1.0e12 && siPrefix == '\0') || siPrefix == 'T') {
    snprintf(string, len, "%gT", value / 1.0e12);
  } else if ((absval >= 1.0e9 && siPrefix == '\0') || siPrefix == 'G') {
    snprintf(string, len, "%gG", value / 1.0e9);
  } else if ((absval >= 1.0e6 && siPrefix == '\0') || siPrefix == 'M') {
    snprintf(string, len, "%gM", value / 1.0e6);
  } else if ((absval >= 1.0e3 && siPrefix == '\0') || siPrefix == 'k') {
    snprintf(string, len, "%gk", value / 1.0e3);
  } else if ((absval < 1.0e-21 && siPrefix == '\0') || siPrefix == 'y') {
    snprintf(string, len, "%gy", value * 1.0e24);
  } else if ((absval < 1.0e-18 && siPrefix == '\0') || siPrefix == 'z') {
    snprintf(string, len, "%gz", value * 1.0e21);
  } else if ((absval < 1.0e-15 && siPrefix == '\0') || siPrefix == 'a') {
    snprintf(string, len, "%ga", value * 1.0e18);
  } else if ((absval < 1.0e-12 && siPrefix == '\0') || siPrefix == 'f') {
    snprintf(string, len, "%gf", value * 1.0e15);
  } else if ((absval < 1.0e-9 && siPrefix == '\0') || siPrefix == 'p') {
    snprintf(string, len, "%gp", value * 1.0e12);
  } else if ((absval < 1.0e-6 && siPrefix == '\0') || siPrefix == 'n') {
    snprintf(string, len, "%gn", value * 1.0e9);
  } else if ((absval < 1.0e-3 && siPrefix == '\0') || siPrefix == 'u') {
    snprintf(string, len, "%gu", value * 1.0e6);
  } else if ((absval < 0.1 && siPrefix == '\0') || siPrefix == 'm') {
    snprintf(string, len, "%gm", value * 1.0e3);
  } else {
    if (precision == -1) {
      snprintf(string, len, "%g", value);
    } else {
      snprintf(strFormat, 20, "%%.%dg", precision);
      snprintf(string, len, strFormat, value);
    }
  }
}


x86 assembly (clang, -O0):
<doubleToString>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %dl,%al
movsd  %xmm0,-0x8(%rbp)
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %al,-0x15(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%edx
xor    %esi,%esi
call   1040 <memset@plt>
movsd  -0x8(%rbp),%xmm0
movaps 0xf2a(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x28(%rbp),%xmm0
movsd  0xe94(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     1183 <doubleToString+0x63>
movsbl -0x15(%rbp),%eax
cmp    $0x0,%eax
je     1190 <doubleToString+0x70>
movsbl -0x15(%rbp),%eax
cmp    $0x59,%eax
jne    11b9 <doubleToString+0x99>
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
movsd  -0x8(%rbp),%xmm0
movsd  0xe5c(%rip),%xmm1
divsd  %xmm1,%xmm0
lea    0xee1(%rip),%rdx
call   1030 <snprintf@plt>
jmp    1765 <doubleToString+0x645>
movsd  -0x28(%rbp),%xmm0
movsd  0xe42(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     11dd <doubleToString+0xbd>
movsbl -0x15(%rbp),%eax
cmp    $0x0,%eax
je     11ea <doubleToString+0xca>
movsbl -0x15(%rbp),%eax
cmp    $0x5a,%eax
jne    1213 <doubleToString+0xf3>
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
movsd  -0x8(%rbp),%xmm0
movsd  0xe0a(%rip),%xmm1
divsd  %xmm1,%xmm0
lea    0xe8b(%rip),%rdx
call   1030 <snprintf@plt>
jmp    1760 <doubleToString+0x640>
movsd  -0x28(%rbp),%xmm0
movsd  0xdf0(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     1237 <doubleToString+0x117>
movsbl -0x15(%rbp),%eax
cmp    $0x0,%eax
je     1244 <doubleToString+0x124>
movsbl -0x15(%rbp),%eax
cmp    $0x45,%eax
jne    126d <doubleToString+0x14d>
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
movsd  -0x8(%rbp),%xmm0
movsd  0xdb8(%rip),%xmm1
divsd  %xmm1,%xmm0
lea    0xe35(%rip),%rdx
call   1030 <snprintf@plt>
jmp    175b <doubleToString+0x63b>
movsd  -0x28(%rbp),%xmm0
movsd  0xd9e(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     1291 <doubleToString+0x171>
movsbl -0x15(%rbp),%eax
cmp    $0x0,%eax
je     129e <doubleToString+0x17e>
movsbl -0x15(%rbp),%eax
cmp    $0x50,%eax
jne    12c7 <doubleToString+0x1a7>
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
movsd  -0x8(%rbp),%xmm0
movsd  0xd66(%rip),%xmm1
divsd  %xmm1,%xmm0
lea    0xddf(%rip),%rdx
call   1030 <snprintf@plt>
jmp    1756 <doubleToString+0x636>
movsd  -0x28(%rbp),%xmm0
movsd  0xd4c(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     12eb <doubleToString+0x1cb>
movsbl -0x15(%rbp),%eax
cmp    $0x0,%eax
je     12f8 <doubleToString+0x1d8>
movsbl -0x15(%rbp),%eax
cmp    $0x54,%eax
jne    1321 <doubleToString+0x201>
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
movsd  -0x8(%rbp),%xmm0
movsd  0xd14(%rip),%xmm1
divsd  %xmm1,%xmm0
lea    0xd89(%rip),%rdx
call   1030 <snprintf@plt>
jmp    1751 <doubleToString+0x631>
movsd  -0x28(%rbp),%xmm0
movsd  0xcfa(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     1345 <doubleToString+0x225>
movsbl -0x15(%rbp),%eax
cmp    $0x0,%eax
je     1352 <doubleToString+0x232>
movsbl -0x15(%rbp),%eax
cmp    $0x47,%eax
jne    137b <doubleToString+0x25b>
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
movsd  -0x8(%rbp),%xmm0
movsd  0xcc2(%rip),%xmm1
divsd  %xmm1,%xmm0
lea    0xd33(%rip),%rdx
call   1030 <snprintf@plt>
jmp    174c <doubleToString+0x62c>
movsd  -0x28(%rbp),%xmm0
movsd  0xca8(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     139f <doubleToString+0x27f>
movsbl -0x15(%rbp),%eax
cmp    $0x0,%eax
je     13ac <doubleToString+0x28c>
movsbl -0x15(%rbp),%eax
cmp    $0x4d,%eax
jne    13d5 <doubleToString+0x2b5>
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
movsd  -0x8(%rbp),%xmm0
movsd  0xc70(%rip),%xmm1
divsd  %xmm1,%xmm0
lea    0xcdd(%rip),%rdx
call   1030 <snprintf@plt>
jmp    1747 <doubleToString+0x627>
movsd  -0x28(%rbp),%xmm0
movsd  0xc56(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     13f9 <doubleToString+0x2d9>
movsbl -0x15(%rbp),%eax
cmp    $0x0,%eax
je     1406 <doubleToString+0x2e6>
movsbl -0x15(%rbp),%eax
cmp    $0x6b,%eax
jne    142f <doubleToString+0x30f>
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
movsd  -0x8(%rbp),%xmm0
movsd  0xc1e(%rip),%xmm1
divsd  %xmm1,%xmm0
lea    0xc87(%rip),%rdx
call   1030 <snprintf@plt>
jmp    1742 <doubleToString+0x622>
movsd  0xc09(%rip),%xmm0
ucomisd -0x28(%rbp),%xmm0
jbe    144f <doubleToString+0x32f>
movsbl -0x15(%rbp),%eax
cmp    $0x0,%eax
je     145c <doubleToString+0x33c>
movsbl -0x15(%rbp),%eax
cmp    $0x79,%eax
jne    1481 <doubleToString+0x361>
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
movsd  0xb95(%rip),%xmm0
mulsd  -0x8(%rbp),%xmm0
lea    0xc39(%rip),%rdx
call   1030 <snprintf@plt>
jmp    173d <doubleToString+0x61d>
movsd  0xbbf(%rip),%xmm0
ucomisd -0x28(%rbp),%xmm0
jbe    14a1 <doubleToString+0x381>
movsbl -0x15(%rbp),%eax
cmp    $0x0,%eax
je     14ae <doubleToString+0x38e>
movsbl -0x15(%rbp),%eax
cmp    $0x7a,%eax
jne    14d3 <doubleToString+0x3b3>
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
movsd  0xb4b(%rip),%xmm0
mulsd  -0x8(%rbp),%xmm0
lea    0xbeb(%rip),%rdx
call   1030 <snprintf@plt>
jmp    1738 <doubleToString+0x618>
movsd  0xb75(%rip),%xmm0
ucomisd -0x28(%rbp),%xmm0
jbe    14f3 <doubleToString+0x3d3>
movsbl -0x15(%rbp),%eax
cmp    $0x0,%eax
je     1500 <doubleToString+0x3e0>
movsbl -0x15(%rbp),%eax
cmp    $0x61,%eax
jne    1525 <doubleToString+0x405>
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
movsd  0xb01(%rip),%xmm0
mulsd  -0x8(%rbp),%xmm0
lea    0xb9d(%rip),%rdx
call   1030 <snprintf@plt>
jmp    1733 <doubleToString+0x613>
movsd  0xb2b(%rip),%xmm0
ucomisd -0x28(%rbp),%xmm0
jbe    1545 <doubleToString+0x425>
movsbl -0x15(%rbp),%eax
cmp    $0x0,%eax
je     1552 <doubleToString+0x432>
movsbl -0x15(%rbp),%eax
cmp    $0x66,%eax
jne    1577 <doubleToString+0x457>
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
movsd  0xab7(%rip),%xmm0
mulsd  -0x8(%rbp),%xmm0
lea    0xb4f(%rip),%rdx
call   1030 <snprintf@plt>
jmp    172e <doubleToString+0x60e>
movsd  0xae1(%rip),%xmm0
ucomisd -0x28(%rbp),%xmm0
jbe    1597 <doubleToString+0x477>
movsbl -0x15(%rbp),%eax
cmp    $0x0,%eax
je     15a4 <doubleToString+0x484>
movsbl -0x15(%rbp),%eax
cmp    $0x70,%eax
jne    15c9 <doubleToString+0x4a9>
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
movsd  0xa6d(%rip),%xmm0
mulsd  -0x8(%rbp),%xmm0
lea    0xb01(%rip),%rdx
call   1030 <snprintf@plt>
jmp    1729 <doubleToString+0x609>
movsd  0xa97(%rip),%xmm0
ucomisd -0x28(%rbp),%xmm0
jbe    15e9 <doubleToString+0x4c9>
movsbl -0x15(%rbp),%eax
cmp    $0x0,%eax
je     15f6 <doubleToString+0x4d6>
movsbl -0x15(%rbp),%eax
cmp    $0x6e,%eax
jne    161b <doubleToString+0x4fb>
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
movsd  0xa23(%rip),%xmm0
mulsd  -0x8(%rbp),%xmm0
lea    0xab3(%rip),%rdx
call   1030 <snprintf@plt>
jmp    1724 <doubleToString+0x604>
movsd  0xa4d(%rip),%xmm0
ucomisd -0x28(%rbp),%xmm0
jbe    163b <doubleToString+0x51b>
movsbl -0x15(%rbp),%eax
cmp    $0x0,%eax
je     1648 <doubleToString+0x528>
movsbl -0x15(%rbp),%eax
cmp    $0x75,%eax
jne    166d <doubleToString+0x54d>
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
movsd  0x9d9(%rip),%xmm0
mulsd  -0x8(%rbp),%xmm0
lea    0xa65(%rip),%rdx
call   1030 <snprintf@plt>
jmp    171f <doubleToString+0x5ff>
movsd  0xa03(%rip),%xmm0
ucomisd -0x28(%rbp),%xmm0
jbe    168d <doubleToString+0x56d>
movsbl -0x15(%rbp),%eax
cmp    $0x0,%eax
je     169a <doubleToString+0x57a>
movsbl -0x15(%rbp),%eax
cmp    $0x6d,%eax
jne    16bf <doubleToString+0x59f>
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
movsd  0x98f(%rip),%xmm0
mulsd  -0x8(%rbp),%xmm0
lea    0xa17(%rip),%rdx
call   1030 <snprintf@plt>
jmp    171a <doubleToString+0x5fa>
cmpl   $0xffffffff,-0x1c(%rbp)
jne    16e6 <doubleToString+0x5c6>
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
movsd  -0x8(%rbp),%xmm0
lea    0x9f4(%rip),%rdx
call   1030 <snprintf@plt>
jmp    1715 <doubleToString+0x5f5>
lea    -0x40(%rbp),%rdi
cvtsi2sdl -0x1c(%rbp),%xmm0
mov    $0x14,%esi
lea    0x9d8(%rip),%rdx
call   1030 <snprintf@plt>
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
lea    -0x40(%rbp),%rdx
movsd  -0x8(%rbp),%xmm0
call   1030 <snprintf@plt>
jmp    171a <doubleToString+0x5fa>
jmp    171f <doubleToString+0x5ff>
jmp    1724 <doubleToString+0x604>
jmp    1729 <doubleToString+0x609>
jmp    172e <doubleToString+0x60e>
jmp    1733 <doubleToString+0x613>
jmp    1738 <doubleToString+0x618>
jmp    173d <doubleToString+0x61d>
jmp    1742 <doubleToString+0x622>
jmp    1747 <doubleToString+0x627>
jmp    174c <doubleToString+0x62c>
jmp    1751 <doubleToString+0x631>
jmp    1756 <doubleToString+0x636>
jmp    175b <doubleToString+0x63b>
jmp    1760 <doubleToString+0x640>
jmp    1765 <doubleToString+0x645>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<doubleToString>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x28,%rsp
mov    %ecx,%r14d
mov    %edx,%ebp
mov    %esi,%r15d
mov    %rdi,%rbx
movaps %xmm0,(%rsp)
xor    %esi,%esi
mov    %r15d,%edx
call   1040 <memset@plt>
movapd (%rsp),%xmm0
movapd 0xeb0(%rip),%xmm2
andpd  %xmm0,%xmm2
ucomisd 0xeb4(%rip),%xmm2
setae  %al
test   %bpl,%bpl
sete   %cl
cmp    $0x59,%bpl
je     13e9 <doubleToString+0x2c9>
and    %cl,%al
jne    13e9 <doubleToString+0x2c9>
test   %bpl,%bpl
sete   %al
ucomisd 0xe93(%rip),%xmm2
setae  %cl
cmp    $0x5a,%bpl
je     13fd <doubleToString+0x2dd>
and    %al,%cl
jne    13fd <doubleToString+0x2dd>
test   %bpl,%bpl
sete   %al
ucomisd 0xe78(%rip),%xmm2
setae  %cl
cmp    $0x45,%bpl
je     1411 <doubleToString+0x2f1>
and    %al,%cl
jne    1411 <doubleToString+0x2f1>
test   %bpl,%bpl
sete   %al
ucomisd 0xe5d(%rip),%xmm2
setae  %cl
cmp    $0x50,%bpl
je     1425 <doubleToString+0x305>
and    %al,%cl
jne    1425 <doubleToString+0x305>
test   %bpl,%bpl
sete   %al
ucomisd 0xe42(%rip),%xmm2
setae  %cl
cmp    $0x54,%bpl
je     1439 <doubleToString+0x319>
and    %al,%cl
jne    1439 <doubleToString+0x319>
test   %bpl,%bpl
sete   %al
ucomisd 0xe27(%rip),%xmm2
setae  %cl
cmp    $0x47,%bpl
je     144d <doubleToString+0x32d>
and    %al,%cl
jne    144d <doubleToString+0x32d>
test   %bpl,%bpl
sete   %al
ucomisd 0xe0c(%rip),%xmm2
setae  %cl
cmp    $0x4d,%bpl
je     1461 <doubleToString+0x341>
and    %al,%cl
jne    1461 <doubleToString+0x341>
test   %bpl,%bpl
sete   %al
ucomisd 0xdf1(%rip),%xmm2
setae  %cl
cmp    $0x6b,%bpl
je     1475 <doubleToString+0x355>
and    %al,%cl
jne    1475 <doubleToString+0x355>
test   %bpl,%bpl
sete   %al
movsd  0xdd6(%rip),%xmm1
ucomisd %xmm2,%xmm1
seta   %cl
cmp    $0x79,%bpl
je     1489 <doubleToString+0x369>
and    %al,%cl
jne    1489 <doubleToString+0x369>
test   %bpl,%bpl
sete   %al
movsd  0xdb7(%rip),%xmm1
ucomisd %xmm2,%xmm1
seta   %cl
cmp    $0x7a,%bpl
je     149a <doubleToString+0x37a>
and    %al,%cl
jne    149a <doubleToString+0x37a>
test   %bpl,%bpl
sete   %al
movsd  0xd98(%rip),%xmm1
ucomisd %xmm2,%xmm1
seta   %cl
cmp    $0x61,%bpl
je     14ab <doubleToString+0x38b>
and    %al,%cl
jne    14ab <doubleToString+0x38b>
test   %bpl,%bpl
sete   %al
movsd  0xd79(%rip),%xmm1
ucomisd %xmm2,%xmm1
seta   %cl
cmp    $0x66,%bpl
je     14bc <doubleToString+0x39c>
and    %al,%cl
jne    14bc <doubleToString+0x39c>
test   %bpl,%bpl
sete   %al
movsd  0xd5a(%rip),%xmm1
ucomisd %xmm2,%xmm1
seta   %cl
cmp    $0x70,%bpl
je     14cd <doubleToString+0x3ad>
and    %al,%cl
jne    14cd <doubleToString+0x3ad>
test   %bpl,%bpl
sete   %al
movsd  0xd3b(%rip),%xmm1
ucomisd %xmm2,%xmm1
seta   %cl
cmp    $0x6e,%bpl
je     14de <doubleToString+0x3be>
and    %al,%cl
jne    14de <doubleToString+0x3be>
test   %bpl,%bpl
sete   %al
movsd  0xd1c(%rip),%xmm1
ucomisd %xmm2,%xmm1
seta   %cl
cmp    $0x75,%bpl
je     14ef <doubleToString+0x3cf>
and    %al,%cl
jne    14ef <doubleToString+0x3cf>
test   %bpl,%bpl
sete   %al
movsd  0xcfd(%rip),%xmm1
ucomisd %xmm2,%xmm1
seta   %cl
cmp    $0x6d,%bpl
je     1505 <doubleToString+0x3e5>
and    %al,%cl
jne    1505 <doubleToString+0x3e5>
cmp    $0xffffffff,%r14d
je     152e <doubleToString+0x40e>
cvtsi2sd %r14d,%xmm0
lea    0xd19(%rip),%rdx
lea    0x10(%rsp),%rbp
mov    %rbp,%rdi
mov    $0x14,%esi
call   1030 <snprintf@plt>
mov    %rbx,%rdi
mov    %r15d,%esi
mov    %rbp,%rdx
movaps (%rsp),%xmm0
call   1030 <snprintf@plt>
add    $0x28,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret
divsd  0xc1f(%rip),%xmm0
lea    0xc98(%rip),%rdx
jmp    1519 <doubleToString+0x3f9>
divsd  0xc13(%rip),%xmm0
lea    0xc88(%rip),%rdx
jmp    1519 <doubleToString+0x3f9>
divsd  0xc07(%rip),%xmm0
lea    0xc78(%rip),%rdx
jmp    1519 <doubleToString+0x3f9>
divsd  0xbfb(%rip),%xmm0
lea    0xc68(%rip),%rdx
jmp    1519 <doubleToString+0x3f9>
divsd  0xbef(%rip),%xmm0
lea    0xc58(%rip),%rdx
jmp    1519 <doubleToString+0x3f9>
divsd  0xbe3(%rip),%xmm0
lea    0xc48(%rip),%rdx
jmp    1519 <doubleToString+0x3f9>
divsd  0xbd7(%rip),%xmm0
lea    0xc38(%rip),%rdx
jmp    1519 <doubleToString+0x3f9>
divsd  0xbcb(%rip),%xmm0
lea    0xc28(%rip),%rdx
jmp    1519 <doubleToString+0x3f9>
mulsd  0xb7f(%rip),%xmm0
lea    0xc18(%rip),%rdx
jmp    1519 <doubleToString+0x3f9>
mulsd  0xb76(%rip),%xmm0
lea    0xc0b(%rip),%rdx
jmp    1519 <doubleToString+0x3f9>
mulsd  0xb6d(%rip),%xmm0
lea    0xbfe(%rip),%rdx
jmp    1519 <doubleToString+0x3f9>
mulsd  0xb64(%rip),%xmm0
lea    0xbf1(%rip),%rdx
jmp    1519 <doubleToString+0x3f9>
mulsd  0xb5b(%rip),%xmm0
lea    0xbe4(%rip),%rdx
jmp    1519 <doubleToString+0x3f9>
mulsd  0xb52(%rip),%xmm0
lea    0xbd7(%rip),%rdx
jmp    1519 <doubleToString+0x3f9>
movapd (%rsp),%xmm0
mulsd  0xb44(%rip),%xmm0
lea    0xbc5(%rip),%rdx
jmp    1519 <doubleToString+0x3f9>
movapd (%rsp),%xmm0
mulsd  0xb36(%rip),%xmm0
lea    0xbb3(%rip),%rdx
mov    %rbx,%rdi
mov    %r15d,%esi
add    $0x28,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <snprintf@plt>
lea    0xb9b(%rip),%rdx
mov    %rbx,%rdi
mov    %r15d,%esi
movapd (%rsp),%xmm0
jmp    151f <doubleToString+0x3ff>

LLVM IR (-O0):
@.str = [4 x i8] c"%gY\00"
@.str.1 = [4 x i8] c"%gZ\00"
@.str.2 = [4 x i8] c"%gE\00"
@.str.3 = [4 x i8] c"%gP\00"
@.str.4 = [4 x i8] c"%gT\00"
@.str.5 = [4 x i8] c"%gG\00"
@.str.6 = [4 x i8] c"%gM\00"
@.str.7 = [4 x i8] c"%gk\00"
@.str.8 = [4 x i8] c"%gy\00"
@.str.9 = [4 x i8] c"%gz\00"
@.str.10 = [4 x i8] c"%ga\00"
@.str.11 = [4 x i8] c"%gf\00"
@.str.12 = [4 x i8] c"%gp\00"
@.str.13 = [4 x i8] c"%gn\00"
@.str.14 = [4 x i8] c"%gu\00"
@.str.15 = [4 x i8] c"%gm\00"
@.str.16 = [3 x i8] c"%g\00"
@.str.17 = [7 x i8] c"%%.%dg\00"
define void @doubleToString(double %0, i8* %1, i32 %2, i8 signext %3, i32 %4) {
%6 = alloca double
%7 = alloca i8*
%8 = alloca i32
%9 = alloca i8
%10 = alloca i32
%11 = alloca double
%12 = alloca [20 x i8]
store double %0, double* %6
store i8* %1, i8** %7
store i32 %2, i32* %8
store i8 %3, i8* %9
store i32 %4, i32* %10
%13 = load i8*, i8** %7
%14 = load i32, i32* %8
%15 = call i32 @memset(i8* %13, i32 0, i32 %14)
%16 = load double, double* %6
%17 = call double @llvm.fabs.f64(double %16)
store double %17, double* %11
%18 = load double, double* %11
%19 = fcmp oge double %18, 0x44EA784379D99DB4
br i1 %19, label %20, label %24
20: ; preds = %5
%21 = load i8, i8* %9
%22 = sext i8 %21 to i32
%23 = icmp eq i32 %22, 0
br i1 %23, label %28, label %24
24: ; preds = %20, %5
%25 = load i8, i8* %9
%26 = sext i8 %25 to i32
%27 = icmp eq i32 %26, 89
br i1 %27, label %28, label %34
28: ; preds = %24, %20
%29 = load i8*, i8** %7
%30 = load i32, i32* %8
%31 = load double, double* %6
%32 = fdiv double %31, 0x44EA784379D99DB4
%33 = call i32 @snprintf(i8* %29, i32 %30, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double %32)
br label %323
34: ; preds = %24
%35 = load double, double* %11
%36 = fcmp oge double %35, 1.000000e+21
br i1 %36, label %37, label %41
37: ; preds = %34
%38 = load i8, i8* %9
%39 = sext i8 %38 to i32
%40 = icmp eq i32 %39, 0
br i1 %40, label %45, label %41
41: ; preds = %37, %34
%42 = load i8, i8* %9
%43 = sext i8 %42 to i32
%44 = icmp eq i32 %43, 90
br i1 %44, label %45, label %51
45: ; preds = %41, %37
%46 = load i8*, i8** %7
%47 = load i32, i32* %8
%48 = load double, double* %6
%49 = fdiv double %48, 1.000000e+21
%50 = call i32 @snprintf(i8* %46, i32 %47, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double %49)
br label %322
51: ; preds = %41
%52 = load double, double* %11
%53 = fcmp oge double %52, 1.000000e+18
br i1 %53, label %54, label %58
54: ; preds = %51
%55 = load i8, i8* %9
%56 = sext i8 %55 to i32
%57 = icmp eq i32 %56, 0
br i1 %57, label %62, label %58
58: ; preds = %54, %51
%59 = load i8, i8* %9
%60 = sext i8 %59 to i32
%61 = icmp eq i32 %60, 69
br i1 %61, label %62, label %68
62: ; preds = %58, %54
%63 = load i8*, i8** %7
%64 = load i32, i32* %8
%65 = load double, double* %6
%66 = fdiv double %65, 1.000000e+18
%67 = call i32 @snprintf(i8* %63, i32 %64, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), double %66)
br label %321
68: ; preds = %58
%69 = load double, double* %11
%70 = fcmp oge double %69, 1.000000e+15
br i1 %70, label %71, label %75
71: ; preds = %68
%72 = load i8, i8* %9
%73 = sext i8 %72 to i32
%74 = icmp eq i32 %73, 0
br i1 %74, label %79, label %75
75: ; preds = %71, %68
%76 = load i8, i8* %9
%77 = sext i8 %76 to i32
%78 = icmp eq i32 %77, 80
br i1 %78, label %79, label %85
79: ; preds = %75, %71
%80 = load i8*, i8** %7
%81 = load i32, i32* %8
%82 = load double, double* %6
%83 = fdiv double %82, 1.000000e+15
%84 = call i32 @snprintf(i8* %80, i32 %81, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), double %83)
br label %320
85: ; preds = %75
%86 = load double, double* %11
%87 = fcmp oge double %86, 1.000000e+12
br i1 %87, label %88, label %92
88: ; preds = %85
%89 = load i8, i8* %9
%90 = sext i8 %89 to i32
%91 = icmp eq i32 %90, 0
br i1 %91, label %96, label %92
92: ; preds = %88, %85
%93 = load i8, i8* %9
%94 = sext i8 %93 to i32
%95 = icmp eq i32 %94, 84
br i1 %95, label %96, label %102
96: ; preds = %92, %88
%97 = load i8*, i8** %7
%98 = load i32, i32* %8
%99 = load double, double* %6
%100 = fdiv double %99, 1.000000e+12
%101 = call i32 @snprintf(i8* %97, i32 %98, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), double %100)
br label %319
102: ; preds = %92
%103 = load double, double* %11
%104 = fcmp oge double %103, 1.000000e+09
br i1 %104, label %105, label %109
105: ; preds = %102
%106 = load i8, i8* %9
%107 = sext i8 %106 to i32
%108 = icmp eq i32 %107, 0
br i1 %108, label %113, label %109
109: ; preds = %105, %102
%110 = load i8, i8* %9
%111 = sext i8 %110 to i32
%112 = icmp eq i32 %111, 71
br i1 %112, label %113, label %119
113: ; preds = %109, %105
%114 = load i8*, i8** %7
%115 = load i32, i32* %8
%116 = load double, double* %6
%117 = fdiv double %116, 1.000000e+09
%118 = call i32 @snprintf(i8* %114, i32 %115, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), double %117)
br label %318
119: ; preds = %109
%120 = load double, double* %11
%121 = fcmp oge double %120, 1.000000e+06
br i1 %121, label %122, label %126
122: ; preds = %119
%123 = load i8, i8* %9
%124 = sext i8 %123 to i32
%125 = icmp eq i32 %124, 0
br i1 %125, label %130, label %126
126: ; preds = %122, %119
%127 = load i8, i8* %9
%128 = sext i8 %127 to i32
%129 = icmp eq i32 %128, 77
br i1 %129, label %130, label %136
130: ; preds = %126, %122
%131 = load i8*, i8** %7
%132 = load i32, i32* %8
%133 = load double, double* %6
%134 = fdiv double %133, 1.000000e+06
%135 = call i32 @snprintf(i8* %131, i32 %132, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), double %134)
br label %317
136: ; preds = %126
%137 = load double, double* %11
%138 = fcmp oge double %137, 1.000000e+03
br i1 %138, label %139, label %143
139: ; preds = %136
%140 = load i8, i8* %9
%141 = sext i8 %140 to i32
%142 = icmp eq i32 %141, 0
br i1 %142, label %147, label %143
143: ; preds = %139, %136
%144 = load i8, i8* %9
%145 = sext i8 %144 to i32
%146 = icmp eq i32 %145, 107
br i1 %146, label %147, label %153
147: ; preds = %143, %139
%148 = load i8*, i8** %7
%149 = load i32, i32* %8
%150 = load double, double* %6
%151 = fdiv double %150, 1.000000e+03
%152 = call i32 @snprintf(i8* %148, i32 %149, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), double %151)
br label %316
153: ; preds = %143
%154 = load double, double* %11
%155 = fcmp olt double %154, 0x3B92E3B40A0E9B4F
br i1 %155, label %156, label %160
156: ; preds = %153
%157 = load i8, i8* %9
%158 = sext i8 %157 to i32
%159 = icmp eq i32 %158, 0
br i1 %159, label %164, label %160
160: ; preds = %156, %153
%161 = load i8, i8* %9
%162 = sext i8 %161 to i32
%163 = icmp eq i32 %162, 121
br i1 %163, label %164, label %170
164: ; preds = %160, %156
%165 = load i8*, i8** %7
%166 = load i32, i32* %8
%167 = load double, double* %6
%168 = fmul double %167, 0x44EA784379D99DB4
%169 = call i32 @snprintf(i8* %165, i32 %166, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), double %168)
br label %315
170: ; preds = %160
%171 = load double, double* %11
%172 = fcmp olt double %171, 1.000000e-18
br i1 %172, label %173, label %177
173: ; preds = %170
%174 = load i8, i8* %9
%175 = sext i8 %174 to i32
%176 = icmp eq i32 %175, 0
br i1 %176, label %181, label %177
177: ; preds = %173, %170
%178 = load i8, i8* %9
%179 = sext i8 %178 to i32
%180 = icmp eq i32 %179, 122
br i1 %180, label %181, label %187
181: ; preds = %177, %173
%182 = load i8*, i8** %7
%183 = load i32, i32* %8
%184 = load double, double* %6
%185 = fmul double %184, 1.000000e+21
%186 = call i32 @snprintf(i8* %182, i32 %183, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), double %185)
br label %314
187: ; preds = %177
%188 = load double, double* %11
%189 = fcmp olt double %188, 1.000000e-15
br i1 %189, label %190, label %194
190: ; preds = %187
%191 = load i8, i8* %9
%192 = sext i8 %191 to i32
%193 = icmp eq i32 %192, 0
br i1 %193, label %198, label %194
194: ; preds = %190, %187
%195 = load i8, i8* %9
%196 = sext i8 %195 to i32
%197 = icmp eq i32 %196, 97
br i1 %197, label %198, label %204
198: ; preds = %194, %190
%199 = load i8*, i8** %7
%200 = load i32, i32* %8
%201 = load double, double* %6
%202 = fmul double %201, 1.000000e+18
%203 = call i32 @snprintf(i8* %199, i32 %200, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), double %202)
br label %313
204: ; preds = %194
%205 = load double, double* %11
%206 = fcmp olt double %205, 0x3D719799812DEA11
br i1 %206, label %207, label %211
207: ; preds = %204
%208 = load i8, i8* %9
%209 = sext i8 %208 to i32
%210 = icmp eq i32 %209, 0
br i1 %210, label %215, label %211
211: ; preds = %207, %204
%212 = load i8, i8* %9
%213 = sext i8 %212 to i32
%214 = icmp eq i32 %213, 102
br i1 %214, label %215, label %221
215: ; preds = %211, %207
%216 = load i8*, i8** %7
%217 = load i32, i32* %8
%218 = load double, double* %6
%219 = fmul double %218, 1.000000e+15
%220 = call i32 @snprintf(i8* %216, i32 %217, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0), double %219)
br label %312
221: ; preds = %211
%222 = load double, double* %11
%223 = fcmp olt double %222, 1.000000e-09
br i1 %223, label %224, label %228
224: ; preds = %221
%225 = load i8, i8* %9
%226 = sext i8 %225 to i32
%227 = icmp eq i32 %226, 0
br i1 %227, label %232, label %228
228: ; preds = %224, %221
%229 = load i8, i8* %9
%230 = sext i8 %229 to i32
%231 = icmp eq i32 %230, 112
br i1 %231, label %232, label %238
232: ; preds = %228, %224
%233 = load i8*, i8** %7
%234 = load i32, i32* %8
%235 = load double, double* %6
%236 = fmul double %235, 1.000000e+12
%237 = call i32 @snprintf(i8* %233, i32 %234, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0), double %236)
br label %311
238: ; preds = %228
%239 = load double, double* %11
%240 = fcmp olt double %239, 0x3EB0C6F7A0B5ED8D
br i1 %240, label %241, label %245
241: ; preds = %238
%242 = load i8, i8* %9
%243 = sext i8 %242 to i32
%244 = icmp eq i32 %243, 0
br i1 %244, label %249, label %245
245: ; preds = %241, %238
%246 = load i8, i8* %9
%247 = sext i8 %246 to i32
%248 = icmp eq i32 %247, 110
br i1 %248, label %249, label %255
249: ; preds = %245, %241
%250 = load i8*, i8** %7
%251 = load i32, i32* %8
%252 = load double, double* %6
%253 = fmul double %252, 1.000000e+09
%254 = call i32 @snprintf(i8* %250, i32 %251, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0), double %253)
br label %310
255: ; preds = %245
%256 = load double, double* %11
%257 = fcmp olt double %256, 1.000000e-03
br i1 %257, label %258, label %262
258: ; preds = %255
%259 = load i8, i8* %9
%260 = sext i8 %259 to i32
%261 = icmp eq i32 %260, 0
br i1 %261, label %266, label %262
262: ; preds = %258, %255
%263 = load i8, i8* %9
%264 = sext i8 %263 to i32
%265 = icmp eq i32 %264, 117
br i1 %265, label %266, label %272
266: ; preds = %262, %258
%267 = load i8*, i8** %7
%268 = load i32, i32* %8
%269 = load double, double* %6
%270 = fmul double %269, 1.000000e+06
%271 = call i32 @snprintf(i8* %267, i32 %268, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0), double %270)
br label %309
272: ; preds = %262
%273 = load double, double* %11
%274 = fcmp olt double %273, 1.000000e-01
br i1 %274, label %275, label %279
275: ; preds = %272
%276 = load i8, i8* %9
%277 = sext i8 %276 to i32
%278 = icmp eq i32 %277, 0
br i1 %278, label %283, label %279
279: ; preds = %275, %272
%280 = load i8, i8* %9
%281 = sext i8 %280 to i32
%282 = icmp eq i32 %281, 109
br i1 %282, label %283, label %289
283: ; preds = %279, %275
%284 = load i8*, i8** %7
%285 = load i32, i32* %8
%286 = load double, double* %6
%287 = fmul double %286, 1.000000e+03
%288 = call i32 @snprintf(i8* %284, i32 %285, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.15, i64 0, i64 0), double %287)
br label %308
289: ; preds = %279
%290 = load i32, i32* %10
%291 = icmp eq i32 %290, -1
br i1 %291, label %292, label %297
292: ; preds = %289
%293 = load i8*, i8** %7
%294 = load i32, i32* %8
%295 = load double, double* %6
%296 = call i32 @snprintf(i8* %293, i32 %294, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.16, i64 0, i64 0), double %295)
br label %307
297: ; preds = %289
%298 = getelementptr inbounds [20 x i8], [20 x i8]* %12, i64 0, i64 0
%299 = load i32, i32* %10
%300 = sitofp i32 %299 to double
%301 = call i32 @snprintf(i8* %298, i32 20, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.17, i64 0, i64 0), double %300)
%302 = load i8*, i8** %7
%303 = load i32, i32* %8
%304 = getelementptr inbounds [20 x i8], [20 x i8]* %12, i64 0, i64 0
%305 = load double, double* %6
%306 = call i32 @snprintf(i8* %302, i32 %303, i8* %304, double %305)
br label %307
307: ; preds = %297, %292
br label %308
308: ; preds = %307, %283
br label %309
309: ; preds = %308, %266
br label %310
310: ; preds = %309, %249
br label %311
311: ; preds = %310, %232
br label %312
312: ; preds = %311, %215
br label %313
313: ; preds = %312, %198
br label %314
314: ; preds = %313, %181
br label %315
315: ; preds = %314, %164
br label %316
316: ; preds = %315, %147
br label %317
317: ; preds = %316, %130
br label %318
318: ; preds = %317, %113
br label %319
319: ; preds = %318, %96
br label %320
320: ; preds = %319, %79
br label %321
321: ; preds = %320, %62
br label %322
322: ; preds = %321, %45
br label %323
323: ; preds = %322, %28
ret void
}

LLVM IR (-O2):
@.str = [4 x i8] c"%gY\00"
@.str.1 = [4 x i8] c"%gZ\00"
@.str.2 = [4 x i8] c"%gE\00"
@.str.3 = [4 x i8] c"%gP\00"
@.str.4 = [4 x i8] c"%gT\00"
@.str.5 = [4 x i8] c"%gG\00"
@.str.6 = [4 x i8] c"%gM\00"
@.str.7 = [4 x i8] c"%gk\00"
@.str.8 = [4 x i8] c"%gy\00"
@.str.9 = [4 x i8] c"%gz\00"
@.str.10 = [4 x i8] c"%ga\00"
@.str.11 = [4 x i8] c"%gf\00"
@.str.12 = [4 x i8] c"%gp\00"
@.str.13 = [4 x i8] c"%gn\00"
@.str.14 = [4 x i8] c"%gu\00"
@.str.15 = [4 x i8] c"%gm\00"
@.str.16 = [3 x i8] c"%g\00"
@.str.17 = [7 x i8] c"%%.%dg\00"
define void @doubleToString(double %0, i8* %1, i32 %2, i8 signext %3, i32 %4) {
%6 = alloca [20 x i8]
%7 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%8 = tail call i32 @memset(i8* %1, i32 0, i32 %2)
%9 = tail call double @llvm.fabs.f64(double %0)
%10 = fcmp oge double %9, 0x44EA784379D99DB4
%11 = icmp eq i8 %3, 0
%12 = and i1 %10, %11
%13 = icmp eq i8 %3, 89
%14 = or i1 %13, %12
br i1 %14, label %15, label %18
15: ; preds = %5
%16 = fdiv double %0, 0x44EA784379D99DB4
%17 = tail call i32 @snprintf(i8* %1, i32 %2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double %16)
br label %146
18: ; preds = %5
%19 = fcmp oge double %9, 1.000000e+21
%20 = and i1 %19, %11
%21 = icmp eq i8 %3, 90
%22 = or i1 %21, %20
br i1 %22, label %23, label %26
23: ; preds = %18
%24 = fdiv double %0, 1.000000e+21
%25 = tail call i32 @snprintf(i8* %1, i32 %2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double %24)
br label %146
26: ; preds = %18
%27 = fcmp oge double %9, 1.000000e+18
%28 = and i1 %27, %11
%29 = icmp eq i8 %3, 69
%30 = or i1 %29, %28
br i1 %30, label %31, label %34
31: ; preds = %26
%32 = fdiv double %0, 1.000000e+18
%33 = tail call i32 @snprintf(i8* %1, i32 %2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), double %32)
br label %146
34: ; preds = %26
%35 = fcmp oge double %9, 1.000000e+15
%36 = and i1 %35, %11
%37 = icmp eq i8 %3, 80
%38 = or i1 %37, %36
br i1 %38, label %39, label %42
39: ; preds = %34
%40 = fdiv double %0, 1.000000e+15
%41 = tail call i32 @snprintf(i8* %1, i32 %2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), double %40)
br label %146
42: ; preds = %34
%43 = fcmp oge double %9, 1.000000e+12
%44 = and i1 %43, %11
%45 = icmp eq i8 %3, 84
%46 = or i1 %45, %44
br i1 %46, label %47, label %50
47: ; preds = %42
%48 = fdiv double %0, 1.000000e+12
%49 = tail call i32 @snprintf(i8* %1, i32 %2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), double %48)
br label %146
50: ; preds = %42
%51 = fcmp oge double %9, 1.000000e+09
%52 = and i1 %51, %11
%53 = icmp eq i8 %3, 71
%54 = or i1 %53, %52
br i1 %54, label %55, label %58
55: ; preds = %50
%56 = fdiv double %0, 1.000000e+09
%57 = tail call i32 @snprintf(i8* %1, i32 %2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), double %56)
br label %146
58: ; preds = %50
%59 = fcmp oge double %9, 1.000000e+06
%60 = and i1 %59, %11
%61 = icmp eq i8 %3, 77
%62 = or i1 %61, %60
br i1 %62, label %63, label %66
63: ; preds = %58
%64 = fdiv double %0, 1.000000e+06
%65 = tail call i32 @snprintf(i8* %1, i32 %2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), double %64)
br label %146
66: ; preds = %58
%67 = fcmp oge double %9, 1.000000e+03
%68 = and i1 %67, %11
%69 = icmp eq i8 %3, 107
%70 = or i1 %69, %68
br i1 %70, label %71, label %74
71: ; preds = %66
%72 = fdiv double %0, 1.000000e+03
%73 = tail call i32 @snprintf(i8* %1, i32 %2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), double %72)
br label %146
74: ; preds = %66
%75 = fcmp olt double %9, 0x3B92E3B40A0E9B4F
%76 = and i1 %75, %11
%77 = icmp eq i8 %3, 121
%78 = or i1 %77, %76
br i1 %78, label %79, label %82
79: ; preds = %74
%80 = fmul double %0, 0x44EA784379D99DB4
%81 = tail call i32 @snprintf(i8* %1, i32 %2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), double %80)
br label %146
82: ; preds = %74
%83 = fcmp olt double %9, 1.000000e-18
%84 = and i1 %83, %11
%85 = icmp eq i8 %3, 122
%86 = or i1 %85, %84
br i1 %86, label %87, label %90
87: ; preds = %82
%88 = fmul double %0, 1.000000e+21
%89 = tail call i32 @snprintf(i8* %1, i32 %2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), double %88)
br label %146
90: ; preds = %82
%91 = fcmp olt double %9, 1.000000e-15
%92 = and i1 %91, %11
%93 = icmp eq i8 %3, 97
%94 = or i1 %93, %92
br i1 %94, label %95, label %98
95: ; preds = %90
%96 = fmul double %0, 1.000000e+18
%97 = tail call i32 @snprintf(i8* %1, i32 %2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), double %96)
br label %146
98: ; preds = %90
%99 = fcmp olt double %9, 0x3D719799812DEA11
%100 = and i1 %99, %11
%101 = icmp eq i8 %3, 102
%102 = or i1 %101, %100
br i1 %102, label %103, label %106
103: ; preds = %98
%104 = fmul double %0, 1.000000e+15
%105 = tail call i32 @snprintf(i8* %1, i32 %2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0), double %104)
br label %146
106: ; preds = %98
%107 = fcmp olt double %9, 1.000000e-09
%108 = and i1 %107, %11
%109 = icmp eq i8 %3, 112
%110 = or i1 %109, %108
br i1 %110, label %111, label %114
111: ; preds = %106
%112 = fmul double %0, 1.000000e+12
%113 = tail call i32 @snprintf(i8* %1, i32 %2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0), double %112)
br label %146
114: ; preds = %106
%115 = fcmp olt double %9, 0x3EB0C6F7A0B5ED8D
%116 = and i1 %115, %11
%117 = icmp eq i8 %3, 110
%118 = or i1 %117, %116
br i1 %118, label %119, label %122
119: ; preds = %114
%120 = fmul double %0, 1.000000e+09
%121 = tail call i32 @snprintf(i8* %1, i32 %2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0), double %120)
br label %146
122: ; preds = %114
%123 = fcmp olt double %9, 1.000000e-03
%124 = and i1 %123, %11
%125 = icmp eq i8 %3, 117
%126 = or i1 %125, %124
br i1 %126, label %127, label %130
127: ; preds = %122
%128 = fmul double %0, 1.000000e+06
%129 = tail call i32 @snprintf(i8* %1, i32 %2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0), double %128)
br label %146
130: ; preds = %122
%131 = fcmp olt double %9, 1.000000e-01
%132 = and i1 %131, %11
%133 = icmp eq i8 %3, 109
%134 = or i1 %133, %132
br i1 %134, label %135, label %138
135: ; preds = %130
%136 = fmul double %0, 1.000000e+03
%137 = tail call i32 @snprintf(i8* %1, i32 %2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.15, i64 0, i64 0), double %136)
br label %146
138: ; preds = %130
%139 = icmp eq i32 %4, -1
br i1 %139, label %140, label %142
140: ; preds = %138
%141 = tail call i32 @snprintf(i8* %1, i32 %2, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.16, i64 0, i64 0), double %0)
br label %146
142: ; preds = %138
%143 = sitofp i32 %4 to double
%144 = call i32 @snprintf(i8* %7, i32 20, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.17, i64 0, i64 0), double %143)
%145 = call i32 @snprintf(i8* %1, i32 %2, i8* %7, double %0)
br label %146
146: ; preds = %23, %39, %55, %71, %87, %103, %119, %135, %142, %140, %127, %111, %95, %79, %63, %47, %31, %15
ret void
}