; LLVM IR from ShahjalalShohag/code-library :: Math/FWHT in Any Base.ll (ZN4FWHT9transformERSt6vectorIiSaIiEEiib)

; 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.FWHT::Matrix" = type { [10 x [10 x i32]], i32, i32 }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3POWxx(i64 noundef, i64 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: mustprogress uwtable
declare dso_local void @_ZN4FWHTmlERNS_6MatrixES1_(ptr dead_on_unwind noalias writable sret(%"struct.FWHT::Matrix") align 4, ptr noundef nonnull align 4 dereferenceable(408), ptr noundef nonnull align 4 dereferenceable(408)) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4FWHT6MatrixC2Eii(ptr noundef nonnull align 4 dereferenceable(408), i32 noundef, i32 noundef) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4FWHT15constructMatrixEib(ptr dead_on_unwind noalias writable sret(%"struct.FWHT::Matrix") align 4, i32 noundef, i1 noundef zeroext) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4FWHT9transformERSt6vectorIiSaIiEEiib(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %1, i32 noundef %2, i1 noundef zeroext %3) #2 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i8, align 1
  %9 = alloca %"struct.FWHT::Matrix", align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %"struct.FWHT::Matrix", align 4
  %15 = alloca i32, align 4
  %16 = alloca %"struct.FWHT::Matrix", align 4
  %17 = alloca i32, align 4
  %18 = alloca i64, align 8
  %19 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store i32 %2, ptr %7, align 4, !tbaa !9
  %20 = zext i1 %3 to i8
  store i8 %20, ptr %8, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 408, ptr %9) #4
  %21 = load i32, ptr %7, align 4, !tbaa !9
  %22 = load i8, ptr %8, align 1, !tbaa !11, !range !13, !noundef !14
  %23 = trunc i8 %22 to i1
  call void @_ZN4FWHT15constructMatrixEib(ptr dead_on_unwind writable sret(%"struct.FWHT::Matrix") align 4 %9, i32 noundef %21, i1 noundef zeroext %23)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 1, ptr %10, align 4, !tbaa !9
  br label %24

24:                                               ; preds = %106, %4
  %25 = load i32, ptr %10, align 4, !tbaa !9
  %26 = load i32, ptr %6, align 4, !tbaa !9
  %27 = icmp slt i32 %25, %26
  br i1 %27, label %29, label %28

28:                                               ; preds = %24
  store i32 2, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %110

29:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %30

30:                                               ; preds = %99, %29
  %31 = load i32, ptr %12, align 4, !tbaa !9
  %32 = load i32, ptr %6, align 4, !tbaa !9
  %33 = icmp slt i32 %31, %32
  br i1 %33, label %35, label %34

34:                                               ; preds = %30
  store i32 5, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %105

35:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %36

36:                                               ; preds = %95, %35
  %37 = load i32, ptr %13, align 4, !tbaa !9
  %38 = load i32, ptr %10, align 4, !tbaa !9
  %39 = icmp slt i32 %37, %38
  br i1 %39, label %41, label %40

40:                                               ; preds = %36
  store i32 8, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  br label %98

41:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 408, ptr %14) #4
  %42 = load i32, ptr %7, align 4, !tbaa !9
  call void @_ZN4FWHT6MatrixC2Eii(ptr noundef nonnull align 4 dereferenceable(408) %14, i32 noundef 1, i32 noundef %42)
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %43

43:                                               ; preds = %65, %41
  %44 = load i32, ptr %15, align 4, !tbaa !9
  %45 = load i32, ptr %7, align 4, !tbaa !9
  %46 = icmp slt i32 %44, %45
  br i1 %46, label %48, label %47

47:                                               ; preds = %43
  store i32 11, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %68

48:                                               ; preds = %43
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  %50 = load i32, ptr %12, align 4, !tbaa !9
  %51 = load i32, ptr %13, align 4, !tbaa !9
  %52 = add nsw i32 %50, %51
  %53 = load i32, ptr %15, align 4, !tbaa !9
  %54 = load i32, ptr %10, align 4, !tbaa !9
  %55 = mul nsw i32 %53, %54
  %56 = add nsw i32 %52, %55
  %57 = sext i32 %56 to i64
  %58 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %49, i64 noundef %57) #4
  %59 = load i32, ptr %58, align 4, !tbaa !9
  %60 = getelementptr inbounds %"struct.FWHT::Matrix", ptr %14, i32 0, i32 0
  %61 = getelementptr inbounds [10 x [10 x i32]], ptr %60, i64 0, i64 0
  %62 = load i32, ptr %15, align 4, !tbaa !9
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [10 x i32], ptr %61, i64 0, i64 %63
  store i32 %59, ptr %64, align 4, !tbaa !9
  br label %65

65:                                               ; preds = %48
  %66 = load i32, ptr %15, align 4, !tbaa !9
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr %15, align 4, !tbaa !9
  br label %43, !llvm.loop !15

68:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 408, ptr %16) #4
  call void @_ZN4FWHTmlERNS_6MatrixES1_(ptr dead_on_unwind writable sret(%"struct.FWHT::Matrix") align 4 %16, ptr noundef nonnull align 4 dereferenceable(408) %14, ptr noundef nonnull align 4 dereferenceable(408) %9)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %14, ptr align 4 %16, i64 408, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 408, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %69

69:                                               ; preds = %91, %68
  %70 = load i32, ptr %17, align 4, !tbaa !9
  %71 = load i32, ptr %7, align 4, !tbaa !9
  %72 = icmp slt i32 %70, %71
  br i1 %72, label %74, label %73

73:                                               ; preds = %69
  store i32 14, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  br label %94

74:                                               ; preds = %69
  %75 = getelementptr inbounds %"struct.FWHT::Matrix", ptr %14, i32 0, i32 0
  %76 = getelementptr inbounds [10 x [10 x i32]], ptr %75, i64 0, i64 0
  %77 = load i32, ptr %17, align 4, !tbaa !9
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [10 x i32], ptr %76, i64 0, i64 %78
  %80 = load i32, ptr %79, align 4, !tbaa !9
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  %82 = load i32, ptr %12, align 4, !tbaa !9
  %83 = load i32, ptr %13, align 4, !tbaa !9
  %84 = add nsw i32 %82, %83
  %85 = load i32, ptr %17, align 4, !tbaa !9
  %86 = load i32, ptr %10, align 4, !tbaa !9
  %87 = mul nsw i32 %85, %86
  %88 = add nsw i32 %84, %87
  %89 = sext i32 %88 to i64
  %90 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %81, i64 noundef %89) #4
  store i32 %80, ptr %90, align 4, !tbaa !9
  br label %91

91:                                               ; preds = %74
  %92 = load i32, ptr %17, align 4, !tbaa !9
  %93 = add nsw i32 %92, 1
  store i32 %93, ptr %17, align 4, !tbaa !9
  br label %69, !llvm.loop !19

94:                                               ; preds = %73
  call void @llvm.lifetime.end.p0(i64 408, ptr %14) #4
  br label %95

95:                                               ; preds = %94
  %96 = load i32, ptr %13, align 4, !tbaa !9
  %97 = add nsw i32 %96, 1
  store i32 %97, ptr %13, align 4, !tbaa !9
  br label %36, !llvm.loop !20

98:                                               ; preds = %40
  br label %99

99:                                               ; preds = %98
  %100 = load i32, ptr %7, align 4, !tbaa !9
  %101 = load i32, ptr %10, align 4, !tbaa !9
  %102 = mul nsw i32 %100, %101
  %103 = load i32, ptr %12, align 4, !tbaa !9
  %104 = add nsw i32 %103, %102
  store i32 %104, ptr %12, align 4, !tbaa !9
  br label %30, !llvm.loop !21

105:                                              ; preds = %34
  br label %106

106:                                              ; preds = %105
  %107 = load i32, ptr %7, align 4, !tbaa !9
  %108 = load i32, ptr %10, align 4, !tbaa !9
  %109 = mul nsw i32 %108, %107
  store i32 %109, ptr %10, align 4, !tbaa !9
  br label %24, !llvm.loop !22

110:                                              ; preds = %28
  %111 = load i8, ptr %8, align 1, !tbaa !11, !range !13, !noundef !14
  %112 = trunc i8 %111 to i1
  br i1 %112, label %113, label %142

113:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %114 = load i32, ptr %6, align 4, !tbaa !9
  %115 = sext i32 %114 to i64
  %116 = call noundef i32 @_Z3POWxx(i64 noundef %115, i64 noundef 330301439)
  %117 = sext i32 %116 to i64
  store i64 %117, ptr %18, align 8, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %118

118:                                              ; preds = %138, %113
  %119 = load i32, ptr %19, align 4, !tbaa !9
  %120 = load i32, ptr %6, align 4, !tbaa !9
  %121 = icmp slt i32 %119, %120
  br i1 %121, label %123, label %122

122:                                              ; preds = %118
  store i32 17, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  br label %141

123:                                              ; preds = %118
  %124 = load ptr, ptr %5, align 8, !tbaa !5
  %125 = load i32, ptr %19, align 4, !tbaa !9
  %126 = sext i32 %125 to i64
  %127 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %124, i64 noundef %126) #4
  %128 = load i32, ptr %127, align 4, !tbaa !9
  %129 = sext i32 %128 to i64
  %130 = load i64, ptr %18, align 8, !tbaa !23
  %131 = mul nsw i64 %129, %130
  %132 = srem i64 %131, 330301441
  %133 = trunc i64 %132 to i32
  %134 = load ptr, ptr %5, align 8, !tbaa !5
  %135 = load i32, ptr %19, align 4, !tbaa !9
  %136 = sext i32 %135 to i64
  %137 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %134, i64 noundef %136) #4
  store i32 %133, ptr %137, align 4, !tbaa !9
  br label %138

138:                                              ; preds = %123
  %139 = load i32, ptr %19, align 4, !tbaa !9
  %140 = add nsw i32 %139, 1
  store i32 %140, ptr %19, align 4, !tbaa !9
  br label %118, !llvm.loop !25

141:                                              ; preds = %122
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  br label %142

142:                                              ; preds = %141, %110
  call void @llvm.lifetime.end.p0(i64 408, ptr %9) #4
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{i64 0, i64 400, !18, i64 400, i64 4, !9, i64 404, i64 4, !9}
!18 = !{!7, !7, i64 0}
!19 = distinct !{!19, !16}
!20 = distinct !{!20, !16}
!21 = distinct !{!21, !16}
!22 = distinct !{!22, !16}
!23 = !{!24, !24, i64 0}
!24 = !{!"long long", !7, i64 0}
!25 = distinct !{!25, !16}


; 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.FWHT::Matrix" = type { [10 x [10 x i32]], i32, i32 }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3POWxx(i64 noundef, i64 noundef) local_unnamed_addr #0

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

; 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 uwtable
declare dso_local void @_ZN4FWHTmlERNS_6MatrixES1_(ptr dead_on_unwind noalias writable sret(%"struct.FWHT::Matrix") align 4, ptr noundef nonnull align 4 dereferenceable(408), ptr noundef nonnull align 4 dereferenceable(408)) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4FWHT6MatrixC2Eii(ptr noundef nonnull align 4 dereferenceable(408), i32 noundef, i32 noundef) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4FWHT15constructMatrixEib(ptr dead_on_unwind noalias writable sret(%"struct.FWHT::Matrix") align 4, i32 noundef, i1 noundef zeroext) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4FWHT9transformERSt6vectorIiSaIiEEiib(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %1, i32 noundef %2, i1 noundef zeroext %3) local_unnamed_addr #2 {
  %5 = alloca %"struct.FWHT::Matrix", align 4
  %6 = alloca %"struct.FWHT::Matrix", align 4
  %7 = alloca %"struct.FWHT::Matrix", align 4
  call void @llvm.lifetime.start.p0(i64 408, ptr nonnull %5) #4
  call void @_ZN4FWHT15constructMatrixEib(ptr dead_on_unwind nonnull writable sret(%"struct.FWHT::Matrix") align 4 %5, i32 noundef %2, i1 noundef zeroext %3)
  %8 = icmp sgt i32 %1, 1
  br i1 %8, label %.preheader49.lr.ph, label %._crit_edge76

.preheader49.lr.ph:                               ; preds = %4
  %9 = icmp sgt i32 %2, 0
  br i1 %9, label %.preheader49.us.us.us.preheader, label %.preheader49.us

.preheader49.us.us.us.preheader:                  ; preds = %.preheader49.lr.ph
  %wide.trip.count = zext nneg i32 %2 to i64
  br label %.preheader49.us.us.us

.preheader49.us.us.us:                            ; preds = %.preheader49.us.us.us.preheader, %._crit_edge.us.us.us
  %.04272.us.us.us = phi i32 [ %11, %._crit_edge.us.us.us ], [ 1, %.preheader49.us.us.us.preheader ]
  %10 = icmp sgt i32 %.04272.us.us.us, 0
  %11 = mul i32 %.04272.us.us.us, %2
  br i1 %10, label %.preheader.us.us.us.us.us.us.preheader, label %._crit_edge.us.us.us

.preheader.us.us.us.us.us.us.preheader:           ; preds = %.preheader49.us.us.us
  %12 = zext nneg i32 %.04272.us.us.us to i64
  %13 = zext i32 %11 to i64
  br label %.preheader.us.us.us.us.us.us

._crit_edge.us.us.us:                             ; preds = %._crit_edge57.split.us.us.us.split.us.us.us.us.us, %.preheader49.us.us.us
  %14 = icmp slt i32 %11, %1
  br i1 %14, label %.preheader49.us.us.us, label %._crit_edge76, !llvm.loop !5

.preheader.us.us.us.us.us.us:                     ; preds = %.preheader.us.us.us.us.us.us.preheader, %._crit_edge57.split.us.us.us.split.us.us.us.us.us
  %indvars.iv115 = phi i64 [ 0, %.preheader.us.us.us.us.us.us.preheader ], [ %indvars.iv.next116, %._crit_edge57.split.us.us.us.split.us.us.us.us.us ]
  br label %.lr.ph.us.us.us.us.us.us.us.us

.lr.ph.us.us.us.us.us.us.us.us:                   ; preds = %._crit_edge54.us.us.us.us.us.us.us.us, %.preheader.us.us.us.us.us.us
  %indvars.iv110 = phi i64 [ %indvars.iv.next111, %._crit_edge54.us.us.us.us.us.us.us.us ], [ 0, %.preheader.us.us.us.us.us.us ]
  call void @llvm.lifetime.start.p0(i64 408, ptr nonnull %6) #4
  call void @_ZN4FWHT6MatrixC2Eii(ptr noundef nonnull align 4 dereferenceable(408) %6, i32 noundef 1, i32 noundef %2)
  %15 = add nuw nsw i64 %indvars.iv110, %indvars.iv115
  br label %22

16:                                               ; preds = %._crit_edge.us.us.us.us.us.us.us.us, %16
  %indvars.iv105 = phi i64 [ 0, %._crit_edge.us.us.us.us.us.us.us.us ], [ %indvars.iv.next106, %16 ]
  %17 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %indvars.iv105
  %18 = load i32, ptr %17, align 4, !tbaa !7
  %19 = mul nuw nsw i64 %indvars.iv105, %12
  %20 = add nuw nsw i64 %15, %19
  %21 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %20) #4
  store i32 %18, ptr %21, align 4, !tbaa !7
  %indvars.iv.next106 = add nuw nsw i64 %indvars.iv105, 1
  %exitcond109.not = icmp eq i64 %indvars.iv.next106, %wide.trip.count
  br i1 %exitcond109.not, label %._crit_edge54.us.us.us.us.us.us.us.us, label %16, !llvm.loop !11

22:                                               ; preds = %22, %.lr.ph.us.us.us.us.us.us.us.us
  %indvars.iv = phi i64 [ %indvars.iv.next, %22 ], [ 0, %.lr.ph.us.us.us.us.us.us.us.us ]
  %23 = mul nuw nsw i64 %indvars.iv, %12
  %24 = add nuw nsw i64 %15, %23
  %25 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %24) #4
  %26 = load i32, ptr %25, align 4, !tbaa !7
  %27 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %indvars.iv
  store i32 %26, ptr %27, align 4, !tbaa !7
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond104.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond104.not, label %._crit_edge.us.us.us.us.us.us.us.us, label %22, !llvm.loop !12

._crit_edge.us.us.us.us.us.us.us.us:              ; preds = %22
  call void @llvm.lifetime.start.p0(i64 408, ptr nonnull %7) #4
  call void @_ZN4FWHTmlERNS_6MatrixES1_(ptr dead_on_unwind nonnull writable sret(%"struct.FWHT::Matrix") align 4 %7, ptr noundef nonnull align 4 dereferenceable(408) %6, ptr noundef nonnull align 4 dereferenceable(408) %5)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(408) %6, ptr noundef nonnull align 4 dereferenceable(408) %7, i64 408, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 408, ptr nonnull %7) #4
  br label %16

._crit_edge54.us.us.us.us.us.us.us.us:            ; preds = %16
  call void @llvm.lifetime.end.p0(i64 408, ptr nonnull %6) #4
  %indvars.iv.next111 = add nuw nsw i64 %indvars.iv110, 1
  %exitcond114.not = icmp eq i64 %indvars.iv.next111, %12
  br i1 %exitcond114.not, label %._crit_edge57.split.us.us.us.split.us.us.us.us.us, label %.lr.ph.us.us.us.us.us.us.us.us, !llvm.loop !15

._crit_edge57.split.us.us.us.split.us.us.us.us.us: ; preds = %._crit_edge54.us.us.us.us.us.us.us.us
  %indvars.iv.next116 = add nuw nsw i64 %indvars.iv115, %13
  %28 = trunc nuw i64 %indvars.iv.next116 to i32
  %29 = icmp slt i32 %28, %1
  br i1 %29, label %.preheader.us.us.us.us.us.us, label %._crit_edge.us.us.us, !llvm.loop !16

.preheader49.us:                                  ; preds = %.preheader49.lr.ph, %._crit_edge.us
  %.04272.us = phi i32 [ %31, %._crit_edge.us ], [ 1, %.preheader49.lr.ph ]
  %30 = icmp sgt i32 %.04272.us, 0
  %31 = mul nsw i32 %.04272.us, %2
  br i1 %30, label %.preheader.us.us81, label %._crit_edge.us

._crit_edge.us:                                   ; preds = %._crit_edge57.split.split.us66.us, %.preheader49.us
  %32 = icmp slt i32 %31, %1
  br i1 %32, label %.preheader49.us, label %._crit_edge76, !llvm.loop !5

.preheader.us.us81:                               ; preds = %.preheader49.us, %._crit_edge57.split.split.us66.us
  %.04662.us.us82 = phi i32 [ %35, %._crit_edge57.split.split.us66.us ], [ 0, %.preheader49.us ]
  br label %33

33:                                               ; preds = %33, %.preheader.us.us81
  %.04555.us65.us = phi i32 [ 0, %.preheader.us.us81 ], [ %34, %33 ]
  call void @llvm.lifetime.start.p0(i64 408, ptr nonnull %6) #4
  call void @_ZN4FWHT6MatrixC2Eii(ptr noundef nonnull align 4 dereferenceable(408) %6, i32 noundef 1, i32 noundef %2)
  call void @llvm.lifetime.start.p0(i64 408, ptr nonnull %7) #4
  call void @_ZN4FWHTmlERNS_6MatrixES1_(ptr dead_on_unwind nonnull writable sret(%"struct.FWHT::Matrix") align 4 %7, ptr noundef nonnull align 4 dereferenceable(408) %6, ptr noundef nonnull align 4 dereferenceable(408) %5)
  call void @llvm.lifetime.end.p0(i64 408, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 408, ptr nonnull %6) #4
  %34 = add nuw nsw i32 %.04555.us65.us, 1
  %exitcond.not = icmp eq i32 %34, %.04272.us
  br i1 %exitcond.not, label %._crit_edge57.split.split.us66.us, label %33, !llvm.loop !15

._crit_edge57.split.split.us66.us:                ; preds = %33
  %35 = add nsw i32 %.04662.us.us82, %31
  %36 = icmp slt i32 %35, %1
  br i1 %36, label %.preheader.us.us81, label %._crit_edge.us, !llvm.loop !16

._crit_edge76:                                    ; preds = %._crit_edge.us, %._crit_edge.us.us.us, %4
  br i1 %3, label %37, label %.loopexit

37:                                               ; preds = %._crit_edge76
  %38 = sext i32 %1 to i64
  %39 = call noundef i32 @_Z3POWxx(i64 noundef %38, i64 noundef 330301439)
  %40 = sext i32 %39 to i64
  %41 = icmp sgt i32 %1, 0
  br i1 %41, label %.lr.ph.preheader, label %.loopexit

.lr.ph.preheader:                                 ; preds = %37
  %wide.trip.count121 = zext nneg i32 %1 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv118 = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next119, %.lr.ph ]
  %42 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv118) #4
  %43 = load i32, ptr %42, align 4, !tbaa !7
  %44 = sext i32 %43 to i64
  %45 = mul nsw i64 %44, %40
  %46 = srem i64 %45, 330301441
  %47 = trunc nsw i64 %46 to i32
  %48 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv118) #4
  store i32 %47, ptr %48, align 4, !tbaa !7
  %indvars.iv.next119 = add nuw nsw i64 %indvars.iv118, 1
  %exitcond122.not = icmp eq i64 %indvars.iv.next119, %wide.trip.count121
  br i1 %exitcond122.not, label %.loopexit, label %.lr.ph, !llvm.loop !17

.loopexit:                                        ; preds = %.lr.ph, %37, %._crit_edge76
  call void @llvm.lifetime.end.p0(i64 408, ptr nonnull %5) #4
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = distinct !{!11, !6}
!12 = distinct !{!12, !6}
!13 = !{i64 0, i64 400, !14, i64 400, i64 4, !7, i64 404, i64 4, !7}
!14 = !{!9, !9, i64 0}
!15 = distinct !{!15, !6}
!16 = distinct !{!16, !6}
!17 = distinct !{!17, !6}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass