; LLVM IR from moarseniy/CudaFEMproject :: FEMproject/fem_utils/src (cpu_fem_utils)

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

%class.ElementsData = type { ptr, i64, i64, i64, i64, i64, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, %struct.CGMData, ptr, ptr, ptr }
%struct.CGMData = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr }

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

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

declare noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixclEmm(ptr noundef nonnull align 8 dereferenceable(49), i64 noundef, i64 noundef) #1

declare noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixixEm(ptr noundef nonnull align 8 dereferenceable(49), i64 noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN16CPU_ElementsData10getLocalIdEmm(ptr noundef nonnull align 8 dereferenceable(336), i64 noundef, i64 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN16CPU_ElementsData13calcPressuresEfRK13WaveletParams(ptr noundef nonnull align 8 dereferenceable(336) %0, float noundef %1, ptr noundef nonnull align 8 dereferenceable(44) %2) unnamed_addr #2 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca float, align 4
  %6 = alloca ptr, align 8
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i32, align 4
  %15 = alloca i64, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store float %1, ptr %5, align 4, !tbaa !9
  store ptr %2, ptr %6, align 8, !tbaa !5
  %16 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  %17 = load float, ptr %5, align 4, !tbaa !9
  %18 = load ptr, ptr %6, align 8, !tbaa !5
  %19 = call noundef float @_ZN12ElementsData13updateWaveletEfRK13WaveletParams(ptr noundef nonnull align 8 dereferenceable(336) %16, float noundef %17, ptr noundef nonnull align 8 dereferenceable(44) %18)
  store float %19, ptr %7, align 4, !tbaa !9
  %20 = load float, ptr %7, align 4, !tbaa !9
  %21 = fcmp une float %20, 0.000000e+00
  br i1 %21, label %22, label %29

22:                                               ; preds = %3
  %23 = getelementptr inbounds %class.ElementsData, ptr %16, i32 0, i32 14
  %24 = load ptr, ptr %23, align 8, !tbaa !11
  %25 = load float, ptr %7, align 4, !tbaa !9
  %26 = load ptr, ptr %24, align 8, !tbaa !16
  %27 = getelementptr inbounds ptr, ptr %26, i64 29
  %28 = load ptr, ptr %27, align 8
  call void %28(ptr noundef nonnull align 8 dereferenceable(49) %24, float noundef %25)
  br label %29

29:                                               ; preds = %22, %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  %30 = getelementptr inbounds %class.ElementsData, ptr %16, i32 0, i32 1
  %31 = load i64, ptr %30, align 8, !tbaa !18
  %32 = icmp eq i64 %31, 2
  %33 = zext i1 %32 to i64
  %34 = select i1 %32, float -5.000000e-01, float 0xBFB5555560000000
  store float %34, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  store i64 0, ptr %9, align 8, !tbaa !19
  br label %35

35:                                               ; preds = %125, %29
  %36 = load i64, ptr %9, align 8, !tbaa !19
  %37 = getelementptr inbounds %class.ElementsData, ptr %16, i32 0, i32 4
  %38 = load i64, ptr %37, align 8, !tbaa !20
  %39 = icmp ult i64 %36, %38
  br i1 %39, label %41, label %40

40:                                               ; preds = %35
  store i32 2, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  br label %128

41:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  %42 = getelementptr inbounds %class.ElementsData, ptr %16, i32 0, i32 11
  %43 = load ptr, ptr %42, align 8, !tbaa !21
  %44 = load i64, ptr %9, align 8, !tbaa !19
  %45 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixixEm(ptr noundef nonnull align 8 dereferenceable(49) %43, i64 noundef %44)
  %46 = load float, ptr %45, align 4, !tbaa !9
  %47 = fptoui float %46 to i64
  store i64 %47, ptr %11, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  store i64 0, ptr %12, align 8, !tbaa !19
  br label %48

48:                                               ; preds = %121, %41
  %49 = load i64, ptr %12, align 8, !tbaa !19
  %50 = getelementptr inbounds %class.ElementsData, ptr %16, i32 0, i32 1
  %51 = load i64, ptr %50, align 8, !tbaa !18
  %52 = icmp ult i64 %49, %51
  br i1 %52, label %54, label %53

53:                                               ; preds = %48
  store i32 5, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  br label %124

54:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  %55 = getelementptr inbounds %class.ElementsData, ptr %16, i32 0, i32 12
  %56 = load ptr, ptr %55, align 8, !tbaa !22
  %57 = load i64, ptr %9, align 8, !tbaa !19
  %58 = load i64, ptr %12, align 8, !tbaa !19
  %59 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixclEmm(ptr noundef nonnull align 8 dereferenceable(49) %56, i64 noundef %57, i64 noundef %58)
  %60 = load float, ptr %59, align 4, !tbaa !9
  %61 = fptoui float %60 to i64
  store i64 %61, ptr %13, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  %62 = load i64, ptr %11, align 8, !tbaa !19
  %63 = load i64, ptr %13, align 8, !tbaa !19
  %64 = call noundef i32 @_ZN16CPU_ElementsData10getLocalIdEmm(ptr noundef nonnull align 8 dereferenceable(336) %16, i64 noundef %62, i64 noundef %63)
  store i32 %64, ptr %14, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  store i64 0, ptr %15, align 8, !tbaa !19
  br label %65

65:                                               ; preds = %117, %54
  %66 = load i64, ptr %15, align 8, !tbaa !19
  %67 = getelementptr inbounds %class.ElementsData, ptr %16, i32 0, i32 1
  %68 = load i64, ptr %67, align 8, !tbaa !18
  %69 = icmp ult i64 %66, %68
  br i1 %69, label %71, label %70

70:                                               ; preds = %65
  store i32 8, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  br label %120

71:                                               ; preds = %65
  %72 = getelementptr inbounds %class.ElementsData, ptr %16, i32 0, i32 10
  %73 = load ptr, ptr %72, align 8, !tbaa !25
  %74 = load i64, ptr %13, align 8, !tbaa !19
  %75 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixixEm(ptr noundef nonnull align 8 dereferenceable(49) %73, i64 noundef %74)
  %76 = load float, ptr %75, align 4, !tbaa !9
  %77 = fptosi float %76 to i32
  %78 = load i64, ptr %15, align 8, !tbaa !19
  %79 = trunc i64 %78 to i32
  %80 = and i32 %77, %79
  %81 = icmp ne i32 %80, 0
  br i1 %81, label %82, label %83

82:                                               ; preds = %71
  br label %104

83:                                               ; preds = %71
  %84 = load float, ptr %8, align 4, !tbaa !9
  %85 = getelementptr inbounds %class.ElementsData, ptr %16, i32 0, i32 14
  %86 = load ptr, ptr %85, align 8, !tbaa !11
  %87 = load i64, ptr %9, align 8, !tbaa !19
  %88 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixixEm(ptr noundef nonnull align 8 dereferenceable(49) %86, i64 noundef %87)
  %89 = load float, ptr %88, align 4, !tbaa !9
  %90 = fmul float %84, %89
  %91 = getelementptr inbounds %class.ElementsData, ptr %16, i32 0, i32 29
  %92 = load ptr, ptr %91, align 8, !tbaa !26
  %93 = load i64, ptr %9, align 8, !tbaa !19
  %94 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixixEm(ptr noundef nonnull align 8 dereferenceable(49) %92, i64 noundef %93)
  %95 = load float, ptr %94, align 4, !tbaa !9
  %96 = fmul float %90, %95
  %97 = getelementptr inbounds %class.ElementsData, ptr %16, i32 0, i32 13
  %98 = load ptr, ptr %97, align 8, !tbaa !27
  %99 = load i64, ptr %9, align 8, !tbaa !19
  %100 = load i64, ptr %15, align 8, !tbaa !19
  %101 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixclEmm(ptr noundef nonnull align 8 dereferenceable(49) %98, i64 noundef %99, i64 noundef %100)
  %102 = load float, ptr %101, align 4, !tbaa !9
  %103 = fmul float %96, %102
  br label %104

104:                                              ; preds = %83, %82
  %105 = phi float [ 0.000000e+00, %82 ], [ %103, %83 ]
  %106 = getelementptr inbounds %class.ElementsData, ptr %16, i32 0, i32 19
  %107 = load ptr, ptr %106, align 8, !tbaa !28
  %108 = load i64, ptr %11, align 8, !tbaa !19
  %109 = getelementptr inbounds %class.ElementsData, ptr %16, i32 0, i32 1
  %110 = load i64, ptr %109, align 8, !tbaa !18
  %111 = load i32, ptr %14, align 4, !tbaa !23
  %112 = sext i32 %111 to i64
  %113 = mul i64 %110, %112
  %114 = load i64, ptr %15, align 8, !tbaa !19
  %115 = add i64 %113, %114
  %116 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixclEmm(ptr noundef nonnull align 8 dereferenceable(49) %107, i64 noundef %108, i64 noundef %115)
  store float %105, ptr %116, align 4, !tbaa !9
  br label %117

117:                                              ; preds = %104
  %118 = load i64, ptr %15, align 8, !tbaa !19
  %119 = add i64 %118, 1
  store i64 %119, ptr %15, align 8, !tbaa !19
  br label %65, !llvm.loop !29

120:                                              ; preds = %70
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  br label %121

121:                                              ; preds = %120
  %122 = load i64, ptr %12, align 8, !tbaa !19
  %123 = add i64 %122, 1
  store i64 %123, ptr %12, align 8, !tbaa !19
  br label %48, !llvm.loop !31

124:                                              ; preds = %53
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  br label %125

125:                                              ; preds = %124
  %126 = load i64, ptr %9, align 8, !tbaa !19
  %127 = add i64 %126, 1
  store i64 %127, ptr %9, align 8, !tbaa !19
  br label %35, !llvm.loop !32

128:                                              ; preds = %40
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  ret void
}

declare noundef float @_ZN12ElementsData13updateWaveletEfRK13WaveletParams(ptr noundef nonnull align 8 dereferenceable(336), float noundef, ptr noundef nonnull align 8 dereferenceable(44)) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 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 = { 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 = !{!"float", !7, i64 0}
!11 = !{!12, !6, i64 112}
!12 = !{!"_ZTS12ElementsData", !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !14, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !15, i64 256, !6, i64 312, !6, i64 320, !6, i64 328}
!13 = !{!"long", !7, i64 0}
!14 = !{!"_ZTS11DEVICE_NAME", !7, i64 0}
!15 = !{!"_ZTS7CGMData", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!16 = !{!17, !17, i64 0}
!17 = !{!"vtable pointer", !8, i64 0}
!18 = !{!12, !13, i64 8}
!19 = !{!13, !13, i64 0}
!20 = !{!12, !13, i64 32}
!21 = !{!12, !6, i64 88}
!22 = !{!12, !6, i64 96}
!23 = !{!24, !24, i64 0}
!24 = !{!"int", !7, i64 0}
!25 = !{!12, !6, i64 80}
!26 = !{!12, !6, i64 232}
!27 = !{!12, !6, i64 104}
!28 = !{!12, !6, i64 152}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = distinct !{!31, !30}
!32 = distinct !{!32, !30}


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

declare noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixclEmm(ptr noundef nonnull align 8 dereferenceable(49), i64 noundef, i64 noundef) local_unnamed_addr #0

declare noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixixEm(ptr noundef nonnull align 8 dereferenceable(49), i64 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN16CPU_ElementsData10getLocalIdEmm(ptr noundef nonnull align 8 dereferenceable(336), i64 noundef, i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN16CPU_ElementsData13calcPressuresEfRK13WaveletParams(ptr noundef nonnull align 8 dereferenceable(336) %0, float noundef %1, ptr noundef nonnull align 8 dereferenceable(44) %2) unnamed_addr #1 align 2 {
  %4 = tail call noundef float @_ZN12ElementsData13updateWaveletEfRK13WaveletParams(ptr noundef nonnull align 8 dereferenceable(336) %0, float noundef %1, ptr noundef nonnull align 8 dereferenceable(44) %2)
  %5 = fcmp une float %4, 0.000000e+00
  br i1 %5, label %6, label %12

6:                                                ; preds = %3
  %7 = getelementptr inbounds i8, ptr %0, i64 112
  %8 = load ptr, ptr %7, align 8, !tbaa !5
  %9 = load ptr, ptr %8, align 8, !tbaa !13
  %10 = getelementptr inbounds i8, ptr %9, i64 232
  %11 = load ptr, ptr %10, align 8
  tail call void %11(ptr noundef nonnull align 8 dereferenceable(49) %8, float noundef %4)
  br label %12

12:                                               ; preds = %6, %3
  %13 = getelementptr inbounds i8, ptr %0, i64 8
  %14 = load i64, ptr %13, align 8, !tbaa !15
  %15 = icmp eq i64 %14, 2
  %16 = select i1 %15, float -5.000000e-01, float 0xBFB5555560000000
  %17 = getelementptr inbounds i8, ptr %0, i64 32
  %18 = load i64, ptr %17, align 8, !tbaa !16
  %.not37 = icmp eq i64 %18, 0
  br i1 %.not37, label %._crit_edge36, label %.lr.ph35

.lr.ph35:                                         ; preds = %12
  %19 = getelementptr inbounds i8, ptr %0, i64 88
  %20 = getelementptr inbounds i8, ptr %0, i64 96
  %21 = getelementptr inbounds i8, ptr %0, i64 80
  %22 = getelementptr inbounds i8, ptr %0, i64 112
  %23 = getelementptr inbounds i8, ptr %0, i64 232
  %24 = getelementptr inbounds i8, ptr %0, i64 104
  %25 = getelementptr inbounds i8, ptr %0, i64 152
  br label %26

._crit_edge36:                                    ; preds = %._crit_edge32, %12
  ret void

26:                                               ; preds = %.lr.ph35, %._crit_edge32
  %.02533 = phi i64 [ 0, %.lr.ph35 ], [ %32, %._crit_edge32 ]
  %27 = load ptr, ptr %19, align 8, !tbaa !17
  %28 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixixEm(ptr noundef nonnull align 8 dereferenceable(49) %27, i64 noundef %.02533)
  %29 = load float, ptr %28, align 4, !tbaa !18
  %30 = fptoui float %29 to i64
  %31 = load i64, ptr %13, align 8, !tbaa !15
  %.not38 = icmp eq i64 %31, 0
  br i1 %.not38, label %._crit_edge32, label %.lr.ph31

._crit_edge32:                                    ; preds = %.lr.ph31, %._crit_edge, %26
  %32 = add nuw i64 %.02533, 1
  %33 = load i64, ptr %17, align 8, !tbaa !16
  %34 = icmp ult i64 %32, %33
  br i1 %34, label %26, label %._crit_edge36, !llvm.loop !20

.lr.ph31:                                         ; preds = %26, %._crit_edge
  %.02629 = phi i64 [ %42, %._crit_edge ], [ 0, %26 ]
  %35 = load ptr, ptr %20, align 8, !tbaa !22
  %36 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixclEmm(ptr noundef nonnull align 8 dereferenceable(49) %35, i64 noundef %.02533, i64 noundef %.02629)
  %37 = load float, ptr %36, align 4, !tbaa !18
  %38 = fptoui float %37 to i64
  %39 = tail call noundef i32 @_ZN16CPU_ElementsData10getLocalIdEmm(ptr noundef nonnull align 8 dereferenceable(336) %0, i64 noundef %30, i64 noundef %38)
  %40 = load i64, ptr %13, align 8, !tbaa !15
  %.not39 = icmp eq i64 %40, 0
  br i1 %.not39, label %._crit_edge32, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph31
  %41 = sext i32 %39 to i64
  br label %44

._crit_edge:                                      ; preds = %64
  %42 = add nuw i64 %.02629, 1
  %43 = icmp ult i64 %42, %72
  br i1 %43, label %.lr.ph31, label %._crit_edge32, !llvm.loop !23

44:                                               ; preds = %.lr.ph, %64
  %.028 = phi i64 [ 0, %.lr.ph ], [ %71, %64 ]
  %45 = load ptr, ptr %21, align 8, !tbaa !24
  %46 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixixEm(ptr noundef nonnull align 8 dereferenceable(49) %45, i64 noundef %38)
  %47 = load float, ptr %46, align 4, !tbaa !18
  %48 = fptosi float %47 to i32
  %49 = trunc i64 %.028 to i32
  %50 = and i32 %48, %49
  %.not = icmp eq i32 %50, 0
  br i1 %.not, label %51, label %64

51:                                               ; preds = %44
  %52 = load ptr, ptr %22, align 8, !tbaa !5
  %53 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixixEm(ptr noundef nonnull align 8 dereferenceable(49) %52, i64 noundef %.02533)
  %54 = load float, ptr %53, align 4, !tbaa !18
  %55 = fmul float %16, %54
  %56 = load ptr, ptr %23, align 8, !tbaa !25
  %57 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixixEm(ptr noundef nonnull align 8 dereferenceable(49) %56, i64 noundef %.02533)
  %58 = load float, ptr %57, align 4, !tbaa !18
  %59 = fmul float %55, %58
  %60 = load ptr, ptr %24, align 8, !tbaa !26
  %61 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixclEmm(ptr noundef nonnull align 8 dereferenceable(49) %60, i64 noundef %.02533, i64 noundef %.028)
  %62 = load float, ptr %61, align 4, !tbaa !18
  %63 = fmul float %59, %62
  br label %64

64:                                               ; preds = %44, %51
  %65 = phi float [ %63, %51 ], [ 0.000000e+00, %44 ]
  %66 = load ptr, ptr %25, align 8, !tbaa !27
  %67 = load i64, ptr %13, align 8, !tbaa !15
  %68 = mul i64 %67, %41
  %69 = add i64 %68, %.028
  %70 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixclEmm(ptr noundef nonnull align 8 dereferenceable(49) %66, i64 noundef %30, i64 noundef %69)
  store float %65, ptr %70, align 4, !tbaa !18
  %71 = add nuw i64 %.028, 1
  %72 = load i64, ptr %13, align 8, !tbaa !15
  %73 = icmp ult i64 %71, %72
  br i1 %73, label %44, label %._crit_edge, !llvm.loop !28
}

declare noundef float @_ZN12ElementsData13updateWaveletEfRK13WaveletParams(ptr noundef nonnull align 8 dereferenceable(336), float noundef, ptr noundef nonnull align 8 dereferenceable(44)) local_unnamed_addr #0

attributes #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 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" }

!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, !11, i64 112}
!6 = !{!"_ZTS12ElementsData", !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !10, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !11, i64 96, !11, i64 104, !11, i64 112, !11, i64 120, !11, i64 128, !11, i64 136, !11, i64 144, !11, i64 152, !11, i64 160, !11, i64 168, !11, i64 176, !11, i64 184, !11, i64 192, !11, i64 200, !11, i64 208, !11, i64 216, !11, i64 224, !11, i64 232, !11, i64 240, !11, i64 248, !12, i64 256, !11, i64 312, !11, i64 320, !11, i64 328}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTS11DEVICE_NAME", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"_ZTS7CGMData", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48}
!13 = !{!14, !14, i64 0}
!14 = !{!"vtable pointer", !9, i64 0}
!15 = !{!6, !7, i64 8}
!16 = !{!6, !7, i64 32}
!17 = !{!6, !11, i64 88}
!18 = !{!19, !19, i64 0}
!19 = !{!"float", !8, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!6, !11, i64 96}
!23 = distinct !{!23, !21}
!24 = !{!6, !11, i64 80}
!25 = !{!6, !11, i64 232}
!26 = !{!6, !11, i64 104}
!27 = !{!6, !11, i64 152}
!28 = distinct !{!28, !21}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass