; LLVM IR from niessner/Matterport :: code/gaps/pkgs/R3Shapes/R3Polyline.ll (ZN10R3PolylineC2ERKS_)

; 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.R3Polyline = type { %class.R3Curve, ptr, ptr, ptr, i32, %class.R3Box }
%class.R3Curve = type { %class.R3Shape }
%class.R3Shape = type { ptr }
%class.R3Box = type { %class.R3Solid, %class.R3Point, %class.R3Point }
%class.R3Solid = type { %class.R3Shape }
%class.R3Point = type { [3 x double] }

@_ZTV10R3Polyline = external dso_local unnamed_addr constant { [84 x ptr] }, align 8

declare void @_ZN7R3CurveC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @_ZN7R3CurveD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10R3PolylineC2ERKS_(ptr noundef nonnull align 8 dereferenceable(96) %0, ptr noundef nonnull align 8 dereferenceable(96) %1) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %8 = load ptr, ptr %3, align 8
  call void @_ZN7R3CurveC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8)
  store ptr getelementptr inbounds inrange(-16, 656) ({ [84 x ptr] }, ptr @_ZTV10R3Polyline, i32 0, i32 0, i32 2), ptr %8, align 8, !tbaa !9
  %9 = getelementptr inbounds %class.R3Polyline, ptr %8, i32 0, i32 1
  store ptr null, ptr %9, align 8, !tbaa !11
  %10 = getelementptr inbounds %class.R3Polyline, ptr %8, i32 0, i32 2
  store ptr null, ptr %10, align 8, !tbaa !19
  %11 = getelementptr inbounds %class.R3Polyline, ptr %8, i32 0, i32 3
  store ptr null, ptr %11, align 8, !tbaa !20
  %12 = getelementptr inbounds %class.R3Polyline, ptr %8, i32 0, i32 4
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = getelementptr inbounds %class.R3Polyline, ptr %13, i32 0, i32 4
  %15 = load i32, ptr %14, align 8, !tbaa !21
  store i32 %15, ptr %12, align 8, !tbaa !21
  %16 = getelementptr inbounds %class.R3Polyline, ptr %8, i32 0, i32 5
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = load ptr, ptr %17, align 8, !tbaa !9
  %19 = getelementptr inbounds ptr, ptr %18, i64 17
  %20 = load ptr, ptr %19, align 8
  invoke void %20(ptr dead_on_unwind writable sret(%class.R3Box) align 8 %16, ptr noundef nonnull align 8 dereferenceable(96) %17)
          to label %21 unwind label %61

21:                                               ; preds = %2
  %22 = getelementptr inbounds %class.R3Polyline, ptr %8, i32 0, i32 4
  %23 = load i32, ptr %22, align 8, !tbaa !21
  %24 = icmp sgt i32 %23, 0
  br i1 %24, label %25, label %107

25:                                               ; preds = %21
  %26 = getelementptr inbounds %class.R3Polyline, ptr %8, i32 0, i32 4
  %27 = load i32, ptr %26, align 8, !tbaa !21
  %28 = sext i32 %27 to i64
  %29 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %28, i64 24)
  %30 = extractvalue { i64, i1 } %29, 1
  %31 = extractvalue { i64, i1 } %29, 0
  %32 = select i1 %30, i64 -1, i64 %31
  %33 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %32) #7
          to label %34 unwind label %65

34:                                               ; preds = %25
  %35 = icmp eq i64 %28, 0
  br i1 %35, label %43, label %36

36:                                               ; preds = %34
  %37 = getelementptr inbounds %class.R3Point, ptr %33, i64 %28
  br label %38

38:                                               ; preds = %40, %36
  %39 = phi ptr [ %33, %36 ], [ %41, %40 ]
  invoke void @_ZN7R3PointC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %39)
          to label %40 unwind label %69

40:                                               ; preds = %38
  %41 = getelementptr inbounds %class.R3Point, ptr %39, i64 1
  %42 = icmp eq ptr %41, %37
  br i1 %42, label %43, label %38

43:                                               ; preds = %40, %34
  %44 = getelementptr inbounds %class.R3Polyline, ptr %8, i32 0, i32 1
  store ptr %33, ptr %44, align 8, !tbaa !11
  %45 = getelementptr inbounds %class.R3Polyline, ptr %8, i32 0, i32 4
  %46 = load i32, ptr %45, align 8, !tbaa !21
  %47 = sext i32 %46 to i64
  %48 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %47, i64 8)
  %49 = extractvalue { i64, i1 } %48, 1
  %50 = extractvalue { i64, i1 } %48, 0
  %51 = select i1 %49, i64 -1, i64 %50
  %52 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %51) #7
          to label %53 unwind label %65

53:                                               ; preds = %43
  %54 = getelementptr inbounds %class.R3Polyline, ptr %8, i32 0, i32 2
  store ptr %52, ptr %54, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  store i32 0, ptr %7, align 4, !tbaa !22
  br label %55

55:                                               ; preds = %99, %53
  %56 = load i32, ptr %7, align 4, !tbaa !22
  %57 = getelementptr inbounds %class.R3Polyline, ptr %8, i32 0, i32 4
  %58 = load i32, ptr %57, align 8, !tbaa !21
  %59 = icmp slt i32 %56, %58
  br i1 %59, label %73, label %60

60:                                               ; preds = %55
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  br label %106

61:                                               ; preds = %2
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %5, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %6, align 4
  br label %109

65:                                               ; preds = %43, %25
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %5, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %6, align 4
  br label %108

69:                                               ; preds = %38
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %5, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %6, align 4
  call void @_ZdaPvm(ptr noundef %33, i64 noundef %32) #9
  br label %108

73:                                               ; preds = %55
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = getelementptr inbounds %class.R3Polyline, ptr %74, i32 0, i32 1
  %76 = load ptr, ptr %75, align 8, !tbaa !11
  %77 = load i32, ptr %7, align 4, !tbaa !22
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds %class.R3Point, ptr %76, i64 %78
  %80 = getelementptr inbounds %class.R3Polyline, ptr %8, i32 0, i32 1
  %81 = load ptr, ptr %80, align 8, !tbaa !11
  %82 = load i32, ptr %7, align 4, !tbaa !22
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds %class.R3Point, ptr %81, i64 %83
  %85 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN7R3PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(24) %84, ptr noundef nonnull align 8 dereferenceable(24) %79)
          to label %86 unwind label %102

86:                                               ; preds = %73
  %87 = load ptr, ptr %4, align 8, !tbaa !5
  %88 = getelementptr inbounds %class.R3Polyline, ptr %87, i32 0, i32 2
  %89 = load ptr, ptr %88, align 8, !tbaa !19
  %90 = load i32, ptr %7, align 4, !tbaa !22
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds double, ptr %89, i64 %91
  %93 = load double, ptr %92, align 8, !tbaa !23
  %94 = getelementptr inbounds %class.R3Polyline, ptr %8, i32 0, i32 2
  %95 = load ptr, ptr %94, align 8, !tbaa !19
  %96 = load i32, ptr %7, align 4, !tbaa !22
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds double, ptr %95, i64 %97
  store double %93, ptr %98, align 8, !tbaa !23
  br label %99

99:                                               ; preds = %86
  %100 = load i32, ptr %7, align 4, !tbaa !22
  %101 = add nsw i32 %100, 1
  store i32 %101, ptr %7, align 4, !tbaa !22
  br label %55, !llvm.loop !25

102:                                              ; preds = %73
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %5, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  br label %108

106:                                              ; preds = %60
  br label %107

107:                                              ; preds = %106, %21
  ret void

108:                                              ; preds = %102, %69, %65
  call void @_ZN7R3SolidD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %16) #8
  br label %109

109:                                              ; preds = %108, %61
  call void @_ZN7R3CurveD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #8
  br label %110

110:                                              ; preds = %109
  %111 = load ptr, ptr %5, align 8
  %112 = load i32, ptr %6, align 4
  %113 = insertvalue { ptr, i32 } poison, ptr %111, 0
  %114 = insertvalue { ptr, i32 } %113, i32 %112, 1
  resume { ptr, i32 } %114
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #3

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #4

declare void @_ZN7R3PointC1Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPvm(ptr noundef, i64 noundef) #5

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

declare noundef nonnull align 8 dereferenceable(24) ptr @_ZN7R3PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #0

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

; Function Attrs: nounwind
declare void @_ZN7R3SolidD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1

attributes #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 = { 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 #2 = { 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 #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nobuiltin allocsize(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 #5 = { nobuiltin 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 #6 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { builtin allocsize(0) }
attributes #8 = { nounwind }
attributes #9 = { builtin 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 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !6, i64 8}
!12 = !{!"_ZTS10R3Polyline", !13, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !15, i64 32, !16, i64 40}
!13 = !{!"_ZTS7R3Curve", !14, i64 0}
!14 = !{!"_ZTS7R3Shape"}
!15 = !{!"int", !7, i64 0}
!16 = !{!"_ZTS5R3Box", !17, i64 0, !18, i64 8, !18, i64 32}
!17 = !{!"_ZTS7R3Solid", !14, i64 0}
!18 = !{!"_ZTS7R3Point", !7, i64 0}
!19 = !{!12, !6, i64 16}
!20 = !{!12, !6, i64 24}
!21 = !{!12, !15, i64 32}
!22 = !{!15, !15, i64 0}
!23 = !{!24, !24, i64 0}
!24 = !{!"double", !7, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}


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

%class.R3Box = type { %class.R3Solid, %class.R3Point, %class.R3Point }
%class.R3Solid = type { %class.R3Shape }
%class.R3Shape = type { ptr }
%class.R3Point = type { [3 x double] }

@_ZTV10R3Polyline = external dso_local unnamed_addr constant { [84 x ptr] }, align 8

declare void @_ZN7R3CurveC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @_ZN7R3CurveD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10R3PolylineC2ERKS_(ptr noundef nonnull align 8 dereferenceable(96) %0, ptr noundef nonnull align 8 dereferenceable(96) %1) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  tail call void @_ZN7R3CurveC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0)
  store ptr getelementptr inbounds inrange(-16, 656) (i8, ptr @_ZTV10R3Polyline, i64 16), ptr %0, align 8, !tbaa !5
  %3 = getelementptr inbounds i8, ptr %0, i64 8
  %4 = getelementptr inbounds i8, ptr %0, i64 16
  %5 = getelementptr inbounds i8, ptr %0, i64 32
  %6 = getelementptr inbounds i8, ptr %1, i64 32
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %3, i8 0, i64 24, i1 false)
  %7 = load i32, ptr %6, align 8, !tbaa !8
  store i32 %7, ptr %5, align 8, !tbaa !8
  %8 = getelementptr inbounds i8, ptr %0, i64 40
  %9 = load ptr, ptr %1, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %9, i64 136
  %11 = load ptr, ptr %10, align 8
  invoke void %11(ptr dead_on_unwind nonnull writable sret(%class.R3Box) align 8 %8, ptr noundef nonnull align 8 dereferenceable(96) %1)
          to label %12 unwind label %37

12:                                               ; preds = %2
  %13 = load i32, ptr %5, align 8, !tbaa !8
  %14 = icmp sgt i32 %13, 0
  br i1 %14, label %15, label %.loopexit

15:                                               ; preds = %12
  %16 = zext nneg i32 %13 to i64
  %17 = mul nuw nsw i64 %16, 24
  %18 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %17) #6
          to label %19 unwind label %39

19:                                               ; preds = %15
  %20 = getelementptr inbounds %class.R3Point, ptr %18, i64 %16
  br label %21

21:                                               ; preds = %23, %19
  %22 = phi ptr [ %18, %19 ], [ %24, %23 ]
  invoke void @_ZN7R3PointC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %22)
          to label %23 unwind label %41

23:                                               ; preds = %21
  %24 = getelementptr inbounds i8, ptr %22, i64 24
  %25 = icmp eq ptr %24, %20
  br i1 %25, label %26, label %21

26:                                               ; preds = %23
  store ptr %18, ptr %3, align 8, !tbaa !18
  %27 = load i32, ptr %5, align 8, !tbaa !8
  %28 = sext i32 %27 to i64
  %29 = icmp slt i32 %27, 0
  %30 = shl nsw i64 %28, 3
  %31 = select i1 %29, i64 -1, i64 %30
  %32 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %31) #6
          to label %33 unwind label %39

33:                                               ; preds = %26
  store ptr %32, ptr %4, align 8, !tbaa !19
  %34 = icmp sgt i32 %27, 0
  br i1 %34, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %33
  %35 = getelementptr inbounds i8, ptr %1, i64 8
  %36 = getelementptr inbounds i8, ptr %1, i64 16
  br label %43

37:                                               ; preds = %2
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %61

39:                                               ; preds = %26, %15
  %40 = landingpad { ptr, i32 }
          cleanup
  br label %60

41:                                               ; preds = %21
  %42 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdaPvm(ptr noundef nonnull %18, i64 noundef %17) #7
  br label %60

43:                                               ; preds = %.lr.ph, %49
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %49 ]
  %44 = load ptr, ptr %35, align 8, !tbaa !18
  %45 = getelementptr inbounds %class.R3Point, ptr %44, i64 %indvars.iv
  %46 = load ptr, ptr %3, align 8, !tbaa !18
  %47 = getelementptr inbounds %class.R3Point, ptr %46, i64 %indvars.iv
  %48 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN7R3PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(24) %47, ptr noundef nonnull align 8 dereferenceable(24) %45)
          to label %49 unwind label %58

49:                                               ; preds = %43
  %50 = load ptr, ptr %36, align 8, !tbaa !19
  %51 = getelementptr inbounds double, ptr %50, i64 %indvars.iv
  %52 = load double, ptr %51, align 8, !tbaa !20
  %53 = load ptr, ptr %4, align 8, !tbaa !19
  %54 = getelementptr inbounds double, ptr %53, i64 %indvars.iv
  store double %52, ptr %54, align 8, !tbaa !20
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %55 = load i32, ptr %5, align 8, !tbaa !8
  %56 = sext i32 %55 to i64
  %57 = icmp slt i64 %indvars.iv.next, %56
  br i1 %57, label %43, label %.loopexit, !llvm.loop !22

58:                                               ; preds = %43
  %59 = landingpad { ptr, i32 }
          cleanup
  br label %60

.loopexit:                                        ; preds = %49, %33, %12
  ret void

60:                                               ; preds = %58, %41, %39
  %.pn = phi { ptr, i32 } [ %59, %58 ], [ %40, %39 ], [ %42, %41 ]
  tail call void @_ZN7R3SolidD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %8) #8
  br label %61

61:                                               ; preds = %60, %37
  %.pn.pn = phi { ptr, i32 } [ %.pn, %60 ], [ %38, %37 ]
  tail call void @_ZN7R3CurveD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #8
  resume { ptr, i32 } %.pn.pn
}

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #3

declare void @_ZN7R3PointC1Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPvm(ptr noundef, i64 noundef) local_unnamed_addr #4

declare noundef nonnull align 8 dereferenceable(24) ptr @_ZN7R3PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0

; Function Attrs: nounwind
declare void @_ZN7R3SolidD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

attributes #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 = { 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 #2 = { 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 #3 = { nobuiltin allocsize(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 #4 = { nobuiltin 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { builtin allocsize(0) }
attributes #7 = { builtin nounwind }
attributes #8 = { 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, !14, i64 32}
!9 = !{!"_ZTS10R3Polyline", !10, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !14, i64 32, !15, i64 40}
!10 = !{!"_ZTS7R3Curve", !11, i64 0}
!11 = !{!"_ZTS7R3Shape"}
!12 = !{!"any pointer", !13, i64 0}
!13 = !{!"omnipotent char", !7, i64 0}
!14 = !{!"int", !13, i64 0}
!15 = !{!"_ZTS5R3Box", !16, i64 0, !17, i64 8, !17, i64 32}
!16 = !{!"_ZTS7R3Solid", !11, i64 0}
!17 = !{!"_ZTS7R3Point", !13, i64 0}
!18 = !{!9, !12, i64 8}
!19 = !{!9, !12, i64 16}
!20 = !{!21, !21, i64 0}
!21 = !{!"double", !13, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}


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