#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 */
float ModulatedBuzz(float, float, float);
void PhonemeV(float t, float *frame) {
  const float buzz = ModulatedBuzz(t, 0.4f, 8.0f);
  int c;
  for (c = 0; c < 24; ++c) {
    frame[c] = (c >= 20) ? buzz : 0.0f;
  }
}


x86 assembly (clang, -O0):
<PhonemeV>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movss  %xmm0,-0x4(%rbp)
mov    %rdi,-0x10(%rbp)
movss  -0x4(%rbp),%xmm0
movss  0xed2(%rip),%xmm1
movss  0xece(%rip),%xmm2
call   1030 <ModulatedBuzz@plt>
movss  %xmm0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
cmpl   $0x18,-0x18(%rbp)
jge    1197 <PhonemeV+0x87>
cmpl   $0x14,-0x18(%rbp)
jl     116a <PhonemeV+0x5a>
movss  -0x14(%rbp),%xmm0
movss  %xmm0,-0x1c(%rbp)
jmp    1177 <PhonemeV+0x67>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x1c(%rbp)
jmp    1177 <PhonemeV+0x67>
movss  -0x1c(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1147 <PhonemeV+0x37>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<PhonemeV>:
push   %rbx
mov    %rdi,%rbx
movss  0xee4(%rip),%xmm1
movss  0xee0(%rip),%xmm2
call   1030 <ModulatedBuzz@plt>
xorps  %xmm1,%xmm1
movups %xmm1,(%rbx)
movups %xmm1,0x10(%rbx)
movups %xmm1,0x20(%rbx)
movups %xmm1,0x30(%rbx)
movups %xmm1,0x40(%rbx)
shufps $0x0,%xmm0,%xmm0
movups %xmm0,0x50(%rbx)
pop    %rbx
ret

LLVM IR (-O0):
define void @PhonemeV(float %0, float* %1) {
%3 = alloca float
%4 = alloca float*
%5 = alloca float
%6 = alloca i32
store float %0, float* %3
store float* %1, float** %4
%7 = load float, float* %3
%8 = call float @ModulatedBuzz(float %7, float 0x3FD99999A0000000, float 8.000000e+00)
store float %8, float* %5
store i32 0, i32* %6
br label %9
9: ; preds = %24, %2
%10 = load i32, i32* %6
%11 = icmp slt i32 %10, 24
br i1 %11, label %12, label %27
12: ; preds = %9
%13 = load i32, i32* %6
%14 = icmp sge i32 %13, 20
br i1 %14, label %15, label %17
15: ; preds = %12
%16 = load float, float* %5
br label %18
17: ; preds = %12
br label %18
18: ; preds = %17, %15
%19 = phi float [ %16, %15 ], [ 0.000000e+00, %17 ]
%20 = load float*, float** %4
%21 = load i32, i32* %6
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds float, float* %20, i64 %22
store float %19, float* %23
br label %24
24: ; preds = %18
%25 = load i32, i32* %6
%26 = add nsw i32 %25, 1
store i32 %26, i32* %6
br label %9
27: ; preds = %9
ret void
}

LLVM IR (-O2):
define void @PhonemeV(float %0, float* nocapture writeonly %1) {
%3 = tail call float @ModulatedBuzz(float %0, float 0x3FD99999A0000000, float 8.000000e+00)
%4 = getelementptr inbounds float, float* %1, i64 20
%5 = bitcast float* %1 to i8*
%6 = insertelement <4 x float> poison, float %3, i64 0
%7 = shufflevector <4 x float> %6, <4 x float> poison, <4 x i32> zeroinitializer
%8 = bitcast float* %4 to <4 x float>*
store <4 x float> %7, <4 x float>* %8
ret void
}