; LLVM IR from ljm941004/HYPERCV_PUBLIC :: modules/process/src/c_src (GeometricTransformation)

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

@.str = external hidden unnamed_addr constant [8 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [20 x i8], align 1

declare i32 @printf(ptr noundef, ...) #0

; Function Attrs: noreturn nounwind
declare void @exit(i32 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2

; Function Attrs: nounwind uwtable
define dso_local void @hypercv_pyramid_down(ptr noundef %0, ptr noundef %1) #3 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %18 = load ptr, ptr %3, align 8, !tbaa !5
  %19 = icmp ne ptr %18, null
  br i1 %19, label %20, label %21

20:                                               ; preds = %2
  br label %25

21:                                               ; preds = %2
  %22 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  %23 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  %24 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  call void @exit(i32 noundef 1) #4
  unreachable

25:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  %26 = load ptr, ptr %3, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.SIMPLE_MAT, ptr %26, i32 0, i32 0
  %28 = load i32, ptr %27, align 8, !tbaa !9
  store i32 %28, ptr %5, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  %29 = load ptr, ptr %3, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.SIMPLE_MAT, ptr %29, i32 0, i32 1
  %31 = load i32, ptr %30, align 4, !tbaa !13
  store i32 %31, ptr %6, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %32 = load ptr, ptr %3, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.SIMPLE_MAT, ptr %32, i32 0, i32 2
  %34 = load i32, ptr %33, align 8, !tbaa !14
  store i32 %34, ptr %7, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %35 = load ptr, ptr %3, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.SIMPLE_MAT, ptr %35, i32 0, i32 3
  %37 = load i32, ptr %36, align 4, !tbaa !15
  store i32 %37, ptr %8, align 4, !tbaa !12
  %38 = load i32, ptr %5, align 4, !tbaa !12
  %39 = icmp sge i32 %38, 2
  br i1 %39, label %40, label %44

40:                                               ; preds = %25
  %41 = load i32, ptr %6, align 4, !tbaa !12
  %42 = icmp sge i32 %41, 2
  br i1 %42, label %43, label %44

43:                                               ; preds = %40
  br label %48

44:                                               ; preds = %40, %25
  %45 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  %46 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  %47 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  call void @exit(i32 noundef 1) #4
  unreachable

48:                                               ; preds = %43
  %49 = load ptr, ptr %4, align 8, !tbaa !5
  %50 = icmp ne ptr %49, null
  br i1 %50, label %51, label %52

51:                                               ; preds = %48
  br label %56

52:                                               ; preds = %48
  %53 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  %54 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  %55 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  call void @exit(i32 noundef 1) #4
  unreachable

56:                                               ; preds = %51
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.SIMPLE_MAT, ptr %57, i32 0, i32 0
  %59 = load i32, ptr %58, align 8, !tbaa !9
  %60 = load i32, ptr %5, align 4, !tbaa !12
  %61 = add nsw i32 %60, 1
  %62 = sdiv i32 %61, 2
  %63 = icmp eq i32 %59, %62
  br i1 %63, label %64, label %73

64:                                               ; preds = %56
  %65 = load ptr, ptr %4, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.SIMPLE_MAT, ptr %65, i32 0, i32 1
  %67 = load i32, ptr %66, align 4, !tbaa !13
  %68 = load i32, ptr %6, align 4, !tbaa !12
  %69 = add nsw i32 %68, 1
  %70 = sdiv i32 %69, 2
  %71 = icmp eq i32 %67, %70
  br i1 %71, label %72, label %73

72:                                               ; preds = %64
  br label %77

73:                                               ; preds = %64, %56
  %74 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  %75 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  %76 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  call void @exit(i32 noundef 1) #4
  unreachable

77:                                               ; preds = %72
  %78 = load ptr, ptr %4, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.SIMPLE_MAT, ptr %78, i32 0, i32 2
  %80 = load i32, ptr %79, align 8, !tbaa !14
  %81 = load ptr, ptr %3, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.SIMPLE_MAT, ptr %81, i32 0, i32 2
  %83 = load i32, ptr %82, align 8, !tbaa !14
  %84 = icmp eq i32 %80, %83
  br i1 %84, label %85, label %86

85:                                               ; preds = %77
  br label %90

86:                                               ; preds = %77
  %87 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  %88 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  %89 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  call void @exit(i32 noundef 1) #4
  unreachable

90:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %91 = load i32, ptr %5, align 4, !tbaa !12
  %92 = load i32, ptr %6, align 4, !tbaa !12
  %93 = load i32, ptr %7, align 4, !tbaa !12
  %94 = load i32, ptr %8, align 4, !tbaa !12
  %95 = call ptr @create_simple_mat(i32 noundef %91, i32 noundef %92, i32 noundef %93, i32 noundef %94)
  store ptr %95, ptr %9, align 8, !tbaa !5
  %96 = load ptr, ptr %3, align 8, !tbaa !5
  %97 = load ptr, ptr %9, align 8, !tbaa !5
  call void @hypercv_gaussian_blur(ptr noundef %96, ptr noundef %97, i32 noundef 5, i32 noundef 5, double noundef 0.000000e+00, double noundef 0.000000e+00, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %98 = load ptr, ptr %4, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.SIMPLE_MAT, ptr %98, i32 0, i32 0
  %100 = load i32, ptr %99, align 8, !tbaa !9
  store i32 %100, ptr %10, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %101 = load ptr, ptr %4, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.SIMPLE_MAT, ptr %101, i32 0, i32 1
  %103 = load i32, ptr %102, align 4, !tbaa !13
  store i32 %103, ptr %11, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %104 = load ptr, ptr %4, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.SIMPLE_MAT, ptr %104, i32 0, i32 5
  %106 = load ptr, ptr %105, align 8, !tbaa !16
  store ptr %106, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %107 = load ptr, ptr %9, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.SIMPLE_MAT, ptr %107, i32 0, i32 5
  %109 = load ptr, ptr %108, align 8, !tbaa !16
  store ptr %109, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 0, ptr %14, align 4, !tbaa !12
  br label %110

110:                                              ; preds = %169, %90
  %111 = load i32, ptr %14, align 4, !tbaa !12
  %112 = load i32, ptr %10, align 4, !tbaa !12
  %113 = icmp slt i32 %111, %112
  br i1 %113, label %115, label %114

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

115:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store i32 0, ptr %16, align 4, !tbaa !12
  br label %116

116:                                              ; preds = %165, %115
  %117 = load i32, ptr %16, align 4, !tbaa !12
  %118 = load i32, ptr %11, align 4, !tbaa !12
  %119 = icmp slt i32 %117, %118
  br i1 %119, label %121, label %120

120:                                              ; preds = %116
  store i32 5, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %168

121:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  store i32 0, ptr %17, align 4, !tbaa !12
  br label %122

122:                                              ; preds = %161, %121
  %123 = load i32, ptr %17, align 4, !tbaa !12
  %124 = load i32, ptr %8, align 4, !tbaa !12
  %125 = icmp slt i32 %123, %124
  br i1 %125, label %127, label %126

126:                                              ; preds = %122
  store i32 8, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %164

127:                                              ; preds = %122
  %128 = load ptr, ptr %13, align 8, !tbaa !5
  %129 = load i32, ptr %14, align 4, !tbaa !12
  %130 = mul nsw i32 2, %129
  %131 = load ptr, ptr %3, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.SIMPLE_MAT, ptr %131, i32 0, i32 1
  %133 = load i32, ptr %132, align 4, !tbaa !13
  %134 = mul nsw i32 %130, %133
  %135 = load i32, ptr %8, align 4, !tbaa !12
  %136 = mul nsw i32 %134, %135
  %137 = load i32, ptr %16, align 4, !tbaa !12
  %138 = mul nsw i32 2, %137
  %139 = load i32, ptr %8, align 4, !tbaa !12
  %140 = mul nsw i32 %138, %139
  %141 = add nsw i32 %136, %140
  %142 = load i32, ptr %17, align 4, !tbaa !12
  %143 = add nsw i32 %141, %142
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds i8, ptr %128, i64 %144
  %146 = load i8, ptr %145, align 1, !tbaa !17
  %147 = load ptr, ptr %12, align 8, !tbaa !5
  %148 = load i32, ptr %14, align 4, !tbaa !12
  %149 = load i32, ptr %11, align 4, !tbaa !12
  %150 = mul nsw i32 %148, %149
  %151 = load i32, ptr %8, align 4, !tbaa !12
  %152 = mul nsw i32 %150, %151
  %153 = load i32, ptr %16, align 4, !tbaa !12
  %154 = load i32, ptr %8, align 4, !tbaa !12
  %155 = mul nsw i32 %153, %154
  %156 = add nsw i32 %152, %155
  %157 = load i32, ptr %17, align 4, !tbaa !12
  %158 = add nsw i32 %156, %157
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds i8, ptr %147, i64 %159
  store i8 %146, ptr %160, align 1, !tbaa !17
  br label %161

161:                                              ; preds = %127
  %162 = load i32, ptr %17, align 4, !tbaa !12
  %163 = add nsw i32 %162, 1
  store i32 %163, ptr %17, align 4, !tbaa !12
  br label %122, !llvm.loop !18

164:                                              ; preds = %126
  br label %165

165:                                              ; preds = %164
  %166 = load i32, ptr %16, align 4, !tbaa !12
  %167 = add nsw i32 %166, 1
  store i32 %167, ptr %16, align 4, !tbaa !12
  br label %116, !llvm.loop !20

168:                                              ; preds = %120
  br label %169

169:                                              ; preds = %168
  %170 = load i32, ptr %14, align 4, !tbaa !12
  %171 = add nsw i32 %170, 1
  store i32 %171, ptr %14, align 4, !tbaa !12
  br label %110, !llvm.loop !21

172:                                              ; preds = %114
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  ret void
}

declare ptr @create_simple_mat(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #0

declare void @hypercv_gaussian_blur(ptr noundef, ptr noundef, i32 noundef, i32 noundef, double noundef, double noundef, i32 noundef) #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 = { noreturn 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 = { noreturn nounwind }
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/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !6, i64 24}
!11 = !{!"int", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!10, !11, i64 4}
!14 = !{!10, !11, i64 8}
!15 = !{!10, !11, i64 12}
!16 = !{!10, !6, i64 24}
!17 = !{!7, !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = distinct !{!21, !19}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str = external hidden unnamed_addr constant [8 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [20 x i8], align 1

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #0

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @hypercv_pyramid_down(ptr noundef %0, ptr noundef readonly %1) local_unnamed_addr #2 {
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %3, label %7

3:                                                ; preds = %2
  %4 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %5 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  %6 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  tail call void @exit(i32 noundef 1) #4
  unreachable

7:                                                ; preds = %2
  %8 = load i32, ptr %0, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %0, i64 4
  %10 = load i32, ptr %9, align 4, !tbaa !11
  %11 = getelementptr inbounds i8, ptr %0, i64 8
  %12 = load i32, ptr %11, align 8, !tbaa !12
  %13 = getelementptr inbounds i8, ptr %0, i64 12
  %14 = load i32, ptr %13, align 4, !tbaa !13
  %15 = icmp sgt i32 %8, 1
  %16 = icmp sgt i32 %10, 1
  %or.cond = select i1 %15, i1 %16, i1 false
  br i1 %or.cond, label %21, label %17

17:                                               ; preds = %7
  %18 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %19 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %20 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  tail call void @exit(i32 noundef 1) #4
  unreachable

21:                                               ; preds = %7
  %.not56 = icmp eq ptr %1, null
  br i1 %.not56, label %22, label %26

22:                                               ; preds = %21
  %23 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %24 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  %25 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  tail call void @exit(i32 noundef 1) #4
  unreachable

26:                                               ; preds = %21
  %27 = load i32, ptr %1, align 8, !tbaa !5
  %28 = add nuw nsw i32 %8, 1
  %29 = lshr i32 %28, 1
  %30 = icmp eq i32 %27, %29
  br i1 %30, label %31, label %37

31:                                               ; preds = %26
  %32 = getelementptr inbounds i8, ptr %1, i64 4
  %33 = load i32, ptr %32, align 4, !tbaa !11
  %34 = add nuw nsw i32 %10, 1
  %35 = lshr i32 %34, 1
  %36 = icmp eq i32 %33, %35
  br i1 %36, label %41, label %37

37:                                               ; preds = %31, %26
  %38 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %39 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  %40 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  tail call void @exit(i32 noundef 1) #4
  unreachable

41:                                               ; preds = %31
  %42 = getelementptr inbounds i8, ptr %1, i64 8
  %43 = load i32, ptr %42, align 8, !tbaa !12
  %44 = icmp eq i32 %43, %12
  br i1 %44, label %49, label %45

45:                                               ; preds = %41
  %46 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %47 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8)
  %48 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  tail call void @exit(i32 noundef 1) #4
  unreachable

49:                                               ; preds = %41
  %50 = tail call ptr @create_simple_mat(i32 noundef %8, i32 noundef %10, i32 noundef %12, i32 noundef %14) #5
  tail call void @hypercv_gaussian_blur(ptr noundef nonnull %0, ptr noundef %50, i32 noundef 5, i32 noundef 5, double noundef 0.000000e+00, double noundef 0.000000e+00, i32 noundef 1) #5
  %51 = load i32, ptr %1, align 8, !tbaa !5
  %52 = load i32, ptr %32, align 4, !tbaa !11
  %53 = getelementptr inbounds i8, ptr %1, i64 24
  %54 = load ptr, ptr %53, align 8, !tbaa !14
  %55 = getelementptr inbounds i8, ptr %50, i64 24
  %56 = load ptr, ptr %55, align 8, !tbaa !14
  %57 = icmp sgt i32 %51, 0
  br i1 %57, label %.preheader57.lr.ph, label %._crit_edge

.preheader57.lr.ph:                               ; preds = %49
  %58 = icmp sgt i32 %52, 0
  %reass.mul = shl i32 %14, 1
  %59 = icmp sgt i32 %14, 0
  %or.cond80 = select i1 %58, i1 %59, i1 false
  br i1 %or.cond80, label %.preheader57.us.us.preheader, label %._crit_edge

.preheader57.us.us.preheader:                     ; preds = %.preheader57.lr.ph
  %60 = zext nneg i32 %52 to i64
  %wide.trip.count78 = zext nneg i32 %51 to i64
  %wide.trip.count = zext nneg i32 %14 to i64
  %xtraiter = and i64 %wide.trip.count, 1
  %61 = icmp eq i32 %14, 1
  %unroll_iter = and i64 %wide.trip.count, 2147483646
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader57.us.us

.preheader57.us.us:                               ; preds = %.preheader57.us.us.preheader, %._crit_edge60.split.us.us.us
  %indvars.iv75 = phi i64 [ 0, %.preheader57.us.us.preheader ], [ %indvars.iv.next76, %._crit_edge60.split.us.us.us ]
  %62 = mul nuw nsw i64 %indvars.iv75, %60
  %63 = trunc nuw nsw i64 %indvars.iv75 to i32
  br label %.preheader.us.us.us

.preheader.us.us.us:                              ; preds = %._crit_edge.us.us.us, %.preheader57.us.us
  %indvars.iv70 = phi i64 [ %indvars.iv.next71, %._crit_edge.us.us.us ], [ 0, %.preheader57.us.us ]
  %64 = add nuw nsw i64 %indvars.iv70, %62
  %65 = trunc nuw i64 %64 to i32
  %66 = mul i32 %14, %65
  %67 = sext i32 %66 to i64
  %68 = trunc nuw nsw i64 %indvars.iv70 to i32
  %invariant.gep = getelementptr i8, ptr %54, i64 %67
  br i1 %61, label %._crit_edge.us.us.us.unr-lcssa, label %.preheader.us.us.us.new

.preheader.us.us.us.new:                          ; preds = %.preheader.us.us.us, %.preheader.us.us.us.new
  %indvars.iv = phi i64 [ %indvars.iv.next.1, %.preheader.us.us.us.new ], [ 0, %.preheader.us.us.us ]
  %niter = phi i64 [ %niter.next.1, %.preheader.us.us.us.new ], [ 0, %.preheader.us.us.us ]
  %69 = load i32, ptr %9, align 4, !tbaa !11
  %70 = mul i32 %69, %63
  %reass.add.us.us.us = add i32 %70, %68
  %71 = mul i32 %reass.mul, %reass.add.us.us.us
  %72 = sext i32 %71 to i64
  %73 = getelementptr i8, ptr %56, i64 %indvars.iv
  %74 = getelementptr i8, ptr %73, i64 %72
  %75 = load i8, ptr %74, align 1, !tbaa !15
  %gep = getelementptr i8, ptr %invariant.gep, i64 %indvars.iv
  store i8 %75, ptr %gep, align 1, !tbaa !15
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %76 = load i32, ptr %9, align 4, !tbaa !11
  %77 = mul i32 %76, %63
  %reass.add.us.us.us.1 = add i32 %77, %68
  %78 = mul i32 %reass.mul, %reass.add.us.us.us.1
  %79 = sext i32 %78 to i64
  %80 = getelementptr i8, ptr %56, i64 %indvars.iv.next
  %81 = getelementptr i8, ptr %80, i64 %79
  %82 = load i8, ptr %81, align 1, !tbaa !15
  %gep.1 = getelementptr i8, ptr %invariant.gep, i64 %indvars.iv.next
  store i8 %82, ptr %gep.1, align 1, !tbaa !15
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.us.us.us.unr-lcssa, label %.preheader.us.us.us.new, !llvm.loop !16

._crit_edge.us.us.us.unr-lcssa:                   ; preds = %.preheader.us.us.us.new, %.preheader.us.us.us
  %indvars.iv.unr = phi i64 [ 0, %.preheader.us.us.us ], [ %indvars.iv.next.1, %.preheader.us.us.us.new ]
  br i1 %lcmp.mod.not, label %._crit_edge.us.us.us, label %._crit_edge.us.us.us.epilog-lcssa

._crit_edge.us.us.us.epilog-lcssa:                ; preds = %._crit_edge.us.us.us.unr-lcssa
  %83 = load i32, ptr %9, align 4, !tbaa !11
  %84 = mul i32 %83, %63
  %reass.add.us.us.us.epil = add i32 %84, %68
  %85 = mul i32 %reass.mul, %reass.add.us.us.us.epil
  %86 = sext i32 %85 to i64
  %87 = getelementptr i8, ptr %56, i64 %indvars.iv.unr
  %88 = getelementptr i8, ptr %87, i64 %86
  %89 = load i8, ptr %88, align 1, !tbaa !15
  %gep.epil = getelementptr i8, ptr %invariant.gep, i64 %indvars.iv.unr
  store i8 %89, ptr %gep.epil, align 1, !tbaa !15
  br label %._crit_edge.us.us.us

._crit_edge.us.us.us:                             ; preds = %._crit_edge.us.us.us.unr-lcssa, %._crit_edge.us.us.us.epilog-lcssa
  %indvars.iv.next71 = add nuw nsw i64 %indvars.iv70, 1
  %exitcond74.not = icmp eq i64 %indvars.iv.next71, %60
  br i1 %exitcond74.not, label %._crit_edge60.split.us.us.us, label %.preheader.us.us.us, !llvm.loop !18

._crit_edge60.split.us.us.us:                     ; preds = %._crit_edge.us.us.us
  %indvars.iv.next76 = add nuw nsw i64 %indvars.iv75, 1
  %exitcond79.not = icmp eq i64 %indvars.iv.next76, %wide.trip.count78
  br i1 %exitcond79.not, label %._crit_edge, label %.preheader57.us.us, !llvm.loop !19

._crit_edge:                                      ; preds = %._crit_edge60.split.us.us.us, %.preheader57.lr.ph, %49
  ret void
}

declare ptr @create_simple_mat(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

declare void @hypercv_gaussian_blur(ptr noundef, ptr noundef, i32 noundef, i32 noundef, double noundef, double noundef, i32 noundef) local_unnamed_addr #3

attributes #0 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { noreturn 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 #2 = { 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 #3 = { "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 = { noreturn nounwind }
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, !7, i64 0}
!6 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !10, i64 24}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 4}
!12 = !{!6, !7, i64 8}
!13 = !{!6, !7, i64 12}
!14 = !{!6, !10, i64 24}
!15 = !{!8, !8, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}


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