#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_33(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) *
                    (1.0 + _f(3, 0, omega, vertices_omegas) +
                     _f(3, 1, omega, vertices_omegas) +
                     _f(3, 2, omega, vertices_omegas))) /
         4 / _n_3(omega, vertices_omegas);
}


x86 assembly (clang, -O0):
<_J_33>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%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,-0x40(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    -0x10(%rbp),%rdx
mov    $0x1,%edi
mov    $0x3,%esi
call   1030 <_f@plt>
movaps %xmm0,%xmm1
movsd  -0x40(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    -0x10(%rbp),%rdx
mov    $0x2,%edi
mov    $0x3,%esi
call   1030 <_f@plt>
movaps %xmm0,%xmm1
movsd  -0x38(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    -0x10(%rbp),%rdx
mov    $0x3,%edi
xor    %esi,%esi
call   1030 <_f@plt>
movaps %xmm0,%xmm1
movsd  0xe4b(%rip),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    -0x10(%rbp),%rdx
mov    $0x3,%edi
mov    $0x1,%esi
call   1030 <_f@plt>
movaps %xmm0,%xmm1
movsd  -0x30(%rbp),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    -0x10(%rbp),%rdx
mov    $0x3,%edi
mov    $0x2,%esi
call   1030 <_f@plt>
movsd  -0x28(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x20(%rbp),%xmm0
addsd  %xmm2,%xmm1
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm1,%xmm0
movsd  0xdcd(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  0xdb9(%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    $0x40,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define double @_J_33(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 3, i32 0, double %16, double* %17)
%19 = fadd double 1.000000e+00, %18
%20 = load double, double* %3
%21 = load double*, double** %4
%22 = call double @_f(i32 3, i32 1, double %20, double* %21)
%23 = fadd double %19, %22
%24 = load double, double* %3
%25 = load double*, double** %4
%26 = call double @_f(i32 3, i32 2, double %24, double* %25)
%27 = fadd double %23, %26
%28 = fneg double %15
%29 = call double @llvm.fmuladd.f64(double %28, double %27, double 1.000000e+00)
%30 = fdiv double %29, 4.000000e+00
%31 = load double, double* %3
%32 = load double*, double** %4
%33 = call double @_n_3(double %31, double* %32)
%34 = fdiv double %30, %33
ret double %34
}

LLVM IR (-O2):
define double @_J_33(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 = tail call double @_f(i32 2, i32 3, double %0, double* %1)
%6 = tail call double @_f(i32 3, i32 0, double %0, double* %1)
%7 = fadd double %6, 1.000000e+00
%8 = tail call double @_f(i32 3, i32 1, double %0, double* %1)
%9 = fadd double %7, %8
%10 = tail call double @_f(i32 3, i32 2, double %0, double* %1)
%11 = fadd double %9, %10
%12 = fneg double %3
%13 = fmul double %4, %12
%14 = fmul double %13, %5
%15 = tail call double @llvm.fmuladd.f64(double %14, double %11, double 1.000000e+00)
%16 = fmul double %15, 2.500000e-01
%17 = tail call double @_n_3(double %0, double* %1)
%18 = fdiv double %16, %17
ret double %18
}