#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 _f(int, int, double const, double const *);
double _n_3(double const, double const *);
double _J_30(const double omega, const double vertices_omegas[4]) {
  return (1.0 - _f(0, 3, omega, vertices_omegas) *
                    _f(0, 3, omega, vertices_omegas) *
                    _f(1, 3, omega, vertices_omegas) *
                    _f(2, 3, omega, vertices_omegas)) /
         4 / _n_3(omega, vertices_omegas);
}


x86 assembly (clang, -O0):
<_J_30>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movsd  %xmm0,-0x8(%rbp)
mov    %rdi,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    -0x10(%rbp),%rdx
xor    %edi,%edi
mov    $0x3,%esi
call   1030 <_f@plt>
movsd  %xmm0,-0x30(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    -0x10(%rbp),%rdx
xor    %edi,%edi
mov    $0x3,%esi
call   1030 <_f@plt>
movaps %xmm0,%xmm1
movsd  -0x30(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    -0x10(%rbp),%rdx
mov    $0x1,%edi
mov    $0x3,%esi
call   1030 <_f@plt>
movaps %xmm0,%xmm1
movsd  -0x28(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    -0x10(%rbp),%rdx
mov    $0x2,%edi
mov    $0x3,%esi
call   1030 <_f@plt>
movaps %xmm0,%xmm1
movsd  -0x20(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm1,%xmm0
movsd  0xe2b(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  0xe17(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    -0x10(%rbp),%rdi
call   1040 <_n_3@plt>
movaps %xmm0,%xmm1
movsd  -0x18(%rbp),%xmm0
divsd  %xmm1,%xmm0
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_J_30>:
push   %rbx
sub    $0x20,%rsp
mov    %rdi,%rbx
movsd  %xmm0,(%rsp)
xor    %edi,%edi
mov    $0x3,%esi
mov    %rbx,%rdx
call   1030 <_f@plt>
movsd  %xmm0,0x8(%rsp)
xor    %edi,%edi
mov    $0x3,%esi
movsd  (%rsp),%xmm0
mov    %rbx,%rdx
call   1030 <_f@plt>
movsd  %xmm0,0x18(%rsp)
mov    $0x1,%edi
mov    $0x3,%esi
movsd  (%rsp),%xmm0
mov    %rbx,%rdx
call   1030 <_f@plt>
movsd  %xmm0,0x10(%rsp)
mov    $0x2,%edi
mov    $0x3,%esi
movsd  (%rsp),%xmm0
mov    %rbx,%rdx
call   1030 <_f@plt>
movsd  0x18(%rsp),%xmm1
mulsd  0x8(%rsp),%xmm1
mulsd  0x10(%rsp),%xmm1
mulsd  %xmm0,%xmm1
movsd  0xe52(%rip),%xmm0
subsd  %xmm1,%xmm0
mulsd  0xe4e(%rip),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  (%rsp),%xmm0
mov    %rbx,%rdi
call   1040 <_n_3@plt>
movsd  0x8(%rsp),%xmm1
divsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
add    $0x20,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define double @_J_30(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 = load double*, double** %4
%7 = call double @_f(i32 0, i32 3, double %5, double* %6)
%8 = load double, double* %3
%9 = load double*, double** %4
%10 = call double @_f(i32 0, i32 3, double %8, double* %9)
%11 = fmul double %7, %10
%12 = load double, double* %3
%13 = load double*, double** %4
%14 = call double @_f(i32 1, i32 3, double %12, double* %13)
%15 = fmul double %11, %14
%16 = load double, double* %3
%17 = load double*, double** %4
%18 = call double @_f(i32 2, i32 3, double %16, double* %17)
%19 = fneg double %15
%20 = call double @llvm.fmuladd.f64(double %19, double %18, double 1.000000e+00)
%21 = fdiv double %20, 4.000000e+00
%22 = load double, double* %3
%23 = load double*, double** %4
%24 = call double @_n_3(double %22, double* %23)
%25 = fdiv double %21, %24
ret double %25
}

LLVM IR (-O2):
define double @_J_30(double %0, double* %1) {
%3 = tail call double @_f(i32 0, i32 3, double %0, double* %1)
%4 = tail call double @_f(i32 0, i32 3, double %0, double* %1)
%5 = tail call double @_f(i32 1, i32 3, double %0, double* %1)
%6 = tail call double @_f(i32 2, i32 3, double %0, double* %1)
%7 = fneg double %3
%8 = fmul double %4, %7
%9 = fmul double %8, %5
%10 = tail call double @llvm.fmuladd.f64(double %9, double %6, double 1.000000e+00)
%11 = fmul double %10, 2.500000e-01
%12 = tail call double @_n_3(double %0, double* %1)
%13 = fdiv double %11, %12
ret double %13
}