#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 pow(double const, double);
double IntNsrc(const double *slow, double *shigh, double *beta) {
  double result;
  result = pow(1.0 - *beta, -1.0) * pow(*shigh, 1.0 - *beta);
  result = result - pow(1.0 - *beta, -1.0) * pow(*slow, 1.0 - *beta);
  return result;
}


x86 assembly (clang, -O0):
<IntNsrc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x18(%rbp),%rax
movsd  0xed0(%rip),%xmm0
subsd  (%rax),%xmm0
movsd  0xecc(%rip),%xmm1
call   1030 <pow@plt>
movsd  %xmm0,-0x38(%rbp)
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x18(%rbp),%rax
movsd  0xea6(%rip),%xmm1
subsd  (%rax),%xmm1
call   1030 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x38(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0x18(%rbp),%rax
movsd  0xe76(%rip),%xmm0
subsd  (%rax),%xmm0
movsd  0xe72(%rip),%xmm1
call   1030 <pow@plt>
movsd  %xmm0,-0x28(%rbp)
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x18(%rbp),%rax
movsd  0xe4c(%rip),%xmm1
subsd  (%rax),%xmm1
call   1030 <pow@plt>
movsd  -0x30(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x28(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<IntNsrc>:
push   %r14
push   %rbx
sub    $0x18,%rsp
mov    %rdx,%rbx
mov    %rdi,%r14
movsd  0xedb(%rip),%xmm0
movapd %xmm0,%xmm1
subsd  (%rdx),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  (%rsi),%xmm0
call   1030 <pow@plt>
mulsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0xeac(%rip),%xmm1
subsd  (%rbx),%xmm1
movsd  %xmm1,0x10(%rsp)
movsd  (%r14),%xmm0
call   1030 <pow@plt>
movsd  0xe98(%rip),%xmm1
divsd  0x10(%rsp),%xmm1
mulsd  %xmm1,%xmm0
addsd  0x8(%rsp),%xmm0
add    $0x18,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define double @IntNsrc(double* %0, double* %1, double* %2) {
%4 = alloca double*
%5 = alloca double*
%6 = alloca double*
%7 = alloca double
store double* %0, double** %4
store double* %1, double** %5
store double* %2, double** %6
%8 = load double*, double** %6
%9 = load double, double* %8
%10 = fsub double 1.000000e+00, %9
%11 = call double @pow(double %10, double -1.000000e+00)
%12 = load double*, double** %5
%13 = load double, double* %12
%14 = load double*, double** %6
%15 = load double, double* %14
%16 = fsub double 1.000000e+00, %15
%17 = call double @pow(double %13, double %16)
%18 = fmul double %11, %17
store double %18, double* %7
%19 = load double, double* %7
%20 = load double*, double** %6
%21 = load double, double* %20
%22 = fsub double 1.000000e+00, %21
%23 = call double @pow(double %22, double -1.000000e+00)
%24 = load double*, double** %4
%25 = load double, double* %24
%26 = load double*, double** %6
%27 = load double, double* %26
%28 = fsub double 1.000000e+00, %27
%29 = call double @pow(double %25, double %28)
%30 = fneg double %23
%31 = call double @llvm.fmuladd.f64(double %30, double %29, double %19)
store double %31, double* %7
%32 = load double, double* %7
ret double %32
}

LLVM IR (-O2):
define double @IntNsrc(double* nocapture %0, double* nocapture %1, double* nocapture %2) {
%4 = load double, double* %2
%5 = fsub double 1.000000e+00, %4
%6 = fdiv double 1.000000e+00, %5
%7 = load double, double* %1
%8 = tail call double @pow(double %7, double %5)
%9 = fmul double %6, %8
%10 = load double, double* %2
%11 = fsub double 1.000000e+00, %10
%12 = load double, double* %0
%13 = tail call double @pow(double %12, double %11)
%14 = fdiv double -1.000000e+00, %11
%15 = tail call double @llvm.fmuladd.f64(double %14, double %13, double %9)
ret double %15
}