#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 M_PI;
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ spherical_to_uv2(double *, int, double *, double *, double *,
                                    double *);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ uv_to_spherical(double *, int, double *, double *, double *,
                                   double *);
int main(int argc, char **argv) {
  int i;
  double u[6], v[6];
  double center[2] = {M_PI / 2, 0};
  double theta[6] = {0.1, 0.2, 0.3, 0.3, center[0], M_PI / 4};
  double phi[6] = {0.1, 0.1, 0.3, 0.4, center[1], M_PI / 4};
  spherical_to_uv2(center, 6, theta, phi, u, v);
  for (i = 0; i < 6; i++) {
    fprintf(stderr, "(%.15e, %.15e) -> (%.15e, %.15e)\n", theta[i], phi[i],
            u[i], v[i]);
  }
  fprintf(stderr, "\n\n");
  uv_to_spherical(center, 6, u, v, theta, phi);
  for (i = 0; i < 6; i++) {
    fprintf(stderr, "(%.15e, %.15e) <- (%.15e, %.15e)\n", theta[i], phi[i],
            u[i], v[i]);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xf0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2e98(%rip),%rax
mov    (%rax),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  0xe97(%rip),%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
movsd  0xe8f(%rip),%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  0xe6f(%rip),%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  0xe5f(%rip),%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  -0x90(%rbp),%xmm0
ff
movsd  %xmm0,-0xa0(%rbp)
ff
mov    0x2e20(%rip),%rax
mov    (%rax),%eax
mov    $0x4,%ecx
cltd
idiv   %ecx
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  0xe2a(%rip),%xmm0
movsd  %xmm0,-0xf0(%rbp)
ff
movsd  0xe1a(%rip),%xmm0
movsd  %xmm0,-0xe8(%rbp)
ff
movsd  0xe02(%rip),%xmm0
movsd  %xmm0,-0xe0(%rbp)
ff
movsd  0xdea(%rip),%xmm0
movsd  %xmm0,-0xd8(%rbp)
ff
movsd  -0x88(%rbp),%xmm0
ff
movsd  %xmm0,-0xd0(%rbp)
ff
mov    0x2db3(%rip),%rax
mov    (%rax),%eax
mov    $0x4,%ecx
cltd
idiv   %ecx
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0xc8(%rbp)
ff
lea    -0x90(%rbp),%rdi
lea    -0xc0(%rbp),%rdx
lea    -0xf0(%rbp),%rcx
lea    -0x50(%rbp),%r8
lea    -0x80(%rbp),%r9
mov    $0x6,%esi
call   1050 <spherical_to_uv2@plt>
movl   $0x0,-0x14(%rbp)
cmpl   $0x6,-0x14(%rbp)
jge    12d6 <main+0x1a6>
mov    0x2d4e(%rip),%rax
mov    (%rax),%edi
movslq -0x14(%rbp),%rax
movsd  -0xc0(%rbp,%rax,8),%xmm0
ff ff
movslq -0x14(%rbp),%rax
movsd  -0xf0(%rbp,%rax,8),%xmm1
ff ff
movslq -0x14(%rbp),%rax
movsd  -0x50(%rbp,%rax,8),%xmm2
movslq -0x14(%rbp),%rax
movsd  -0x80(%rbp,%rax,8),%xmm3
lea    0xd5f(%rip),%rsi
mov    $0x4,%al
call   1040 <fprintf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1279 <main+0x149>
mov    0x2cfb(%rip),%rax
mov    (%rax),%edi
lea    0xd5c(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
lea    -0x90(%rbp),%rdi
lea    -0x50(%rbp),%rdx
lea    -0x80(%rbp),%rcx
lea    -0xc0(%rbp),%r8
lea    -0xf0(%rbp),%r9
mov    $0x6,%esi
call   1030 <uv_to_spherical@plt>
movl   $0x0,-0x14(%rbp)
cmpl   $0x6,-0x14(%rbp)
jge    1378 <main+0x248>
mov    0x2cac(%rip),%rax
mov    (%rax),%edi
movslq -0x14(%rbp),%rax
movsd  -0xc0(%rbp,%rax,8),%xmm0
ff ff
movslq -0x14(%rbp),%rax
movsd  -0xf0(%rbp,%rax,8),%xmm1
ff ff
movslq -0x14(%rbp),%rax
movsd  -0x50(%rbp,%rax,8),%xmm2
movslq -0x14(%rbp),%rax
movsd  -0x80(%rbp,%rax,8),%xmm3
lea    0xce2(%rip),%rsi
mov    $0x4,%al
call   1040 <fprintf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    131b <main+0x1eb>
xor    %eax,%eax
add    $0xf0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xd8,%rsp
mov    0x2ea0(%rip),%rax
mov    (%rax),%eax
mov    %eax,%ecx
shr    $0x1f,%ecx
add    %eax,%ecx
sar    %ecx
cvtsi2sd %ecx,%xmm0
movsd  %xmm0,0xc0(%rsp)
movq   $0x0,0xc8(%rsp)
movaps 0xe8d(%rip),%xmm1
movaps %xmm1,0x30(%rsp)
movaps 0xe91(%rip),%xmm1
lea    0x3(%rax),%ecx
test   %eax,%eax
cmovns %eax,%ecx
movaps %xmm1,0x40(%rsp)
sar    $0x2,%ecx
xorps  %xmm1,%xmm1
cvtsi2sd %ecx,%xmm1
movsd  %xmm0,0x50(%rsp)
movsd  %xmm1,0x58(%rsp)
movaps 0xe77(%rip),%xmm0
movaps %xmm0,(%rsp)
movaps 0xe7c(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movq   $0x0,0x20(%rsp)
movsd  %xmm1,0x28(%rsp)
lea    0xc0(%rsp),%r12
lea    0x30(%rsp),%r15
mov    %rsp,%rcx
lea    0x90(%rsp),%rbx
lea    0x60(%rsp),%r13
mov    %r12,%rdi
mov    $0x6,%esi
mov    %r15,%rdx
mov    %rbx,%r8
mov    %r13,%r9
call   1050 <spherical_to_uv2@plt>
mov    0x2dd6(%rip),%r14
mov    (%r14),%edi
movsd  0x30(%rsp),%xmm0
movsd  (%rsp),%xmm1
movsd  0x90(%rsp),%xmm2
movsd  0x60(%rsp),%xmm3
lea    0xe1a(%rip),%rbp
mov    %rbp,%rsi
mov    $0x4,%al
call   1040 <fprintf@plt>
mov    (%r14),%edi
movsd  0x38(%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
movsd  0x98(%rsp),%xmm2
movsd  0x68(%rsp),%xmm3
mov    %rbp,%rsi
mov    $0x4,%al
call   1040 <fprintf@plt>
mov    (%r14),%edi
movsd  0x40(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
movsd  0xa0(%rsp),%xmm2
movsd  0x70(%rsp),%xmm3
mov    %rbp,%rsi
mov    $0x4,%al
call   1040 <fprintf@plt>
mov    (%r14),%edi
movsd  0x48(%rsp),%xmm0
movsd  0x18(%rsp),%xmm1
movsd  0xa8(%rsp),%xmm2
movsd  0x78(%rsp),%xmm3
mov    %rbp,%rsi
mov    $0x4,%al
call   1040 <fprintf@plt>
mov    (%r14),%edi
movsd  0x50(%rsp),%xmm0
movsd  0x20(%rsp),%xmm1
movsd  0xb0(%rsp),%xmm2
movsd  0x80(%rsp),%xmm3
mov    %rbp,%rsi
mov    $0x4,%al
call   1040 <fprintf@plt>
mov    (%r14),%edi
movsd  0x58(%rsp),%xmm0
movsd  0x28(%rsp),%xmm1
movsd  0xb8(%rsp),%xmm2
movsd  0x88(%rsp),%xmm3
mov    %rbp,%rsi
mov    $0x4,%al
call   1040 <fprintf@plt>
mov    (%r14),%edi
lea    0xd5a(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    %r12,%rdi
mov    $0x6,%esi
mov    %rbx,%rdx
mov    %r13,%rcx
mov    %r15,%r8
mov    %rsp,%r9
call   1030 <uv_to_spherical@plt>
mov    (%r14),%edi
movsd  0x30(%rsp),%xmm0
movsd  (%rsp),%xmm1
movsd  0x90(%rsp),%xmm2
movsd  0x60(%rsp),%xmm3
lea    0xd19(%rip),%rbx
mov    %rbx,%rsi
mov    $0x4,%al
call   1040 <fprintf@plt>
mov    (%r14),%edi
movsd  0x38(%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
movsd  0x98(%rsp),%xmm2
movsd  0x68(%rsp),%xmm3
mov    %rbx,%rsi
mov    $0x4,%al
call   1040 <fprintf@plt>
mov    (%r14),%edi
movsd  0x40(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
movsd  0xa0(%rsp),%xmm2
movsd  0x70(%rsp),%xmm3
mov    %rbx,%rsi
mov    $0x4,%al
call   1040 <fprintf@plt>
mov    (%r14),%edi
movsd  0x48(%rsp),%xmm0
movsd  0x18(%rsp),%xmm1
movsd  0xa8(%rsp),%xmm2
movsd  0x78(%rsp),%xmm3
mov    %rbx,%rsi
mov    $0x4,%al
call   1040 <fprintf@plt>
mov    (%r14),%edi
movsd  0x50(%rsp),%xmm0
movsd  0x20(%rsp),%xmm1
movsd  0xb0(%rsp),%xmm2
movsd  0x80(%rsp),%xmm3
mov    %rbx,%rsi
mov    $0x4,%al
call   1040 <fprintf@plt>
mov    (%r14),%edi
movsd  0x58(%rsp),%xmm0
movsd  0x28(%rsp),%xmm1
movsd  0xb8(%rsp),%xmm2
movsd  0x88(%rsp),%xmm3
mov    %rbx,%rsi
mov    $0x4,%al
call   1040 <fprintf@plt>
xor    %eax,%eax
add    $0xd8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@M_PI = global i32 0
@stderr = global i32 0
@.str = [34 x i8] c"(%.15e, %.15e) -> (%.15e, %.15e)\0A\00"
@.str.1 = [3 x i8] c"\0A\0A\00"
@.str.2 = [34 x i8] c"(%.15e, %.15e) <- (%.15e, %.15e)\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca [6 x double]
%8 = alloca [6 x double]
%9 = alloca [2 x double]
%10 = alloca [6 x double]
%11 = alloca [6 x double]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%12 = getelementptr inbounds [2 x double], [2 x double]* %9, i64 0, i64 0
%13 = load i32, i32* @M_PI
%14 = sdiv i32 %13, 2
%15 = sitofp i32 %14 to double
store double %15, double* %12
%16 = getelementptr inbounds double, double* %12, i64 1
store double 0.000000e+00, double* %16
%17 = getelementptr inbounds [6 x double], [6 x double]* %10, i64 0, i64 0
store double 1.000000e-01, double* %17
%18 = getelementptr inbounds double, double* %17, i64 1
store double 2.000000e-01, double* %18
%19 = getelementptr inbounds double, double* %18, i64 1
store double 3.000000e-01, double* %19
%20 = getelementptr inbounds double, double* %19, i64 1
store double 3.000000e-01, double* %20
%21 = getelementptr inbounds double, double* %20, i64 1
%22 = getelementptr inbounds [2 x double], [2 x double]* %9, i64 0, i64 0
%23 = load double, double* %22
store double %23, double* %21
%24 = getelementptr inbounds double, double* %21, i64 1
%25 = load i32, i32* @M_PI
%26 = sdiv i32 %25, 4
%27 = sitofp i32 %26 to double
store double %27, double* %24
%28 = getelementptr inbounds [6 x double], [6 x double]* %11, i64 0, i64 0
store double 1.000000e-01, double* %28
%29 = getelementptr inbounds double, double* %28, i64 1
store double 1.000000e-01, double* %29
%30 = getelementptr inbounds double, double* %29, i64 1
store double 3.000000e-01, double* %30
%31 = getelementptr inbounds double, double* %30, i64 1
store double 4.000000e-01, double* %31
%32 = getelementptr inbounds double, double* %31, i64 1
%33 = getelementptr inbounds [2 x double], [2 x double]* %9, i64 0, i64 1
%34 = load double, double* %33
store double %34, double* %32
%35 = getelementptr inbounds double, double* %32, i64 1
%36 = load i32, i32* @M_PI
%37 = sdiv i32 %36, 4
%38 = sitofp i32 %37 to double
store double %38, double* %35
%39 = getelementptr inbounds [2 x double], [2 x double]* %9, i64 0, i64 0
%40 = getelementptr inbounds [6 x double], [6 x double]* %10, i64 0, i64 0
%41 = getelementptr inbounds [6 x double], [6 x double]* %11, i64 0, i64 0
%42 = getelementptr inbounds [6 x double], [6 x double]* %7, i64 0, i64 0
%43 = getelementptr inbounds [6 x double], [6 x double]* %8, i64 0, i64 0
%44 = call i32 @spherical_to_uv2(double* %39, i32 6, double* %40, double* %41, double* %42, double* %43)
store i32 0, i32* %6
br label %45
45: ; preds = %67, %2
%46 = load i32, i32* %6
%47 = icmp slt i32 %46, 6
br i1 %47, label %48, label %70
48: ; preds = %45
%49 = load i32, i32* @stderr
%50 = load i32, i32* %6
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [6 x double], [6 x double]* %10, i64 0, i64 %51
%53 = load double, double* %52
%54 = load i32, i32* %6
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds [6 x double], [6 x double]* %11, i64 0, i64 %55
%57 = load double, double* %56
%58 = load i32, i32* %6
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds [6 x double], [6 x double]* %7, i64 0, i64 %59
%61 = load double, double* %60
%62 = load i32, i32* %6
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds [6 x double], [6 x double]* %8, i64 0, i64 %63
%65 = load double, double* %64
%66 = call i32 (i32, i8*, ...) @fprintf(i32 %49, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), double %53, double %57, double %61, double %65)
br label %67
67: ; preds = %48
%68 = load i32, i32* %6
%69 = add nsw i32 %68, 1
store i32 %69, i32* %6
br label %45
70: ; preds = %45
%71 = load i32, i32* @stderr
%72 = call i32 (i32, i8*, ...) @fprintf(i32 %71, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%73 = getelementptr inbounds [2 x double], [2 x double]* %9, i64 0, i64 0
%74 = getelementptr inbounds [6 x double], [6 x double]* %7, i64 0, i64 0
%75 = getelementptr inbounds [6 x double], [6 x double]* %8, i64 0, i64 0
%76 = getelementptr inbounds [6 x double], [6 x double]* %10, i64 0, i64 0
%77 = getelementptr inbounds [6 x double], [6 x double]* %11, i64 0, i64 0
%78 = call i32 @uv_to_spherical(double* %73, i32 6, double* %74, double* %75, double* %76, double* %77)
store i32 0, i32* %6
br label %79
79: ; preds = %101, %70
%80 = load i32, i32* %6
%81 = icmp slt i32 %80, 6
br i1 %81, label %82, label %104
82: ; preds = %79
%83 = load i32, i32* @stderr
%84 = load i32, i32* %6
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds [6 x double], [6 x double]* %10, i64 0, i64 %85
%87 = load double, double* %86
%88 = load i32, i32* %6
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds [6 x double], [6 x double]* %11, i64 0, i64 %89
%91 = load double, double* %90
%92 = load i32, i32* %6
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds [6 x double], [6 x double]* %7, i64 0, i64 %93
%95 = load double, double* %94
%96 = load i32, i32* %6
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds [6 x double], [6 x double]* %8, i64 0, i64 %97
%99 = load double, double* %98
%100 = call i32 (i32, i8*, ...) @fprintf(i32 %83, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0), double %87, double %91, double %95, double %99)
br label %101
101: ; preds = %82
%102 = load i32, i32* %6
%103 = add nsw i32 %102, 1
store i32 %103, i32* %6
br label %79
104: ; preds = %79
ret i32 0
}

LLVM IR (-O2):
@M_PI = global i32 0
@stderr = global i32 0
@.str = [34 x i8] c"(%.15e, %.15e) -> (%.15e, %.15e)\0A\00"
@.str.1 = [3 x i8] c"\0A\0A\00"
@.str.2 = [34 x i8] c"(%.15e, %.15e) <- (%.15e, %.15e)\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [6 x double]
%4 = alloca [6 x double]
%5 = alloca [2 x double]
%6 = alloca [6 x double]
%7 = alloca [6 x double]
%8 = bitcast [6 x double]* %3 to i8*
%9 = bitcast [6 x double]* %4 to i8*
%10 = bitcast [2 x double]* %5 to i8*
%11 = getelementptr inbounds [2 x double], [2 x double]* %5, i64 0, i64 0
%12 = load i32, i32* @M_PI
%13 = sdiv i32 %12, 2
%14 = sitofp i32 %13 to double
store double %14, double* %11
%15 = getelementptr inbounds [2 x double], [2 x double]* %5, i64 0, i64 1
store double 0.000000e+00, double* %15
%16 = bitcast [6 x double]* %6 to i8*
%17 = getelementptr inbounds [6 x double], [6 x double]* %6, i64 0, i64 0
%18 = getelementptr inbounds [6 x double], [6 x double]* %6, i64 0, i64 1
%19 = bitcast [6 x double]* %6 to <2 x double>*
store <2 x double> <double 1.000000e-01, double 2.000000e-01>, <2 x double>* %19
%20 = getelementptr inbounds [6 x double], [6 x double]* %6, i64 0, i64 2
%21 = getelementptr inbounds [6 x double], [6 x double]* %6, i64 0, i64 3
%22 = bitcast double* %20 to <2 x double>*
store <2 x double> <double 3.000000e-01, double 3.000000e-01>, <2 x double>* %22
%23 = getelementptr inbounds [6 x double], [6 x double]* %6, i64 0, i64 4
store double %14, double* %23
%24 = getelementptr inbounds [6 x double], [6 x double]* %6, i64 0, i64 5
%25 = sdiv i32 %12, 4
%26 = sitofp i32 %25 to double
store double %26, double* %24
%27 = bitcast [6 x double]* %7 to i8*
%28 = getelementptr inbounds [6 x double], [6 x double]* %7, i64 0, i64 0
%29 = getelementptr inbounds [6 x double], [6 x double]* %7, i64 0, i64 1
%30 = bitcast [6 x double]* %7 to <2 x double>*
store <2 x double> <double 1.000000e-01, double 1.000000e-01>, <2 x double>* %30
%31 = getelementptr inbounds [6 x double], [6 x double]* %7, i64 0, i64 2
%32 = getelementptr inbounds [6 x double], [6 x double]* %7, i64 0, i64 3
%33 = bitcast double* %31 to <2 x double>*
store <2 x double> <double 3.000000e-01, double 4.000000e-01>, <2 x double>* %33
%34 = getelementptr inbounds [6 x double], [6 x double]* %7, i64 0, i64 4
store double 0.000000e+00, double* %34
%35 = getelementptr inbounds [6 x double], [6 x double]* %7, i64 0, i64 5
store double %26, double* %35
%36 = getelementptr inbounds [6 x double], [6 x double]* %3, i64 0, i64 0
%37 = getelementptr inbounds [6 x double], [6 x double]* %4, i64 0, i64 0
%38 = call i32 @spherical_to_uv2(double* %11, i32 6, double* %17, double* %28, double* %36, double* %37)
%39 = load i32, i32* @stderr
%40 = load double, double* %17
%41 = load double, double* %28
%42 = load double, double* %36
%43 = load double, double* %37
%44 = call i32 (i32, i8*, ...) @fprintf(i32 %39, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), double %40, double %41, double %42, double %43)
%45 = load i32, i32* @stderr
%46 = load double, double* %18
%47 = load double, double* %29
%48 = getelementptr inbounds [6 x double], [6 x double]* %3, i64 0, i64 1
%49 = load double, double* %48
%50 = getelementptr inbounds [6 x double], [6 x double]* %4, i64 0, i64 1
%51 = load double, double* %50
%52 = call i32 (i32, i8*, ...) @fprintf(i32 %45, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), double %46, double %47, double %49, double %51)
%53 = load i32, i32* @stderr
%54 = load double, double* %20
%55 = load double, double* %31
%56 = getelementptr inbounds [6 x double], [6 x double]* %3, i64 0, i64 2
%57 = load double, double* %56
%58 = getelementptr inbounds [6 x double], [6 x double]* %4, i64 0, i64 2
%59 = load double, double* %58
%60 = call i32 (i32, i8*, ...) @fprintf(i32 %53, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), double %54, double %55, double %57, double %59)
%61 = load i32, i32* @stderr
%62 = load double, double* %21
%63 = load double, double* %32
%64 = getelementptr inbounds [6 x double], [6 x double]* %3, i64 0, i64 3
%65 = load double, double* %64
%66 = getelementptr inbounds [6 x double], [6 x double]* %4, i64 0, i64 3
%67 = load double, double* %66
%68 = call i32 (i32, i8*, ...) @fprintf(i32 %61, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), double %62, double %63, double %65, double %67)
%69 = load i32, i32* @stderr
%70 = load double, double* %23
%71 = load double, double* %34
%72 = getelementptr inbounds [6 x double], [6 x double]* %3, i64 0, i64 4
%73 = load double, double* %72
%74 = getelementptr inbounds [6 x double], [6 x double]* %4, i64 0, i64 4
%75 = load double, double* %74
%76 = call i32 (i32, i8*, ...) @fprintf(i32 %69, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), double %70, double %71, double %73, double %75)
%77 = load i32, i32* @stderr
%78 = load double, double* %24
%79 = load double, double* %35
%80 = getelementptr inbounds [6 x double], [6 x double]* %3, i64 0, i64 5
%81 = load double, double* %80
%82 = getelementptr inbounds [6 x double], [6 x double]* %4, i64 0, i64 5
%83 = load double, double* %82
%84 = call i32 (i32, i8*, ...) @fprintf(i32 %77, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), double %78, double %79, double %81, double %83)
%85 = load i32, i32* @stderr
%86 = call i32 (i32, i8*, ...) @fprintf(i32 %85, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%87 = call i32 @uv_to_spherical(double* %11, i32 6, double* %36, double* %37, double* %17, double* %28)
%88 = load i32, i32* @stderr
%89 = load double, double* %17
%90 = load double, double* %28
%91 = load double, double* %36
%92 = load double, double* %37
%93 = call i32 (i32, i8*, ...) @fprintf(i32 %88, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0), double %89, double %90, double %91, double %92)
%94 = load i32, i32* @stderr
%95 = load double, double* %18
%96 = load double, double* %29
%97 = load double, double* %48
%98 = load double, double* %50
%99 = call i32 (i32, i8*, ...) @fprintf(i32 %94, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0), double %95, double %96, double %97, double %98)
%100 = load i32, i32* @stderr
%101 = load double, double* %20
%102 = load double, double* %31
%103 = load double, double* %56
%104 = load double, double* %58
%105 = call i32 (i32, i8*, ...) @fprintf(i32 %100, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0), double %101, double %102, double %103, double %104)
%106 = load i32, i32* @stderr
%107 = load double, double* %21
%108 = load double, double* %32
%109 = load double, double* %64
%110 = load double, double* %66
%111 = call i32 (i32, i8*, ...) @fprintf(i32 %106, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0), double %107, double %108, double %109, double %110)
%112 = load i32, i32* @stderr
%113 = load double, double* %23
%114 = load double, double* %34
%115 = load double, double* %72
%116 = load double, double* %74
%117 = call i32 (i32, i8*, ...) @fprintf(i32 %112, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0), double %113, double %114, double %115, double %116)
%118 = load i32, i32* @stderr
%119 = load double, double* %24
%120 = load double, double* %35
%121 = load double, double* %80
%122 = load double, double* %82
%123 = call i32 (i32, i8*, ...) @fprintf(i32 %118, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0), double %119, double %120, double %121, double %122)
ret i32 0
}