; LLVM IR from NVIDIA/tensorflow :: tensorflow/lite/experimental/microfrontend/lib (frontend_main)

; 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.FrontendConfig = type { %struct.WindowConfig, %struct.FilterbankConfig, %struct.NoiseReductionConfig, %struct.PcanGainControlConfig, %struct.LogScaleConfig }
%struct.WindowConfig = type { i64, i64 }
%struct.FilterbankConfig = type { i32, float, float, i32 }
%struct.NoiseReductionConfig = type { i32, float, float, float }
%struct.PcanGainControlConfig = type { i32, float, float, i32 }
%struct.LogScaleConfig = type { i32, i32 }
%struct.FrontendState = type { %struct.WindowState, %struct.FftState, %struct.FilterbankState, %struct.NoiseReductionState, %struct.PcanGainControlState, %struct.LogScaleState }
%struct.WindowState = type { i64, ptr, i64, ptr, i64, ptr, i16 }
%struct.FftState = type { ptr, ptr, i64, i64, ptr, i64 }
%struct.FilterbankState = type { i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.NoiseReductionState = type { i32, i16, i16, i16, i32, ptr }
%struct.PcanGainControlState = type { i32, ptr, i32, ptr, i32 }
%struct.LogScaleState = type { i32, i32 }
%struct.FrontendOutput = type { ptr, i64 }

@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [35 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca %struct.FrontendConfig, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %struct.FrontendState, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  %16 = alloca %struct.FrontendOutput, align 8
  %17 = alloca i32, align 4
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 72, ptr %6) #5
  call void @FrontendFillConfigWithDefaults(ptr noundef %6)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %18 = load ptr, ptr %5, align 8, !tbaa !9
  %19 = getelementptr inbounds ptr, ptr %18, i64 1
  %20 = load ptr, ptr %19, align 8, !tbaa !9
  store ptr %20, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 16000, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 240, ptr %9) #5
  %21 = load i32, ptr %8, align 4, !tbaa !5
  %22 = call i32 @FrontendPopulateState(ptr noundef %6, ptr noundef %9, i32 noundef %21)
  %23 = icmp ne i32 %22, 0
  br i1 %23, label %27, label %24

24:                                               ; preds = %2
  %25 = load ptr, ptr @stderr, align 8, !tbaa !9
  %26 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef @.str) #5
  call void @FrontendFreeStateContents(ptr noundef %9)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %104

27:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %28 = load ptr, ptr %7, align 8, !tbaa !9
  %29 = call noalias ptr @fopen(ptr noundef %28, ptr noundef @.str.1)
  store ptr %29, ptr %11, align 8, !tbaa !9
  %30 = load ptr, ptr %11, align 8, !tbaa !9
  %31 = icmp eq ptr %30, null
  br i1 %31, label %32, label %36

32:                                               ; preds = %27
  %33 = load ptr, ptr @stderr, align 8, !tbaa !9
  %34 = load ptr, ptr %7, align 8, !tbaa !9
  %35 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %33, ptr noundef @.str.2, ptr noundef %34) #5
  store i32 1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %103

36:                                               ; preds = %27
  %37 = load ptr, ptr %11, align 8, !tbaa !9
  %38 = call i32 @fseek(ptr noundef %37, i64 noundef 0, i32 noundef 2)
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %39 = load ptr, ptr %11, align 8, !tbaa !9
  %40 = call i64 @ftell(ptr noundef %39)
  %41 = udiv i64 %40, 2
  store i64 %41, ptr %12, align 8, !tbaa !11
  %42 = load ptr, ptr %11, align 8, !tbaa !9
  %43 = call i32 @fseek(ptr noundef %42, i64 noundef 0, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %44 = load i64, ptr %12, align 8, !tbaa !11
  %45 = mul i64 %44, 2
  %46 = call noalias ptr @malloc(i64 noundef %45) #6
  store ptr %46, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %47 = load ptr, ptr %13, align 8, !tbaa !9
  store ptr %47, ptr %14, align 8, !tbaa !9
  %48 = load i64, ptr %12, align 8, !tbaa !11
  %49 = load ptr, ptr %13, align 8, !tbaa !9
  %50 = load i64, ptr %12, align 8, !tbaa !11
  %51 = load ptr, ptr %11, align 8, !tbaa !9
  %52 = call i64 @fread(ptr noundef %49, i64 noundef 2, i64 noundef %50, ptr noundef %51)
  %53 = icmp ne i64 %48, %52
  br i1 %53, label %54, label %57

54:                                               ; preds = %36
  %55 = load ptr, ptr @stderr, align 8, !tbaa !9
  %56 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %55, ptr noundef @.str.3) #5
  store i32 1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %102

57:                                               ; preds = %36
  br label %58

58:                                               ; preds = %99, %57
  %59 = load i64, ptr %12, align 8, !tbaa !11
  %60 = icmp ugt i64 %59, 0
  br i1 %60, label %61, label %100

61:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #5
  %62 = load ptr, ptr %13, align 8, !tbaa !9
  %63 = load i64, ptr %12, align 8, !tbaa !11
  %64 = call { ptr, i64 } @FrontendProcessSamples(ptr noundef %9, ptr noundef %62, i64 noundef %63, ptr noundef %15)
  %65 = getelementptr inbounds { ptr, i64 }, ptr %16, i32 0, i32 0
  %66 = extractvalue { ptr, i64 } %64, 0
  store ptr %66, ptr %65, align 8
  %67 = getelementptr inbounds { ptr, i64 }, ptr %16, i32 0, i32 1
  %68 = extractvalue { ptr, i64 } %64, 1
  store i64 %68, ptr %67, align 8
  %69 = load i64, ptr %15, align 8, !tbaa !11
  %70 = load ptr, ptr %13, align 8, !tbaa !9
  %71 = getelementptr inbounds i16, ptr %70, i64 %69
  store ptr %71, ptr %13, align 8, !tbaa !9
  %72 = load i64, ptr %15, align 8, !tbaa !11
  %73 = load i64, ptr %12, align 8, !tbaa !11
  %74 = sub i64 %73, %72
  store i64 %74, ptr %12, align 8, !tbaa !11
  %75 = getelementptr inbounds %struct.FrontendOutput, ptr %16, i32 0, i32 0
  %76 = load ptr, ptr %75, align 8, !tbaa !13
  %77 = icmp ne ptr %76, null
  br i1 %77, label %78, label %99

78:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %79

79:                                               ; preds = %94, %78
  %80 = load i32, ptr %17, align 4, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds %struct.FrontendOutput, ptr %16, i32 0, i32 1
  %83 = load i64, ptr %82, align 8, !tbaa !15
  %84 = icmp ult i64 %81, %83
  br i1 %84, label %85, label %97

85:                                               ; preds = %79
  %86 = getelementptr inbounds %struct.FrontendOutput, ptr %16, i32 0, i32 0
  %87 = load ptr, ptr %86, align 8, !tbaa !13
  %88 = load i32, ptr %17, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds i16, ptr %87, i64 %89
  %91 = load i16, ptr %90, align 2, !tbaa !16
  %92 = zext i16 %91 to i32
  %93 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %92)
  br label %94

94:                                               ; preds = %85
  %95 = load i32, ptr %17, align 4, !tbaa !5
  %96 = add nsw i32 %95, 1
  store i32 %96, ptr %17, align 4, !tbaa !5
  br label %79, !llvm.loop !18

97:                                               ; preds = %79
  %98 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %99

99:                                               ; preds = %97, %61
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br label %58, !llvm.loop !20

100:                                              ; preds = %58
  call void @FrontendFreeStateContents(ptr noundef %9)
  %101 = load ptr, ptr %14, align 8, !tbaa !9
  call void @free(ptr noundef %101) #5
  store i32 0, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %102

102:                                              ; preds = %100, %54
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %103

103:                                              ; preds = %102, %32
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %104

104:                                              ; preds = %103, %24
  call void @llvm.lifetime.end.p0(i64 240, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr %6) #5
  %105 = load i32, ptr %3, align 4
  ret i32 %105
}

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

declare void @FrontendFillConfigWithDefaults(ptr noundef) #2

declare i32 @FrontendPopulateState(ptr noundef, ptr noundef, i32 noundef) #2

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

declare void @FrontendFreeStateContents(ptr noundef) #2

declare noalias ptr @fopen(ptr noundef, ptr noundef) #2

declare i32 @fseek(ptr noundef, i64 noundef, i32 noundef) #2

declare i64 @ftell(ptr noundef) #2

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

declare i64 @fread(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #2

declare { ptr, i64 } @FrontendProcessSamples(ptr noundef, ptr noundef, i64 noundef, ptr noundef) #2

declare i32 @printf(ptr noundef, ...) #2

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

; Function Attrs: nounwind
declare void @free(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 = { "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) "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 #5 = { nounwind }
attributes #6 = { nounwind allocsize(0) }

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"FrontendOutput", !10, i64 0, !12, i64 8}
!15 = !{!14, !12, i64 8}
!16 = !{!17, !17, i64 0}
!17 = !{!"short", !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}


; 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.FrontendConfig = type { %struct.WindowConfig, %struct.FilterbankConfig, %struct.NoiseReductionConfig, %struct.PcanGainControlConfig, %struct.LogScaleConfig }
%struct.WindowConfig = type { i64, i64 }
%struct.FilterbankConfig = type { i32, float, float, i32 }
%struct.NoiseReductionConfig = type { i32, float, float, float }
%struct.PcanGainControlConfig = type { i32, float, float, i32 }
%struct.LogScaleConfig = type { i32, i32 }
%struct.FrontendState = type { %struct.WindowState, %struct.FftState, %struct.FilterbankState, %struct.NoiseReductionState, %struct.PcanGainControlState, %struct.LogScaleState }
%struct.WindowState = type { i64, ptr, i64, ptr, i64, ptr, i16 }
%struct.FftState = type { ptr, ptr, i64, i64, ptr, i64 }
%struct.FilterbankState = type { i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.NoiseReductionState = type { i32, i16, i16, i16, i32, ptr }
%struct.PcanGainControlState = type { i32, ptr, i32, ptr, i32 }
%struct.LogScaleState = type { i32, i32 }

@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [35 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @main(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  %3 = alloca %struct.FrontendConfig, align 8
  %4 = alloca %struct.FrontendState, align 8
  %5 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %3) #6
  call void @FrontendFillConfigWithDefaults(ptr noundef nonnull %3) #6
  %6 = getelementptr inbounds i8, ptr %1, i64 8
  %7 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 240, ptr nonnull %4) #6
  %8 = call i32 @FrontendPopulateState(ptr noundef nonnull %3, ptr noundef nonnull %4, i32 noundef 16000) #6
  %.not = icmp eq i32 %8, 0
  br i1 %.not, label %9, label %12

9:                                                ; preds = %2
  %10 = load ptr, ptr @stderr, align 8, !tbaa !5
  %11 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %10, ptr noundef nonnull @.str) #7
  call void @FrontendFreeStateContents(ptr noundef nonnull %4) #6
  br label %41

12:                                               ; preds = %2
  %13 = call noalias ptr @fopen(ptr noundef %7, ptr noundef nonnull @.str.1)
  %14 = icmp eq ptr %13, null
  br i1 %14, label %15, label %18

15:                                               ; preds = %12
  %16 = load ptr, ptr @stderr, align 8, !tbaa !5
  %17 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %16, ptr noundef nonnull @.str.2, ptr noundef %7) #7
  br label %41

18:                                               ; preds = %12
  %19 = call i32 @fseek(ptr noundef nonnull %13, i64 noundef 0, i32 noundef 2)
  %20 = call i64 @ftell(ptr noundef nonnull %13)
  %21 = lshr i64 %20, 1
  %22 = call i32 @fseek(ptr noundef nonnull %13, i64 noundef 0, i32 noundef 0)
  %23 = and i64 %20, -2
  %24 = call noalias ptr @malloc(i64 noundef %23) #8
  %25 = call i64 @fread(ptr noundef %24, i64 noundef 2, i64 noundef %21, ptr noundef nonnull %13)
  %.not31 = icmp eq i64 %21, %25
  br i1 %.not31, label %.preheader34, label %26

.preheader34:                                     ; preds = %18
  %.not3236 = icmp ult i64 %20, 2
  br i1 %.not3236, label %._crit_edge40, label %.lr.ph39

26:                                               ; preds = %18
  %27 = load ptr, ptr @stderr, align 8, !tbaa !5
  %28 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %27, ptr noundef nonnull @.str.3) #7
  br label %41

.lr.ph39:                                         ; preds = %.preheader34, %40
  %.02538 = phi i64 [ %34, %40 ], [ %21, %.preheader34 ]
  %.02637 = phi ptr [ %33, %40 ], [ %24, %.preheader34 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  %29 = call { ptr, i64 } @FrontendProcessSamples(ptr noundef nonnull %4, ptr noundef %.02637, i64 noundef %.02538, ptr noundef nonnull %5) #6
  %30 = extractvalue { ptr, i64 } %29, 0
  %31 = extractvalue { ptr, i64 } %29, 1
  %32 = load i64, ptr %5, align 8, !tbaa !9
  %33 = getelementptr inbounds i16, ptr %.02637, i64 %32
  %34 = sub i64 %.02538, %32
  %.not33 = icmp eq ptr %30, null
  br i1 %.not33, label %40, label %.preheader

.preheader:                                       ; preds = %.lr.ph39
  %.not41 = icmp eq i64 %31, 0
  br i1 %.not41, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.preheader ]
  %35 = getelementptr inbounds i16, ptr %30, i64 %indvars.iv
  %36 = load i16, ptr %35, align 2, !tbaa !11
  %37 = zext i16 %36 to i32
  %38 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %37)
  %indvars.iv.next = add nuw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %31
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !13

._crit_edge:                                      ; preds = %.lr.ph, %.preheader
  %39 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  br label %40

40:                                               ; preds = %._crit_edge, %.lr.ph39
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  %.not32 = icmp eq i64 %34, 0
  br i1 %.not32, label %._crit_edge40, label %.lr.ph39, !llvm.loop !15

._crit_edge40:                                    ; preds = %40, %.preheader34
  call void @FrontendFreeStateContents(ptr noundef nonnull %4) #6
  call void @free(ptr noundef %24) #6
  br label %41

41:                                               ; preds = %15, %._crit_edge40, %26, %9
  %.2 = phi i32 [ 1, %9 ], [ 1, %15 ], [ 1, %26 ], [ 0, %._crit_edge40 ]
  call void @llvm.lifetime.end.p0(i64 240, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %3) #6
  ret i32 %.2
}

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

declare void @FrontendFillConfigWithDefaults(ptr noundef) local_unnamed_addr #2

declare i32 @FrontendPopulateState(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

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

declare void @FrontendFreeStateContents(ptr noundef) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noundef i32 @fseek(ptr nocapture noundef, i64 noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noundef i64 @ftell(ptr nocapture noundef) local_unnamed_addr #3

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

; Function Attrs: nofree nounwind
declare noundef i64 @fread(ptr nocapture noundef, i64 noundef, i64 noundef, ptr nocapture noundef) local_unnamed_addr #3

declare { ptr, i64 } @FrontendProcessSamples(ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

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

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

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #5

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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #4 = { 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 #5 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, 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 #6 = { nounwind }
attributes #7 = { cold nounwind }
attributes #8 = { nounwind allocsize(0) }

!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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"short", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass