#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 pow(double, double);
int /*<<< orphan*/ strasign(char *, char *, int, int);
int strlen(char *);
int strlocate(char *, char, int);
double str2double(char *str) {
  int i, n, m;
  double value = 0.0, value1 = 0.0, value2 = 0.0, sgn = 1.0;
  char tmp1[100], tmp2[100], tmp[100], str_tmp[100];
  strasign(str_tmp, str, 0, strlen(str));
  if (str_tmp[0] == '-' || str_tmp[0] == '+') {
    if (str_tmp[0] == '-') {
      sgn = -1.0;
    }
    strasign(tmp, str_tmp, 1, strlen(str_tmp));
    strasign(str_tmp, tmp, 0, strlen(tmp));
  }
  if (strlocate(str_tmp, 'e', 1) != -1 || strlocate(str_tmp, 'E', 1) != -1) {
    n = strlocate(str_tmp, 'e', 1);
    if (n == -1) {
      n = strlocate(str_tmp, 'E', 1);
    }
    strasign(tmp2, str_tmp, n + 1, strlen(str));
    strasign(tmp1, str_tmp, 0, n - 1);
  } else {
    strasign(tmp1, str_tmp, 0, strlen(str_tmp));
  }
  n = strlocate(tmp1, '.', 1);
  if (n != -1) {
    strasign(tmp, tmp1, 0, n - 1);
    m = strlen(tmp);
    for (i = 0; i < m; i++) {
      value1 =
          value1 + (double)((int)tmp[i] - 48) * pow(10.0, (double)(m - i - 1));
    }
    m = strlen(tmp1);
    strasign(tmp, tmp1, n + 1, m);
    m = strlen(tmp);
    for (i = 0; i < m; i++) {
      value2 =
          value2 + (double)((int)tmp[i] - 48) * pow(10.0, (double)(-i - 1));
    }
    value = value1 + value2;
  } else {
    m = strlen(tmp1);
    for (i = 0; i < m; i++) {
      value =
          value + (double)((int)tmp1[i] - 48) * pow(10.0, (double)(m - i - 1));
    }
  }
  if (strlocate(str_tmp, 'e', 1) != -1 || strlocate(str_tmp, 'E', 1) != -1) {
    value = value * pow(10.0, str2double(tmp2));
  }
  return (value * sgn);
}


x86 assembly (clang, -O0):
<str2double>:
push   %rbp
mov    %rsp,%rbp
sub    $0x280,%rsp
mov    %rdi,-0x8(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x20(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x28(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  0xe81(%rip),%xmm0
movsd  %xmm0,-0x38(%rbp)
lea    -0x1f0(%rbp),%rax
mov    %rax,-0x200(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x1f8(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x200(%rbp),%rdi
mov    -0x1f8(%rbp),%rsi
mov    %eax,%ecx
xor    %edx,%edx
call   1050 <strasign@plt>
movsbl -0x1f0(%rbp),%eax
cmp    $0x2d,%eax
je     11dd <str2double+0x8d>
movsbl -0x1f0(%rbp),%eax
cmp    $0x2b,%eax
jne    127b <str2double+0x12b>
movsbl -0x1f0(%rbp),%eax
cmp    $0x2d,%eax
jne    11fa <str2double+0xaa>
movsd  0xe13(%rip),%xmm0
movsd  %xmm0,-0x38(%rbp)
lea    -0x180(%rbp),%rax
mov    %rax,-0x220(%rbp)
lea    -0x1f0(%rbp),%rax
mov    %rax,-0x218(%rbp)
lea    -0x1f0(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x220(%rbp),%rdi
mov    -0x218(%rbp),%rsi
mov    %eax,%ecx
mov    $0x1,%edx
call   1050 <strasign@plt>
lea    -0x1f0(%rbp),%rax
mov    %rax,-0x210(%rbp)
lea    -0x180(%rbp),%rax
mov    %rax,-0x208(%rbp)
lea    -0x180(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x210(%rbp),%rdi
mov    -0x208(%rbp),%rsi
mov    %eax,%ecx
xor    %edx,%edx
call   1050 <strasign@plt>
lea    -0x1f0(%rbp),%rdi
mov    $0x65,%esi
mov    $0x1,%edx
call   1060 <strlocate@plt>
cmp    $0xffffffff,%eax
jne    12b9 <str2double+0x169>
lea    -0x1f0(%rbp),%rdi
mov    $0x45,%esi
mov    $0x1,%edx
call   1060 <strlocate@plt>
cmp    $0xffffffff,%eax
je     1361 <str2double+0x211>
lea    -0x1f0(%rbp),%rdi
mov    $0x65,%esi
mov    $0x1,%edx
call   1060 <strlocate@plt>
mov    %eax,-0x10(%rbp)
cmpl   $0xffffffff,-0x10(%rbp)
jne    12f5 <str2double+0x1a5>
lea    -0x1f0(%rbp),%rdi
mov    $0x45,%esi
mov    $0x1,%edx
call   1060 <strlocate@plt>
mov    %eax,-0x10(%rbp)
lea    -0x110(%rbp),%rax
mov    %rax,-0x238(%rbp)
lea    -0x1f0(%rbp),%rax
mov    %rax,-0x230(%rbp)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x224(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x238(%rbp),%rdi
mov    -0x230(%rbp),%rsi
mov    -0x224(%rbp),%edx
mov    %eax,%ecx
call   1050 <strasign@plt>
lea    -0xa0(%rbp),%rdi
lea    -0x1f0(%rbp),%rsi
mov    -0x10(%rbp),%ecx
sub    $0x1,%ecx
xor    %edx,%edx
call   1050 <strasign@plt>
jmp    13a0 <str2double+0x250>
lea    -0xa0(%rbp),%rax
mov    %rax,-0x248(%rbp)
lea    -0x1f0(%rbp),%rax
mov    %rax,-0x240(%rbp)
lea    -0x1f0(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x248(%rbp),%rdi
mov    -0x240(%rbp),%rsi
mov    %eax,%ecx
xor    %edx,%edx
call   1050 <strasign@plt>
lea    -0xa0(%rbp),%rdi
mov    $0x2e,%esi
mov    $0x1,%edx
call   1060 <strlocate@plt>
mov    %eax,-0x10(%rbp)
cmpl   $0xffffffff,-0x10(%rbp)
je     1540 <str2double+0x3f0>
lea    -0x180(%rbp),%rdi
lea    -0xa0(%rbp),%rsi
mov    -0x10(%rbp),%ecx
sub    $0x1,%ecx
xor    %edx,%edx
call   1050 <strasign@plt>
lea    -0x180(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,-0x14(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1470 <str2double+0x320>
movsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x258(%rbp)
ff
movslq -0xc(%rbp),%rax
movsbl -0x180(%rbp,%rax,1),%eax
ff
sub    $0x30,%eax
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x250(%rbp)
ff
mov    -0x14(%rbp),%eax
sub    -0xc(%rbp),%eax
sub    $0x1,%eax
cvtsi2sd %eax,%xmm1
movsd  0xbd3(%rip),%xmm0
call   1070 <pow@plt>
movsd  -0x258(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0x250(%rbp),%xmm0
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    13f4 <str2double+0x2a4>
lea    -0xa0(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,-0x14(%rbp)
lea    -0x180(%rbp),%rdi
lea    -0xa0(%rbp),%rsi
mov    -0x10(%rbp),%edx
add    $0x1,%edx
mov    -0x14(%rbp),%ecx
call   1050 <strasign@plt>
lea    -0x180(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,-0x14(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    152c <str2double+0x3dc>
movsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x268(%rbp)
ff
movslq -0xc(%rbp),%rax
movsbl -0x180(%rbp,%rax,1),%eax
ff
sub    $0x30,%eax
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x260(%rbp)
ff
xor    %eax,%eax
sub    -0xc(%rbp),%eax
sub    $0x1,%eax
cvtsi2sd %eax,%xmm1
movsd  0xb17(%rip),%xmm0
call   1070 <pow@plt>
movsd  -0x268(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0x260(%rbp),%xmm0
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    14b1 <str2double+0x361>
movsd  -0x28(%rbp),%xmm0
addsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
jmp    15d7 <str2double+0x487>
lea    -0xa0(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,-0x14(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    15d2 <str2double+0x482>
movsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x278(%rbp)
ff
movslq -0xc(%rbp),%rax
movsbl -0xa0(%rbp,%rax,1),%eax
ff
sub    $0x30,%eax
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x270(%rbp)
ff
mov    -0x14(%rbp),%eax
sub    -0xc(%rbp),%eax
sub    $0x1,%eax
cvtsi2sd %eax,%xmm1
movsd  0xa71(%rip),%xmm0
call   1070 <pow@plt>
movsd  -0x278(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0x270(%rbp),%xmm0
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1556 <str2double+0x406>
jmp    15d7 <str2double+0x487>
lea    -0x1f0(%rbp),%rdi
mov    $0x65,%esi
mov    $0x1,%edx
call   1060 <strlocate@plt>
cmp    $0xffffffff,%eax
jne    1615 <str2double+0x4c5>
lea    -0x1f0(%rbp),%rdi
mov    $0x45,%esi
mov    $0x1,%edx
call   1060 <strlocate@plt>
cmp    $0xffffffff,%eax
je     1652 <str2double+0x502>
movsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x280(%rbp)
ff
lea    -0x110(%rbp),%rdi
call   1030 <str2double@plt>
movaps %xmm0,%xmm1
movsd  0x9d7(%rip),%xmm0
call   1070 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x280(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
mulsd  -0x38(%rbp),%xmm0
add    $0x280,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<str2double>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x1d8,%rsp
mov    %rdi,%r14
call   1040 <strlen@plt>
lea    0x20(%rsp),%rdi
mov    %r14,%rsi
xor    %edx,%edx
mov    %eax,%ecx
call   1050 <strasign@plt>
movsd  0xe7e(%rip),%xmm0
mov    0x20(%rsp),%al
cmp    $0x2b,%al
movsd  %xmm0,0x18(%rsp)
je     11a2 <str2double+0x52>
cmp    $0x2d,%al
jne    11e0 <str2double+0x90>
movsd  0xe6c(%rip),%xmm0
movsd  %xmm0,0x18(%rsp)
lea    0x20(%rsp),%r15
mov    %r15,%rdi
call   1040 <strlen@plt>
lea    0x90(%rsp),%rbx
mov    %rbx,%rdi
mov    %r15,%rsi
mov    $0x1,%edx
mov    %eax,%ecx
call   1050 <strasign@plt>
mov    %rbx,%rdi
call   1040 <strlen@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
xor    %edx,%edx
mov    %eax,%ecx
call   1050 <strasign@plt>
lea    0x20(%rsp),%rdi
mov    $0x65,%esi
mov    $0x1,%edx
call   1060 <strlocate@plt>
cmp    $0xffffffff,%eax
jne    1216 <str2double+0xc6>
lea    0x20(%rsp),%rdi
mov    $0x45,%esi
mov    $0x1,%edx
call   1060 <strlocate@plt>
cmp    $0xffffffff,%eax
je     15e0 <str2double+0x490>
lea    0x20(%rsp),%rdi
mov    $0x65,%esi
mov    $0x1,%edx
call   1060 <strlocate@plt>
mov    %eax,%ebx
cmp    $0xffffffff,%eax
jne    1247 <str2double+0xf7>
lea    0x20(%rsp),%rdi
mov    $0x45,%esi
mov    $0x1,%edx
call   1060 <strlocate@plt>
mov    %eax,%ebx
lea    0x1(%rbx),%ebp
mov    %r14,%rdi
call   1040 <strlen@plt>
lea    0x170(%rsp),%rdi
lea    0x20(%rsp),%rsi
mov    %ebp,%edx
mov    %eax,%ecx
call   1050 <strasign@plt>
add    $0xffffffff,%ebx
lea    0x100(%rsp),%rbp
lea    0x20(%rsp),%rsi
mov    %rbp,%rdi
xor    %edx,%edx
mov    %ebx,%ecx
call   1050 <strasign@plt>
mov    %rbp,%rdi
mov    $0x2e,%esi
mov    $0x1,%edx
call   1060 <strlocate@plt>
cmp    $0xffffffff,%eax
je     12e6 <str2double+0x196>
mov    %eax,%r15d
lea    -0x1(%r15),%ecx
lea    0x90(%rsp),%rbp
lea    0x100(%rsp),%rsi
mov    %rbp,%rdi
xor    %edx,%edx
call   1050 <strasign@plt>
mov    %rbp,%rdi
call   1040 <strlen@plt>
xorpd  %xmm1,%xmm1
test   %eax,%eax
jle    140b <str2double+0x2bb>
mov    %eax,%r14d
mov    %eax,%r12d
cmp    $0x1,%eax
jne    1315 <str2double+0x1c5>
xorpd  %xmm1,%xmm1
xor    %ebp,%ebp
jmp    13bf <str2double+0x26f>
lea    0x100(%rsp),%rdi
call   1040 <strlen@plt>
test   %eax,%eax
jle    15f1 <str2double+0x4a1>
mov    %eax,%r15d
mov    %eax,%r14d
cmp    $0x1,%eax
jne    1607 <str2double+0x4b7>
xorpd  %xmm0,%xmm0
xor    %ebp,%ebp
jmp    16ab <str2double+0x55b>
mov    %r12d,%r13d
and    $0xfffffffe,%r13d
lea    -0x2(%r14),%ebx
xorpd  %xmm1,%xmm1
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
movsd  %xmm1,(%rsp)
movsbl 0x90(%rsp,%rbp,1),%eax
add    $0xffffffd0,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,0x8(%rsp)
lea    0x1(%rbx),%eax
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
movsd  0xcb1(%rip),%xmm0
call   1070 <pow@plt>
mulsd  0x8(%rsp),%xmm0
addsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
movsbl 0x91(%rsp,%rbp,1),%eax
add    $0xffffffd0,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,0x8(%rsp)
xorps  %xmm1,%xmm1
cvtsi2sd %ebx,%xmm1
movsd  0xc75(%rip),%xmm0
call   1070 <pow@plt>
movapd %xmm0,%xmm1
mulsd  0x8(%rsp),%xmm1
addsd  (%rsp),%xmm1
add    $0x2,%rbp
add    $0xfffffffe,%ebx
cmp    %rbp,%r13
jne    1330 <str2double+0x1e0>
test   $0x1,%r12b
je     140b <str2double+0x2bb>
movsbl 0x90(%rsp,%rbp,1),%eax
add    $0xffffffd0,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,0x8(%rsp)
not    %ebp
add    %ebp,%r14d
movsd  %xmm1,(%rsp)
xorps  %xmm1,%xmm1
cvtsi2sd %r14d,%xmm1
movsd  0xc19(%rip),%xmm0
call   1070 <pow@plt>
movsd  (%rsp),%xmm1
mulsd  0x8(%rsp),%xmm0
addsd  %xmm0,%xmm1
movsd  %xmm1,(%rsp)
lea    0x100(%rsp),%rbp
mov    %rbp,%rdi
call   1040 <strlen@plt>
add    $0x1,%r15d
lea    0x90(%rsp),%rbx
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    %r15d,%edx
mov    %eax,%ecx
call   1050 <strasign@plt>
mov    %rbx,%rdi
call   1040 <strlen@plt>
test   %eax,%eax
xorpd  %xmm1,%xmm1
jle    155d <str2double+0x40d>
mov    %eax,%r14d
cmp    $0x1,%eax
jne    1463 <str2double+0x313>
xorpd  %xmm1,%xmm1
xor    %ebp,%ebp
jmp    1513 <str2double+0x3c3>
mov    %r14d,%r15d
and    $0xfffffffe,%r15d
xorpd  %xmm1,%xmm1
mov    $0xfffffffe,%ebx
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nop
movsd  %xmm1,0x8(%rsp)
movsbl 0x90(%rsp,%rbp,1),%eax
add    $0xffffffd0,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,0x10(%rsp)
lea    0x1(%rbx),%eax
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
movsd  0xb60(%rip),%xmm0
call   1070 <pow@plt>
mulsd  0x10(%rsp),%xmm0
addsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
movsbl 0x91(%rsp,%rbp,1),%eax
add    $0xffffffd0,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,0x10(%rsp)
xorps  %xmm1,%xmm1
cvtsi2sd %ebx,%xmm1
movsd  0xb22(%rip),%xmm0
call   1070 <pow@plt>
movapd %xmm0,%xmm1
mulsd  0x10(%rsp),%xmm1
addsd  0x8(%rsp),%xmm1
add    $0x2,%rbp
add    $0xfffffffe,%ebx
cmp    %rbp,%r15
jne    1480 <str2double+0x330>
test   $0x1,%r14b
je     155d <str2double+0x40d>
movsbl 0x90(%rsp,%rbp,1),%eax
add    $0xffffffd0,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,0x10(%rsp)
not    %ebp
movsd  %xmm1,0x8(%rsp)
xorps  %xmm1,%xmm1
cvtsi2sd %ebp,%xmm1
movsd  0xac8(%rip),%xmm0
call   1070 <pow@plt>
movsd  0x8(%rsp),%xmm1
mulsd  0x10(%rsp),%xmm0
addsd  %xmm0,%xmm1
movsd  (%rsp),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rsp)
lea    0x20(%rsp),%rdi
mov    $0x65,%esi
mov    $0x1,%edx
call   1060 <strlocate@plt>
cmp    $0xffffffff,%eax
jne    159d <str2double+0x44d>
lea    0x20(%rsp),%rdi
mov    $0x45,%esi
mov    $0x1,%edx
call   1060 <strlocate@plt>
cmp    $0xffffffff,%eax
je     15fa <str2double+0x4aa>
lea    0x170(%rsp),%rdi
call   1030 <str2double@plt>
movapd %xmm0,%xmm1
movsd  0xa5a(%rip),%xmm0
call   1070 <pow@plt>
movsd  (%rsp),%xmm1
mulsd  %xmm0,%xmm1
movsd  0x18(%rsp),%xmm0
mulsd  %xmm1,%xmm0
add    $0x1d8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0x20(%rsp),%rdi
call   1040 <strlen@plt>
mov    %eax,%ebx
jmp    126b <str2double+0x11b>
xorpd  %xmm0,%xmm0
jmp    1566 <str2double+0x416>
movsd  0x18(%rsp),%xmm0
movsd  (%rsp),%xmm1
jmp    15ca <str2double+0x47a>
mov    %r14d,%r12d
and    $0xfffffffe,%r12d
lea    -0x2(%r15),%ebx
xorpd  %xmm0,%xmm0
xor    %ebp,%ebp
nopl   0x0(%rax,%rax,1)
movsd  %xmm0,(%rsp)
movsbl 0x100(%rsp,%rbp,1),%eax
add    $0xffffffd0,%eax
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
movsd  %xmm1,0x8(%rsp)
lea    0x1(%rbx),%eax
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
movsd  0x9c1(%rip),%xmm0
call   1070 <pow@plt>
mulsd  0x8(%rsp),%xmm0
addsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
movsbl 0x101(%rsp,%rbp,1),%eax
add    $0xffffffd0,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,0x8(%rsp)
xorps  %xmm1,%xmm1
cvtsi2sd %ebx,%xmm1
movsd  0x985(%rip),%xmm0
call   1070 <pow@plt>
mulsd  0x8(%rsp),%xmm0
addsd  (%rsp),%xmm0
add    $0x2,%rbp
add    $0xfffffffe,%ebx
cmp    %rbp,%r12
jne    1620 <str2double+0x4d0>
movsd  %xmm0,(%rsp)
test   $0x1,%r14b
je     156b <str2double+0x41b>
movsbl 0x100(%rsp,%rbp,1),%eax
add    $0xffffffd0,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,0x8(%rsp)
not    %ebp
add    %ebp,%r15d
xorps  %xmm1,%xmm1
cvtsi2sd %r15d,%xmm1
movsd  0x929(%rip),%xmm0
call   1070 <pow@plt>
mulsd  0x8(%rsp),%xmm0
movsd  (%rsp),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,(%rsp)
jmp    156b <str2double+0x41b>

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

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