; LLVM IR from tanakamasayuki/Arduino_TensorFlowLite_ESP32 :: src/tensorflow/lite/experimental/microfrontend/lib (pcan_gain_control_util)

; 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.PcanGainControlConfig = type { i32, float, float, i32 }
%struct.PcanGainControlState = type { i32, ptr, i32, ptr, i32 }

@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [29 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local signext i16 @PcanGainLookupFunction(ptr noundef, i32 noundef, i32 noundef) #0

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @PcanGainControlPopulateState(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i16 noundef zeroext %4, i32 noundef %5) #0 {
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i16, align 2
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i16, align 2
  %20 = alloca i16, align 2
  %21 = alloca i16, align 2
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store i32 %3, ptr %11, align 4, !tbaa !9
  store i16 %4, ptr %12, align 2, !tbaa !11
  store i32 %5, ptr %13, align 4, !tbaa !9
  %26 = load ptr, ptr %8, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.PcanGainControlConfig, ptr %26, i32 0, i32 0
  %28 = load i32, ptr %27, align 4, !tbaa !13
  %29 = load ptr, ptr %9, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.PcanGainControlState, ptr %29, i32 0, i32 0
  store i32 %28, ptr %30, align 8, !tbaa !16
  %31 = load ptr, ptr %9, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.PcanGainControlState, ptr %31, i32 0, i32 0
  %33 = load i32, ptr %32, align 8, !tbaa !16
  %34 = icmp ne i32 %33, 0
  br i1 %34, label %36, label %35

35:                                               ; preds = %6
  store i32 1, ptr %7, align 4
  br label %172

36:                                               ; preds = %6
  %37 = load ptr, ptr %10, align 8, !tbaa !5
  %38 = load ptr, ptr %9, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.PcanGainControlState, ptr %38, i32 0, i32 1
  store ptr %37, ptr %39, align 8, !tbaa !18
  %40 = load i32, ptr %11, align 4, !tbaa !9
  %41 = load ptr, ptr %9, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.PcanGainControlState, ptr %41, i32 0, i32 2
  store i32 %40, ptr %42, align 8, !tbaa !19
  %43 = call noalias ptr @malloc(i64 noundef 250) #4
  %44 = load ptr, ptr %9, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.PcanGainControlState, ptr %44, i32 0, i32 3
  store ptr %43, ptr %45, align 8, !tbaa !20
  %46 = load ptr, ptr %9, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.PcanGainControlState, ptr %46, i32 0, i32 3
  %48 = load ptr, ptr %47, align 8, !tbaa !20
  %49 = icmp eq ptr %48, null
  br i1 %49, label %50, label %53

50:                                               ; preds = %36
  %51 = load ptr, ptr @stderr, align 8, !tbaa !5
  %52 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %51, ptr noundef @.str) #5
  store i32 0, ptr %7, align 4
  br label %172

53:                                               ; preds = %36
  %54 = load ptr, ptr %8, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.PcanGainControlConfig, ptr %54, i32 0, i32 3
  %56 = load i32, ptr %55, align 4, !tbaa !21
  %57 = load i32, ptr %13, align 4, !tbaa !9
  %58 = sub nsw i32 %56, %57
  %59 = sub nsw i32 %58, 12
  %60 = load ptr, ptr %9, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.PcanGainControlState, ptr %60, i32 0, i32 4
  store i32 %59, ptr %61, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %62 = load i16, ptr %12, align 2, !tbaa !11
  %63 = zext i16 %62 to i32
  %64 = load i32, ptr %13, align 4, !tbaa !9
  %65 = sub nsw i32 %63, %64
  store i32 %65, ptr %14, align 4, !tbaa !9
  %66 = load ptr, ptr %8, align 8, !tbaa !5
  %67 = load i32, ptr %14, align 4, !tbaa !9
  %68 = call signext i16 @PcanGainLookupFunction(ptr noundef %66, i32 noundef %67, i32 noundef 0)
  %69 = load ptr, ptr %9, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.PcanGainControlState, ptr %69, i32 0, i32 3
  %71 = load ptr, ptr %70, align 8, !tbaa !20
  %72 = getelementptr inbounds i16, ptr %71, i64 0
  store i16 %68, ptr %72, align 2, !tbaa !11
  %73 = load ptr, ptr %8, align 8, !tbaa !5
  %74 = load i32, ptr %14, align 4, !tbaa !9
  %75 = call signext i16 @PcanGainLookupFunction(ptr noundef %73, i32 noundef %74, i32 noundef 1)
  %76 = load ptr, ptr %9, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.PcanGainControlState, ptr %76, i32 0, i32 3
  %78 = load ptr, ptr %77, align 8, !tbaa !20
  %79 = getelementptr inbounds i16, ptr %78, i64 1
  store i16 %75, ptr %79, align 2, !tbaa !11
  %80 = load ptr, ptr %9, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.PcanGainControlState, ptr %80, i32 0, i32 3
  %82 = load ptr, ptr %81, align 8, !tbaa !20
  %83 = getelementptr inbounds i16, ptr %82, i64 -6
  store ptr %83, ptr %81, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 2, ptr %15, align 4, !tbaa !9
  br label %84

84:                                               ; preds = %164, %53
  %85 = load i32, ptr %15, align 4, !tbaa !9
  %86 = icmp sle i32 %85, 32
  br i1 %86, label %87, label %167

87:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %88 = load i32, ptr %15, align 4, !tbaa !9
  %89 = sub nsw i32 %88, 1
  %90 = shl i32 1, %89
  store i32 %90, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  %91 = load i32, ptr %16, align 4, !tbaa !9
  %92 = load i32, ptr %16, align 4, !tbaa !9
  %93 = lshr i32 %92, 1
  %94 = add i32 %91, %93
  store i32 %94, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %95 = load i32, ptr %15, align 4, !tbaa !9
  %96 = icmp eq i32 %95, 32
  br i1 %96, label %97, label %102

97:                                               ; preds = %87
  %98 = load i32, ptr %16, align 4, !tbaa !9
  %99 = load i32, ptr %16, align 4, !tbaa !9
  %100 = sub i32 %99, 1
  %101 = add i32 %98, %100
  br label %105

102:                                              ; preds = %87
  %103 = load i32, ptr %16, align 4, !tbaa !9
  %104 = mul i32 2, %103
  br label %105

105:                                              ; preds = %102, %97
  %106 = phi i32 [ %101, %97 ], [ %104, %102 ]
  store i32 %106, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2, ptr %19) #5
  %107 = load ptr, ptr %8, align 8, !tbaa !5
  %108 = load i32, ptr %14, align 4, !tbaa !9
  %109 = load i32, ptr %16, align 4, !tbaa !9
  %110 = call signext i16 @PcanGainLookupFunction(ptr noundef %107, i32 noundef %108, i32 noundef %109)
  store i16 %110, ptr %19, align 2, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 2, ptr %20) #5
  %111 = load ptr, ptr %8, align 8, !tbaa !5
  %112 = load i32, ptr %14, align 4, !tbaa !9
  %113 = load i32, ptr %17, align 4, !tbaa !9
  %114 = call signext i16 @PcanGainLookupFunction(ptr noundef %111, i32 noundef %112, i32 noundef %113)
  store i16 %114, ptr %20, align 2, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 2, ptr %21) #5
  %115 = load ptr, ptr %8, align 8, !tbaa !5
  %116 = load i32, ptr %14, align 4, !tbaa !9
  %117 = load i32, ptr %18, align 4, !tbaa !9
  %118 = call signext i16 @PcanGainLookupFunction(ptr noundef %115, i32 noundef %116, i32 noundef %117)
  store i16 %118, ptr %21, align 2, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  %119 = load i16, ptr %20, align 2, !tbaa !11
  %120 = sext i16 %119 to i32
  %121 = load i16, ptr %19, align 2, !tbaa !11
  %122 = sext i16 %121 to i32
  %123 = sub nsw i32 %120, %122
  store i32 %123, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  %124 = load i16, ptr %21, align 2, !tbaa !11
  %125 = sext i16 %124 to i32
  %126 = load i16, ptr %19, align 2, !tbaa !11
  %127 = sext i16 %126 to i32
  %128 = sub nsw i32 %125, %127
  store i32 %128, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  %129 = load i32, ptr %22, align 4, !tbaa !9
  %130 = mul nsw i32 4, %129
  %131 = load i32, ptr %23, align 4, !tbaa !9
  %132 = sub nsw i32 %130, %131
  store i32 %132, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  %133 = load i32, ptr %23, align 4, !tbaa !9
  %134 = load i32, ptr %24, align 4, !tbaa !9
  %135 = sub nsw i32 %133, %134
  store i32 %135, ptr %25, align 4, !tbaa !9
  %136 = load i16, ptr %19, align 2, !tbaa !11
  %137 = load ptr, ptr %9, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.PcanGainControlState, ptr %137, i32 0, i32 3
  %139 = load ptr, ptr %138, align 8, !tbaa !20
  %140 = load i32, ptr %15, align 4, !tbaa !9
  %141 = mul nsw i32 4, %140
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds i16, ptr %139, i64 %142
  store i16 %136, ptr %143, align 2, !tbaa !11
  %144 = load i32, ptr %24, align 4, !tbaa !9
  %145 = trunc i32 %144 to i16
  %146 = load ptr, ptr %9, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.PcanGainControlState, ptr %146, i32 0, i32 3
  %148 = load ptr, ptr %147, align 8, !tbaa !20
  %149 = load i32, ptr %15, align 4, !tbaa !9
  %150 = mul nsw i32 4, %149
  %151 = add nsw i32 %150, 1
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds i16, ptr %148, i64 %152
  store i16 %145, ptr %153, align 2, !tbaa !11
  %154 = load i32, ptr %25, align 4, !tbaa !9
  %155 = trunc i32 %154 to i16
  %156 = load ptr, ptr %9, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.PcanGainControlState, ptr %156, i32 0, i32 3
  %158 = load ptr, ptr %157, align 8, !tbaa !20
  %159 = load i32, ptr %15, align 4, !tbaa !9
  %160 = mul nsw i32 4, %159
  %161 = add nsw i32 %160, 2
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds i16, ptr %158, i64 %162
  store i16 %155, ptr %163, align 2, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %164

164:                                              ; preds = %105
  %165 = load i32, ptr %15, align 4, !tbaa !9
  %166 = add nsw i32 %165, 1
  store i32 %166, ptr %15, align 4, !tbaa !9
  br label %84, !llvm.loop !23

167:                                              ; preds = %84
  %168 = load ptr, ptr %9, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.PcanGainControlState, ptr %168, i32 0, i32 3
  %170 = load ptr, ptr %169, align 8, !tbaa !20
  %171 = getelementptr inbounds i16, ptr %170, i64 6
  store ptr %171, ptr %169, align 8, !tbaa !20
  store i32 1, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %172

172:                                              ; preds = %167, %50, %35
  %173 = load i32, ptr %7, align 4
  ret i32 %173
}

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #2

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #3

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind allocsize(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 #3 = { nounwind "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 #4 = { nounwind allocsize(0) }
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, !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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"short", !7, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"PcanGainControlConfig", !10, i64 0, !15, i64 4, !15, i64 8, !10, i64 12}
!15 = !{!"float", !7, i64 0}
!16 = !{!17, !10, i64 0}
!17 = !{!"PcanGainControlState", !10, i64 0, !6, i64 8, !10, i64 16, !6, i64 24, !10, i64 32}
!18 = !{!17, !6, i64 8}
!19 = !{!17, !10, i64 16}
!20 = !{!17, !6, i64 24}
!21 = !{!14, !10, i64 12}
!22 = !{!17, !10, i64 32}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}


; 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"

@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [29 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local signext i16 @PcanGainLookupFunction(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @PcanGainControlPopulateState(ptr noundef %0, ptr nocapture noundef %1, ptr noundef %2, i32 noundef %3, i16 noundef zeroext %4, i32 noundef %5) local_unnamed_addr #0 {
  %7 = load i32, ptr %0, align 4, !tbaa !5
  store i32 %7, ptr %1, align 8, !tbaa !11
  %.not = icmp eq i32 %7, 0
  br i1 %.not, label %61, label %8

8:                                                ; preds = %6
  %9 = getelementptr inbounds i8, ptr %1, i64 8
  store ptr %2, ptr %9, align 8, !tbaa !14
  %10 = getelementptr inbounds i8, ptr %1, i64 16
  store i32 %3, ptr %10, align 8, !tbaa !15
  %11 = tail call noalias dereferenceable_or_null(250) ptr @malloc(i64 noundef 250) #3
  %12 = getelementptr inbounds i8, ptr %1, i64 24
  store ptr %11, ptr %12, align 8, !tbaa !16
  %13 = icmp eq ptr %11, null
  br i1 %13, label %14, label %17

14:                                               ; preds = %8
  %15 = load ptr, ptr @stderr, align 8, !tbaa !17
  %16 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %15, ptr noundef nonnull @.str) #4
  br label %61

17:                                               ; preds = %8
  %18 = getelementptr inbounds i8, ptr %0, i64 12
  %19 = load i32, ptr %18, align 4, !tbaa !18
  %reass.sub = sub i32 %19, %5
  %20 = add i32 %reass.sub, -12
  %21 = getelementptr inbounds i8, ptr %1, i64 32
  store i32 %20, ptr %21, align 8, !tbaa !19
  %22 = zext i16 %4 to i32
  %23 = sub nsw i32 %22, %5
  %24 = tail call signext i16 @PcanGainLookupFunction(ptr noundef nonnull %0, i32 noundef %23, i32 noundef 0)
  %25 = load ptr, ptr %12, align 8, !tbaa !16
  store i16 %24, ptr %25, align 2, !tbaa !20
  %26 = tail call signext i16 @PcanGainLookupFunction(ptr noundef nonnull %0, i32 noundef %23, i32 noundef 1)
  %27 = load ptr, ptr %12, align 8, !tbaa !16
  %28 = getelementptr inbounds i8, ptr %27, i64 2
  store i16 %26, ptr %28, align 2, !tbaa !20
  %29 = getelementptr inbounds i8, ptr %27, i64 -12
  store ptr %29, ptr %12, align 8, !tbaa !16
  br label %30

30:                                               ; preds = %17, %30
  %indvars.iv = phi i64 [ 2, %17 ], [ %indvars.iv.next, %30 ]
  %31 = trunc i64 %indvars.iv to i32
  %32 = add i32 %31, -1
  %33 = shl nuw i32 1, %32
  %34 = lshr exact i32 %33, 1
  %35 = add nuw i32 %34, %33
  %36 = icmp eq i64 %indvars.iv, 32
  %37 = shl i32 2, %32
  %38 = select i1 %36, i32 -1, i32 %37
  %39 = tail call signext i16 @PcanGainLookupFunction(ptr noundef nonnull %0, i32 noundef %23, i32 noundef %33)
  %40 = tail call signext i16 @PcanGainLookupFunction(ptr noundef nonnull %0, i32 noundef %23, i32 noundef %35)
  %41 = tail call signext i16 @PcanGainLookupFunction(ptr noundef nonnull %0, i32 noundef %23, i32 noundef %38)
  %42 = sext i16 %40 to i32
  %43 = sext i16 %39 to i32
  %44 = sub nsw i32 %42, %43
  %45 = zext i16 %41 to i32
  %46 = sub nsw i32 %45, %43
  %47 = shl nsw i32 %44, 2
  %48 = sub nsw i32 %47, %46
  %49 = sub nsw i32 %46, %48
  %50 = load ptr, ptr %12, align 8, !tbaa !16
  %51 = shl nuw nsw i64 %indvars.iv, 2
  %52 = getelementptr inbounds i16, ptr %50, i64 %51
  store i16 %39, ptr %52, align 2, !tbaa !20
  %53 = trunc i32 %48 to i16
  %54 = or disjoint i64 %51, 1
  %55 = getelementptr inbounds i16, ptr %50, i64 %54
  store i16 %53, ptr %55, align 2, !tbaa !20
  %56 = trunc i32 %49 to i16
  %57 = or disjoint i64 %51, 2
  %58 = getelementptr inbounds i16, ptr %50, i64 %57
  store i16 %56, ptr %58, align 2, !tbaa !20
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 33
  br i1 %exitcond.not, label %59, label %30, !llvm.loop !22

59:                                               ; preds = %30
  %60 = getelementptr inbounds i8, ptr %50, i64 12
  store ptr %60, ptr %12, align 8, !tbaa !16
  br label %61

61:                                               ; preds = %6, %59, %14
  %.0 = phi i32 [ 0, %14 ], [ 1, %59 ], [ 1, %6 ]
  ret i32 %.0
}

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #2

attributes #0 = { 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 #1 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { nofree nounwind "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 = { nounwind allocsize(0) }
attributes #4 = { cold 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 0}
!6 = !{!"PcanGainControlConfig", !7, i64 0, !10, i64 4, !10, i64 8, !7, i64 12}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"float", !8, i64 0}
!11 = !{!12, !7, i64 0}
!12 = !{!"PcanGainControlState", !7, i64 0, !13, i64 8, !7, i64 16, !13, i64 24, !7, i64 32}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!12, !13, i64 8}
!15 = !{!12, !7, i64 16}
!16 = !{!12, !13, i64 24}
!17 = !{!13, !13, i64 0}
!18 = !{!6, !7, i64 12}
!19 = !{!12, !7, i64 32}
!20 = !{!21, !21, i64 0}
!21 = !{!"short", !8, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LoopRotatePass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass