; LLVM IR from bhaskar0120/simple-render :: main (get_intersection)

; 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.Scene = type { [256 x %struct.Shape], i64, %struct.Vector, %struct.Vector, [3 x i8] }
%struct.Shape = type { %struct.Vector, %struct.Vector, float, float, float, [3 x i8], ptr, ptr }
%struct.Vector = type { float, float, float }

; 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) #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
declare dso_local { <2 x float>, float } @add(<2 x float>, float, <2 x float>, float) #2

; Function Attrs: nounwind uwtable
declare dso_local { <2 x float>, float } @mul(<2 x float>, float, float noundef) #2

; Function Attrs: nounwind uwtable
define dso_local { <2 x float>, float } @get_intersection(ptr noundef byval(%struct.Scene) align 8 %0, <2 x float> %1, float %2, ptr noundef %3) #2 {
  %5 = alloca %struct.Vector, align 4
  %6 = alloca %struct.Vector, align 4
  %7 = alloca { <2 x float>, float }, align 4
  %8 = alloca ptr, align 8
  %9 = alloca float, align 4
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca float, align 4
  %13 = alloca i64, align 8
  %14 = alloca i32, align 4
  %15 = alloca %struct.Shape, align 8
  %16 = alloca float, align 4
  %17 = alloca %struct.Vector, align 4
  %18 = alloca %struct.Vector, align 4
  %19 = alloca { <2 x float>, float }, align 4
  %20 = alloca { <2 x float>, float }, align 8
  %21 = alloca { <2 x float>, float }, align 4
  %22 = alloca { <2 x float>, float }, align 4
  %23 = alloca { <2 x float>, float }, align 8
  %24 = alloca { <2 x float>, float }, align 4
  %25 = alloca %struct.Vector, align 4
  %26 = alloca %struct.Vector, align 4
  %27 = alloca %struct.Vector, align 4
  %28 = alloca { <2 x float>, float }, align 4
  %29 = alloca { <2 x float>, float }, align 8
  %30 = alloca { <2 x float>, float }, align 4
  %31 = alloca { <2 x float>, float }, align 4
  %32 = alloca { <2 x float>, float }, align 8
  %33 = alloca { <2 x float>, float }, align 4
  %34 = alloca { <2 x float>, float }, align 8
  %35 = alloca %struct.Vector, align 4
  %36 = alloca { <2 x float>, float }, align 4
  %37 = alloca { <2 x float>, float }, align 8
  %38 = alloca { <2 x float>, float }, align 4
  %39 = alloca { <2 x float>, float }, align 4
  %40 = alloca { <2 x float>, float }, align 8
  %41 = alloca { <2 x float>, float }, align 8
  %42 = getelementptr inbounds { <2 x float>, float }, ptr %7, i32 0, i32 0
  store <2 x float> %1, ptr %42, align 4
  %43 = getelementptr inbounds { <2 x float>, float }, ptr %7, i32 0, i32 1
  store float %2, ptr %43, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %6, ptr align 4 %7, i64 12, i1 false)
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  store float 0.000000e+00, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  store i64 0, ptr %10, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  store i64 0, ptr %11, align 8, !tbaa !11
  store i64 0, ptr %11, align 8, !tbaa !11
  br label %44

44:                                               ; preds = %158, %4
  %45 = load i64, ptr %11, align 8, !tbaa !11
  %46 = icmp ult i64 %45, 500
  br i1 %46, label %47, label %161

47:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  store float 1.000000e+02, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  store i64 0, ptr %13, align 8, !tbaa !11
  br label %48

48:                                               ; preds = %142, %47
  %49 = load i64, ptr %13, align 8, !tbaa !11
  %50 = getelementptr inbounds %struct.Scene, ptr %0, i32 0, i32 1
  %51 = load i64, ptr %50, align 8, !tbaa !13
  %52 = icmp ult i64 %49, %51
  br i1 %52, label %54, label %53

53:                                               ; preds = %48
  store i32 5, ptr %14, align 4
  br label %145

54:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 56, ptr %15) #3
  %55 = getelementptr inbounds %struct.Scene, ptr %0, i32 0, i32 0
  %56 = load i64, ptr %13, align 8, !tbaa !11
  %57 = getelementptr inbounds [256 x %struct.Shape], ptr %55, i64 0, i64 %56
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %15, ptr align 8 %57, i64 56, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  %58 = getelementptr inbounds %struct.Shape, ptr %15, i32 0, i32 6
  %59 = load ptr, ptr %58, align 8, !tbaa !18
  %60 = getelementptr inbounds %struct.Scene, ptr %0, i32 0, i32 3
  %61 = load float, ptr %9, align 4, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 4 %6, i64 12, i1 false)
  %62 = getelementptr inbounds { <2 x float>, float }, ptr %19, i32 0, i32 0
  %63 = load <2 x float>, ptr %62, align 4
  %64 = getelementptr inbounds { <2 x float>, float }, ptr %19, i32 0, i32 1
  %65 = load float, ptr %64, align 4
  %66 = call { <2 x float>, float } @mul(<2 x float> %63, float %65, float noundef %61)
  store { <2 x float>, float } %66, ptr %20, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 8 %20, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %21, ptr align 4 %60, i64 12, i1 false)
  %67 = getelementptr inbounds { <2 x float>, float }, ptr %21, i32 0, i32 0
  %68 = load <2 x float>, ptr %67, align 4
  %69 = getelementptr inbounds { <2 x float>, float }, ptr %21, i32 0, i32 1
  %70 = load float, ptr %69, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %22, ptr align 4 %18, i64 12, i1 false)
  %71 = getelementptr inbounds { <2 x float>, float }, ptr %22, i32 0, i32 0
  %72 = load <2 x float>, ptr %71, align 4
  %73 = getelementptr inbounds { <2 x float>, float }, ptr %22, i32 0, i32 1
  %74 = load float, ptr %73, align 4
  %75 = call { <2 x float>, float } @add(<2 x float> %68, float %70, <2 x float> %72, float %74)
  store { <2 x float>, float } %75, ptr %23, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %17, ptr align 8 %23, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %24, ptr align 4 %17, i64 12, i1 false)
  %76 = getelementptr inbounds { <2 x float>, float }, ptr %24, i32 0, i32 0
  %77 = load <2 x float>, ptr %76, align 4
  %78 = getelementptr inbounds { <2 x float>, float }, ptr %24, i32 0, i32 1
  %79 = load float, ptr %78, align 4
  %80 = call float %59(ptr noundef byval(%struct.Shape) align 8 %15, <2 x float> %77, float %79)
  store float %80, ptr %16, align 4, !tbaa !9
  %81 = load float, ptr %12, align 4, !tbaa !9
  %82 = load float, ptr %16, align 4, !tbaa !9
  %83 = fcmp ogt float %81, %82
  br i1 %83, label %84, label %87

84:                                               ; preds = %54
  %85 = load float, ptr %16, align 4, !tbaa !9
  store float %85, ptr %12, align 4, !tbaa !9
  %86 = load i64, ptr %13, align 8, !tbaa !11
  store i64 %86, ptr %10, align 8, !tbaa !11
  br label %87

87:                                               ; preds = %84, %54
  %88 = load float, ptr %12, align 4, !tbaa !9
  %89 = fpext float %88 to double
  %90 = fcmp olt double %89, 1.000000e-02
  br i1 %90, label %91, label %138

91:                                               ; preds = %87
  %92 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %25) #3
  %93 = getelementptr inbounds %struct.Scene, ptr %0, i32 0, i32 0
  %94 = load i64, ptr %10, align 8, !tbaa !11
  %95 = getelementptr inbounds [256 x %struct.Shape], ptr %93, i64 0, i64 %94
  %96 = getelementptr inbounds %struct.Shape, ptr %95, i32 0, i32 7
  %97 = load ptr, ptr %96, align 8, !tbaa !20
  %98 = getelementptr inbounds %struct.Scene, ptr %0, i32 0, i32 0
  %99 = load i64, ptr %10, align 8, !tbaa !11
  %100 = getelementptr inbounds [256 x %struct.Shape], ptr %98, i64 0, i64 %99
  %101 = getelementptr inbounds %struct.Scene, ptr %0, i32 0, i32 3
  %102 = load float, ptr %9, align 4, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %28, ptr align 4 %6, i64 12, i1 false)
  %103 = getelementptr inbounds { <2 x float>, float }, ptr %28, i32 0, i32 0
  %104 = load <2 x float>, ptr %103, align 4
  %105 = getelementptr inbounds { <2 x float>, float }, ptr %28, i32 0, i32 1
  %106 = load float, ptr %105, align 4
  %107 = call { <2 x float>, float } @mul(<2 x float> %104, float %106, float noundef %102)
  store { <2 x float>, float } %107, ptr %29, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %27, ptr align 8 %29, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %30, ptr align 4 %101, i64 12, i1 false)
  %108 = getelementptr inbounds { <2 x float>, float }, ptr %30, i32 0, i32 0
  %109 = load <2 x float>, ptr %108, align 4
  %110 = getelementptr inbounds { <2 x float>, float }, ptr %30, i32 0, i32 1
  %111 = load float, ptr %110, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %31, ptr align 4 %27, i64 12, i1 false)
  %112 = getelementptr inbounds { <2 x float>, float }, ptr %31, i32 0, i32 0
  %113 = load <2 x float>, ptr %112, align 4
  %114 = getelementptr inbounds { <2 x float>, float }, ptr %31, i32 0, i32 1
  %115 = load float, ptr %114, align 4
  %116 = call { <2 x float>, float } @add(<2 x float> %109, float %111, <2 x float> %113, float %115)
  store { <2 x float>, float } %116, ptr %32, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %26, ptr align 8 %32, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %33, ptr align 4 %26, i64 12, i1 false)
  %117 = getelementptr inbounds { <2 x float>, float }, ptr %33, i32 0, i32 0
  %118 = load <2 x float>, ptr %117, align 4
  %119 = getelementptr inbounds { <2 x float>, float }, ptr %33, i32 0, i32 1
  %120 = load float, ptr %119, align 4
  %121 = call { <2 x float>, float } %97(ptr noundef byval(%struct.Shape) align 8 %100, <2 x float> %118, float %120)
  store { <2 x float>, float } %121, ptr %34, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 8 %34, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %92, ptr align 4 %25, i64 12, i1 false), !tbaa.struct !21
  call void @llvm.lifetime.end.p0(i64 12, ptr %25) #3
  %122 = getelementptr inbounds %struct.Scene, ptr %0, i32 0, i32 3
  %123 = load float, ptr %9, align 4, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %36, ptr align 4 %6, i64 12, i1 false)
  %124 = getelementptr inbounds { <2 x float>, float }, ptr %36, i32 0, i32 0
  %125 = load <2 x float>, ptr %124, align 4
  %126 = getelementptr inbounds { <2 x float>, float }, ptr %36, i32 0, i32 1
  %127 = load float, ptr %126, align 4
  %128 = call { <2 x float>, float } @mul(<2 x float> %125, float %127, float noundef %123)
  store { <2 x float>, float } %128, ptr %37, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %35, ptr align 8 %37, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %38, ptr align 4 %122, i64 12, i1 false)
  %129 = getelementptr inbounds { <2 x float>, float }, ptr %38, i32 0, i32 0
  %130 = load <2 x float>, ptr %129, align 4
  %131 = getelementptr inbounds { <2 x float>, float }, ptr %38, i32 0, i32 1
  %132 = load float, ptr %131, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %39, ptr align 4 %35, i64 12, i1 false)
  %133 = getelementptr inbounds { <2 x float>, float }, ptr %39, i32 0, i32 0
  %134 = load <2 x float>, ptr %133, align 4
  %135 = getelementptr inbounds { <2 x float>, float }, ptr %39, i32 0, i32 1
  %136 = load float, ptr %135, align 4
  %137 = call { <2 x float>, float } @add(<2 x float> %130, float %132, <2 x float> %134, float %136)
  store { <2 x float>, float } %137, ptr %40, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %5, ptr align 8 %40, i64 12, i1 false)
  store i32 1, ptr %14, align 4
  br label %139

138:                                              ; preds = %87
  store i32 0, ptr %14, align 4
  br label %139

139:                                              ; preds = %138, %91
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 56, ptr %15) #3
  %140 = load i32, ptr %14, align 4
  switch i32 %140, label %145 [
    i32 0, label %141
  ]

141:                                              ; preds = %139
  br label %142

142:                                              ; preds = %141
  %143 = load i64, ptr %13, align 8, !tbaa !11
  %144 = add i64 %143, 1
  store i64 %144, ptr %13, align 8, !tbaa !11
  br label %48, !llvm.loop !22

145:                                              ; preds = %139, %53
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  %146 = load i32, ptr %14, align 4
  switch i32 %146, label %155 [
    i32 5, label %147
  ]

147:                                              ; preds = %145
  %148 = load float, ptr %12, align 4, !tbaa !9
  %149 = load float, ptr %9, align 4, !tbaa !9
  %150 = fadd float %149, %148
  store float %150, ptr %9, align 4, !tbaa !9
  %151 = load float, ptr %9, align 4, !tbaa !9
  %152 = fcmp ogt float %151, 1.000000e+02
  br i1 %152, label %153, label %154

153:                                              ; preds = %147
  store i32 2, ptr %14, align 4
  br label %155

154:                                              ; preds = %147
  store i32 0, ptr %14, align 4
  br label %155

155:                                              ; preds = %154, %153, %145
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  %156 = load i32, ptr %14, align 4
  switch i32 %156, label %171 [
    i32 0, label %157
    i32 2, label %161
  ]

157:                                              ; preds = %155
  br label %158

158:                                              ; preds = %157
  %159 = load i64, ptr %11, align 8, !tbaa !11
  %160 = add i64 %159, 1
  store i64 %160, ptr %11, align 8, !tbaa !11
  br label %44, !llvm.loop !24

161:                                              ; preds = %155, %44
  %162 = load ptr, ptr %8, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.Vector, ptr %162, i32 0, i32 2
  store float 0.000000e+00, ptr %163, align 4, !tbaa !25
  %164 = load ptr, ptr %8, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.Vector, ptr %164, i32 0, i32 1
  store float 0.000000e+00, ptr %165, align 4, !tbaa !26
  %166 = load ptr, ptr %8, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.Vector, ptr %166, i32 0, i32 0
  store float 0.000000e+00, ptr %167, align 4, !tbaa !27
  %168 = getelementptr inbounds %struct.Vector, ptr %5, i32 0, i32 0
  store float 1.000000e+02, ptr %168, align 4, !tbaa !27
  %169 = getelementptr inbounds %struct.Vector, ptr %5, i32 0, i32 1
  store float 1.000000e+02, ptr %169, align 4, !tbaa !26
  %170 = getelementptr inbounds %struct.Vector, ptr %5, i32 0, i32 2
  store float 1.000000e+02, ptr %170, align 4, !tbaa !25
  store i32 1, ptr %14, align 4
  br label %171

171:                                              ; preds = %161, %155
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %41, ptr align 4 %5, i64 12, i1 false)
  %172 = load { <2 x float>, float }, ptr %41, align 8
  ret { <2 x float>, float } %172
}

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="64" "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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !12, i64 14336}
!14 = !{!"Scene", !7, i64 0, !12, i64 14336, !15, i64 14344, !15, i64 14356, !7, i64 14368}
!15 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8}
!16 = !{i64 0, i64 4, !9, i64 4, i64 4, !9, i64 8, i64 4, !9, i64 12, i64 4, !9, i64 16, i64 4, !9, i64 20, i64 4, !9, i64 24, i64 4, !9, i64 28, i64 4, !9, i64 32, i64 4, !9, i64 36, i64 3, !17, i64 40, i64 8, !5, i64 48, i64 8, !5}
!17 = !{!7, !7, i64 0}
!18 = !{!19, !6, i64 40}
!19 = !{!"Shape", !15, i64 0, !15, i64 12, !10, i64 24, !10, i64 28, !10, i64 32, !7, i64 36, !6, i64 40, !6, i64 48}
!20 = !{!19, !6, i64 48}
!21 = !{i64 0, i64 4, !9, i64 4, i64 4, !9, i64 8, i64 4, !9}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}
!25 = !{!15, !10, i64 8}
!26 = !{!15, !10, i64 4}
!27 = !{!15, !10, i64 0}


; 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.Scene = type { [256 x %struct.Shape], i64, %struct.Vector, %struct.Vector, [3 x i8] }
%struct.Shape = type { %struct.Vector, %struct.Vector, float, float, float, [3 x i8], ptr, ptr }
%struct.Vector = type { float, float, float }

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

; Function Attrs: nounwind uwtable
declare dso_local { <2 x float>, float } @add(<2 x float>, float, <2 x float>, float) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local { <2 x float>, float } @mul(<2 x float>, float, float noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local { <2 x float>, float } @get_intersection(ptr noundef byval(%struct.Scene) align 8 %0, <2 x float> %1, float %2, ptr nocapture noundef writeonly %3) local_unnamed_addr #2 {
  %5 = alloca %struct.Shape, align 8
  %6 = getelementptr inbounds i8, ptr %0, i64 14336
  %7 = getelementptr inbounds i8, ptr %5, i64 40
  %8 = getelementptr inbounds i8, ptr %0, i64 14356
  %.sroa.250.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 14364
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %3, i64 8
  %9 = load i64, ptr %6, align 8, !tbaa !5
  %.not133 = icmp eq i64 %9, 0
  br i1 %.not133, label %.split129.us, label %.preheader

.preheaderthread-pre-split:                       ; preds = %24
  %.pr = load i64, ptr %6, align 8, !tbaa !5
  br label %.preheader

.preheader:                                       ; preds = %4, %.preheaderthread-pre-split
  %10 = phi i64 [ %.pr, %.preheaderthread-pre-split ], [ 1, %4 ]
  %.0124 = phi float [ %22, %.preheaderthread-pre-split ], [ 0.000000e+00, %4 ]
  %.093123 = phi i64 [ %.3.ph, %.preheaderthread-pre-split ], [ 0, %4 ]
  %.095122 = phi i64 [ %25, %.preheaderthread-pre-split ], [ 0, %4 ]
  %.not115.not = icmp eq i64 %10, 0
  br i1 %.not115.not, label %.loopexit.thread, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader, %19
  %.194118 = phi i64 [ %.2, %19 ], [ %.093123, %.preheader ]
  %.096117 = phi float [ %.197, %19 ], [ 1.000000e+02, %.preheader ]
  %.099116 = phi i64 [ %20, %19 ], [ 0, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %5) #3
  %11 = getelementptr inbounds [256 x %struct.Shape], ptr %0, i64 0, i64 %.099116
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(56) %5, ptr noundef nonnull align 8 dereferenceable(56) %11, i64 56, i1 false), !tbaa.struct !12
  %12 = load ptr, ptr %7, align 8, !tbaa !17
  %13 = tail call { <2 x float>, float } @mul(<2 x float> %1, float %2, float noundef %.0124)
  %.fca.0.extract51 = extractvalue { <2 x float>, float } %13, 0
  %.fca.1.extract52 = extractvalue { <2 x float>, float } %13, 1
  %.sroa.049.0.copyload = load <2 x float>, ptr %8, align 4
  %.sroa.250.0.copyload = load float, ptr %.sroa.250.0..sroa_idx, align 4
  %14 = tail call { <2 x float>, float } @add(<2 x float> %.sroa.049.0.copyload, float %.sroa.250.0.copyload, <2 x float> %.fca.0.extract51, float %.fca.1.extract52)
  %.fca.0.extract43 = extractvalue { <2 x float>, float } %14, 0
  %.fca.1.extract44 = extractvalue { <2 x float>, float } %14, 1
  %15 = tail call float %12(ptr noundef nonnull byval(%struct.Shape) align 8 %5, <2 x float> %.fca.0.extract43, float %.fca.1.extract44) #3
  %16 = fcmp ogt float %.096117, %15
  %.197 = select i1 %16, float %15, float %.096117
  %.2 = select i1 %16, i64 %.099116, i64 %.194118
  %17 = fpext float %.197 to double
  %18 = fcmp uge double %17, 1.000000e-02
  br i1 %18, label %19, label %.loopexit110.loopexit

19:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %5) #3
  %20 = add nuw i64 %.099116, 1
  %21 = load i64, ptr %6, align 8, !tbaa !5
  %.not = icmp ult i64 %20, %21
  br i1 %.not, label %.lr.ph, label %.loopexit.thread, !llvm.loop !19

.loopexit.thread:                                 ; preds = %19, %.preheader
  %.298.ph = phi float [ 1.000000e+02, %.preheader ], [ %.197, %19 ]
  %.3.ph = phi i64 [ %.093123, %.preheader ], [ %.2, %19 ]
  %22 = fadd float %.0124, %.298.ph
  %23 = fcmp ogt float %22, 1.000000e+02
  br i1 %23, label %.split129.us, label %24

24:                                               ; preds = %.loopexit.thread
  %25 = add nuw nsw i64 %.095122, 1
  %exitcond.not = icmp eq i64 %25, 500
  br i1 %exitcond.not, label %.split129.us, label %.preheaderthread-pre-split, !llvm.loop !21

.split129.us:                                     ; preds = %24, %.loopexit.thread, %4
  store float 0.000000e+00, ptr %.sroa.4.0..sroa_idx, align 4, !tbaa !23
  store <2 x float> zeroinitializer, ptr %3, align 4, !tbaa !13
  br label %.loopexit110

.loopexit110.loopexit:                            ; preds = %.lr.ph
  %26 = getelementptr inbounds [256 x %struct.Shape], ptr %0, i64 0, i64 %.2
  %27 = getelementptr inbounds i8, ptr %26, i64 48
  %28 = load ptr, ptr %27, align 8, !tbaa !24
  %29 = tail call { <2 x float>, float } @mul(<2 x float> %1, float %2, float noundef %.0124)
  %.fca.0.extract30 = extractvalue { <2 x float>, float } %29, 0
  %.fca.1.extract31 = extractvalue { <2 x float>, float } %29, 1
  %.sroa.028.0.copyload = load <2 x float>, ptr %8, align 4
  %.sroa.229.0.copyload = load float, ptr %.sroa.250.0..sroa_idx, align 4
  %30 = tail call { <2 x float>, float } @add(<2 x float> %.sroa.028.0.copyload, float %.sroa.229.0.copyload, <2 x float> %.fca.0.extract30, float %.fca.1.extract31)
  %.fca.0.extract22 = extractvalue { <2 x float>, float } %30, 0
  %.fca.1.extract23 = extractvalue { <2 x float>, float } %30, 1
  %31 = tail call { <2 x float>, float } %28(ptr noundef nonnull byval(%struct.Shape) align 8 %26, <2 x float> %.fca.0.extract22, float %.fca.1.extract23) #3
  %.fca.0.extract16 = extractvalue { <2 x float>, float } %31, 0
  %.fca.1.extract17 = extractvalue { <2 x float>, float } %31, 1
  store <2 x float> %.fca.0.extract16, ptr %3, align 4
  store float %.fca.1.extract17, ptr %.sroa.4.0..sroa_idx, align 4, !tbaa !13
  %32 = tail call { <2 x float>, float } @mul(<2 x float> %1, float %2, float noundef %.0124)
  %.fca.0.extract8 = extractvalue { <2 x float>, float } %32, 0
  %.fca.1.extract9 = extractvalue { <2 x float>, float } %32, 1
  %.sroa.06.0.copyload = load <2 x float>, ptr %8, align 4
  %.sroa.27.0.copyload = load float, ptr %.sroa.250.0..sroa_idx, align 4
  %33 = tail call { <2 x float>, float } @add(<2 x float> %.sroa.06.0.copyload, float %.sroa.27.0.copyload, <2 x float> %.fca.0.extract8, float %.fca.1.extract9)
  %.fca.0.extract = extractvalue { <2 x float>, float } %33, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %33, 1
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %5) #3
  br label %.loopexit110

.loopexit110:                                     ; preds = %.loopexit110.loopexit, %.split129.us
  %.sroa.090.5 = phi <2 x float> [ <float 1.000000e+02, float 1.000000e+02>, %.split129.us ], [ %.fca.0.extract, %.loopexit110.loopexit ]
  %.sroa.492.4 = phi float [ 1.000000e+02, %.split129.us ], [ %.fca.1.extract, %.loopexit110.loopexit ]
  %.fca.0.insert = insertvalue { <2 x float>, float } poison, <2 x float> %.sroa.090.5, 0
  %.fca.1.insert = insertvalue { <2 x float>, float } %.fca.0.insert, float %.sroa.492.4, 1
  ret { <2 x float>, float } %.fca.1.insert
}

attributes #0 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="64" "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, !9, i64 14336}
!6 = !{!"Scene", !7, i64 0, !9, i64 14336, !10, i64 14344, !10, i64 14356, !7, i64 14368}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!"long", !7, i64 0}
!10 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8}
!11 = !{!"float", !7, i64 0}
!12 = !{i64 0, i64 4, !13, i64 4, i64 4, !13, i64 8, i64 4, !13, i64 12, i64 4, !13, i64 16, i64 4, !13, i64 20, i64 4, !13, i64 24, i64 4, !13, i64 28, i64 4, !13, i64 32, i64 4, !13, i64 36, i64 3, !14, i64 40, i64 8, !15, i64 48, i64 8, !15}
!13 = !{!11, !11, i64 0}
!14 = !{!7, !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"any pointer", !7, i64 0}
!17 = !{!18, !16, i64 40}
!18 = !{!"Shape", !10, i64 0, !10, i64 12, !11, i64 24, !11, i64 28, !11, i64 32, !7, i64 36, !16, i64 40, !16, i64 48}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20, !22}
!22 = !{!"llvm.loop.unswitch.partial.disable"}
!23 = !{!10, !11, i64 8}
!24 = !{!18, !16, i64 48}


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