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


x86 assembly (clang, -O0):
<llhdeg2rad>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm0
mov    0x2ecd(%rip),%rax
movsd  (%rax),%xmm1
movsd  0xed9(%rip),%xmm2
divsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x8(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    0x2ea1(%rip),%rax
movsd  (%rax),%xmm1
movsd  0xead(%rip),%xmm2
divsd  %xmm2,%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):
<llhdeg2rad>:
mov    0x2ee1(%rip),%rax
movsd  (%rax),%xmm0
movsd  0xeed(%rip),%xmm1
divsd  %xmm1,%xmm0
mulsd  (%rdi),%xmm0
movsd  %xmm0,(%rsi)
movsd  (%rax),%xmm0
divsd  %xmm1,%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 @llhdeg2rad(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 %8, 1.800000e+02
%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 %16, 1.800000e+02
%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 @llhdeg2rad(double* nocapture %0, double* nocapture writeonly %1) {
%3 = load double, double* %0
%4 = load double, double* @M_PI
%5 = fdiv double %4, 1.800000e+02
%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 %9, 1.800000e+02
%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
}