; LLVM IR from ox-vgg/vise :: src/search_engine/relja_retrival/external/KMCode_relja/gauss_iir (gauss_iir)

; 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.ImageContent = type { i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

@_ZL4size = external hidden global i32, align 4

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z23set_smooth_coefficientsfPf(float noundef, ptr 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 @_Z23set_derive_coefficientsfPf(float noundef, ptr noundef) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z8verticalP12ImageContentS0_Pf(ptr noundef, ptr noundef, ptr noundef) #0

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN12ImageContentC2Eii(ptr noundef nonnull align 8 dereferenceable(80), i32 noundef, i32 noundef) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #3

; Function Attrs: nounwind
declare void @_ZN12ImageContentD1Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z10horizontalP12ImageContentS0_Pf(ptr noundef, ptr noundef, ptr noundef) #0

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #2

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local noundef float @_Z2dXiiP12ImageContentf(i32 noundef %0, i32 noundef %1, ptr noundef %2, float noundef %3) #0 personality ptr @__gxx_personality_v0 {
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca float, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca float, align 4
  store i32 %0, ptr %5, align 4, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !9
  store float %3, ptr %8, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %18 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 80) #6
  %19 = load i32, ptr @_ZL4size, align 4, !tbaa !5
  %20 = mul nsw i32 2, %19
  %21 = add nsw i32 %20, 1
  %22 = load i32, ptr @_ZL4size, align 4, !tbaa !5
  %23 = mul nsw i32 2, %22
  %24 = add nsw i32 %23, 1
  invoke void @_ZN12ImageContentC2Eii(ptr noundef nonnull align 8 dereferenceable(80) %18, i32 noundef %21, i32 noundef %24)
          to label %25 unwind label %41

25:                                               ; preds = %4
  store ptr %18, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %26 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 80) #6
  %27 = load i32, ptr @_ZL4size, align 4, !tbaa !5
  %28 = mul nsw i32 2, %27
  %29 = add nsw i32 %28, 1
  %30 = load i32, ptr @_ZL4size, align 4, !tbaa !5
  %31 = mul nsw i32 2, %30
  %32 = add nsw i32 %31, 1
  invoke void @_ZN12ImageContentC2Eii(ptr noundef nonnull align 8 dereferenceable(80) %26, i32 noundef %29, i32 noundef %32)
          to label %33 unwind label %45

33:                                               ; preds = %25
  store ptr %26, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %34 = load i32, ptr @_ZL4size, align 4, !tbaa !5
  %35 = sub nsw i32 0, %34
  store i32 %35, ptr %13, align 4, !tbaa !5
  br label %36

36:                                               ; preds = %91, %33
  %37 = load i32, ptr %13, align 4, !tbaa !5
  %38 = load i32, ptr @_ZL4size, align 4, !tbaa !5
  %39 = icmp sle i32 %37, %38
  br i1 %39, label %49, label %40

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

41:                                               ; preds = %4
  %42 = landingpad { ptr, i32 }
          cleanup
  %43 = extractvalue { ptr, i32 } %42, 0
  store ptr %43, ptr %10, align 8
  %44 = extractvalue { ptr, i32 } %42, 1
  store i32 %44, ptr %11, align 4
  call void @_ZdlPvm(ptr noundef %18, i64 noundef 80) #7
  br label %130

45:                                               ; preds = %25
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %10, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %11, align 4
  call void @_ZdlPvm(ptr noundef %26, i64 noundef 80) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %130

49:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %50 = load i32, ptr @_ZL4size, align 4, !tbaa !5
  %51 = sub nsw i32 0, %50
  store i32 %51, ptr %15, align 4, !tbaa !5
  br label %52

52:                                               ; preds = %87, %49
  %53 = load i32, ptr %15, align 4, !tbaa !5
  %54 = load i32, ptr @_ZL4size, align 4, !tbaa !5
  %55 = icmp sle i32 %53, %54
  br i1 %55, label %57, label %56

56:                                               ; preds = %52
  store i32 5, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %90

