#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 Variance(int, int, float **);
float Reduction10(int a, int b, int i, float lamda, float vab, float **delta) {
  float Vci;
  Vci = lamda * Variance(a, i, delta) + (1 - lamda) * Variance(b, i, delta) -
        lamda * (1 - lamda) * vab;
  return (Vci);
}


x86 assembly (clang, -O0):
<Reduction10>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
movss  %xmm0,-0x10(%rbp)
movss  %xmm1,-0x14(%rbp)
mov    %rcx,-0x20(%rbp)
movss  -0x10(%rbp),%xmm0
movss  %xmm0,-0x2c(%rbp)
mov    -0x4(%rbp),%edi
mov    -0xc(%rbp),%esi
mov    -0x20(%rbp),%rdx
call   1030 <Variance@plt>
cvtsi2ss %eax,%xmm0
movss  %xmm0,-0x28(%rbp)
movss  0xea7(%rip),%xmm0
subss  -0x10(%rbp),%xmm0
movss  %xmm0,-0x30(%rbp)
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
mov    -0x20(%rbp),%rdx
call   1030 <Variance@plt>
movss  -0x30(%rbp),%xmm0
movss  -0x2c(%rbp),%xmm1
movss  -0x28(%rbp),%xmm2
cvtsi2ss %eax,%xmm3
mulss  %xmm3,%xmm0
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0x10(%rbp),%xmm0
movss  0xe62(%rip),%xmm2
subss  -0x10(%rbp),%xmm2
mulss  %xmm2,%xmm0
movss  -0x14(%rbp),%xmm2
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x24(%rbp)
movss  -0x24(%rbp),%xmm0
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Reduction10>:
push   %rbp
push   %r14
push   %rbx
sub    $0x10,%rsp
mov    %rcx,%rbx
movss  %xmm1,0xc(%rsp)
movss  %xmm0,(%rsp)
mov    %edx,%ebp
mov    %esi,%r14d
mov    %edx,%esi
mov    %rcx,%rdx
call   1030 <Variance@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
movss  %xmm0,0x8(%rsp)
movss  0xeb6(%rip),%xmm0
subss  (%rsp),%xmm0
movss  %xmm0,0x4(%rsp)
mov    %r14d,%edi
mov    %ebp,%esi
mov    %rbx,%rdx
call   1030 <Variance@plt>
cvtsi2ss %eax,%xmm2
movss  0x4(%rsp),%xmm3
mulss  %xmm3,%xmm2
movss  (%rsp),%xmm1
movss  0x8(%rsp),%xmm0
mulss  %xmm1,%xmm0
addss  %xmm2,%xmm0
mulss  %xmm1,%xmm3
mulss  0xc(%rsp),%xmm3
subss  %xmm3,%xmm0
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
define float @Reduction10(i32 %0, i32 %1, i32 %2, float %3, float %4, float** %5) {
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca float
%11 = alloca float
%12 = alloca float**
%13 = alloca float
store i32 %0, i32* %7
store i32 %1, i32* %8
store i32 %2, i32* %9
store float %3, float* %10
store float %4, float* %11
store float** %5, float*** %12
%14 = load float, float* %10
%15 = load i32, i32* %7
%16 = load i32, i32* %9
%17 = load float**, float*** %12
%18 = call i32 @Variance(i32 %15, i32 %16, float** %17)
%19 = sitofp i32 %18 to float
%20 = load float, float* %10
%21 = fsub float 1.000000e+00, %20
%22 = load i32, i32* %8
%23 = load i32, i32* %9
%24 = load float**, float*** %12
%25 = call i32 @Variance(i32 %22, i32 %23, float** %24)
%26 = sitofp i32 %25 to float
%27 = fmul float %21, %26
%28 = call float @llvm.fmuladd.f32(float %14, float %19, float %27)
%29 = load float, float* %10
%30 = load float, float* %10
%31 = fsub float 1.000000e+00, %30
%32 = fmul float %29, %31
%33 = load float, float* %11
%34 = fneg float %32
%35 = call float @llvm.fmuladd.f32(float %34, float %33, float %28)
store float %35, float* %13
%36 = load float, float* %13
ret float %36
}

LLVM IR (-O2):
define float @Reduction10(i32 %0, i32 %1, i32 %2, float %3, float %4, float** %5) {
%7 = tail call i32 @Variance(i32 %0, i32 %2, float** %5)
%8 = sitofp i32 %7 to float
%9 = fsub float 1.000000e+00, %3
%10 = tail call i32 @Variance(i32 %1, i32 %2, float** %5)
%11 = sitofp i32 %10 to float
%12 = fmul float %9, %11
%13 = tail call float @llvm.fmuladd.f32(float %3, float %8, float %12)
%14 = fneg float %9
%15 = fmul float %14, %3
%16 = tail call float @llvm.fmuladd.f32(float %15, float %4, float %13)
ret float %16
}