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

; 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] }
%class.R3Triad = type { [3 x %class.R3Vector] }
%class.R3Vector = type { [3 x double] }
%class.R3OrientedBox = type { %class.R3Solid, %class.R3CoordSystem, [3 x double] }
%class.R3CoordSystem = type { %class.R3Point, %class.R3Triad }

@_ZTV13R3OrientedBox = external dso_local unnamed_addr constant { [75 x ptr] }, align 8
@R3null_box = external global %class.R3Box, align 8
@R3xyz_triad = external global %class.R3Triad, align 8
@RN_PI = external constant double, align 8
@R3zero_box = external global %class.R3Box, align 8

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

declare void @_ZN7R3PointC1Eddd(ptr noundef nonnull align 8 dereferenceable(24), double noundef, double noundef, double noundef) unnamed_addr #1

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

declare void @_ZN7R3SolidC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1

declare void @_ZN13R3CoordSystemC1Ev(ptr noundef nonnull align 8 dereferenceable(96)) unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN13R3OrientedBoxC2ERK7RNArrayIP7R3PointE(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef nonnull align 8 dereferenceable(16) %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 %class.R3Point, align 8
  %8 = alloca %class.R3Box, align 8
  %9 = alloca %class.R3Triad, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %class.R3Triad, align 8
  %18 = alloca %class.R3Box, align 8
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca %class.R3Vector, align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca %class.R3Point, align 8
  %26 = alloca %class.R3Point, align 8
  %27 = alloca %class.R3Point, align 8
  %28 = alloca %class.R3Point, align 8
  %29 = alloca %class.R3Point, align 8
  %30 = alloca %class.R3Vector, align 8
  %31 = alloca %class.R3Vector, align 8
  %32 = alloca %class.R3Vector, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %33 = load ptr, ptr %3, align 8
  call void @_ZN7R3SolidC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %33)
  store ptr getelementptr inbounds inrange(-16, 584) ({ [75 x ptr] }, ptr @_ZTV13R3OrientedBox, i32 0, i32 0, i32 2), ptr %33, align 8, !tbaa !9
  %34 = getelementptr inbounds %class.R3OrientedBox, ptr %33, i32 0, i32 1
  invoke void @_ZN13R3CoordSystemC1Ev(ptr noundef nonnull align 8 dereferenceable(96) %34)
          to label %35 unwind label %45

35:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #6
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_Z10R3CentroidRK7RNArrayIP7R3PointEPKd(ptr dead_on_unwind writable sret(%class.R3Point) align 8 %7, ptr noundef nonnull align 8 dereferenceable(16) %36, ptr noundef null)
          to label %37 unwind label %49

37:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 56, ptr %8) #6
  invoke void @_ZN5R3BoxC1ERKS_(ptr noundef nonnull align 8 dereferenceable(56) %8, ptr noundef nonnull align 8 dereferenceable(56) @R3null_box)
          to label %38 unwind label %53

38:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 72, ptr %9) #6
  invoke void @_ZN7R3TriadC1ERKS_(ptr noundef nonnull align 8 dereferenceable(72) %9, ptr noundef nonnull align 8 dereferenceable(72) @R3xyz_triad)
          to label %39 unwind label %57

39:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 2, ptr %10, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 2, ptr %11, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 4, ptr %12, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !11
  br label %40

40:                                               ; preds = %210, %39
  %41 = load i32, ptr %13, align 4, !tbaa !11
  %42 = load i32, ptr %10, align 4, !tbaa !11
  %43 = icmp slt i32 %41, %42
  br i1 %43, label %61, label %44

44:                                               ; preds = %40
  store i32 2, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %213

45:                                               ; preds = %2
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %5, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %6, align 4
  br label %289

49:                                               ; preds = %35
  %50 = landingpad { ptr, i32 }
          cleanup
  %51 = extractvalue { ptr, i32 } %50, 0
  store ptr %51, ptr %5, align 8
  %52 = extractvalue { ptr, i32 } %50, 1
  store i32 %52, ptr %6, align 4
  br label %288

53:                                               ; preds = %37
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %5, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %6, align 4
  br label %287

57:                                               ; preds = %38
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %5, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %6, align 4
  br label %286

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

62:                                               ; preds = %206, %61
  %63 = load i32, ptr %15, align 4, !tbaa !11
  %64 = load i32, ptr %11, align 4, !tbaa !11
  %65 = icmp slt i32 %63, %64
  br i1 %65, label %67, label %66

66:                                               ; preds = %62
  store i32 5, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %209

67:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 0, ptr %16, align 4, !tbaa !11
  br label %68

68:                                               ; preds = %199, %67
  %69 = load i32, ptr %16, align 4, !tbaa !11
  %70 = load i32, ptr %12, align 4, !tbaa !11
  %71 = icmp slt i32 %69, %70
  br i1 %71, label %73, label %72

72:                                               ; preds = %68
  store i32 8, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %205

73:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 72, ptr %17) #6
  invoke void @_ZN7R3TriadC1ERKS_(ptr noundef nonnull align 8 dereferenceable(72) %17, ptr noundef nonnull align 8 dereferenceable(72) @R3xyz_triad)
          to label %74 unwind label %110

74:                                               ; preds = %73
  %75 = load i32, ptr %13, align 4, !tbaa !11
  %76 = sitofp i32 %75 to double
  %77 = fmul double %76, 5.000000e-01
  %78 = load double, ptr @RN_PI, align 8, !tbaa !13
  %79 = fmul double %77, %78
  %80 = load i32, ptr %10, align 4, !tbaa !11
  %81 = sitofp i32 %80 to double
  %82 = fdiv double %79, %81
  invoke void @_ZN7R3Triad6RotateEid(ptr noundef nonnull align 8 dereferenceable(72) %17, i32 noundef 2, double noundef %82)
          to label %83 unwind label %110

83:                                               ; preds = %74
  %84 = load i32, ptr %15, align 4, !tbaa !11
  %85 = sitofp i32 %84 to double
  %86 = fmul double %85, 5.000000e-01
  %87 = load double, ptr @RN_PI, align 8, !tbaa !13
  %88 = fmul double %86, %87
  %89 = load i32, ptr %11, align 4, !tbaa !11
  %90 = sitofp i32 %89 to double
  %91 = fdiv double %88, %90
  invoke void @_ZN7R3Triad6RotateEid(ptr noundef nonnull align 8 dereferenceable(72) %17, i32 noundef 2, double noundef %91)
          to label %92 unwind label %110

92:                                               ; preds = %83
  %93 = load i32, ptr %16, align 4, !tbaa !11
  %94 = sitofp i32 %93 to double
  %95 = fmul double %94, 5.000000e-01
  %96 = load double, ptr @RN_PI, align 8, !tbaa !13
  %97 = fmul double %95, %96
  %98 = load i32, ptr %12, align 4, !tbaa !11
  %99 = sitofp i32 %98 to double
  %100 = fdiv double %97, %99
  invoke void @_ZN7R3Triad6RotateEid(ptr noundef nonnull align 8 dereferenceable(72) %17, i32 noundef 2, double noundef %100)
          to label %101 unwind label %110

101:                                              ; preds = %92
  call void @llvm.lifetime.start.p0(i64 56, ptr %18) #6
  invoke void @_ZN5R3BoxC1ERKS_(ptr noundef nonnull align 8 dereferenceable(56) %18, ptr noundef nonnull align 8 dereferenceable(56) @R3null_box)
          to label %102 unwind label %114

102:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  store i32 0, ptr %19, align 4, !tbaa !11
  br label %103

103:                                              ; preds = %146, %102
  %104 = load i32, ptr %19, align 4, !tbaa !11
  %105 = load ptr, ptr %4, align 8, !tbaa !5
  %106 = invoke noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16) %105)
          to label %107 unwind label %118

107:                                              ; preds = %103
  %108 = icmp slt i32 %104, %106
  br i1 %108, label %122, label %109

109:                                              ; preds = %107
  store i32 11, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %179

110:                                              ; preds = %92, %83, %74, %73
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %5, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %6, align 4
  br label %204

114:                                              ; preds = %101
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %5, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %6, align 4
  br label %203

118:                                              ; preds = %103
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %5, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %6, align 4
  br label %178

122:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %123 = load ptr, ptr %4, align 8, !tbaa !5
  %124 = load i32, ptr %19, align 4, !tbaa !11
  %125 = invoke noundef ptr @_ZNK7RNArrayIP7R3PointE3KthEi(ptr noundef nonnull align 8 dereferenceable(16) %123, i32 noundef %124)
          to label %126 unwind label %149

126:                                              ; preds = %122
  store ptr %125, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #6
  %127 = load ptr, ptr %20, align 8, !tbaa !5
  invoke void @_ZmiRK7R3PointS1_(ptr dead_on_unwind writable sret(%class.R3Vector) align 8 %21, ptr noundef nonnull align 8 dereferenceable(24) %127, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %128 unwind label %153

128:                                              ; preds = %126
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %129 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7R3TriadixEi(ptr noundef nonnull align 8 dereferenceable(72) %17, i32 noundef 0)
          to label %130 unwind label %157

130:                                              ; preds = %128
  %131 = invoke noundef double @_ZNK8R3Vector3DotERKS_(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(24) %129)
          to label %132 unwind label %157

132:                                              ; preds = %130
  store double %131, ptr %22, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %133 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7R3TriadixEi(ptr noundef nonnull align 8 dereferenceable(72) %17, i32 noundef 1)
          to label %134 unwind label %161

134:                                              ; preds = %132
  %135 = invoke noundef double @_ZNK8R3Vector3DotERKS_(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(24) %133)
          to label %136 unwind label %161

136:                                              ; preds = %134
  store double %135, ptr %23, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  %137 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7R3TriadixEi(ptr noundef nonnull align 8 dereferenceable(72) %17, i32 noundef 2)
          to label %138 unwind label %165

138:                                              ; preds = %136
  %139 = invoke noundef double @_ZNK8R3Vector3DotERKS_(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(24) %137)
          to label %140 unwind label %165

140:                                              ; preds = %138
  store double %139, ptr %24, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 24, ptr %25) #6
  %141 = load double, ptr %22, align 8, !tbaa !13
  %142 = load double, ptr %23, align 8, !tbaa !13
  %143 = load double, ptr %24, align 8, !tbaa !13
  invoke void @_ZN7R3PointC1Eddd(ptr noundef nonnull align 8 dereferenceable(24) %25, double noundef %141, double noundef %142, double noundef %143)
          to label %144 unwind label %169

144:                                              ; preds = %140
  invoke void @_ZN5R3Box5UnionERK7R3Point(ptr noundef nonnull align 8 dereferenceable(56) %18, ptr noundef nonnull align 8 dereferenceable(24) %25)
          to label %145 unwind label %169

145:                                              ; preds = %144
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  br label %146

146:                                              ; preds = %145
  %147 = load i32, ptr %19, align 4, !tbaa !11
  %148 = add nsw i32 %147, 1
  store i32 %148, ptr %19, align 4, !tbaa !11
  br label %103, !llvm.loop !15

149:                                              ; preds = %122
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %5, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %6, align 4
  br label %177

153:                                              ; preds = %126
  %154 = landingpad { ptr, i32 }
          cleanup
  %155 = extractvalue { ptr, i32 } %154, 0
  store ptr %155, ptr %5, align 8
  %156 = extractvalue { ptr, i32 } %154, 1
  store i32 %156, ptr %6, align 4
  br label %176

157:                                              ; preds = %130, %128
  %158 = landingpad { ptr, i32 }
          cleanup
  %159 = extractvalue { ptr, i32 } %158, 0
  store ptr %159, ptr %5, align 8
  %160 = extractvalue { ptr, i32 } %158, 1
  store i32 %160, ptr %6, align 4
  br label %175

161:                                              ; preds = %134, %132
  %162 = landingpad { ptr, i32 }
          cleanup
  %163 = extractvalue { ptr, i32 } %162, 0
  store ptr %163, ptr %5, align 8
  %164 = extractvalue { ptr, i32 } %162, 1
  store i32 %164, ptr %6, align 4
  br label %174

165:                                              ; preds = %138, %136
  %166 = landingpad { ptr, i32 }
          cleanup
  %167 = extractvalue { ptr, i32 } %166, 0
  store ptr %167, ptr %5, align 8
  %168 = extractvalue { ptr, i32 } %166, 1
  store i32 %168, ptr %6, align 4
  br label %173

169:                                              ; preds = %144, %140
  %170 = landingpad { ptr, i32 }
          cleanup
  %171 = extractvalue { ptr, i32 } %170, 0
  store ptr %171, ptr %5, align 8
  %172 = extractvalue { ptr, i32 } %170, 1
  store i32 %172, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #6
  br label %173

173:                                              ; preds = %169, %165
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  br label %174

174:                                              ; preds = %173, %161
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  br label %175

175:                                              ; preds = %174, %157
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  br label %176

176:                                              ; preds = %175, %153
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #6
  br label %177

177:                                              ; preds = %176, %149
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  br label %178

178:                                              ; preds = %177, %118
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %202

179:                                              ; preds = %109
  %180 = invoke noundef i32 @_ZNK5R3Box7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(56) %8)
          to label %181 unwind label %194

181:                                              ; preds = %179
  %182 = icmp ne i32 %180, 0
  br i1 %182, label %189, label %183

183:                                              ; preds = %181
  %184 = invoke noundef double @_ZNK5R3Box6VolumeEv(ptr noundef nonnull align 8 dereferenceable(56) %18)
          to label %185 unwind label %194

185:                                              ; preds = %183
  %186 = invoke noundef double @_ZNK5R3Box6VolumeEv(ptr noundef nonnull align 8 dereferenceable(56) %8)
          to label %187 unwind label %194

187:                                              ; preds = %185
  %188 = fcmp olt double %184, %186
  br i1 %188, label %189, label %198

189:                                              ; preds = %187, %181
  %190 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZN5R3BoxaSERKS_(ptr noundef nonnull align 8 dereferenceable(56) %8, ptr noundef nonnull align 8 dereferenceable(56) %18)
          to label %191 unwind label %194

191:                                              ; preds = %189
  %192 = invoke noundef nonnull align 8 dereferenceable(72) ptr @_ZN7R3TriadaSERKS_(ptr noundef nonnull align 8 dereferenceable(72) %9, ptr noundef nonnull align 8 dereferenceable(72) %17)
          to label %193 unwind label %194

193:                                              ; preds = %191
  br label %198

194:                                              ; preds = %191, %189, %185, %183, %179
  %195 = landingpad { ptr, i32 }
          cleanup
  %196 = extractvalue { ptr, i32 } %195, 0
  store ptr %196, ptr %5, align 8
  %197 = extractvalue { ptr, i32 } %195, 1
  store i32 %197, ptr %6, align 4
  br label %202

198:                                              ; preds = %193, %187
  call void @_ZN7R3SolidD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %18) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr %17) #6
  br label %199

199:                                              ; preds = %198
  %200 = load i32, ptr %16, align 4, !tbaa !11
  %201 = add nsw i32 %200, 1
  store i32 %201, ptr %16, align 4, !tbaa !11
  br label %68, !llvm.loop !17

202:                                              ; preds = %194, %178
  call void @_ZN7R3SolidD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %18) #6
  br label %203

203:                                              ; preds = %202, %114
  call void @llvm.lifetime.end.p0(i64 56, ptr %18) #6
  br label %204

204:                                              ; preds = %203, %110
  call void @llvm.lifetime.end.p0(i64 72, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %285

205:                                              ; preds = %72
  br label %206

206:                                              ; preds = %205
  %207 = load i32, ptr %15, align 4, !tbaa !11
  %208 = add nsw i32 %207, 1
  store i32 %208, ptr %15, align 4, !tbaa !11
  br label %62, !llvm.loop !18

209:                                              ; preds = %66
  br label %210

210:                                              ; preds = %209
  %211 = load i32, ptr %13, align 4, !tbaa !11
  %212 = add nsw i32 %211, 1
  store i32 %212, ptr %13, align 4, !tbaa !11
  br label %40, !llvm.loop !19

213:                                              ; preds = %44
  %214 = invoke noundef i32 @_ZNK5R3Box7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(56) %8)
          to label %215 unwind label %220

215:                                              ; preds = %213
  %216 = icmp ne i32 %214, 0
  br i1 %216, label %217, label %224

217:                                              ; preds = %215
  %218 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZN5R3BoxaSERKS_(ptr noundef nonnull align 8 dereferenceable(56) %8, ptr noundef nonnull align 8 dereferenceable(56) @R3zero_box)
          to label %219 unwind label %220

219:                                              ; preds = %217
  br label %224

220:                                              ; preds = %217, %213
  %221 = landingpad { ptr, i32 }
          cleanup
  %222 = extractvalue { ptr, i32 } %221, 0
  store ptr %222, ptr %5, align 8
  %223 = extractvalue { ptr, i32 } %221, 1
  store i32 %223, ptr %6, align 4
  br label %285

224:                                              ; preds = %219, %215
  call void @llvm.lifetime.start.p0(i64 24, ptr %26) #6
  invoke void @_ZNK5R3Box8CentroidEv(ptr dead_on_unwind writable sret(%class.R3Point) align 8 %26, ptr noundef nonnull align 8 dereferenceable(56) %8)
          to label %225 unwind label %261

225:                                              ; preds = %224
  call void @llvm.lifetime.start.p0(i64 24, ptr %27) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %28) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %29) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %30) #6
  %226 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7R3TriadixEi(ptr noundef nonnull align 8 dereferenceable(72) %9, i32 noundef 0)
          to label %227 unwind label %265

227:                                              ; preds = %225
  %228 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %26, i32 noundef 0)
          to label %229 unwind label %265

229:                                              ; preds = %227
  %230 = load double, ptr %228, align 8, !tbaa !13
  invoke void @_ZmlRK8R3Vectord(ptr dead_on_unwind writable sret(%class.R3Vector) align 8 %30, ptr noundef nonnull align 8 dereferenceable(24) %226, double noundef %230)
          to label %231 unwind label %265

231:                                              ; preds = %229
  invoke void @_ZplRK7R3PointRK8R3Vector(ptr dead_on_unwind writable sret(%class.R3Point) align 8 %29, ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %30)
          to label %232 unwind label %265

232:                                              ; preds = %231
  call void @llvm.lifetime.start.p0(i64 24, ptr %31) #6
  %233 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7R3TriadixEi(ptr noundef nonnull align 8 dereferenceable(72) %9, i32 noundef 1)
          to label %234 unwind label %269

234:                                              ; preds = %232
  %235 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %26, i32 noundef 1)
          to label %236 unwind label %269

236:                                              ; preds = %234
  %237 = load double, ptr %235, align 8, !tbaa !13
  invoke void @_ZmlRK8R3Vectord(ptr dead_on_unwind writable sret(%class.R3Vector) align 8 %31, ptr noundef nonnull align 8 dereferenceable(24) %233, double noundef %237)
          to label %238 unwind label %269

238:                                              ; preds = %236
  invoke void @_ZplRK7R3PointRK8R3Vector(ptr dead_on_unwind writable sret(%class.R3Point) align 8 %28, ptr noundef nonnull align 8 dereferenceable(24) %29, ptr noundef nonnull align 8 dereferenceable(24) %31)
          to label %239 unwind label %269

239:                                              ; preds = %238
  call void @llvm.lifetime.start.p0(i64 24, ptr %32) #6
  %240 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7R3TriadixEi(ptr noundef nonnull align 8 dereferenceable(72) %9, i32 noundef 2)
          to label %241 unwind label %273

241:                                              ; preds = %239
  %242 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %26, i32 noundef 2)
          to label %243 unwind label %273

243:                                              ; preds = %241
  %244 = load double, ptr %242, align 8, !tbaa !13
  invoke void @_ZmlRK8R3Vectord(ptr dead_on_unwind writable sret(%class.R3Vector) align 8 %32, ptr noundef nonnull align 8 dereferenceable(24) %240, double noundef %244)
          to label %245 unwind label %273

245:                                              ; preds = %243
  invoke void @_ZplRK7R3PointRK8R3Vector(ptr dead_on_unwind writable sret(%class.R3Point) align 8 %27, ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 8 dereferenceable(24) %32)
          to label %246 unwind label %273

246:                                              ; preds = %245
  call void @llvm.lifetime.end.p0(i64 24, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #6
  %247 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7R3TriadixEi(ptr noundef nonnull align 8 dereferenceable(72) %9, i32 noundef 0)
          to label %248 unwind label %279

248:                                              ; preds = %246
  %249 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7R3TriadixEi(ptr noundef nonnull align 8 dereferenceable(72) %9, i32 noundef 1)
          to label %250 unwind label %279

250:                                              ; preds = %248
  %251 = invoke noundef double @_ZNK5R3Box7XRadiusEv(ptr noundef nonnull align 8 dereferenceable(56) %8)
          to label %252 unwind label %279

252:                                              ; preds = %250
  %253 = invoke noundef double @_ZNK5R3Box7YRadiusEv(ptr noundef nonnull align 8 dereferenceable(56) %8)
          to label %254 unwind label %279

254:                                              ; preds = %252
  %255 = invoke noundef double @_ZNK5R3Box7ZRadiusEv(ptr noundef nonnull align 8 dereferenceable(56) %8)
          to label %256 unwind label %279

256:                                              ; preds = %254
  %257 = load ptr, ptr %33, align 8, !tbaa !9
  %258 = getelementptr inbounds ptr, ptr %257, i64 72
  %259 = load ptr, ptr %258, align 8
  invoke void %259(ptr noundef nonnull align 8 dereferenceable(128) %33, ptr noundef nonnull align 8 dereferenceable(24) %27, ptr noundef nonnull align 8 dereferenceable(24) %247, ptr noundef nonnull align 8 dereferenceable(24) %249, double noundef %251, double noundef %253, double noundef %255)
          to label %260 unwind label %279

260:                                              ; preds = %256
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr %9) #6
  call void @_ZN7R3SolidD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %8) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #6
  ret void

261:                                              ; preds = %224
  %262 = landingpad { ptr, i32 }
          cleanup
  %263 = extractvalue { ptr, i32 } %262, 0
  store ptr %263, ptr %5, align 8
  %264 = extractvalue { ptr, i32 } %262, 1
  store i32 %264, ptr %6, align 4
  br label %284

265:                                              ; preds = %231, %229, %227, %225
  %266 = landingpad { ptr, i32 }
          cleanup
  %267 = extractvalue { ptr, i32 } %266, 0
  store ptr %267, ptr %5, align 8
  %268 = extractvalue { ptr, i32 } %266, 1
  store i32 %268, ptr %6, align 4
  br label %278

269:                                              ; preds = %238, %236, %234, %232
  %270 = landingpad { ptr, i32 }
          cleanup
  %271 = extractvalue { ptr, i32 } %270, 0
  store ptr %271, ptr %5, align 8
  %272 = extractvalue { ptr, i32 } %270, 1
  store i32 %272, ptr %6, align 4
  br label %277

273:                                              ; preds = %245, %243, %241, %239
  %274 = landingpad { ptr, i32 }
          cleanup
  %275 = extractvalue { ptr, i32 } %274, 0
  store ptr %275, ptr %5, align 8
  %276 = extractvalue { ptr, i32 } %274, 1
  store i32 %276, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %32) #6
  br label %277

277:                                              ; preds = %273, %269
  call void @llvm.lifetime.end.p0(i64 24, ptr %31) #6
  br label %278

278:                                              ; preds = %277, %265
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #6
  br label %283

279:                                              ; preds = %256, %254, %252, %250, %248, %246
  %280 = landingpad { ptr, i32 }
          cleanup
  %281 = extractvalue { ptr, i32 } %280, 0
  store ptr %281, ptr %5, align 8
  %282 = extractvalue { ptr, i32 } %280, 1
  store i32 %282, ptr %6, align 4
  br label %283

283:                                              ; preds = %279, %278
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #6
  br label %284

284:                                              ; preds = %283, %261
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #6
  br label %285

285:                                              ; preds = %284, %220, %204
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %286

286:                                              ; preds = %285, %57
  call void @llvm.lifetime.end.p0(i64 72, ptr %9) #6
  call void @_ZN7R3SolidD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %8) #6
  br label %287

287:                                              ; preds = %286, %53
  call void @llvm.lifetime.end.p0(i64 56, ptr %8) #6
  br label %288

288:                                              ; preds = %287, %49
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #6
  br label %289

289:                                              ; preds = %288, %45
  call void @_ZN7R3SolidD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %33) #6
  br label %290

290:                                              ; preds = %289
  %291 = load ptr, ptr %5, align 8
  %292 = load i32, ptr %6, align 4
  %293 = insertvalue { ptr, i32 } poison, ptr %291, 0
  %294 = insertvalue { ptr, i32 } %293, i32 %292, 1
  resume { ptr, i32 } %294
}

declare void @_Z10R3CentroidRK7RNArrayIP7R3PointEPKd(ptr dead_on_unwind writable sret(%class.R3Point) align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) #1

declare void @_ZN5R3BoxC1ERKS_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #1

declare void @_ZN7R3TriadC1ERKS_(ptr noundef nonnull align 8 dereferenceable(72), ptr noundef nonnull align 8 dereferenceable(72)) unnamed_addr #1

declare void @_ZN7R3Triad6RotateEid(ptr noundef nonnull align 8 dereferenceable(72), i32 noundef, double noundef) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

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

declare void @_ZmiRK7R3PointS1_(ptr dead_on_unwind writable sret(%class.R3Vector) align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #1

declare noundef double @_ZNK8R3Vector3DotERKS_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #1

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

declare void @_ZN5R3Box5UnionERK7R3Point(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNK5R3Box7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(56)) #4 align 2

declare noundef double @_ZNK5R3Box6VolumeEv(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(56) ptr @_ZN5R3BoxaSERKS_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56)) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(72) ptr @_ZN7R3TriadaSERKS_(ptr noundef nonnull align 8 dereferenceable(72), ptr noundef nonnull align 8 dereferenceable(72)) #4 align 2

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

declare void @_ZNK5R3Box8CentroidEv(ptr dead_on_unwind writable sret(%class.R3Point) align 8, ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #1

declare void @_ZplRK7R3PointRK8R3Vector(ptr dead_on_unwind writable sret(%class.R3Point) align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #1

declare void @_ZmlRK8R3Vectord(ptr dead_on_unwind writable sret(%class.R3Vector) align 8, ptr noundef nonnull align 8 dereferenceable(24), double noundef) #1

; 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) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZNK5R3Box7XRadiusEv(ptr noundef nonnull align 8 dereferenceable(56)) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZNK5R3Box7YRadiusEv(ptr noundef nonnull align 8 dereferenceable(56)) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZNK5R3Box7ZRadiusEv(ptr noundef nonnull align 8 dereferenceable(56)) #4 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 = { 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 #5 = { 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 = { 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, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !16}


; 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] }
%class.R3Triad = type { [3 x %class.R3Vector] }
%class.R3Vector = type { [3 x double] }

@_ZTV13R3OrientedBox = external dso_local unnamed_addr constant { [75 x ptr] }, align 8
@R3null_box = external global %class.R3Box, align 8
@R3xyz_triad = external global %class.R3Triad, align 8
@RN_PI = external local_unnamed_addr constant double, align 8
@R3zero_box = external global %class.R3Box, align 8

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

declare void @_ZN7R3PointC1Eddd(ptr noundef nonnull align 8 dereferenceable(24), double noundef, double noundef, double noundef) unnamed_addr #1

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

declare void @_ZN7R3SolidC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1

declare void @_ZN13R3CoordSystemC1Ev(ptr noundef nonnull align 8 dereferenceable(96)) unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN13R3OrientedBoxC2ERK7RNArrayIP7R3PointE(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef nonnull align 8 dereferenceable(16) %1) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %class.R3Point, align 8
  %4 = alloca %class.R3Box, align 8
  %5 = alloca %class.R3Triad, align 8
  %6 = alloca %class.R3Triad, align 8
  %7 = alloca %class.R3Box, align 8
  %8 = alloca %class.R3Vector, align 8
  %9 = alloca %class.R3Point, align 8
  %10 = alloca %class.R3Point, align 8
  %11 = alloca %class.R3Point, align 8
  %12 = alloca %class.R3Point, align 8
  %13 = alloca %class.R3Point, align 8
  %14 = alloca %class.R3Vector, align 8
  %15 = alloca %class.R3Vector, align 8
  %16 = alloca %class.R3Vector, align 8
  tail call void @_ZN7R3SolidC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0)
  store ptr getelementptr inbounds inrange(-16, 584) (i8, ptr @_ZTV13R3OrientedBox, i64 16), ptr %0, align 8, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %0, i64 8
  invoke void @_ZN13R3CoordSystemC1Ev(ptr noundef nonnull align 8 dereferenceable(96) %17)
          to label %18 unwind label %31

18:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #6
  invoke void @_Z10R3CentroidRK7RNArrayIP7R3PointEPKd(ptr dead_on_unwind nonnull writable sret(%class.R3Point) align 8 %3, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef null)
          to label %19 unwind label %33

19:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %4) #6
  invoke void @_ZN5R3BoxC1ERKS_(ptr noundef nonnull align 8 dereferenceable(56) %4, ptr noundef nonnull align 8 dereferenceable(56) @R3null_box)
          to label %20 unwind label %35

20:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %5) #6
  invoke void @_ZN7R3TriadC1ERKS_(ptr noundef nonnull align 8 dereferenceable(72) %5, ptr noundef nonnull align 8 dereferenceable(72) @R3xyz_triad)
          to label %.preheader70 unwind label %37

.preheader70:                                     ; preds = %20
  %21 = load double, ptr @RN_PI, align 8
  %22 = fmul double %21, 0.000000e+00
  %23 = fmul double %22, 5.000000e-01
  %24 = fmul double %21, 5.000000e-01
  %25 = fmul double %24, 5.000000e-01
  br label %.preheader69

.preheader69:                                     ; preds = %.preheader70, %83
  %26 = phi i1 [ true, %.preheader70 ], [ false, %83 ]
  %.04474 = phi double [ 0.000000e+00, %.preheader70 ], [ 5.000000e-01, %83 ]
  %27 = fmul double %.04474, %21
  %28 = fmul double %27, 5.000000e-01
  br label %84

29:                                               ; preds = %83
  %30 = invoke noundef i32 @_ZNK5R3Box7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(56) %4)
          to label %134 unwind label %137

31:                                               ; preds = %2
  %32 = landingpad { ptr, i32 }
          cleanup
  br label %193

33:                                               ; preds = %18
  %34 = landingpad { ptr, i32 }
          cleanup
  br label %192

35:                                               ; preds = %19
  %36 = landingpad { ptr, i32 }
          cleanup
  br label %191

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

.preheader68.1:                                   ; preds = %129, %81
  %.04672.1 = phi i32 [ %82, %81 ], [ 0, %129 ]
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %6) #6
  invoke void @_ZN7R3TriadC1ERKS_(ptr noundef nonnull align 8 dereferenceable(72) %6, ptr noundef nonnull align 8 dereferenceable(72) @R3xyz_triad)
          to label %39 unwind label %.loopexit.split-lp101

39:                                               ; preds = %.preheader68.1
  invoke void @_ZN7R3Triad6RotateEid(ptr noundef nonnull align 8 dereferenceable(72) %6, i32 noundef 2, double noundef %28)
          to label %40 unwind label %.loopexit.split-lp101

40:                                               ; preds = %39
  invoke void @_ZN7R3Triad6RotateEid(ptr noundef nonnull align 8 dereferenceable(72) %6, i32 noundef 2, double noundef %25)
          to label %41 unwind label %.loopexit.split-lp101

41:                                               ; preds = %40
  %42 = uitofp nneg i32 %.04672.1 to double
  %43 = fmul double %42, 5.000000e-01
  %44 = fmul double %43, %21
  %45 = fmul double %44, 2.500000e-01
  invoke void @_ZN7R3Triad6RotateEid(ptr noundef nonnull align 8 dereferenceable(72) %6, i32 noundef 2, double noundef %45)
          to label %46 unwind label %.loopexit.split-lp101

46:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %7) #6
  invoke void @_ZN5R3BoxC1ERKS_(ptr noundef nonnull align 8 dereferenceable(56) %7, ptr noundef nonnull align 8 dereferenceable(56) @R3null_box)
          to label %.preheader.1 unwind label %.loopexit.split-lp106

.preheader.1:                                     ; preds = %46
  %47 = call noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %48 = icmp sgt i32 %47, 0
  br i1 %48, label %.lr.ph.1, label %._crit_edge.1

.lr.ph.1:                                         ; preds = %.preheader.1, %65
  %.04571.1 = phi i32 [ %66, %65 ], [ 0, %.preheader.1 ]
  %49 = invoke noundef ptr @_ZNK7RNArrayIP7R3PointE3KthEi(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef %.04571.1)
          to label %50 unwind label %.loopexit.split-lp

50:                                               ; preds = %.lr.ph.1
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #6
  invoke void @_ZmiRK7R3PointS1_(ptr dead_on_unwind nonnull writable sret(%class.R3Vector) align 8 %8, ptr noundef nonnull align 8 dereferenceable(24) %49, ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %51 unwind label %.loopexit.split-lp76

51:                                               ; preds = %50
  %52 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7R3TriadixEi(ptr noundef nonnull align 8 dereferenceable(72) %6, i32 noundef 0)
          to label %53 unwind label %.loopexit.split-lp81

53:                                               ; preds = %51
  %54 = invoke noundef double @_ZNK8R3Vector3DotERKS_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %52)
          to label %55 unwind label %.loopexit.split-lp81

55:                                               ; preds = %53
  %56 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7R3TriadixEi(ptr noundef nonnull align 8 dereferenceable(72) %6, i32 noundef 1)
          to label %57 unwind label %.loopexit.split-lp86

57:                                               ; preds = %55
  %58 = invoke noundef double @_ZNK8R3Vector3DotERKS_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %56)
          to label %59 unwind label %.loopexit.split-lp86

59:                                               ; preds = %57
  %60 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7R3TriadixEi(ptr noundef nonnull align 8 dereferenceable(72) %6, i32 noundef 2)
          to label %61 unwind label %.loopexit.split-lp91

61:                                               ; preds = %59
  %62 = invoke noundef double @_ZNK8R3Vector3DotERKS_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %60)
          to label %63 unwind label %.loopexit.split-lp91

63:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #6
  invoke void @_ZN7R3PointC1Eddd(ptr noundef nonnull align 8 dereferenceable(24) %9, double noundef %54, double noundef %58, double noundef %62)
          to label %64 unwind label %.loopexit.split-lp96

64:                                               ; preds = %63
  invoke void @_ZN5R3Box5UnionERK7R3Point(ptr noundef nonnull align 8 dereferenceable(56) %7, ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %65 unwind label %.loopexit.split-lp96

65:                                               ; preds = %64
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #6
  %66 = add nuw nsw i32 %.04571.1, 1
  %67 = call noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %68 = icmp slt i32 %66, %67
  br i1 %68, label %.lr.ph.1, label %._crit_edge.1, !llvm.loop !8

._crit_edge.1:                                    ; preds = %65, %.preheader.1
  %69 = invoke noundef i32 @_ZNK5R3Box7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(56) %4)
          to label %70 unwind label %.loopexit.split-lp111

70:                                               ; preds = %._crit_edge.1
  %.not53.1 = icmp eq i32 %69, 0
  br i1 %.not53.1, label %71, label %77

71:                                               ; preds = %70
  %72 = invoke noundef double @_ZNK5R3Box6VolumeEv(ptr noundef nonnull align 8 dereferenceable(56) %7)
          to label %73 unwind label %.loopexit.split-lp111

73:                                               ; preds = %71
  %74 = invoke noundef double @_ZNK5R3Box6VolumeEv(ptr noundef nonnull align 8 dereferenceable(56) %4)
          to label %75 unwind label %.loopexit.split-lp111

75:                                               ; preds = %73
  %76 = fcmp olt double %72, %74
  br i1 %76, label %77, label %81

77:                                               ; preds = %75, %70
  %78 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZN5R3BoxaSERKS_(ptr noundef nonnull align 8 dereferenceable(56) %4, ptr noundef nonnull align 8 dereferenceable(56) %7)
          to label %79 unwind label %.loopexit.split-lp111

79:                                               ; preds = %77
  %80 = invoke noundef nonnull align 8 dereferenceable(72) ptr @_ZN7R3TriadaSERKS_(ptr noundef nonnull align 8 dereferenceable(72) %5, ptr noundef nonnull align 8 dereferenceable(72) %6)
          to label %81 unwind label %.loopexit.split-lp111

81:                                               ; preds = %79, %75
  call void @_ZN7R3SolidD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %7) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %6) #6
  %82 = add nuw nsw i32 %.04672.1, 1
  %exitcond.1.not = icmp eq i32 %82, 4
  br i1 %exitcond.1.not, label %83, label %.preheader68.1, !llvm.loop !10

83:                                               ; preds = %81
  br i1 %26, label %.preheader69, label %29, !llvm.loop !11

84:                                               ; preds = %.preheader69, %129
  %.04672 = phi i32 [ 0, %.preheader69 ], [ %130, %129 ]
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %6) #6
  invoke void @_ZN7R3TriadC1ERKS_(ptr noundef nonnull align 8 dereferenceable(72) %6, ptr noundef nonnull align 8 dereferenceable(72) @R3xyz_triad)
          to label %85 unwind label %.loopexit100

85:                                               ; preds = %84
  invoke void @_ZN7R3Triad6RotateEid(ptr noundef nonnull align 8 dereferenceable(72) %6, i32 noundef 2, double noundef %28)
          to label %86 unwind label %.loopexit100

86:                                               ; preds = %85
  invoke void @_ZN7R3Triad6RotateEid(ptr noundef nonnull align 8 dereferenceable(72) %6, i32 noundef 2, double noundef %23)
          to label %87 unwind label %.loopexit100

87:                                               ; preds = %86
  %88 = uitofp nneg i32 %.04672 to double
  %89 = fmul double %88, 5.000000e-01
  %90 = fmul double %89, %21
  %91 = fmul double %90, 2.500000e-01
  invoke void @_ZN7R3Triad6RotateEid(ptr noundef nonnull align 8 dereferenceable(72) %6, i32 noundef 2, double noundef %91)
          to label %92 unwind label %.loopexit100

92:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %7) #6
  invoke void @_ZN5R3BoxC1ERKS_(ptr noundef nonnull align 8 dereferenceable(56) %7, ptr noundef nonnull align 8 dereferenceable(56) @R3null_box)
          to label %.preheader unwind label %.loopexit105

.preheader:                                       ; preds = %92
  %93 = call noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %94 = icmp sgt i32 %93, 0
  br i1 %94, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %112, %.preheader
  %95 = invoke noundef i32 @_ZNK5R3Box7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(56) %4)
          to label %118 unwind label %.loopexit110

.loopexit100:                                     ; preds = %84, %85, %86, %87
  %lpad.loopexit102 = landingpad { ptr, i32 }
          cleanup
  br label %133

.loopexit.split-lp101:                            ; preds = %.preheader68.1, %39, %40, %41
  %lpad.loopexit.split-lp103 = landingpad { ptr, i32 }
          cleanup
  br label %133

.loopexit105:                                     ; preds = %92
  %lpad.loopexit107 = landingpad { ptr, i32 }
          cleanup
  br label %132

.loopexit.split-lp106:                            ; preds = %46
  %lpad.loopexit.split-lp108 = landingpad { ptr, i32 }
          cleanup
  br label %132

.lr.ph:                                           ; preds = %.preheader, %112
  %.04571 = phi i32 [ %113, %112 ], [ 0, %.preheader ]
  %96 = invoke noundef ptr @_ZNK7RNArrayIP7R3PointE3KthEi(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef %.04571)
          to label %97 unwind label %.loopexit

97:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #6
  invoke void @_ZmiRK7R3PointS1_(ptr dead_on_unwind nonnull writable sret(%class.R3Vector) align 8 %8, ptr noundef nonnull align 8 dereferenceable(24) %96, ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %98 unwind label %.loopexit75

98:                                               ; preds = %97
  %99 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7R3TriadixEi(ptr noundef nonnull align 8 dereferenceable(72) %6, i32 noundef 0)
          to label %100 unwind label %.loopexit80

100:                                              ; preds = %98
  %101 = invoke noundef double @_ZNK8R3Vector3DotERKS_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %99)
          to label %102 unwind label %.loopexit80

102:                                              ; preds = %100
  %103 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7R3TriadixEi(ptr noundef nonnull align 8 dereferenceable(72) %6, i32 noundef 1)
          to label %104 unwind label %.loopexit85

104:                                              ; preds = %102
  %105 = invoke noundef double @_ZNK8R3Vector3DotERKS_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %103)
          to label %106 unwind label %.loopexit85

106:                                              ; preds = %104
  %107 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7R3TriadixEi(ptr noundef nonnull align 8 dereferenceable(72) %6, i32 noundef 2)
          to label %108 unwind label %.loopexit90

108:                                              ; preds = %106
  %109 = invoke noundef double @_ZNK8R3Vector3DotERKS_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %107)
          to label %110 unwind label %.loopexit90

110:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #6
  invoke void @_ZN7R3PointC1Eddd(ptr noundef nonnull align 8 dereferenceable(24) %9, double noundef %101, double noundef %105, double noundef %109)
          to label %111 unwind label %.loopexit95

111:                                              ; preds = %110
  invoke void @_ZN5R3Box5UnionERK7R3Point(ptr noundef nonnull align 8 dereferenceable(56) %7, ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %112 unwind label %.loopexit95

112:                                              ; preds = %111
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #6
  %113 = add nuw nsw i32 %.04571, 1
  %114 = call noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %115 = icmp slt i32 %113, %114
  br i1 %115, label %.lr.ph, label %._crit_edge, !llvm.loop !8

.loopexit:                                        ; preds = %.lr.ph
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %131

.loopexit.split-lp:                               ; preds = %.lr.ph.1
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %131

.loopexit75:                                      ; preds = %97
  %lpad.loopexit77 = landingpad { ptr, i32 }
          cleanup
  br label %117

.loopexit.split-lp76:                             ; preds = %50
  %lpad.loopexit.split-lp78 = landingpad { ptr, i32 }
          cleanup
  br label %117

.loopexit80:                                      ; preds = %98, %100
  %lpad.loopexit82 = landingpad { ptr, i32 }
          cleanup
  br label %117

.loopexit.split-lp81:                             ; preds = %51, %53
  %lpad.loopexit.split-lp83 = landingpad { ptr, i32 }
          cleanup
  br label %117

.loopexit85:                                      ; preds = %102, %104
  %lpad.loopexit87 = landingpad { ptr, i32 }
          cleanup
  br label %117

.loopexit.split-lp86:                             ; preds = %55, %57
  %lpad.loopexit.split-lp88 = landingpad { ptr, i32 }
          cleanup
  br label %117

.loopexit90:                                      ; preds = %106, %108
  %lpad.loopexit92 = landingpad { ptr, i32 }
          cleanup
  br label %117

.loopexit.split-lp91:                             ; preds = %59, %61
  %lpad.loopexit.split-lp93 = landingpad { ptr, i32 }
          cleanup
  br label %117

.loopexit95:                                      ; preds = %110, %111
  %lpad.loopexit97 = landingpad { ptr, i32 }
          cleanup
  br label %116

.loopexit.split-lp96:                             ; preds = %63, %64
  %lpad.loopexit.split-lp98 = landingpad { ptr, i32 }
          cleanup
  br label %116

116:                                              ; preds = %.loopexit.split-lp96, %.loopexit95
  %lpad.phi99 = phi { ptr, i32 } [ %lpad.loopexit97, %.loopexit95 ], [ %lpad.loopexit.split-lp98, %.loopexit.split-lp96 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
  br label %117

117:                                              ; preds = %.loopexit90, %.loopexit.split-lp91, %.loopexit85, %.loopexit.split-lp86, %.loopexit80, %.loopexit.split-lp81, %.loopexit75, %.loopexit.split-lp76, %116
  %.pn54.pn.pn.pn = phi { ptr, i32 } [ %lpad.phi99, %116 ], [ %lpad.loopexit77, %.loopexit75 ], [ %lpad.loopexit.split-lp78, %.loopexit.split-lp76 ], [ %lpad.loopexit82, %.loopexit80 ], [ %lpad.loopexit.split-lp83, %.loopexit.split-lp81 ], [ %lpad.loopexit87, %.loopexit85 ], [ %lpad.loopexit.split-lp88, %.loopexit.split-lp86 ], [ %lpad.loopexit92, %.loopexit90 ], [ %lpad.loopexit.split-lp93, %.loopexit.split-lp91 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #6
  br label %131

118:                                              ; preds = %._crit_edge
  %.not53 = icmp eq i32 %95, 0
  br i1 %.not53, label %119, label %125

119:                                              ; preds = %118
  %120 = invoke noundef double @_ZNK5R3Box6VolumeEv(ptr noundef nonnull align 8 dereferenceable(56) %7)
          to label %121 unwind label %.loopexit110

121:                                              ; preds = %119
  %122 = invoke noundef double @_ZNK5R3Box6VolumeEv(ptr noundef nonnull align 8 dereferenceable(56) %4)
          to label %123 unwind label %.loopexit110

123:                                              ; preds = %121
  %124 = fcmp olt double %120, %122
  br i1 %124, label %125, label %129

125:                                              ; preds = %123, %118
  %126 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZN5R3BoxaSERKS_(ptr noundef nonnull align 8 dereferenceable(56) %4, ptr noundef nonnull align 8 dereferenceable(56) %7)
          to label %127 unwind label %.loopexit110

127:                                              ; preds = %125
  %128 = invoke noundef nonnull align 8 dereferenceable(72) ptr @_ZN7R3TriadaSERKS_(ptr noundef nonnull align 8 dereferenceable(72) %5, ptr noundef nonnull align 8 dereferenceable(72) %6)
          to label %129 unwind label %.loopexit110

.loopexit110:                                     ; preds = %._crit_edge, %119, %121, %125, %127
  %lpad.loopexit112 = landingpad { ptr, i32 }
          cleanup
  br label %131

.loopexit.split-lp111:                            ; preds = %._crit_edge.1, %71, %73, %77, %79
  %lpad.loopexit.split-lp113 = landingpad { ptr, i32 }
          cleanup
  br label %131

129:                                              ; preds = %127, %123
  call void @_ZN7R3SolidD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %7) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %6) #6
  %130 = add nuw nsw i32 %.04672, 1
  %exitcond.not = icmp eq i32 %130, 4
  br i1 %exitcond.not, label %.preheader68.1, label %84, !llvm.loop !10

131:                                              ; preds = %.loopexit110, %.loopexit.split-lp111, %.loopexit, %.loopexit.split-lp, %117
  %.pn54.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn54.pn.pn.pn, %117 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ], [ %lpad.loopexit112, %.loopexit110 ], [ %lpad.loopexit.split-lp113, %.loopexit.split-lp111 ]
  call void @_ZN7R3SolidD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %7) #6
  br label %132

132:                                              ; preds = %.loopexit105, %.loopexit.split-lp106, %131
  %.pn54.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn54.pn.pn.pn.pn.pn, %131 ], [ %lpad.loopexit107, %.loopexit105 ], [ %lpad.loopexit.split-lp108, %.loopexit.split-lp106 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %7) #6
  br label %133

133:                                              ; preds = %.loopexit100, %.loopexit.split-lp101, %132
  %.pn54.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn54.pn.pn.pn.pn.pn.pn, %132 ], [ %lpad.loopexit102, %.loopexit100 ], [ %lpad.loopexit.split-lp103, %.loopexit.split-lp101 ]
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %6) #6
  br label %190

134:                                              ; preds = %29
  %.not = icmp eq i32 %30, 0
  br i1 %.not, label %139, label %135

135:                                              ; preds = %134
  %136 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZN5R3BoxaSERKS_(ptr noundef nonnull align 8 dereferenceable(56) %4, ptr noundef nonnull align 8 dereferenceable(56) @R3zero_box)
          to label %139 unwind label %137

137:                                              ; preds = %135, %29
  %138 = landingpad { ptr, i32 }
          cleanup
  br label %190

139:                                              ; preds = %135, %134
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #6
  invoke void @_ZNK5R3Box8CentroidEv(ptr dead_on_unwind nonnull writable sret(%class.R3Point) align 8 %10, ptr noundef nonnull align 8 dereferenceable(56) %4)
          to label %140 unwind label %176

140:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #6
  %141 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7R3TriadixEi(ptr noundef nonnull align 8 dereferenceable(72) %5, i32 noundef 0)
          to label %142 unwind label %178

142:                                              ; preds = %140
  %143 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %10, i32 noundef 0)
          to label %144 unwind label %178

144:                                              ; preds = %142
  %145 = load double, ptr %143, align 8, !tbaa !12
  invoke void @_ZmlRK8R3Vectord(ptr dead_on_unwind nonnull writable sret(%class.R3Vector) align 8 %14, ptr noundef nonnull align 8 dereferenceable(24) %141, double noundef %145)
          to label %146 unwind label %178

146:                                              ; preds = %144
  invoke void @_ZplRK7R3PointRK8R3Vector(ptr dead_on_unwind nonnull writable sret(%class.R3Point) align 8 %13, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %14)
          to label %147 unwind label %178

147:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #6
  %148 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7R3TriadixEi(ptr noundef nonnull align 8 dereferenceable(72) %5, i32 noundef 1)
          to label %149 unwind label %180

149:                                              ; preds = %147
  %150 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %10, i32 noundef 1)
          to label %151 unwind label %180

151:                                              ; preds = %149
  %152 = load double, ptr %150, align 8, !tbaa !12
  invoke void @_ZmlRK8R3Vectord(ptr dead_on_unwind nonnull writable sret(%class.R3Vector) align 8 %15, ptr noundef nonnull align 8 dereferenceable(24) %148, double noundef %152)
          to label %153 unwind label %180

153:                                              ; preds = %151
  invoke void @_ZplRK7R3PointRK8R3Vector(ptr dead_on_unwind nonnull writable sret(%class.R3Point) align 8 %12, ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(24) %15)
          to label %154 unwind label %180

154:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %16) #6
  %155 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7R3TriadixEi(ptr noundef nonnull align 8 dereferenceable(72) %5, i32 noundef 2)
          to label %156 unwind label %182

156:                                              ; preds = %154
  %157 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %10, i32 noundef 2)
          to label %158 unwind label %182

158:                                              ; preds = %156
  %159 = load double, ptr %157, align 8, !tbaa !12
  invoke void @_ZmlRK8R3Vectord(ptr dead_on_unwind nonnull writable sret(%class.R3Vector) align 8 %16, ptr noundef nonnull align 8 dereferenceable(24) %155, double noundef %159)
          to label %160 unwind label %182

160:                                              ; preds = %158
  invoke void @_ZplRK7R3PointRK8R3Vector(ptr dead_on_unwind nonnull writable sret(%class.R3Point) align 8 %11, ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 8 dereferenceable(24) %16)
          to label %161 unwind label %182

161:                                              ; preds = %160
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #6
  %162 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7R3TriadixEi(ptr noundef nonnull align 8 dereferenceable(72) %5, i32 noundef 0)
          to label %163 unwind label %186

163:                                              ; preds = %161
  %164 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7R3TriadixEi(ptr noundef nonnull align 8 dereferenceable(72) %5, i32 noundef 1)
          to label %165 unwind label %186

165:                                              ; preds = %163
  %166 = invoke noundef double @_ZNK5R3Box7XRadiusEv(ptr noundef nonnull align 8 dereferenceable(56) %4)
          to label %167 unwind label %186

167:                                              ; preds = %165
  %168 = invoke noundef double @_ZNK5R3Box7YRadiusEv(ptr noundef nonnull align 8 dereferenceable(56) %4)
          to label %169 unwind label %186

169:                                              ; preds = %167
  %170 = invoke noundef double @_ZNK5R3Box7ZRadiusEv(ptr noundef nonnull align 8 dereferenceable(56) %4)
          to label %171 unwind label %186

171:                                              ; preds = %169
  %172 = load ptr, ptr %0, align 8, !tbaa !5
  %173 = getelementptr inbounds i8, ptr %172, i64 576
  %174 = load ptr, ptr %173, align 8
  invoke void %174(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %162, ptr noundef nonnull align 8 dereferenceable(24) %164, double noundef %166, double noundef %168, double noundef %170)
          to label %175 unwind label %186

175:                                              ; preds = %171
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %5) #6
  call void @_ZN7R3SolidD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %4) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  ret void

176:                                              ; preds = %139
  %177 = landingpad { ptr, i32 }
          cleanup
  br label %189

178:                                              ; preds = %146, %144, %142, %140
  %179 = landingpad { ptr, i32 }
          cleanup
  br label %185

180:                                              ; preds = %153, %151, %149, %147
  %181 = landingpad { ptr, i32 }
          cleanup
  br label %184

182:                                              ; preds = %160, %158, %156, %154
  %183 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #6
  br label %184

184:                                              ; preds = %182, %180
  %.pn = phi { ptr, i32 } [ %183, %182 ], [ %181, %180 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #6
  br label %185

185:                                              ; preds = %184, %178
  %.pn.pn = phi { ptr, i32 } [ %.pn, %184 ], [ %179, %178 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #6
  br label %188

186:                                              ; preds = %171, %169, %167, %165, %163, %161
  %187 = landingpad { ptr, i32 }
          cleanup
  br label %188

188:                                              ; preds = %186, %185
  %.pn50 = phi { ptr, i32 } [ %187, %186 ], [ %.pn.pn, %185 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #6
  br label %189

189:                                              ; preds = %188, %176
  %.pn50.pn = phi { ptr, i32 } [ %.pn50, %188 ], [ %177, %176 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #6
  br label %190

190:                                              ; preds = %133, %137, %189, %37
  %.pn54.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %38, %37 ], [ %.pn54.pn.pn.pn.pn.pn.pn.pn, %133 ], [ %.pn50.pn, %189 ], [ %138, %137 ]
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %5) #6
  call void @_ZN7R3SolidD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %4) #6
  br label %191

191:                                              ; preds = %190, %35
  %.pn54.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn54.pn.pn.pn.pn.pn.pn.pn.pn.pn, %190 ], [ %36, %35 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %4) #6
  br label %192

192:                                              ; preds = %191, %33
  %.pn54.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn54.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %191 ], [ %34, %33 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  br label %193

193:                                              ; preds = %192, %31
  %.pn54.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn54.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %192 ], [ %32, %31 ]
  call void @_ZN7R3SolidD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  resume { ptr, i32 } %.pn54.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn
}

declare void @_Z10R3CentroidRK7RNArrayIP7R3PointEPKd(ptr dead_on_unwind writable sret(%class.R3Point) align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) local_unnamed_addr #1

declare void @_ZN5R3BoxC1ERKS_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #1

declare void @_ZN7R3TriadC1ERKS_(ptr noundef nonnull align 8 dereferenceable(72), ptr noundef nonnull align 8 dereferenceable(72)) unnamed_addr #1

declare void @_ZN7R3Triad6RotateEid(ptr noundef nonnull align 8 dereferenceable(72), i32 noundef, double noundef) local_unnamed_addr #1

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

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

declare void @_ZmiRK7R3PointS1_(ptr dead_on_unwind writable sret(%class.R3Vector) align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1

declare noundef double @_ZNK8R3Vector3DotERKS_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1

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

declare void @_ZN5R3Box5UnionERK7R3Point(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNK5R3Box7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #4 align 2

declare noundef double @_ZNK5R3Box6VolumeEv(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(56) ptr @_ZN5R3BoxaSERKS_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(72) ptr @_ZN7R3TriadaSERKS_(ptr noundef nonnull align 8 dereferenceable(72), ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #4 align 2

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

declare void @_ZNK5R3Box8CentroidEv(ptr dead_on_unwind writable sret(%class.R3Point) align 8, ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #1

declare void @_ZplRK7R3PointRK8R3Vector(ptr dead_on_unwind writable sret(%class.R3Point) align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1

declare void @_ZmlRK8R3Vectord(ptr dead_on_unwind writable sret(%class.R3Vector) align 8, ptr noundef nonnull align 8 dereferenceable(24), double noundef) local_unnamed_addr #1

; 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 #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZNK5R3Box7XRadiusEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZNK5R3Box7YRadiusEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZNK5R3Box7ZRadiusEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #4 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 = { 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 #5 = { 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 = { 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 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = distinct !{!10, !9}
!11 = distinct !{!11, !9}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !14, i64 0}
!14 = !{!"omnipotent char", !7, i64 0}


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