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

; 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.7 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [17 x i8], align 1
@__const.gaussian_kernel.temp1 = external hidden unnamed_addr constant [1 x float], align 4
@__const.gaussian_kernel.temp2 = external hidden unnamed_addr constant [3 x float], align 4
@__const.gaussian_kernel.temp3 = external hidden unnamed_addr constant [5 x float], align 16
@__const.gaussian_kernel.temp4 = external hidden unnamed_addr constant [7 x float], align 16

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 ptr @gaussian_kernel(i32 noundef %0, double noundef %1, i32 noundef %2) #3 {
  %4 = alloca i32, align 4
  %5 = alloca double, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca [1 x float], align 4
  %9 = alloca [3 x float], align 4
  %10 = alloca [5 x float], align 16
  %11 = alloca [7 x float], align 16
  %12 = alloca [4 x ptr], align 16
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca i32, align 4
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  store i32 %0, ptr %4, align 4, !tbaa !5
  store double %1, ptr %5, align 8, !tbaa !9
  store i32 %2, ptr %6, align 4, !tbaa !5
  %23 = load i32, ptr %4, align 4, !tbaa !5
  %24 = icmp sgt i32 %23, 0
  br i1 %24, label %25, label %26

25:                                               ; preds = %3
  br label %30

26:                                               ; preds = %3
  %27 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  %28 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  %29 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  call void @exit(i32 noundef 1) #7
  unreachable

30:                                               ; preds = %25
  %31 = load i32, ptr %6, align 4, !tbaa !5
  %32 = icmp eq i32 %31, 4
  br i1 %32, label %36, label %33

33:                                               ; preds = %30
  %34 = load i32, ptr %6, align 4, !tbaa !5
  %35 = icmp eq i32 %34, 5
  br i1 %35, label %36, label %37

36:                                               ; preds = %33, %30
  br label %41

37:                                               ; preds = %33
  %38 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  %39 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  %40 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  call void @exit(i32 noundef 1) #7
  unreachable

41:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  store i32 7, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %8, ptr align 4 @__const.gaussian_kernel.temp1, i64 4, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %9) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %9, ptr align 4 @__const.gaussian_kernel.temp2, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 20, ptr %10) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %10, ptr align 16 @__const.gaussian_kernel.temp3, i64 20, i1 false)
  call void @llvm.lifetime.start.p0(i64 28, ptr %11) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %11, ptr align 16 @__const.gaussian_kernel.temp4, i64 28, i1 false)
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #8
  %42 = getelementptr inbounds [1 x float], ptr %8, i64 0, i64 0
  %43 = getelementptr inbounds [4 x ptr], ptr %12, i64 0, i64 0
  store ptr %42, ptr %43, align 16, !tbaa !11
  %44 = getelementptr inbounds [3 x float], ptr %9, i64 0, i64 0
  %45 = getelementptr inbounds [4 x ptr], ptr %12, i64 0, i64 1
  store ptr %44, ptr %45, align 8, !tbaa !11
  %46 = getelementptr inbounds [5 x float], ptr %10, i64 0, i64 0
  %47 = getelementptr inbounds [4 x ptr], ptr %12, i64 0, i64 2
  store ptr %46, ptr %47, align 16, !tbaa !11
  %48 = getelementptr inbounds [7 x float], ptr %11, i64 0, i64 0
  %49 = getelementptr inbounds [4 x ptr], ptr %12, i64 0, i64 3
  store ptr %48, ptr %49, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %50 = load i32, ptr %4, align 4, !tbaa !5
  %51 = srem i32 %50, 2
  %52 = icmp eq i32 %51, 1
  br i1 %52, label %53, label %65

53:                                               ; preds = %41
  %54 = load i32, ptr %4, align 4, !tbaa !5
  %55 = icmp sle i32 %54, 7
  br i1 %55, label %56, label %65

56:                                               ; preds = %53
  %57 = load double, ptr %5, align 8, !tbaa !9
  %58 = fcmp ole double %57, 0.000000e+00
  br i1 %58, label %59, label %65

59:                                               ; preds = %56
  %60 = load i32, ptr %4, align 4, !tbaa !5
  %61 = sdiv i32 %60, 2
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [4 x ptr], ptr %12, i64 0, i64 %62
  %64 = load ptr, ptr %63, align 8, !tbaa !11
  br label %66

65:                                               ; preds = %56, %53, %41
  br label %66

66:                                               ; preds = %65, %59
  %67 = phi ptr [ %64, %59 ], [ null, %65 ]
  store ptr %67, ptr %13, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %68 = load i32, ptr %4, align 4, !tbaa !5
  %69 = load i32, ptr %6, align 4, !tbaa !5
  %70 = call ptr @create_simple_mat(i32 noundef 1, i32 noundef %68, i32 noundef %69, i32 noundef 1)
  store ptr %70, ptr %14, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %71 = load ptr, ptr %14, align 8, !tbaa !11
  %72 = getelementptr inbounds %struct.SIMPLE_MAT, ptr %71, i32 0, i32 5
  %73 = load ptr, ptr %72, align 8, !tbaa !13
  store ptr %73, ptr %15, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %74 = load ptr, ptr %14, align 8, !tbaa !11
  %75 = getelementptr inbounds %struct.SIMPLE_MAT, ptr %74, i32 0, i32 5
  %76 = load ptr, ptr %75, align 8, !tbaa !13
  store ptr %76, ptr %16, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %77 = load double, ptr %5, align 8, !tbaa !9
  %78 = fcmp ogt double %77, 0.000000e+00
  br i1 %78, label %79, label %81

79:                                               ; preds = %66
  %80 = load double, ptr %5, align 8, !tbaa !9
  br label %87

81:                                               ; preds = %66
  %82 = load i32, ptr %4, align 4, !tbaa !5
  %83 = sub nsw i32 %82, 1
  %84 = sitofp i32 %83 to double
  %85 = call double @llvm.fmuladd.f64(double %84, double 5.000000e-01, double -1.000000e+00)
  %86 = call double @llvm.fmuladd.f64(double %85, double 3.000000e-01, double 8.000000e-01)
  br label %87

87:                                               ; preds = %81, %79
  %88 = phi double [ %80, %79 ], [ %86, %81 ]
  store double %88, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %89 = load double, ptr %17, align 8, !tbaa !9
  %90 = load double, ptr %17, align 8, !tbaa !9
  %91 = fmul double %89, %90
  %92 = fdiv double -5.000000e-01, %91
  store double %92, ptr %18, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  store double 0.000000e+00, ptr %19, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  store i32 0, ptr %20, align 4, !tbaa !5
  br label %93

93:                                               ; preds = %154, %87
  %94 = load i32, ptr %20, align 4, !tbaa !5
  %95 = load i32, ptr %4, align 4, !tbaa !5
  %96 = icmp slt i32 %94, %95
  br i1 %96, label %97, label %157

97:                                               ; preds = %93
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %98 = load i32, ptr %20, align 4, !tbaa !5
  %99 = sitofp i32 %98 to double
  %100 = load i32, ptr %4, align 4, !tbaa !5
  %101 = sub nsw i32 %100, 1
  %102 = sitofp i32 %101 to double
  %103 = fneg double %102
  %104 = call double @llvm.fmuladd.f64(double %103, double 5.000000e-01, double %99)
  store double %104, ptr %21, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %105 = load ptr, ptr %13, align 8, !tbaa !11
  %106 = icmp ne ptr %105, null
  br i1 %106, label %107, label %114

107:                                              ; preds = %97
  %108 = load ptr, ptr %13, align 8, !tbaa !11
  %109 = load i32, ptr %20, align 4, !tbaa !5
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds float, ptr %108, i64 %110
  %112 = load float, ptr %111, align 4, !tbaa !15
  %113 = fpext float %112 to double
  br label %121

114:                                              ; preds = %97
  %115 = load double, ptr %18, align 8, !tbaa !9
  %116 = load double, ptr %21, align 8, !tbaa !9
  %117 = fmul double %115, %116
  %118 = load double, ptr %21, align 8, !tbaa !9
  %119 = fmul double %117, %118
  %120 = call double @exp(double noundef %119) #8
  br label %121

121:                                              ; preds = %114, %107
  %122 = phi double [ %113, %107 ], [ %120, %114 ]
  store double %122, ptr %22, align 8, !tbaa !9
  %123 = load i32, ptr %6, align 4, !tbaa !5
  %124 = icmp eq i32 %123, 4
  br i1 %124, label %125, label %140

125:                                              ; preds = %121
  %126 = load double, ptr %22, align 8, !tbaa !9
  %127 = fptrunc double %126 to float
  %128 = load ptr, ptr %15, align 8, !tbaa !11
  %129 = load i32, ptr %20, align 4, !tbaa !5
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds float, ptr %128, i64 %130
  store float %127, ptr %131, align 4, !tbaa !15
  %132 = load ptr, ptr %15, align 8, !tbaa !11
  %133 = load i32, ptr %20, align 4, !tbaa !5
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds float, ptr %132, i64 %134
  %136 = load float, ptr %135, align 4, !tbaa !15
  %137 = fpext float %136 to double
  %138 = load double, ptr %19, align 8, !tbaa !9
  %139 = fadd double %138, %137
  store double %139, ptr %19, align 8, !tbaa !9
  br label %153

140:                                              ; preds = %121
  %141 = load double, ptr %22, align 8, !tbaa !9
  %142 = load ptr, ptr %16, align 8, !tbaa !11
  %143 = load i32, ptr %20, align 4, !tbaa !5
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds double, ptr %142, i64 %144
  store double %141, ptr %145, align 8, !tbaa !9
  %146 = load ptr, ptr %16, align 8, !tbaa !11
  %147 = load i32, ptr %20, align 4, !tbaa !5
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds double, ptr %146, i64 %148
  %150 = load double, ptr %149, align 8, !tbaa !9
  %151 = load double, ptr %19, align 8, !tbaa !9
  %152 = fadd double %151, %150
  store double %152, ptr %19, align 8, !tbaa !9
  br label %153

153:                                              ; preds = %140, %125
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  br label %154

154:                                              ; preds = %153
  %155 = load i32, ptr %20, align 4, !tbaa !5
  %156 = add nsw i32 %155, 1
  store i32 %156, ptr %20, align 4, !tbaa !5
  br label %93, !llvm.loop !17

157:                                              ; preds = %93
  %158 = load double, ptr %19, align 8, !tbaa !9
  %159 = fdiv double 1.000000e+00, %158
  store double %159, ptr %19, align 8, !tbaa !9
  store i32 0, ptr %20, align 4, !tbaa !5
  br label %160

160:                                              ; preds = %190, %157
  %161 = load i32, ptr %20, align 4, !tbaa !5
  %162 = load i32, ptr %4, align 4, !tbaa !5
  %163 = icmp slt i32 %161, %162
  br i1 %163, label %164, label %193

164:                                              ; preds = %160
  %165 = load i32, ptr %6, align 4, !tbaa !5
  %166 = icmp eq i32 %165, 4
  br i1 %166, label %167, label %181

167:                                              ; preds = %164
  %168 = load ptr, ptr %15, align 8, !tbaa !11
  %169 = load i32, ptr %20, align 4, !tbaa !5
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds float, ptr %168, i64 %170
  %172 = load float, ptr %171, align 4, !tbaa !15
  %173 = fpext float %172 to double
  %174 = load double, ptr %19, align 8, !tbaa !9
  %175 = fmul double %173, %174
  %176 = fptrunc double %175 to float
  %177 = load ptr, ptr %15, align 8, !tbaa !11
  %178 = load i32, ptr %20, align 4, !tbaa !5
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds float, ptr %177, i64 %179
  store float %176, ptr %180, align 4, !tbaa !15
  br label %189

181:                                              ; preds = %164
  %182 = load double, ptr %19, align 8, !tbaa !9
  %183 = load ptr, ptr %16, align 8, !tbaa !11
  %184 = load i32, ptr %20, align 4, !tbaa !5
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds double, ptr %183, i64 %185
  %187 = load double, ptr %186, align 8, !tbaa !9
  %188 = fmul double %187, %182
  store double %188, ptr %186, align 8, !tbaa !9
  br label %189

189:                                              ; preds = %181, %167
  br label %190

190:                                              ; preds = %189
  %191 = load i32, ptr %20, align 4, !tbaa !5
  %192 = add nsw i32 %191, 1
  store i32 %192, ptr %20, align 4, !tbaa !5
  br label %160, !llvm.loop !19

193:                                              ; preds = %160
  %194 = load ptr, ptr %14, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 28, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 20, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  ret ptr %194
}

; 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) #4

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

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

; Function Attrs: nounwind
declare double @exp(double noundef) #6

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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 #7 = { noreturn nounwind }
attributes #8 = { 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !12, i64 24}
!14 = !{!"", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !12, i64 24}
!15 = !{!16, !16, i64 0}
!16 = !{!"float", !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}


; 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.7 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [17 x i8], align 1
@__const.gaussian_kernel.temp1 = external hidden unnamed_addr constant [1 x float], align 4
@__const.gaussian_kernel.temp2 = external hidden unnamed_addr constant [3 x float], align 4
@__const.gaussian_kernel.temp3 = external hidden unnamed_addr constant [5 x float], align 16
@__const.gaussian_kernel.temp4 = external hidden unnamed_addr constant [7 x float], align 16

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

; Function Attrs: mustprogress 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 ptr @gaussian_kernel(i32 noundef %0, double noundef %1, i32 noundef %2) local_unnamed_addr #3 {
  %4 = alloca [1 x float], align 4
  %5 = alloca [3 x float], align 4
  %6 = alloca [5 x float], align 16
  %7 = alloca [7 x float], align 16
  %8 = alloca [4 x ptr], align 16
  %9 = icmp sgt i32 %0, 0
  br i1 %9, label %14, label %10

10:                                               ; preds = %3
  %11 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %12 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  %13 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  tail call void @exit(i32 noundef 1) #9
  unreachable

14:                                               ; preds = %3
  %15 = icmp eq i32 %2, 4
  %16 = and i32 %2, -2
  %or.cond = icmp eq i32 %16, 4
  br i1 %or.cond, label %21, label %17

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

21:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #10
  %22 = load i32, ptr @__const.gaussian_kernel.temp1, align 4
  store i32 %22, ptr %4, align 4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #10
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(12) @__const.gaussian_kernel.temp2, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %6) #10
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(20) %6, ptr noundef nonnull align 16 dereferenceable(20) @__const.gaussian_kernel.temp3, i64 20, i1 false)
  call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %7) #10
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(28) %7, ptr noundef nonnull align 16 dereferenceable(28) @__const.gaussian_kernel.temp4, i64 28, i1 false)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #10
  store ptr %4, ptr %8, align 16, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %8, i64 8
  store ptr %5, ptr %23, align 8, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %8, i64 16
  store ptr %6, ptr %24, align 16, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %8, i64 24
  store ptr %7, ptr %25, align 8, !tbaa !5
  %26 = and i32 %0, 2147483641
  %or.cond3 = icmp eq i32 %26, 1
  %27 = fcmp ole double %1, 0.000000e+00
  %or.cond5 = and i1 %or.cond3, %27
  br i1 %or.cond5, label %28, label %33

28:                                               ; preds = %21
  %29 = lshr i32 %0, 1
  %30 = zext nneg i32 %29 to i64
  %31 = getelementptr inbounds [4 x ptr], ptr %8, i64 0, i64 %30
  %32 = load ptr, ptr %31, align 8, !tbaa !5
  br label %33

33:                                               ; preds = %21, %28
  %34 = phi ptr [ %32, %28 ], [ null, %21 ]
  %35 = call ptr @create_simple_mat(i32 noundef 1, i32 noundef %0, i32 noundef %2, i32 noundef 1) #10
  %36 = getelementptr inbounds i8, ptr %35, i64 24
  %37 = load ptr, ptr %36, align 8, !tbaa !9
  %38 = fcmp ogt double %1, 0.000000e+00
  br i1 %38, label %.lr.ph, label %39

39:                                               ; preds = %33
  %40 = add nsw i32 %0, -1
  %41 = uitofp nneg i32 %40 to double
  %42 = call double @llvm.fmuladd.f64(double %41, double 5.000000e-01, double -1.000000e+00)
  %43 = call double @llvm.fmuladd.f64(double %42, double 3.000000e-01, double 8.000000e-01)
  br label %.lr.ph

.lr.ph:                                           ; preds = %39, %33
  %44 = phi double [ %43, %39 ], [ %1, %33 ]
  %45 = fmul double %44, %44
  %46 = fdiv double -5.000000e-01, %45
  %.not = icmp eq ptr %34, null
  %47 = add nsw i32 %0, -1
  %48 = uitofp nneg i32 %47 to double
  %49 = fneg double %48
  %wide.trip.count97 = zext nneg i32 %0 to i64
  br i1 %.not, label %.lr.ph.split.us, label %.lr.ph.split

.lr.ph.split.us:                                  ; preds = %.lr.ph
  br i1 %15, label %.lr.ph.split.us.split.us, label %.lr.ph.split.us.split

.lr.ph.split.us.split.us:                         ; preds = %.lr.ph.split.us, %.lr.ph.split.us.split.us
  %indvars.iv93 = phi i64 [ %indvars.iv.next94, %.lr.ph.split.us.split.us ], [ 0, %.lr.ph.split.us ]
  %.064.us.us = phi double [ %.1.us.us, %.lr.ph.split.us.split.us ], [ 0.000000e+00, %.lr.ph.split.us ]
  %50 = trunc nuw nsw i64 %indvars.iv93 to i32
  %51 = uitofp nneg i32 %50 to double
  %52 = call double @llvm.fmuladd.f64(double %49, double 5.000000e-01, double %51)
  %53 = fmul double %46, %52
  %54 = fmul double %52, %53
  %55 = call double @exp(double noundef %54) #10
  %56 = fptrunc double %55 to float
  %57 = getelementptr inbounds float, ptr %37, i64 %indvars.iv93
  store float %56, ptr %57, align 4, !tbaa !12
  %58 = fpext float %56 to double
  %.1.us.us = fadd double %.064.us.us, %58
  %indvars.iv.next94 = add nuw nsw i64 %indvars.iv93, 1
  %exitcond98.not = icmp eq i64 %indvars.iv.next94, %wide.trip.count97
  br i1 %exitcond98.not, label %.lr.ph74, label %.lr.ph.split.us.split.us, !llvm.loop !14

.lr.ph.split.us.split:                            ; preds = %.lr.ph.split.us, %.lr.ph.split.us.split
  %indvars.iv87 = phi i64 [ %indvars.iv.next88, %.lr.ph.split.us.split ], [ 0, %.lr.ph.split.us ]
  %.064.us = phi double [ %.1.us, %.lr.ph.split.us.split ], [ 0.000000e+00, %.lr.ph.split.us ]
  %59 = trunc nuw nsw i64 %indvars.iv87 to i32
  %60 = uitofp nneg i32 %59 to double
  %61 = call double @llvm.fmuladd.f64(double %49, double 5.000000e-01, double %60)
  %62 = fmul double %46, %61
  %63 = fmul double %61, %62
  %64 = call double @exp(double noundef %63) #10
  %65 = getelementptr inbounds double, ptr %37, i64 %indvars.iv87
  store double %64, ptr %65, align 8, !tbaa !16
  %.1.us = fadd double %.064.us, %64
  %indvars.iv.next88 = add nuw nsw i64 %indvars.iv87, 1
  %exitcond92.not = icmp eq i64 %indvars.iv.next88, %wide.trip.count97
  br i1 %exitcond92.not, label %.lr.ph74, label %.lr.ph.split.us.split, !llvm.loop !14

.lr.ph.split:                                     ; preds = %.lr.ph
  br i1 %15, label %.lr.ph.split.split.us.preheader, label %.lr.ph.split.split.preheader

.lr.ph.split.split.preheader:                     ; preds = %.lr.ph.split
  %xtraiter = and i64 %wide.trip.count97, 3
  %66 = icmp ult i32 %0, 4
  br i1 %66, label %.lr.ph74.loopexit140.unr-lcssa, label %.lr.ph.split.split.preheader.new

.lr.ph.split.split.preheader.new:                 ; preds = %.lr.ph.split.split.preheader
  %unroll_iter = and i64 %wide.trip.count97, 2147483644
  br label %.lr.ph.split.split

.lr.ph.split.split.us.preheader:                  ; preds = %.lr.ph.split
  %xtraiter142 = and i64 %wide.trip.count97, 3
  %67 = icmp ult i32 %0, 4
  br i1 %67, label %.lr.ph74.loopexit139.unr-lcssa, label %.lr.ph.split.split.us.preheader.new

.lr.ph.split.split.us.preheader.new:              ; preds = %.lr.ph.split.split.us.preheader
  %unroll_iter146 = and i64 %wide.trip.count97, 2147483644
  br label %.lr.ph.split.split.us

.lr.ph.split.split.us:                            ; preds = %.lr.ph.split.split.us, %.lr.ph.split.split.us.preheader.new
  %indvars.iv81 = phi i64 [ 0, %.lr.ph.split.split.us.preheader.new ], [ %indvars.iv.next82.3, %.lr.ph.split.split.us ]
  %.064.us65 = phi double [ 0.000000e+00, %.lr.ph.split.split.us.preheader.new ], [ %.1.us68.3, %.lr.ph.split.split.us ]
  %niter147 = phi i64 [ 0, %.lr.ph.split.split.us.preheader.new ], [ %niter147.next.3, %.lr.ph.split.split.us ]
  %68 = getelementptr inbounds float, ptr %34, i64 %indvars.iv81
  %69 = load float, ptr %68, align 4, !tbaa !12
  %70 = getelementptr inbounds float, ptr %37, i64 %indvars.iv81
  store float %69, ptr %70, align 4, !tbaa !12
  %71 = fpext float %69 to double
  %.1.us68 = fadd double %.064.us65, %71
  %indvars.iv.next82 = or disjoint i64 %indvars.iv81, 1
  %72 = getelementptr inbounds float, ptr %34, i64 %indvars.iv.next82
  %73 = load float, ptr %72, align 4, !tbaa !12
  %74 = getelementptr inbounds float, ptr %37, i64 %indvars.iv.next82
  store float %73, ptr %74, align 4, !tbaa !12
  %75 = fpext float %73 to double
  %.1.us68.1 = fadd double %.1.us68, %75
  %indvars.iv.next82.1 = or disjoint i64 %indvars.iv81, 2
  %76 = getelementptr inbounds float, ptr %34, i64 %indvars.iv.next82.1
  %77 = load float, ptr %76, align 4, !tbaa !12
  %78 = getelementptr inbounds float, ptr %37, i64 %indvars.iv.next82.1
  store float %77, ptr %78, align 4, !tbaa !12
  %79 = fpext float %77 to double
  %.1.us68.2 = fadd double %.1.us68.1, %79
  %indvars.iv.next82.2 = or disjoint i64 %indvars.iv81, 3
  %80 = getelementptr inbounds float, ptr %34, i64 %indvars.iv.next82.2
  %81 = load float, ptr %80, align 4, !tbaa !12
  %82 = getelementptr inbounds float, ptr %37, i64 %indvars.iv.next82.2
  store float %81, ptr %82, align 4, !tbaa !12
  %83 = fpext float %81 to double
  %.1.us68.3 = fadd double %.1.us68.2, %83
  %indvars.iv.next82.3 = add nuw nsw i64 %indvars.iv81, 4
  %niter147.next.3 = add i64 %niter147, 4
  %niter147.ncmp.3 = icmp eq i64 %niter147.next.3, %unroll_iter146
  br i1 %niter147.ncmp.3, label %.lr.ph74.loopexit139.unr-lcssa, label %.lr.ph.split.split.us, !llvm.loop !14

.lr.ph.split.split:                               ; preds = %.lr.ph.split.split, %.lr.ph.split.split.preheader.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.split.split.preheader.new ], [ %indvars.iv.next.3, %.lr.ph.split.split ]
  %.064 = phi double [ 0.000000e+00, %.lr.ph.split.split.preheader.new ], [ %.1.3, %.lr.ph.split.split ]
  %niter = phi i64 [ 0, %.lr.ph.split.split.preheader.new ], [ %niter.next.3, %.lr.ph.split.split ]
  %84 = getelementptr inbounds float, ptr %34, i64 %indvars.iv
  %85 = load float, ptr %84, align 4, !tbaa !12
  %86 = fpext float %85 to double
  %87 = getelementptr inbounds double, ptr %37, i64 %indvars.iv
  store double %86, ptr %87, align 8, !tbaa !16
  %.1 = fadd double %.064, %86
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %88 = getelementptr inbounds float, ptr %34, i64 %indvars.iv.next
  %89 = load float, ptr %88, align 4, !tbaa !12
  %90 = fpext float %89 to double
  %91 = getelementptr inbounds double, ptr %37, i64 %indvars.iv.next
  store double %90, ptr %91, align 8, !tbaa !16
  %.1.1 = fadd double %.1, %90
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %92 = getelementptr inbounds float, ptr %34, i64 %indvars.iv.next.1
  %93 = load float, ptr %92, align 4, !tbaa !12
  %94 = fpext float %93 to double
  %95 = getelementptr inbounds double, ptr %37, i64 %indvars.iv.next.1
  store double %94, ptr %95, align 8, !tbaa !16
  %.1.2 = fadd double %.1.1, %94
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %96 = getelementptr inbounds float, ptr %34, i64 %indvars.iv.next.2
  %97 = load float, ptr %96, align 4, !tbaa !12
  %98 = fpext float %97 to double
  %99 = getelementptr inbounds double, ptr %37, i64 %indvars.iv.next.2
  store double %98, ptr %99, align 8, !tbaa !16
  %.1.3 = fadd double %.1.2, %98
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.lr.ph74.loopexit140.unr-lcssa, label %.lr.ph.split.split, !llvm.loop !14

.lr.ph74.loopexit139.unr-lcssa:                   ; preds = %.lr.ph.split.split.us, %.lr.ph.split.split.us.preheader
  %.1.us68.lcssa.ph = phi double [ poison, %.lr.ph.split.split.us.preheader ], [ %.1.us68.3, %.lr.ph.split.split.us ]
  %indvars.iv81.unr = phi i64 [ 0, %.lr.ph.split.split.us.preheader ], [ %indvars.iv.next82.3, %.lr.ph.split.split.us ]
  %.064.us65.unr = phi double [ 0.000000e+00, %.lr.ph.split.split.us.preheader ], [ %.1.us68.3, %.lr.ph.split.split.us ]
  %lcmp.mod144.not = icmp eq i64 %xtraiter142, 0
  br i1 %lcmp.mod144.not, label %.lr.ph74, label %.lr.ph.split.split.us.epil

.lr.ph.split.split.us.epil:                       ; preds = %.lr.ph74.loopexit139.unr-lcssa, %.lr.ph.split.split.us.epil
  %indvars.iv81.epil = phi i64 [ %indvars.iv.next82.epil, %.lr.ph.split.split.us.epil ], [ %indvars.iv81.unr, %.lr.ph74.loopexit139.unr-lcssa ]
  %.064.us65.epil = phi double [ %.1.us68.epil, %.lr.ph.split.split.us.epil ], [ %.064.us65.unr, %.lr.ph74.loopexit139.unr-lcssa ]
  %epil.iter143 = phi i64 [ %epil.iter143.next, %.lr.ph.split.split.us.epil ], [ 0, %.lr.ph74.loopexit139.unr-lcssa ]
  %100 = getelementptr inbounds float, ptr %34, i64 %indvars.iv81.epil
  %101 = load float, ptr %100, align 4, !tbaa !12
  %102 = getelementptr inbounds float, ptr %37, i64 %indvars.iv81.epil
  store float %101, ptr %102, align 4, !tbaa !12
  %103 = fpext float %101 to double
  %.1.us68.epil = fadd double %.064.us65.epil, %103
  %indvars.iv.next82.epil = add nuw nsw i64 %indvars.iv81.epil, 1
  %epil.iter143.next = add i64 %epil.iter143, 1
  %epil.iter143.cmp.not = icmp eq i64 %epil.iter143.next, %xtraiter142
  br i1 %epil.iter143.cmp.not, label %.lr.ph74, label %.lr.ph.split.split.us.epil, !llvm.loop !18

.lr.ph74.loopexit140.unr-lcssa:                   ; preds = %.lr.ph.split.split, %.lr.ph.split.split.preheader
  %.1.lcssa.ph = phi double [ poison, %.lr.ph.split.split.preheader ], [ %.1.3, %.lr.ph.split.split ]
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph.split.split.preheader ], [ %indvars.iv.next.3, %.lr.ph.split.split ]
  %.064.unr = phi double [ 0.000000e+00, %.lr.ph.split.split.preheader ], [ %.1.3, %.lr.ph.split.split ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph74, label %.lr.ph.split.split.epil

.lr.ph.split.split.epil:                          ; preds = %.lr.ph74.loopexit140.unr-lcssa, %.lr.ph.split.split.epil
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.lr.ph.split.split.epil ], [ %indvars.iv.unr, %.lr.ph74.loopexit140.unr-lcssa ]
  %.064.epil = phi double [ %.1.epil, %.lr.ph.split.split.epil ], [ %.064.unr, %.lr.ph74.loopexit140.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph.split.split.epil ], [ 0, %.lr.ph74.loopexit140.unr-lcssa ]
  %104 = getelementptr inbounds float, ptr %34, i64 %indvars.iv.epil
  %105 = load float, ptr %104, align 4, !tbaa !12
  %106 = fpext float %105 to double
  %107 = getelementptr inbounds double, ptr %37, i64 %indvars.iv.epil
  store double %106, ptr %107, align 8, !tbaa !16
  %.1.epil = fadd double %.064.epil, %106
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.lr.ph74, label %.lr.ph.split.split.epil, !llvm.loop !20

.lr.ph74:                                         ; preds = %.lr.ph74.loopexit140.unr-lcssa, %.lr.ph.split.split.epil, %.lr.ph74.loopexit139.unr-lcssa, %.lr.ph.split.split.us.epil, %.lr.ph.split.us.split, %.lr.ph.split.us.split.us
  %.0.lcssa = phi double [ %.1.us.us, %.lr.ph.split.us.split.us ], [ %.1.us, %.lr.ph.split.us.split ], [ %.1.us68.lcssa.ph, %.lr.ph74.loopexit139.unr-lcssa ], [ %.1.us68.epil, %.lr.ph.split.split.us.epil ], [ %.1.lcssa.ph, %.lr.ph74.loopexit140.unr-lcssa ], [ %.1.epil, %.lr.ph.split.split.epil ]
  %108 = fdiv double 1.000000e+00, %.0.lcssa
  %smax108 = call i32 @llvm.smax.i32(i32 %0, i32 1)
  %wide.trip.count109 = zext nneg i32 %smax108 to i64
  br i1 %15, label %.lr.ph74.split.us.preheader, label %.lr.ph74.split.preheader

.lr.ph74.split.preheader:                         ; preds = %.lr.ph74
  %min.iters.check = icmp slt i32 %0, 4
  br i1 %min.iters.check, label %.lr.ph74.split.preheader136, label %vector.ph

