; LLVM IR from jingweizhanghuai/Morn :: test (test_interpolation2)

; 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.MImagePoint = type { float, float }
%struct.MList = type { i32, ptr }

@.str = external hidden unnamed_addr constant [9 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @CurvePoint(ptr 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

declare ptr @ListCreate(i32 noundef, ptr noundef) #2

declare ptr @mListWrite(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #2

declare void @mPointInterpolation(ptr noundef, ptr noundef, float noundef, float noundef) #2

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

declare void @mListRelease(ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca float, align 4
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca %struct.MImagePoint, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %struct.MImagePoint, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #3
  store float 0.000000e+00, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #3
  %11 = call ptr @ListCreate(i32 noundef -1, ptr noundef null)
  store ptr %11, ptr %3, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  store i32 10, ptr %4, align 4, !tbaa !11
  br label %12

12:                                               ; preds = %27, %0
  %13 = load i32, ptr %4, align 4, !tbaa !11
  %14 = icmp sle i32 %13, 40
  br i1 %14, label %16, label %15

15:                                               ; preds = %12
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  br label %30

16:                                               ; preds = %12
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  %17 = getelementptr inbounds %struct.MImagePoint, ptr %5, i32 0, i32 0
  %18 = load i32, ptr %4, align 4, !tbaa !11
  %19 = sitofp i32 %18 to float
  store float %19, ptr %17, align 4, !tbaa !13
  %20 = getelementptr inbounds %struct.MImagePoint, ptr %5, i32 0, i32 1
  %21 = load float, ptr %2, align 4, !tbaa !5
  %22 = load i32, ptr %4, align 4, !tbaa !11
  %23 = sitofp i32 %22 to float
  %24 = fmul float %21, %23
  store float %24, ptr %20, align 4, !tbaa !15
  %25 = load ptr, ptr %3, align 8, !tbaa !9
  %26 = call ptr @mListWrite(ptr noundef %25, i32 noundef -1, ptr noundef %5, i32 noundef 8)
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  br label %27

27:                                               ; preds = %16
  %28 = load i32, ptr %4, align 4, !tbaa !11
  %29 = add nsw i32 %28, 1
  store i32 %29, ptr %4, align 4, !tbaa !11
  br label %12, !llvm.loop !16

30:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  %31 = call ptr @ListCreate(i32 noundef -1, ptr noundef null)
  store ptr %31, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  %32 = call ptr @ListCreate(i32 noundef -1, ptr noundef null)
  store ptr %32, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  %33 = getelementptr inbounds %struct.MImagePoint, ptr %8, i32 0, i32 0
  store float 1.000000e+01, ptr %33, align 4, !tbaa !13
  %34 = getelementptr inbounds %struct.MImagePoint, ptr %8, i32 0, i32 1
  store float 9.000000e+01, ptr %34, align 4, !tbaa !15
  %35 = load ptr, ptr %7, align 8, !tbaa !9
  %36 = call ptr @mListWrite(ptr noundef %35, i32 noundef -1, ptr noundef %8, i32 noundef 8)
  %37 = getelementptr inbounds %struct.MImagePoint, ptr %8, i32 0, i32 0
  store float 4.000000e+01, ptr %37, align 4, !tbaa !13
  %38 = getelementptr inbounds %struct.MImagePoint, ptr %8, i32 0, i32 1
  store float 0.000000e+00, ptr %38, align 4, !tbaa !15
  %39 = load ptr, ptr %7, align 8, !tbaa !9
  %40 = call ptr @mListWrite(ptr noundef %39, i32 noundef -1, ptr noundef %8, i32 noundef 8)
  %41 = load ptr, ptr %6, align 8, !tbaa !9
  %42 = load ptr, ptr %7, align 8, !tbaa !9
  call void @mPointInterpolation(ptr noundef %41, ptr noundef %42, float noundef -1.000000e+01, float noundef 0.000000e+00)
  %43 = load ptr, ptr %3, align 8, !tbaa !9
  %44 = load ptr, ptr %6, align 8, !tbaa !9
  call void @CurvePoint(ptr noundef %43, ptr noundef %44)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  store i32 0, ptr %9, align 4, !tbaa !11
  br label %45

45:                                               ; preds = %69, %30
  %46 = load i32, ptr %9, align 4, !tbaa !11
  %47 = load ptr, ptr %3, align 8, !tbaa !9
  %48 = getelementptr inbounds %struct.MList, ptr %47, i32 0, i32 0
  %49 = load i32, ptr %48, align 8, !tbaa !18
  %50 = icmp slt i32 %46, %49
  br i1 %50, label %52, label %51

51:                                               ; preds = %45
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  br label %72

52:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %53 = load ptr, ptr %3, align 8, !tbaa !9
  %54 = getelementptr inbounds %struct.MList, ptr %53, i32 0, i32 1
  %55 = load ptr, ptr %54, align 8, !tbaa !20
  %56 = load i32, ptr %9, align 4, !tbaa !11
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds ptr, ptr %55, i64 %57
  %59 = load ptr, ptr %58, align 8, !tbaa !9
  store ptr %59, ptr %10, align 8, !tbaa !9
  %60 = load ptr, ptr %10, align 8, !tbaa !9
  %61 = getelementptr inbounds %struct.MImagePoint, ptr %60, i32 0, i32 0
  %62 = load float, ptr %61, align 4, !tbaa !13
  %63 = fpext float %62 to double
  %64 = load ptr, ptr %10, align 8, !tbaa !9
  %65 = getelementptr inbounds %struct.MImagePoint, ptr %64, i32 0, i32 1
  %66 = load float, ptr %65, align 4, !tbaa !15
  %67 = fpext float %66 to double
  %68 = call i32 (ptr, ...) @printf(ptr noundef @.str, double noundef %63, double noundef %67)
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  br label %69

69:                                               ; preds = %52
  %70 = load i32, ptr %9, align 4, !tbaa !11
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr %9, align 4, !tbaa !11
  br label %45, !llvm.loop !21

72:                                               ; preds = %51
  %73 = load ptr, ptr %7, align 8, !tbaa !9
  call void @mListRelease(ptr noundef %73)
  %74 = load ptr, ptr %6, align 8, !tbaa !9
  call void @mListRelease(ptr noundef %74)
  %75 = load ptr, ptr %3, align 8, !tbaa !9
  call void @mListRelease(ptr noundef %75)
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #3
  %76 = load i32, ptr %1, align 4
  ret i32 %76
}

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

!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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"MImagePoint", !6, i64 0, !6, i64 4}
!15 = !{!14, !6, i64 4}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!19, !12, i64 0}
!19 = !{!"MList", !12, i64 0, !10, i64 8}
!20 = !{!19, !10, i64 8}
!21 = distinct !{!21, !17}


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

%struct.MImagePoint = type { float, float }

@.str = external hidden unnamed_addr constant [9 x i8], align 1

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

declare ptr @ListCreate(i32 noundef, ptr noundef) local_unnamed_addr #2

declare ptr @mListWrite(ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

declare void @mPointInterpolation(ptr noundef, ptr noundef, float noundef, float noundef) local_unnamed_addr #2

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

declare void @mListRelease(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca %struct.MImagePoint, align 8
  %2 = alloca %struct.MImagePoint, align 8
  %3 = tail call ptr @ListCreate(i32 noundef -1, ptr noundef null) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  store <2 x float> <float 1.000000e+01, float 0.000000e+00>, ptr %1, align 8, !tbaa !5
  %4 = call ptr @mListWrite(ptr noundef %3, i32 noundef -1, ptr noundef nonnull %1, i32 noundef 8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  store <2 x float> <float 1.100000e+01, float 0.000000e+00>, ptr %1, align 8, !tbaa !5
  %5 = call ptr @mListWrite(ptr noundef %3, i32 noundef -1, ptr noundef nonnull %1, i32 noundef 8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  store <2 x float> <float 1.200000e+01, float 0.000000e+00>, ptr %1, align 8, !tbaa !5
  %6 = call ptr @mListWrite(ptr noundef %3, i32 noundef -1, ptr noundef nonnull %1, i32 noundef 8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  store <2 x float> <float 1.300000e+01, float 0.000000e+00>, ptr %1, align 8, !tbaa !5
  %7 = call ptr @mListWrite(ptr noundef %3, i32 noundef -1, ptr noundef nonnull %1, i32 noundef 8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  store <2 x float> <float 1.400000e+01, float 0.000000e+00>, ptr %1, align 8, !tbaa !5
  %8 = call ptr @mListWrite(ptr noundef %3, i32 noundef -1, ptr noundef nonnull %1, i32 noundef 8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  store <2 x float> <float 1.500000e+01, float 0.000000e+00>, ptr %1, align 8, !tbaa !5
  %9 = call ptr @mListWrite(ptr noundef %3, i32 noundef -1, ptr noundef nonnull %1, i32 noundef 8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  store <2 x float> <float 1.600000e+01, float 0.000000e+00>, ptr %1, align 8, !tbaa !5
  %10 = call ptr @mListWrite(ptr noundef %3, i32 noundef -1, ptr noundef nonnull %1, i32 noundef 8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  store <2 x float> <float 1.700000e+01, float 0.000000e+00>, ptr %1, align 8, !tbaa !5
  %11 = call ptr @mListWrite(ptr noundef %3, i32 noundef -1, ptr noundef nonnull %1, i32 noundef 8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  store <2 x float> <float 1.800000e+01, float 0.000000e+00>, ptr %1, align 8, !tbaa !5
  %12 = call ptr @mListWrite(ptr noundef %3, i32 noundef -1, ptr noundef nonnull %1, i32 noundef 8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  store <2 x float> <float 1.900000e+01, float 0.000000e+00>, ptr %1, align 8, !tbaa !5
  %13 = call ptr @mListWrite(ptr noundef %3, i32 noundef -1, ptr noundef nonnull %1, i32 noundef 8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  store <2 x float> <float 2.000000e+01, float 0.000000e+00>, ptr %1, align 8, !tbaa !5
  %14 = call ptr @mListWrite(ptr noundef %3, i32 noundef -1, ptr noundef nonnull %1, i32 noundef 8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  store <2 x float> <float 2.100000e+01, float 0.000000e+00>, ptr %1, align 8, !tbaa !5
  %15 = call ptr @mListWrite(ptr noundef %3, i32 noundef -1, ptr noundef nonnull %1, i32 noundef 8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  store <2 x float> <float 2.200000e+01, float 0.000000e+00>, ptr %1, align 8, !tbaa !5
  %16 = call ptr @mListWrite(ptr noundef %3, i32 noundef -1, ptr noundef nonnull %1, i32 noundef 8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  store <2 x float> <float 2.300000e+01, float 0.000000e+00>, ptr %1, align 8, !tbaa !5
  %17 = call ptr @mListWrite(ptr noundef %3, i32 noundef -1, ptr noundef nonnull %1, i32 noundef 8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  store <2 x float> <float 2.400000e+01, float 0.000000e+00>, ptr %1, align 8, !tbaa !5
  %18 = call ptr @mListWrite(ptr noundef %3, i32 noundef -1, ptr noundef nonnull %1, i32 noundef 8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  store <2 x float> <float 2.500000e+01, float 0.000000e+00>, ptr %1, align 8, !tbaa !5
  %19 = call ptr @mListWrite(ptr noundef %3, i32 noundef -1, ptr noundef nonnull %1, i32 noundef 8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  store <2 x float> <float 2.600000e+01, float 0.000000e+00>, ptr %1, align 8, !tbaa !5
  %20 = call ptr @mListWrite(ptr noundef %3, i32 noundef -1, ptr noundef nonnull %1, i32 noundef 8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  store <2 x float> <float 2.700000e+01, float 0.000000e+00>, ptr %1, align 8, !tbaa !5
  %21 = call ptr @mListWrite(ptr noundef %3, i32 noundef -1, ptr noundef nonnull %1, i32 noundef 8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  store <2 x float> <float 2.800000e+01, float 0.000000e+00>, ptr %1, align 8, !tbaa !5
  %22 = call ptr @mListWrite(ptr noundef %3, i32 noundef -1, ptr noundef nonnull %1, i32 noundef 8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  store <2 x float> <float 2.900000e+01, float 0.000000e+00>, ptr %1, align 8, !tbaa !5
  %23 = call ptr @mListWrite(ptr noundef %3, i32 noundef -1, ptr noundef nonnull %1, i32 noundef 8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  store <2 x float> <float 3.000000e+01, float 0.000000e+00>, ptr %1, align 8, !tbaa !5
  %24 = call ptr @mListWrite(ptr noundef %3, i32 noundef -1, ptr noundef nonnull %1, i32 noundef 8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  store <2 x float> <float 3.100000e+01, float 0.000000e+00>, ptr %1, align 8, !tbaa !5
  %25 = call ptr @mListWrite(ptr noundef %3, i32 noundef -1, ptr noundef nonnull %1, i32 noundef 8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  store <2 x float> <float 3.200000e+01, float 0.000000e+00>, ptr %1, align 8, !tbaa !5
  %26 = call ptr @mListWrite(ptr noundef %3, i32 noundef -1, ptr noundef nonnull %1, i32 noundef 8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  store <2 x float> <float 3.300000e+01, float 0.000000e+00>, ptr %1, align 8, !tbaa !5
  %27 = call ptr @mListWrite(ptr noundef %3, i32 noundef -1, ptr noundef nonnull %1, i32 noundef 8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  store <2 x float> <float 3.400000e+01, float 0.000000e+00>, ptr %1, align 8, !tbaa !5
  %28 = call ptr @mListWrite(ptr noundef %3, i32 noundef -1, ptr noundef nonnull %1, i32 noundef 8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  store <2 x float> <float 3.500000e+01, float 0.000000e+00>, ptr %1, align 8, !tbaa !5
  %29 = call ptr @mListWrite(ptr noundef %3, i32 noundef -1, ptr noundef nonnull %1, i32 noundef 8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  store <2 x float> <float 3.600000e+01, float 0.000000e+00>, ptr %1, align 8, !tbaa !5
  %30 = call ptr @mListWrite(ptr noundef %3, i32 noundef -1, ptr noundef nonnull %1, i32 noundef 8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  store <2 x float> <float 3.700000e+01, float 0.000000e+00>, ptr %1, align 8, !tbaa !5
  %31 = call ptr @mListWrite(ptr noundef %3, i32 noundef -1, ptr noundef nonnull %1, i32 noundef 8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  store <2 x float> <float 3.800000e+01, float 0.000000e+00>, ptr %1, align 8, !tbaa !5
  %32 = call ptr @mListWrite(ptr noundef %3, i32 noundef -1, ptr noundef nonnull %1, i32 noundef 8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  store <2 x float> <float 3.900000e+01, float 0.000000e+00>, ptr %1, align 8, !tbaa !5
  %33 = call ptr @mListWrite(ptr noundef %3, i32 noundef -1, ptr noundef nonnull %1, i32 noundef 8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  store <2 x float> <float 4.000000e+01, float 0.000000e+00>, ptr %1, align 8, !tbaa !5
  %34 = call ptr @mListWrite(ptr noundef %3, i32 noundef -1, ptr noundef nonnull %1, i32 noundef 8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  %35 = call ptr @ListCreate(i32 noundef -1, ptr noundef null) #4
  %36 = call ptr @ListCreate(i32 noundef -1, ptr noundef null) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #4
  store <2 x float> <float 1.000000e+01, float 9.000000e+01>, ptr %2, align 8, !tbaa !5
  %37 = call ptr @mListWrite(ptr noundef %36, i32 noundef -1, ptr noundef nonnull %2, i32 noundef 8) #4
  store <2 x float> <float 4.000000e+01, float 0.000000e+00>, ptr %2, align 8, !tbaa !5
  %38 = call ptr @mListWrite(ptr noundef %36, i32 noundef -1, ptr noundef nonnull %2, i32 noundef 8) #4
  call void @mPointInterpolation(ptr noundef %35, ptr noundef %36, float noundef -1.000000e+01, float noundef 0.000000e+00) #4
  call void @CurvePoint(ptr noundef %3, ptr noundef %35)
  %39 = load i32, ptr %3, align 8, !tbaa !9
  %40 = icmp sgt i32 %39, 0
  br i1 %40, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %0
  %41 = getelementptr inbounds i8, ptr %3, i64 8
  br label %42

._crit_edge:                                      ; preds = %42, %0
  call void @mListRelease(ptr noundef %36) #4
  call void @mListRelease(ptr noundef %35) #4
  call void @mListRelease(ptr noundef nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
  ret i32 0

42:                                               ; preds = %.lr.ph, %42
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %42 ]
  %43 = load ptr, ptr %41, align 8, !tbaa !13
  %44 = getelementptr inbounds ptr, ptr %43, i64 %indvars.iv
  %45 = load ptr, ptr %44, align 8, !tbaa !14
  %46 = load float, ptr %45, align 4, !tbaa !15
  %47 = fpext float %46 to double
  %48 = getelementptr inbounds i8, ptr %45, i64 4
  %49 = load float, ptr %48, align 4, !tbaa !17
  %50 = fpext float %49 to double
  %51 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, double noundef %47, double noundef %50)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %52 = load i32, ptr %3, align 8, !tbaa !9
  %53 = sext i32 %52 to i64
  %54 = icmp slt i64 %indvars.iv.next, %53
  br i1 %54, label %42, label %._crit_edge, !llvm.loop !18
}

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass