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

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

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

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: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) #2 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN5R3BoxixEi(ptr noundef nonnull align 8 dereferenceable(56), i32 noundef) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK5R3Box6OctantEiii(ptr dead_on_unwind noalias writable sret(%class.R3Box) align 8 %0, ptr noundef nonnull align 8 dereferenceable(56) %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #4 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i1, align 1
  %12 = alloca %class.R3Point, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  store ptr %0, ptr %6, align 8
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i32 %2, ptr %8, align 4, !tbaa !9
  store i32 %3, ptr %9, align 4, !tbaa !9
  store i32 %4, ptr %10, align 4, !tbaa !9
  %15 = load ptr, ptr %7, align 8
  store i1 false, ptr %11, align 1
  call void @_ZN5R3BoxC1Ev(ptr noundef nonnull align 8 dereferenceable(56) %0)
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #5
  %16 = load ptr, ptr %15, align 8, !tbaa !11
  %17 = getelementptr inbounds ptr, ptr %16, i64 13
  %18 = load ptr, ptr %17, align 8
  invoke void %18(ptr dead_on_unwind writable sret(%class.R3Point) align 8 %12, ptr noundef nonnull align 8 dereferenceable(56) %15)
          to label %19 unwind label %37

19:                                               ; preds = %5
  %20 = load i32, ptr %8, align 4, !tbaa !9
  %21 = icmp eq i32 %20, 1
  br i1 %21, label %22, label %41

22:                                               ; preds = %19
  %23 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %12, i32 noundef 0)
          to label %24 unwind label %37

24:                                               ; preds = %22
  %25 = load double, ptr %23, align 8, !tbaa !13
  %26 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5R3BoxixEi(ptr noundef nonnull align 8 dereferenceable(56) %0, i32 noundef 0)
          to label %27 unwind label %37

27:                                               ; preds = %24
  %28 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %26, i32 noundef 0)
          to label %29 unwind label %37

29:                                               ; preds = %27
  store double %25, ptr %28, align 8, !tbaa !13
  %30 = getelementptr inbounds %class.R3Box, ptr %15, i32 0, i32 2
  %31 = invoke noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %30, i32 noundef 0)
          to label %32 unwind label %37

32:                                               ; preds = %29
  %33 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5R3BoxixEi(ptr noundef nonnull align 8 dereferenceable(56) %0, i32 noundef 1)
          to label %34 unwind label %37

34:                                               ; preds = %32
  %35 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %33, i32 noundef 0)
          to label %36 unwind label %37

36:                                               ; preds = %34
  store double %31, ptr %35, align 8, !tbaa !13
  br label %56

37:                                               ; preds = %119, %116, %114, %112, %110, %107, %104, %102, %99, %97, %94, %92, %86, %83, %81, %79, %77, %74, %71, %69, %66, %64, %61, %59, %53, %50, %48, %46, %44, %41, %34, %32, %29, %27, %24, %22, %5
  %38 = landingpad { ptr, i32 }
          cleanup
  %39 = extractvalue { ptr, i32 } %38, 0
  store ptr %39, ptr %13, align 8
  %40 = extractvalue { ptr, i32 } %38, 1
  store i32 %40, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #5
  call void @_ZN7R3SolidD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %0) #5
  br label %126

41:                                               ; preds = %19
  %42 = getelementptr inbounds %class.R3Box, ptr %15, i32 0, i32 1
  %43 = invoke noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %42, i32 noundef 0)
          to label %44 unwind label %37

44:                                               ; preds = %41
  %45 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5R3BoxixEi(ptr noundef nonnull align 8 dereferenceable(56) %0, i32 noundef 0)
          to label %46 unwind label %37

46:                                               ; preds = %44
  %47 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %45, i32 noundef 0)
          to label %48 unwind label %37

48:                                               ; preds = %46
  store double %43, ptr %47, align 8, !tbaa !13
  %49 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %12, i32 noundef 0)
          to label %50 unwind label %37

50:                                               ; preds = %48
  %51 = load double, ptr %49, align 8, !tbaa !13
  %52 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5R3BoxixEi(ptr noundef nonnull align 8 dereferenceable(56) %0, i32 noundef 1)
          to label %53 unwind label %37

53:                                               ; preds = %50
  %54 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %52, i32 noundef 0)
          to label %55 unwind label %37

55:                                               ; preds = %53
  store double %51, ptr %54, align 8, !tbaa !13
  br label %56

56:                                               ; preds = %55, %36
  %57 = load i32, ptr %9, align 4, !tbaa !9
  %58 = icmp eq i32 %57, 1
  br i1 %58, label %59, label %74

59:                                               ; preds = %56
  %60 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %12, i32 noundef 1)
          to label %61 unwind label %37

61:                                               ; preds = %59
  %62 = load double, ptr %60, align 8, !tbaa !13
  %63 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5R3BoxixEi(ptr noundef nonnull align 8 dereferenceable(56) %0, i32 noundef 0)
          to label %64 unwind label %37

64:                                               ; preds = %61
  %65 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %63, i32 noundef 1)
          to label %66 unwind label %37

66:                                               ; preds = %64
  store double %62, ptr %65, align 8, !tbaa !13
  %67 = getelementptr inbounds %class.R3Box, ptr %15, i32 0, i32 2
  %68 = invoke noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %67, i32 noundef 1)
          to label %69 unwind label %37

69:                                               ; preds = %66
  %70 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5R3BoxixEi(ptr noundef nonnull align 8 dereferenceable(56) %0, i32 noundef 1)
          to label %71 unwind label %37

71:                                               ; preds = %69
  %72 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %70, i32 noundef 1)
          to label %73 unwind label %37

73:                                               ; preds = %71
  store double %68, ptr %72, align 8, !tbaa !13
  br label %89

74:                                               ; preds = %56
  %75 = getelementptr inbounds %class.R3Box, ptr %15, i32 0, i32 1
  %76 = invoke noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %75, i32 noundef 1)
          to label %77 unwind label %37

77:                                               ; preds = %74
  %78 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5R3BoxixEi(ptr noundef nonnull align 8 dereferenceable(56) %0, i32 noundef 0)
          to label %79 unwind label %37

79:                                               ; preds = %77
  %80 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %78, i32 noundef 1)
          to label %81 unwind label %37

81:                                               ; preds = %79
  store double %76, ptr %80, align 8, !tbaa !13
  %82 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %12, i32 noundef 1)
          to label %83 unwind label %37

83:                                               ; preds = %81
  %84 = load double, ptr %82, align 8, !tbaa !13
  %85 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5R3BoxixEi(ptr noundef nonnull align 8 dereferenceable(56) %0, i32 noundef 1)
          to label %86 unwind label %37

86:                                               ; preds = %83
  %87 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %85, i32 noundef 1)
          to label %88 unwind label %37

88:                                               ; preds = %86
  store double %84, ptr %87, align 8, !tbaa !13
  br label %89

89:                                               ; preds = %88, %73
  %90 = load i32, ptr %10, align 4, !tbaa !9
  %91 = icmp eq i32 %90, 1
  br i1 %91, label %92, label %107

92:                                               ; preds = %89
  %93 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %12, i32 noundef 2)
          to label %94 unwind label %37

94:                                               ; preds = %92
  %95 = load double, ptr %93, align 8, !tbaa !13
  %96 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5R3BoxixEi(ptr noundef nonnull align 8 dereferenceable(56) %0, i32 noundef 0)
          to label %97 unwind label %37

97:                                               ; preds = %94
  %98 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %96, i32 noundef 2)
          to label %99 unwind label %37

99:                                               ; preds = %97
  store double %95, ptr %98, align 8, !tbaa !13
  %100 = getelementptr inbounds %class.R3Box, ptr %15, i32 0, i32 2
  %101 = invoke noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %100, i32 noundef 2)
          to label %102 unwind label %37

102:                                              ; preds = %99
  %103 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5R3BoxixEi(ptr noundef nonnull align 8 dereferenceable(56) %0, i32 noundef 1)
          to label %104 unwind label %37

104:                                              ; preds = %102
  %105 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %103, i32 noundef 2)
          to label %106 unwind label %37

106:                                              ; preds = %104
  store double %101, ptr %105, align 8, !tbaa !13
  br label %122

107:                                              ; preds = %89
  %108 = getelementptr inbounds %class.R3Box, ptr %15, i32 0, i32 1
  %109 = invoke noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %108, i32 noundef 2)
          to label %110 unwind label %37

110:                                              ; preds = %107
  %111 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5R3BoxixEi(ptr noundef nonnull align 8 dereferenceable(56) %0, i32 noundef 0)
          to label %112 unwind label %37

112:                                              ; preds = %110
  %113 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %111, i32 noundef 2)
          to label %114 unwind label %37

114:                                              ; preds = %112
  store double %109, ptr %113, align 8, !tbaa !13
  %115 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %12, i32 noundef 2)
          to label %116 unwind label %37

116:                                              ; preds = %114
  %117 = load double, ptr %115, align 8, !tbaa !13
  %118 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN5R3BoxixEi(ptr noundef nonnull align 8 dereferenceable(56) %0, i32 noundef 1)
          to label %119 unwind label %37

119:                                              ; preds = %116
  %120 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %118, i32 noundef 2)
          to label %121 unwind label %37

121:                                              ; preds = %119
  store double %117, ptr %120, align 8, !tbaa !13
  br label %122

122:                                              ; preds = %121, %106
  store i1 true, ptr %11, align 1
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #5
  %123 = load i1, ptr %11, align 1
  br i1 %123, label %125, label %124

124:                                              ; preds = %122
  call void @_ZN7R3SolidD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %0) #5
  br label %125

125:                                              ; preds = %124, %122
  ret void

126:                                              ; preds = %37
  %127 = load ptr, ptr %13, align 8
  %128 = load i32, ptr %14, align 4
  %129 = insertvalue { ptr, i32 } poison, ptr %127, 0
  %130 = insertvalue { ptr, i32 } %129, i32 %128, 1
  resume { ptr, i32 } %130
}

declare void @_ZN5R3BoxC1Ev(ptr)

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint 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 = { inlinehint 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 #4 = { 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 #5 = { 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 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, 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"

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

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

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: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) local_unnamed_addr #2 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN5R3BoxixEi(ptr noundef nonnull align 8 dereferenceable(56), i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK5R3Box6OctantEiii(ptr dead_on_unwind noalias writable sret(%class.R3Box) align 8 %0, ptr noundef nonnull align 8 dereferenceable(56) %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %class.R3Point, align 8
  tail call void @_ZN5R3BoxC1Ev(ptr noundef nonnull align 8 dereferenceable(56) %0)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #5
  %7 = load ptr, ptr %1, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %7, i64 104
  %9 = load ptr, ptr %8, align 8
  invoke void %9(ptr dead_on_unwind nonnull writable sret(%class.R3Point) align 8 %6, ptr noundef nonnull align 8 dereferenceable(56) %1)
          to label %10 unwind label %25

10:                                               ; preds = %5
  %11 = icmp eq i32 %2, 1
  br i1 %11, label %12, label %27

12:                                               ; preds = %10
  %13 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef 0)
          to label %14 unwind label %25

14:                                               ; preds = %12
  %15 = load double, ptr %13, align 8, !tbaa !8
  %16 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN5R3BoxixEi(ptr noundef nonnull align 8 dereferenceable(56) %0, i32 noundef 0)
  %17 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %16, i32 noundef 0)
          to label %18 unwind label %25

18:                                               ; preds = %14
  store double %15, ptr %17, align 8, !tbaa !8
  %19 = getelementptr inbounds i8, ptr %1, i64 32
  %20 = invoke noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %19, i32 noundef 0)
          to label %21 unwind label %25

21:                                               ; preds = %18
  %22 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN5R3BoxixEi(ptr noundef nonnull align 8 dereferenceable(56) %0, i32 noundef 1)
  %23 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %22, i32 noundef 0)
          to label %24 unwind label %25

24:                                               ; preds = %21
  store double %20, ptr %23, align 8, !tbaa !8
  br label %40

25:                                               ; preds = %91, %89, %86, %83, %79, %76, %72, %70, %63, %61, %58, %55, %51, %48, %44, %42, %35, %33, %30, %27, %21, %18, %14, %12, %5
  %26 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #5
  call void @_ZN7R3SolidD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %0) #5
  resume { ptr, i32 } %26

27:                                               ; preds = %10
  %28 = getelementptr inbounds i8, ptr %1, i64 8
  %29 = invoke noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %28, i32 noundef 0)
          to label %30 unwind label %25

30:                                               ; preds = %27
  %31 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN5R3BoxixEi(ptr noundef nonnull align 8 dereferenceable(56) %0, i32 noundef 0)
  %32 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %31, i32 noundef 0)
          to label %33 unwind label %25

33:                                               ; preds = %30
  store double %29, ptr %32, align 8, !tbaa !8
  %34 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef 0)
          to label %35 unwind label %25

35:                                               ; preds = %33
  %36 = load double, ptr %34, align 8, !tbaa !8
  %37 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN5R3BoxixEi(ptr noundef nonnull align 8 dereferenceable(56) %0, i32 noundef 1)
  %38 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %37, i32 noundef 0)
          to label %39 unwind label %25

39:                                               ; preds = %35
  store double %36, ptr %38, align 8, !tbaa !8
  br label %40

40:                                               ; preds = %39, %24
  %41 = icmp eq i32 %3, 1
  br i1 %41, label %42, label %55

42:                                               ; preds = %40
  %43 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef 1)
          to label %44 unwind label %25

44:                                               ; preds = %42
  %45 = load double, ptr %43, align 8, !tbaa !8
  %46 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN5R3BoxixEi(ptr noundef nonnull align 8 dereferenceable(56) %0, i32 noundef 0)
  %47 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %46, i32 noundef 1)
          to label %48 unwind label %25

48:                                               ; preds = %44
  store double %45, ptr %47, align 8, !tbaa !8
  %49 = getelementptr inbounds i8, ptr %1, i64 32
  %50 = invoke noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %49, i32 noundef 1)
          to label %51 unwind label %25

51:                                               ; preds = %48
  %52 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN5R3BoxixEi(ptr noundef nonnull align 8 dereferenceable(56) %0, i32 noundef 1)
  %53 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %52, i32 noundef 1)
          to label %54 unwind label %25

54:                                               ; preds = %51
  store double %50, ptr %53, align 8, !tbaa !8
  br label %68

55:                                               ; preds = %40
  %56 = getelementptr inbounds i8, ptr %1, i64 8
  %57 = invoke noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %56, i32 noundef 1)
          to label %58 unwind label %25

58:                                               ; preds = %55
  %59 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN5R3BoxixEi(ptr noundef nonnull align 8 dereferenceable(56) %0, i32 noundef 0)
  %60 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %59, i32 noundef 1)
          to label %61 unwind label %25

61:                                               ; preds = %58
  store double %57, ptr %60, align 8, !tbaa !8
  %62 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef 1)
          to label %63 unwind label %25

63:                                               ; preds = %61
  %64 = load double, ptr %62, align 8, !tbaa !8
  %65 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN5R3BoxixEi(ptr noundef nonnull align 8 dereferenceable(56) %0, i32 noundef 1)
  %66 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %65, i32 noundef 1)
          to label %67 unwind label %25

67:                                               ; preds = %63
  store double %64, ptr %66, align 8, !tbaa !8
  br label %68

68:                                               ; preds = %67, %54
  %69 = icmp eq i32 %4, 1
  br i1 %69, label %70, label %83

70:                                               ; preds = %68
  %71 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef 2)
          to label %72 unwind label %25

72:                                               ; preds = %70
  %73 = load double, ptr %71, align 8, !tbaa !8
  %74 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN5R3BoxixEi(ptr noundef nonnull align 8 dereferenceable(56) %0, i32 noundef 0)
  %75 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %74, i32 noundef 2)
          to label %76 unwind label %25

76:                                               ; preds = %72
  store double %73, ptr %75, align 8, !tbaa !8
  %77 = getelementptr inbounds i8, ptr %1, i64 32
  %78 = invoke noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %77, i32 noundef 2)
          to label %79 unwind label %25

79:                                               ; preds = %76
  %80 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN5R3BoxixEi(ptr noundef nonnull align 8 dereferenceable(56) %0, i32 noundef 1)
  %81 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %80, i32 noundef 2)
          to label %82 unwind label %25

82:                                               ; preds = %79
  store double %78, ptr %81, align 8, !tbaa !8
  br label %96

83:                                               ; preds = %68
  %84 = getelementptr inbounds i8, ptr %1, i64 8
  %85 = invoke noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %84, i32 noundef 2)
          to label %86 unwind label %25

86:                                               ; preds = %83
  %87 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN5R3BoxixEi(ptr noundef nonnull align 8 dereferenceable(56) %0, i32 noundef 0)
  %88 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %87, i32 noundef 2)
          to label %89 unwind label %25

89:                                               ; preds = %86
  store double %85, ptr %88, align 8, !tbaa !8
  %90 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef 2)
          to label %91 unwind label %25

91:                                               ; preds = %89
  %92 = load double, ptr %90, align 8, !tbaa !8
  %93 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN5R3BoxixEi(ptr noundef nonnull align 8 dereferenceable(56) %0, i32 noundef 1)
  %94 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %93, i32 noundef 2)
          to label %95 unwind label %25

95:                                               ; preds = %91
  store double %92, ptr %94, align 8, !tbaa !8
  br label %96

96:                                               ; preds = %95, %82
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #5
  ret void
}

declare void @_ZN5R3BoxC1Ev(ptr) local_unnamed_addr

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint 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 = { inlinehint 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 #4 = { 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 #5 = { 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, !9, i64 0}
!9 = !{!"double", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass