#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 */
int _vtodb(double *, double);
int /*<<< orphan*/ strcasecmp(char *, char *);
double strtod(char *, char **);
int amplstr(char *str, double *ampl) {
  int result = 0;
  char *end;
  double a = strtod(str, &end);
  if (!*end)
    result = -1;
  else if (!strcasecmp(end, "dbm"))
    ;
  else if (!strcasecmp(end, "dbf"))
    a -= 120.0;
  else if (!strcasecmp(end, "dbv"))
    a += 13.0;
  else if (!strcasecmp(end, "dbmv"))
    a -= 47.0;
  else if (!strcasecmp(end, "dbuv"))
    a -= 107.0;
  else if (!strcasecmp(end, "dbemfv"))
    a += 7.0;
  else if (!strcasecmp(end, "dbemfmv"))
    a -= 53.0;
  else if (!strcasecmp(end, "dbemfuv"))
    a -= 113.0;
  else if (!strcasecmp(end, "v"))
    result = _vtodb(&a, 13.0);
  else if (!strcasecmp(end, "mv"))
    result = _vtodb(&a, -47.0);
  else if (!strcasecmp(end, "uv"))
    result = _vtodb(&a, -107.0);
  else if (!strcasecmp(end, "emfv"))
    result = _vtodb(&a, 7.0);
  else if (!strcasecmp(end, "emfmv"))
    result = _vtodb(&a, -53.0);
  else if (!strcasecmp(end, "emfmuv"))
    result = _vtodb(&a, -113.0);
  else
    result = -1;
  if (result == 0 && ampl != NULL)
    *ampl = a;
  return result;
}


x86 assembly (clang, -O0):
<amplstr>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x8(%rbp),%rdi
lea    -0x20(%rbp),%rsi
call   1040 <strtod@plt>
movsd  %xmm0,-0x28(%rbp)
mov    -0x20(%rbp),%rax
cmpb   $0x0,(%rax)
jne    1172 <amplstr+0x42>
movl   $0xffffffff,-0x14(%rbp)
jmp    146d <amplstr+0x33d>
mov    -0x20(%rbp),%rdi
lea    0xedb(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%eax
jne    1190 <amplstr+0x60>
jmp    1468 <amplstr+0x338>
mov    -0x20(%rbp),%rdi
lea    0xec1(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%eax
jne    11c4 <amplstr+0x94>
movsd  -0x28(%rbp),%xmm0
movsd  0xe4a(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
jmp    1463 <amplstr+0x333>
mov    -0x20(%rbp),%rdi
lea    0xe91(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%eax
jne    11f4 <amplstr+0xc4>
movsd  0xe23(%rip),%xmm0
addsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
jmp    145e <amplstr+0x32e>
mov    -0x20(%rbp),%rdi
lea    0xe65(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%eax
jne    1228 <amplstr+0xf8>
movsd  -0x28(%rbp),%xmm0
movsd  0xdf6(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
jmp    1459 <amplstr+0x329>
mov    -0x20(%rbp),%rdi
lea    0xe36(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%eax
jne    125c <amplstr+0x12c>
movsd  -0x28(%rbp),%xmm0
movsd  0xdca(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
jmp    1454 <amplstr+0x324>
mov    -0x20(%rbp),%rdi
lea    0xe07(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%eax
jne    128c <amplstr+0x15c>
movsd  0xda3(%rip),%xmm0
addsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
jmp    144f <amplstr+0x31f>
mov    -0x20(%rbp),%rdi
lea    0xdde(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%eax
jne    12c0 <amplstr+0x190>
movsd  -0x28(%rbp),%xmm0
movsd  0xd76(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
jmp    144a <amplstr+0x31a>
mov    -0x20(%rbp),%rdi
lea    0xdb2(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%eax
jne    12f4 <amplstr+0x1c4>
movsd  -0x28(%rbp),%xmm0
movsd  0xd4a(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
jmp    1445 <amplstr+0x315>
mov    -0x20(%rbp),%rdi
lea    0xd63(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%eax
jne    1326 <amplstr+0x1f6>
lea    -0x28(%rbp),%rdi
movsd  0xcef(%rip),%xmm0
call   1050 <_vtodb@plt>
mov    %eax,-0x14(%rbp)
jmp    1440 <amplstr+0x310>
mov    -0x20(%rbp),%rdi
lea    0xd35(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%eax
jne    1358 <amplstr+0x228>
lea    -0x28(%rbp),%rdi
movsd  0xced(%rip),%xmm0
call   1050 <_vtodb@plt>
mov    %eax,-0x14(%rbp)
jmp    143b <amplstr+0x30b>
mov    -0x20(%rbp),%rdi
lea    0xd08(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%eax
jne    138a <amplstr+0x25a>
lea    -0x28(%rbp),%rdi
movsd  0xcc3(%rip),%xmm0
call   1050 <_vtodb@plt>
mov    %eax,-0x14(%rbp)
jmp    1436 <amplstr+0x306>
mov    -0x20(%rbp),%rdi
lea    0xcdb(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%eax
jne    13bc <amplstr+0x28c>
lea    -0x28(%rbp),%rdi
movsd  0xc71(%rip),%xmm0
call   1050 <_vtodb@plt>
mov    %eax,-0x14(%rbp)
jmp    1431 <amplstr+0x301>
mov    -0x20(%rbp),%rdi
lea    0xcb0(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%eax
jne    13ee <amplstr+0x2be>
lea    -0x28(%rbp),%rdi
movsd  0xc67(%rip),%xmm0
call   1050 <_vtodb@plt>
mov    %eax,-0x14(%rbp)
jmp    142c <amplstr+0x2fc>
mov    -0x20(%rbp),%rdi
lea    0xc8c(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%eax
jne    1420 <amplstr+0x2f0>
lea    -0x28(%rbp),%rdi
movsd  0xc3d(%rip),%xmm0
call   1050 <_vtodb@plt>
mov    %eax,-0x14(%rbp)
jmp    1427 <amplstr+0x2f7>
movl   $0xffffffff,-0x14(%rbp)
jmp    142c <amplstr+0x2fc>
jmp    1431 <amplstr+0x301>
jmp    1436 <amplstr+0x306>
jmp    143b <amplstr+0x30b>
jmp    1440 <amplstr+0x310>
jmp    1445 <amplstr+0x315>
jmp    144a <amplstr+0x31a>
jmp    144f <amplstr+0x31f>
jmp    1454 <amplstr+0x324>
jmp    1459 <amplstr+0x329>
jmp    145e <amplstr+0x32e>
jmp    1463 <amplstr+0x333>
jmp    1468 <amplstr+0x338>
jmp    146d <amplstr+0x33d>
cmpl   $0x0,-0x14(%rbp)
jne    148f <amplstr+0x35f>
cmpq   $0x0,-0x10(%rbp)
je     148f <amplstr+0x35f>
movsd  -0x28(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x14(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<amplstr>:
push   %rbp
push   %r14
push   %rbx
sub    $0x20,%rsp
mov    %rsi,%r14
lea    0x18(%rsp),%rsi
call   1040 <strtod@plt>
movsd  %xmm0,0x8(%rsp)
mov    0x18(%rsp),%rbx
mov    $0xffffffff,%ebp
cmpb   $0x0,(%rbx)
je     1344 <amplstr+0x214>
movsd  %xmm0,0x10(%rsp)
lea    0xecd(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcasecmp@plt>
test   %eax,%eax
je     132c <amplstr+0x1fc>
lea    0xeba(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcasecmp@plt>
test   %eax,%eax
je     12b8 <amplstr+0x188>
lea    0xea7(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcasecmp@plt>
test   %eax,%eax
je     12c8 <amplstr+0x198>
lea    0xe94(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcasecmp@plt>
test   %eax,%eax
je     12d8 <amplstr+0x1a8>
lea    0xe82(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcasecmp@plt>
test   %eax,%eax
je     12e8 <amplstr+0x1b8>
lea    0xe70(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcasecmp@plt>
test   %eax,%eax
je     12f8 <amplstr+0x1c8>
lea    0xe60(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcasecmp@plt>
test   %eax,%eax
je     1308 <amplstr+0x1d8>
lea    0xe51(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcasecmp@plt>
test   %eax,%eax
je     1318 <amplstr+0x1e8>
lea    0xe1f(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcasecmp@plt>
test   %eax,%eax
je     134f <amplstr+0x21f>
lea    0xe0c(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcasecmp@plt>
test   %eax,%eax
je     135e <amplstr+0x22e>
lea    0xdfa(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcasecmp@plt>
test   %eax,%eax
je     136d <amplstr+0x23d>
lea    0xde8(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcasecmp@plt>
test   %eax,%eax
je     137c <amplstr+0x24c>
lea    0xdd8(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcasecmp@plt>
test   %eax,%eax
je     138b <amplstr+0x25b>
lea    0xdcf(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcasecmp@plt>
test   %eax,%eax
jne    1344 <amplstr+0x214>
lea    0x8(%rsp),%rdi
movsd  0xd4d(%rip),%xmm0
jmp    1398 <amplstr+0x268>
movsd  0x10(%rsp),%xmm0
addsd  0xd6a(%rip),%xmm0
jmp    1326 <amplstr+0x1f6>
movsd  0x10(%rsp),%xmm0
addsd  0xd52(%rip),%xmm0
jmp    1326 <amplstr+0x1f6>
movsd  0x10(%rsp),%xmm0
addsd  0xd3a(%rip),%xmm0
jmp    1326 <amplstr+0x1f6>
movsd  0x10(%rsp),%xmm0
addsd  0xd22(%rip),%xmm0
jmp    1326 <amplstr+0x1f6>
movsd  0x10(%rsp),%xmm0
addsd  0xd0a(%rip),%xmm0
jmp    1326 <amplstr+0x1f6>
movsd  0x10(%rsp),%xmm0
addsd  0xcf2(%rip),%xmm0
jmp    1326 <amplstr+0x1f6>
movsd  0x10(%rsp),%xmm0
addsd  0xcda(%rip),%xmm0
movsd  %xmm0,0x8(%rsp)
xor    %ebp,%ebp
test   %r14,%r14
je     1344 <amplstr+0x214>
test   %ebp,%ebp
jne    1344 <amplstr+0x214>
movsd  0x8(%rsp),%xmm0
movsd  %xmm0,(%r14)
xor    %ebp,%ebp
mov    %ebp,%eax
add    $0x20,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret
lea    0x8(%rsp),%rdi
movsd  0xccc(%rip),%xmm0
jmp    1398 <amplstr+0x268>
lea    0x8(%rsp),%rdi
movsd  0xcb5(%rip),%xmm0
jmp    1398 <amplstr+0x268>
lea    0x8(%rsp),%rdi
movsd  0xc9e(%rip),%xmm0
jmp    1398 <amplstr+0x268>
lea    0x8(%rsp),%rdi
movsd  0xc87(%rip),%xmm0
jmp    1398 <amplstr+0x268>
lea    0x8(%rsp),%rdi
movsd  0xc70(%rip),%xmm0
call   1050 <_vtodb@plt>
mov    %eax,%ebp
test   %r14,%r14
jne    1333 <amplstr+0x203>
jmp    1344 <amplstr+0x214>

LLVM IR (-O0):
@.str = [4 x i8] c"dbm\00"
@.str.1 = [4 x i8] c"dbf\00"
@.str.2 = [4 x i8] c"dbv\00"
@.str.3 = [5 x i8] c"dbmv\00"
@.str.4 = [5 x i8] c"dbuv\00"
@.str.5 = [7 x i8] c"dbemfv\00"
@.str.6 = [8 x i8] c"dbemfmv\00"
@.str.7 = [8 x i8] c"dbemfuv\00"
@.str.8 = [2 x i8] c"v\00"
@.str.9 = [3 x i8] c"mv\00"
@.str.10 = [3 x i8] c"uv\00"
@.str.11 = [5 x i8] c"emfv\00"
@.str.12 = [6 x i8] c"emfmv\00"
@.str.13 = [7 x i8] c"emfmuv\00"
define i32 @amplstr(i8* %0, double* %1) {
%3 = alloca i8*
%4 = alloca double*
%5 = alloca i32
%6 = alloca i8*
%7 = alloca double
store i8* %0, i8** %3
store double* %1, double** %4
store i32 0, i32* %5
%8 = load i8*, i8** %3
%9 = call double @strtod(i8* %8, i8** %6)
store double %9, double* %7
%10 = load i8*, i8** %6
%11 = load i8, i8* %10
%12 = icmp ne i8 %11, 0
br i1 %12, label %14, label %13
13: ; preds = %2
store i32 -1, i32* %5
br label %119
14: ; preds = %2
%15 = load i8*, i8** %6
%16 = call i32 @strcasecmp(i8* %15, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%17 = icmp ne i32 %16, 0
br i1 %17, label %19, label %18
18: ; preds = %14
br label %118
19: ; preds = %14
%20 = load i8*, i8** %6
%21 = call i32 @strcasecmp(i8* %20, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%22 = icmp ne i32 %21, 0
br i1 %22, label %26, label %23
23: ; preds = %19
%24 = load double, double* %7
%25 = fsub double %24, 1.200000e+02
store double %25, double* %7
br label %117
26: ; preds = %19
%27 = load i8*, i8** %6
%28 = call i32 @strcasecmp(i8* %27, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%29 = icmp ne i32 %28, 0
br i1 %29, label %33, label %30
30: ; preds = %26
%31 = load double, double* %7
%32 = fadd double %31, 1.300000e+01
store double %32, double* %7
br label %116
33: ; preds = %26
%34 = load i8*, i8** %6
%35 = call i32 @strcasecmp(i8* %34, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%36 = icmp ne i32 %35, 0
br i1 %36, label %40, label %37
37: ; preds = %33
%38 = load double, double* %7
%39 = fsub double %38, 4.700000e+01
store double %39, double* %7
br label %115
40: ; preds = %33
%41 = load i8*, i8** %6
%42 = call i32 @strcasecmp(i8* %41, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%43 = icmp ne i32 %42, 0
br i1 %43, label %47, label %44
44: ; preds = %40
%45 = load double, double* %7
%46 = fsub double %45, 1.070000e+02
store double %46, double* %7
br label %114
47: ; preds = %40
%48 = load i8*, i8** %6
%49 = call i32 @strcasecmp(i8* %48, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
%50 = icmp ne i32 %49, 0
br i1 %50, label %54, label %51
51: ; preds = %47
%52 = load double, double* %7
%53 = fadd double %52, 7.000000e+00
store double %53, double* %7
br label %113
54: ; preds = %47
%55 = load i8*, i8** %6
%56 = call i32 @strcasecmp(i8* %55, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0))
%57 = icmp ne i32 %56, 0
br i1 %57, label %61, label %58
58: ; preds = %54
%59 = load double, double* %7
%60 = fsub double %59, 5.300000e+01
store double %60, double* %7
br label %112
61: ; preds = %54
%62 = load i8*, i8** %6
%63 = call i32 @strcasecmp(i8* %62, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0))
%64 = icmp ne i32 %63, 0
br i1 %64, label %68, label %65
65: ; preds = %61
%66 = load double, double* %7
%67 = fsub double %66, 1.130000e+02
store double %67, double* %7
br label %111
68: ; preds = %61
%69 = load i8*, i8** %6
%70 = call i32 @strcasecmp(i8* %69, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
%71 = icmp ne i32 %70, 0
br i1 %71, label %74, label %72
72: ; preds = %68
%73 = call i32 @_vtodb(double* %7, double 1.300000e+01)
store i32 %73, i32* %5
br label %110
74: ; preds = %68
%75 = load i8*, i8** %6
%76 = call i32 @strcasecmp(i8* %75, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
%77 = icmp ne i32 %76, 0
br i1 %77, label %80, label %78
78: ; preds = %74
%79 = call i32 @_vtodb(double* %7, double -4.700000e+01)
store i32 %79, i32* %5
br label %109
80: ; preds = %74
%81 = load i8*, i8** %6
%82 = call i32 @strcasecmp(i8* %81, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0))
%83 = icmp ne i32 %82, 0
br i1 %83, label %86, label %84
84: ; preds = %80
%85 = call i32 @_vtodb(double* %7, double -1.070000e+02)
store i32 %85, i32* %5
br label %108
86: ; preds = %80
%87 = load i8*, i8** %6
%88 = call i32 @strcasecmp(i8* %87, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0))
%89 = icmp ne i32 %88, 0
br i1 %89, label %92, label %90
90: ; preds = %86
%91 = call i32 @_vtodb(double* %7, double 7.000000e+00)
store i32 %91, i32* %5
br label %107
92: ; preds = %86
%93 = load i8*, i8** %6
%94 = call i32 @strcasecmp(i8* %93, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0))
%95 = icmp ne i32 %94, 0
br i1 %95, label %98, label %96
96: ; preds = %92
%97 = call i32 @_vtodb(double* %7, double -5.300000e+01)
store i32 %97, i32* %5
br label %106
98: ; preds = %92
%99 = load i8*, i8** %6
%100 = call i32 @strcasecmp(i8* %99, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.13, i64 0, i64 0))
%101 = icmp ne i32 %100, 0
br i1 %101, label %104, label %102
102: ; preds = %98
%103 = call i32 @_vtodb(double* %7, double -1.130000e+02)
store i32 %103, i32* %5
br label %105
104: ; preds = %98
store i32 -1, i32* %5
br label %105
105: ; preds = %104, %102
br label %106
106: ; preds = %105, %96
br label %107
107: ; preds = %106, %90
br label %108
108: ; preds = %107, %84
br label %109
109: ; preds = %108, %78
br label %110
110: ; preds = %109, %72
br label %111
111: ; preds = %110, %65
br label %112
112: ; preds = %111, %58
br label %113
113: ; preds = %112, %51
br label %114
114: ; preds = %113, %44
br label %115
115: ; preds = %114, %37
br label %116
116: ; preds = %115, %30
br label %117
117: ; preds = %116, %23
br label %118
118: ; preds = %117, %18
br label %119
119: ; preds = %118, %13
%120 = load i32, i32* %5
%121 = icmp eq i32 %120, 0
br i1 %121, label %122, label %128
122: ; preds = %119
%123 = load double*, double** %4
%124 = icmp ne double* %123, null
br i1 %124, label %125, label %128
125: ; preds = %122
%126 = load double, double* %7
%127 = load double*, double** %4
store double %126, double* %127
br label %128
128: ; preds = %125, %122, %119
%129 = load i32, i32* %5
ret i32 %129
}

LLVM IR (-O2):
@.str = [4 x i8] c"dbm\00"
@.str.1 = [4 x i8] c"dbf\00"
@.str.2 = [4 x i8] c"dbv\00"
@.str.3 = [5 x i8] c"dbmv\00"
@.str.4 = [5 x i8] c"dbuv\00"
@.str.5 = [7 x i8] c"dbemfv\00"
@.str.6 = [8 x i8] c"dbemfmv\00"
@.str.7 = [8 x i8] c"dbemfuv\00"
@.str.8 = [2 x i8] c"v\00"
@.str.9 = [3 x i8] c"mv\00"
@.str.10 = [3 x i8] c"uv\00"
@.str.11 = [5 x i8] c"emfv\00"
@.str.12 = [6 x i8] c"emfmv\00"
@.str.13 = [7 x i8] c"emfmuv\00"
define i32 @amplstr(i8* %0, double* writeonly %1) {
%3 = alloca i8*
%4 = alloca double
%5 = bitcast i8** %3 to i8*
%6 = bitcast double* %4 to i8*
%7 = call double @strtod(i8* %0, i8** %3)
store double %7, double* %4
%8 = load i8*, i8** %3
%9 = load i8, i8* %8
%10 = icmp eq i8 %9, 0
br i1 %10, label %86, label %11
11: ; preds = %2
%12 = tail call i32 @strcasecmp(i8* %8, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%13 = icmp eq i32 %12, 0
br i1 %13, label %79, label %14
14: ; preds = %11
%15 = tail call i32 @strcasecmp(i8* %8, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%16 = icmp eq i32 %15, 0
br i1 %16, label %17, label %19
17: ; preds = %14
%18 = fadd double %7, -1.200000e+02
store double %18, double* %4
br label %79
19: ; preds = %14
%20 = tail call i32 @strcasecmp(i8* %8, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%21 = icmp eq i32 %20, 0
br i1 %21, label %22, label %24
22: ; preds = %19
%23 = fadd double %7, 1.300000e+01
store double %23, double* %4
br label %79
24: ; preds = %19
%25 = tail call i32 @strcasecmp(i8* %8, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%26 = icmp eq i32 %25, 0
br i1 %26, label %27, label %29
27: ; preds = %24
%28 = fadd double %7, -4.700000e+01
store double %28, double* %4
br label %79
29: ; preds = %24
%30 = tail call i32 @strcasecmp(i8* %8, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%31 = icmp eq i32 %30, 0
br i1 %31, label %32, label %34
32: ; preds = %29
%33 = fadd double %7, -1.070000e+02
store double %33, double* %4
br label %79
34: ; preds = %29
%35 = tail call i32 @strcasecmp(i8* %8, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
%36 = icmp eq i32 %35, 0
br i1 %36, label %37, label %39
37: ; preds = %34
%38 = fadd double %7, 7.000000e+00
store double %38, double* %4
br label %79
39: ; preds = %34
%40 = tail call i32 @strcasecmp(i8* %8, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0))
%41 = icmp eq i32 %40, 0
br i1 %41, label %42, label %44
42: ; preds = %39
%43 = fadd double %7, -5.300000e+01
store double %43, double* %4
br label %79
44: ; preds = %39
%45 = tail call i32 @strcasecmp(i8* %8, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0))
%46 = icmp eq i32 %45, 0
br i1 %46, label %47, label %49
47: ; preds = %44
%48 = fadd double %7, -1.130000e+02
store double %48, double* %4
br label %79
49: ; preds = %44
%50 = tail call i32 @strcasecmp(i8* %8, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
%51 = icmp eq i32 %50, 0
br i1 %51, label %52, label %54
52: ; preds = %49
%53 = call i32 @_vtodb(double* %4, double 1.300000e+01)
br label %79
54: ; preds = %49
%55 = tail call i32 @strcasecmp(i8* %8, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
%56 = icmp eq i32 %55, 0
br i1 %56, label %57, label %59
57: ; preds = %54
%58 = call i32 @_vtodb(double* %4, double -4.700000e+01)
br label %79
59: ; preds = %54
%60 = tail call i32 @strcasecmp(i8* %8, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0))
%61 = icmp eq i32 %60, 0
br i1 %61, label %62, label %64
62: ; preds = %59
%63 = call i32 @_vtodb(double* %4, double -1.070000e+02)
br label %79
64: ; preds = %59
%65 = tail call i32 @strcasecmp(i8* %8, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0))
%66 = icmp eq i32 %65, 0
br i1 %66, label %67, label %69
67: ; preds = %64
%68 = call i32 @_vtodb(double* %4, double 7.000000e+00)
br label %79
69: ; preds = %64
%70 = tail call i32 @strcasecmp(i8* %8, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0))
%71 = icmp eq i32 %70, 0
br i1 %71, label %72, label %74
72: ; preds = %69
%73 = call i32 @_vtodb(double* %4, double -5.300000e+01)
br label %79
74: ; preds = %69
%75 = tail call i32 @strcasecmp(i8* %8, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.13, i64 0, i64 0))
%76 = icmp eq i32 %75, 0
br i1 %76, label %77, label %86
77: ; preds = %74
%78 = call i32 @_vtodb(double* %4, double -1.130000e+02)
br label %79
79: ; preds = %11, %22, %32, %42, %52, %62, %72, %77, %67, %57, %47, %37, %27, %17
%80 = phi i32 [ %78, %77 ], [ %73, %72 ], [ %68, %67 ], [ %63, %62 ], [ %58, %57 ], [ %53, %52 ], [ 0, %47 ], [ 0, %42 ], [ 0, %37 ], [ 0, %32 ], [ 0, %27 ], [ 0, %22 ], [ 0, %17 ], [ 0, %11 ]
%81 = icmp eq i32 %80, 0
%82 = icmp ne double* %1, null
%83 = and i1 %82, %81
br i1 %83, label %84, label %86
84: ; preds = %79
%85 = load double, double* %4
store double %85, double* %1
br label %86
86: ; preds = %74, %2, %84, %79
%87 = phi i32 [ 0, %84 ], [ %80, %79 ], [ -1, %2 ], [ -1, %74 ]
ret i32 %87
}