#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 sqrt(double const);
double C(const double m, const double j1, const double j2, const double j3,
         const double m1) {
  return sqrt((j2 - m + 1) * (j2 + m) * (j3 - m - m1 + 1.0) * (j3 + m + m1));
}


x86 assembly (clang, -O0):
<C>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  %xmm3,-0x20(%rbp)
movsd  %xmm4,-0x28(%rbp)
movsd  -0x18(%rbp),%xmm0
subsd  -0x8(%rbp),%xmm0
movsd  0xebd(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  -0x18(%rbp),%xmm1
addsd  -0x8(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  -0x20(%rbp),%xmm1
subsd  -0x8(%rbp),%xmm1
subsd  -0x28(%rbp),%xmm1
movsd  0xe94(%rip),%xmm2
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  -0x20(%rbp),%xmm1
addsd  -0x8(%rbp),%xmm1
addsd  -0x28(%rbp),%xmm1
mulsd  %xmm1,%xmm0
call   1030 <sqrt@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<C>:
movapd %xmm0,%xmm1
addsd  %xmm2,%xmm1
movapd %xmm3,%xmm5
subsd  %xmm0,%xmm5
unpcklpd %xmm5,%xmm2
movapd %xmm0,%xmm5
unpcklpd %xmm4,%xmm5
subpd  %xmm5,%xmm2
addpd  0xec8(%rip),%xmm2
mulsd  %xmm2,%xmm1
unpckhpd %xmm2,%xmm2
mulsd  %xmm1,%xmm2
addsd  %xmm3,%xmm0
addsd  %xmm4,%xmm0
mulsd  %xmm2,%xmm0
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     115f <C+0x4f>
sqrtsd %xmm0,%xmm0
ret
jmp    1030 <sqrt@plt>

LLVM IR (-O0):
define double @C(double %0, double %1, double %2, double %3, double %4) {
%6 = alloca double
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca double
store double %0, double* %6
store double %1, double* %7
store double %2, double* %8
store double %3, double* %9
store double %4, double* %10
%11 = load double, double* %8
%12 = load double, double* %6
%13 = fsub double %11, %12
%14 = fadd double %13, 1.000000e+00
%15 = load double, double* %8
%16 = load double, double* %6
%17 = fadd double %15, %16
%18 = fmul double %14, %17
%19 = load double, double* %9
%20 = load double, double* %6
%21 = fsub double %19, %20
%22 = load double, double* %10
%23 = fsub double %21, %22
%24 = fadd double %23, 1.000000e+00
%25 = fmul double %18, %24
%26 = load double, double* %9
%27 = load double, double* %6
%28 = fadd double %26, %27
%29 = load double, double* %10
%30 = fadd double %28, %29
%31 = fmul double %25, %30
%32 = call double @sqrt(double %31)
ret double %32
}

LLVM IR (-O2):
define double @C(double %0, double %1, double %2, double %3, double %4) {
%6 = fadd double %0, %2
%7 = fsub double %3, %0
%8 = insertelement <2 x double> poison, double %2, i64 0
%9 = insertelement <2 x double> %8, double %7, i64 1
%10 = insertelement <2 x double> poison, double %0, i64 0
%11 = insertelement <2 x double> %10, double %4, i64 1
%12 = fsub <2 x double> %9, %11
%13 = fadd <2 x double> %12, <double 1.000000e+00, double 1.000000e+00>
%14 = extractelement <2 x double> %13, i64 0
%15 = fmul double %6, %14
%16 = extractelement <2 x double> %13, i64 1
%17 = fmul double %15, %16
%18 = fadd double %0, %3
%19 = fadd double %18, %4
%20 = fmul double %19, %17
%21 = tail call double @sqrt(double %20)
ret double %21
}