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


x86 assembly (clang, -O0):
<_I_20>:
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>
mov    %eax,-0x14(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    -0x10(%rbp),%rdx
xor    %edi,%edi
mov    $0x2,%esi
call   1030 <_f@plt>
mov    %eax,-0x2c(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    -0x10(%rbp),%rdx
mov    $0x2,%edi
xor    %esi,%esi
call   1030 <_f@plt>
mov    %eax,%ecx
mov    -0x2c(%rbp),%eax
imul   %ecx,%eax
mov    %eax,-0x28(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    -0x10(%rbp),%rdx
mov    $0x1,%edi
mov    $0x2,%esi
call   1030 <_f@plt>
mov    %eax,%ecx
mov    -0x28(%rbp),%eax
imul   %ecx,%eax
mov    %eax,-0x18(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    -0x10(%rbp),%rdx
mov    $0x1,%edi
mov    $0x2,%esi
call   1030 <_f@plt>
mov    %eax,-0x24(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    -0x10(%rbp),%rdx
mov    $0x2,%edi
xor    %esi,%esi
call   1030 <_f@plt>
mov    %eax,%ecx
mov    -0x24(%rbp),%eax
imul   %ecx,%eax
mov    %eax,-0x1c(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    -0x10(%rbp),%rdx
mov    $0x2,%edi
mov    $0x1,%esi
call   1030 <_f@plt>
mov    %eax,-0x20(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    -0x10(%rbp),%rdx
mov    $0x1,%edi
mov    $0x3,%esi
call   1030 <_f@plt>
mov    -0x20(%rbp),%edx
mov    -0x1c(%rbp),%ecx
mov    %eax,%esi
mov    -0x18(%rbp),%eax
imul   %esi,%edx
add    %edx,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x14(%rbp),%eax
add    %ecx,%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
cvtsi2sd %eax,%xmm0
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_I_20>:
push   %rbp
push   %r15
push   %r14
push   %r12
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>
mov    %eax,%r14d
xor    %edi,%edi
mov    $0x2,%esi
movsd  0x8(%rsp),%xmm0
mov    %rbx,%rdx
call   1030 <_f@plt>
mov    %eax,%r15d
mov    $0x2,%edi
xor    %esi,%esi
movsd  0x8(%rsp),%xmm0
mov    %rbx,%rdx
call   1030 <_f@plt>
mov    %eax,%ebp
imul   %r15d,%ebp
mov    $0x1,%edi
mov    $0x2,%esi
movsd  0x8(%rsp),%xmm0
mov    %rbx,%rdx
call   1030 <_f@plt>
mov    %eax,%r15d
imul   %ebp,%r15d
mov    $0x1,%edi
mov    $0x2,%esi
movsd  0x8(%rsp),%xmm0
mov    %rbx,%rdx
call   1030 <_f@plt>
mov    %eax,%r12d
mov    $0x2,%edi
xor    %esi,%esi
movsd  0x8(%rsp),%xmm0
mov    %rbx,%rdx
call   1030 <_f@plt>
mov    %eax,%ebp
imul   %r12d,%ebp
mov    $0x2,%edi
mov    $0x1,%esi
movsd  0x8(%rsp),%xmm0
mov    %rbx,%rdx
call   1030 <_f@plt>
mov    %eax,%r12d
mov    $0x1,%edi
mov    $0x3,%esi
movsd  0x8(%rsp),%xmm0
mov    %rbx,%rdx
call   1030 <_f@plt>
mov    %eax,%ecx
imul   %r12d,%ecx
add    %ebp,%ecx
mov    %r15d,%eax
cltd
idiv   %ecx
add    %r14d,%eax
cltq
imul   $0x55555556,%rax,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
shr    $0x20,%rax
add    %ecx,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define double @_I_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 i32 @_f(i32 0, i32 3, double %5, double* %6)
%8 = load double, double* %3
%9 = load double*, double** %4
%10 = call i32 @_f(i32 0, i32 2, double %8, double* %9)
%11 = load double, double* %3
%12 = load double*, double** %4
%13 = call i32 @_f(i32 2, i32 0, double %11, double* %12)
%14 = mul nsw i32 %10, %13
%15 = load double, double* %3
%16 = load double*, double** %4
%17 = call i32 @_f(i32 1, i32 2, double %15, double* %16)
%18 = mul nsw i32 %14, %17
%19 = load double, double* %3
%20 = load double*, double** %4
%21 = call i32 @_f(i32 1, i32 2, double %19, double* %20)
%22 = load double, double* %3
%23 = load double*, double** %4
%24 = call i32 @_f(i32 2, i32 0, double %22, double* %23)
%25 = mul nsw i32 %21, %24
%26 = load double, double* %3
%27 = load double*, double** %4
%28 = call i32 @_f(i32 2, i32 1, double %26, double* %27)
%29 = load double, double* %3
%30 = load double*, double** %4
%31 = call i32 @_f(i32 1, i32 3, double %29, double* %30)
%32 = mul nsw i32 %28, %31
%33 = add nsw i32 %25, %32
%34 = sdiv i32 %18, %33
%35 = add nsw i32 %7, %34
%36 = sdiv i32 %35, 3
%37 = sitofp i32 %36 to double
ret double %37
}

LLVM IR (-O2):
define double @_I_20(double %0, double* %1) {
%3 = tail call i32 @_f(i32 0, i32 3, double %0, double* %1)
%4 = tail call i32 @_f(i32 0, i32 2, double %0, double* %1)
%5 = tail call i32 @_f(i32 2, i32 0, double %0, double* %1)
%6 = mul nsw i32 %5, %4
%7 = tail call i32 @_f(i32 1, i32 2, double %0, double* %1)
%8 = mul nsw i32 %6, %7
%9 = tail call i32 @_f(i32 1, i32 2, double %0, double* %1)
%10 = tail call i32 @_f(i32 2, i32 0, double %0, double* %1)
%11 = mul nsw i32 %10, %9
%12 = tail call i32 @_f(i32 2, i32 1, double %0, double* %1)
%13 = tail call i32 @_f(i32 1, i32 3, double %0, double* %1)
%14 = mul nsw i32 %13, %12
%15 = add nsw i32 %14, %11
%16 = sdiv i32 %8, %15
%17 = add nsw i32 %16, %3
%18 = sdiv i32 %17, 3
%19 = sitofp i32 %18 to double
ret double %19
}