; LLVM IR from Ryuk17/SpeechAlgorithms :: WebRTC_AEC/src (echo_cancellation)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.Stats = type { float, float, float, float, float, float, float, i32, i32 }
%struct.aecpc_t = type { i32, i32, i32, i32, float, i16, i32, i32, i32, i16, i16, i32, i16, i16, i16, i16, i32, i32, i32, i16, ptr, i32, i32, i32, float, ptr, i32, i32, ptr }
%struct.AecMetrics = type { %struct.AecLevel, %struct.AecLevel, %struct.AecLevel, %struct.AecLevel }
%struct.AecLevel = type { i32, i32, i32, i32 }

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nounwind uwtable
define dso_local i32 @WebRtcAec_GetMetrics(ptr noundef %0, ptr noundef %1) #1 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca float, align 4
  %7 = alloca float, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca %struct.Stats, align 4
  %11 = alloca %struct.Stats, align 4
  %12 = alloca %struct.Stats, align 4
  %13 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store float 0x3FE6666660000000, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %14, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 36, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 36, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 36, ptr %12) #4
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = icmp eq ptr %15, null
  br i1 %16, label %17, label %18

17:                                               ; preds = %2
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %229

18:                                               ; preds = %2
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  %20 = icmp eq ptr %19, null
  br i1 %20, label %21, label %24

21:                                               ; preds = %18
  %22 = load ptr, ptr %9, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.aecpc_t, ptr %22, i32 0, i32 26
  store i32 12003, ptr %23, align 8, !tbaa !11
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %229

24:                                               ; preds = %18
  %25 = load ptr, ptr %9, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.aecpc_t, ptr %25, i32 0, i32 9
  %27 = load i16, ptr %26, align 4, !tbaa !15
  %28 = sext i16 %27 to i32
  %29 = icmp ne i32 %28, 42
  br i1 %29, label %30, label %33

30:                                               ; preds = %24
  %31 = load ptr, ptr %9, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.aecpc_t, ptr %31, i32 0, i32 26
  store i32 12002, ptr %32, align 8, !tbaa !11
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %229

33:                                               ; preds = %24
  %34 = load ptr, ptr %9, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.aecpc_t, ptr %34, i32 0, i32 28
  %36 = load ptr, ptr %35, align 8, !tbaa !16
  call void @WebRtcAec_GetEchoStats(ptr noundef %36, ptr noundef %10, ptr noundef %11, ptr noundef %12)
  %37 = getelementptr inbounds %struct.Stats, ptr %10, i32 0, i32 0
  %38 = load float, ptr %37, align 4, !tbaa !17
  %39 = fptosi float %38 to i32
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.AecMetrics, ptr %40, i32 0, i32 1
  %42 = getelementptr inbounds %struct.AecLevel, ptr %41, i32 0, i32 0
  store i32 %39, ptr %42, align 4, !tbaa !19
  %43 = getelementptr inbounds %struct.Stats, ptr %10, i32 0, i32 6
  %44 = load float, ptr %43, align 4, !tbaa !22
  %45 = fcmp ogt float %44, -1.000000e+02
  br i1 %45, label %46, label %62

46:                                               ; preds = %33
  %47 = getelementptr inbounds %struct.Stats, ptr %10, i32 0, i32 1
  %48 = load float, ptr %47, align 4, !tbaa !23
  %49 = fcmp ogt float %48, -1.000000e+02
  br i1 %49, label %50, label %62

50:                                               ; preds = %46
  %51 = getelementptr inbounds %struct.Stats, ptr %10, i32 0, i32 6
  %52 = load float, ptr %51, align 4, !tbaa !22
  %53 = getelementptr inbounds %struct.Stats, ptr %10, i32 0, i32 1
  %54 = load float, ptr %53, align 4, !tbaa !23
  %55 = fmul float 0x3FD3333340000000, %54
  %56 = call float @llvm.fmuladd.f32(float 0x3FE6666660000000, float %52, float %55)
  store float %56, ptr %7, align 4, !tbaa !9
  %57 = load float, ptr %7, align 4, !tbaa !9
  %58 = fptosi float %57 to i32
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.AecMetrics, ptr %59, i32 0, i32 1
  %61 = getelementptr inbounds %struct.AecLevel, ptr %60, i32 0, i32 1
  store i32 %58, ptr %61, align 4, !tbaa !24
  br label %66

62:                                               ; preds = %46, %33
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.AecMetrics, ptr %63, i32 0, i32 1
  %65 = getelementptr inbounds %struct.AecLevel, ptr %64, i32 0, i32 1
  store i32 -100, ptr %65, align 4, !tbaa !24
  br label %66

66:                                               ; preds = %62, %50
  %67 = getelementptr inbounds %struct.Stats, ptr %10, i32 0, i32 3
  %68 = load float, ptr %67, align 4, !tbaa !25
  %69 = fptosi float %68 to i32
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.AecMetrics, ptr %70, i32 0, i32 1
  %72 = getelementptr inbounds %struct.AecLevel, ptr %71, i32 0, i32 2
  store i32 %69, ptr %72, align 4, !tbaa !26
  %73 = getelementptr inbounds %struct.Stats, ptr %10, i32 0, i32 2
  %74 = load float, ptr %73, align 4, !tbaa !27
  %75 = fcmp olt float %74, 1.000000e+02
  br i1 %75, label %76, label %83

76:                                               ; preds = %66
  %77 = getelementptr inbounds %struct.Stats, ptr %10, i32 0, i32 2
  %78 = load float, ptr %77, align 4, !tbaa !27
  %79 = fptosi float %78 to i32
  %80 = load ptr, ptr %5, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.AecMetrics, ptr %80, i32 0, i32 1
  %82 = getelementptr inbounds %struct.AecLevel, ptr %81, i32 0, i32 3
  store i32 %79, ptr %82, align 4, !tbaa !28
  br label %87

83:                                               ; preds = %66
  %84 = load ptr, ptr %5, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.AecMetrics, ptr %84, i32 0, i32 1
  %86 = getelementptr inbounds %struct.AecLevel, ptr %85, i32 0, i32 3
  store i32 -100, ptr %86, align 4, !tbaa !28
  br label %87

87:                                               ; preds = %83, %76
  %88 = getelementptr inbounds %struct.Stats, ptr %11, i32 0, i32 0
  %89 = load float, ptr %88, align 4, !tbaa !17
  %90 = fptosi float %89 to i32
  %91 = load ptr, ptr %5, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.AecMetrics, ptr %91, i32 0, i32 2
  %93 = getelementptr inbounds %struct.AecLevel, ptr %92, i32 0, i32 0
  store i32 %90, ptr %93, align 4, !tbaa !29
  %94 = getelementptr inbounds %struct.Stats, ptr %11, i32 0, i32 6
  %95 = load float, ptr %94, align 4, !tbaa !22
  %96 = fcmp ogt float %95, -1.000000e+02
  br i1 %96, label %97, label %113

97:                                               ; preds = %87
  %98 = getelementptr inbounds %struct.Stats, ptr %11, i32 0, i32 1
  %99 = load float, ptr %98, align 4, !tbaa !23
  %100 = fcmp ogt float %99, -1.000000e+02
  br i1 %100, label %101, label %113

101:                                              ; preds = %97
  %102 = getelementptr inbounds %struct.Stats, ptr %11, i32 0, i32 6
  %103 = load float, ptr %102, align 4, !tbaa !22
  %104 = getelementptr inbounds %struct.Stats, ptr %11, i32 0, i32 1
  %105 = load float, ptr %104, align 4, !tbaa !23
  %106 = fmul float 0x3FD3333340000000, %105
  %107 = call float @llvm.fmuladd.f32(float 0x3FE6666660000000, float %103, float %106)
  store float %107, ptr %7, align 4, !tbaa !9
  %108 = load float, ptr %7, align 4, !tbaa !9
  %109 = fptosi float %108 to i32
  %110 = load ptr, ptr %5, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.AecMetrics, ptr %110, i32 0, i32 2
  %112 = getelementptr inbounds %struct.AecLevel, ptr %111, i32 0, i32 1
  store i32 %109, ptr %112, align 4, !tbaa !30
  br label %117

113:                                              ; preds = %97, %87
  %114 = load ptr, ptr %5, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.AecMetrics, ptr %114, i32 0, i32 2
  %116 = getelementptr inbounds %struct.AecLevel, ptr %115, i32 0, i32 1
  store i32 -100, ptr %116, align 4, !tbaa !30
  br label %117

117:                                              ; preds = %113, %101
  %118 = getelementptr inbounds %struct.Stats, ptr %11, i32 0, i32 3
  %119 = load float, ptr %118, align 4, !tbaa !25
  %120 = fptosi float %119 to i32
  %121 = load ptr, ptr %5, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.AecMetrics, ptr %121, i32 0, i32 2
  %123 = getelementptr inbounds %struct.AecLevel, ptr %122, i32 0, i32 2
  store i32 %120, ptr %123, align 4, !tbaa !31
  %124 = getelementptr inbounds %struct.Stats, ptr %11, i32 0, i32 2
  %125 = load float, ptr %124, align 4, !tbaa !27
  %126 = fcmp olt float %125, 1.000000e+02
  br i1 %126, label %127, label %134

127:                                              ; preds = %117
  %128 = getelementptr inbounds %struct.Stats, ptr %11, i32 0, i32 2
  %129 = load float, ptr %128, align 4, !tbaa !27
  %130 = fptosi float %129 to i32
  %131 = load ptr, ptr %5, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.AecMetrics, ptr %131, i32 0, i32 2
  %133 = getelementptr inbounds %struct.AecLevel, ptr %132, i32 0, i32 3
  store i32 %130, ptr %133, align 4, !tbaa !32
  br label %138

134:                                              ; preds = %117
  %135 = load ptr, ptr %5, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.AecMetrics, ptr %135, i32 0, i32 2
  %137 = getelementptr inbounds %struct.AecLevel, ptr %136, i32 0, i32 3
  store i32 -100, ptr %137, align 4, !tbaa !32
  br label %138

138:                                              ; preds = %134, %127
  %139 = load ptr, ptr %5, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.AecMetrics, ptr %139, i32 0, i32 1
  %141 = getelementptr inbounds %struct.AecLevel, ptr %140, i32 0, i32 1
  %142 = load i32, ptr %141, align 4, !tbaa !24
  %143 = icmp sgt i32 %142, -100
  br i1 %143, label %144, label %160

144:                                              ; preds = %138
  %145 = load ptr, ptr %5, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.AecMetrics, ptr %145, i32 0, i32 2
  %147 = getelementptr inbounds %struct.AecLevel, ptr %146, i32 0, i32 1
  %148 = load i32, ptr %147, align 4, !tbaa !30
  %149 = icmp sgt i32 %148, -100
  br i1 %149, label %150, label %160

150:                                              ; preds = %144
  %151 = load ptr, ptr %5, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.AecMetrics, ptr %151, i32 0, i32 1
  %153 = getelementptr inbounds %struct.AecLevel, ptr %152, i32 0, i32 1
  %154 = load i32, ptr %153, align 4, !tbaa !24
  %155 = load ptr, ptr %5, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.AecMetrics, ptr %155, i32 0, i32 2
  %157 = getelementptr inbounds %struct.AecLevel, ptr %156, i32 0, i32 1
  %158 = load i32, ptr %157, align 4, !tbaa !30
  %159 = add nsw i32 %154, %158
  store i32 %159, ptr %8, align 4, !tbaa !33
  br label %161

160:                                              ; preds = %144, %138
  store i32 -100, ptr %8, align 4, !tbaa !33
  br label %161

161:                                              ; preds = %160, %150
  %162 = load i32, ptr %8, align 4, !tbaa !33
  %163 = load ptr, ptr %5, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.AecMetrics, ptr %163, i32 0, i32 0
  %165 = getelementptr inbounds %struct.AecLevel, ptr %164, i32 0, i32 1
  store i32 %162, ptr %165, align 4, !tbaa !34
  %166 = load i32, ptr %8, align 4, !tbaa !33
  %167 = load ptr, ptr %5, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.AecMetrics, ptr %167, i32 0, i32 0
  %169 = getelementptr inbounds %struct.AecLevel, ptr %168, i32 0, i32 0
  store i32 %166, ptr %169, align 4, !tbaa !35
  %170 = load i32, ptr %8, align 4, !tbaa !33
  %171 = load ptr, ptr %5, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.AecMetrics, ptr %171, i32 0, i32 0
  %173 = getelementptr inbounds %struct.AecLevel, ptr %172, i32 0, i32 2
  store i32 %170, ptr %173, align 4, !tbaa !36
  %174 = load i32, ptr %8, align 4, !tbaa !33
  %175 = load ptr, ptr %5, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.AecMetrics, ptr %175, i32 0, i32 0
  %177 = getelementptr inbounds %struct.AecLevel, ptr %176, i32 0, i32 3
  store i32 %174, ptr %177, align 4, !tbaa !37
  %178 = getelementptr inbounds %struct.Stats, ptr %12, i32 0, i32 0
  %179 = load float, ptr %178, align 4, !tbaa !17
  %180 = fptosi float %179 to i32
  %181 = load ptr, ptr %5, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.AecMetrics, ptr %181, i32 0, i32 3
  %183 = getelementptr inbounds %struct.AecLevel, ptr %182, i32 0, i32 0
  store i32 %180, ptr %183, align 4, !tbaa !38
  %184 = getelementptr inbounds %struct.Stats, ptr %12, i32 0, i32 6
  %185 = load float, ptr %184, align 4, !tbaa !22
  %186 = fcmp ogt float %185, -1.000000e+02
  br i1 %186, label %187, label %203

187:                                              ; preds = %161
  %188 = getelementptr inbounds %struct.Stats, ptr %12, i32 0, i32 1
  %189 = load float, ptr %188, align 4, !tbaa !23
  %190 = fcmp ogt float %189, -1.000000e+02
  br i1 %190, label %191, label %203

191:                                              ; preds = %187
  %192 = getelementptr inbounds %struct.Stats, ptr %12, i32 0, i32 6
  %193 = load float, ptr %192, align 4, !tbaa !22
  %194 = getelementptr inbounds %struct.Stats, ptr %12, i32 0, i32 1
  %195 = load float, ptr %194, align 4, !tbaa !23
  %196 = fmul float 0x3FD3333340000000, %195
  %197 = call float @llvm.fmuladd.f32(float 0x3FE6666660000000, float %193, float %196)
  store float %197, ptr %7, align 4, !tbaa !9
  %198 = load float, ptr %7, align 4, !tbaa !9
  %199 = fptosi float %198 to i32
  %200 = load ptr, ptr %5, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.AecMetrics, ptr %200, i32 0, i32 3
  %202 = getelementptr inbounds %struct.AecLevel, ptr %201, i32 0, i32 1
  store i32 %199, ptr %202, align 4, !tbaa !39
  br label %207

203:                                              ; preds = %187, %161
  %204 = load ptr, ptr %5, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.AecMetrics, ptr %204, i32 0, i32 3
  %206 = getelementptr inbounds %struct.AecLevel, ptr %205, i32 0, i32 1
  store i32 -100, ptr %206, align 4, !tbaa !39
  br label %207

207:                                              ; preds = %203, %191
  %208 = getelementptr inbounds %struct.Stats, ptr %12, i32 0, i32 3
  %209 = load float, ptr %208, align 4, !tbaa !25
  %210 = fptosi float %209 to i32
  %211 = load ptr, ptr %5, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.AecMetrics, ptr %211, i32 0, i32 3
  %213 = getelementptr inbounds %struct.AecLevel, ptr %212, i32 0, i32 2
  store i32 %210, ptr %213, align 4, !tbaa !40
  %214 = getelementptr inbounds %struct.Stats, ptr %12, i32 0, i32 2
  %215 = load float, ptr %214, align 4, !tbaa !27
  %216 = fcmp olt float %215, 1.000000e+02
  br i1 %216, label %217, label %224

217:                                              ; preds = %207
  %218 = getelementptr inbounds %struct.Stats, ptr %12, i32 0, i32 2
  %219 = load float, ptr %218, align 4, !tbaa !27
  %220 = fptosi float %219 to i32
  %221 = load ptr, ptr %5, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct.AecMetrics, ptr %221, i32 0, i32 3
  %223 = getelementptr inbounds %struct.AecLevel, ptr %222, i32 0, i32 3
  store i32 %220, ptr %223, align 4, !tbaa !41
  br label %228

224:                                              ; preds = %207
  %225 = load ptr, ptr %5, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.AecMetrics, ptr %225, i32 0, i32 3
  %227 = getelementptr inbounds %struct.AecLevel, ptr %226, i32 0, i32 3
  store i32 -100, ptr %227, align 4, !tbaa !41
  br label %228

228:                                              ; preds = %224, %217
  store i32 0, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %229

229:                                              ; preds = %228, %30, %21, %17
  call void @llvm.lifetime.end.p0(i64 36, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 36, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 36, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  %230 = load i32, ptr %3, align 4
  ret i32 %230
}

declare void @WebRtcAec_GetEchoStats(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !13, i64 104}
!12 = !{!"", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !10, i64 16, !14, i64 20, !13, i64 24, !13, i64 28, !13, i64 32, !14, i64 36, !14, i64 38, !13, i64 40, !14, i64 44, !14, i64 46, !14, i64 48, !14, i64 50, !13, i64 52, !13, i64 56, !13, i64 60, !14, i64 64, !6, i64 72, !13, i64 80, !13, i64 84, !13, i64 88, !10, i64 92, !6, i64 96, !13, i64 104, !13, i64 108, !6, i64 112}
!13 = !{!"int", !7, i64 0}
!14 = !{!"short", !7, i64 0}
!15 = !{!12, !14, i64 36}
!16 = !{!12, !6, i64 112}
!17 = !{!18, !10, i64 0}
!18 = !{!"Stats", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !13, i64 28, !13, i64 32}
!19 = !{!20, !13, i64 16}
!20 = !{!"", !21, i64 0, !21, i64 16, !21, i64 32, !21, i64 48}
!21 = !{!"", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12}
!22 = !{!18, !10, i64 24}
!23 = !{!18, !10, i64 4}
!24 = !{!20, !13, i64 20}
!25 = !{!18, !10, i64 12}
!26 = !{!20, !13, i64 24}
!27 = !{!18, !10, i64 8}
!28 = !{!20, !13, i64 28}
!29 = !{!20, !13, i64 32}
!30 = !{!20, !13, i64 36}
!31 = !{!20, !13, i64 40}
!32 = !{!20, !13, i64 44}
!33 = !{!13, !13, i64 0}
!34 = !{!20, !13, i64 4}
!35 = !{!20, !13, i64 0}
!36 = !{!20, !13, i64 8}
!37 = !{!20, !13, i64 12}
!38 = !{!20, !13, i64 48}
!39 = !{!20, !13, i64 52}
!40 = !{!20, !13, i64 56}
!41 = !{!20, !13, i64 60}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.Stats = type { float, float, float, float, float, float, float, i32, i32 }

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 1) i32 @WebRtcAec_GetMetrics(ptr noundef %0, ptr noundef writeonly %1) local_unnamed_addr #1 {
  %3 = alloca %struct.Stats, align 4
  %4 = alloca %struct.Stats, align 4
  %5 = alloca %struct.Stats, align 4
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %5) #5
  %6 = icmp eq ptr %0, null
  br i1 %6, label %97, label %7

7:                                                ; preds = %2
  %8 = icmp eq ptr %1, null
  br i1 %8, label %9, label %11

9:                                                ; preds = %7
  %10 = getelementptr inbounds i8, ptr %0, i64 104
  store i32 12003, ptr %10, align 8, !tbaa !5
  br label %97

11:                                               ; preds = %7
  %12 = getelementptr inbounds i8, ptr %0, i64 36
  %13 = load i16, ptr %12, align 4, !tbaa !13
  %.not = icmp eq i16 %13, 42
  br i1 %.not, label %16, label %14

14:                                               ; preds = %11
  %15 = getelementptr inbounds i8, ptr %0, i64 104
  store i32 12002, ptr %15, align 8, !tbaa !5
  br label %97

16:                                               ; preds = %11
  %17 = getelementptr inbounds i8, ptr %0, i64 112
  %18 = load ptr, ptr %17, align 8, !tbaa !14
  call void @WebRtcAec_GetEchoStats(ptr noundef %18, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %5) #5
  %19 = load float, ptr %3, align 4, !tbaa !15
  %20 = fptosi float %19 to i32
  %21 = getelementptr inbounds i8, ptr %1, i64 16
  store i32 %20, ptr %21, align 4, !tbaa !17
  %22 = getelementptr inbounds i8, ptr %3, i64 24
  %23 = load float, ptr %22, align 4, !tbaa !20
  %24 = getelementptr inbounds i8, ptr %3, i64 4
  %25 = load float, ptr %24, align 4
  %26 = getelementptr inbounds i8, ptr %1, i64 20
  %27 = getelementptr inbounds i8, ptr %3, i64 12
  %28 = load float, ptr %27, align 4, !tbaa !21
  %29 = fptosi float %28 to i32
  %30 = getelementptr inbounds i8, ptr %1, i64 24
  store i32 %29, ptr %30, align 4, !tbaa !22
  %31 = getelementptr inbounds i8, ptr %3, i64 8
  %32 = load float, ptr %31, align 4, !tbaa !23
  %33 = fcmp olt float %32, 1.000000e+02
  %34 = fptosi float %32 to i32
  %.sink62 = select i1 %33, i32 %34, i32 -100
  %35 = getelementptr inbounds i8, ptr %1, i64 28
  store i32 %.sink62, ptr %35, align 4
  %36 = load float, ptr %4, align 4, !tbaa !15
  %37 = fptosi float %36 to i32
  %38 = getelementptr inbounds i8, ptr %1, i64 32
  store i32 %37, ptr %38, align 4, !tbaa !24
  %39 = getelementptr inbounds i8, ptr %4, i64 24
  %40 = load float, ptr %39, align 4, !tbaa !20
  %41 = getelementptr inbounds i8, ptr %4, i64 4
  %42 = load <4 x float>, ptr %41, align 4
  %43 = shufflevector <4 x float> %42, <4 x float> poison, <2 x i32> <i32 0, i32 poison>
  %44 = insertelement <2 x float> poison, float %40, i64 0
  %45 = insertelement <2 x float> %44, float %23, i64 1
  %46 = fcmp ogt <2 x float> %45, <float -1.000000e+02, float -1.000000e+02>
  %47 = insertelement <2 x float> %43, float %25, i64 1
  %48 = fcmp ogt <2 x float> %47, <float -1.000000e+02, float -1.000000e+02>
  %49 = select <2 x i1> %46, <2 x i1> %48, <2 x i1> zeroinitializer
  %50 = fmul <2 x float> %47, <float 0x3FD3333340000000, float 0x3FD3333340000000>
  %51 = call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %45, <2 x float> <float 0x3FE6666660000000, float 0x3FE6666660000000>, <2 x float> %50)
  %52 = fptosi <2 x float> %51 to <2 x i32>
  %53 = select <2 x i1> %49, <2 x i32> %52, <2 x i32> <i32 -100, i32 -100>
  %54 = extractelement <2 x i32> %53, i64 1
  store i32 %54, ptr %26, align 4
  %55 = getelementptr inbounds i8, ptr %1, i64 36
  %56 = extractelement <2 x i32> %53, i64 0
  store i32 %56, ptr %55, align 4
  %57 = getelementptr inbounds i8, ptr %4, i64 12
  %58 = load float, ptr %57, align 4, !tbaa !21
  %59 = fptosi float %58 to i32
  %60 = getelementptr inbounds i8, ptr %1, i64 40
  store i32 %59, ptr %60, align 4, !tbaa !25
  %61 = getelementptr inbounds i8, ptr %4, i64 8
  %62 = load float, ptr %61, align 4, !tbaa !23
  %63 = fcmp olt float %62, 1.000000e+02
  %64 = fptosi float %62 to i32
  %.sink64 = select i1 %63, i32 %64, i32 -100
  %65 = getelementptr inbounds i8, ptr %1, i64 44
  store i32 %.sink64, ptr %65, align 4
  %66 = icmp sgt i32 %54, -100
  %67 = icmp sgt i32 %56, -100
  %68 = add nsw i32 %56, %54
  %69 = select i1 %66, i1 %67, i1 false
  %.048 = select i1 %69, i32 %68, i32 -100
  %70 = insertelement <4 x i32> poison, i32 %.048, i64 0
  %71 = shufflevector <4 x i32> %70, <4 x i32> poison, <4 x i32> zeroinitializer
  store <4 x i32> %71, ptr %1, align 4, !tbaa !26
  %72 = load float, ptr %5, align 4, !tbaa !15
  %73 = fptosi float %72 to i32
  %74 = getelementptr inbounds i8, ptr %1, i64 48
  store i32 %73, ptr %74, align 4, !tbaa !27
  %75 = getelementptr inbounds i8, ptr %5, i64 24
  %76 = load float, ptr %75, align 4, !tbaa !20
  %77 = fcmp ogt float %76, -1.000000e+02
  %78 = getelementptr inbounds i8, ptr %5, i64 4
  %79 = load float, ptr %78, align 4
  %80 = fcmp ogt float %79, -1.000000e+02
  %or.cond8 = select i1 %77, i1 %80, i1 false
  %81 = fmul float %79, 0x3FD3333340000000
  %82 = call float @llvm.fmuladd.f32(float %76, float 0x3FE6666660000000, float %81)
  %83 = fptosi float %82 to i32
  %.sink65 = select i1 %or.cond8, i32 %83, i32 -100
  %84 = getelementptr inbounds i8, ptr %1, i64 52
  store i32 %.sink65, ptr %84, align 4
  %85 = getelementptr inbounds i8, ptr %5, i64 12
  %86 = load float, ptr %85, align 4, !tbaa !21
  %87 = fptosi float %86 to i32
  %88 = getelementptr inbounds i8, ptr %1, i64 56
  store i32 %87, ptr %88, align 4, !tbaa !28
  %89 = getelementptr inbounds i8, ptr %5, i64 8
  %90 = load float, ptr %89, align 4, !tbaa !23
  %91 = fcmp olt float %90, 1.000000e+02
  br i1 %91, label %92, label %95

92:                                               ; preds = %16
  %93 = fptosi float %90 to i32
  %94 = getelementptr inbounds i8, ptr %1, i64 60
  store i32 %93, ptr %94, align 4, !tbaa !29
  br label %97

95:                                               ; preds = %16
  %96 = getelementptr inbounds i8, ptr %1, i64 60
  store i32 -100, ptr %96, align 4, !tbaa !29
  br label %97

97:                                               ; preds = %92, %95, %2, %14, %9
  %.0 = phi i32 [ -1, %9 ], [ -1, %14 ], [ -1, %2 ], [ 0, %95 ], [ 0, %92 ]
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %3) #5
  ret i32 %.0
}

declare void @WebRtcAec_GetEchoStats(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x float> @llvm.fmuladd.v2f32(<2 x float>, <2 x float>, <2 x float>) #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 104}
!6 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !10, i64 16, !11, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !11, i64 36, !11, i64 38, !7, i64 40, !11, i64 44, !11, i64 46, !11, i64 48, !11, i64 50, !7, i64 52, !7, i64 56, !7, i64 60, !11, i64 64, !12, i64 72, !7, i64 80, !7, i64 84, !7, i64 88, !10, i64 92, !12, i64 96, !7, i64 104, !7, i64 108, !12, i64 112}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"float", !8, i64 0}
!11 = !{!"short", !8, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!6, !11, i64 36}
!14 = !{!6, !12, i64 112}
!15 = !{!16, !10, i64 0}
!16 = !{!"Stats", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !7, i64 28, !7, i64 32}
!17 = !{!18, !7, i64 16}
!18 = !{!"", !19, i64 0, !19, i64 16, !19, i64 32, !19, i64 48}
!19 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12}
!20 = !{!16, !10, i64 24}
!21 = !{!16, !10, i64 12}
!22 = !{!18, !7, i64 24}
!23 = !{!16, !10, i64 8}
!24 = !{!18, !7, i64 32}
!25 = !{!18, !7, i64 40}
!26 = !{!7, !7, i64 0}
!27 = !{!18, !7, i64 48}
!28 = !{!18, !7, i64 56}
!29 = !{!18, !7, i64 60}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,MergedLoadStoreMotionPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,VectorCombinePass