#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__ case_ignore_strcmp(char *, char *);
int /*<<< orphan*/ fatal(char *, char const *, char const *, ...);
scalar_t__ isspace(char);
double strtod(char const *, char **);
int parse_speed(const char *str, double *val, const double scale,
                const char *module) {
  char *unit;
  if ((str == NULL) || (*str == '\0'))
    return 0;
  *val = strtod(str, &unit);
  if (unit == NULL)
    fatal("%s: Unconvertable numeric value (%s)!\n", module, str);
  while (isspace(*unit))
    unit++;
  if (*unit == '\0') {
    *val *= scale;
    return 1;
  }
  if (case_ignore_strcmp(unit, "m/s") == 0)
    ;
  else if (case_ignore_strcmp(unit, "mps") == 0)
    ;
  else if (case_ignore_strcmp(unit, "kph") == 0)
    *val = ((double)(*val) * 1000 / (60L * 60));
  else if (case_ignore_strcmp(unit, "km/h") == 0)
    *val = ((double)(*val) * 1000 / (60L * 60));
  else if (case_ignore_strcmp(unit, "kmh") == 0)
    *val = ((double)(*val) * 1000 / (60L * 60));
  else if (case_ignore_strcmp(unit, "kt") == 0)
    *val = (((double)((*val) * 1.852) * 1000 / (60L * 60)));
  else if (case_ignore_strcmp(unit, "knot") == 0)
    *val = (((double)((*val) * 1.852) * 1000 / (60L * 60)));
  else if (case_ignore_strcmp(unit, "mph") == 0)
    *val = (((*val) * 1609.344) / (60L * 60));
  else if (case_ignore_strcmp(unit, "mi/h") == 0)
    *val = (((*val) * 1609.344) / (60L * 60));
  else if (case_ignore_strcmp(unit, "mih") == 0)
    *val = (((*val) * 1609.344) / (60L * 60));
  else
    fatal("%s: Unsupported speed unit '%s' in item '%s'!\n", module, unit, str);
  return 2;
}


x86 assembly (clang, -O0):
<parse_speed>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
movsd  %xmm0,-0x20(%rbp)
mov    %rdx,-0x28(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     1174 <parse_speed+0x34>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
jne    1180 <parse_speed+0x40>
movl   $0x0,-0x4(%rbp)
jmp    14cb <parse_speed+0x38b>
mov    -0x10(%rbp),%rdi
lea    -0x30(%rbp),%rsi
call   1030 <strtod@plt>
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
cmpq   $0x0,-0x30(%rbp)
jne    11b6 <parse_speed+0x76>
mov    -0x28(%rbp),%rsi
mov    -0x10(%rbp),%rdx
lea    0xe71(%rip),%rdi
mov    $0x0,%al
call   1060 <fatal@plt>
jmp    11bb <parse_speed+0x7b>
mov    -0x30(%rbp),%rax
movsbl (%rax),%edi
call   1040 <isspace@plt>
cmp    $0x0,%rax
je     11e2 <parse_speed+0xa2>
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
jmp    11bb <parse_speed+0x7b>
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
jne    120f <parse_speed+0xcf>
movsd  -0x20(%rbp),%xmm0
mov    -0x18(%rbp),%rax
mulsd  (%rax),%xmm0
movsd  %xmm0,(%rax)
movl   $0x1,-0x4(%rbp)
jmp    14cb <parse_speed+0x38b>
mov    -0x30(%rbp),%rdi
lea    0xe2d(%rip),%rsi
call   1050 <case_ignore_strcmp@plt>
cmp    $0x0,%rax
jne    122e <parse_speed+0xee>
jmp    14c4 <parse_speed+0x384>
mov    -0x30(%rbp),%rdi
lea    0xe12(%rip),%rsi
call   1050 <case_ignore_strcmp@plt>
cmp    $0x0,%rax
jne    124d <parse_speed+0x10d>
jmp    14bf <parse_speed+0x37f>
mov    -0x30(%rbp),%rdi
lea    0xdf7(%rip),%rsi
call   1050 <case_ignore_strcmp@plt>
cmp    $0x0,%rax
jne    1290 <parse_speed+0x150>
mov    -0x18(%rbp),%rax
movsd  0xd9d(%rip),%xmm0
mulsd  (%rax),%xmm0
movsd  0xd81(%rip),%xmm1
divsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    14ba <parse_speed+0x37a>
mov    -0x30(%rbp),%rdi
lea    0xdb8(%rip),%rsi
call   1050 <case_ignore_strcmp@plt>
cmp    $0x0,%rax
jne    12d3 <parse_speed+0x193>
mov    -0x18(%rbp),%rax
movsd  0xd5a(%rip),%xmm0
mulsd  (%rax),%xmm0
movsd  0xd3e(%rip),%xmm1
divsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    14b5 <parse_speed+0x375>
mov    -0x30(%rbp),%rdi
lea    0xd7a(%rip),%rsi
call   1050 <case_ignore_strcmp@plt>
cmp    $0x0,%rax
jne    1316 <parse_speed+0x1d6>
mov    -0x18(%rbp),%rax
movsd  0xd17(%rip),%xmm0
mulsd  (%rax),%xmm0
movsd  0xcfb(%rip),%xmm1
divsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    14b0 <parse_speed+0x370>
mov    -0x30(%rbp),%rdi
lea    0xd3b(%rip),%rsi
call   1050 <case_ignore_strcmp@plt>
cmp    $0x0,%rax
jne    1365 <parse_speed+0x225>
mov    -0x18(%rbp),%rax
movsd  0xcdc(%rip),%xmm0
mulsd  (%rax),%xmm0
movsd  0xcc8(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xcac(%rip),%xmm1
divsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    14ab <parse_speed+0x36b>
mov    -0x30(%rbp),%rdi
lea    0xcef(%rip),%rsi
call   1050 <case_ignore_strcmp@plt>
cmp    $0x0,%rax
jne    13b4 <parse_speed+0x274>
mov    -0x18(%rbp),%rax
movsd  0xc8d(%rip),%xmm0
mulsd  (%rax),%xmm0
movsd  0xc79(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xc5d(%rip),%xmm1
divsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    14a6 <parse_speed+0x366>
mov    -0x30(%rbp),%rdi
lea    0xca5(%rip),%rsi
call   1050 <case_ignore_strcmp@plt>
cmp    $0x0,%rax
jne    13f7 <parse_speed+0x2b7>
mov    -0x18(%rbp),%rax
movsd  0xc2e(%rip),%xmm0
mulsd  (%rax),%xmm0
movsd  0xc1a(%rip),%xmm1
divsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    14a1 <parse_speed+0x361>
mov    -0x30(%rbp),%rdi
lea    0xc66(%rip),%rsi
call   1050 <case_ignore_strcmp@plt>
cmp    $0x0,%rax
jne    143a <parse_speed+0x2fa>
mov    -0x18(%rbp),%rax
movsd  0xbeb(%rip),%xmm0
mulsd  (%rax),%xmm0
movsd  0xbd7(%rip),%xmm1
divsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    149c <parse_speed+0x35c>
mov    -0x30(%rbp),%rdi
lea    0xc28(%rip),%rsi
call   1050 <case_ignore_strcmp@plt>
cmp    $0x0,%rax
jne    147d <parse_speed+0x33d>
mov    -0x18(%rbp),%rax
movsd  0xba8(%rip),%xmm0
mulsd  (%rax),%xmm0
movsd  0xb94(%rip),%xmm1
divsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    1497 <parse_speed+0x357>
mov    -0x28(%rbp),%rsi
mov    -0x30(%rbp),%rdx
mov    -0x10(%rbp),%rcx
lea    0xbe1(%rip),%rdi
mov    $0x0,%al
call   1060 <fatal@plt>
jmp    149c <parse_speed+0x35c>
jmp    14a1 <parse_speed+0x361>
jmp    14a6 <parse_speed+0x366>
jmp    14ab <parse_speed+0x36b>
jmp    14b0 <parse_speed+0x370>
jmp    14b5 <parse_speed+0x375>
jmp    14ba <parse_speed+0x37a>
jmp    14bf <parse_speed+0x37f>
jmp    14c4 <parse_speed+0x384>
movl   $0x2,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<parse_speed>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x10,%rsp
xor    %r12d,%r12d
test   %rdi,%rdi
je     1304 <parse_speed+0x1c4>
mov    %rdi,%rbx
cmpb   $0x0,(%rdi)
je     1304 <parse_speed+0x1c4>
mov    %rdx,%r14
mov    %rsi,%r15
movsd  %xmm0,(%rsp)
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   1030 <strtod@plt>
movsd  %xmm0,(%r15)
mov    0x8(%rsp),%rbp
test   %rbp,%rbp
jne    119f <parse_speed+0x5f>
lea    0xe8e(%rip),%rdi
mov    %r14,%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1060 <fatal@plt>
add    $0xffffffffffffffff,%rbp
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movsbl 0x1(%rbp),%edi
add    $0x1,%rbp
call   1040 <isspace@plt>
test   %rax,%rax
jne    11b0 <parse_speed+0x70>
cmpb   $0x0,0x0(%rbp)
je     12d3 <parse_speed+0x193>
lea    0xe74(%rip),%rsi
mov    %rbp,%rdi
call   1050 <case_ignore_strcmp@plt>
mov    $0x2,%r12d
test   %rax,%rax
je     1304 <parse_speed+0x1c4>
lea    0xe5a(%rip),%rsi
mov    %rbp,%rdi
call   1050 <case_ignore_strcmp@plt>
test   %rax,%rax
je     1304 <parse_speed+0x1c4>
lea    0xe46(%rip),%rsi
mov    %rbp,%rdi
call   1050 <case_ignore_strcmp@plt>
test   %rax,%rax
je     12ea <parse_speed+0x1aa>
lea    0xe32(%rip),%rsi
mov    %rbp,%rdi
call   1050 <case_ignore_strcmp@plt>
test   %rax,%rax
je     12ea <parse_speed+0x1aa>
lea    0xe1f(%rip),%rsi
mov    %rbp,%rdi
call   1050 <case_ignore_strcmp@plt>
test   %rax,%rax
je     12ea <parse_speed+0x1aa>
lea    0xe0b(%rip),%rsi
mov    %rbp,%rdi
call   1050 <case_ignore_strcmp@plt>
test   %rax,%rax
je     1314 <parse_speed+0x1d4>
lea    0xdf6(%rip),%rsi
mov    %rbp,%rdi
call   1050 <case_ignore_strcmp@plt>
test   %rax,%rax
je     1314 <parse_speed+0x1d4>
lea    0xde3(%rip),%rsi
mov    %rbp,%rdi
call   1050 <case_ignore_strcmp@plt>
test   %rax,%rax
je     1323 <parse_speed+0x1e3>
lea    0xdcf(%rip),%rsi
mov    %rbp,%rdi
call   1050 <case_ignore_strcmp@plt>
test   %rax,%rax
je     1323 <parse_speed+0x1e3>
lea    0xdc0(%rip),%rsi
mov    %rbp,%rdi
call   1050 <case_ignore_strcmp@plt>
test   %rax,%rax
je     1323 <parse_speed+0x1e3>
lea    0xdb0(%rip),%rdi
mov    %r14,%rsi
mov    %rbp,%rdx
mov    %rbx,%rcx
xor    %eax,%eax
call   1060 <fatal@plt>
jmp    1304 <parse_speed+0x1c4>
movsd  (%rsp),%xmm0
mulsd  (%r15),%xmm0
movsd  %xmm0,(%r15)
mov    $0x1,%r12d
jmp    1304 <parse_speed+0x1c4>
movsd  (%r15),%xmm0
mulsd  0xd21(%rip),%xmm0
divsd  0xd09(%rip),%xmm0
movsd  %xmm0,(%r15)
mov    %r12d,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret
movsd  (%r15),%xmm0
mulsd  0xcef(%rip),%xmm0
jmp    12ef <parse_speed+0x1af>
movsd  (%r15),%xmm0
mulsd  0xcd0(%rip),%xmm0
jmp    12f7 <parse_speed+0x1b7>

LLVM IR (-O0):
@.str = [39 x i8] c"%s: Unconvertable numeric value (%s)!\0A\00"
@.str.1 = [4 x i8] c"m/s\00"
@.str.2 = [4 x i8] c"mps\00"
@.str.3 = [4 x i8] c"kph\00"
@.str.4 = [5 x i8] c"km/h\00"
@.str.5 = [4 x i8] c"kmh\00"
@.str.6 = [3 x i8] c"kt\00"
@.str.7 = [5 x i8] c"knot\00"
@.str.8 = [4 x i8] c"mph\00"
@.str.9 = [5 x i8] c"mi/h\00"
@.str.10 = [4 x i8] c"mih\00"
@.str.11 = [47 x i8] c"%s: Unsupported speed unit '%s' in item '%s'!\0A\00"
define i32 @parse_speed(i8* %0, double* %1, double %2, i8* %3) {
%5 = alloca i32
%6 = alloca i8*
%7 = alloca double*
%8 = alloca double
%9 = alloca i8*
%10 = alloca i8*
store i8* %0, i8** %6
store double* %1, double** %7
store double %2, double* %8
store i8* %3, i8** %9
%11 = load i8*, i8** %6
%12 = icmp eq i8* %11, null
br i1 %12, label %18, label %13
13: ; preds = %4
%14 = load i8*, i8** %6
%15 = load i8, i8* %14
%16 = sext i8 %15 to i32
%17 = icmp eq i32 %16, 0
br i1 %17, label %18, label %19
18: ; preds = %13, %4
store i32 0, i32* %5
br label %155
19: ; preds = %13
%20 = load i8*, i8** %6
%21 = call double @strtod(i8* %20, i8** %10)
%22 = load double*, double** %7
store double %21, double* %22
%23 = load i8*, i8** %10
%24 = icmp eq i8* %23, null
br i1 %24, label %25, label %29
25: ; preds = %19
%26 = load i8*, i8** %9
%27 = load i8*, i8** %6
%28 = call i32 (i8*, i8*, i8*, ...) @fatal(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0), i8* %26, i8* %27)
br label %29
29: ; preds = %25, %19
br label %30
30: ; preds = %35, %29
%31 = load i8*, i8** %10
%32 = load i8, i8* %31
%33 = call i64 @isspace(i8 signext %32)
%34 = icmp ne i64 %33, 0
br i1 %34, label %35, label %38
35: ; preds = %30
%36 = load i8*, i8** %10
%37 = getelementptr inbounds i8, i8* %36, i32 1
store i8* %37, i8** %10
br label %30
38: ; preds = %30
%39 = load i8*, i8** %10
%40 = load i8, i8* %39
%41 = sext i8 %40 to i32
%42 = icmp eq i32 %41, 0
br i1 %42, label %43, label %48
43: ; preds = %38
%44 = load double, double* %8
%45 = load double*, double** %7
%46 = load double, double* %45
%47 = fmul double %46, %44
store double %47, double* %45
store i32 1, i32* %5
br label %155
48: ; preds = %38
%49 = load i8*, i8** %10
%50 = call i64 @case_ignore_strcmp(i8* %49, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%51 = icmp eq i64 %50, 0
br i1 %51, label %52, label %53
52: ; preds = %48
br label %154
53: ; preds = %48
%54 = load i8*, i8** %10
%55 = call i64 @case_ignore_strcmp(i8* %54, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%56 = icmp eq i64 %55, 0
br i1 %56, label %57, label %58
57: ; preds = %53
br label %153
58: ; preds = %53
%59 = load i8*, i8** %10
%60 = call i64 @case_ignore_strcmp(i8* %59, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%61 = icmp eq i64 %60, 0
br i1 %61, label %62, label %68
62: ; preds = %58
%63 = load double*, double** %7
%64 = load double, double* %63
%65 = fmul double %64, 1.000000e+03
%66 = fdiv double %65, 3.600000e+03
%67 = load double*, double** %7
store double %66, double* %67
br label %152
68: ; preds = %58
%69 = load i8*, i8** %10
%70 = call i64 @case_ignore_strcmp(i8* %69, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%71 = icmp eq i64 %70, 0
br i1 %71, label %72, label %78
72: ; preds = %68
%73 = load double*, double** %7
%74 = load double, double* %73
%75 = fmul double %74, 1.000000e+03
%76 = fdiv double %75, 3.600000e+03
%77 = load double*, double** %7
store double %76, double* %77
br label %151
78: ; preds = %68
%79 = load i8*, i8** %10
%80 = call i64 @case_ignore_strcmp(i8* %79, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%81 = icmp eq i64 %80, 0
br i1 %81, label %82, label %88
82: ; preds = %78
%83 = load double*, double** %7
%84 = load double, double* %83
%85 = fmul double %84, 1.000000e+03
%86 = fdiv double %85, 3.600000e+03
%87 = load double*, double** %7
store double %86, double* %87
br label %150
88: ; preds = %78
%89 = load i8*, i8** %10
%90 = call i64 @case_ignore_strcmp(i8* %89, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%91 = icmp eq i64 %90, 0
br i1 %91, label %92, label %99
92: ; preds = %88
%93 = load double*, double** %7
%94 = load double, double* %93
%95 = fmul double %94, 1.852000e+00
%96 = fmul double %95, 1.000000e+03
%97 = fdiv double %96, 3.600000e+03
%98 = load double*, double** %7
store double %97, double* %98
br label %149
99: ; preds = %88
%100 = load i8*, i8** %10
%101 = call i64 @case_ignore_strcmp(i8* %100, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%102 = icmp eq i64 %101, 0
br i1 %102, label %103, label %110
103: ; preds = %99
%104 = load double*, double** %7
%105 = load double, double* %104
%106 = fmul double %105, 1.852000e+00
%107 = fmul double %106, 1.000000e+03
%108 = fdiv double %107, 3.600000e+03
%109 = load double*, double** %7
store double %108, double* %109
br label %148
110: ; preds = %99
%111 = load i8*, i8** %10
%112 = call i64 @case_ignore_strcmp(i8* %111, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%113 = icmp eq i64 %112, 0
br i1 %113, label %114, label %120
114: ; preds = %110
%115 = load double*, double** %7
%116 = load double, double* %115
%117 = fmul double %116, 0x409925604189374C
%118 = fdiv double %117, 3.600000e+03
%119 = load double*, double** %7
store double %118, double* %119
br label %147
120: ; preds = %110
%121 = load i8*, i8** %10
%122 = call i64 @case_ignore_strcmp(i8* %121, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
%123 = icmp eq i64 %122, 0
br i1 %123, label %124, label %130
124: ; preds = %120
%125 = load double*, double** %7
%126 = load double, double* %125
%127 = fmul double %126, 0x409925604189374C
%128 = fdiv double %127, 3.600000e+03
%129 = load double*, double** %7
store double %128, double* %129
br label %146
130: ; preds = %120
%131 = load i8*, i8** %10
%132 = call i64 @case_ignore_strcmp(i8* %131, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0))
%133 = icmp eq i64 %132, 0
br i1 %133, label %134, label %140
134: ; preds = %130
%135 = load double*, double** %7
%136 = load double, double* %135
%137 = fmul double %136, 0x409925604189374C
%138 = fdiv double %137, 3.600000e+03
%139 = load double*, double** %7
store double %138, double* %139
br label %145
140: ; preds = %130
%141 = load i8*, i8** %9
%142 = load i8*, i8** %10
%143 = load i8*, i8** %6
%144 = call i32 (i8*, i8*, i8*, ...) @fatal(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.11, i64 0, i64 0), i8* %141, i8* %142, i8* %143)
br label %145
145: ; preds = %140, %134
br label %146
146: ; preds = %145, %124
br label %147
147: ; preds = %146, %114
br label %148
148: ; preds = %147, %103
br label %149
149: ; preds = %148, %92
br label %150
150: ; preds = %149, %82
br label %151
151: ; preds = %150, %72
br label %152
152: ; preds = %151, %62
br label %153
153: ; preds = %152, %57
br label %154
154: ; preds = %153, %52
store i32 2, i32* %5
br label %155
155: ; preds = %154, %43, %18
%156 = load i32, i32* %5
ret i32 %156
}

LLVM IR (-O2):
@.str = [39 x i8] c"%s: Unconvertable numeric value (%s)!\0A\00"
@.str.1 = [4 x i8] c"m/s\00"
@.str.2 = [4 x i8] c"mps\00"
@.str.3 = [4 x i8] c"kph\00"
@.str.4 = [5 x i8] c"km/h\00"
@.str.5 = [4 x i8] c"kmh\00"
@.str.6 = [3 x i8] c"kt\00"
@.str.7 = [5 x i8] c"knot\00"
@.str.8 = [4 x i8] c"mph\00"
@.str.9 = [5 x i8] c"mi/h\00"
@.str.10 = [4 x i8] c"mih\00"
@.str.11 = [47 x i8] c"%s: Unsupported speed unit '%s' in item '%s'!\0A\00"
define i32 @parse_speed(i8* %0, double* nocapture %1, double %2, i8* %3) {
%5 = alloca i8*
%6 = bitcast i8** %5 to i8*
%7 = icmp eq i8* %0, null
br i1 %7, label %96, label %8
8: ; preds = %4
%9 = load i8, i8* %0
%10 = icmp eq i8 %9, 0
br i1 %10, label %96, label %11
11: ; preds = %8
%12 = call double @strtod(i8* %0, i8** %5)
store double %12, double* %1
%13 = load i8*, i8** %5
%14 = icmp eq i8* %13, null
br i1 %14, label %15, label %17
15: ; preds = %11
%16 = tail call i32 (i8*, i8*, i8*, ...) @fatal(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0), i8* %3, i8* %0)
br label %17
17: ; preds = %15, %11
br label %18
18: ; preds = %17, %18
%19 = phi i8* [ %23, %18 ], [ %13, %17 ]
%20 = load i8, i8* %19
%21 = tail call i64 @isspace(i8 signext %20)
%22 = icmp eq i64 %21, 0
%23 = getelementptr inbounds i8, i8* %19, i64 1
br i1 %22, label %24, label %18
24: ; preds = %18
%25 = load i8, i8* %19
%26 = icmp eq i8 %25, 0
br i1 %26, label %27, label %30
27: ; preds = %24
%28 = load double, double* %1
%29 = fmul double %28, %2
store double %29, double* %1
br label %96
30: ; preds = %24
%31 = tail call i64 @case_ignore_strcmp(i8* %19, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%32 = icmp eq i64 %31, 0
br i1 %32, label %96, label %33
33: ; preds = %30
%34 = tail call i64 @case_ignore_strcmp(i8* %19, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%35 = icmp eq i64 %34, 0
br i1 %35, label %96, label %36
36: ; preds = %33
%37 = tail call i64 @case_ignore_strcmp(i8* %19, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%38 = icmp eq i64 %37, 0
br i1 %38, label %39, label %43
39: ; preds = %36
%40 = load double, double* %1
%41 = fmul double %40, 1.000000e+03
%42 = fdiv double %41, 3.600000e+03
store double %42, double* %1
br label %96
43: ; preds = %36
%44 = tail call i64 @case_ignore_strcmp(i8* %19, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%45 = icmp eq i64 %44, 0
br i1 %45, label %46, label %50
46: ; preds = %43
%47 = load double, double* %1
%48 = fmul double %47, 1.000000e+03
%49 = fdiv double %48, 3.600000e+03
store double %49, double* %1
br label %96
50: ; preds = %43
%51 = tail call i64 @case_ignore_strcmp(i8* %19, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%52 = icmp eq i64 %51, 0
br i1 %52, label %53, label %57
53: ; preds = %50
%54 = load double, double* %1
%55 = fmul double %54, 1.000000e+03
%56 = fdiv double %55, 3.600000e+03
store double %56, double* %1
br label %96
57: ; preds = %50
%58 = tail call i64 @case_ignore_strcmp(i8* %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%59 = icmp eq i64 %58, 0
br i1 %59, label %60, label %65
60: ; preds = %57
%61 = load double, double* %1
%62 = fmul double %61, 1.852000e+00
%63 = fmul double %62, 1.000000e+03
%64 = fdiv double %63, 3.600000e+03
store double %64, double* %1
br label %96
65: ; preds = %57
%66 = tail call i64 @case_ignore_strcmp(i8* %19, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%67 = icmp eq i64 %66, 0
br i1 %67, label %68, label %73
68: ; preds = %65
%69 = load double, double* %1
%70 = fmul double %69, 1.852000e+00
%71 = fmul double %70, 1.000000e+03
%72 = fdiv double %71, 3.600000e+03
store double %72, double* %1
br label %96
73: ; preds = %65
%74 = tail call i64 @case_ignore_strcmp(i8* %19, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%75 = icmp eq i64 %74, 0
br i1 %75, label %76, label %80
76: ; preds = %73
%77 = load double, double* %1
%78 = fmul double %77, 0x409925604189374C
%79 = fdiv double %78, 3.600000e+03
store double %79, double* %1
br label %96
80: ; preds = %73
%81 = tail call i64 @case_ignore_strcmp(i8* %19, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
%82 = icmp eq i64 %81, 0
br i1 %82, label %83, label %87
83: ; preds = %80
%84 = load double, double* %1
%85 = fmul double %84, 0x409925604189374C
%86 = fdiv double %85, 3.600000e+03
store double %86, double* %1
br label %96
87: ; preds = %80
%88 = tail call i64 @case_ignore_strcmp(i8* %19, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0))
%89 = icmp eq i64 %88, 0
br i1 %89, label %90, label %94
90: ; preds = %87
%91 = load double, double* %1
%92 = fmul double %91, 0x409925604189374C
%93 = fdiv double %92, 3.600000e+03
store double %93, double* %1
br label %96
94: ; preds = %87
%95 = tail call i32 (i8*, i8*, i8*, ...) @fatal(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.11, i64 0, i64 0), i8* %3, i8* %19, i8* %0)
br label %96
96: ; preds = %30, %39, %53, %68, %83, %94, %90, %76, %60, %46, %33, %4, %8, %27
%97 = phi i32 [ 1, %27 ], [ 0, %8 ], [ 0, %4 ], [ 2, %33 ], [ 2, %46 ], [ 2, %60 ], [ 2, %76 ], [ 2, %90 ], [ 2, %94 ], [ 2, %83 ], [ 2, %68 ], [ 2, %53 ], [ 2, %39 ], [ 2, %30 ]
ret i32 %97
}