#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 */
scalar_t__ isdigit(char const);
scalar_t__ isspace(char const);
int pow(double, double);
int DoubleTryParse(const char *s, double *OutResult) {
  if (!OutResult)
    return 0;
  if (!s) {
    *OutResult = 0.0;
    return 0;
  }
  while (isspace(*s))
    ++s;
  int sign = 1;
  double frac = 1.0;
  double result = 0.0;
  if (*s == '-') {
    sign = -1;
    ++s;
  } else if (*s == '+') {
    ++s;
  }
  if (!isdigit(*s)) {
    return 0;
  }
  while (isdigit(*s)) {
    result = result * 10.0 + (*s - '0');
    ++s;
  }
  if (*s == '.') {
    ++s;
    while (isdigit(*s)) {
      result = result * 10.0 + (double)(*s - '0');
      frac *= 10;
      ++s;
    }
    if (*s == 'E' || *s == 'e') {
      ++s;
      double exp = 0.0;
      int fracsign = 1;
      if (*s == '-') {
        fracsign = -1;
        ++s;
      } else if (*s == '+') {
        fracsign = 1;
        ++s;
      }
      while (isdigit(*s)) {
        exp = exp * 10.0 + (*s - '0');
        ++s;
      }
      exp *= fracsign;
      *OutResult = sign * result / frac * pow(10.0, exp);
      return 1;
    }
    *OutResult = sign * result / frac;
    return 1;
  } else if (*s == 'E' || *s == 'e') {
    ++s;
    double exp = 0.0;
    int fracsign = 1;
    if (*s == '-') {
      fracsign = -1;
    } else if (*s == '+') {
      fracsign = 1;
    }
    ++s;
    while (isdigit(*s)) {
      exp = exp * 10.0 + (*s - '0');
      ++s;
    }
    exp *= fracsign;
    *OutResult = sign * result * pow(10.0, exp);
    return 1;
  }
  *OutResult = result;
  return 1;
}


x86 assembly (clang, -O0):
<DoubleTryParse>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    1157 <DoubleTryParse+0x27>
movl   $0x0,-0x4(%rbp)
jmp    158d <DoubleTryParse+0x45d>
cmpq   $0x0,-0x10(%rbp)
jne    1179 <DoubleTryParse+0x49>
mov    -0x18(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
movl   $0x0,-0x4(%rbp)
jmp    158d <DoubleTryParse+0x45d>
jmp    117e <DoubleTryParse+0x4e>
mov    -0x10(%rbp),%rax
movsbl (%rax),%edi
call   1040 <isspace@plt>
cmp    $0x0,%rax
je     11a5 <DoubleTryParse+0x75>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    117e <DoubleTryParse+0x4e>
movl   $0x1,-0x1c(%rbp)
movsd  0xe4c(%rip),%xmm0
movsd  %xmm0,-0x28(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2d,%eax
jne    11e9 <DoubleTryParse+0xb9>
movl   $0xffffffff,-0x1c(%rbp)
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    120a <DoubleTryParse+0xda>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2b,%eax
jne    1205 <DoubleTryParse+0xd5>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    120a <DoubleTryParse+0xda>
mov    -0x10(%rbp),%rax
movsbl (%rax),%edi
call   1030 <isdigit@plt>
cmp    $0x0,%rax
jne    122c <DoubleTryParse+0xfc>
movl   $0x0,-0x4(%rbp)
jmp    158d <DoubleTryParse+0x45d>
jmp    1231 <DoubleTryParse+0x101>
mov    -0x10(%rbp),%rax
movsbl (%rax),%edi
call   1030 <isdigit@plt>
cmp    $0x0,%rax
je     1280 <DoubleTryParse+0x150>
movsd  -0x30(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
sub    $0x30,%eax
cvtsi2sd %eax,%xmm1
movsd  0xda6(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    1231 <DoubleTryParse+0x101>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2e,%eax
jne    1455 <DoubleTryParse+0x325>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%edi
call   1030 <isdigit@plt>
cmp    $0x0,%rax
je     12fd <DoubleTryParse+0x1cd>
movsd  -0x30(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
sub    $0x30,%eax
cvtsi2sd %eax,%xmm1
movsd  0xd3b(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  0xd26(%rip),%xmm0
mulsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    129c <DoubleTryParse+0x16c>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x45,%eax
je     131d <DoubleTryParse+0x1ed>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x65,%eax
jne    1432 <DoubleTryParse+0x302>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x38(%rbp)
movl   $0x1,-0x3c(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2d,%eax
jne    1360 <DoubleTryParse+0x230>
movl   $0xffffffff,-0x3c(%rbp)
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    1388 <DoubleTryParse+0x258>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2b,%eax
jne    1383 <DoubleTryParse+0x253>
movl   $0x1,-0x3c(%rbp)
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    1388 <DoubleTryParse+0x258>
jmp    138d <DoubleTryParse+0x25d>
mov    -0x10(%rbp),%rax
movsbl (%rax),%edi
call   1030 <isdigit@plt>
cmp    $0x0,%rax
je     13dc <DoubleTryParse+0x2ac>
movsd  -0x38(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
sub    $0x30,%eax
cvtsi2sd %eax,%xmm1
movsd  0xc4a(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    138d <DoubleTryParse+0x25d>
cvtsi2sdl -0x3c(%rbp),%xmm0
mulsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
cvtsi2sdl -0x1c(%rbp),%xmm0
mulsd  -0x30(%rbp),%xmm0
divsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x38(%rbp),%xmm1
movsd  0xbfc(%rip),%xmm0
call   1050 <pow@plt>
movsd  -0x58(%rbp),%xmm0
cvtsi2sd %eax,%xmm1
mulsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
movl   $0x1,-0x4(%rbp)
jmp    158d <DoubleTryParse+0x45d>
cvtsi2sdl -0x1c(%rbp),%xmm0
mulsd  -0x30(%rbp),%xmm0
divsd  -0x28(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
movl   $0x1,-0x4(%rbp)
jmp    158d <DoubleTryParse+0x45d>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x45,%eax
je     1475 <DoubleTryParse+0x345>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x65,%eax
jne    1574 <DoubleTryParse+0x444>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x48(%rbp)
movl   $0x1,-0x4c(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2d,%eax
jne    14ac <DoubleTryParse+0x37c>
movl   $0xffffffff,-0x4c(%rbp)
jmp    14c8 <DoubleTryParse+0x398>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2b,%eax
jne    14c3 <DoubleTryParse+0x393>
movl   $0x1,-0x4c(%rbp)
jmp    14c8 <DoubleTryParse+0x398>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%edi
call   1030 <isdigit@plt>
cmp    $0x0,%rax
je     1523 <DoubleTryParse+0x3f3>
movsd  -0x48(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
sub    $0x30,%eax
cvtsi2sd %eax,%xmm1
movsd  0xb03(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    14d4 <DoubleTryParse+0x3a4>
cvtsi2sdl -0x4c(%rbp),%xmm0
mulsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
cvtsi2sdl -0x1c(%rbp),%xmm0
mulsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x48(%rbp),%xmm1
movsd  0xaba(%rip),%xmm0
call   1050 <pow@plt>
movsd  -0x60(%rbp),%xmm0
cvtsi2sd %eax,%xmm1
mulsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
movl   $0x1,-0x4(%rbp)
jmp    158d <DoubleTryParse+0x45d>
jmp    1579 <DoubleTryParse+0x449>
movsd  -0x30(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<DoubleTryParse>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x38,%rsp
test   %rsi,%rsi
je     12a5 <DoubleTryParse+0x175>
mov    %rsi,%r14
mov    %rdi,%rbx
test   %rdi,%rdi
je     1176 <DoubleTryParse+0x46>
xchg   %ax,%ax
movsbl (%rbx),%edi
call   1040 <isspace@plt>
add    $0x1,%rbx
test   %rax,%rax
jne    1150 <DoubleTryParse+0x20>
mov    -0x1(%rbx),%al
cmp    $0x2b,%al
je     1186 <DoubleTryParse+0x56>
cmp    $0x2d,%al
jne    1182 <DoubleTryParse+0x52>
movsd  0xe94(%rip),%xmm0
jmp    118e <DoubleTryParse+0x5e>
xor    %r15d,%r15d
xorpd  %xmm1,%xmm1
jmp    1439 <DoubleTryParse+0x309>
add    $0xffffffffffffffff,%rbx
movsd  0xe72(%rip),%xmm0
movsd  %xmm0,0x10(%rsp)
movsbl (%rbx),%edi
call   1030 <isdigit@plt>
test   %rax,%rax
je     12a5 <DoubleTryParse+0x175>
movsbl (%rbx),%edi
call   1030 <isdigit@plt>
xorpd  %xmm1,%xmm1
test   %rax,%rax
je     11f7 <DoubleTryParse+0xc7>
cs nopw 0x0(%rax,%rax,1)
movsbl (%rbx),%eax
add    $0xffffffd0,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0xe3b(%rip),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,0x8(%rsp)
movsbl 0x1(%rbx),%edi
add    $0x1,%rbx
call   1030 <isdigit@plt>
movsd  0x8(%rsp),%xmm1
test   %rax,%rax
jne    11c0 <DoubleTryParse+0x90>
mov    (%rbx),%al
mov    $0x1,%r15d
cmp    $0x65,%al
je     12ad <DoubleTryParse+0x17d>
cmp    $0x45,%al
je     12ad <DoubleTryParse+0x17d>
cmp    $0x2e,%al
jne    1439 <DoubleTryParse+0x309>
movsd  %xmm1,0x8(%rsp)
lea    0x1(%rbx),%rbp
movsbl 0x1(%rbx),%edi
call   1030 <isdigit@plt>
movsd  0xdce(%rip),%xmm2
test   %rax,%rax
je     133c <DoubleTryParse+0x20c>
movsd  0x8(%rsp),%xmm1
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsbl 0x0(%rbp),%eax
add    $0xffffffd0,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  0xdaa(%rip),%xmm3
mulsd  %xmm3,%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,0x8(%rsp)
mulsd  %xmm3,%xmm2
movsd  %xmm2,0x20(%rsp)
movsbl 0x1(%rbp),%edi
add    $0x1,%rbp
call   1030 <isdigit@plt>
movsd  0x8(%rsp),%xmm1
movsd  0x20(%rsp),%xmm2
test   %rax,%rax
jne    1250 <DoubleTryParse+0x120>
lea    -0x1(%rbp),%rbx
jmp    1342 <DoubleTryParse+0x212>
xor    %r15d,%r15d
jmp    143e <DoubleTryParse+0x30e>
movsd  %xmm1,0x8(%rsp)
mov    0x1(%rbx),%bpl
movsbl 0x2(%rbx),%edi
call   1030 <isdigit@plt>
test   %rax,%rax
je     1330 <DoubleTryParse+0x200>
add    $0x3,%rbx
xorpd  %xmm1,%xmm1
nopl   (%rax)
movsbl -0x1(%rbx),%eax
add    $0xffffffd0,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0xd2a(%rip),%xmm1
addsd  %xmm0,%xmm1
movapd %xmm1,0x20(%rsp)
movsbl (%rbx),%edi
call   1030 <isdigit@plt>
movapd 0x20(%rsp),%xmm1
add    $0x1,%rbx
test   %rax,%rax
jne    12d0 <DoubleTryParse+0x1a0>
cmp    $0x2d,%bpl
jne    1315 <DoubleTryParse+0x1e5>
xorpd  0xd0b(%rip),%xmm1
movsd  0x8(%rsp),%xmm0
movsd  0x10(%rsp),%xmm2
mulsd  %xmm0,%xmm2
movsd  %xmm2,0x10(%rsp)
jmp    141f <DoubleTryParse+0x2ef>
xorpd  %xmm1,%xmm1
cmp    $0x2d,%bpl
je     130d <DoubleTryParse+0x1dd>
jmp    1315 <DoubleTryParse+0x1e5>
movsd  0x8(%rsp),%xmm1
mov    0x0(%rbp),%al
or     $0x20,%al
cmp    $0x65,%al
jne    137e <DoubleTryParse+0x24e>
mov    0x2(%rbx),%al
movsd  0xcaa(%rip),%xmm0
cmp    $0x2b,%al
movsd  %xmm1,0x8(%rsp)
movsd  %xmm2,0x20(%rsp)
je     1395 <DoubleTryParse+0x265>
cmp    $0x2d,%al
jne    13a1 <DoubleTryParse+0x271>
add    $0x3,%rbx
movsd  0xc92(%rip),%xmm0
movsd  %xmm0,0x18(%rsp)
jmp    13ab <DoubleTryParse+0x27b>
movsd  0x10(%rsp),%xmm0
mulsd  %xmm1,%xmm0
divsd  %xmm2,%xmm0
movapd %xmm0,%xmm1
jmp    1439 <DoubleTryParse+0x309>
movsd  %xmm0,0x18(%rsp)
add    $0x3,%rbx
jmp    13ab <DoubleTryParse+0x27b>
movsd  %xmm0,0x18(%rsp)
add    $0x2,%rbx
movsbl (%rbx),%edi
call   1030 <isdigit@plt>
test   %rax,%rax
je     13f9 <DoubleTryParse+0x2c9>
add    $0x1,%rbx
xorpd  %xmm2,%xmm2
movsbl -0x1(%rbx),%eax
add    $0xffffffd0,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0xc3a(%rip),%xmm2
addsd  %xmm0,%xmm2
movsd  %xmm2,0x30(%rsp)
movsbl (%rbx),%edi
call   1030 <isdigit@plt>
movsd  0x30(%rsp),%xmm2
add    $0x1,%rbx
test   %rax,%rax
jne    13c0 <DoubleTryParse+0x290>
jmp    13fd <DoubleTryParse+0x2cd>
xorpd  %xmm2,%xmm2
movsd  0x18(%rsp),%xmm1
mulsd  %xmm2,%xmm1
movsd  0x10(%rsp),%xmm0
mulsd  0x8(%rsp),%xmm0
divsd  0x20(%rsp),%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  0xbe9(%rip),%xmm0
call   1050 <pow@plt>
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
mulsd  0x10(%rsp),%xmm1
movsd  %xmm1,(%r14)
mov    %r15d,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32 @DoubleTryParse(i8* %0, double* %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca double*
%6 = alloca i32
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca i32
%11 = alloca double
%12 = alloca i32
store i8* %0, i8** %4
store double* %1, double** %5
%13 = load double*, double** %5
%14 = icmp ne double* %13, null
br i1 %14, label %16, label %15
15: ; preds = %2
store i32 0, i32* %3
br label %224
16: ; preds = %2
%17 = load i8*, i8** %4
%18 = icmp ne i8* %17, null
br i1 %18, label %21, label %19
19: ; preds = %16
%20 = load double*, double** %5
store double 0.000000e+00, double* %20
store i32 0, i32* %3
br label %224
21: ; preds = %16
br label %22
22: ; preds = %27, %21
%23 = load i8*, i8** %4
%24 = load i8, i8* %23
%25 = call i64 @isspace(i8 signext %24)
%26 = icmp ne i64 %25, 0
br i1 %26, label %27, label %30
27: ; preds = %22
%28 = load i8*, i8** %4
%29 = getelementptr inbounds i8, i8* %28, i32 1
store i8* %29, i8** %4
br label %22
30: ; preds = %22
store i32 1, i32* %6
store double 1.000000e+00, double* %7
store double 0.000000e+00, double* %8
%31 = load i8*, i8** %4
%32 = load i8, i8* %31
%33 = sext i8 %32 to i32
%34 = icmp eq i32 %33, 45
br i1 %34, label %35, label %38
35: ; preds = %30
store i32 -1, i32* %6
%36 = load i8*, i8** %4
%37 = getelementptr inbounds i8, i8* %36, i32 1
store i8* %37, i8** %4
br label %47
38: ; preds = %30
%39 = load i8*, i8** %4
%40 = load i8, i8* %39
%41 = sext i8 %40 to i32
%42 = icmp eq i32 %41, 43
br i1 %42, label %43, label %46
43: ; preds = %38
%44 = load i8*, i8** %4
%45 = getelementptr inbounds i8, i8* %44, i32 1
store i8* %45, i8** %4
br label %46
46: ; preds = %43, %38
br label %47
47: ; preds = %46, %35
%48 = load i8*, i8** %4
%49 = load i8, i8* %48
%50 = call i64 @isdigit(i8 signext %49)
%51 = icmp ne i64 %50, 0
br i1 %51, label %53, label %52
52: ; preds = %47
store i32 0, i32* %3
br label %224
53: ; preds = %47
br label %54
54: ; preds = %59, %53
%55 = load i8*, i8** %4
%56 = load i8, i8* %55
%57 = call i64 @isdigit(i8 signext %56)
%58 = icmp ne i64 %57, 0
br i1 %58, label %59, label %69
59: ; preds = %54
%60 = load double, double* %8
%61 = load i8*, i8** %4
%62 = load i8, i8* %61
%63 = sext i8 %62 to i32
%64 = sub nsw i32 %63, 48
%65 = sitofp i32 %64 to double
%66 = call double @llvm.fmuladd.f64(double %60, double 1.000000e+01, double %65)
store double %66, double* %8
%67 = load i8*, i8** %4
%68 = getelementptr inbounds i8, i8* %67, i32 1
store i8* %68, i8** %4
br label %54
69: ; preds = %54
%70 = load i8*, i8** %4
%71 = load i8, i8* %70
%72 = sext i8 %71 to i32
%73 = icmp eq i32 %72, 46
br i1 %73, label %74, label %163
74: ; preds = %69
%75 = load i8*, i8** %4
%76 = getelementptr inbounds i8, i8* %75, i32 1
store i8* %76, i8** %4
br label %77
77: ; preds = %82, %74
%78 = load i8*, i8** %4
%79 = load i8, i8* %78
%80 = call i64 @isdigit(i8 signext %79)
%81 = icmp ne i64 %80, 0
br i1 %81, label %82, label %94
82: ; preds = %77
%83 = load double, double* %8
%84 = load i8*, i8** %4
%85 = load i8, i8* %84
%86 = sext i8 %85 to i32
%87 = sub nsw i32 %86, 48
%88 = sitofp i32 %87 to double
%89 = call double @llvm.fmuladd.f64(double %83, double 1.000000e+01, double %88)
store double %89, double* %8
%90 = load double, double* %7
%91 = fmul double %90, 1.000000e+01
store double %91, double* %7
%92 = load i8*, i8** %4
%93 = getelementptr inbounds i8, i8* %92, i32 1
store i8* %93, i8** %4
br label %77
94: ; preds = %77
%95 = load i8*, i8** %4
%96 = load i8, i8* %95
%97 = sext i8 %96 to i32
%98 = icmp eq i32 %97, 69
br i1 %98, label %104, label %99
99: ; preds = %94
%100 = load i8*, i8** %4
%101 = load i8, i8* %100
%102 = sext i8 %101 to i32
%103 = icmp eq i32 %102, 101
br i1 %103, label %104, label %155
104: ; preds = %99, %94
%105 = load i8*, i8** %4
%106 = getelementptr inbounds i8, i8* %105, i32 1
store i8* %106, i8** %4
store double 0.000000e+00, double* %9
store i32 1, i32* %10
%107 = load i8*, i8** %4
%108 = load i8, i8* %107
%109 = sext i8 %108 to i32
%110 = icmp eq i32 %109, 45
br i1 %110, label %111, label %114
111: ; preds = %104
store i32 -1, i32* %10
%112 = load i8*, i8** %4
%113 = getelementptr inbounds i8, i8* %112, i32 1
store i8* %113, i8** %4
br label %123
114: ; preds = %104
%115 = load i8*, i8** %4
%116 = load i8, i8* %115
%117 = sext i8 %116 to i32
%118 = icmp eq i32 %117, 43
br i1 %118, label %119, label %122
119: ; preds = %114
store i32 1, i32* %10
%120 = load i8*, i8** %4
%121 = getelementptr inbounds i8, i8* %120, i32 1
store i8* %121, i8** %4
br label %122
122: ; preds = %119, %114
br label %123
123: ; preds = %122, %111
br label %124
124: ; preds = %129, %123
%125 = load i8*, i8** %4
%126 = load i8, i8* %125
%127 = call i64 @isdigit(i8 signext %126)
%128 = icmp ne i64 %127, 0
br i1 %128, label %129, label %139
129: ; preds = %124
%130 = load double, double* %9
%131 = load i8*, i8** %4
%132 = load i8, i8* %131
%133 = sext i8 %132 to i32
%134 = sub nsw i32 %133, 48
%135 = sitofp i32 %134 to double
%136 = call double @llvm.fmuladd.f64(double %130, double 1.000000e+01, double %135)
store double %136, double* %9
%137 = load i8*, i8** %4
%138 = getelementptr inbounds i8, i8* %137, i32 1
store i8* %138, i8** %4
br label %124
139: ; preds = %124
%140 = load i32, i32* %10
%141 = sitofp i32 %140 to double
%142 = load double, double* %9
%143 = fmul double %142, %141
store double %143, double* %9
%144 = load i32, i32* %6
%145 = sitofp i32 %144 to double
%146 = load double, double* %8
%147 = fmul double %145, %146
%148 = load double, double* %7
%149 = fdiv double %147, %148
%150 = load double, double* %9
%151 = call i32 @pow(double 1.000000e+01, double %150)
%152 = sitofp i32 %151 to double
%153 = fmul double %149, %152
%154 = load double*, double** %5
store double %153, double* %154
store i32 1, i32* %3
br label %224
155: ; preds = %99
%156 = load i32, i32* %6
%157 = sitofp i32 %156 to double
%158 = load double, double* %8
%159 = fmul double %157, %158
%160 = load double, double* %7
%161 = fdiv double %159, %160
%162 = load double*, double** %5
store double %161, double* %162
store i32 1, i32* %3
br label %224
163: ; preds = %69
%164 = load i8*, i8** %4
%165 = load i8, i8* %164
%166 = sext i8 %165 to i32
%167 = icmp eq i32 %166, 69
br i1 %167, label %173, label %168
168: ; preds = %163
%169 = load i8*, i8** %4
%170 = load i8, i8* %169
%171 = sext i8 %170 to i32
%172 = icmp eq i32 %171, 101
br i1 %172, label %173, label %220
173: ; preds = %168, %163
%174 = load i8*, i8** %4
%175 = getelementptr inbounds i8, i8* %174, i32 1
store i8* %175, i8** %4
store double 0.000000e+00, double* %11
store i32 1, i32* %12
%176 = load i8*, i8** %4
%177 = load i8, i8* %176
%178 = sext i8 %177 to i32
%179 = icmp eq i32 %178, 45
br i1 %179, label %180, label %181
180: ; preds = %173
store i32 -1, i32* %12
br label %188
181: ; preds = %173
%182 = load i8*, i8** %4
%183 = load i8, i8* %182
%184 = sext i8 %183 to i32
%185 = icmp eq i32 %184, 43
br i1 %185, label %186, label %187
186: ; preds = %181
store i32 1, i32* %12
br label %187
187: ; preds = %186, %181
br label %188
188: ; preds = %187, %180
%189 = load i8*, i8** %4
%190 = getelementptr inbounds i8, i8* %189, i32 1
store i8* %190, i8** %4
br label %191
191: ; preds = %196, %188
%192 = load i8*, i8** %4
%193 = load i8, i8* %192
%194 = call i64 @isdigit(i8 signext %193)
%195 = icmp ne i64 %194, 0
br i1 %195, label %196, label %206
196: ; preds = %191
%197 = load double, double* %11
%198 = load i8*, i8** %4
%199 = load i8, i8* %198
%200 = sext i8 %199 to i32
%201 = sub nsw i32 %200, 48
%202 = sitofp i32 %201 to double
%203 = call double @llvm.fmuladd.f64(double %197, double 1.000000e+01, double %202)
store double %203, double* %11
%204 = load i8*, i8** %4
%205 = getelementptr inbounds i8, i8* %204, i32 1
store i8* %205, i8** %4
br label %191
206: ; preds = %191
%207 = load i32, i32* %12
%208 = sitofp i32 %207 to double
%209 = load double, double* %11
%210 = fmul double %209, %208
store double %210, double* %11
%211 = load i32, i32* %6
%212 = sitofp i32 %211 to double
%213 = load double, double* %8
%214 = fmul double %212, %213
%215 = load double, double* %11
%216 = call i32 @pow(double 1.000000e+01, double %215)
%217 = sitofp i32 %216 to double
%218 = fmul double %214, %217
%219 = load double*, double** %5
store double %218, double* %219
store i32 1, i32* %3
br label %224
220: ; preds = %168
br label %221
221: ; preds = %220
%222 = load double, double* %8
%223 = load double*, double** %5
store double %222, double* %223
store i32 1, i32* %3
br label %224
224: ; preds = %221, %206, %155, %139, %52, %19, %15
%225 = load i32, i32* %3
ret i32 %225
}

LLVM IR (-O2):
define i32 @DoubleTryParse(i8* %0, double* writeonly %1) {
%3 = icmp eq double* %1, null
br i1 %3, label %134, label %4
4: ; preds = %2
%5 = icmp eq i8* %0, null
br i1 %5, label %131, label %6
6: ; preds = %4, %6
%7 = phi i8* [ %11, %6 ], [ %0, %4 ]
%8 = load i8, i8* %7
%9 = tail call i64 @isspace(i8 signext %8)
%10 = icmp eq i64 %9, 0
%11 = getelementptr inbounds i8, i8* %7, i64 1
br i1 %10, label %12, label %6
12: ; preds = %6
%13 = load i8, i8* %7
switch i8 %13, label %16 [
i8 45, label %14
i8 43, label %15
]
14: ; preds = %12
br label %16
15: ; preds = %12
br label %16
16: ; preds = %12, %15, %14
%17 = phi i8* [ %11, %14 ], [ %11, %15 ], [ %7, %12 ]
%18 = phi double [ -1.000000e+00, %14 ], [ 1.000000e+00, %15 ], [ 1.000000e+00, %12 ]
%19 = load i8, i8* %17
%20 = tail call i64 @isdigit(i8 signext %19)
%21 = icmp eq i64 %20, 0
br i1 %21, label %134, label %22
22: ; preds = %16
%23 = load i8, i8* %17
%24 = tail call i64 @isdigit(i8 signext %23)
%25 = icmp eq i64 %24, 0
br i1 %25, label %38, label %26
26: ; preds = %22, %26
%27 = phi double [ %33, %26 ], [ 0.000000e+00, %22 ]
%28 = phi i8* [ %34, %26 ], [ %17, %22 ]
%29 = load i8, i8* %28
%30 = sext i8 %29 to i32
%31 = add nsw i32 %30, -48
%32 = sitofp i32 %31 to double
%33 = tail call double @llvm.fmuladd.f64(double %27, double 1.000000e+01, double %32)
%34 = getelementptr inbounds i8, i8* %28, i64 1
%35 = load i8, i8* %34
%36 = tail call i64 @isdigit(i8 signext %35)
%37 = icmp eq i64 %36, 0
br i1 %37, label %38, label %26
38: ; preds = %26, %22
%39 = phi i8* [ %17, %22 ], [ %34, %26 ]
%40 = phi double [ 0.000000e+00, %22 ], [ %33, %26 ]
%41 = load i8, i8* %39
switch i8 %41, label %131 [
i8 46, label %42
i8 69, label %103
i8 101, label %103
]
42: ; preds = %38
%43 = getelementptr inbounds i8, i8* %39, i64 1
%44 = load i8, i8* %43
%45 = tail call i64 @isdigit(i8 signext %44)
%46 = icmp eq i64 %45, 0
br i1 %46, label %61, label %47
47: ; preds = %42, %47
%48 = phi i8* [ %57, %47 ], [ %43, %42 ]
%49 = phi double [ %55, %47 ], [ %40, %42 ]
%50 = phi double [ %56, %47 ], [ 1.000000e+00, %42 ]
%51 = load i8, i8* %48
%52 = sext i8 %51 to i32
%53 = add nsw i32 %52, -48
%54 = sitofp i32 %53 to double
%55 = tail call double @llvm.fmuladd.f64(double %49, double 1.000000e+01, double %54)
%56 = fmul double %50, 1.000000e+01
%57 = getelementptr inbounds i8, i8* %48, i64 1
%58 = load i8, i8* %57
%59 = tail call i64 @isdigit(i8 signext %58)
%60 = icmp eq i64 %59, 0
br i1 %60, label %61, label %47
61: ; preds = %47, %42
%62 = phi i8* [ %39, %42 ], [ %48, %47 ]
%63 = phi double [ 1.000000e+00, %42 ], [ %56, %47 ]
%64 = phi double [ %40, %42 ], [ %55, %47 ]
%65 = phi i8* [ %43, %42 ], [ %57, %47 ]
%66 = load i8, i8* %65
switch i8 %66, label %100 [
i8 69, label %67
i8 101, label %67
]
67: ; preds = %61, %61
%68 = getelementptr inbounds i8, i8* %62, i64 2
%69 = load i8, i8* %68
switch i8 %69, label %74 [
i8 45, label %70
i8 43, label %72
]
70: ; preds = %67
%71 = getelementptr inbounds i8, i8* %62, i64 3
br label %74
72: ; preds = %67
%73 = getelementptr inbounds i8, i8* %62, i64 3
br label %74
74: ; preds = %67, %72, %70
%75 = phi i8* [ %71, %70 ], [ %73, %72 ], [ %68, %67 ]
%76 = phi double [ -1.000000e+00, %70 ], [ 1.000000e+00, %72 ], [ 1.000000e+00, %67 ]
%77 = load i8, i8* %75
%78 = tail call i64 @isdigit(i8 signext %77)
%79 = icmp eq i64 %78, 0
br i1 %79, label %92, label %80
80: ; preds = %74, %80
%81 = phi double [ %87, %80 ], [ 0.000000e+00, %74 ]
%82 = phi i8* [ %88, %80 ], [ %75, %74 ]
%83 = load i8, i8* %82
%84 = sext i8 %83 to i32
%85 = add nsw i32 %84, -48
%86 = sitofp i32 %85 to double
%87 = tail call double @llvm.fmuladd.f64(double %81, double 1.000000e+01, double %86)
%88 = getelementptr inbounds i8, i8* %82, i64 1
%89 = load i8, i8* %88
%90 = tail call i64 @isdigit(i8 signext %89)
%91 = icmp eq i64 %90, 0
br i1 %91, label %92, label %80
92: ; preds = %80, %74
%93 = phi double [ 0.000000e+00, %74 ], [ %87, %80 ]
%94 = fmul double %76, %93
%95 = fmul double %18, %64
%96 = fdiv double %95, %63
%97 = tail call i32 @pow(double 1.000000e+01, double %94)
%98 = sitofp i32 %97 to double
%99 = fmul double %96, %98
br label %131
100: ; preds = %61
%101 = fmul double %18, %64
%102 = fdiv double %101, %63
br label %131
103: ; preds = %38, %38
%104 = getelementptr inbounds i8, i8* %39, i64 1
%105 = load i8, i8* %104
%106 = icmp eq i8 %105, 45
%107 = getelementptr inbounds i8, i8* %39, i64 2
%108 = load i8, i8* %107
%109 = tail call i64 @isdigit(i8 signext %108)
%110 = icmp eq i64 %109, 0
br i1 %110, label %123, label %111
111: ; preds = %103, %111
%112 = phi double [ %118, %111 ], [ 0.000000e+00, %103 ]
%113 = phi i8* [ %119, %111 ], [ %107, %103 ]
%114 = load i8, i8* %113
%115 = sext i8 %114 to i32
%116 = add nsw i32 %115, -48
%117 = sitofp i32 %116 to double
%118 = tail call double @llvm.fmuladd.f64(double %112, double 1.000000e+01, double %117)
%119 = getelementptr inbounds i8, i8* %113, i64 1
%120 = load i8, i8* %119
%121 = tail call i64 @isdigit(i8 signext %120)
%122 = icmp eq i64 %121, 0
br i1 %122, label %123, label %111
123: ; preds = %111, %103
%124 = phi double [ 0.000000e+00, %103 ], [ %118, %111 ]
%125 = fneg double %124
%126 = select i1 %106, double %125, double %124
%127 = fmul double %18, %40
%128 = tail call i32 @pow(double 1.000000e+01, double %126)
%129 = sitofp i32 %128 to double
%130 = fmul double %127, %129
br label %131
131: ; preds = %38, %4, %123, %100, %92
%132 = phi double [ %99, %92 ], [ %102, %100 ], [ %130, %123 ], [ 0.000000e+00, %4 ], [ %40, %38 ]
%133 = phi i32 [ 1, %92 ], [ 1, %100 ], [ 1, %123 ], [ 0, %4 ], [ 1, %38 ]
store double %132, double* %1
br label %134
134: ; preds = %131, %16, %2
%135 = phi i32 [ 0, %2 ], [ 0, %16 ], [ %133, %131 ]
ret i32 %135
}