#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 exp(double);
int sinc(double);
double interpol_func(double t, double fgk, double fgg) {
  return (2 * fgk * sinc(3.1415926535 * 2 * fgk * t) *
          exp(-3.1415926535 * ((2 * fgg * t) * (2 * fgg * t))));
}


x86 assembly (clang, -O0):
<interpol_func>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  0xec9(%rip),%xmm0
mulsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  0xebf(%rip),%xmm0
mulsd  -0x10(%rbp),%xmm0
mulsd  -0x8(%rbp),%xmm0
call   1030 <sinc@plt>
movsd  -0x28(%rbp),%xmm0
cvtsi2sd %eax,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  0xe8e(%rip),%xmm1
mulsd  -0x18(%rbp),%xmm1
mulsd  -0x8(%rbp),%xmm1
movsd  0xe7c(%rip),%xmm0
mulsd  -0x18(%rbp),%xmm0
mulsd  -0x8(%rbp),%xmm0
mulsd  %xmm0,%xmm1
movsd  0xe5e(%rip),%xmm0
mulsd  %xmm1,%xmm0
call   1040 <exp@plt>
movsd  -0x20(%rbp),%xmm0
cvtsi2sd %eax,%xmm1
mulsd  %xmm1,%xmm0
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<interpol_func>:
sub    $0x18,%rsp
movsd  %xmm2,0x10(%rsp)
movsd  %xmm0,0x8(%rsp)
movapd %xmm1,%xmm2
addsd  %xmm1,%xmm2
movsd  %xmm2,(%rsp)
mulsd  0xebb(%rip),%xmm1
mulsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
call   1030 <sinc@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
movsd  0x10(%rsp),%xmm0
addsd  %xmm0,%xmm0
mulsd  0x8(%rsp),%xmm0
mulsd  %xmm0,%xmm0
mulsd  0xe89(%rip),%xmm0
call   1040 <exp@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  (%rsp),%xmm0
add    $0x18,%rsp
ret

LLVM IR (-O0):
define double @interpol_func(double %0, double %1, double %2) {
%4 = alloca double
%5 = alloca double
%6 = alloca double
store double %0, double* %4
store double %1, double* %5
store double %2, double* %6
%7 = load double, double* %5
%8 = fmul double 2.000000e+00, %7
%9 = load double, double* %5
%10 = fmul double 0x401921FB54411744, %9
%11 = load double, double* %4
%12 = fmul double %10, %11
%13 = call i32 @sinc(double %12)
%14 = sitofp i32 %13 to double
%15 = fmul double %8, %14
%16 = load double, double* %6
%17 = fmul double 2.000000e+00, %16
%18 = load double, double* %4
%19 = fmul double %17, %18
%20 = load double, double* %6
%21 = fmul double 2.000000e+00, %20
%22 = load double, double* %4
%23 = fmul double %21, %22
%24 = fmul double %19, %23
%25 = fmul double 0xC00921FB54411744, %24
%26 = call i32 @exp(double %25)
%27 = sitofp i32 %26 to double
%28 = fmul double %15, %27
ret double %28
}

LLVM IR (-O2):
define double @interpol_func(double %0, double %1, double %2) {
%4 = fmul double %1, 2.000000e+00
%5 = fmul double %1, 0x401921FB54411744
%6 = fmul double %5, %0
%7 = tail call i32 @sinc(double %6)
%8 = sitofp i32 %7 to double
%9 = fmul double %4, %8
%10 = fmul double %2, 2.000000e+00
%11 = fmul double %10, %0
%12 = fmul double %11, %11
%13 = fmul double %12, 0xC00921FB54411744
%14 = tail call i32 @exp(double %13)
%15 = sitofp i32 %14 to double
%16 = fmul double %9, %15
ret double %16
}