.lr.ph74.split.preheader136:                      ; preds = %middle.block, %.lr.ph74.split.preheader
  %indvars.iv99.ph = phi i64 [ 0, %.lr.ph74.split.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph74.split

vector.ph:                                        ; preds = %.lr.ph74.split.preheader
  %n.vec = and i64 %wide.trip.count109, 2147483644
  %broadcast.splatinsert = insertelement <2 x double> poison, double %108, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %109 = getelementptr inbounds double, ptr %37, i64 %index
  %110 = getelementptr inbounds i8, ptr %109, i64 16
  %wide.load = load <2 x double>, ptr %109, align 8, !tbaa !16
  %wide.load119 = load <2 x double>, ptr %110, align 8, !tbaa !16
  %111 = fmul <2 x double> %broadcast.splat, %wide.load
  %112 = fmul <2 x double> %broadcast.splat, %wide.load119
  store <2 x double> %111, ptr %109, align 8, !tbaa !16
  store <2 x double> %112, ptr %110, align 8, !tbaa !16
  %index.next = add nuw i64 %index, 4
  %113 = icmp eq i64 %index.next, %n.vec
  br i1 %113, label %middle.block, label %vector.body, !llvm.loop !21

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count109
  br i1 %cmp.n, label %._crit_edge75, label %.lr.ph74.split.preheader136

.lr.ph74.split.us.preheader:                      ; preds = %.lr.ph74
  %min.iters.check122 = icmp slt i32 %0, 8
  br i1 %min.iters.check122, label %.lr.ph74.split.us.preheader135, label %vector.ph123

vector.ph123:                                     ; preds = %.lr.ph74.split.us.preheader
  %n.vec125 = and i64 %wide.trip.count109, 2147483640
  %broadcast.splatinsert131 = insertelement <4 x double> poison, double %108, i64 0
  %broadcast.splat132 = shufflevector <4 x double> %broadcast.splatinsert131, <4 x double> poison, <4 x i32> zeroinitializer
  br label %vector.body127

vector.body127:                                   ; preds = %vector.body127, %vector.ph123
  %index128 = phi i64 [ 0, %vector.ph123 ], [ %index.next133, %vector.body127 ]
  %114 = getelementptr inbounds float, ptr %37, i64 %index128
  %115 = getelementptr inbounds i8, ptr %114, i64 16
  %wide.load129 = load <4 x float>, ptr %114, align 4, !tbaa !12
  %wide.load130 = load <4 x float>, ptr %115, align 4, !tbaa !12
  %116 = fpext <4 x float> %wide.load129 to <4 x double>
  %117 = fpext <4 x float> %wide.load130 to <4 x double>
  %118 = fmul <4 x double> %broadcast.splat132, %116
  %119 = fmul <4 x double> %broadcast.splat132, %117
  %120 = fptrunc <4 x double> %118 to <4 x float>
  %121 = fptrunc <4 x double> %119 to <4 x float>
  store <4 x float> %120, ptr %114, align 4, !tbaa !12
  store <4 x float> %121, ptr %115, align 4, !tbaa !12
  %index.next133 = add nuw i64 %index128, 8
  %122 = icmp eq i64 %index.next133, %n.vec125
  br i1 %122, label %middle.block120, label %vector.body127, !llvm.loop !24

middle.block120:                                  ; preds = %vector.body127
  %cmp.n134 = icmp eq i64 %n.vec125, %wide.trip.count109
  br i1 %cmp.n134, label %._crit_edge75, label %.lr.ph74.split.us.preheader135

.lr.ph74.split.us.preheader135:                   ; preds = %middle.block120, %.lr.ph74.split.us.preheader
  %indvars.iv105.ph = phi i64 [ 0, %.lr.ph74.split.us.preheader ], [ %n.vec125, %middle.block120 ]
  br label %.lr.ph74.split.us

.lr.ph74.split.us:                                ; preds = %.lr.ph74.split.us.preheader135, %.lr.ph74.split.us
  %indvars.iv105 = phi i64 [ %indvars.iv.next106, %.lr.ph74.split.us ], [ %indvars.iv105.ph, %.lr.ph74.split.us.preheader135 ]
  %123 = getelementptr inbounds float, ptr %37, i64 %indvars.iv105
  %124 = load float, ptr %123, align 4, !tbaa !12
  %125 = fpext float %124 to double
  %126 = fmul double %108, %125
  %127 = fptrunc double %126 to float
  store float %127, ptr %123, align 4, !tbaa !12
  %indvars.iv.next106 = add nuw nsw i64 %indvars.iv105, 1
  %exitcond110.not = icmp eq i64 %indvars.iv.next106, %wide.trip.count109
  br i1 %exitcond110.not, label %._crit_edge75, label %.lr.ph74.split.us, !llvm.loop !25

.lr.ph74.split:                                   ; preds = %.lr.ph74.split.preheader136, %.lr.ph74.split
  %indvars.iv99 = phi i64 [ %indvars.iv.next100, %.lr.ph74.split ], [ %indvars.iv99.ph, %.lr.ph74.split.preheader136 ]
  %128 = getelementptr inbounds double, ptr %37, i64 %indvars.iv99
  %129 = load double, ptr %128, align 8, !tbaa !16
  %130 = fmul double %108, %129
  store double %130, ptr %128, align 8, !tbaa !16
  %indvars.iv.next100 = add nuw nsw i64 %indvars.iv99, 1
  %exitcond104.not = icmp eq i64 %indvars.iv.next100, %wide.trip.count109
  br i1 %exitcond104.not, label %._crit_edge75, label %.lr.ph74.split, !llvm.loop !26

._crit_edge75:                                    ; preds = %.lr.ph74.split, %.lr.ph74.split.us, %middle.block, %middle.block120
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #10
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %7) #10
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %6) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #10
  ret ptr %35
}

; 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) #4

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #6

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @exp(double noundef) local_unnamed_addr #7

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

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 = { mustprogress 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { "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 #6 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { mustprogress nofree nounwind willreturn memory(write) "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 #8 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #9 = { noreturn nounwind }
attributes #10 = { 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, !6, i64 24}
!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 = !{!13, !13, i64 0}
!13 = !{!"float", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!17, !17, i64 0}
!17 = !{!"double", !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.unroll.disable"}
!20 = distinct !{!20, !19}
!21 = distinct !{!21, !15, !22, !23}
!22 = !{!"llvm.loop.isvectorized", i32 1}
!23 = !{!"llvm.loop.unroll.runtime.disable"}
!24 = distinct !{!24, !15, !22, !23}
!25 = distinct !{!25, !15, !23, !22}
!26 = distinct !{!26, !15, !23, !22}


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