; LLVM IR from tensorflow/tflite-micro :: 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 i64, align 8
  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 %106

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 %105

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 %59

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
  %57 = load ptr, ptr %11, align 8, !tbaa !9
  %58 = call i32 @fclose(ptr noundef %57)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %104

59:                                               ; preds = %36
  br label %60

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

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

80:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  store i64 0, ptr %17, align 8, !tbaa !11
  br label %81

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

86:                                               ; preds = %81
  %87 = getelementptr inbounds %struct.FrontendOutput, ptr %16, i32 0, i32 0
  %88 = load ptr, ptr %87, align 8, !tbaa !13
  %89 = load i64, ptr %17, align 8, !tbaa !11
  %90 = getelementptr inbounds i16, ptr %88, 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 = %86
  %95 = load i64, ptr %17, align 8, !tbaa !11
  %96 = add i64 %95, 1
  store i64 %96, ptr %17, align 8, !tbaa !11
  br label %81, !llvm.loop !18

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

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

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

104:                                              ; 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 %105

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

106:                                              ; preds = %105, %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
  %107 = load i32, ptr %3, align 4
  ret i32 %107
}

; 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 i32 @fclose(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 %44

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 %44

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)
  %.not32 = icmp eq i64 %21, %25
  br i1 %.not32, label %.preheader35, label %26

.preheader35:                                     ; preds = %18
  %.not3337 = icmp ult i64 %20, 2
  br i1 %.not3337, label %._crit_edge41, label %.lr.ph40

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
  %29 = call i32 @fclose(ptr noundef nonnull %13)
  br label %44

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

.preheader:                                       ; preds = %.lr.ph40
  %.not42 = icmp eq i64 %32, 0
  br i1 %.not42, label %._crit_edge, label %.lr.ph

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

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

42:                                               ; preds = %._crit_edge, %.lr.ph40
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  %.not33 = icmp eq i64 %35, 0
  br i1 %.not33, label %._crit_edge41, label %.lr.ph40, !llvm.loop !15

._crit_edge41:                                    ; preds = %42, %.preheader35
  call void @FrontendFreeStateContents(ptr noundef nonnull %4) #6
  call void @free(ptr noundef %24) #6
  %43 = call i32 @fclose(ptr noundef nonnull %13)
  br label %44

44:                                               ; preds = %15, %._crit_edge41, %26, %9
  %.2 = phi i32 [ 1, %9 ], [ 1, %15 ], [ 1, %26 ], [ 0, %._crit_edge41 ]
  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

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(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: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass