; LLVM IR from NVIDIA/tensorflow :: tensorflow/lite/experimental/micro/examples/micro_speech/simple_features/fixed_3861ecf8 (Z22GenerateSimpleFeaturesPN6tflite13ErrorReporterEPKsiiPh)

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

@.str = external hidden unnamed_addr constant [29 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [42 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z22GenerateSimpleFeaturesPN6tflite13ErrorReporterEPKsiiPh(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4) #0 {
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca [512 x i16], align 16
  %13 = alloca [512 x i32], align 16
  %14 = alloca i32, align 4
  %15 = alloca [512 x i32], align 16
  %16 = alloca [256 x i32], align 16
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store i32 %2, ptr %9, align 4, !tbaa !9
  store i32 %3, ptr %10, align 4, !tbaa !9
  store ptr %4, ptr %11, align 8, !tbaa !5
  %26 = load i32, ptr %9, align 4, !tbaa !9
  %27 = icmp sgt i32 %26, 512
  br i1 %27, label %28, label %32

28:                                               ; preds = %5
  %29 = load ptr, ptr %7, align 8, !tbaa !5
  %30 = load i32, ptr %9, align 4, !tbaa !9
  %31 = call noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef @.str, i32 noundef %30, i32 noundef 512)
  store i32 1, ptr %6, align 4
  br label %156

32:                                               ; preds = %5
  %33 = load i32, ptr %10, align 4, !tbaa !9
  %34 = icmp ne i32 %33, 43
  br i1 %34, label %35, label %39

35:                                               ; preds = %32
  %36 = load ptr, ptr %7, align 8, !tbaa !5
  %37 = load i32, ptr %10, align 4, !tbaa !9
  %38 = call noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef @.str.1, i32 noundef %37, i32 noundef 43)
  store i32 1, ptr %6, align 4
  br label %156

39:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 1024, ptr %12) #5
  %40 = load i32, ptr %9, align 4, !tbaa !9
  %41 = getelementptr inbounds [512 x i16], ptr %12, i64 0, i64 0
  call void @_ZN12_GLOBAL__N_121CalculatePeriodicHannEiPs(i32 noundef %40, ptr noundef %41)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %42

42:                                               ; preds = %69, %39
  %43 = load i32, ptr %14, align 4, !tbaa !9
  %44 = icmp slt i32 %43, 512
  br i1 %44, label %46, label %45

45:                                               ; preds = %42
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %72

46:                                               ; preds = %42
  %47 = load i32, ptr %14, align 4, !tbaa !9
  %48 = load i32, ptr %9, align 4, !tbaa !9
  %49 = icmp slt i32 %47, %48
  br i1 %49, label %50, label %64

50:                                               ; preds = %46
  %51 = load ptr, ptr %8, align 8, !tbaa !5
  %52 = load i32, ptr %14, align 4, !tbaa !9
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds i16, ptr %51, i64 %53
  %55 = load i16, ptr %54, align 2, !tbaa !11
  %56 = load i32, ptr %14, align 4, !tbaa !9
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [512 x i16], ptr %12, i64 0, i64 %57
  %59 = load i16, ptr %58, align 2, !tbaa !11
  %60 = call noundef i32 @_ZN12_GLOBAL__N_125Q1_15_FixedMultiply_Q2_30Ess(i16 noundef signext %55, i16 noundef signext %59)
  %61 = load i32, ptr %14, align 4, !tbaa !9
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [512 x i32], ptr %13, i64 0, i64 %62
  store i32 %60, ptr %63, align 4, !tbaa !9
  br label %68

64:                                               ; preds = %46
  %65 = load i32, ptr %14, align 4, !tbaa !9
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [512 x i32], ptr %13, i64 0, i64 %66
  store i32 0, ptr %67, align 4, !tbaa !9
  br label %68

68:                                               ; preds = %64, %50
  br label %69

69:                                               ; preds = %68
  %70 = load i32, ptr %14, align 4, !tbaa !9
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr %14, align 4, !tbaa !9
  br label %42, !llvm.loop !13

72:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 2048, ptr %15) #5
  %73 = getelementptr inbounds [512 x i32], ptr %13, i64 0, i64 0
  %74 = getelementptr inbounds [512 x i32], ptr %15, i64 0, i64 0
  call void @_ZN12_GLOBAL__N_133CalculateDiscreteFourierTransformEPiiS0_(ptr noundef %73, i32 noundef 512, ptr noundef %74)
  call void @llvm.lifetime.start.p0(i64 1024, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %75

75:                                               ; preds = %102, %72
  %76 = load i32, ptr %17, align 4, !tbaa !9
  %77 = icmp slt i32 %76, 256
  br i1 %77, label %79, label %78

78:                                               ; preds = %75
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %105

79:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %80 = load i32, ptr %17, align 4, !tbaa !9
  %81 = mul nsw i32 %80, 2
  %82 = add nsw i32 %81, 0
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [512 x i32], ptr %15, i64 0, i64 %83
  %85 = load i32, ptr %84, align 4, !tbaa !9
  store i32 %85, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  %86 = load i32, ptr %17, align 4, !tbaa !9
  %87 = mul nsw i32 %86, 2
  %88 = add nsw i32 %87, 1
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [512 x i32], ptr %15, i64 0, i64 %89
  %91 = load i32, ptr %90, align 4, !tbaa !9
  store i32 %91, ptr %19, align 4, !tbaa !9
  %92 = load i32, ptr %18, align 4, !tbaa !9
  %93 = load i32, ptr %18, align 4, !tbaa !9
  %94 = call noundef i32 @_ZN12_GLOBAL__N_127Q10_22_FixedMultiply_Q10_22Eii(i32 noundef %92, i32 noundef %93)
  %95 = load i32, ptr %19, align 4, !tbaa !9
  %96 = load i32, ptr %19, align 4, !tbaa !9
  %97 = call noundef i32 @_ZN12_GLOBAL__N_127Q10_22_FixedMultiply_Q10_22Eii(i32 noundef %95, i32 noundef %96)
  %98 = add nsw i32 %94, %97
  %99 = load i32, ptr %17, align 4, !tbaa !9
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [256 x i32], ptr %16, i64 0, i64 %100
  store i32 %98, ptr %101, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %102

102:                                              ; preds = %79
  %103 = load i32, ptr %17, align 4, !tbaa !9
  %104 = add nsw i32 %103, 1
  store i32 %104, ptr %17, align 4, !tbaa !9
  br label %75, !llvm.loop !15

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

106:                                              ; preds = %152, %105
  %107 = load i32, ptr %20, align 4, !tbaa !9
  %108 = icmp slt i32 %107, 43
  br i1 %108, label %110, label %109

109:                                              ; preds = %106
  store i32 8, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  br label %155

110:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  store i32 0, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  store i32 0, ptr %23, align 4, !tbaa !9
  br label %111

111:                                              ; preds = %131, %110
  %112 = load i32, ptr %23, align 4, !tbaa !9
  %113 = icmp slt i32 %112, 6
  br i1 %113, label %115, label %114

114:                                              ; preds = %111
  store i32 11, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  br label %134

115:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  %116 = load i32, ptr %20, align 4, !tbaa !9
  %117 = mul nsw i32 %116, 6
  %118 = load i32, ptr %23, align 4, !tbaa !9
  %119 = add nsw i32 %117, %118
  store i32 %119, ptr %24, align 4, !tbaa !9
  %120 = load i32, ptr %24, align 4, !tbaa !9
  %121 = icmp slt i32 %120, 256
  br i1 %121, label %122, label %130

122:                                              ; preds = %115
  %123 = load i32, ptr %24, align 4, !tbaa !9
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds [256 x i32], ptr %16, i64 0, i64 %124
  %126 = load i32, ptr %125, align 4, !tbaa !9
  %127 = sdiv i32 %126, 6
  %128 = load i32, ptr %22, align 4, !tbaa !9
  %129 = add nsw i32 %128, %127
  store i32 %129, ptr %22, align 4, !tbaa !9
  br label %130

130:                                              ; preds = %122, %115
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  br label %131

131:                                              ; preds = %130
  %132 = load i32, ptr %23, align 4, !tbaa !9
  %133 = add nsw i32 %132, 1
  store i32 %133, ptr %23, align 4, !tbaa !9
  br label %111, !llvm.loop !16

134:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  %135 = load i32, ptr %22, align 4, !tbaa !9
  %136 = add nsw i32 %135, 1048576
  %137 = ashr i32 %136, 21
  store i32 %137, ptr %25, align 4, !tbaa !9
  %138 = load i32, ptr %25, align 4, !tbaa !9
  %139 = icmp slt i32 %138, 0
  br i1 %139, label %140, label %141

140:                                              ; preds = %134
  store i32 0, ptr %25, align 4, !tbaa !9
  br label %141

141:                                              ; preds = %140, %134
  %142 = load i32, ptr %25, align 4, !tbaa !9
  %143 = icmp sgt i32 %142, 255
  br i1 %143, label %144, label %145

144:                                              ; preds = %141
  store i32 255, ptr %25, align 4, !tbaa !9
  br label %145

145:                                              ; preds = %144, %141
  %146 = load i32, ptr %25, align 4, !tbaa !9
  %147 = trunc i32 %146 to i8
  %148 = load ptr, ptr %11, align 8, !tbaa !5
  %149 = load i32, ptr %20, align 4, !tbaa !9
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds i8, ptr %148, i64 %150
  store i8 %147, ptr %151, align 1, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  br label %152

152:                                              ; preds = %145
  %153 = load i32, ptr %20, align 4, !tbaa !9
  %154 = add nsw i32 %153, 1
  store i32 %154, ptr %20, align 4, !tbaa !9
  br label %106, !llvm.loop !18

155:                                              ; preds = %109
  store i32 0, ptr %6, align 4
  store i32 1, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 1024, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 1024, ptr %12) #5
  br label %156

156:                                              ; preds = %155, %35, %28
  %157 = load i32, ptr %6, align 4
  ret i32 %157
}

declare noundef i32 @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, ...) #1

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN12_GLOBAL__N_121CalculatePeriodicHannEiPs(i32 noundef, ptr noundef) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZN12_GLOBAL__N_125Q1_15_FixedMultiply_Q2_30Ess(i16 noundef signext, i16 noundef signext) #4

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_133CalculateDiscreteFourierTransformEPiiS0_(ptr noundef, i32 noundef, ptr noundef) #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZN12_GLOBAL__N_127Q10_22_FixedMultiply_Q10_22Eii(i32 noundef, i32 noundef) #4

attributes #0 = { mustprogress 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 = { "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress 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 #4 = { inlinehint mustprogress 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 #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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !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}
!16 = distinct !{!16, !14}
!17 = !{!7, !7, i64 0}
!18 = distinct !{!18, !14}


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

@.str = external hidden unnamed_addr constant [29 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [42 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 0, 2) i32 @_Z22GenerateSimpleFeaturesPN6tflite13ErrorReporterEPKsiiPh(ptr noundef %0, ptr nocapture noundef readonly %1, i32 noundef %2, i32 noundef %3, ptr nocapture noundef writeonly %4) local_unnamed_addr #0 {
  %6 = alloca [512 x i16], align 16
  %7 = alloca [512 x i32], align 16
  %8 = alloca [512 x i32], align 16
  %9 = alloca [256 x i32], align 16
  %10 = icmp sgt i32 %2, 512
  br i1 %10, label %11, label %13

11:                                               ; preds = %5
  %12 = tail call noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull @.str, i32 noundef %2, i32 noundef 512)
  br label %63

13:                                               ; preds = %5
  %.not = icmp eq i32 %3, 43
  br i1 %.not, label %16, label %14

14:                                               ; preds = %13
  %15 = tail call noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull @.str.1, i32 noundef %3, i32 noundef 43)
  br label %63

16:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %6) #6
  call void @_ZN12_GLOBAL__N_121CalculatePeriodicHannEiPs(i32 noundef %2, ptr noundef nonnull %6)
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %7) #6
  %17 = sext i32 %2 to i64
  br label %19

18:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %8) #6
  call void @_ZN12_GLOBAL__N_133CalculateDiscreteFourierTransformEPiiS0_(ptr noundef nonnull %7, i32 noundef 512, ptr noundef nonnull %8)
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %9) #6
  br label %29

19:                                               ; preds = %16, %27
  %indvars.iv = phi i64 [ 0, %16 ], [ %indvars.iv.next, %27 ]
  %20 = icmp slt i64 %indvars.iv, %17
  br i1 %20, label %21, label %27

21:                                               ; preds = %19
  %22 = getelementptr inbounds i16, ptr %1, i64 %indvars.iv
  %23 = load i16, ptr %22, align 2, !tbaa !5
  %24 = getelementptr inbounds [512 x i16], ptr %6, i64 0, i64 %indvars.iv
  %25 = load i16, ptr %24, align 2, !tbaa !5
  %26 = call noundef i32 @_ZN12_GLOBAL__N_125Q1_15_FixedMultiply_Q2_30Ess(i16 noundef signext %23, i16 noundef signext %25)
  br label %27

27:                                               ; preds = %19, %21
  %.sink = phi i32 [ %26, %21 ], [ 0, %19 ]
  %28 = getelementptr inbounds [512 x i32], ptr %7, i64 0, i64 %indvars.iv
  store i32 %.sink, ptr %28, align 4
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 512
  br i1 %exitcond.not, label %18, label %19, !llvm.loop !9

29:                                               ; preds = %18, %29
  %indvars.iv57 = phi i64 [ 0, %18 ], [ %indvars.iv.next58, %29 ]
  %30 = shl nuw nsw i64 %indvars.iv57, 1
  %31 = getelementptr inbounds [512 x i32], ptr %8, i64 0, i64 %30
  %32 = load i32, ptr %31, align 8, !tbaa !11
  %33 = or disjoint i64 %30, 1
  %34 = getelementptr inbounds [512 x i32], ptr %8, i64 0, i64 %33
  %35 = load i32, ptr %34, align 4, !tbaa !11
  %36 = call noundef i32 @_ZN12_GLOBAL__N_127Q10_22_FixedMultiply_Q10_22Eii(i32 noundef %32, i32 noundef %32)
  %37 = call noundef i32 @_ZN12_GLOBAL__N_127Q10_22_FixedMultiply_Q10_22Eii(i32 noundef %35, i32 noundef %35)
  %38 = add nsw i32 %37, %36
  %39 = getelementptr inbounds [256 x i32], ptr %9, i64 0, i64 %indvars.iv57
  store i32 %38, ptr %39, align 4, !tbaa !11
  %indvars.iv.next58 = add nuw nsw i64 %indvars.iv57, 1
  %exitcond60.not = icmp eq i64 %indvars.iv.next58, 256
  br i1 %exitcond60.not, label %.preheader.preheader, label %29, !llvm.loop !13

40:                                               ; preds = %58
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %6) #6
  br label %63

.preheader.preheader:                             ; preds = %29, %58
  %indvars.iv65 = phi i64 [ %indvars.iv.next66, %58 ], [ 0, %29 ]
  %41 = mul nuw nsw i64 %indvars.iv65, 6
  %42 = getelementptr inbounds [256 x i32], ptr %9, i64 0, i64 %41
  %43 = load <4 x i32>, ptr %42, align 8, !tbaa !11
  %44 = sdiv <4 x i32> %43, <i32 6, i32 6, i32 6, i32 6>
  %45 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %44)
  %46 = icmp ult i64 %indvars.iv65, 42
  br i1 %46, label %47, label %58

47:                                               ; preds = %.preheader.preheader
  %48 = add nuw nsw i64 %41, 4
  %49 = getelementptr inbounds [256 x i32], ptr %9, i64 0, i64 %48
  %50 = load i32, ptr %49, align 8, !tbaa !11
  %51 = sdiv i32 %50, 6
  %52 = add nsw i32 %51, %45
  %53 = add nuw nsw i64 %41, 5
  %54 = getelementptr inbounds [256 x i32], ptr %9, i64 0, i64 %53
  %55 = load i32, ptr %54, align 4, !tbaa !11
  %56 = sdiv i32 %55, 6
  %57 = add nsw i32 %56, %52
  br label %58

58:                                               ; preds = %.preheader.preheader, %47
  %.1.5 = phi i32 [ %57, %47 ], [ %45, %.preheader.preheader ]
  %59 = add nsw i32 %.1.5, 1048576
  %60 = ashr i32 %59, 21
  %spec.store.select1 = call i32 @llvm.smax.i32(i32 %60, i32 0)
  %spec.store.select = call i32 @llvm.umin.i32(i32 %spec.store.select1, i32 255)
  %61 = trunc nuw i32 %spec.store.select to i8
  %62 = getelementptr inbounds i8, ptr %4, i64 %indvars.iv65
  store i8 %61, ptr %62, align 1, !tbaa !14
  %indvars.iv.next66 = add nuw nsw i64 %indvars.iv65, 1
  %exitcond68.not = icmp eq i64 %indvars.iv.next66, 43
  br i1 %exitcond68.not, label %40, label %.preheader.preheader, !llvm.loop !15

63:                                               ; preds = %40, %14, %11
  %.0 = phi i32 [ 1, %11 ], [ 1, %14 ], [ 0, %40 ]
  ret i32 %.0
}

declare noundef i32 @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, ...) local_unnamed_addr #1

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN12_GLOBAL__N_121CalculatePeriodicHannEiPs(i32 noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZN12_GLOBAL__N_125Q1_15_FixedMultiply_Q2_30Ess(i16 noundef signext, i16 noundef signext) local_unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_133CalculateDiscreteFourierTransformEPiiS0_(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZN12_GLOBAL__N_127Q10_22_FixedMultiply_Q10_22Eii(i32 noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #5

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umin.i32(i32, i32) #5

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.add.v4i32(<4 x i32>) #5

attributes #0 = { mustprogress 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 = { "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress 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 #4 = { inlinehint mustprogress 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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 = !{!"short", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !10}
!14 = !{!7, !7, i64 0}
!15 = distinct !{!15, !10}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MergedLoadStoreMotionPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass