#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 /*<<< orphan*/ mix_scale_stereo(float *, float *, float, float *, float *,
                                    int);
int main(int argc, char *argv[]) {
  float a1[] = {1.0f, 1.0f, 1.0f};
  float a2[] = {2.0f, 2.0f, 2.0f};
  float a3[] = {3.0f, 3.0f, 3.0f};
  float a4[] = {4.0f, 4.0f, 4.0f};
  mix_scale_stereo(a1, a2, 1.0f, a3, a4, 3);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0xed7(%rip),%rax
mov    %rax,-0x1c(%rbp)
mov    0xed5(%rip),%eax
mov    %eax,-0x14(%rbp)
mov    0xecf(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    0xecd(%rip),%eax
mov    %eax,-0x20(%rbp)
mov    0xec7(%rip),%rax
mov    %rax,-0x34(%rbp)
mov    0xec5(%rip),%eax
mov    %eax,-0x2c(%rbp)
mov    0xebf(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    0xebd(%rip),%eax
mov    %eax,-0x38(%rbp)
lea    -0x1c(%rbp),%rdi
lea    -0x28(%rbp),%rsi
lea    -0x34(%rbp),%rdx
lea    -0x40(%rbp),%rcx
movss  0xe72(%rip),%xmm0
mov    $0x3,%r8d
call   1030 <mix_scale_stereo@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x48,%rsp
mov    0xef2(%rip),%eax
mov    %eax,0x40(%rsp)
mov    0xedf(%rip),%rax
mov    %rax,0x38(%rsp)
mov    0xee8(%rip),%eax
mov    %eax,0x30(%rsp)
mov    0xed5(%rip),%rax
mov    %rax,0x28(%rsp)
mov    0xede(%rip),%eax
mov    %eax,0x20(%rsp)
mov    0xecb(%rip),%rax
mov    %rax,0x18(%rsp)
mov    0xed4(%rip),%eax
mov    %eax,0x10(%rsp)
mov    0xec1(%rip),%rax
mov    %rax,0x8(%rsp)
lea    0x38(%rsp),%rdi
lea    0x28(%rsp),%rsi
movss  0xe82(%rip),%xmm0
lea    0x18(%rsp),%rdx
lea    0x8(%rsp),%rcx
mov    $0x3,%r8d
call   1030 <mix_scale_stereo@plt>
xor    %eax,%eax
add    $0x48,%rsp
ret

LLVM IR (-O0):
@__const.main.a1 = [3 x float] [float 1.000000e+00, float 1.000000e+00, float 1.000000e+00]
@__const.main.a2 = [3 x float] [float 2.000000e+00, float 2.000000e+00, float 2.000000e+00]
@__const.main.a3 = [3 x float] [float 3.000000e+00, float 3.000000e+00, float 3.000000e+00]
@__const.main.a4 = [3 x float] [float 4.000000e+00, float 4.000000e+00, float 4.000000e+00]
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [3 x float]
%7 = alloca [3 x float]
%8 = alloca [3 x float]
%9 = alloca [3 x float]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%10 = bitcast [3 x float]* %6 to i8*
%11 = bitcast [3 x float]* %7 to i8*
%12 = bitcast [3 x float]* %8 to i8*
%13 = bitcast [3 x float]* %9 to i8*
%14 = getelementptr inbounds [3 x float], [3 x float]* %6, i64 0, i64 0
%15 = getelementptr inbounds [3 x float], [3 x float]* %7, i64 0, i64 0
%16 = getelementptr inbounds [3 x float], [3 x float]* %8, i64 0, i64 0
%17 = getelementptr inbounds [3 x float], [3 x float]* %9, i64 0, i64 0
%18 = call i32 @mix_scale_stereo(float* %14, float* %15, float 1.000000e+00, float* %16, float* %17, i32 3)
ret i32 0
}

LLVM IR (-O2):
@__const.main.a1 = [3 x float] [float 1.000000e+00, float 1.000000e+00, float 1.000000e+00]
@__const.main.a2 = [3 x float] [float 2.000000e+00, float 2.000000e+00, float 2.000000e+00]
@__const.main.a3 = [3 x float] [float 3.000000e+00, float 3.000000e+00, float 3.000000e+00]
@__const.main.a4 = [3 x float] [float 4.000000e+00, float 4.000000e+00, float 4.000000e+00]
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [3 x float]
%4 = alloca [3 x float]
%5 = alloca [3 x float]
%6 = alloca [3 x float]
%7 = bitcast [3 x float]* %3 to i8*
%8 = bitcast [3 x float]* %4 to i8*
%9 = bitcast [3 x float]* %5 to i8*
%10 = bitcast [3 x float]* %6 to i8*
%11 = getelementptr inbounds [3 x float], [3 x float]* %3, i64 0, i64 0
%12 = getelementptr inbounds [3 x float], [3 x float]* %4, i64 0, i64 0
%13 = getelementptr inbounds [3 x float], [3 x float]* %5, i64 0, i64 0
%14 = getelementptr inbounds [3 x float], [3 x float]* %6, i64 0, i64 0
%15 = call i32 @mix_scale_stereo(float* %11, float* %12, float 1.000000e+00, float* %13, float* %14, i32 3)
ret i32 0
}