#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 log(double);
double log10(double);
int wcsulex(char const *, int *, double *, double *);
int wcsunits(const char have[], const char want[], double *scale,
             double *offset, double *power) {
  int func1, func2, i, status;
  double scale1, scale2, units1[17], units2[17];
  if ((status = wcsulex(have, &func1, &scale1, units1))) {
    return status;
  }
  if ((status = wcsulex(want, &func2, &scale2, units2))) {
    return status;
  }
  for (i = 0; i < 17; i++) {
    if (units1[i] != units2[i]) {
      return 10;
    }
  }
  *scale = 0.0;
  *offset = 0.0;
  *power = 1.0;
  switch (func1) {
  case 0:
    if (func2) {
      return 11;
    }
    *scale = scale1 / scale2;
    break;
  case 1:
    if (func2 == 1) {
      *scale = 1.0;
      *offset = log10(scale1 / scale2);
    } else if (func2 == 2) {
      *scale = log(10.0);
      *offset = log(scale1 / scale2);
    } else {
      return 11;
    }
    break;
  case 2:
    if (func2 == 1) {
      *scale = 1.0 / log(10.0);
      *offset = log(scale1 / scale2);
    } else if (func2 == 2) {
      *scale = 1.0;
      *offset = log(scale1 / scale2);
    } else {
      return 11;
    }
    break;
  case 3:
    if (func2 != 3) {
      return 11;
    }
    *scale = 1.0;
    *power = scale1 / scale2;
    break;
  default:
    return 9;
  }
  return 0;
}


x86 assembly (clang, -O0):
<wcsunits>:
push   %rbp
mov    %rsp,%rbp
sub    $0x180,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8,-0x30(%rbp)
mov    -0x10(%rbp),%rdi
lea    -0xe0(%rbp),%rcx
lea    -0x34(%rbp),%rsi
lea    -0x48(%rbp),%rdx
call   1030 <wcsulex@plt>
mov    %eax,-0x40(%rbp)
cmp    $0x0,%eax
je     117e <wcsunits+0x4e>
mov    -0x40(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    13f4 <wcsunits+0x2c4>
mov    -0x18(%rbp),%rdi
lea    -0x170(%rbp),%rcx
lea    -0x38(%rbp),%rsi
lea    -0x50(%rbp),%rdx
call   1030 <wcsulex@plt>
mov    %eax,-0x40(%rbp)
cmp    $0x0,%eax
je     11ad <wcsunits+0x7d>
mov    -0x40(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    13f4 <wcsunits+0x2c4>
movl   $0x0,-0x3c(%rbp)
cmpl   $0x11,-0x3c(%rbp)
jge    1208 <wcsunits+0xd8>
movslq -0x3c(%rbp),%rax
movsd  -0xe0(%rbp,%rax,8),%xmm0
ff ff
movslq -0x3c(%rbp),%rax
ucomisd -0x170(%rbp,%rax,8),%xmm0
ff ff
jne    11e9 <wcsunits+0xb9>
jp     11e9 <wcsunits+0xb9>
jmp    11f5 <wcsunits+0xc5>
movl   $0xa,-0x4(%rbp)
jmp    13f4 <wcsunits+0x2c4>
jmp    11fa <wcsunits+0xca>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    11b4 <wcsunits+0x84>
mov    -0x20(%rbp),%rax
movq   $0x0,(%rax)
mov    -0x28(%rbp),%rax
movq   $0x0,(%rax)
mov    -0x30(%rbp),%rax
movabs $0x3ff0000000000000,%rcx
mov    %rcx,(%rax)
mov    -0x34(%rbp),%eax
mov    %rax,-0x178(%rbp)
sub    $0x3,%rax
ja     13e1 <wcsunits+0x2b1>
mov    -0x178(%rbp),%rax
lea    0xdbf(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
cmpl   $0x0,-0x38(%rbp)
je     1270 <wcsunits+0x140>
movl   $0xb,-0x4(%rbp)
jmp    13f4 <wcsunits+0x2c4>
movsd  -0x48(%rbp),%xmm0
divsd  -0x50(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    13ed <wcsunits+0x2bd>
cmpl   $0x1,-0x38(%rbp)
jne    12bd <wcsunits+0x18d>
mov    -0x20(%rbp),%rax
movsd  0xd63(%rip),%xmm0
movsd  %xmm0,(%rax)
movsd  -0x48(%rbp),%xmm0
divsd  -0x50(%rbp),%xmm0
call   1050 <log10@plt>
mov    -0x28(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    1309 <wcsunits+0x1d9>
cmpl   $0x2,-0x38(%rbp)
jne    12f8 <wcsunits+0x1c8>
movsd  0xd39(%rip),%xmm0
call   1040 <log@plt>
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x48(%rbp),%xmm0
divsd  -0x50(%rbp),%xmm0
call   1040 <log@plt>
mov    -0x28(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    1304 <wcsunits+0x1d4>
movl   $0xb,-0x4(%rbp)
jmp    13f4 <wcsunits+0x2c4>
jmp    1309 <wcsunits+0x1d9>
jmp    13ed <wcsunits+0x2bd>
cmpl   $0x1,-0x38(%rbp)
jne    1358 <wcsunits+0x228>
movsd  0xce8(%rip),%xmm0
call   1040 <log@plt>
movaps %xmm0,%xmm1
movsd  0xcd0(%rip),%xmm0
divsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x48(%rbp),%xmm0
divsd  -0x50(%rbp),%xmm0
call   1040 <log@plt>
mov    -0x28(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    139f <wcsunits+0x26f>
cmpl   $0x2,-0x38(%rbp)
jne    138e <wcsunits+0x25e>
mov    -0x20(%rbp),%rax
movsd  0xc92(%rip),%xmm0
movsd  %xmm0,(%rax)
movsd  -0x48(%rbp),%xmm0
divsd  -0x50(%rbp),%xmm0
call   1040 <log@plt>
mov    -0x28(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    139a <wcsunits+0x26a>
movl   $0xb,-0x4(%rbp)
jmp    13f4 <wcsunits+0x2c4>
jmp    139f <wcsunits+0x26f>
jmp    13ed <wcsunits+0x2bd>
cmpl   $0x3,-0x38(%rbp)
je     13ba <wcsunits+0x28a>
movl   $0xb,-0x4(%rbp)
jmp    13f4 <wcsunits+0x2c4>
mov    -0x20(%rbp),%rax
movsd  0xc3a(%rip),%xmm0
movsd  %xmm0,(%rax)
movsd  -0x48(%rbp),%xmm0
divsd  -0x50(%rbp),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    13ed <wcsunits+0x2bd>
movl   $0x9,-0x4(%rbp)
jmp    13f4 <wcsunits+0x2c4>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x180,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<wcsunits>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x138,%rsp
mov    %r8,%r12
mov    %rcx,%r14
mov    %rdx,%r15
mov    %rsi,%rbx
lea    0x1c(%rsp),%rsi
lea    0x10(%rsp),%rdx
lea    0xb0(%rsp),%rcx
call   1030 <wcsulex@plt>
test   %eax,%eax
jne    1463 <wcsunits+0x333>
lea    0x4(%rsp),%rsi
lea    0x8(%rsp),%rdx
lea    0x20(%rsp),%rcx
mov    %rbx,%rdi
call   1030 <wcsulex@plt>
test   %eax,%eax
jne    1463 <wcsunits+0x333>
movsd  0xb0(%rsp),%xmm0
mov    $0xa,%eax
ucomisd 0x20(%rsp),%xmm0
jne    1463 <wcsunits+0x333>
jp     1463 <wcsunits+0x333>
movsd  0xb8(%rsp),%xmm0
ucomisd 0x28(%rsp),%xmm0
jne    1463 <wcsunits+0x333>
jp     1463 <wcsunits+0x333>
movsd  0xc0(%rsp),%xmm0
ucomisd 0x30(%rsp),%xmm0
jne    1463 <wcsunits+0x333>
jp     1463 <wcsunits+0x333>
movsd  0xc8(%rsp),%xmm0
ucomisd 0x38(%rsp),%xmm0
jne    1463 <wcsunits+0x333>
jp     1463 <wcsunits+0x333>
movsd  0xd0(%rsp),%xmm0
ucomisd 0x40(%rsp),%xmm0
jne    1463 <wcsunits+0x333>
jp     1463 <wcsunits+0x333>
movsd  0xd8(%rsp),%xmm0
ucomisd 0x48(%rsp),%xmm0
jne    1463 <wcsunits+0x333>
jp     1463 <wcsunits+0x333>
movsd  0xe0(%rsp),%xmm0
ucomisd 0x50(%rsp),%xmm0
jne    1463 <wcsunits+0x333>
jp     1463 <wcsunits+0x333>
movsd  0xe8(%rsp),%xmm0
ucomisd 0x58(%rsp),%xmm0
jne    1463 <wcsunits+0x333>
jp     1463 <wcsunits+0x333>
movsd  0xf0(%rsp),%xmm0
ucomisd 0x60(%rsp),%xmm0
jne    1463 <wcsunits+0x333>
jp     1463 <wcsunits+0x333>
movsd  0xf8(%rsp),%xmm0
ucomisd 0x68(%rsp),%xmm0
jne    1463 <wcsunits+0x333>
jp     1463 <wcsunits+0x333>
movsd  0x100(%rsp),%xmm0
ucomisd 0x70(%rsp),%xmm0
jne    1463 <wcsunits+0x333>
jp     1463 <wcsunits+0x333>
movsd  0x108(%rsp),%xmm0
ucomisd 0x78(%rsp),%xmm0
jne    1463 <wcsunits+0x333>
jp     1463 <wcsunits+0x333>
movsd  0x110(%rsp),%xmm0
ucomisd 0x80(%rsp),%xmm0
jne    1463 <wcsunits+0x333>
jp     1463 <wcsunits+0x333>
movsd  0x118(%rsp),%xmm0
ucomisd 0x88(%rsp),%xmm0
jne    1463 <wcsunits+0x333>
jp     1463 <wcsunits+0x333>
movsd  0x120(%rsp),%xmm0
ucomisd 0x90(%rsp),%xmm0
jne    1463 <wcsunits+0x333>
jp     1463 <wcsunits+0x333>
movsd  0x128(%rsp),%xmm0
ucomisd 0x98(%rsp),%xmm0
jne    1463 <wcsunits+0x333>
jp     1463 <wcsunits+0x333>
movsd  0x130(%rsp),%xmm0
ucomisd 0xa0(%rsp),%xmm0
jne    1463 <wcsunits+0x333>
jp     1463 <wcsunits+0x333>
movq   $0x0,(%r15)
movq   $0x0,(%r14)
movabs $0x3ff0000000000000,%rcx
mov    %rcx,(%r12)
mov    0x1c(%rsp),%eax
cmp    $0x3,%rax
ja     13e6 <wcsunits+0x2b6>
lea    0xc6c(%rip),%rdx
movslq (%rdx,%rax,4),%rax
add    %rdx,%rax
jmp    *%rax
mov    $0xb,%eax
cmpl   $0x0,0x4(%rsp)
jne    1463 <wcsunits+0x333>
movsd  0x10(%rsp),%xmm0
divsd  0x8(%rsp),%xmm0
movsd  %xmm0,(%r15)
jmp    1461 <wcsunits+0x331>
mov    0x4(%rsp),%edx
cmp    $0x2,%edx
je     1439 <wcsunits+0x309>
mov    $0xb,%eax
cmp    $0x1,%edx
jne    1463 <wcsunits+0x333>
movabs $0x3fdbcb7b1526e50d,%rax
cb db 3f
jmp    1448 <wcsunits+0x318>
mov    $0x9,%eax
jmp    1463 <wcsunits+0x333>
mov    0x4(%rsp),%edx
cmp    $0x2,%edx
je     143e <wcsunits+0x30e>
mov    $0xb,%eax
cmp    $0x1,%edx
jne    1463 <wcsunits+0x333>
mov    %rcx,(%r15)
movsd  0x10(%rsp),%xmm0
divsd  0x8(%rsp),%xmm0
call   1050 <log10@plt>
jmp    145c <wcsunits+0x32c>
mov    $0xb,%eax
cmpl   $0x3,0x4(%rsp)
jne    1463 <wcsunits+0x333>
mov    %rcx,(%r15)
movsd  0x10(%rsp),%xmm0
divsd  0x8(%rsp),%xmm0
movsd  %xmm0,(%r12)
jmp    1461 <wcsunits+0x331>
mov    %rcx,(%r15)
jmp    144b <wcsunits+0x31b>
movabs $0x40026bb1bbb55516,%rax
6b 02 40
mov    %rax,(%r15)
movsd  0x10(%rsp),%xmm0
divsd  0x8(%rsp),%xmm0
call   1040 <log@plt>
movsd  %xmm0,(%r14)
xor    %eax,%eax
add    $0x138,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

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

LLVM IR (-O2):
define i32 @wcsunits(i8* %0, i8* %1, double* nocapture writeonly %2, double* nocapture writeonly %3, double* nocapture writeonly %4) {
%6 = alloca i32
%7 = alloca i32
%8 = alloca double
%9 = alloca double
%10 = alloca [17 x double]
%11 = alloca [17 x double]
%12 = bitcast i32* %6 to i8*
%13 = bitcast i32* %7 to i8*
%14 = bitcast double* %8 to i8*
%15 = bitcast double* %9 to i8*
%16 = bitcast [17 x double]* %10 to i8*
%17 = bitcast [17 x double]* %11 to i8*
%18 = getelementptr inbounds [17 x double], [17 x double]* %10, i64 0, i64 0
%19 = call i32 @wcsulex(i8* %0, i32* %6, double* %8, double* %18)
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %165
21: ; preds = %5
%22 = getelementptr inbounds [17 x double], [17 x double]* %11, i64 0, i64 0
%23 = call i32 @wcsulex(i8* %1, i32* %7, double* %9, double* %22)
%24 = icmp eq i32 %23, 0
br i1 %24, label %25, label %165
25: ; preds = %21
%26 = load double, double* %18
%27 = load double, double* %22
%28 = fcmp une double %26, %27
br i1 %28, label %165, label %29
29: ; preds = %25
%30 = getelementptr inbounds [17 x double], [17 x double]* %10, i64 0, i64 1
%31 = load double, double* %30
%32 = getelementptr inbounds [17 x double], [17 x double]* %11, i64 0, i64 1
%33 = load double, double* %32
%34 = fcmp une double %31, %33
br i1 %34, label %165, label %35
35: ; preds = %29
%36 = getelementptr inbounds [17 x double], [17 x double]* %10, i64 0, i64 2
%37 = load double, double* %36
%38 = getelementptr inbounds [17 x double], [17 x double]* %11, i64 0, i64 2
%39 = load double, double* %38
%40 = fcmp une double %37, %39
br i1 %40, label %165, label %41
41: ; preds = %35
%42 = getelementptr inbounds [17 x double], [17 x double]* %10, i64 0, i64 3
%43 = load double, double* %42
%44 = getelementptr inbounds [17 x double], [17 x double]* %11, i64 0, i64 3
%45 = load double, double* %44
%46 = fcmp une double %43, %45
br i1 %46, label %165, label %47
47: ; preds = %41
%48 = getelementptr inbounds [17 x double], [17 x double]* %10, i64 0, i64 4
%49 = load double, double* %48
%50 = getelementptr inbounds [17 x double], [17 x double]* %11, i64 0, i64 4
%51 = load double, double* %50
%52 = fcmp une double %49, %51
br i1 %52, label %165, label %53
53: ; preds = %47
%54 = getelementptr inbounds [17 x double], [17 x double]* %10, i64 0, i64 5
%55 = load double, double* %54
%56 = getelementptr inbounds [17 x double], [17 x double]* %11, i64 0, i64 5
%57 = load double, double* %56
%58 = fcmp une double %55, %57
br i1 %58, label %165, label %59
59: ; preds = %53
%60 = getelementptr inbounds [17 x double], [17 x double]* %10, i64 0, i64 6
%61 = load double, double* %60
%62 = getelementptr inbounds [17 x double], [17 x double]* %11, i64 0, i64 6
%63 = load double, double* %62
%64 = fcmp une double %61, %63
br i1 %64, label %165, label %65
65: ; preds = %59
%66 = getelementptr inbounds [17 x double], [17 x double]* %10, i64 0, i64 7
%67 = load double, double* %66
%68 = getelementptr inbounds [17 x double], [17 x double]* %11, i64 0, i64 7
%69 = load double, double* %68
%70 = fcmp une double %67, %69
br i1 %70, label %165, label %71
71: ; preds = %65
%72 = getelementptr inbounds [17 x double], [17 x double]* %10, i64 0, i64 8
%73 = load double, double* %72
%74 = getelementptr inbounds [17 x double], [17 x double]* %11, i64 0, i64 8
%75 = load double, double* %74
%76 = fcmp une double %73, %75
br i1 %76, label %165, label %77
77: ; preds = %71
%78 = getelementptr inbounds [17 x double], [17 x double]* %10, i64 0, i64 9
%79 = load double, double* %78
%80 = getelementptr inbounds [17 x double], [17 x double]* %11, i64 0, i64 9
%81 = load double, double* %80
%82 = fcmp une double %79, %81
br i1 %82, label %165, label %83
83: ; preds = %77
%84 = getelementptr inbounds [17 x double], [17 x double]* %10, i64 0, i64 10
%85 = load double, double* %84
%86 = getelementptr inbounds [17 x double], [17 x double]* %11, i64 0, i64 10
%87 = load double, double* %86
%88 = fcmp une double %85, %87
br i1 %88, label %165, label %89
89: ; preds = %83
%90 = getelementptr inbounds [17 x double], [17 x double]* %10, i64 0, i64 11
%91 = load double, double* %90
%92 = getelementptr inbounds [17 x double], [17 x double]* %11, i64 0, i64 11
%93 = load double, double* %92
%94 = fcmp une double %91, %93
br i1 %94, label %165, label %95
95: ; preds = %89
%96 = getelementptr inbounds [17 x double], [17 x double]* %10, i64 0, i64 12
%97 = load double, double* %96
%98 = getelementptr inbounds [17 x double], [17 x double]* %11, i64 0, i64 12
%99 = load double, double* %98
%100 = fcmp une double %97, %99
br i1 %100, label %165, label %101
101: ; preds = %95
%102 = getelementptr inbounds [17 x double], [17 x double]* %10, i64 0, i64 13
%103 = load double, double* %102
%104 = getelementptr inbounds [17 x double], [17 x double]* %11, i64 0, i64 13
%105 = load double, double* %104
%106 = fcmp une double %103, %105
br i1 %106, label %165, label %107
107: ; preds = %101
%108 = getelementptr inbounds [17 x double], [17 x double]* %10, i64 0, i64 14
%109 = load double, double* %108
%110 = getelementptr inbounds [17 x double], [17 x double]* %11, i64 0, i64 14
%111 = load double, double* %110
%112 = fcmp une double %109, %111
br i1 %112, label %165, label %113
113: ; preds = %107
%114 = getelementptr inbounds [17 x double], [17 x double]* %10, i64 0, i64 15
%115 = load double, double* %114
%116 = getelementptr inbounds [17 x double], [17 x double]* %11, i64 0, i64 15
%117 = load double, double* %116
%118 = fcmp une double %115, %117
br i1 %118, label %165, label %119
119: ; preds = %113
%120 = getelementptr inbounds [17 x double], [17 x double]* %10, i64 0, i64 16
%121 = load double, double* %120
%122 = getelementptr inbounds [17 x double], [17 x double]* %11, i64 0, i64 16
%123 = load double, double* %122
%124 = fcmp une double %121, %123
br i1 %124, label %165, label %125
125: ; preds = %119
store double 0.000000e+00, double* %2
store double 0.000000e+00, double* %3
store double 1.000000e+00, double* %4
%126 = load i32, i32* %6
switch i32 %126, label %165 [
i32 0, label %127
i32 1, label %134
i32 2, label %146
i32 3, label %158
]
127: ; preds = %125
%128 = load i32, i32* %7
%129 = icmp eq i32 %128, 0
br i1 %129, label %130, label %165
130: ; preds = %127
%131 = load double, double* %8
%132 = load double, double* %9
%133 = fdiv double %131, %132
store double %133, double* %2
br label %165
134: ; preds = %125
%135 = load i32, i32* %7
switch i32 %135, label %165 [
i32 1, label %136
i32 2, label %141
]
136: ; preds = %134
store double 1.000000e+00, double* %2
%137 = load double, double* %8
%138 = load double, double* %9
%139 = fdiv double %137, %138
%140 = call double @log10(double %139)
store double %140, double* %3
br label %165
141: ; preds = %134
store double 0x40026BB1BBB55516, double* %2
%142 = load double, double* %8
%143 = load double, double* %9
%144 = fdiv double %142, %143
%145 = call double @log(double %144)
store double %145, double* %3
br label %165
146: ; preds = %125
%147 = load i32, i32* %7
switch i32 %147, label %165 [
i32 1, label %148
i32 2, label %153
]
148: ; preds = %146
store double 0x3FDBCB7B1526E50D, double* %2
%149 = load double, double* %8
%150 = load double, double* %9
%151 = fdiv double %149, %150
%152 = call double @log(double %151)
store double %152, double* %3
br label %165
153: ; preds = %146
store double 1.000000e+00, double* %2
%154 = load double, double* %8
%155 = load double, double* %9
%156 = fdiv double %154, %155
%157 = call double @log(double %156)
store double %157, double* %3
br label %165
158: ; preds = %125
%159 = load i32, i32* %7
%160 = icmp eq i32 %159, 3
br i1 %160, label %161, label %165
161: ; preds = %158
store double 1.000000e+00, double* %2
%162 = load double, double* %8
%163 = load double, double* %9
%164 = fdiv double %162, %163
store double %164, double* %4
br label %165
165: ; preds = %25, %29, %35, %41, %47, %53, %59, %65, %71, %77, %83, %89, %95, %101, %107, %113, %119, %130, %161, %141, %136, %153, %148, %125, %158, %146, %134, %127, %21, %5
%166 = phi i32 [ %19, %5 ], [ %23, %21 ], [ 11, %127 ], [ 11, %134 ], [ 11, %146 ], [ 11, %158 ], [ 9, %125 ], [ 0, %148 ], [ 0, %153 ], [ 0, %136 ], [ 0, %141 ], [ 0, %161 ], [ 0, %130 ], [ 10, %119 ], [ 10, %113 ], [ 10, %107 ], [ 10, %101 ], [ 10, %95 ], [ 10, %89 ], [ 10, %83 ], [ 10, %77 ], [ 10, %71 ], [ 10, %65 ], [ 10, %59 ], [ 10, %53 ], [ 10, %47 ], [ 10, %41 ], [ 10, %35 ], [ 10, %29 ], [ 10, %25 ]
ret i32 %166
}