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


x86 assembly (clang, -O0):
<_J_20>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movsd  %xmm0,-0x8(%rbp)
mov    %rdi,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    -0x10(%rbp),%rdx
mov    $0x3,%edi
mov    $0x1,%esi
call   1040 <_f@plt>
movsd  %xmm0,-0x48(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    -0x10(%rbp),%rdx
mov    $0x2,%edi
mov    $0x1,%esi
call   1040 <_f@plt>
movsd  %xmm0,-0x50(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    -0x10(%rbp),%rdx
mov    $0x3,%edi
xor    %esi,%esi
call   1040 <_f@plt>
movsd  %xmm0,-0x68(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    -0x10(%rbp),%rdx
mov    $0x1,%edi
mov    $0x3,%esi
call   1040 <_f@plt>
movaps %xmm0,%xmm1
movsd  -0x68(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    -0x10(%rbp),%rdx
mov    $0x2,%edi
mov    $0x1,%esi
call   1040 <_f@plt>
movaps %xmm0,%xmm1
movsd  -0x60(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    -0x10(%rbp),%rdx
xor    %edi,%edi
mov    $0x3,%esi
call   1040 <_f@plt>
movsd  -0x58(%rbp),%xmm1
movsd  -0x50(%rbp),%xmm2
movaps %xmm0,%xmm4
movsd  -0x48(%rbp),%xmm0
movsd  0xe02(%rip),%xmm3
addsd  %xmm4,%xmm3
mulsd  %xmm3,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    -0x10(%rbp),%rdx
mov    $0x3,%edi
xor    %esi,%esi
call   1040 <_f@plt>
movsd  %xmm0,-0x40(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    -0x10(%rbp),%rdx
mov    $0x2,%edi
xor    %esi,%esi
call   1040 <_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    $0x1,%edi
mov    $0x2,%esi
call   1040 <_f@plt>
movaps %xmm0,%xmm1
movsd  -0x38(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    -0x10(%rbp),%rdx
xor    %edi,%edi
mov    $0x3,%esi
call   1040 <_f@plt>
movaps %xmm0,%xmm1
movsd  0xd64(%rip),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    -0x10(%rbp),%rdx
xor    %edi,%edi
mov    $0x2,%esi
call   1040 <_f@plt>
movsd  -0x30(%rbp),%xmm2
movsd  -0x28(%rbp),%xmm1
movaps %xmm0,%xmm3
movsd  -0x20(%rbp),%xmm0
addsd  %xmm3,%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xd18(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    -0x10(%rbp),%rdi
call   1030 <_n_2@plt>
movaps %xmm0,%xmm1
movsd  -0x18(%rbp),%xmm0
divsd  %xmm1,%xmm0
add    $0x70,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define double @_J_20(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 3, i32 1, double %5, double* %6)
%8 = load double, double* %3
%9 = load double*, double** %4
%10 = call double @_f(i32 2, i32 1, double %8, double* %9)
%11 = load double, double* %3
%12 = load double*, double** %4
%13 = call double @_f(i32 3, i32 0, double %11, double* %12)
%14 = load double, double* %3
%15 = load double*, double** %4
%16 = call double @_f(i32 1, i32 3, double %14, double* %15)
%17 = fmul double %13, %16
%18 = load double, double* %3
%19 = load double*, double** %4
%20 = call double @_f(i32 2, i32 1, double %18, double* %19)
%21 = fmul double %17, %20
%22 = load double, double* %3
%23 = load double*, double** %4
%24 = call double @_f(i32 0, i32 3, double %22, double* %23)
%25 = fadd double 1.000000e+00, %24
%26 = fmul double %21, %25
%27 = call double @llvm.fmuladd.f64(double %7, double %10, double %26)
%28 = load double, double* %3
%29 = load double*, double** %4
%30 = call double @_f(i32 3, i32 0, double %28, double* %29)
%31 = load double, double* %3
%32 = load double*, double** %4
%33 = call double @_f(i32 2, i32 0, double %31, double* %32)
%34 = fmul double %30, %33
%35 = load double, double* %3
%36 = load double*, double** %4
%37 = call double @_f(i32 1, i32 2, double %35, double* %36)
%38 = fmul double %34, %37
%39 = load double, double* %3
%40 = load double*, double** %4
%41 = call double @_f(i32 0, i32 3, double %39, double* %40)
%42 = fadd double 1.000000e+00, %41
%43 = load double, double* %3
%44 = load double*, double** %4
%45 = call double @_f(i32 0, i32 2, double %43, double* %44)
%46 = fadd double %42, %45
%47 = call double @llvm.fmuladd.f64(double %38, double %46, double %27)
%48 = fdiv double %47, 4.000000e+00
%49 = load double, double* %3
%50 = load double*, double** %4
%51 = call double @_n_2(double %49, double* %50)
%52 = fdiv double %48, %51
ret double %52
}

LLVM IR (-O2):
define double @_J_20(double %0, double* %1) {
%3 = tail call double @_f(i32 3, i32 1, double %0, double* %1)
%4 = tail call double @_f(i32 2, i32 1, double %0, double* %1)
%5 = tail call double @_f(i32 3, i32 0, double %0, double* %1)
%6 = tail call double @_f(i32 1, i32 3, double %0, double* %1)
%7 = fmul double %5, %6
%8 = tail call double @_f(i32 2, i32 1, double %0, double* %1)
%9 = fmul double %7, %8
%10 = tail call double @_f(i32 0, i32 3, double %0, double* %1)
%11 = fadd double %10, 1.000000e+00
%12 = fmul double %9, %11
%13 = tail call double @llvm.fmuladd.f64(double %3, double %4, double %12)
%14 = tail call double @_f(i32 3, i32 0, double %0, double* %1)
%15 = tail call double @_f(i32 2, i32 0, double %0, double* %1)
%16 = fmul double %14, %15
%17 = tail call double @_f(i32 1, i32 2, double %0, double* %1)
%18 = fmul double %16, %17
%19 = tail call double @_f(i32 0, i32 3, double %0, double* %1)
%20 = fadd double %19, 1.000000e+00
%21 = tail call double @_f(i32 0, i32 2, double %0, double* %1)
%22 = fadd double %20, %21
%23 = tail call double @llvm.fmuladd.f64(double %18, double %22, double %13)
%24 = fmul double %23, 2.500000e-01
%25 = tail call double @_n_2(double %0, double* %1)
%26 = fdiv double %24, %25
ret double %26
}