57:                                               ; preds = %52
  %58 = load ptr, ptr %7, align 8, !tbaa !9
  %59 = getelementptr inbounds %class.ImageContent, ptr %58, i32 0, i32 4
  %60 = load ptr, ptr %59, align 8, !tbaa !13
  %61 = load i32, ptr %6, align 4, !tbaa !5
  %62 = load i32, ptr %13, align 4, !tbaa !5
  %63 = add nsw i32 %61, %62
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds ptr, ptr %60, i64 %64
  %66 = load ptr, ptr %65, align 8, !tbaa !9
  %67 = load i32, ptr %5, align 4, !tbaa !5
  %68 = load i32, ptr %15, align 4, !tbaa !5
  %69 = add nsw i32 %67, %68
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds float, ptr %66, i64 %70
  %72 = load float, ptr %71, align 4, !tbaa !11
  %73 = load ptr, ptr %9, align 8, !tbaa !9
  %74 = getelementptr inbounds %class.ImageContent, ptr %73, i32 0, i32 4
  %75 = load ptr, ptr %74, align 8, !tbaa !13
  %76 = load i32, ptr %13, align 4, !tbaa !5
  %77 = load i32, ptr @_ZL4size, align 4, !tbaa !5
  %78 = add nsw i32 %76, %77
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds ptr, ptr %75, i64 %79
  %81 = load ptr, ptr %80, align 8, !tbaa !9
  %82 = load i32, ptr %15, align 4, !tbaa !5
  %83 = load i32, ptr @_ZL4size, align 4, !tbaa !5
  %84 = add nsw i32 %82, %83
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds float, ptr %81, i64 %85
  store float %72, ptr %86, align 4, !tbaa !11
  br label %87

87:                                               ; preds = %57
  %88 = load i32, ptr %15, align 4, !tbaa !5
  %89 = add nsw i32 %88, 1
  store i32 %89, ptr %15, align 4, !tbaa !5
  br label %52, !llvm.loop !15

90:                                               ; preds = %56
  br label %91

91:                                               ; preds = %90
  %92 = load i32, ptr %13, align 4, !tbaa !5
  %93 = add nsw i32 %92, 1
  store i32 %93, ptr %13, align 4, !tbaa !5
  br label %36, !llvm.loop !17

94:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %95 = call noalias noundef nonnull ptr @_Znam(i64 noundef 68) #6
  store ptr %95, ptr %16, align 8, !tbaa !9
  %96 = load float, ptr %8, align 4, !tbaa !11
  %97 = load ptr, ptr %16, align 8, !tbaa !9
  call void @_Z23set_smooth_coefficientsfPf(float noundef %96, ptr noundef %97)
  %98 = load ptr, ptr %9, align 8, !tbaa !9
  %99 = load ptr, ptr %12, align 8, !tbaa !9
  %100 = load ptr, ptr %16, align 8, !tbaa !9
  call void @_Z10horizontalP12ImageContentS0_Pf(ptr noundef %98, ptr noundef %99, ptr noundef %100)
  %101 = load float, ptr %8, align 4, !tbaa !11
  %102 = load ptr, ptr %16, align 8, !tbaa !9
  call void @_Z23set_derive_coefficientsfPf(float noundef %101, ptr noundef %102)
  %103 = load ptr, ptr %12, align 8, !tbaa !9
  %104 = load ptr, ptr %9, align 8, !tbaa !9
  %105 = load ptr, ptr %16, align 8, !tbaa !9
  call void @_Z8verticalP12ImageContentS0_Pf(ptr noundef %103, ptr noundef %104, ptr noundef %105)
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  %106 = load ptr, ptr %9, align 8, !tbaa !9
  %107 = getelementptr inbounds %class.ImageContent, ptr %106, i32 0, i32 4
  %108 = load ptr, ptr %107, align 8, !tbaa !13
  %109 = load i32, ptr @_ZL4size, align 4, !tbaa !5
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds ptr, ptr %108, i64 %110
  %112 = load ptr, ptr %111, align 8, !tbaa !9
  %113 = load i32, ptr @_ZL4size, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds float, ptr %112, i64 %114
  %116 = load float, ptr %115, align 4, !tbaa !11
  store float %116, ptr %17, align 4, !tbaa !11
  %117 = load ptr, ptr %16, align 8, !tbaa !9
  %118 = icmp eq ptr %117, null
  br i1 %118, label %120, label %119

119:                                              ; preds = %94
  call void @_ZdaPv(ptr noundef %117) #7
  br label %120

120:                                              ; preds = %119, %94
  %121 = load ptr, ptr %12, align 8, !tbaa !9
  %122 = icmp eq ptr %121, null
  br i1 %122, label %124, label %123

123:                                              ; preds = %120
  call void @_ZN12ImageContentD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %121) #5
  call void @_ZdlPvm(ptr noundef %121, i64 noundef 80) #7
  br label %124

124:                                              ; preds = %123, %120
  %125 = load ptr, ptr %9, align 8, !tbaa !9
  %126 = icmp eq ptr %125, null
  br i1 %126, label %128, label %127

127:                                              ; preds = %124
  call void @_ZN12ImageContentD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %125) #5
  call void @_ZdlPvm(ptr noundef %125, i64 noundef 80) #7
  br label %128

128:                                              ; preds = %127, %124
  %129 = load float, ptr %17, align 4, !tbaa !11
  store i32 1, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  ret float %129

130:                                              ; preds = %45, %41
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %131

131:                                              ; preds = %130
  %132 = load ptr, ptr %10, align 8
  %133 = load i32, ptr %11, align 4
  %134 = insertvalue { ptr, i32 } poison, ptr %132, 0
  %135 = insertvalue { ptr, i32 } %134, i32 %133, 1
  resume { ptr, i32 } %135
}

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nobuiltin 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 #3 = { nobuiltin 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 "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 = { builtin allocsize(0) }
attributes #7 = { builtin 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !10, i64 16}
!14 = !{!"_ZTS12ImageContent", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !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"

@_ZL4size = external hidden local_unnamed_addr global i32, align 4

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z23set_smooth_coefficientsfPf(float noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z23set_derive_coefficientsfPf(float noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z8verticalP12ImageContentS0_Pf(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN12ImageContentC2Eii(ptr noundef nonnull align 8 dereferenceable(80), i32 noundef, i32 noundef) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: nounwind
declare void @_ZN12ImageContentD1Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z10horizontalP12ImageContentS0_Pf(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #1

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local noundef float @_Z2dXiiP12ImageContentf(i32 noundef %0, i32 noundef %1, ptr nocapture noundef readonly %2, float noundef %3) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %5 = tail call noalias noundef nonnull dereferenceable(80) ptr @_Znwm(i64 noundef 80) #4
  %6 = load i32, ptr @_ZL4size, align 4, !tbaa !5
  %7 = shl nsw i32 %6, 1
  %8 = or disjoint i32 %7, 1
  invoke void @_ZN12ImageContentC2Eii(ptr noundef nonnull align 8 dereferenceable(80) %5, i32 noundef %8, i32 noundef %8)
          to label %9 unwind label %56

9:                                                ; preds = %4
  %10 = tail call noalias noundef nonnull dereferenceable(80) ptr @_Znwm(i64 noundef 80) #4
  %11 = load i32, ptr @_ZL4size, align 4, !tbaa !5
  %12 = shl nsw i32 %11, 1
  %13 = or disjoint i32 %12, 1
  invoke void @_ZN12ImageContentC2Eii(ptr noundef nonnull align 8 dereferenceable(80) %10, i32 noundef %13, i32 noundef %13)
          to label %14 unwind label %58

14:                                               ; preds = %9
  %15 = load i32, ptr @_ZL4size, align 4, !tbaa !5
  %.not37 = icmp slt i32 %15, 0
  br i1 %.not37, label %._crit_edge39, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %14
  %16 = sub nsw i32 0, %15
  %17 = getelementptr inbounds i8, ptr %2, i64 16
  %18 = getelementptr inbounds i8, ptr %5, i64 16
  %19 = load ptr, ptr %17, align 8, !tbaa !9
  %20 = load ptr, ptr %18, align 8, !tbaa !9
  %21 = sext i32 %16 to i64
  %22 = sext i32 %0 to i64
  %23 = zext nneg i32 %15 to i64
  %24 = add nuw i32 %15, 1
  %25 = sext i32 %1 to i64
  %invariant.gep48 = getelementptr ptr, ptr %19, i64 %25
  %invariant.gep50 = getelementptr ptr, ptr %20, i64 %23
  %26 = sub nsw i64 %23, %22
  %27 = shl nsw i64 %26, 2
  %28 = shl nuw i32 %15, 1
  %29 = add nuw i32 %15, 1
  %min.iters.check = icmp ult i32 %15, 4
  %30 = and i32 %28, -8
  %n.vec = zext i32 %30 to i64
  %ind.end = add nsw i64 %n.vec, %21
  br label %.preheader

.preheader:                                       ; preds = %.preheader.lr.ph, %._crit_edge
  %indvars.iv41 = phi i64 [ %21, %.preheader.lr.ph ], [ %indvars.iv.next42, %._crit_edge ]
  %gep49 = getelementptr ptr, ptr %invariant.gep48, i64 %indvars.iv41
  %31 = load ptr, ptr %gep49, align 8, !tbaa !12
  %gep51 = getelementptr ptr, ptr %invariant.gep50, i64 %indvars.iv41
  %32 = load ptr, ptr %gep51, align 8, !tbaa !12
  %invariant.gep = getelementptr float, ptr %31, i64 %22
  %invariant.gep46 = getelementptr float, ptr %32, i64 %23
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.memcheck

scalar.ph.preheader:                              ; preds = %vector.body, %vector.memcheck, %.preheader
  %indvars.iv.ph = phi i64 [ %21, %vector.memcheck ], [ %21, %.preheader ], [ %ind.end, %vector.body ]
  %33 = trunc i64 %indvars.iv.ph to i32
  %34 = sub i32 %29, %33
  %35 = sub i32 %15, %33
  %xtraiter = and i32 %34, 3
  %lcmp.mod.not = icmp eq i32 %xtraiter, 0
  br i1 %lcmp.mod.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader, %scalar.ph.prol
  %indvars.iv.prol = phi i64 [ %indvars.iv.next.prol, %scalar.ph.prol ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %prol.iter = phi i32 [ %prol.iter.next, %scalar.ph.prol ], [ 0, %scalar.ph.preheader ]
  %gep.prol = getelementptr float, ptr %invariant.gep, i64 %indvars.iv.prol
  %36 = load float, ptr %gep.prol, align 4, !tbaa !13
  %gep47.prol = getelementptr float, ptr %invariant.gep46, i64 %indvars.iv.prol
  store float %36, ptr %gep47.prol, align 4, !tbaa !13
  %indvars.iv.next.prol = add nsw i64 %indvars.iv.prol, 1
  %prol.iter.next = add i32 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i32 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol, !llvm.loop !15

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %scalar.ph.preheader ], [ %indvars.iv.next.prol, %scalar.ph.prol ]
  %37 = icmp ult i32 %35, 3
  br i1 %37, label %._crit_edge, label %scalar.ph

vector.memcheck:                                  ; preds = %.preheader
  %38 = ptrtoint ptr %32 to i64
  %39 = ptrtoint ptr %31 to i64
  %40 = add i64 %27, %38
  %41 = sub i64 %40, %39
  %diff.check = icmp ult i64 %41, 32
  br i1 %diff.check, label %scalar.ph.preheader, label %vector.body

vector.body:                                      ; preds = %vector.memcheck, %vector.body
  %index = phi i64 [ %index.next, %vector.body ], [ 0, %vector.memcheck ]
  %offset.idx = add i64 %index, %21
  %42 = getelementptr float, ptr %invariant.gep, i64 %offset.idx
  %43 = getelementptr i8, ptr %42, i64 16
  %wide.load = load <4 x float>, ptr %42, align 4, !tbaa !13
  %wide.load52 = load <4 x float>, ptr %43, align 4, !tbaa !13
  %44 = getelementptr float, ptr %invariant.gep46, i64 %offset.idx
  %45 = getelementptr i8, ptr %44, i64 16
  store <4 x float> %wide.load, ptr %44, align 4, !tbaa !13
  store <4 x float> %wide.load52, ptr %45, align 4, !tbaa !13
  %index.next = add nuw i64 %index, 8
  %46 = icmp eq i64 %index.next, %n.vec
  br i1 %46, label %scalar.ph.preheader, label %vector.body, !llvm.loop !17

._crit_edge39:                                    ; preds = %._crit_edge, %14
  %47 = tail call noalias noundef nonnull dereferenceable(68) ptr @_Znam(i64 noundef 68) #4
  tail call void @_Z23set_smooth_coefficientsfPf(float noundef %3, ptr noundef nonnull %47)
  tail call void @_Z10horizontalP12ImageContentS0_Pf(ptr noundef nonnull %5, ptr noundef nonnull %10, ptr noundef nonnull %47)
  tail call void @_Z23set_derive_coefficientsfPf(float noundef %3, ptr noundef nonnull %47)
  tail call void @_Z8verticalP12ImageContentS0_Pf(ptr noundef nonnull %10, ptr noundef nonnull %5, ptr noundef nonnull %47)
  %48 = getelementptr inbounds i8, ptr %5, i64 16
  %49 = load ptr, ptr %48, align 8, !tbaa !9
  %50 = load i32, ptr @_ZL4size, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds ptr, ptr %49, i64 %51
  %53 = load ptr, ptr %52, align 8, !tbaa !12
  %54 = getelementptr inbounds float, ptr %53, i64 %51
  %55 = load float, ptr %54, align 4, !tbaa !13
  tail call void @_ZdaPv(ptr noundef nonnull %47) #5
  tail call void @_ZN12ImageContentD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %10) #6
  tail call void @_ZdlPvm(ptr noundef nonnull %10, i64 noundef 80) #5
  tail call void @_ZN12ImageContentD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %5) #6
  tail call void @_ZdlPvm(ptr noundef nonnull %5, i64 noundef 80) #5
  ret float %55

56:                                               ; preds = %4
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %64

58:                                               ; preds = %9
  %59 = landingpad { ptr, i32 }
          cleanup
  br label %64

._crit_edge:                                      ; preds = %scalar.ph, %scalar.ph.prol.loopexit
  %indvars.iv.next42 = add nsw i64 %indvars.iv41, 1
  %lftr.wideiv44 = trunc i64 %indvars.iv.next42 to i32
  %exitcond45.not = icmp eq i32 %24, %lftr.wideiv44
  br i1 %exitcond45.not, label %._crit_edge39, label %.preheader, !llvm.loop !21

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.3, %scalar.ph ], [ %indvars.iv.unr, %scalar.ph.prol.loopexit ]
  %gep = getelementptr float, ptr %invariant.gep, i64 %indvars.iv
  %60 = load float, ptr %gep, align 4, !tbaa !13
  %gep47 = getelementptr float, ptr %invariant.gep46, i64 %indvars.iv
  store float %60, ptr %gep47, align 4, !tbaa !13
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %gep.1 = getelementptr float, ptr %invariant.gep, i64 %indvars.iv.next
  %61 = load float, ptr %gep.1, align 4, !tbaa !13
  %gep47.1 = getelementptr float, ptr %invariant.gep46, i64 %indvars.iv.next
  store float %61, ptr %gep47.1, align 4, !tbaa !13
  %indvars.iv.next.1 = add nsw i64 %indvars.iv, 2
  %gep.2 = getelementptr float, ptr %invariant.gep, i64 %indvars.iv.next.1
  %62 = load float, ptr %gep.2, align 4, !tbaa !13
  %gep47.2 = getelementptr float, ptr %invariant.gep46, i64 %indvars.iv.next.1
  store float %62, ptr %gep47.2, align 4, !tbaa !13
  %indvars.iv.next.2 = add nsw i64 %indvars.iv, 3
  %gep.3 = getelementptr float, ptr %invariant.gep, i64 %indvars.iv.next.2
  %63 = load float, ptr %gep.3, align 4, !tbaa !13
  %gep47.3 = getelementptr float, ptr %invariant.gep46, i64 %indvars.iv.next.2
  store float %63, ptr %gep47.3, align 4, !tbaa !13
  %indvars.iv.next.3 = add nsw i64 %indvars.iv, 4
  %lftr.wideiv.3 = trunc i64 %indvars.iv.next.3 to i32
  %exitcond.not.3 = icmp eq i32 %24, %lftr.wideiv.3
  br i1 %exitcond.not.3, label %._crit_edge, label %scalar.ph, !llvm.loop !22

64:                                               ; preds = %58, %56
  %.sink = phi ptr [ %10, %58 ], [ %5, %56 ]
  %.pn = phi { ptr, i32 } [ %59, %58 ], [ %57, %56 ]
  tail call void @_ZdlPvm(ptr noundef nonnull %.sink, i64 noundef 80) #5
  resume { ptr, i32 } %.pn
}

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 = { nobuiltin 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 #2 = { nobuiltin 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 #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 = { builtin allocsize(0) }
attributes #5 = { builtin nounwind }
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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 16}
!10 = !{!"_ZTS12ImageContent", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.unroll.disable"}
!17 = distinct !{!17, !18, !19, !20}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!"llvm.loop.isvectorized", i32 1}
!20 = !{!"llvm.loop.unroll.runtime.disable"}
!21 = distinct !{!21, !18}
!22 = distinct !{!22, !18, !19}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass