; LLVM IR from ronan-kerviche/glip-lib :: GLIP-Lib/src/Core (Geometry)

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

%"class.Glip::CorePipeline::GeometryPrimitives::PointsGrid2D" = type <{ %"class.Glip::CorePipeline::GeometryModel", i32, i32, i8, [7 x i8] }>
%"class.Glip::CorePipeline::GeometryModel" = type { ptr, %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector.0", i32, i8, i8, i32, i32, i32, i32 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@_ZTVN4Glip12CorePipeline18GeometryPrimitives12PointsGrid2DE = external dso_local unnamed_addr constant { [4 x ptr] }, align 8

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4Glip12CorePipeline13GeometryModelC2ENS1_12GeometryTypeEijbb(ptr noundef nonnull align 8 dereferenceable(128), i32 noundef, i32 noundef, i32 noundef, i1 noundef zeroext, i1 noundef zeroext) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

; 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: mustprogress uwtable
declare dso_local void @_ZN4Glip12CorePipeline13GeometryModel15reserveVerticesEm(ptr noundef nonnull align 8 dereferenceable(128), i64 noundef) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN4Glip12CorePipeline13GeometryModel11addVertex2DERKfS3_S3_S3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Glip12CorePipeline18GeometryPrimitives12PointsGrid2DC2Eiib(ptr noundef nonnull align 8 dereferenceable(137) %0, i32 noundef %1, i32 noundef %2, i1 noundef zeroext %3) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i8, align 1
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, 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 float, align 4
  %20 = alloca float, align 4
  %21 = alloca float, align 4
  %22 = alloca float, align 4
  %23 = alloca float, align 4
  %24 = alloca float, align 4
  %25 = alloca float, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store i32 %2, ptr %7, align 4, !tbaa !9
  %26 = zext i1 %3 to i8
  store i8 %26, ptr %8, align 1, !tbaa !11
  %27 = load ptr, ptr %5, align 8
  call void @_ZN4Glip12CorePipeline13GeometryModelC2ENS1_12GeometryTypeEijbb(ptr noundef nonnull align 8 dereferenceable(128) %27, i32 noundef 3, i32 noundef 2, i32 noundef 0, i1 noundef zeroext false, i1 noundef zeroext false)
  store ptr getelementptr inbounds inrange(-16, 16) ({ [4 x ptr] }, ptr @_ZTVN4Glip12CorePipeline18GeometryPrimitives12PointsGrid2DE, i32 0, i32 0, i32 2), ptr %27, align 8, !tbaa !13
  %28 = getelementptr inbounds %"class.Glip::CorePipeline::GeometryPrimitives::PointsGrid2D", ptr %27, i32 0, i32 1
  %29 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %29, ptr %28, align 8, !tbaa !15
  %30 = getelementptr inbounds %"class.Glip::CorePipeline::GeometryPrimitives::PointsGrid2D", ptr %27, i32 0, i32 2
  %31 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %31, ptr %30, align 4, !tbaa !27
  %32 = getelementptr inbounds %"class.Glip::CorePipeline::GeometryPrimitives::PointsGrid2D", ptr %27, i32 0, i32 3
  %33 = load i8, ptr %8, align 1, !tbaa !11, !range !28, !noundef !29
  %34 = trunc i8 %33 to i1
  %35 = zext i1 %34 to i8
  store i8 %35, ptr %32, align 8, !tbaa !30
  %36 = load i32, ptr %6, align 4, !tbaa !9
  %37 = load i32, ptr %7, align 4, !tbaa !9
  %38 = mul nsw i32 %36, %37
  %39 = sext i32 %38 to i64
  invoke void @_ZN4Glip12CorePipeline13GeometryModel15reserveVerticesEm(ptr noundef nonnull align 8 dereferenceable(128) %27, i64 noundef %39)
          to label %40 unwind label %46

40:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %41

41:                                               ; preds = %95, %40
  %42 = load i32, ptr %11, align 4, !tbaa !9
  %43 = load i32, ptr %7, align 4, !tbaa !9
  %44 = icmp slt i32 %42, %43
  br i1 %44, label %50, label %45

45:                                               ; preds = %41
  store i32 2, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  br label %98

46:                                               ; preds = %4
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %9, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %10, align 4
  br label %99

50:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %51

51:                                               ; preds = %90, %50
  %52 = load i32, ptr %13, align 4, !tbaa !9
  %53 = load i32, ptr %6, align 4, !tbaa !9
  %54 = icmp slt i32 %52, %53
  br i1 %54, label %56, label %55

55:                                               ; preds = %51
  store i32 5, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  br label %94

56:                                               ; preds = %51
  %57 = load i8, ptr %8, align 1, !tbaa !11, !range !28, !noundef !29
  %58 = trunc i8 %57 to i1
  br i1 %58, label %70, label %59

59:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  %60 = load i32, ptr %13, align 4, !tbaa !9
  %61 = sitofp i32 %60 to float
  store float %61, ptr %14, align 4, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  %62 = load i32, ptr %11, align 4, !tbaa !9
  %63 = sitofp i32 %62 to float
  store float %63, ptr %15, align 4, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  store float 0.000000e+00, ptr %16, align 4, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  store float 0.000000e+00, ptr %17, align 4, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
  store float 0.000000e+00, ptr %18, align 4, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #3
  store float 0.000000e+00, ptr %19, align 4, !tbaa !31
  %64 = invoke noundef i32 @_ZN4Glip12CorePipeline13GeometryModel11addVertex2DERKfS3_S3_S3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(128) %27, ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(4) %19)
          to label %65 unwind label %66

65:                                               ; preds = %59
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  br label %89

66:                                               ; preds = %59
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %9, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  br label %93

70:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #3
  %71 = load i32, ptr %13, align 4, !tbaa !9
  %72 = sitofp i32 %71 to float
  %73 = load i32, ptr %6, align 4, !tbaa !9
  %74 = sub nsw i32 %73, 1
  %75 = sitofp i32 %74 to float
  %76 = fdiv float %72, %75
  store float %76, ptr %20, align 4, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #3
  %77 = load i32, ptr %11, align 4, !tbaa !9
  %78 = sitofp i32 %77 to float
  %79 = load i32, ptr %7, align 4, !tbaa !9
  %80 = sub nsw i32 %79, 1
  %81 = sitofp i32 %80 to float
  %82 = fdiv float %78, %81
  store float %82, ptr %21, align 4, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #3
  store float 0.000000e+00, ptr %22, align 4, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #3
  store float 0.000000e+00, ptr %23, align 4, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #3
  store float 0.000000e+00, ptr %24, align 4, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #3
  store float 0.000000e+00, ptr %25, align 4, !tbaa !31
  %83 = invoke noundef i32 @_ZN4Glip12CorePipeline13GeometryModel11addVertex2DERKfS3_S3_S3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(128) %27, ptr noundef nonnull align 4 dereferenceable(4) %20, ptr noundef nonnull align 4 dereferenceable(4) %21, ptr noundef nonnull align 4 dereferenceable(4) %22, ptr noundef nonnull align 4 dereferenceable(4) %23, ptr noundef nonnull align 4 dereferenceable(4) %24, ptr noundef nonnull align 4 dereferenceable(4) %25)
          to label %84 unwind label %85

84:                                               ; preds = %70
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #3
  br label %89

85:                                               ; preds = %70
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %9, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #3
  br label %93

89:                                               ; preds = %84, %65
  br label %90

90:                                               ; preds = %89
  %91 = load i32, ptr %13, align 4, !tbaa !9
  %92 = add nsw i32 %91, 1
  store i32 %92, ptr %13, align 4, !tbaa !9
  br label %51, !llvm.loop !33

93:                                               ; preds = %85, %66
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  br label %99

94:                                               ; preds = %55
  br label %95

95:                                               ; preds = %94
  %96 = load i32, ptr %11, align 4, !tbaa !9
  %97 = add nsw i32 %96, 1
  store i32 %97, ptr %11, align 4, !tbaa !9
  br label %41, !llvm.loop !35

98:                                               ; preds = %45
  ret void

99:                                               ; preds = %93, %46
  call void @_ZN4Glip12CorePipeline13GeometryModelD2Ev(ptr noundef nonnull align 8 dereferenceable(128) %27) #3
  br label %100

100:                                              ; preds = %99
  %101 = load ptr, ptr %9, align 8
  %102 = load i32, ptr %10, align 4
  %103 = insertvalue { ptr, i32 } poison, ptr %101, 0
  %104 = insertvalue { ptr, i32 } %103, i32 %102, 1
  resume { ptr, i32 } %104
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4Glip12CorePipeline13GeometryModelD2Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #2 align 2

attributes #0 = { mustprogress 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 = { mustprogress 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 #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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"vtable pointer", !8, i64 0}
!15 = !{!16, !10, i64 128}
!16 = !{!"_ZTSN4Glip12CorePipeline18GeometryPrimitives12PointsGrid2DE", !17, i64 0, !10, i64 128, !10, i64 132, !12, i64 136}
!17 = !{!"_ZTSN4Glip12CorePipeline13GeometryModelE", !18, i64 8, !18, i64 32, !18, i64 56, !22, i64 80, !26, i64 104, !12, i64 108, !12, i64 109, !10, i64 112, !10, i64 116, !10, i64 120, !10, i64 124}
!18 = !{!"_ZTSSt6vectorIfSaIfEE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!22 = !{!"_ZTSSt6vectorIjSaIjEE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!26 = !{!"_ZTSN4Glip12CorePipeline13GeometryModel12GeometryTypeE", !7, i64 0}
!27 = !{!16, !10, i64 132}
!28 = !{i8 0, i8 2}
!29 = !{}
!30 = !{!16, !12, i64 136}
!31 = !{!32, !32, i64 0}
!32 = !{!"float", !7, i64 0}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}
!35 = distinct !{!35, !34}


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

@_ZTVN4Glip12CorePipeline18GeometryPrimitives12PointsGrid2DE = external dso_local unnamed_addr constant { [4 x ptr] }, align 8

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4Glip12CorePipeline13GeometryModelC2ENS1_12GeometryTypeEijbb(ptr noundef nonnull align 8 dereferenceable(128), i32 noundef, i32 noundef, i32 noundef, i1 noundef zeroext, i1 noundef zeroext) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

; 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: mustprogress uwtable
declare dso_local void @_ZN4Glip12CorePipeline13GeometryModel15reserveVerticesEm(ptr noundef nonnull align 8 dereferenceable(128), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN4Glip12CorePipeline13GeometryModel11addVertex2DERKfS3_S3_S3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Glip12CorePipeline18GeometryPrimitives12PointsGrid2DC2Eiib(ptr noundef nonnull align 8 dereferenceable(137) %0, i32 noundef %1, i32 noundef %2, i1 noundef zeroext %3) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca float, align 4
  %6 = alloca float, align 4
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = zext i1 %3 to i8
  tail call void @_ZN4Glip12CorePipeline13GeometryModelC2ENS1_12GeometryTypeEijbb(ptr noundef nonnull align 8 dereferenceable(128) %0, i32 noundef 3, i32 noundef 2, i32 noundef 0, i1 noundef zeroext false, i1 noundef zeroext false)
  store ptr getelementptr inbounds inrange(-16, 16) (i8, ptr @_ZTVN4Glip12CorePipeline18GeometryPrimitives12PointsGrid2DE, i64 16), ptr %0, align 8, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %0, i64 128
  store i32 %1, ptr %18, align 8, !tbaa !8
  %19 = getelementptr inbounds i8, ptr %0, i64 132
  store i32 %2, ptr %19, align 4, !tbaa !24
  %20 = getelementptr inbounds i8, ptr %0, i64 136
  store i8 %17, ptr %20, align 8, !tbaa !25
  %21 = mul nsw i32 %2, %1
  %22 = sext i32 %21 to i64
  invoke void @_ZN4Glip12CorePipeline13GeometryModel15reserveVerticesEm(ptr noundef nonnull align 8 dereferenceable(128) %0, i64 noundef %22)
          to label %.preheader28 unwind label %47

.preheader28:                                     ; preds = %4
  %23 = icmp sgt i32 %2, 0
  br i1 %23, label %.preheader.lr.ph, label %._crit_edge31

.preheader.lr.ph:                                 ; preds = %.preheader28
  %24 = icmp sgt i32 %1, 0
  %25 = add nsw i32 %1, -1
  %26 = sitofp i32 %25 to float
  %27 = add nsw i32 %2, -1
  %28 = uitofp nneg i32 %27 to float
  br i1 %24, label %.preheader.lr.ph.split.us, label %._crit_edge31

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

.preheader.us.us:                                 ; preds = %.preheader.lr.ph.split.us, %._crit_edge.split.us.us.us
  %.02030.us.us = phi i32 [ %37, %._crit_edge.split.us.us.us ], [ 0, %.preheader.lr.ph.split.us ]
  %29 = uitofp nneg i32 %.02030.us.us to float
  %30 = fdiv float %29, %28
  br label %31

31:                                               ; preds = %35, %.preheader.us.us
  %.029.us.us.us = phi i32 [ 0, %.preheader.us.us ], [ %36, %35 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #3
  %32 = uitofp nneg i32 %.029.us.us.us to float
  %33 = fdiv float %32, %26
  store float %33, ptr %11, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #3
  store float %30, ptr %12, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #3
  store float 0.000000e+00, ptr %13, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #3
  store float 0.000000e+00, ptr %14, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #3
  store float 0.000000e+00, ptr %15, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #3
  store float 0.000000e+00, ptr %16, align 4, !tbaa !26
  %34 = invoke noundef i32 @_ZN4Glip12CorePipeline13GeometryModel11addVertex2DERKfS3_S3_S3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %16)
          to label %35 unwind label %.split.us.split.us.split.us

35:                                               ; preds = %31
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #3
  %36 = add nuw nsw i32 %.029.us.us.us, 1
  %exitcond40.not = icmp eq i32 %36, %1
  br i1 %exitcond40.not, label %._crit_edge.split.us.us.us, label %31, !llvm.loop !28

._crit_edge.split.us.us.us:                       ; preds = %35
  %37 = add nuw nsw i32 %.02030.us.us, 1
  %exitcond41.not = icmp eq i32 %37, %2
  br i1 %exitcond41.not, label %._crit_edge31, label %.preheader.us.us, !llvm.loop !30

.split.us.split.us.split.us:                      ; preds = %31
  %38 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #3
  br label %49

.preheader.us:                                    ; preds = %.preheader.lr.ph.split.us, %._crit_edge.split.us33
  %.02030.us = phi i32 [ %45, %._crit_edge.split.us33 ], [ 0, %.preheader.lr.ph.split.us ]
  %39 = uitofp nneg i32 %.02030.us to float
  br label %40

40:                                               ; preds = %.preheader.us, %43
  %.029.us32 = phi i32 [ 0, %.preheader.us ], [ %44, %43 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #3
  %41 = uitofp nneg i32 %.029.us32 to float
  store float %41, ptr %5, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #3
  store float %39, ptr %6, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #3
  store float 0.000000e+00, ptr %7, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #3
  store float 0.000000e+00, ptr %8, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #3
  store float 0.000000e+00, ptr %9, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #3
  store float 0.000000e+00, ptr %10, align 4, !tbaa !26
  %42 = invoke noundef i32 @_ZN4Glip12CorePipeline13GeometryModel11addVertex2DERKfS3_S3_S3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %43 unwind label %.split.us35

43:                                               ; preds = %40
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #3
  %44 = add nuw nsw i32 %.029.us32, 1
  %exitcond.not = icmp eq i32 %44, %1
  br i1 %exitcond.not, label %._crit_edge.split.us33, label %40, !llvm.loop !28

._crit_edge.split.us33:                           ; preds = %43
  %45 = add nuw nsw i32 %.02030.us, 1
  %exitcond39.not = icmp eq i32 %45, %2
  br i1 %exitcond39.not, label %._crit_edge31, label %.preheader.us, !llvm.loop !30

.split.us35:                                      ; preds = %40
  %46 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #3
  br label %49

._crit_edge31:                                    ; preds = %._crit_edge.split.us33, %._crit_edge.split.us.us.us, %.preheader.lr.ph, %.preheader28
  ret void

47:                                               ; preds = %4
  %48 = landingpad { ptr, i32 }
          cleanup
  br label %49

49:                                               ; preds = %.split.us35, %.split.us.split.us.split.us, %47
  %.pn.pn = phi { ptr, i32 } [ %48, %47 ], [ %38, %.split.us.split.us.split.us ], [ %46, %.split.us35 ]
  call void @_ZN4Glip12CorePipeline13GeometryModelD2Ev(ptr noundef nonnull align 8 dereferenceable(128) %0) #3
  resume { ptr, i32 } %.pn.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4Glip12CorePipeline13GeometryModelD2Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #2 align 2

attributes #0 = { mustprogress 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 = { mustprogress 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 #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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !23, i64 128}
!9 = !{!"_ZTSN4Glip12CorePipeline18GeometryPrimitives12PointsGrid2DE", !10, i64 0, !23, i64 128, !23, i64 132, !22, i64 136}
!10 = !{!"_ZTSN4Glip12CorePipeline13GeometryModelE", !11, i64 8, !11, i64 32, !11, i64 56, !17, i64 80, !21, i64 104, !22, i64 108, !22, i64 109, !23, i64 112, !23, i64 116, !23, i64 120, !23, i64 124}
!11 = !{!"_ZTSSt6vectorIfSaIfEE", !12, i64 0}
!12 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!15 = !{!"any pointer", !16, i64 0}
!16 = !{!"omnipotent char", !7, i64 0}
!17 = !{!"_ZTSSt6vectorIjSaIjEE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!21 = !{!"_ZTSN4Glip12CorePipeline13GeometryModel12GeometryTypeE", !16, i64 0}
!22 = !{!"bool", !16, i64 0}
!23 = !{!"int", !16, i64 0}
!24 = !{!9, !23, i64 132}
!25 = !{!9, !22, i64 136}
!26 = !{!27, !27, i64 0}
!27 = !{!"float", !16, i64 0}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = distinct !{!30, !29}


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