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


x86 assembly (clang, -O0):
<_J_32>:
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
mov    $0x1,%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    $0x2,%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
mulsd  %xmm1,%xmm0
movsd  0xe3f(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  0xe2b(%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_32>:
push   %rbx
sub    $0x10,%rsp
mov    %rdi,%rbx
movsd  %xmm0,0x8(%rsp)
xor    %edi,%edi
mov    $0x3,%esi
mov    %rbx,%rdx
call   1030 <_f@plt>
movsd  %xmm0,(%rsp)
mov    $0x1,%edi
mov    $0x3,%esi
movsd  0x8(%rsp),%xmm0
mov    %rbx,%rdx
call   1030 <_f@plt>
mulsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
mov    $0x2,%edi
mov    $0x3,%esi
movsd  0x8(%rsp),%xmm0
mov    %rbx,%rdx
call   1030 <_f@plt>
mulsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
mov    $0x2,%edi
mov    $0x3,%esi
movsd  0x8(%rsp),%xmm0
mov    %rbx,%rdx
call   1030 <_f@plt>
mulsd  (%rsp),%xmm0
addsd  0xe55(%rip),%xmm0
mulsd  0xe55(%rip),%xmm0
movsd  %xmm0,(%rsp)
movsd  0x8(%rsp),%xmm0
mov    %rbx,%rdi
call   1040 <_n_3@plt>
movsd  (%rsp),%xmm1
divsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define double @_J_32(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 1, 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 2, 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 = call double @llvm.fmuladd.f64(double %15, double %18, double 1.000000e+00)
%20 = fdiv double %19, 4.000000e+00
%21 = load double, double* %3
%22 = load double*, double** %4
%23 = call double @_n_3(double %21, double* %22)
%24 = fdiv double %20, %23
ret double %24
}

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