#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 cos(double);
double sin(double);
double sqrt(double);
void umtz_cell_metric(const float *cell, float *metric) {
  double a, b, c, alph, beta, gamm, as, bs, cs, vol;
  a = cell[0];
  alph = cell[3] * (3.1415926535897932384626433832795028841972) / 180.0;
  b = cell[1];
  beta = cell[4] * (3.1415926535897932384626433832795028841972) / 180.0;
  c = cell[2];
  gamm = cell[5] * (3.1415926535897932384626433832795028841972) / 180.0;
  vol = a * b * c *
        sqrt(1.0 - cos(alph) * cos(alph) - cos(beta) * cos(beta) -
             cos(gamm) * cos(gamm) + 2.0 * cos(alph) * cos(beta) * cos(gamm));
  as = b * c * sin(alph) / vol;
  bs = c * a * sin(beta) / vol;
  cs = a * b * sin(gamm) / vol;
  metric[0] = (float)(as * as);
  metric[1] = (float)(bs * bs);
  metric[2] = (float)(cs * cs);
  metric[3] = (float)(2.0 * as * bs * (cos(beta) * cos(alph) - cos(gamm)) /
                      (sin(alph) * sin(beta)));
  metric[4] = (float)(2.0 * cs * as * (cos(alph) * cos(gamm) - cos(beta)) /
                      (sin(gamm) * sin(alph)));
  metric[5] = (float)(2.0 * bs * cs * (cos(gamm) * cos(beta) - cos(alph)) /
                      (sin(beta) * sin(gamm)));
}


x86 assembly (clang, -O0):
<umtz_cell_metric>:
push   %rbp
mov    %rsp,%rbp
sub    $0x140,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movss  (%rax),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x18(%rbp)
mov    -0x8(%rbp),%rax
movss  0xc(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xeaf(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xe9b(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0x8(%rbp),%rax
movss  0x4(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x20(%rbp)
mov    -0x8(%rbp),%rax
movss  0x10(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xe73(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xe5f(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x8(%rbp),%rax
movss  0x8(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x28(%rbp)
mov    -0x8(%rbp),%rax
movss  0x14(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xe37(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xe23(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x18(%rbp),%xmm0
mulsd  -0x20(%rbp),%xmm0
mulsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0xf8(%rbp)
ff
movsd  -0x30(%rbp),%xmm0
call   1040 <cos@plt>
movsd  %xmm0,-0x138(%rbp)
ff
movsd  -0x30(%rbp),%xmm0
call   1040 <cos@plt>
movaps %xmm0,%xmm1
movsd  -0x138(%rbp),%xmm0
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm1,%xmm0
movsd  0xdb1(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x130(%rbp)
ff
movsd  -0x38(%rbp),%xmm0
call   1040 <cos@plt>
movsd  %xmm0,-0x128(%rbp)
ff
movsd  -0x38(%rbp),%xmm0
call   1040 <cos@plt>
movsd  -0x130(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0x128(%rbp),%xmm0
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x120(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
call   1040 <cos@plt>
movsd  %xmm0,-0x118(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
call   1040 <cos@plt>
movsd  -0x120(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0x118(%rbp),%xmm0
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x108(%rbp)
ff
movsd  -0x30(%rbp),%xmm0
call   1040 <cos@plt>
movaps %xmm0,%xmm1
movsd  0xcdc(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x110(%rbp)
ff
movsd  -0x38(%rbp),%xmm0
call   1040 <cos@plt>
movaps %xmm0,%xmm1
movsd  -0x110(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x100(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
call   1040 <cos@plt>
movsd  -0x108(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0x100(%rbp),%xmm0
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1050 <sqrt@plt>
movaps %xmm0,%xmm1
movsd  -0xf8(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x20(%rbp),%xmm0
mulsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0xf0(%rbp)
ff
movsd  -0x30(%rbp),%xmm0
call   1030 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0xf0(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
divsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x28(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0xe8(%rbp)
ff
movsd  -0x38(%rbp),%xmm0
call   1030 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0xe8(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
divsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x18(%rbp),%xmm0
mulsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0xe0(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
call   1030 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0xe0(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
divsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x48(%rbp),%xmm0
mulsd  -0x48(%rbp),%xmm0
cvtsd2ss %xmm0,%xmm0
mov    -0x10(%rbp),%rax
movss  %xmm0,(%rax)
movsd  -0x50(%rbp),%xmm0
mulsd  -0x50(%rbp),%xmm0
cvtsd2ss %xmm0,%xmm0
mov    -0x10(%rbp),%rax
movss  %xmm0,0x4(%rax)
movsd  -0x58(%rbp),%xmm0
mulsd  -0x58(%rbp),%xmm0
cvtsd2ss %xmm0,%xmm0
mov    -0x10(%rbp),%rax
movss  %xmm0,0x8(%rax)
movsd  0xb86(%rip),%xmm0
mulsd  -0x48(%rbp),%xmm0
mulsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0xc8(%rbp)
ff
movsd  -0x38(%rbp),%xmm0
call   1040 <cos@plt>
movsd  %xmm0,-0xd8(%rbp)
ff
movsd  -0x30(%rbp),%xmm0
call   1040 <cos@plt>
movsd  %xmm0,-0xd0(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
call   1040 <cos@plt>
movsd  -0xd8(%rbp),%xmm1
ff
movsd  -0xd0(%rbp),%xmm3
ff
movaps %xmm0,%xmm2
movsd  -0xc8(%rbp),%xmm0
ff
movq   %xmm2,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm2
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  -0x30(%rbp),%xmm0
call   1030 <sin@plt>
movsd  %xmm0,-0xc0(%rbp)
ff
movsd  -0x38(%rbp),%xmm0
call   1030 <sin@plt>
movsd  -0xc0(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0xb8(%rbp),%xmm0
ff
mulsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
mov    -0x10(%rbp),%rax
movss  %xmm0,0xc(%rax)
movsd  0xab4(%rip),%xmm0
mulsd  -0x58(%rbp),%xmm0
mulsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x30(%rbp),%xmm0
call   1040 <cos@plt>
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
call   1040 <cos@plt>
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  -0x38(%rbp),%xmm0
call   1040 <cos@plt>
movsd  -0xb0(%rbp),%xmm1
ff
movsd  -0xa8(%rbp),%xmm3
ff
movaps %xmm0,%xmm2
movsd  -0xa0(%rbp),%xmm0
ff
movq   %xmm2,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm2
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
call   1030 <sin@plt>
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x30(%rbp),%xmm0
call   1030 <sin@plt>
movsd  -0x98(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0x90(%rbp),%xmm0
mulsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
mov    -0x10(%rbp),%rax
movss  %xmm0,0x10(%rax)
movsd  0x9e2(%rip),%xmm0
mulsd  -0x50(%rbp),%xmm0
mulsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x40(%rbp),%xmm0
call   1040 <cos@plt>
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x38(%rbp),%xmm0
call   1040 <cos@plt>
movsd  %xmm0,-0x80(%rbp)
movsd  -0x30(%rbp),%xmm0
call   1040 <cos@plt>
movsd  -0x88(%rbp),%xmm1
ff
movsd  -0x80(%rbp),%xmm3
movaps %xmm0,%xmm2
movsd  -0x78(%rbp),%xmm0
movq   %xmm2,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm2
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x38(%rbp),%xmm0
call   1030 <sin@plt>
movsd  %xmm0,-0x70(%rbp)
movsd  -0x40(%rbp),%xmm0
call   1030 <sin@plt>
movsd  -0x70(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x68(%rbp),%xmm0
mulsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
mov    -0x10(%rbp),%rax
movss  %xmm0,0x14(%rax)
add    $0x140,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<umtz_cell_metric>:
push   %rbx
sub    $0x50,%rsp
mov    %rsi,%rbx
movss  (%rdi),%xmm0
movss  0x4(%rdi),%xmm1
cvtss2sd %xmm0,%xmm3
movss  0xc(%rdi),%xmm0
cvtss2sd %xmm0,%xmm6
movsd  0xeaa(%rip),%xmm0
mulsd  %xmm0,%xmm6
movsd  0xea6(%rip),%xmm2
divsd  %xmm2,%xmm6
movsd  %xmm6,0x30(%rsp)
cvtss2sd %xmm1,%xmm4
movss  0x10(%rdi),%xmm1
cvtss2sd %xmm1,%xmm1
mulsd  %xmm0,%xmm1
divsd  %xmm2,%xmm1
movsd  %xmm1,0x18(%rsp)
movss  0x8(%rdi),%xmm1
cvtss2sd %xmm1,%xmm5
movss  0x14(%rdi),%xmm1
cvtss2sd %xmm1,%xmm1
mulsd  %xmm0,%xmm1
divsd  %xmm2,%xmm1
movsd  %xmm1,0x20(%rsp)
movsd  %xmm3,0x10(%rsp)
movaps %xmm3,%xmm0
movsd  %xmm4,0x28(%rsp)
mulsd  %xmm4,%xmm0
movsd  %xmm0,0x40(%rsp)
movsd  %xmm5,0x48(%rsp)
mulsd  %xmm5,%xmm0
movsd  %xmm0,(%rsp)
movapd %xmm6,%xmm0
call   1040 <cos@plt>
movsd  %xmm0,0x8(%rsp)
movsd  0x30(%rsp),%xmm0
call   1040 <cos@plt>
mulsd  0x8(%rsp),%xmm0
movsd  0xe19(%rip),%xmm1
subsd  %xmm0,%xmm1
movsd  %xmm1,0x8(%rsp)
movsd  0x18(%rsp),%xmm0
call   1040 <cos@plt>
movsd  %xmm0,0x38(%rsp)
movsd  0x18(%rsp),%xmm0
call   1040 <cos@plt>
mulsd  0x38(%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
subsd  %xmm0,%xmm1
movsd  %xmm1,0x8(%rsp)
movsd  0x20(%rsp),%xmm0
call   1040 <cos@plt>
movsd  %xmm0,0x38(%rsp)
movsd  0x20(%rsp),%xmm0
call   1040 <cos@plt>
mulsd  0x38(%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
subsd  %xmm0,%xmm1
movsd  %xmm1,0x8(%rsp)
movsd  0x30(%rsp),%xmm0
call   1040 <cos@plt>
addsd  %xmm0,%xmm0
movsd  %xmm0,0x38(%rsp)
movsd  0x18(%rsp),%xmm0
call   1040 <cos@plt>
mulsd  0x38(%rsp),%xmm0
movsd  %xmm0,0x38(%rsp)
movsd  0x20(%rsp),%xmm0
call   1040 <cos@plt>
mulsd  0x38(%rsp),%xmm0
addsd  0x8(%rsp),%xmm0
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     12b8 <umtz_cell_metric+0x188>
sqrtsd %xmm0,%xmm0
jmp    12bd <umtz_cell_metric+0x18d>
call   1050 <sqrt@plt>
movsd  (%rsp),%xmm1
mulsd  %xmm0,%xmm1
movsd  %xmm1,(%rsp)
movsd  0x28(%rsp),%xmm0
mulsd  0x48(%rsp),%xmm0
movsd  %xmm0,0x28(%rsp)
movsd  0x30(%rsp),%xmm0
call   1030 <sin@plt>
mulsd  0x28(%rsp),%xmm0
divsd  (%rsp),%xmm0
movsd  %xmm0,0x28(%rsp)
movsd  0x10(%rsp),%xmm0
mulsd  0x48(%rsp),%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  0x18(%rsp),%xmm0
call   1030 <sin@plt>
mulsd  0x10(%rsp),%xmm0
divsd  (%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x20(%rsp),%xmm0
call   1030 <sin@plt>
movsd  0x40(%rsp),%xmm3
mulsd  %xmm0,%xmm3
movsd  0x28(%rsp),%xmm4
movapd %xmm4,%xmm0
mulsd  %xmm4,%xmm0
cvtsd2ss %xmm0,%xmm0
divsd  (%rsp),%xmm3
movsd  %xmm3,0x40(%rsp)
movsd  0x8(%rsp),%xmm2
movapd %xmm2,%xmm1
mulsd  %xmm2,%xmm1
cvtsd2ss %xmm1,%xmm1
movss  %xmm0,(%rbx)
movapd %xmm3,%xmm0
mulsd  %xmm3,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm1,0x4(%rbx)
movss  %xmm0,0x8(%rbx)
addsd  %xmm4,%xmm4
mulsd  %xmm2,%xmm4
movsd  %xmm4,0x10(%rsp)
movsd  0x18(%rsp),%xmm0
call   1040 <cos@plt>
movsd  %xmm0,0x48(%rsp)
movsd  0x30(%rsp),%xmm0
call   1040 <cos@plt>
movsd  %xmm0,(%rsp)
movsd  0x20(%rsp),%xmm0
call   1040 <cos@plt>
movsd  (%rsp),%xmm1
mulsd  0x48(%rsp),%xmm1
subsd  %xmm0,%xmm1
mulsd  0x10(%rsp),%xmm1
movsd  %xmm1,(%rsp)
movsd  0x30(%rsp),%xmm0
call   1030 <sin@plt>
movsd  %xmm0,0x10(%rsp)
movsd  0x18(%rsp),%xmm0
call   1030 <sin@plt>
mulsd  0x10(%rsp),%xmm0
movsd  (%rsp),%xmm1
divsd  %xmm0,%xmm1
xorps  %xmm0,%xmm0
cvtsd2ss %xmm1,%xmm0
movss  %xmm0,0xc(%rbx)
movsd  0x40(%rsp),%xmm0
addsd  %xmm0,%xmm0
mulsd  0x28(%rsp),%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  0x30(%rsp),%xmm0
call   1040 <cos@plt>
movsd  %xmm0,0x28(%rsp)
movsd  0x20(%rsp),%xmm0
call   1040 <cos@plt>
movsd  %xmm0,(%rsp)
movsd  0x18(%rsp),%xmm0
call   1040 <cos@plt>
movsd  (%rsp),%xmm1
mulsd  0x28(%rsp),%xmm1
subsd  %xmm0,%xmm1
mulsd  0x10(%rsp),%xmm1
movsd  %xmm1,(%rsp)
movsd  0x20(%rsp),%xmm0
call   1030 <sin@plt>
movsd  %xmm0,0x10(%rsp)
movsd  0x30(%rsp),%xmm0
call   1030 <sin@plt>
mulsd  0x10(%rsp),%xmm0
movsd  (%rsp),%xmm1
divsd  %xmm0,%xmm1
xorps  %xmm0,%xmm0
cvtsd2ss %xmm1,%xmm0
movss  %xmm0,0x10(%rbx)
movsd  0x8(%rsp),%xmm0
addsd  %xmm0,%xmm0
mulsd  0x40(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x20(%rsp),%xmm0
call   1040 <cos@plt>
movsd  %xmm0,0x40(%rsp)
movsd  0x18(%rsp),%xmm0
call   1040 <cos@plt>
movsd  %xmm0,(%rsp)
movsd  0x30(%rsp),%xmm0
call   1040 <cos@plt>
movsd  (%rsp),%xmm1
mulsd  0x40(%rsp),%xmm1
subsd  %xmm0,%xmm1
mulsd  0x8(%rsp),%xmm1
movsd  %xmm1,(%rsp)
movsd  0x18(%rsp),%xmm0
call   1030 <sin@plt>
movsd  %xmm0,0x18(%rsp)
movsd  0x20(%rsp),%xmm0
call   1030 <sin@plt>
mulsd  0x18(%rsp),%xmm0
movsd  (%rsp),%xmm1
divsd  %xmm0,%xmm1
xorps  %xmm0,%xmm0
cvtsd2ss %xmm1,%xmm0
movss  %xmm0,0x14(%rbx)
add    $0x50,%rsp
pop    %rbx
ret

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

LLVM IR (-O2):
define void @umtz_cell_metric(float* nocapture %0, float* nocapture writeonly %1) {
%3 = load float, float* %0
%4 = fpext float %3 to double
%5 = getelementptr inbounds float, float* %0, i64 3
%6 = load float, float* %5
%7 = fpext float %6 to double
%8 = fmul double %7, 0x400921FB54442D18
%9 = fdiv double %8, 1.800000e+02
%10 = getelementptr inbounds float, float* %0, i64 1
%11 = load float, float* %10
%12 = fpext float %11 to double
%13 = getelementptr inbounds float, float* %0, i64 4
%14 = load float, float* %13
%15 = fpext float %14 to double
%16 = fmul double %15, 0x400921FB54442D18
%17 = fdiv double %16, 1.800000e+02
%18 = getelementptr inbounds float, float* %0, i64 2
%19 = load float, float* %18
%20 = fpext float %19 to double
%21 = getelementptr inbounds float, float* %0, i64 5
%22 = load float, float* %21
%23 = fpext float %22 to double
%24 = fmul double %23, 0x400921FB54442D18
%25 = fdiv double %24, 1.800000e+02
%26 = fmul double %4, %12
%27 = fmul double %26, %20
%28 = tail call double @cos(double %9)
%29 = tail call double @cos(double %9)
%30 = fneg double %28
%31 = tail call double @llvm.fmuladd.f64(double %30, double %29, double 1.000000e+00)
%32 = tail call double @cos(double %17)
%33 = tail call double @cos(double %17)
%34 = fneg double %32
%35 = tail call double @llvm.fmuladd.f64(double %34, double %33, double %31)
%36 = tail call double @cos(double %25)
%37 = tail call double @cos(double %25)
%38 = fneg double %36
%39 = tail call double @llvm.fmuladd.f64(double %38, double %37, double %35)
%40 = tail call double @cos(double %9)
%41 = fmul double %40, 2.000000e+00
%42 = tail call double @cos(double %17)
%43 = fmul double %41, %42
%44 = tail call double @cos(double %25)
%45 = tail call double @llvm.fmuladd.f64(double %43, double %44, double %39)
%46 = tail call double @sqrt(double %45)
%47 = fmul double %27, %46
%48 = fmul double %12, %20
%49 = tail call double @sin(double %9)
%50 = fmul double %48, %49
%51 = fdiv double %50, %47
%52 = fmul double %4, %20
%53 = tail call double @sin(double %17)
%54 = fmul double %52, %53
%55 = fdiv double %54, %47
%56 = tail call double @sin(double %25)
%57 = fmul double %26, %56
%58 = fdiv double %57, %47
%59 = fmul double %51, %51
%60 = fptrunc double %59 to float
store float %60, float* %1
%61 = fmul double %55, %55
%62 = fptrunc double %61 to float
%63 = getelementptr inbounds float, float* %1, i64 1
store float %62, float* %63
%64 = fmul double %58, %58
%65 = fptrunc double %64 to float
%66 = getelementptr inbounds float, float* %1, i64 2
store float %65, float* %66
%67 = fmul double %51, 2.000000e+00
%68 = fmul double %67, %55
%69 = tail call double @cos(double %17)
%70 = tail call double @cos(double %9)
%71 = tail call double @cos(double %25)
%72 = fneg double %71
%73 = tail call double @llvm.fmuladd.f64(double %69, double %70, double %72)
%74 = fmul double %68, %73
%75 = tail call double @sin(double %9)
%76 = tail call double @sin(double %17)
%77 = fmul double %75, %76
%78 = fdiv double %74, %77
%79 = fptrunc double %78 to float
%80 = getelementptr inbounds float, float* %1, i64 3
store float %79, float* %80
%81 = fmul double %58, 2.000000e+00
%82 = fmul double %51, %81
%83 = tail call double @cos(double %9)
%84 = tail call double @cos(double %25)
%85 = tail call double @cos(double %17)
%86 = fneg double %85
%87 = tail call double @llvm.fmuladd.f64(double %83, double %84, double %86)
%88 = fmul double %82, %87
%89 = tail call double @sin(double %25)
%90 = tail call double @sin(double %9)
%91 = fmul double %89, %90
%92 = fdiv double %88, %91
%93 = fptrunc double %92 to float
%94 = getelementptr inbounds float, float* %1, i64 4
store float %93, float* %94
%95 = fmul double %55, 2.000000e+00
%96 = fmul double %95, %58
%97 = tail call double @cos(double %25)
%98 = tail call double @cos(double %17)
%99 = tail call double @cos(double %9)
%100 = fneg double %99
%101 = tail call double @llvm.fmuladd.f64(double %97, double %98, double %100)
%102 = fmul double %96, %101
%103 = tail call double @sin(double %17)
%104 = tail call double @sin(double %25)
%105 = fmul double %103, %104
%106 = fdiv double %102, %105
%107 = fptrunc double %106 to float
%108 = getelementptr inbounds float, float* %1, i64 5
store float %107, float* %108
ret void
}