; 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
@.str.1 = external hidden unnamed_addr constant [19 x i8], align 1
@__FUNCTION__.CurveInterpolation4 = external hidden unnamed_addr constant [20 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: 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

; Function Attrs: nounwind uwtable
define dso_local void @CurveInterpolation4(ptr noundef %0, ptr noundef %1, i32 noundef %2, float noundef %3, float noundef %4, ptr noundef %5, ptr noundef %6) #0 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %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 %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store i32 %2, ptr %10, align 4, !tbaa !9
  store float %3, ptr %11, align 4, !tbaa !11
  store float %4, ptr %12, align 4, !tbaa !11
  store ptr %5, ptr %13, align 8, !tbaa !5
  store ptr %6, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  %22 = load i32, ptr %10, align 4, !tbaa !9
  %23 = load ptr, ptr %14, 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 %40

27:                                               ; preds = %7
  %28 = load ptr, ptr %8, 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 %15, align 4, !tbaa !11
  %31 = load ptr, ptr %8, 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 %16, align 4, !tbaa !11
  %34 = load ptr, ptr %9, 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 %17, align 4, !tbaa !11
  %37 = load ptr, ptr %9, 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 %18, align 4, !tbaa !11
  br label %53

40:                                               ; preds = %7
  %41 = load ptr, ptr %8, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.MImagePoint, ptr %41, i32 0, i32 1
  %43 = load float, ptr %42, align 4, !tbaa !17
  store float %43, ptr %15, align 4, !tbaa !11
  %44 = load ptr, ptr %8, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.MImagePoint, ptr %44, i32 0, i32 0
  %46 = load float, ptr %45, align 4, !tbaa !16
  store float %46, ptr %16, align 4, !tbaa !11
  %47 = load ptr, ptr %9, 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 %17, align 4, !tbaa !11
  %50 = load ptr, ptr %9, 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 %18, align 4, !tbaa !11
  br label %53

53:                                               ; preds = %40, %27
  %54 = load ptr, ptr %14, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.MImageCurve, ptr %54, i32 0, i32 0
  %56 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %55, ptr align 4 %56, i64 8, i1 false), !tbaa.struct !18
  %57 = load ptr, ptr %14, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.MImageCurve, ptr %57, i32 0, i32 1
  %59 = load ptr, ptr %9, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %58, ptr align 4 %59, i64 8, i1 false), !tbaa.struct !18
  %60 = load ptr, ptr %14, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.MImageCurve, ptr %60, i32 0, i32 3
  store ptr @curve_interpolation, ptr %61, align 8, !tbaa !19
  br label %62

62:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  store i32 2, ptr %19, align 4, !tbaa !9
  %63 = load i32, ptr %19, align 4, !tbaa !9
  %64 = icmp eq i32 %63, 2
  br i1 %64, label %65, label %70

65:                                               ; preds = %62
  %66 = load ptr, ptr %13, align 8, !tbaa !5
  %67 = load ptr, ptr %13, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.MMatrix, ptr %67, i32 0, i32 2
  %69 = load ptr, ptr %68, align 8, !tbaa !20
  call void @MatrixRedefine(ptr noundef %66, i32 noundef 4, i32 noundef 5, ptr noundef %69)
  br label %85

70:                                               ; preds = %62
  %71 = load i32, ptr %19, align 4, !tbaa !9
  %72 = icmp eq i32 %71, 3
  br i1 %72, label %73, label %75

73:                                               ; preds = %70
  %74 = load ptr, ptr %13, align 8, !tbaa !5
  call void @MatrixRedefine(ptr noundef %74, i32 noundef 4, i32 noundef 5, ptr noundef inttoptr (i64 -1 to ptr))
  br label %84

75:                                               ; preds = %70
  br label %76

76:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  store i32 1, ptr %20, align 4, !tbaa !9
  %77 = load i32, ptr %20, align 4, !tbaa !9
  %78 = icmp ne i32 %77, 0
  br i1 %78, label %79, label %81

79:                                               ; preds = %76
  %80 = load i32, ptr %20, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %80, i32 noundef -1, ptr noundef @.str, i32 noundef 35, ptr noundef @__FUNCTION__.CurveInterpolation4, ptr noundef @.str.1)
  br label %81

81:                                               ; preds = %79, %76
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  br label %82

82:                                               ; preds = %81
  br label %83

83:                                               ; preds = %82
  br label %84

84:                                               ; preds = %83, %73
  br label %85

85:                                               ; preds = %84, %65
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  br label %86

86:                                               ; preds = %85
  br label %87

87:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  %88 = load ptr, ptr %13, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.MMatrix, ptr %88, i32 0, i32 2
  %90 = load ptr, ptr %89, align 8, !tbaa !20
  store ptr %90, ptr %21, align 8, !tbaa !5
  %91 = load ptr, ptr %21, align 8, !tbaa !5
  %92 = getelementptr inbounds ptr, ptr %91, i64 0
  %93 = load ptr, ptr %92, align 8, !tbaa !5
  %94 = getelementptr inbounds float, ptr %93, i64 0
  store float 1.000000e+00, ptr %94, align 4, !tbaa !11
  %95 = load float, ptr %15, align 4, !tbaa !11
  %96 = load ptr, ptr %21, align 8, !tbaa !5
  %97 = getelementptr inbounds ptr, ptr %96, i64 0
  %98 = load ptr, ptr %97, align 8, !tbaa !5
  %99 = getelementptr inbounds float, ptr %98, i64 1
  store float %95, ptr %99, align 4, !tbaa !11
  %100 = load float, ptr %15, align 4, !tbaa !11
  %101 = load float, ptr %15, align 4, !tbaa !11
  %102 = fmul float %100, %101
  %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 2
  store float %102, ptr %106, align 4, !tbaa !11
  %107 = load float, ptr %15, align 4, !tbaa !11
  %108 = load float, ptr %15, align 4, !tbaa !11
  %109 = fmul float %107, %108
  %110 = load float, ptr %15, align 4, !tbaa !11
  %111 = fmul float %109, %110
  %112 = load ptr, ptr %21, align 8, !tbaa !5
  %113 = getelementptr inbounds ptr, ptr %112, i64 0
  %114 = load ptr, ptr %113, align 8, !tbaa !5
  %115 = getelementptr inbounds float, ptr %114, i64 3
  store float %111, ptr %115, align 4, !tbaa !11
  %116 = load float, ptr %16, align 4, !tbaa !11
  %117 = fsub float 0.000000e+00, %116
  %118 = load ptr, ptr %21, align 8, !tbaa !5
  %119 = getelementptr inbounds ptr, ptr %118, i64 0
  %120 = load ptr, ptr %119, align 8, !tbaa !5
  %121 = getelementptr inbounds float, ptr %120, i64 4
  store float %117, ptr %121, align 4, !tbaa !11
  %122 = load ptr, ptr %21, align 8, !tbaa !5
  %123 = getelementptr inbounds ptr, ptr %122, i64 1
  %124 = load ptr, ptr %123, align 8, !tbaa !5
  %125 = getelementptr inbounds float, ptr %124, i64 0
  store float 1.000000e+00, ptr %125, align 4, !tbaa !11
  %126 = load float, ptr %17, align 4, !tbaa !11
  %127 = load ptr, ptr %21, align 8, !tbaa !5
  %128 = getelementptr inbounds ptr, ptr %127, i64 1
  %129 = load ptr, ptr %128, align 8, !tbaa !5
  %130 = getelementptr inbounds float, ptr %129, i64 1
  store float %126, ptr %130, align 4, !tbaa !11
  %131 = load float, ptr %17, align 4, !tbaa !11
  %132 = load float, ptr %17, align 4, !tbaa !11
  %133 = fmul float %131, %132
  %134 = load ptr, ptr %21, align 8, !tbaa !5
  %135 = getelementptr inbounds ptr, ptr %134, i64 1
  %136 = load ptr, ptr %135, align 8, !tbaa !5
  %137 = getelementptr inbounds float, ptr %136, i64 2
  store float %133, ptr %137, align 4, !tbaa !11
  %138 = load float, ptr %17, align 4, !tbaa !11
  %139 = load float, ptr %17, align 4, !tbaa !11
  %140 = fmul float %138, %139
  %141 = load float, ptr %17, align 4, !tbaa !11
  %142 = fmul float %140, %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 float, ptr %18, align 4, !tbaa !11
  %148 = fsub float 0.000000e+00, %147
  %149 = load ptr, ptr %21, align 8, !tbaa !5
  %150 = getelementptr inbounds ptr, ptr %149, i64 1
  %151 = load ptr, ptr %150, align 8, !tbaa !5
  %152 = getelementptr inbounds float, ptr %151, i64 4
  store float %148, ptr %152, align 4, !tbaa !11
  %153 = load ptr, ptr %21, align 8, !tbaa !5
  %154 = getelementptr inbounds ptr, ptr %153, i64 2
  %155 = load ptr, ptr %154, align 8, !tbaa !5
  %156 = getelementptr inbounds float, ptr %155, i64 0
  store float 0.000000e+00, ptr %156, align 4, !tbaa !11
  %157 = load ptr, ptr %21, align 8, !tbaa !5
  %158 = getelementptr inbounds ptr, ptr %157, i64 2
  %159 = load ptr, ptr %158, align 8, !tbaa !5
  %160 = getelementptr inbounds float, ptr %159, i64 1
  store float 1.000000e+00, ptr %160, align 4, !tbaa !11
  %161 = load float, ptr %15, align 4, !tbaa !11
  %162 = fmul float 2.000000e+00, %161
  %163 = load ptr, ptr %21, align 8, !tbaa !5
  %164 = getelementptr inbounds ptr, ptr %163, i64 2
  %165 = load ptr, ptr %164, align 8, !tbaa !5
  %166 = getelementptr inbounds float, ptr %165, i64 2
  store float %162, ptr %166, align 4, !tbaa !11
  %167 = load float, ptr %15, align 4, !tbaa !11
  %168 = fmul float 3.000000e+00, %167
  %169 = load float, ptr %15, align 4, !tbaa !11
  %170 = fmul float %168, %169
  %171 = load ptr, ptr %21, align 8, !tbaa !5
  %172 = getelementptr inbounds ptr, ptr %171, i64 2
  %173 = load ptr, ptr %172, align 8, !tbaa !5
  %174 = getelementptr inbounds float, ptr %173, i64 3
  store float %170, ptr %174, align 4, !tbaa !11
  %175 = load float, ptr %11, align 4, !tbaa !11
  %176 = fsub float 0.000000e+00, %175
  %177 = load ptr, ptr %21, align 8, !tbaa !5
  %178 = getelementptr inbounds ptr, ptr %177, i64 2
  %179 = load ptr, ptr %178, align 8, !tbaa !5
  %180 = getelementptr inbounds float, ptr %179, i64 4
  store float %176, ptr %180, align 4, !tbaa !11
  %181 = load ptr, ptr %21, align 8, !tbaa !5
  %182 = getelementptr inbounds ptr, ptr %181, i64 3
  %183 = load ptr, ptr %182, align 8, !tbaa !5
  %184 = getelementptr inbounds float, ptr %183, i64 0
  store float 0.000000e+00, ptr %184, align 4, !tbaa !11
  %185 = load ptr, ptr %21, align 8, !tbaa !5
  %186 = getelementptr inbounds ptr, ptr %185, i64 3
  %187 = load ptr, ptr %186, align 8, !tbaa !5
  %188 = getelementptr inbounds float, ptr %187, i64 1
  store float 0.000000e+00, ptr %188, align 4, !tbaa !11
  %189 = load ptr, ptr %21, align 8, !tbaa !5
  %190 = getelementptr inbounds ptr, ptr %189, i64 3
  %191 = load ptr, ptr %190, align 8, !tbaa !5
  %192 = getelementptr inbounds float, ptr %191, i64 2
  store float 2.000000e+00, ptr %192, align 4, !tbaa !11
  %193 = load float, ptr %15, align 4, !tbaa !11
  %194 = fmul float 6.000000e+00, %193
  %195 = load ptr, ptr %21, align 8, !tbaa !5
  %196 = getelementptr inbounds ptr, ptr %195, i64 3
  %197 = load ptr, ptr %196, align 8, !tbaa !5
  %198 = getelementptr inbounds float, ptr %197, i64 3
  store float %194, ptr %198, align 4, !tbaa !11
  %199 = load float, ptr %12, align 4, !tbaa !11
  %200 = fsub float 0.000000e+00, %199
  %201 = load ptr, ptr %21, align 8, !tbaa !5
  %202 = getelementptr inbounds ptr, ptr %201, i64 3
  %203 = load ptr, ptr %202, align 8, !tbaa !5
  %204 = getelementptr inbounds float, ptr %203, i64 4
  store float %200, ptr %204, align 4, !tbaa !11
  %205 = load ptr, ptr %13, align 8, !tbaa !5
  %206 = load ptr, ptr %14, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.MImageCurve, ptr %206, i32 0, i32 4
  %208 = getelementptr inbounds [16 x float], ptr %207, i64 0, i64 0
  %209 = call i32 @mLinearEquation(ptr noundef %205, ptr noundef %208)
  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
  ret void
}

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

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

; Function Attrs: nounwind uwtable
define dso_local void @CurveInterpolation4(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, i32 noundef %2, float noundef %3, float noundef %4, ptr noundef %5, ptr noundef %6) local_unnamed_addr #0 {
  %8 = getelementptr inbounds i8, ptr %6, i64 16
  store i32 %2, ptr %8, align 8, !tbaa !5
  %9 = icmp eq i32 %2, -1
  %10 = getelementptr inbounds i8, ptr %0, i64 4
  %11 = getelementptr inbounds i8, ptr %1, i64 4
  %. = select i1 %9, ptr %11, ptr %1
  %.68 = select i1 %9, ptr %1, ptr %11
  %.69 = select i1 %9, ptr %10, ptr %0
  %.70 = select i1 %9, ptr %0, ptr %10
  %.0 = load float, ptr %.70, align 4, !tbaa !13
  %.065 = load float, ptr %.69, align 4, !tbaa !13
  %.066 = load float, ptr %.68, align 4, !tbaa !13
  %.067 = load float, ptr %., align 4, !tbaa !13
  %12 = load i64, ptr %0, align 4
  store i64 %12, ptr %6, align 8
  %13 = getelementptr inbounds i8, ptr %6, i64 8
  %14 = load i64, ptr %1, align 4
  store i64 %14, ptr %13, align 8
  %15 = getelementptr inbounds i8, ptr %6, i64 24
  store ptr @curve_interpolation, ptr %15, align 8, !tbaa !14
  %16 = getelementptr inbounds i8, ptr %5, i64 8
  %17 = load ptr, ptr %16, align 8, !tbaa !15
  tail call void @MatrixRedefine(ptr noundef %5, i32 noundef 4, i32 noundef 5, 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 = fmul float %.0, %21
  %24 = getelementptr inbounds i8, ptr %19, i64 12
  store float %23, ptr %24, align 4, !tbaa !13
  %25 = fsub float 0.000000e+00, %.065
  %26 = getelementptr inbounds i8, ptr %19, i64 16
  store float %25, ptr %26, align 4, !tbaa !13
  %27 = getelementptr inbounds i8, ptr %18, i64 8
  %28 = load ptr, ptr %27, align 8, !tbaa !17
  store float 1.000000e+00, ptr %28, align 4, !tbaa !13
  %29 = getelementptr inbounds i8, ptr %28, i64 4
  store float %.066, ptr %29, align 4, !tbaa !13
  %30 = fmul float %.066, %.066
  %31 = getelementptr inbounds i8, ptr %28, i64 8
  store float %30, ptr %31, align 4, !tbaa !13
  %32 = fmul float %.066, %30
  %33 = getelementptr inbounds i8, ptr %28, i64 12
  store float %32, ptr %33, align 4, !tbaa !13
  %34 = fsub float 0.000000e+00, %.067
  %35 = getelementptr inbounds i8, ptr %28, i64 16
  store float %34, ptr %35, align 4, !tbaa !13
  %36 = getelementptr inbounds i8, ptr %18, i64 16
  %37 = load ptr, ptr %36, align 8, !tbaa !17
  store <2 x float> <float 0.000000e+00, float 1.000000e+00>, ptr %37, align 4, !tbaa !13
  %38 = getelementptr inbounds i8, ptr %37, i64 8
  %39 = fmul float %.0, 3.000000e+00
  %40 = insertelement <2 x float> poison, float %.0, i64 0
  %41 = shufflevector <2 x float> %40, <2 x float> poison, <2 x i32> zeroinitializer
  %42 = insertelement <2 x float> <float 2.000000e+00, float poison>, float %39, i64 1
  %43 = fmul <2 x float> %41, %42
  store <2 x float> %43, ptr %38, align 4, !tbaa !13
  %44 = fsub float 0.000000e+00, %3
  %45 = getelementptr inbounds i8, ptr %37, i64 16
  store float %44, ptr %45, align 4, !tbaa !13
  %46 = getelementptr inbounds i8, ptr %18, i64 24
  %47 = load ptr, ptr %46, align 8, !tbaa !17
  store <2 x float> zeroinitializer, ptr %47, align 4, !tbaa !13
  %48 = getelementptr inbounds i8, ptr %47, i64 8
  store float 2.000000e+00, ptr %48, align 4, !tbaa !13
  %49 = fmul float %.0, 6.000000e+00
  %50 = getelementptr inbounds i8, ptr %47, i64 12
  store float %49, ptr %50, align 4, !tbaa !13
  %51 = fsub float 0.000000e+00, %4
  %52 = getelementptr inbounds i8, ptr %47, i64 16
  store float %51, ptr %52, align 4, !tbaa !13
  %53 = getelementptr inbounds i8, ptr %6, i64 32
  %54 = tail call i32 @mLinearEquation(ptr noundef %5, ptr noundef nonnull %53) #2
  ret void
}

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,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass