#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 atof(char *);
int /*<<< orphan*/ printf(char *, ...);
float sqrt(double);
int main(int argc, char **argv) {
  double eerot[9], eetrans[3];
  double qw;
  double qx;
  double qy;
  double qz;
  double n;
  if (argc != 5) {
    printf("usage: %s <rot> <x> <y> <Z>\n", argv[0]);
    return 1;
  }
  qw = atof(argv[1]);
  qx = atof(argv[2]);
  qy = atof(argv[3]);
  qz = atof(argv[4]);
  n = 1.0f / sqrt(qx * qx + qy * qy + qz * qz + qw * qw);
  qw *= n;
  qx *= n;
  qy *= n;
  qz *= n;
  eerot[0] = 1.0f - 2.0f * qy * qy - 2.0f * qz * qz;
  eerot[1] = 2.0f * qx * qy - 2.0f * qz * qw;
  eerot[2] = 2.0f * qx * qz + 2.0f * qy * qw;
  eerot[3] = 2.0f * qx * qy + 2.0f * qz * qw;
  eerot[4] = 1.0f - 2.0f * qx * qx - 2.0f * qz * qz;
  eerot[5] = 2.0f * qy * qz - 2.0f * qx * qw;
  eerot[6] = 2.0f * qx * qz - 2.0f * qy * qw;
  eerot[7] = 2.0f * qy * qz + 2.0f * qx * qw;
  eerot[8] = 1.0f - 2.0f * qx * qx - 2.0f * qy * qy;
  printf("     Rotation     %f   %f   %f  \n", eerot[0], eerot[1], eerot[2]);
  printf("                  %f   %f   %f  \n", eerot[3], eerot[4], eerot[5]);
  printf("                  %f   %f   %f  \n", eerot[6], eerot[7], eerot[8]);
  printf("\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x5,-0x8(%rbp)
je     1174 <main+0x44>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xeb3(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1630 <main+0x500>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1030 <atof@plt>
movsd  %xmm0,-0x88(%rbp)
ff
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   1030 <atof@plt>
movsd  %xmm0,-0x90(%rbp)
ff
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
call   1030 <atof@plt>
movsd  %xmm0,-0x98(%rbp)
ff
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%rdi
call   1030 <atof@plt>
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x90(%rbp),%xmm0
ff
movsd  -0x90(%rbp),%xmm2
ff
movsd  -0x98(%rbp),%xmm1
ff
mulsd  -0x98(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0xa0(%rbp),%xmm1
ff
movsd  -0xa0(%rbp),%xmm2
ff
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x88(%rbp),%xmm0
ff
movsd  -0x88(%rbp),%xmm2
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1050 <sqrt@plt>
movaps %xmm0,%xmm1
movss  0xde0(%rip),%xmm0
divss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  -0xa8(%rbp),%xmm0
ff
mulsd  -0x88(%rbp),%xmm0
ff
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0xa8(%rbp),%xmm0
ff
mulsd  -0x90(%rbp),%xmm0
ff
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0xa8(%rbp),%xmm0
ff
mulsd  -0x98(%rbp),%xmm0
ff
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0xa8(%rbp),%xmm0
ff
mulsd  -0xa0(%rbp),%xmm0
ff
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  0xd58(%rip),%xmm1
mulsd  -0x98(%rbp),%xmm1
ff
movsd  -0x98(%rbp),%xmm0
ff
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm0,%xmm1
movsd  0xd2d(%rip),%xmm0
addsd  %xmm0,%xmm1
movsd  0xd19(%rip),%xmm0
mulsd  -0xa0(%rbp),%xmm0
ff
movsd  -0xa0(%rbp),%xmm2
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  0xcdd(%rip),%xmm0
mulsd  -0x90(%rbp),%xmm0
ff
movsd  -0x98(%rbp),%xmm2
ff
movsd  0xcc5(%rip),%xmm1
mulsd  -0xa0(%rbp),%xmm1
ff
mulsd  -0x88(%rbp),%xmm1
ff
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  0xc89(%rip),%xmm0
mulsd  -0x90(%rbp),%xmm0
ff
movsd  -0xa0(%rbp),%xmm2
ff
movsd  0xc71(%rip),%xmm1
mulsd  -0x98(%rbp),%xmm1
ff
mulsd  -0x88(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  0xc4c(%rip),%xmm0
mulsd  -0x90(%rbp),%xmm0
ff
movsd  -0x98(%rbp),%xmm2
ff
movsd  0xc34(%rip),%xmm1
mulsd  -0xa0(%rbp),%xmm1
ff
mulsd  -0x88(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  0xc0f(%rip),%xmm1
mulsd  -0x90(%rbp),%xmm1
ff
movsd  -0x90(%rbp),%xmm0
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm0,%xmm1
movsd  0xbe4(%rip),%xmm0
addsd  %xmm0,%xmm1
movsd  0xbd0(%rip),%xmm0
mulsd  -0xa0(%rbp),%xmm0
ff
movsd  -0xa0(%rbp),%xmm2
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  0xb94(%rip),%xmm0
mulsd  -0x98(%rbp),%xmm0
ff
movsd  -0xa0(%rbp),%xmm2
ff
movsd  0xb7c(%rip),%xmm1
mulsd  -0x90(%rbp),%xmm1
ff
mulsd  -0x88(%rbp),%xmm1
ff
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  0xb40(%rip),%xmm0
mulsd  -0x90(%rbp),%xmm0
ff
movsd  -0xa0(%rbp),%xmm2
ff
movsd  0xb28(%rip),%xmm1
mulsd  -0x98(%rbp),%xmm1
ff
mulsd  -0x88(%rbp),%xmm1
ff
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  0xaec(%rip),%xmm0
mulsd  -0x98(%rbp),%xmm0
ff
movsd  -0xa0(%rbp),%xmm2
ff
movsd  0xad4(%rip),%xmm1
mulsd  -0x90(%rbp),%xmm1
ff
mulsd  -0x88(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  0xaaf(%rip),%xmm1
mulsd  -0x90(%rbp),%xmm1
ff
movsd  -0x90(%rbp),%xmm0
ff
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm0,%xmm1
movsd  0xa84(%rip),%xmm0
addsd  %xmm0,%xmm1
movsd  0xa70(%rip),%xmm0
mulsd  -0x98(%rbp),%xmm0
ff
movsd  -0x98(%rbp),%xmm2
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x60(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm1
movsd  -0x50(%rbp),%xmm2
lea    0xa57(%rip),%rdi
mov    $0x3,%al
call   1040 <printf@plt>
movsd  -0x48(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
movsd  -0x38(%rbp),%xmm2
lea    0xa5c(%rip),%rdi
mov    $0x3,%al
call   1040 <printf@plt>
movsd  -0x30(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
lea    0xa3f(%rip),%rdi
mov    $0x3,%al
call   1040 <printf@plt>
lea    0xa51(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x50,%rsp
mov    %rsi,%rbx
cmp    $0x5,%edi
jne    134e <main+0x20e>
mov    0x8(%rbx),%rdi
call   1040 <atof@plt>
movsd  %xmm0,0x10(%rsp)
mov    0x10(%rbx),%rdi
call   1040 <atof@plt>
movsd  %xmm0,(%rsp)
mov    0x18(%rbx),%rdi
call   1040 <atof@plt>
movsd  %xmm0,0x8(%rsp)
mov    0x20(%rbx),%rdi
call   1040 <atof@plt>
movsd  %xmm0,0x20(%rsp)
movsd  0x8(%rsp),%xmm2
mulsd  %xmm2,%xmm2
movsd  (%rsp),%xmm1
mulsd  %xmm1,%xmm1
addsd  %xmm2,%xmm1
movapd %xmm0,%xmm2
mulsd  %xmm0,%xmm2
addsd  %xmm1,%xmm2
movsd  0x10(%rsp),%xmm0
mulsd  %xmm0,%xmm0
addsd  %xmm2,%xmm0
call   1060 <sqrt@plt>
movss  0xe36(%rip),%xmm1
divss  %xmm0,%xmm1
xorps  %xmm0,%xmm0
cvtss2sd %xmm1,%xmm0
movsd  0x10(%rsp),%xmm2
mulsd  %xmm0,%xmm2
movsd  (%rsp),%xmm6
mulsd  %xmm0,%xmm6
movsd  0x8(%rsp),%xmm1
mulsd  %xmm0,%xmm1
movsd  0x20(%rsp),%xmm3
mulsd  %xmm0,%xmm3
movapd %xmm1,%xmm14
addsd  %xmm1,%xmm14
movapd 0xe02(%rip),%xmm5
movapd %xmm14,%xmm13
xorpd  %xmm5,%xmm13
mulsd  %xmm1,%xmm13
movapd %xmm1,%xmm9
movsd  0xdf6(%rip),%xmm1
movapd %xmm13,%xmm0
addsd  %xmm1,%xmm0
movapd %xmm1,%xmm11
movapd %xmm3,%xmm4
addsd  %xmm3,%xmm4
xorpd  %xmm4,%xmm5
mulsd  %xmm3,%xmm5
movapd %xmm3,%xmm10
addsd  %xmm5,%xmm0
movapd %xmm5,%xmm12
movapd %xmm6,%xmm3
movapd %xmm6,%xmm8
addsd  %xmm6,%xmm3
mulsd  %xmm2,%xmm4
mulsd  %xmm3,%xmm9
movapd %xmm9,%xmm1
movapd %xmm9,%xmm7
subsd  %xmm4,%xmm1
movapd %xmm2,%xmm6
movapd %xmm2,%xmm9
mulsd  %xmm14,%xmm6
movapd %xmm3,%xmm5
mulsd  %xmm10,%xmm5
movapd %xmm5,%xmm2
addsd  %xmm6,%xmm2
addsd  %xmm4,%xmm7
movsd  %xmm7,0x8(%rsp)
movapd %xmm8,%xmm4
mulsd  %xmm3,%xmm4
subsd  %xmm4,%xmm11
addsd  %xmm11,%xmm12
movapd %xmm12,0x10(%rsp)
mulsd  %xmm9,%xmm3
mulsd  %xmm10,%xmm14
movapd %xmm14,%xmm4
subsd  %xmm3,%xmm4
movapd %xmm4,0x40(%rsp)
subsd  %xmm6,%xmm5
movsd  %xmm5,(%rsp)
addsd  %xmm3,%xmm14
movapd %xmm14,0x20(%rsp)
addsd  %xmm13,%xmm11
movsd  %xmm11,0x38(%rsp)
lea    0xd47(%rip),%rdi
mov    $0x3,%al
call   1050 <printf@plt>
lea    0xd5b(%rip),%rbx
mov    %rbx,%rdi
movsd  0x8(%rsp),%xmm0
movaps 0x10(%rsp),%xmm1
movaps 0x40(%rsp),%xmm2
mov    $0x3,%al
call   1050 <printf@plt>
mov    %rbx,%rdi
movsd  (%rsp),%xmm0
movaps 0x20(%rsp),%xmm1
movsd  0x38(%rsp),%xmm2
mov    $0x3,%al
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
jmp    1364 <main+0x224>
mov    (%rbx),%rsi
lea    0xcd0(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x1,%eax
add    $0x50,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [29 x i8] c"usage: %s <rot> <x> <y> <Z>\0A\00"
@.str.1 = [34 x i8] c" Rotation %f %f %f \0A\00"
@.str.2 = [34 x i8] c" %f %f %f \0A\00"
@.str.3 = [2 x i8] c"\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [9 x double]
%7 = alloca [3 x double]
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca double
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%13 = load i32, i32* %4
%14 = icmp ne i32 %13, 5
br i1 %14, label %15, label %20
15: ; preds = %2
%16 = load i8**, i8*** %5
%17 = getelementptr inbounds i8*, i8** %16, i64 0
%18 = load i8*, i8** %17
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i8* %18)
store i32 1, i32* %3
br label %176
20: ; preds = %2
%21 = load i8**, i8*** %5
%22 = getelementptr inbounds i8*, i8** %21, i64 1
%23 = load i8*, i8** %22
%24 = call double @atof(i8* %23)
store double %24, double* %8
%25 = load i8**, i8*** %5
%26 = getelementptr inbounds i8*, i8** %25, i64 2
%27 = load i8*, i8** %26
%28 = call double @atof(i8* %27)
store double %28, double* %9
%29 = load i8**, i8*** %5
%30 = getelementptr inbounds i8*, i8** %29, i64 3
%31 = load i8*, i8** %30
%32 = call double @atof(i8* %31)
store double %32, double* %10
%33 = load i8**, i8*** %5
%34 = getelementptr inbounds i8*, i8** %33, i64 4
%35 = load i8*, i8** %34
%36 = call double @atof(i8* %35)
store double %36, double* %11
%37 = load double, double* %9
%38 = load double, double* %9
%39 = load double, double* %10
%40 = load double, double* %10
%41 = fmul double %39, %40
%42 = call double @llvm.fmuladd.f64(double %37, double %38, double %41)
%43 = load double, double* %11
%44 = load double, double* %11
%45 = call double @llvm.fmuladd.f64(double %43, double %44, double %42)
%46 = load double, double* %8
%47 = load double, double* %8
%48 = call double @llvm.fmuladd.f64(double %46, double %47, double %45)
%49 = call float @sqrt(double %48)
%50 = fdiv float 1.000000e+00, %49
%51 = fpext float %50 to double
store double %51, double* %12
%52 = load double, double* %12
%53 = load double, double* %8
%54 = fmul double %53, %52
store double %54, double* %8
%55 = load double, double* %12
%56 = load double, double* %9
%57 = fmul double %56, %55
store double %57, double* %9
%58 = load double, double* %12
%59 = load double, double* %10
%60 = fmul double %59, %58
store double %60, double* %10
%61 = load double, double* %12
%62 = load double, double* %11
%63 = fmul double %62, %61
store double %63, double* %11
%64 = load double, double* %10
%65 = fmul double 2.000000e+00, %64
%66 = load double, double* %10
%67 = fneg double %65
%68 = call double @llvm.fmuladd.f64(double %67, double %66, double 1.000000e+00)
%69 = load double, double* %11
%70 = fmul double 2.000000e+00, %69
%71 = load double, double* %11
%72 = fneg double %70
%73 = call double @llvm.fmuladd.f64(double %72, double %71, double %68)
%74 = getelementptr inbounds [9 x double], [9 x double]* %6, i64 0, i64 0
store double %73, double* %74
%75 = load double, double* %9
%76 = fmul double 2.000000e+00, %75
%77 = load double, double* %10
%78 = load double, double* %11
%79 = fmul double 2.000000e+00, %78
%80 = load double, double* %8
%81 = fmul double %79, %80
%82 = fneg double %81
%83 = call double @llvm.fmuladd.f64(double %76, double %77, double %82)
%84 = getelementptr inbounds [9 x double], [9 x double]* %6, i64 0, i64 1
store double %83, double* %84
%85 = load double, double* %9
%86 = fmul double 2.000000e+00, %85
%87 = load double, double* %11
%88 = load double, double* %10
%89 = fmul double 2.000000e+00, %88
%90 = load double, double* %8
%91 = fmul double %89, %90
%92 = call double @llvm.fmuladd.f64(double %86, double %87, double %91)
%93 = getelementptr inbounds [9 x double], [9 x double]* %6, i64 0, i64 2
store double %92, double* %93
%94 = load double, double* %9
%95 = fmul double 2.000000e+00, %94
%96 = load double, double* %10
%97 = load double, double* %11
%98 = fmul double 2.000000e+00, %97
%99 = load double, double* %8
%100 = fmul double %98, %99
%101 = call double @llvm.fmuladd.f64(double %95, double %96, double %100)
%102 = getelementptr inbounds [9 x double], [9 x double]* %6, i64 0, i64 3
store double %101, double* %102
%103 = load double, double* %9
%104 = fmul double 2.000000e+00, %103
%105 = load double, double* %9
%106 = fneg double %104
%107 = call double @llvm.fmuladd.f64(double %106, double %105, double 1.000000e+00)
%108 = load double, double* %11
%109 = fmul double 2.000000e+00, %108
%110 = load double, double* %11
%111 = fneg double %109
%112 = call double @llvm.fmuladd.f64(double %111, double %110, double %107)
%113 = getelementptr inbounds [9 x double], [9 x double]* %6, i64 0, i64 4
store double %112, double* %113
%114 = load double, double* %10
%115 = fmul double 2.000000e+00, %114
%116 = load double, double* %11
%117 = load double, double* %9
%118 = fmul double 2.000000e+00, %117
%119 = load double, double* %8
%120 = fmul double %118, %119
%121 = fneg double %120
%122 = call double @llvm.fmuladd.f64(double %115, double %116, double %121)
%123 = getelementptr inbounds [9 x double], [9 x double]* %6, i64 0, i64 5
store double %122, double* %123
%124 = load double, double* %9
%125 = fmul double 2.000000e+00, %124
%126 = load double, double* %11
%127 = load double, double* %10
%128 = fmul double 2.000000e+00, %127
%129 = load double, double* %8
%130 = fmul double %128, %129
%131 = fneg double %130
%132 = call double @llvm.fmuladd.f64(double %125, double %126, double %131)
%133 = getelementptr inbounds [9 x double], [9 x double]* %6, i64 0, i64 6
store double %132, double* %133
%134 = load double, double* %10
%135 = fmul double 2.000000e+00, %134
%136 = load double, double* %11
%137 = load double, double* %9
%138 = fmul double 2.000000e+00, %137
%139 = load double, double* %8
%140 = fmul double %138, %139
%141 = call double @llvm.fmuladd.f64(double %135, double %136, double %140)
%142 = getelementptr inbounds [9 x double], [9 x double]* %6, i64 0, i64 7
store double %141, double* %142
%143 = load double, double* %9
%144 = fmul double 2.000000e+00, %143
%145 = load double, double* %9
%146 = fneg double %144
%147 = call double @llvm.fmuladd.f64(double %146, double %145, double 1.000000e+00)
%148 = load double, double* %10
%149 = fmul double 2.000000e+00, %148
%150 = load double, double* %10
%151 = fneg double %149
%152 = call double @llvm.fmuladd.f64(double %151, double %150, double %147)
%153 = getelementptr inbounds [9 x double], [9 x double]* %6, i64 0, i64 8
store double %152, double* %153
%154 = getelementptr inbounds [9 x double], [9 x double]* %6, i64 0, i64 0
%155 = load double, double* %154
%156 = getelementptr inbounds [9 x double], [9 x double]* %6, i64 0, i64 1
%157 = load double, double* %156
%158 = getelementptr inbounds [9 x double], [9 x double]* %6, i64 0, i64 2
%159 = load double, double* %158
%160 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0), double %155, double %157, double %159)
%161 = getelementptr inbounds [9 x double], [9 x double]* %6, i64 0, i64 3
%162 = load double, double* %161
%163 = getelementptr inbounds [9 x double], [9 x double]* %6, i64 0, i64 4
%164 = load double, double* %163
%165 = getelementptr inbounds [9 x double], [9 x double]* %6, i64 0, i64 5
%166 = load double, double* %165
%167 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0), double %162, double %164, double %166)
%168 = getelementptr inbounds [9 x double], [9 x double]* %6, i64 0, i64 6
%169 = load double, double* %168
%170 = getelementptr inbounds [9 x double], [9 x double]* %6, i64 0, i64 7
%171 = load double, double* %170
%172 = getelementptr inbounds [9 x double], [9 x double]* %6, i64 0, i64 8
%173 = load double, double* %172
%174 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0), double %169, double %171, double %173)
%175 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %3
br label %176
176: ; preds = %20, %15
%177 = load i32, i32* %3
ret i32 %177
}

LLVM IR (-O2):
@.str = [29 x i8] c"usage: %s <rot> <x> <y> <Z>\0A\00"
@.str.1 = [34 x i8] c" Rotation %f %f %f \0A\00"
@.str.2 = [34 x i8] c" %f %f %f \0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp eq i32 %0, 5
br i1 %3, label %7, label %4
4: ; preds = %2
%5 = load i8*, i8** %1
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i8* %5)
br label %58
7: ; preds = %2
%8 = getelementptr inbounds i8*, i8** %1, i64 1
%9 = load i8*, i8** %8
%10 = tail call double @atof(i8* %9)
%11 = getelementptr inbounds i8*, i8** %1, i64 2
%12 = load i8*, i8** %11
%13 = tail call double @atof(i8* %12)
%14 = getelementptr inbounds i8*, i8** %1, i64 3
%15 = load i8*, i8** %14
%16 = tail call double @atof(i8* %15)
%17 = getelementptr inbounds i8*, i8** %1, i64 4
%18 = load i8*, i8** %17
%19 = tail call double @atof(i8* %18)
%20 = fmul double %16, %16
%21 = tail call double @llvm.fmuladd.f64(double %13, double %13, double %20)
%22 = tail call double @llvm.fmuladd.f64(double %19, double %19, double %21)
%23 = tail call double @llvm.fmuladd.f64(double %10, double %10, double %22)
%24 = tail call float @sqrt(double %23)
%25 = fdiv float 1.000000e+00, %24
%26 = fpext float %25 to double
%27 = fmul double %10, %26
%28 = fmul double %13, %26
%29 = fmul double %16, %26
%30 = fmul double %19, %26
%31 = fmul double %29, 2.000000e+00
%32 = fneg double %31
%33 = tail call double @llvm.fmuladd.f64(double %32, double %29, double 1.000000e+00)
%34 = fmul double %30, 2.000000e+00
%35 = fneg double %34
%36 = tail call double @llvm.fmuladd.f64(double %35, double %30, double %33)
%37 = fmul double %28, 2.000000e+00
%38 = fmul double %27, %34
%39 = fneg double %38
%40 = tail call double @llvm.fmuladd.f64(double %37, double %29, double %39)
%41 = fmul double %27, %31
%42 = tail call double @llvm.fmuladd.f64(double %37, double %30, double %41)
%43 = tail call double @llvm.fmuladd.f64(double %37, double %29, double %38)
%44 = fneg double %37
%45 = tail call double @llvm.fmuladd.f64(double %44, double %28, double 1.000000e+00)
%46 = tail call double @llvm.fmuladd.f64(double %35, double %30, double %45)
%47 = fmul double %27, %37
%48 = fneg double %47
%49 = tail call double @llvm.fmuladd.f64(double %31, double %30, double %48)
%50 = fneg double %41
%51 = tail call double @llvm.fmuladd.f64(double %37, double %30, double %50)
%52 = tail call double @llvm.fmuladd.f64(double %31, double %30, double %47)
%53 = tail call double @llvm.fmuladd.f64(double %32, double %29, double %45)
%54 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0), double %36, double %40, double %42)
%55 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0), double %43, double %46, double %49)
%56 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0), double %51, double %52, double %53)
%57 = tail call i32 @putchar(i32 10)
br label %58
58: ; preds = %7, %4
%59 = phi i32 [ 1, %4 ], [ 0, %7 ]
ret i32 %59
}