; LLVM IR from jingweizhanghuai/Morn :: src/math (morn_interpolation)

; 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.MImageCurve = type { %struct.MImagePoint, %struct.MImagePoint, i32, ptr, [16 x float] }
%struct.MImagePoint = type { float, float }
%struct.MMatrix = type { i32, i32, ptr }

@.str = external hidden unnamed_addr constant [85 x i8], align 1
@__FUNCTION__.CurveInterpolation3 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [19 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local float @curve_interpolation(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: nounwind uwtable
define dso_local void @CurveInterpolation3(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4, ptr noundef %5) #0 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  %18 = alloca float, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store i32 %3, ptr %10, align 4, !tbaa !9
  store ptr %4, ptr %11, align 8, !tbaa !5
  store ptr %5, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  store float 0.000000e+00, ptr %13, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store float 0.000000e+00, ptr %14, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  store float 0.000000e+00, ptr %15, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  store float 0.000000e+00, ptr %16, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  store float 0.000000e+00, ptr %17, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  store float 0.000000e+00, ptr %18, align 4, !tbaa !11
  %22 = load i32, ptr %10, align 4, !tbaa !9
  %23 = load ptr, ptr %12, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.MImageCurve, ptr %23, i32 0, i32 2
  store i32 %22, ptr %24, align 8, !tbaa !13
  %25 = load i32, ptr %10, align 4, !tbaa !9
  %26 = icmp eq i32 %25, -1
  br i1 %26, label %27, label %46

27:                                               ; preds = %6
  %28 = load ptr, ptr %7, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.MImagePoint, ptr %28, i32 0, i32 0
  %30 = load float, ptr %29, align 4, !tbaa !16
  store float %30, ptr %13, align 4, !tbaa !11
  %31 = load ptr, ptr %7, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.MImagePoint, ptr %31, i32 0, i32 1
  %33 = load float, ptr %32, align 4, !tbaa !17
  store float %33, ptr %14, align 4, !tbaa !11
  %34 = load ptr, ptr %8, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.MImagePoint, ptr %34, i32 0, i32 0
  %36 = load float, ptr %35, align 4, !tbaa !16
  store float %36, ptr %15, align 4, !tbaa !11
  %37 = load ptr, ptr %8, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.MImagePoint, ptr %37, i32 0, i32 1
  %39 = load float, ptr %38, align 4, !tbaa !17
  store float %39, ptr %16, align 4, !tbaa !11
  %40 = load ptr, ptr %9, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.MImagePoint, ptr %40, i32 0, i32 0
  %42 = load float, ptr %41, align 4, !tbaa !16
  store float %42, ptr %17, align 4, !tbaa !11
  %43 = load ptr, ptr %9, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.MImagePoint, ptr %43, i32 0, i32 1
  %45 = load float, ptr %44, align 4, !tbaa !17
  store float %45, ptr %18, align 4, !tbaa !11
  br label %65

46:                                               ; preds = %6
  %47 = load ptr, ptr %7, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.MImagePoint, ptr %47, i32 0, i32 1
  %49 = load float, ptr %48, align 4, !tbaa !17
  store float %49, ptr %13, align 4, !tbaa !11
  %50 = load ptr, ptr %7, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.MImagePoint, ptr %50, i32 0, i32 0
  %52 = load float, ptr %51, align 4, !tbaa !16
  store float %52, ptr %14, align 4, !tbaa !11
  %53 = load ptr, ptr %8, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.MImagePoint, ptr %53, i32 0, i32 1
  %55 = load float, ptr %54, align 4, !tbaa !17
  store float %55, ptr %15, align 4, !tbaa !11
  %56 = load ptr, ptr %8, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.MImagePoint, ptr %56, i32 0, i32 0
  %58 = load float, ptr %57, align 4, !tbaa !16
  store float %58, ptr %16, align 4, !tbaa !11
  %59 = load ptr, ptr %9, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.MImagePoint, ptr %59, i32 0, i32 1
  %61 = load float, ptr %60, align 4, !tbaa !17
  store float %61, ptr %17, align 4, !tbaa !11
  %62 = load ptr, ptr %9, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.MImagePoint, ptr %62, i32 0, i32 0
  %64 = load float, ptr %63, align 4, !tbaa !16
  store float %64, ptr %18, align 4, !tbaa !11
  br label %65

65:                                               ; preds = %46, %27
  %66 = load ptr, ptr %12, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.MImageCurve, ptr %66, i32 0, i32 0
  %68 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %67, ptr align 4 %68, i64 8, i1 false), !tbaa.struct !18
  %69 = load ptr, ptr %12, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.MImageCurve, ptr %69, i32 0, i32 1
  %71 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %70, ptr align 4 %71, i64 8, i1 false), !tbaa.struct !18
  %72 = load ptr, ptr %12, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.MImageCurve, ptr %72, i32 0, i32 3
  store ptr @curve_interpolation, ptr %73, align 8, !tbaa !19
  br label %74

74:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  store i32 2, ptr %19, align 4, !tbaa !9
  %75 = load i32, ptr %19, align 4, !tbaa !9
  %76 = icmp eq i32 %75, 2
  br i1 %76, label %77, label %82

77:                                               ; preds = %74
  %78 = load ptr, ptr %11, align 8, !tbaa !5
  %79 = load ptr, ptr %11, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.MMatrix, ptr %79, i32 0, i32 2
  %81 = load ptr, ptr %80, align 8, !tbaa !20
  call void @MatrixRedefine(ptr noundef %78, i32 noundef 3, i32 noundef 4, ptr noundef %81)
  br label %97

82:                                               ; preds = %74
  %83 = load i32, ptr %19, align 4, !tbaa !9
  %84 = icmp eq i32 %83, 3
  br i1 %84, label %85, label %87

85:                                               ; preds = %82
  %86 = load ptr, ptr %11, align 8, !tbaa !5
  call void @MatrixRedefine(ptr noundef %86, i32 noundef 3, i32 noundef 4, ptr noundef inttoptr (i64 -1 to ptr))
  br label %96

87:                                               ; preds = %82
  br label %88

88:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  store i32 1, ptr %20, align 4, !tbaa !9
  %89 = load i32, ptr %20, align 4, !tbaa !9
  %90 = icmp ne i32 %89, 0
  br i1 %90, label %91, label %93

91:                                               ; preds = %88
  %92 = load i32, ptr %20, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %92, i32 noundef -1, ptr noundef @.str, i32 noundef 18, ptr noundef @__FUNCTION__.CurveInterpolation3, ptr noundef @.str.1)
  br label %93

93:                                               ; preds = %91, %88
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  br label %94

94:                                               ; preds = %93
  br label %95

95:                                               ; preds = %94
  br label %96

96:                                               ; preds = %95, %85
  br label %97

97:                                               ; preds = %96, %77
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  br label %98

98:                                               ; preds = %97
  br label %99

99:                                               ; preds = %98
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  %100 = load ptr, ptr %11, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.MMatrix, ptr %100, i32 0, i32 2
  %102 = load ptr, ptr %101, align 8, !tbaa !20
  store ptr %102, ptr %21, align 8, !tbaa !5
  %103 = load ptr, ptr %21, align 8, !tbaa !5
  %104 = getelementptr inbounds ptr, ptr %103, i64 0
  %105 = load ptr, ptr %104, align 8, !tbaa !5
  %106 = getelementptr inbounds float, ptr %105, i64 0
  store float 1.000000e+00, ptr %106, align 4, !tbaa !11
  %107 = load float, ptr %13, align 4, !tbaa !11
  %108 = load ptr, ptr %21, align 8, !tbaa !5
  %109 = getelementptr inbounds ptr, ptr %108, i64 0
  %110 = load ptr, ptr %109, align 8, !tbaa !5
  %111 = getelementptr inbounds float, ptr %110, i64 1
  store float %107, ptr %111, align 4, !tbaa !11
  %112 = load float, ptr %13, align 4, !tbaa !11
  %113 = load float, ptr %13, align 4, !tbaa !11
  %114 = fmul float %112, %113
  %115 = load ptr, ptr %21, align 8, !tbaa !5
  %116 = getelementptr inbounds ptr, ptr %115, i64 0
  %117 = load ptr, ptr %116, align 8, !tbaa !5
  %118 = getelementptr inbounds float, ptr %117, i64 2
  store float %114, ptr %118, align 4, !tbaa !11
  %119 = load float, ptr %14, align 4, !tbaa !11
  %120 = fsub float 0.000000e+00, %119
  %121 = load ptr, ptr %21, align 8, !tbaa !5
  %122 = getelementptr inbounds ptr, ptr %121, i64 0
  %123 = load ptr, ptr %122, align 8, !tbaa !5
  %124 = getelementptr inbounds float, ptr %123, i64 3
  store float %120, ptr %124, align 4, !tbaa !11
  %125 = load ptr, ptr %21, align 8, !tbaa !5
  %126 = getelementptr inbounds ptr, ptr %125, i64 1
  %127 = load ptr, ptr %126, align 8, !tbaa !5
  %128 = getelementptr inbounds float, ptr %127, i64 0
  store float 1.000000e+00, ptr %128, align 4, !tbaa !11
  %129 = load float, ptr %15, align 4, !tbaa !11
  %130 = load ptr, ptr %21, align 8, !tbaa !5
  %131 = getelementptr inbounds ptr, ptr %130, i64 1
  %132 = load ptr, ptr %131, align 8, !tbaa !5
  %133 = getelementptr inbounds float, ptr %132, i64 1
  store float %129, ptr %133, align 4, !tbaa !11
  %134 = load float, ptr %15, align 4, !tbaa !11
  %135 = load float, ptr %15, align 4, !tbaa !11
  %136 = fmul float %134, %135
  %137 = load ptr, ptr %21, align 8, !tbaa !5
  %138 = getelementptr inbounds ptr, ptr %137, i64 1
  %139 = load ptr, ptr %138, align 8, !tbaa !5
  %140 = getelementptr inbounds float, ptr %139, i64 2
  store float %136, ptr %140, align 4, !tbaa !11
  %141 = load float, ptr %16, align 4, !tbaa !11
  %142 = fsub float 0.000000e+00, %141
  %143 = load ptr, ptr %21, align 8, !tbaa !5
  %144 = getelementptr inbounds ptr, ptr %143, i64 1
  %145 = load ptr, ptr %144, align 8, !tbaa !5
  %146 = getelementptr inbounds float, ptr %145, i64 3
  store float %142, ptr %146, align 4, !tbaa !11
  %147 = load ptr, ptr %21, align 8, !tbaa !5
  %148 = getelementptr inbounds ptr, ptr %147, i64 2
  %149 = load ptr, ptr %148, align 8, !tbaa !5
  %150 = getelementptr inbounds float, ptr %149, i64 0
  store float 1.000000e+00, ptr %150, align 4, !tbaa !11
  %151 = load float, ptr %17, align 4, !tbaa !11
  %152 = load ptr, ptr %21, align 8, !tbaa !5
  %153 = getelementptr inbounds ptr, ptr %152, i64 2
  %154 = load ptr, ptr %153, align 8, !tbaa !5
  %155 = getelementptr inbounds float, ptr %154, i64 1
  store float %151, ptr %155, align 4, !tbaa !11
  %156 = load float, ptr %17, align 4, !tbaa !11
  %157 = load float, ptr %17, align 4, !tbaa !11
  %158 = fmul float %156, %157
  %159 = load ptr, ptr %21, align 8, !tbaa !5
  %160 = getelementptr inbounds ptr, ptr %159, i64 2
  %161 = load ptr, ptr %160, align 8, !tbaa !5
  %162 = getelementptr inbounds float, ptr %161, i64 2
  store float %158, ptr %162, align 4, !tbaa !11
  %163 = load float, ptr %18, align 4, !tbaa !11
  %164 = fsub float 0.000000e+00, %163
  %165 = load ptr, ptr %21, align 8, !tbaa !5
  %166 = getelementptr inbounds ptr, ptr %165, i64 2
  %167 = load ptr, ptr %166, align 8, !tbaa !5
  %168 = getelementptr inbounds float, ptr %167, i64 3
  store float %164, ptr %168, align 4, !tbaa !11
  %169 = load ptr, ptr %11, align 8, !tbaa !5
  %170 = load ptr, ptr %12, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.MImageCurve, ptr %170, i32 0, i32 4
  %172 = getelementptr inbounds [16 x float], ptr %171, i64 0, i64 0
  %173 = call i32 @mLinearEquation(ptr noundef %169, ptr noundef %172)
  %174 = load ptr, ptr %12, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.MImageCurve, ptr %174, i32 0, i32 4
  %176 = getelementptr inbounds [16 x float], ptr %175, i64 0, i64 3
  store float 0.000000e+00, ptr %176, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  ret void
}

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

declare void @MatrixRedefine(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #3

declare void @m_Exception(i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ...) #3

declare i32 @mLinearEquation(ptr noundef, ptr noundef) #3

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !10, i64 16}
!14 = !{!"MImageCurve", !15, i64 0, !15, i64 8, !10, i64 16, !6, i64 24, !7, i64 32}
!15 = !{!"MImagePoint", !12, i64 0, !12, i64 4}
!16 = !{!15, !12, i64 0}
!17 = !{!15, !12, i64 4}
!18 = !{i64 0, i64 4, !11, i64 4, i64 4, !11}
!19 = !{!14, !6, i64 24}
!20 = !{!21, !6, i64 8}
!21 = !{!"MMatrix", !10, i64 0, !10, i64 4, !6, i64 8}


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

; Function Attrs: nounwind uwtable
declare dso_local float @curve_interpolation(float noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
define dso_local void @CurveInterpolation3(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2, i32 noundef %3, ptr noundef %4, ptr noundef %5) local_unnamed_addr #0 {
  %7 = getelementptr inbounds i8, ptr %5, i64 16
  store i32 %3, ptr %7, align 8, !tbaa !5
  %8 = icmp eq i32 %3, -1
  %9 = getelementptr inbounds i8, ptr %0, i64 4
  %10 = getelementptr inbounds i8, ptr %1, i64 4
  %11 = getelementptr inbounds i8, ptr %2, i64 4
  %. = select i1 %8, ptr %10, ptr %1
  %.59 = select i1 %8, ptr %2, ptr %11
  %.60 = select i1 %8, ptr %11, ptr %2
  %.61 = select i1 %8, ptr %1, ptr %10
  %.62 = select i1 %8, ptr %9, ptr %0
  %.63 = select i1 %8, ptr %0, ptr %9
  %.0 = load float, ptr %.63, align 4, !tbaa !13
  %.054 = load float, ptr %.62, align 4, !tbaa !13
  %.055 = load float, ptr %.61, align 4, !tbaa !13
  %.056 = load float, ptr %.60, align 4, !tbaa !13
  %.057 = load float, ptr %.59, align 4, !tbaa !13
  %.058 = load float, ptr %., align 4, !tbaa !13
  %12 = load i64, ptr %0, align 4
  store i64 %12, ptr %5, align 8
  %13 = getelementptr inbounds i8, ptr %5, i64 8
  %14 = load i64, ptr %1, align 4
  store i64 %14, ptr %13, align 8
  %15 = getelementptr inbounds i8, ptr %5, i64 24
  store ptr @curve_interpolation, ptr %15, align 8, !tbaa !14
  %16 = getelementptr inbounds i8, ptr %4, i64 8
  %17 = load ptr, ptr %16, align 8, !tbaa !15
  tail call void @MatrixRedefine(ptr noundef %4, i32 noundef 3, i32 noundef 4, ptr noundef %17) #2
  %18 = load ptr, ptr %16, align 8, !tbaa !15
  %19 = load ptr, ptr %18, align 8, !tbaa !17
  store float 1.000000e+00, ptr %19, align 4, !tbaa !13
  %20 = getelementptr inbounds i8, ptr %19, i64 4
  store float %.0, ptr %20, align 4, !tbaa !13
  %21 = fmul float %.0, %.0
  %22 = getelementptr inbounds i8, ptr %19, i64 8
  store float %21, ptr %22, align 4, !tbaa !13
  %23 = fsub float 0.000000e+00, %.054
  %24 = getelementptr inbounds i8, ptr %19, i64 12
  store float %23, ptr %24, align 4, !tbaa !13
  %25 = getelementptr inbounds i8, ptr %18, i64 8
  %26 = load ptr, ptr %25, align 8, !tbaa !17
  store float 1.000000e+00, ptr %26, align 4, !tbaa !13
  %27 = getelementptr inbounds i8, ptr %26, i64 4
  store float %.055, ptr %27, align 4, !tbaa !13
  %28 = fmul float %.055, %.055
  %29 = getelementptr inbounds i8, ptr %26, i64 8
  store float %28, ptr %29, align 4, !tbaa !13
  %30 = fsub float 0.000000e+00, %.058
  %31 = getelementptr inbounds i8, ptr %26, i64 12
  store float %30, ptr %31, align 4, !tbaa !13
  %32 = getelementptr inbounds i8, ptr %18, i64 16
  %33 = load ptr, ptr %32, align 8, !tbaa !17
  store float 1.000000e+00, ptr %33, align 4, !tbaa !13
  %34 = getelementptr inbounds i8, ptr %33, i64 4
  store float %.057, ptr %34, align 4, !tbaa !13
  %35 = fmul float %.057, %.057
  %36 = getelementptr inbounds i8, ptr %33, i64 8
  store float %35, ptr %36, align 4, !tbaa !13
  %37 = fsub float 0.000000e+00, %.056
  %38 = getelementptr inbounds i8, ptr %33, i64 12
  store float %37, ptr %38, align 4, !tbaa !13
  %39 = getelementptr inbounds i8, ptr %5, i64 32
  %40 = tail call i32 @mLinearEquation(ptr noundef %4, ptr noundef nonnull %39) #2
  %41 = getelementptr inbounds i8, ptr %5, i64 44
  store float 0.000000e+00, ptr %41, align 4, !tbaa !13
  ret void
}

declare void @MatrixRedefine(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

declare i32 @mLinearEquation(ptr noundef, ptr noundef) local_unnamed_addr #1

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "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 }

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

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


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass