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


x86 assembly (clang, -O0):
<_J_21>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%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,-0x78(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    -0x10(%rbp),%rdx
mov    $0x2,%edi
mov    $0x1,%esi
call   1040 <_f@plt>
movaps %xmm0,%xmm1
movsd  -0x78(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    -0x10(%rbp),%rdx
mov    $0x1,%edi
mov    $0x3,%esi
call   1040 <_f@plt>
movaps %xmm0,%xmm1
movsd  0xe6b(%rip),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    -0x10(%rbp),%rdx
mov    $0x1,%edi
mov    $0x2,%esi
call   1040 <_f@plt>
movaps %xmm0,%xmm1
movsd  -0x70(%rbp),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%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,-0x50(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    -0x10(%rbp),%rdx
mov    $0x1,%edi
mov    $0x3,%esi
call   1040 <_f@plt>
movsd  %xmm0,-0x58(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    -0x10(%rbp),%rdx
mov    $0x1,%edi
mov    $0x2,%esi
call   1040 <_f@plt>
movsd  -0x58(%rbp),%xmm3
movsd  -0x50(%rbp),%xmm1
movsd  -0x48(%rbp),%xmm2
movaps %xmm0,%xmm4
movsd  -0x40(%rbp),%xmm0
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,-0x38(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    -0x10(%rbp),%rdx
mov    $0x2,%edi
xor    %esi,%esi
call   1040 <_f@plt>
movaps %xmm0,%xmm1
movsd  -0x38(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    -0x10(%rbp),%rdx
mov    $0x1,%edi
mov    $0x2,%esi
call   1040 <_f@plt>
movaps %xmm0,%xmm1
movsd  -0x30(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    -0x10(%rbp),%rdx
mov    $0x1,%edi
mov    $0x2,%esi
call   1040 <_f@plt>
movsd  -0x28(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x20(%rbp),%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xcc6(%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    $0x80,%rsp
pop    %rbp
ret

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

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

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