#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 M_PI;
void llhrad2deg(const double llh_rad[3], double llh_deg[3]) {
  llh_deg[0] = llh_rad[0] * (180.0 / M_PI);
  llh_deg[1] = llh_rad[1] * (180.0 / M_PI);
  llh_deg[2] = llh_rad[2];
}


x86 assembly (clang, -O0):
<llhrad2deg>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm0
movsd  0xee4(%rip),%xmm1
mov    0x2ec5(%rip),%rax
divsd  (%rax),%xmm1
mulsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x8(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  0xebc(%rip),%xmm1
mov    0x2e9d(%rip),%rax
divsd  (%rax),%xmm1
mulsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x8(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,0x10(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<llhrad2deg>:
mov    0x2ee1(%rip),%rax
movsd  0xef1(%rip),%xmm0
movapd %xmm0,%xmm1
divsd  (%rax),%xmm1
mulsd  (%rdi),%xmm1
movsd  %xmm1,(%rsi)
divsd  (%rax),%xmm0
mulsd  0x8(%rdi),%xmm0
movsd  %xmm0,0x8(%rsi)
movsd  0x10(%rdi),%xmm0
movsd  %xmm0,0x10(%rsi)
ret

LLVM IR (-O0):
@M_PI = global double 0.000000e+00
define void @llhrad2deg(double* %0, double* %1) {
%3 = alloca double*
%4 = alloca double*
store double* %0, double** %3
store double* %1, double** %4
%5 = load double*, double** %3
%6 = getelementptr inbounds double, double* %5, i64 0
%7 = load double, double* %6
%8 = load double, double* @M_PI
%9 = fdiv double 1.800000e+02, %8
%10 = fmul double %7, %9
%11 = load double*, double** %4
%12 = getelementptr inbounds double, double* %11, i64 0
store double %10, double* %12
%13 = load double*, double** %3
%14 = getelementptr inbounds double, double* %13, i64 1
%15 = load double, double* %14
%16 = load double, double* @M_PI
%17 = fdiv double 1.800000e+02, %16
%18 = fmul double %15, %17
%19 = load double*, double** %4
%20 = getelementptr inbounds double, double* %19, i64 1
store double %18, double* %20
%21 = load double*, double** %3
%22 = getelementptr inbounds double, double* %21, i64 2
%23 = load double, double* %22
%24 = load double*, double** %4
%25 = getelementptr inbounds double, double* %24, i64 2
store double %23, double* %25
ret void
}

LLVM IR (-O2):
@M_PI = global double 0.000000e+00
define void @llhrad2deg(double* nocapture %0, double* nocapture writeonly %1) {
%3 = load double, double* %0
%4 = load double, double* @M_PI
%5 = fdiv double 1.800000e+02, %4
%6 = fmul double %3, %5
store double %6, double* %1
%7 = getelementptr inbounds double, double* %0, i64 1
%8 = load double, double* %7
%9 = load double, double* @M_PI
%10 = fdiv double 1.800000e+02, %9
%11 = fmul double %8, %10
%12 = getelementptr inbounds double, double* %1, i64 1
store double %11, double* %12
%13 = getelementptr inbounds double, double* %0, i64 2
%14 = load double, double* %13
%15 = getelementptr inbounds double, double* %1, i64 2
store double %14, double* %15
ret void
}