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

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

@R3xyz_triad = external global %class.R3Triad, align 8
@RN_EPSILON = external global double, align 8
@RN_BIG_EPSILON = external global double, align 8
@.str = external hidden unnamed_addr constant [41 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [89 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [47 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK7RNArrayIP7R3PointEixEi(ptr noundef nonnull align 8 dereferenceable(16), 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) #0

; Function Attrs: mustprogress uwtable
define dso_local void @_Z15R3PrincipleAxesRK7R3PointRK7RNArrayIPS_EPKdPd(ptr dead_on_unwind noalias writable sret(%class.R3Triad) align 8 %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef %3, ptr noundef %4) #2 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca [9 x double], align 16
  %12 = alloca double, align 8
  %13 = alloca i32, align 4
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca [9 x double], align 16
  %21 = alloca [3 x double], align 16
  %22 = alloca [9 x double], align 16
  %23 = alloca [3 x %class.R3Vector], align 16
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca double, align 8
  %27 = alloca double, align 8
  %28 = alloca double, align 8
  %29 = alloca [3 x i32], align 4
  %30 = alloca [3 x i32], align 4
  %31 = alloca i32, align 4
  %32 = alloca ptr, align 8
  %33 = alloca i32, align 4
  %34 = alloca double, align 8
  %35 = alloca %class.R3Vector, align 8
  %36 = alloca i32, align 4
  %37 = alloca %class.R3Vector, align 8
  store ptr %0, ptr %6, align 8
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 72, ptr %11) #7
  call void @llvm.memset.p0.i64(ptr align 16 %11, i8 0, i64 72, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  store double 0.000000e+00, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 0, ptr %13, align 4, !tbaa !11
  br label %38

38:                                               ; preds = %143, %5
  %39 = load i32, ptr %13, align 4, !tbaa !11
  %40 = load ptr, ptr %8, align 8, !tbaa !5
  %41 = call noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16) %40)
  %42 = icmp slt i32 %39, %41
  br i1 %42, label %44, label %43

43:                                               ; preds = %38
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %146

44:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %45 = load ptr, ptr %9, align 8, !tbaa !5
  %46 = icmp ne ptr %45, null
  br i1 %46, label %47, label %53

47:                                               ; preds = %44
  %48 = load ptr, ptr %9, align 8, !tbaa !5
  %49 = load i32, ptr %13, align 4, !tbaa !11
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds double, ptr %48, i64 %50
  %52 = load double, ptr %51, align 8, !tbaa !9
  br label %54

53:                                               ; preds = %44
  br label %54

54:                                               ; preds = %53, %47
  %55 = phi double [ %52, %47 ], [ 1.000000e+00, %53 ]
  store double %55, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %56 = load ptr, ptr %8, align 8, !tbaa !5
  %57 = load i32, ptr %13, align 4, !tbaa !11
  %58 = call noundef ptr @_ZNK7RNArrayIP7R3PointEixEi(ptr noundef nonnull align 8 dereferenceable(16) %56, i32 noundef %57)
  %59 = call noundef double @_ZNK7R3Point1XEv(ptr noundef nonnull align 8 dereferenceable(24) %58)
  %60 = load ptr, ptr %7, align 8, !tbaa !5
  %61 = call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %60, i32 noundef 0)
  %62 = fsub double %59, %61
  store double %62, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %63 = load ptr, ptr %8, align 8, !tbaa !5
  %64 = load i32, ptr %13, align 4, !tbaa !11
  %65 = call noundef ptr @_ZNK7RNArrayIP7R3PointEixEi(ptr noundef nonnull align 8 dereferenceable(16) %63, i32 noundef %64)
  %66 = call noundef double @_ZNK7R3Point1YEv(ptr noundef nonnull align 8 dereferenceable(24) %65)
  %67 = load ptr, ptr %7, align 8, !tbaa !5
  %68 = call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %67, i32 noundef 1)
  %69 = fsub double %66, %68
  store double %69, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %70 = load ptr, ptr %8, align 8, !tbaa !5
  %71 = load i32, ptr %13, align 4, !tbaa !11
  %72 = call noundef ptr @_ZNK7RNArrayIP7R3PointEixEi(ptr noundef nonnull align 8 dereferenceable(16) %70, i32 noundef %71)
  %73 = call noundef double @_ZNK7R3Point1ZEv(ptr noundef nonnull align 8 dereferenceable(24) %72)
  %74 = load ptr, ptr %7, align 8, !tbaa !5
  %75 = call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %74, i32 noundef 2)
  %76 = fsub double %73, %75
  store double %76, ptr %17, align 8, !tbaa !9
  %77 = load double, ptr %14, align 8, !tbaa !9
  %78 = load double, ptr %15, align 8, !tbaa !9
  %79 = fmul double %77, %78
  %80 = load double, ptr %15, align 8, !tbaa !9
  %81 = getelementptr inbounds [9 x double], ptr %11, i64 0, i64 0
  %82 = load double, ptr %81, align 16, !tbaa !9
  %83 = call double @llvm.fmuladd.f64(double %79, double %80, double %82)
  store double %83, ptr %81, align 16, !tbaa !9
  %84 = load double, ptr %14, align 8, !tbaa !9
  %85 = load double, ptr %15, align 8, !tbaa !9
  %86 = fmul double %84, %85
  %87 = load double, ptr %16, align 8, !tbaa !9
  %88 = getelementptr inbounds [9 x double], ptr %11, i64 0, i64 1
  %89 = load double, ptr %88, align 8, !tbaa !9
  %90 = call double @llvm.fmuladd.f64(double %86, double %87, double %89)
  store double %90, ptr %88, align 8, !tbaa !9
  %91 = load double, ptr %14, align 8, !tbaa !9
  %92 = load double, ptr %15, align 8, !tbaa !9
  %93 = fmul double %91, %92
  %94 = load double, ptr %17, align 8, !tbaa !9
  %95 = getelementptr inbounds [9 x double], ptr %11, i64 0, i64 2
  %96 = load double, ptr %95, align 16, !tbaa !9
  %97 = call double @llvm.fmuladd.f64(double %93, double %94, double %96)
  store double %97, ptr %95, align 16, !tbaa !9
  %98 = load double, ptr %14, align 8, !tbaa !9
  %99 = load double, ptr %16, align 8, !tbaa !9
  %100 = fmul double %98, %99
  %101 = load double, ptr %15, align 8, !tbaa !9
  %102 = getelementptr inbounds [9 x double], ptr %11, i64 0, i64 3
  %103 = load double, ptr %102, align 8, !tbaa !9
  %104 = call double @llvm.fmuladd.f64(double %100, double %101, double %103)
  store double %104, ptr %102, align 8, !tbaa !9
  %105 = load double, ptr %14, align 8, !tbaa !9
  %106 = load double, ptr %16, align 8, !tbaa !9
  %107 = fmul double %105, %106
  %108 = load double, ptr %16, align 8, !tbaa !9
  %109 = getelementptr inbounds [9 x double], ptr %11, i64 0, i64 4
  %110 = load double, ptr %109, align 16, !tbaa !9
  %111 = call double @llvm.fmuladd.f64(double %107, double %108, double %110)
  store double %111, ptr %109, align 16, !tbaa !9
  %112 = load double, ptr %14, align 8, !tbaa !9
  %113 = load double, ptr %16, align 8, !tbaa !9
  %114 = fmul double %112, %113
  %115 = load double, ptr %17, align 8, !tbaa !9
  %116 = getelementptr inbounds [9 x double], ptr %11, i64 0, i64 5
  %117 = load double, ptr %116, align 8, !tbaa !9
  %118 = call double @llvm.fmuladd.f64(double %114, double %115, double %117)
  store double %118, ptr %116, align 8, !tbaa !9
  %119 = load double, ptr %14, align 8, !tbaa !9
  %120 = load double, ptr %17, align 8, !tbaa !9
  %121 = fmul double %119, %120
  %122 = load double, ptr %15, align 8, !tbaa !9
  %123 = getelementptr inbounds [9 x double], ptr %11, i64 0, i64 6
  %124 = load double, ptr %123, align 16, !tbaa !9
  %125 = call double @llvm.fmuladd.f64(double %121, double %122, double %124)
  store double %125, ptr %123, align 16, !tbaa !9
  %126 = load double, ptr %14, align 8, !tbaa !9
  %127 = load double, ptr %17, align 8, !tbaa !9
  %128 = fmul double %126, %127
  %129 = load double, ptr %16, align 8, !tbaa !9
  %130 = getelementptr inbounds [9 x double], ptr %11, i64 0, i64 7
  %131 = load double, ptr %130, align 8, !tbaa !9
  %132 = call double @llvm.fmuladd.f64(double %128, double %129, double %131)
  store double %132, ptr %130, align 8, !tbaa !9
  %133 = load double, ptr %14, align 8, !tbaa !9
  %134 = load double, ptr %17, align 8, !tbaa !9
  %135 = fmul double %133, %134
  %136 = load double, ptr %17, align 8, !tbaa !9
  %137 = getelementptr inbounds [9 x double], ptr %11, i64 0, i64 8
  %138 = load double, ptr %137, align 16, !tbaa !9
  %139 = call double @llvm.fmuladd.f64(double %135, double %136, double %138)
  store double %139, ptr %137, align 16, !tbaa !9
  %140 = load double, ptr %14, align 8, !tbaa !9
  %141 = load double, ptr %12, align 8, !tbaa !9
  %142 = fadd double %141, %140
  store double %142, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %143

143:                                              ; preds = %54
  %144 = load i32, ptr %13, align 4, !tbaa !11
  %145 = add nsw i32 %144, 1
  store i32 %145, ptr %13, align 4, !tbaa !11
  br label %38, !llvm.loop !13

146:                                              ; preds = %43
  %147 = load double, ptr %12, align 8, !tbaa !9
  %148 = fcmp oeq double %147, 0.000000e+00
  br i1 %148, label %149, label %150

149:                                              ; preds = %146
  call void @_ZN7R3TriadC1ERKS_(ptr noundef nonnull align 8 dereferenceable(72) %0, ptr noundef nonnull align 8 dereferenceable(72) @R3xyz_triad)
  store i32 1, ptr %18, align 4
  br label %374

150:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 0, ptr %19, align 4, !tbaa !11
  br label %151

151:                                              ; preds = %162, %150
  %152 = load i32, ptr %19, align 4, !tbaa !11
  %153 = icmp slt i32 %152, 9
  br i1 %153, label %155, label %154

154:                                              ; preds = %151
  store i32 5, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %165

155:                                              ; preds = %151
  %156 = load double, ptr %12, align 8, !tbaa !9
  %157 = load i32, ptr %19, align 4, !tbaa !11
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds [9 x double], ptr %11, i64 0, i64 %158
  %160 = load double, ptr %159, align 8, !tbaa !9
  %161 = fdiv double %160, %156
  store double %161, ptr %159, align 8, !tbaa !9
  br label %162

162:                                              ; preds = %155
  %163 = load i32, ptr %19, align 4, !tbaa !11
  %164 = add nsw i32 %163, 1
  store i32 %164, ptr %19, align 4, !tbaa !11
  br label %151, !llvm.loop !15

165:                                              ; preds = %154
  call void @llvm.lifetime.start.p0(i64 72, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #7
  call void @llvm.lifetime.start.p0(i64 72, ptr %22) #7
  %166 = getelementptr inbounds [9 x double], ptr %11, i64 0, i64 0
  %167 = getelementptr inbounds [9 x double], ptr %20, i64 0, i64 0
  %168 = getelementptr inbounds [3 x double], ptr %21, i64 0, i64 0
  %169 = getelementptr inbounds [9 x double], ptr %22, i64 0, i64 0
  call void @_Z14RNSvdDecomposeiiPKdPdS1_S1_(i32 noundef 3, i32 noundef 3, ptr noundef %166, ptr noundef %167, ptr noundef %168, ptr noundef %169)
  call void @llvm.lifetime.start.p0(i64 72, ptr %23) #7
  %170 = getelementptr inbounds [3 x %class.R3Vector], ptr %23, i32 0, i32 0
  %171 = getelementptr inbounds %class.R3Vector, ptr %170, i64 3
  br label %172

172:                                              ; preds = %172, %165
  %173 = phi ptr [ %170, %165 ], [ %174, %172 ]
  call void @_ZN8R3VectorC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %173)
  %174 = getelementptr inbounds %class.R3Vector, ptr %173, i64 1
  %175 = icmp eq ptr %174, %171
  br i1 %175, label %176, label %172

176:                                              ; preds = %172
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  store i32 0, ptr %24, align 4, !tbaa !11
  br label %177

177:                                              ; preds = %203, %176
  %178 = load i32, ptr %24, align 4, !tbaa !11
  %179 = icmp slt i32 %178, 3
  br i1 %179, label %181, label %180

180:                                              ; preds = %177
  store i32 8, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  br label %206

181:                                              ; preds = %177
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  store i32 0, ptr %25, align 4, !tbaa !11
  br label %182

182:                                              ; preds = %199, %181
  %183 = load i32, ptr %25, align 4, !tbaa !11
  %184 = icmp slt i32 %183, 3
  br i1 %184, label %186, label %185

185:                                              ; preds = %182
  store i32 11, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  br label %202

186:                                              ; preds = %182
  %187 = load i32, ptr %24, align 4, !tbaa !11
  %188 = mul nsw i32 3, %187
  %189 = load i32, ptr %25, align 4, !tbaa !11
  %190 = add nsw i32 %188, %189
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds [9 x double], ptr %22, i64 0, i64 %191
  %193 = load double, ptr %192, align 8, !tbaa !9
  %194 = load i32, ptr %24, align 4, !tbaa !11
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds [3 x %class.R3Vector], ptr %23, i64 0, i64 %195
  %197 = load i32, ptr %25, align 4, !tbaa !11
  %198 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8R3VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %196, i32 noundef %197)
  store double %193, ptr %198, align 8, !tbaa !9
  br label %199

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

202:                                              ; preds = %185
  br label %203

203:                                              ; preds = %202
  %204 = load i32, ptr %24, align 4, !tbaa !11
  %205 = add nsw i32 %204, 1
  store i32 %205, ptr %24, align 4, !tbaa !11
  br label %177, !llvm.loop !17

206:                                              ; preds = %180
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  %207 = getelementptr inbounds [3 x %class.R3Vector], ptr %23, i64 0, i64 0
  %208 = call noundef double @_ZNK8R3Vector6LengthEv(ptr noundef nonnull align 8 dereferenceable(24) %207)
  store double %208, ptr %26, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  %209 = getelementptr inbounds [3 x %class.R3Vector], ptr %23, i64 0, i64 1
  %210 = call noundef double @_ZNK8R3Vector6LengthEv(ptr noundef nonnull align 8 dereferenceable(24) %209)
  store double %210, ptr %27, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  %211 = getelementptr inbounds [3 x %class.R3Vector], ptr %23, i64 0, i64 2
  %212 = call noundef double @_ZNK8R3Vector6LengthEv(ptr noundef nonnull align 8 dereferenceable(24) %211)
  store double %212, ptr %28, align 8, !tbaa !9
  %213 = load double, ptr %26, align 8, !tbaa !9
  %214 = load double, ptr @RN_EPSILON, align 8, !tbaa !9
  %215 = call noundef i32 @_Z12RNIsPositivedd(double noundef %213, double noundef %214)
  %216 = icmp ne i32 %215, 0
  br i1 %216, label %217, label %221

217:                                              ; preds = %206
  %218 = load double, ptr %26, align 8, !tbaa !9
  %219 = getelementptr inbounds [3 x %class.R3Vector], ptr %23, i64 0, i64 0
  %220 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8R3VectordVEd(ptr noundef nonnull align 8 dereferenceable(24) %219, double noundef %218)
  br label %221

221:                                              ; preds = %217, %206
  %222 = load double, ptr %27, align 8, !tbaa !9
  %223 = load double, ptr @RN_EPSILON, align 8, !tbaa !9
  %224 = call noundef i32 @_Z12RNIsPositivedd(double noundef %222, double noundef %223)
  %225 = icmp ne i32 %224, 0
  br i1 %225, label %226, label %230

226:                                              ; preds = %221
  %227 = load double, ptr %27, align 8, !tbaa !9
  %228 = getelementptr inbounds [3 x %class.R3Vector], ptr %23, i64 0, i64 1
  %229 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8R3VectordVEd(ptr noundef nonnull align 8 dereferenceable(24) %228, double noundef %227)
  br label %230

230:                                              ; preds = %226, %221
  %231 = load double, ptr %28, align 8, !tbaa !9
  %232 = load double, ptr @RN_EPSILON, align 8, !tbaa !9
  %233 = call noundef i32 @_Z12RNIsPositivedd(double noundef %231, double noundef %232)
  %234 = icmp ne i32 %233, 0
  br i1 %234, label %235, label %239

235:                                              ; preds = %230
  %236 = load double, ptr %28, align 8, !tbaa !9
  %237 = getelementptr inbounds [3 x %class.R3Vector], ptr %23, i64 0, i64 2
  %238 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8R3VectordVEd(ptr noundef nonnull align 8 dereferenceable(24) %237, double noundef %236)
  br label %239

239:                                              ; preds = %235, %230
  call void @llvm.lifetime.start.p0(i64 12, ptr %29) #7
  call void @llvm.memset.p0.i64(ptr align 4 %29, i8 0, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %30) #7
  call void @llvm.memset.p0.i64(ptr align 4 %30, i8 0, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #7
  store i32 0, ptr %31, align 4, !tbaa !11
  br label %240

240:                                              ; preds = %279, %239
  %241 = load i32, ptr %31, align 4, !tbaa !11
  %242 = load ptr, ptr %8, align 8, !tbaa !5
  %243 = call noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16) %242)
  %244 = icmp slt i32 %241, %243
  br i1 %244, label %246, label %245

245:                                              ; preds = %240
  store i32 14, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  br label %282

246:                                              ; preds = %240
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #7
  %247 = load ptr, ptr %8, align 8, !tbaa !5
  %248 = load i32, ptr %31, align 4, !tbaa !11
  %249 = call noundef ptr @_ZNK7RNArrayIP7R3PointEixEi(ptr noundef nonnull align 8 dereferenceable(16) %247, i32 noundef %248)
  store ptr %249, ptr %32, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #7
  store i32 0, ptr %33, align 4, !tbaa !11
  br label %250

250:                                              ; preds = %275, %246
  %251 = load i32, ptr %33, align 4, !tbaa !11
  %252 = icmp slt i32 %251, 3
  br i1 %252, label %254, label %253

253:                                              ; preds = %250
  store i32 17, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #7
  br label %278

254:                                              ; preds = %250
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #7
  %255 = load i32, ptr %33, align 4, !tbaa !11
  %256 = sext i32 %255 to i64
  %257 = getelementptr inbounds [3 x %class.R3Vector], ptr %23, i64 0, i64 %256
  call void @llvm.lifetime.start.p0(i64 24, ptr %35) #7
  %258 = load ptr, ptr %32, align 8, !tbaa !5
  call void @_ZNK7R3Point6VectorEv(ptr dead_on_unwind writable sret(%class.R3Vector) align 8 %35, ptr noundef nonnull align 8 dereferenceable(24) %258)
  %259 = call noundef double @_ZNK8R3Vector3DotERKS_(ptr noundef nonnull align 8 dereferenceable(24) %257, ptr noundef nonnull align 8 dereferenceable(24) %35)
  call void @llvm.lifetime.end.p0(i64 24, ptr %35) #7
  store double %259, ptr %34, align 8, !tbaa !9
  %260 = load double, ptr %34, align 8, !tbaa !9
  %261 = fcmp ogt double %260, 0.000000e+00
  br i1 %261, label %262, label %268

262:                                              ; preds = %254
  %263 = load i32, ptr %33, align 4, !tbaa !11
  %264 = sext i32 %263 to i64
  %265 = getelementptr inbounds [3 x i32], ptr %29, i64 0, i64 %264
  %266 = load i32, ptr %265, align 4, !tbaa !11
  %267 = add nsw i32 %266, 1
  store i32 %267, ptr %265, align 4, !tbaa !11
  br label %274

268:                                              ; preds = %254
  %269 = load i32, ptr %33, align 4, !tbaa !11
  %270 = sext i32 %269 to i64
  %271 = getelementptr inbounds [3 x i32], ptr %30, i64 0, i64 %270
  %272 = load i32, ptr %271, align 4, !tbaa !11
  %273 = add nsw i32 %272, 1
  store i32 %273, ptr %271, align 4, !tbaa !11
  br label %274

274:                                              ; preds = %268, %262
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #7
  br label %275

275:                                              ; preds = %274
  %276 = load i32, ptr %33, align 4, !tbaa !11
  %277 = add nsw i32 %276, 1
  store i32 %277, ptr %33, align 4, !tbaa !11
  br label %250, !llvm.loop !18

278:                                              ; preds = %253
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #7
  br label %279

279:                                              ; preds = %278
  %280 = load i32, ptr %31, align 4, !tbaa !11
  %281 = add nsw i32 %280, 1
  store i32 %281, ptr %31, align 4, !tbaa !11
  br label %240, !llvm.loop !19

282:                                              ; preds = %245
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #7
  store i32 0, ptr %36, align 4, !tbaa !11
  br label %283

283:                                              ; preds = %302, %282
  %284 = load i32, ptr %36, align 4, !tbaa !11
  %285 = icmp slt i32 %284, 3
  br i1 %285, label %287, label %286

286:                                              ; preds = %283
  store i32 20, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #7
  br label %305

287:                                              ; preds = %283
  %288 = load i32, ptr %36, align 4, !tbaa !11
  %289 = sext i32 %288 to i64
  %290 = getelementptr inbounds [3 x i32], ptr %29, i64 0, i64 %289
  %291 = load i32, ptr %290, align 4, !tbaa !11
  %292 = load i32, ptr %36, align 4, !tbaa !11
  %293 = sext i32 %292 to i64
  %294 = getelementptr inbounds [3 x i32], ptr %30, i64 0, i64 %293
  %295 = load i32, ptr %294, align 4, !tbaa !11
  %296 = icmp slt i32 %291, %295
  br i1 %296, label %297, label %301

297:                                              ; preds = %287
  %298 = load i32, ptr %36, align 4, !tbaa !11
  %299 = sext i32 %298 to i64
  %300 = getelementptr inbounds [3 x %class.R3Vector], ptr %23, i64 0, i64 %299
  call void @_ZN8R3Vector4FlipEv(ptr noundef nonnull align 8 dereferenceable(24) %300)
  br label %301

301:                                              ; preds = %297, %287
  br label %302

302:                                              ; preds = %301
  %303 = load i32, ptr %36, align 4, !tbaa !11
  %304 = add nsw i32 %303, 1
  store i32 %304, ptr %36, align 4, !tbaa !11
  br label %283, !llvm.loop !20

305:                                              ; preds = %286
  call void @llvm.lifetime.start.p0(i64 24, ptr %37) #7
  %306 = getelementptr inbounds [3 x %class.R3Vector], ptr %23, i64 0, i64 0
  %307 = getelementptr inbounds [3 x %class.R3Vector], ptr %23, i64 0, i64 1
  call void @_ZrmRK8R3VectorS1_(ptr dead_on_unwind writable sret(%class.R3Vector) align 8 %37, ptr noundef nonnull align 8 dereferenceable(24) %306, ptr noundef nonnull align 8 dereferenceable(24) %307)
  %308 = getelementptr inbounds [3 x %class.R3Vector], ptr %23, i64 0, i64 2
  %309 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8R3VectoraSERKS_(ptr noundef nonnull align 8 dereferenceable(24) %308, ptr noundef nonnull align 8 dereferenceable(24) %37)
  call void @llvm.lifetime.end.p0(i64 24, ptr %37) #7
  %310 = getelementptr inbounds [3 x %class.R3Vector], ptr %23, i64 0, i64 0
  %311 = call noundef double @_ZNK8R3Vector6LengthEv(ptr noundef nonnull align 8 dereferenceable(24) %310)
  %312 = load double, ptr @RN_BIG_EPSILON, align 8, !tbaa !9
  %313 = call noundef i32 @_Z9RNIsEqualddd(double noundef %311, double noundef 1.000000e+00, double noundef %312)
  %314 = icmp ne i32 %313, 0
  br i1 %314, label %316, label %315

315:                                              ; preds = %305
  call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 120, ptr noundef @.str.2)
  br label %316

316:                                              ; preds = %315, %305
  %317 = getelementptr inbounds [3 x %class.R3Vector], ptr %23, i64 0, i64 1
  %318 = call noundef double @_ZNK8R3Vector6LengthEv(ptr noundef nonnull align 8 dereferenceable(24) %317)
  %319 = load double, ptr @RN_BIG_EPSILON, align 8, !tbaa !9
  %320 = call noundef i32 @_Z9RNIsEqualddd(double noundef %318, double noundef 1.000000e+00, double noundef %319)
  %321 = icmp ne i32 %320, 0
  br i1 %321, label %323, label %322

322:                                              ; preds = %316
  call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef @.str, ptr noundef @.str.3, i32 noundef 121, ptr noundef @.str.2)
  br label %323

323:                                              ; preds = %322, %316
  %324 = getelementptr inbounds [3 x %class.R3Vector], ptr %23, i64 0, i64 2
  %325 = call noundef double @_ZNK8R3Vector6LengthEv(ptr noundef nonnull align 8 dereferenceable(24) %324)
  %326 = load double, ptr @RN_BIG_EPSILON, align 8, !tbaa !9
  %327 = call noundef i32 @_Z9RNIsEqualddd(double noundef %325, double noundef 1.000000e+00, double noundef %326)
  %328 = icmp ne i32 %327, 0
  br i1 %328, label %330, label %329

329:                                              ; preds = %323
  call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef @.str, ptr noundef @.str.4, i32 noundef 122, ptr noundef @.str.2)
  br label %330

330:                                              ; preds = %329, %323
  %331 = getelementptr inbounds [3 x %class.R3Vector], ptr %23, i64 0, i64 0
  %332 = getelementptr inbounds [3 x %class.R3Vector], ptr %23, i64 0, i64 1
  %333 = call noundef double @_ZNK8R3Vector3DotERKS_(ptr noundef nonnull align 8 dereferenceable(24) %331, ptr noundef nonnull align 8 dereferenceable(24) %332)
  %334 = load double, ptr @RN_BIG_EPSILON, align 8, !tbaa !9
  %335 = call noundef i32 @_Z8RNIsZerodd(double noundef %333, double noundef %334)
  %336 = icmp ne i32 %335, 0
  br i1 %336, label %338, label %337

337:                                              ; preds = %330
  call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef @.str, ptr noundef @.str.5, i32 noundef 123, ptr noundef @.str.2)
  br label %338

338:                                              ; preds = %337, %330
  %339 = getelementptr inbounds [3 x %class.R3Vector], ptr %23, i64 0, i64 1
  %340 = getelementptr inbounds [3 x %class.R3Vector], ptr %23, i64 0, i64 2
  %341 = call noundef double @_ZNK8R3Vector3DotERKS_(ptr noundef nonnull align 8 dereferenceable(24) %339, ptr noundef nonnull align 8 dereferenceable(24) %340)
  %342 = load double, ptr @RN_BIG_EPSILON, align 8, !tbaa !9
  %343 = call noundef i32 @_Z8RNIsZerodd(double noundef %341, double noundef %342)
  %344 = icmp ne i32 %343, 0
  br i1 %344, label %346, label %345

345:                                              ; preds = %338
  call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef @.str, ptr noundef @.str.6, i32 noundef 124, ptr noundef @.str.2)
  br label %346

346:                                              ; preds = %345, %338
  %347 = getelementptr inbounds [3 x %class.R3Vector], ptr %23, i64 0, i64 0
  %348 = getelementptr inbounds [3 x %class.R3Vector], ptr %23, i64 0, i64 2
  %349 = call noundef double @_ZNK8R3Vector3DotERKS_(ptr noundef nonnull align 8 dereferenceable(24) %347, ptr noundef nonnull align 8 dereferenceable(24) %348)
  %350 = load double, ptr @RN_BIG_EPSILON, align 8, !tbaa !9
  %351 = call noundef i32 @_Z8RNIsZerodd(double noundef %349, double noundef %350)
  %352 = icmp ne i32 %351, 0
  br i1 %352, label %354, label %353

353:                                              ; preds = %346
  call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef @.str, ptr noundef @.str.7, i32 noundef 125, ptr noundef @.str.2)
  br label %354

354:                                              ; preds = %353, %346
  %355 = load ptr, ptr %10, align 8, !tbaa !5
  %356 = icmp ne ptr %355, null
  br i1 %356, label %357, label %370

357:                                              ; preds = %354
  %358 = getelementptr inbounds [3 x double], ptr %21, i64 0, i64 0
  %359 = load double, ptr %358, align 16, !tbaa !9
  %360 = load ptr, ptr %10, align 8, !tbaa !5
  %361 = getelementptr inbounds double, ptr %360, i64 0
  store double %359, ptr %361, align 8, !tbaa !9
  %362 = getelementptr inbounds [3 x double], ptr %21, i64 0, i64 1
  %363 = load double, ptr %362, align 8, !tbaa !9
  %364 = load ptr, ptr %10, align 8, !tbaa !5
  %365 = getelementptr inbounds double, ptr %364, i64 1
  store double %363, ptr %365, align 8, !tbaa !9
  %366 = getelementptr inbounds [3 x double], ptr %21, i64 0, i64 2
  %367 = load double, ptr %366, align 16, !tbaa !9
  %368 = load ptr, ptr %10, align 8, !tbaa !5
  %369 = getelementptr inbounds double, ptr %368, i64 2
  store double %367, ptr %369, align 8, !tbaa !9
  br label %370

370:                                              ; preds = %357, %354
  %371 = getelementptr inbounds [3 x %class.R3Vector], ptr %23, i64 0, i64 0
  %372 = getelementptr inbounds [3 x %class.R3Vector], ptr %23, i64 0, i64 1
  %373 = getelementptr inbounds [3 x %class.R3Vector], ptr %23, i64 0, i64 2
  call void @_ZN7R3TriadC1ERK8R3VectorS2_S2_(ptr noundef nonnull align 8 dereferenceable(72) %0, ptr noundef nonnull align 8 dereferenceable(24) %371, ptr noundef nonnull align 8 dereferenceable(24) %372, ptr noundef nonnull align 8 dereferenceable(24) %373)
  store i32 1, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 72, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 72, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 72, ptr %20) #7
  br label %374

374:                                              ; preds = %370, %149
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 72, ptr %11) #7
  ret void
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK7R3Point1XEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK7R3Point1YEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK7R3Point1ZEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #5

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

declare void @_Z14RNSvdDecomposeiiPKdPdS1_S1_(i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #6

declare void @_ZN8R3VectorC1Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #6

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

declare noundef double @_ZNK8R3Vector6LengthEv(ptr noundef nonnull align 8 dereferenceable(24)) #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z12RNIsPositivedd(double noundef, double noundef) #1

declare noundef nonnull align 8 dereferenceable(24) ptr @_ZN8R3VectordVEd(ptr noundef nonnull align 8 dereferenceable(24), double noundef) #6

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK7R3Point6VectorEv(ptr dead_on_unwind noalias writable sret(%class.R3Vector) align 8, ptr noundef nonnull align 8 dereferenceable(24)) #4 align 2

declare void @_ZN8R3Vector4FlipEv(ptr noundef nonnull align 8 dereferenceable(24)) #6

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

declare noundef nonnull align 8 dereferenceable(24) ptr @_ZN8R3VectoraSERKS_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z9RNIsEqualddd(double noundef, double noundef, double noundef) #4

declare void @_Z7RNAbortPKcz(ptr noundef, ...) #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z8RNIsZerodd(double noundef, double noundef) #4

declare void @_ZN7R3TriadC1ERK8R3VectorS2_S2_(ptr noundef nonnull align 8 dereferenceable(72), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #6

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { "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 #7 = { 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 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}


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

@R3xyz_triad = external global %class.R3Triad, align 8
@RN_EPSILON = external local_unnamed_addr global double, align 8
@RN_BIG_EPSILON = external local_unnamed_addr global double, align 8
@.str = external hidden unnamed_addr constant [41 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [89 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [47 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK7RNArrayIP7R3PointEixEi(ptr noundef nonnull align 8 dereferenceable(16), 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) #0

; Function Attrs: mustprogress uwtable
define dso_local void @_Z15R3PrincipleAxesRK7R3PointRK7RNArrayIPS_EPKdPd(ptr dead_on_unwind noalias writable sret(%class.R3Triad) align 8 %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef readonly %3, ptr noundef writeonly %4) local_unnamed_addr #2 {
  %6 = alloca [9 x double], align 16
  %7 = alloca [9 x double], align 16
  %8 = alloca [3 x double], align 16
  %9 = alloca [9 x double], align 16
  %10 = alloca [3 x %class.R3Vector], align 16
  %11 = alloca %class.R3Vector, align 8
  %12 = alloca %class.R3Vector, align 8
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %6) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(72) %6, i8 0, i64 32, i1 false)
  %13 = tail call noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16) %2)
  %14 = icmp sgt i32 %13, 0
  br i1 %14, label %.lr.ph, label %.thread

.lr.ph:                                           ; preds = %5
  %.not102 = icmp eq ptr %3, null
  br label %59

15:                                               ; preds = %68
  %16 = fcmp oeq double %102, 0.000000e+00
  br i1 %16, label %.thread, label %.preheader105.preheader

.preheader105.preheader:                          ; preds = %15
  %17 = insertelement <2 x double> poison, double %102, i64 0
  %18 = shufflevector <2 x double> %17, <2 x double> poison, <2 x i32> zeroinitializer
  %19 = fdiv <2 x double> %90, %18
  store <2 x double> %19, ptr %6, align 16, !tbaa !5
  %20 = getelementptr inbounds i8, ptr %6, i64 16
  %21 = fdiv <2 x double> %93, %18
  store <2 x double> %21, ptr %20, align 16, !tbaa !5
  %22 = getelementptr inbounds i8, ptr %6, i64 32
  %23 = fdiv <2 x double> %96, %18
  store <2 x double> %23, ptr %22, align 16, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %6, i64 48
  %25 = fdiv <2 x double> %100, %18
  store <2 x double> %25, ptr %24, align 16, !tbaa !5
  %26 = getelementptr inbounds i8, ptr %6, i64 64
  %27 = fdiv double %101, %102
  store double %27, ptr %26, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %7) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #8
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %9) #8
  call void @_Z14RNSvdDecomposeiiPKdPdS1_S1_(i32 noundef 3, i32 noundef 3, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %9)
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %10) #8
  call void @_ZN8R3VectorC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %10)
  %.ptr.1 = getelementptr inbounds i8, ptr %10, i64 24
  call void @_ZN8R3VectorC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.1)
  %.ptr.2 = getelementptr inbounds i8, ptr %10, i64 48
  call void @_ZN8R3VectorC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.2)
  %28 = load double, ptr %9, align 16, !tbaa !5
  %29 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8R3VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %10, i32 noundef 0)
  store double %28, ptr %29, align 8, !tbaa !5
  %30 = getelementptr inbounds i8, ptr %9, i64 8
  %31 = load double, ptr %30, align 8, !tbaa !5
  %32 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8R3VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %10, i32 noundef 1)
  store double %31, ptr %32, align 8, !tbaa !5
  %33 = getelementptr inbounds i8, ptr %9, i64 16
  %34 = load double, ptr %33, align 16, !tbaa !5
  %35 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8R3VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %10, i32 noundef 2)
  store double %34, ptr %35, align 8, !tbaa !5
  %36 = getelementptr inbounds i8, ptr %9, i64 24
  %37 = load double, ptr %36, align 8, !tbaa !5
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8R3VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.1, i32 noundef 0)
  store double %37, ptr %38, align 8, !tbaa !5
  %39 = getelementptr inbounds i8, ptr %9, i64 32
  %40 = load double, ptr %39, align 16, !tbaa !5
  %41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8R3VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.1, i32 noundef 1)
  store double %40, ptr %41, align 8, !tbaa !5
  %42 = getelementptr inbounds i8, ptr %9, i64 40
  %43 = load double, ptr %42, align 8, !tbaa !5
  %44 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8R3VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.1, i32 noundef 2)
  store double %43, ptr %44, align 8, !tbaa !5
  %45 = getelementptr inbounds i8, ptr %9, i64 48
  %46 = load double, ptr %45, align 16, !tbaa !5
  %47 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8R3VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.2, i32 noundef 0)
  store double %46, ptr %47, align 8, !tbaa !5
  %48 = getelementptr inbounds i8, ptr %9, i64 56
  %49 = load double, ptr %48, align 8, !tbaa !5
  %50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8R3VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.2, i32 noundef 1)
  store double %49, ptr %50, align 8, !tbaa !5
  %51 = getelementptr inbounds i8, ptr %9, i64 64
  %52 = load double, ptr %51, align 16, !tbaa !5
  %53 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8R3VectorixEi(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.2, i32 noundef 2)
  store double %52, ptr %53, align 8, !tbaa !5
  %54 = call noundef double @_ZNK8R3Vector6LengthEv(ptr noundef nonnull align 8 dereferenceable(24) %10)
  %55 = call noundef double @_ZNK8R3Vector6LengthEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.1)
  %56 = call noundef double @_ZNK8R3Vector6LengthEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.2)
  %57 = load double, ptr @RN_EPSILON, align 8, !tbaa !5
  %58 = call noundef i32 @_Z12RNIsPositivedd(double noundef %54, double noundef %57)
  %.not = icmp eq i32 %58, 0
  br i1 %.not, label %108, label %106

59:                                               ; preds = %.lr.ph, %68
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %68 ]
  %60 = phi double [ 0.000000e+00, %.lr.ph ], [ %101, %68 ]
  %.083107 = phi double [ 0.000000e+00, %.lr.ph ], [ %102, %68 ]
  %61 = phi <2 x double> [ zeroinitializer, %.lr.ph ], [ %90, %68 ]
  %62 = phi <2 x double> [ zeroinitializer, %.lr.ph ], [ %93, %68 ]
  %63 = phi <2 x double> [ zeroinitializer, %.lr.ph ], [ %96, %68 ]
  %64 = phi <2 x double> [ zeroinitializer, %.lr.ph ], [ %100, %68 ]
  br i1 %.not102, label %68, label %65

65:                                               ; preds = %59
  %66 = getelementptr inbounds double, ptr %3, i64 %indvars.iv
  %67 = load double, ptr %66, align 8, !tbaa !5
  br label %68

68:                                               ; preds = %59, %65
  %69 = phi double [ %67, %65 ], [ 1.000000e+00, %59 ]
  %70 = trunc nuw nsw i64 %indvars.iv to i32
  %71 = tail call noundef ptr @_ZNK7RNArrayIP7R3PointEixEi(ptr noundef nonnull align 8 dereferenceable(16) %2, i32 noundef %70)
  %72 = tail call noundef double @_ZNK7R3Point1XEv(ptr noundef nonnull align 8 dereferenceable(24) %71)
  %73 = tail call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 0)
  %74 = tail call noundef ptr @_ZNK7RNArrayIP7R3PointEixEi(ptr noundef nonnull align 8 dereferenceable(16) %2, i32 noundef %70)
  %75 = tail call noundef double @_ZNK7R3Point1YEv(ptr noundef nonnull align 8 dereferenceable(24) %74)
  %76 = tail call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 1)
  %77 = insertelement <2 x double> poison, double %72, i64 0
  %78 = insertelement <2 x double> %77, double %75, i64 1
  %79 = insertelement <2 x double> poison, double %73, i64 0
  %80 = insertelement <2 x double> %79, double %76, i64 1
  %81 = fsub <2 x double> %78, %80
  %82 = tail call noundef ptr @_ZNK7RNArrayIP7R3PointEixEi(ptr noundef nonnull align 8 dereferenceable(16) %2, i32 noundef %70)
  %83 = tail call noundef double @_ZNK7R3Point1ZEv(ptr noundef nonnull align 8 dereferenceable(24) %82)
  %84 = tail call noundef double @_ZNK7R3PointixEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 2)
  %85 = fsub double %83, %84
  %86 = insertelement <2 x double> poison, double %69, i64 0
  %87 = shufflevector <2 x double> %86, <2 x double> poison, <2 x i32> zeroinitializer
  %88 = fmul <2 x double> %87, %81
  %89 = shufflevector <2 x double> %88, <2 x double> poison, <2 x i32> zeroinitializer
  %90 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %89, <2 x double> %81, <2 x double> %61)
  %91 = shufflevector <2 x double> %81, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  %92 = insertelement <2 x double> %91, double %85, i64 0
  %93 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %88, <2 x double> %92, <2 x double> %62)
  %94 = shufflevector <2 x double> %88, <2 x double> poison, <2 x i32> <i32 1, i32 1>
  %95 = insertelement <2 x double> %91, double %85, i64 1
  %96 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %94, <2 x double> %95, <2 x double> %63)
  %97 = fmul double %69, %85
  %98 = insertelement <2 x double> poison, double %97, i64 0
  %99 = shufflevector <2 x double> %98, <2 x double> poison, <2 x i32> zeroinitializer
  %100 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %99, <2 x double> %81, <2 x double> %64)
  %101 = tail call double @llvm.fmuladd.f64(double %97, double %85, double %60)
  %102 = fadd double %.083107, %69
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %103 = tail call noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16) %2)
  %104 = sext i32 %103 to i64
  %105 = icmp slt i64 %indvars.iv.next, %104
  br i1 %105, label %59, label %15, !llvm.loop !9

.thread:                                          ; preds = %5, %15
  tail call void @_ZN7R3TriadC1ERKS_(ptr noundef nonnull align 8 dereferenceable(72) %0, ptr noundef nonnull align 8 dereferenceable(72) @R3xyz_triad)
  br label %182

106:                                              ; preds = %.preheader105.preheader
  %107 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8R3VectordVEd(ptr noundef nonnull align 8 dereferenceable(24) %10, double noundef %54)
  br label %108

108:                                              ; preds = %106, %.preheader105.preheader
  %109 = load double, ptr @RN_EPSILON, align 8, !tbaa !5
  %110 = call noundef i32 @_Z12RNIsPositivedd(double noundef %55, double noundef %109)
  %.not93 = icmp eq i32 %110, 0
  br i1 %.not93, label %113, label %111

111:                                              ; preds = %108
  %112 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8R3VectordVEd(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.1, double noundef %55)
  br label %113

113:                                              ; preds = %111, %108
  %114 = load double, ptr @RN_EPSILON, align 8, !tbaa !5
  %115 = call noundef i32 @_Z12RNIsPositivedd(double noundef %56, double noundef %114)
  %.not94 = icmp eq i32 %115, 0
  br i1 %.not94, label %118, label %116

116:                                              ; preds = %113
  %117 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8R3VectordVEd(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.2, double noundef %56)
  br label %118

118:                                              ; preds = %116, %113
  %119 = call noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16) %2)
  %120 = icmp sgt i32 %119, 0
  br i1 %120, label %.lr.ph131, label %.thread189

.preheader:                                       ; preds = %.lr.ph131
  %121 = icmp ult i32 %.sroa.0163.2, %.sroa.0.2
  br i1 %121, label %138, label %139

.lr.ph131:                                        ; preds = %118, %.lr.ph131
  %.sroa.0163.1 = phi i32 [ %.sroa.0163.2, %.lr.ph131 ], [ 0, %118 ]
  %.sroa.6165.1 = phi i32 [ %.sroa.6165.2, %.lr.ph131 ], [ 0, %118 ]
  %.sroa.9167.1 = phi i32 [ %.sroa.9167.2, %.lr.ph131 ], [ 0, %118 ]
  %.sroa.0.1 = phi i32 [ %.sroa.0.2, %.lr.ph131 ], [ 0, %118 ]
  %.sroa.6.1 = phi i32 [ %.sroa.6.2, %.lr.ph131 ], [ 0, %118 ]
  %.sroa.9.1 = phi i32 [ %.sroa.9.2, %.lr.ph131 ], [ 0, %118 ]
  %.086129 = phi i32 [ %135, %.lr.ph131 ], [ 0, %118 ]
  %122 = call noundef ptr @_ZNK7RNArrayIP7R3PointEixEi(ptr noundef nonnull align 8 dereferenceable(16) %2, i32 noundef %.086129)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #8
  call void @_ZNK7R3Point6VectorEv(ptr dead_on_unwind nonnull writable sret(%class.R3Vector) align 8 %11, ptr noundef nonnull align 8 dereferenceable(24) %122)
  %123 = call noundef double @_ZNK8R3Vector3DotERKS_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %11)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #8
  %124 = fcmp ogt double %123, 0.000000e+00
  %125 = zext i1 %124 to i32
  %.sroa.0163.2 = add nuw nsw i32 %.sroa.0163.1, %125
  %not. = xor i1 %124, true
  %126 = zext i1 %not. to i32
  %.sroa.0.2 = add nuw nsw i32 %.sroa.0.1, %126
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #8
  call void @_ZNK7R3Point6VectorEv(ptr dead_on_unwind nonnull writable sret(%class.R3Vector) align 8 %11, ptr noundef nonnull align 8 dereferenceable(24) %122)
  %127 = call noundef double @_ZNK8R3Vector3DotERKS_(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.1, ptr noundef nonnull align 8 dereferenceable(24) %11)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #8
  %128 = fcmp ogt double %127, 0.000000e+00
  %129 = zext i1 %128 to i32
  %.sroa.6165.2 = add nuw nsw i32 %.sroa.6165.1, %129
  %not.201 = xor i1 %128, true
  %130 = zext i1 %not.201 to i32
  %.sroa.6.2 = add nuw nsw i32 %.sroa.6.1, %130
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #8
  call void @_ZNK7R3Point6VectorEv(ptr dead_on_unwind nonnull writable sret(%class.R3Vector) align 8 %11, ptr noundef nonnull align 8 dereferenceable(24) %122)
  %131 = call noundef double @_ZNK8R3Vector3DotERKS_(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.2, ptr noundef nonnull align 8 dereferenceable(24) %11)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #8
  %132 = fcmp ogt double %131, 0.000000e+00
  %133 = zext i1 %132 to i32
  %.sroa.9167.2 = add nuw nsw i32 %.sroa.9167.1, %133
  %not.202 = xor i1 %132, true
  %134 = zext i1 %not.202 to i32
  %.sroa.9.2 = add nuw nsw i32 %.sroa.9.1, %134
  %135 = add nuw nsw i32 %.086129, 1
  %136 = call noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16) %2)
  %137 = icmp slt i32 %135, %136
  br i1 %137, label %.lr.ph131, label %.preheader, !llvm.loop !11

138:                                              ; preds = %.preheader
  call void @_ZN8R3Vector4FlipEv(ptr noundef nonnull align 8 dereferenceable(24) %10)
  br label %139

139:                                              ; preds = %.preheader, %138
  %140 = icmp ult i32 %.sroa.6165.2, %.sroa.6.2
  br i1 %140, label %141, label %142

141:                                              ; preds = %139
  call void @_ZN8R3Vector4FlipEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.1)
  br label %142

142:                                              ; preds = %141, %139
  %143 = icmp ult i32 %.sroa.9167.2, %.sroa.9.2
  br i1 %143, label %144, label %.thread189

144:                                              ; preds = %142
  call void @_ZN8R3Vector4FlipEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.2)
  br label %.thread189

.thread189:                                       ; preds = %118, %144, %142
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #8
  call void @_ZrmRK8R3VectorS1_(ptr dead_on_unwind nonnull writable sret(%class.R3Vector) align 8 %12, ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %.ptr.1)
  %145 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN8R3VectoraSERKS_(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.2, ptr noundef nonnull align 8 dereferenceable(24) %12)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #8
  %146 = call noundef double @_ZNK8R3Vector6LengthEv(ptr noundef nonnull align 8 dereferenceable(24) %10)
  %147 = load double, ptr @RN_BIG_EPSILON, align 8, !tbaa !5
  %148 = call noundef i32 @_Z9RNIsEqualddd(double noundef %146, double noundef 1.000000e+00, double noundef %147)
  %.not95 = icmp eq i32 %148, 0
  br i1 %.not95, label %149, label %150

149:                                              ; preds = %.thread189
  call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 120, ptr noundef nonnull @.str.2)
  br label %150

150:                                              ; preds = %149, %.thread189
  %151 = call noundef double @_ZNK8R3Vector6LengthEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.1)
  %152 = load double, ptr @RN_BIG_EPSILON, align 8, !tbaa !5
  %153 = call noundef i32 @_Z9RNIsEqualddd(double noundef %151, double noundef 1.000000e+00, double noundef %152)
  %.not96 = icmp eq i32 %153, 0
  br i1 %.not96, label %154, label %155

154:                                              ; preds = %150
  call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef nonnull @.str, ptr noundef nonnull @.str.3, i32 noundef 121, ptr noundef nonnull @.str.2)
  br label %155

155:                                              ; preds = %154, %150
  %156 = call noundef double @_ZNK8R3Vector6LengthEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.2)
  %157 = load double, ptr @RN_BIG_EPSILON, align 8, !tbaa !5
  %158 = call noundef i32 @_Z9RNIsEqualddd(double noundef %156, double noundef 1.000000e+00, double noundef %157)
  %.not97 = icmp eq i32 %158, 0
  br i1 %.not97, label %159, label %160

159:                                              ; preds = %155
  call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef nonnull @.str, ptr noundef nonnull @.str.4, i32 noundef 122, ptr noundef nonnull @.str.2)
  br label %160

160:                                              ; preds = %159, %155
  %161 = call noundef double @_ZNK8R3Vector3DotERKS_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %.ptr.1)
  %162 = load double, ptr @RN_BIG_EPSILON, align 8, !tbaa !5
  %163 = call noundef i32 @_Z8RNIsZerodd(double noundef %161, double noundef %162)
  %.not98 = icmp eq i32 %163, 0
  br i1 %.not98, label %164, label %165

164:                                              ; preds = %160
  call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef nonnull @.str, ptr noundef nonnull @.str.5, i32 noundef 123, ptr noundef nonnull @.str.2)
  br label %165

165:                                              ; preds = %164, %160
  %166 = call noundef double @_ZNK8R3Vector3DotERKS_(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.1, ptr noundef nonnull align 8 dereferenceable(24) %.ptr.2)
  %167 = load double, ptr @RN_BIG_EPSILON, align 8, !tbaa !5
  %168 = call noundef i32 @_Z8RNIsZerodd(double noundef %166, double noundef %167)
  %.not99 = icmp eq i32 %168, 0
  br i1 %.not99, label %169, label %170

169:                                              ; preds = %165
  call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef nonnull @.str, ptr noundef nonnull @.str.6, i32 noundef 124, ptr noundef nonnull @.str.2)
  br label %170

170:                                              ; preds = %169, %165
  %171 = call noundef double @_ZNK8R3Vector3DotERKS_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %.ptr.2)
  %172 = load double, ptr @RN_BIG_EPSILON, align 8, !tbaa !5
  %173 = call noundef i32 @_Z8RNIsZerodd(double noundef %171, double noundef %172)
  %.not100 = icmp eq i32 %173, 0
  br i1 %.not100, label %174, label %175

174:                                              ; preds = %170
  call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef nonnull @.str, ptr noundef nonnull @.str.7, i32 noundef 125, ptr noundef nonnull @.str.2)
  br label %175

175:                                              ; preds = %174, %170
  %.not101 = icmp eq ptr %4, null
  br i1 %.not101, label %181, label %176

176:                                              ; preds = %175
  %177 = load <2 x double>, ptr %8, align 16, !tbaa !5
  store <2 x double> %177, ptr %4, align 8, !tbaa !5
  %178 = getelementptr inbounds i8, ptr %8, i64 16
  %179 = load double, ptr %178, align 16, !tbaa !5
  %180 = getelementptr inbounds i8, ptr %4, i64 16
  store double %179, ptr %180, align 8, !tbaa !5
  br label %181

181:                                              ; preds = %176, %175
  call void @_ZN7R3TriadC1ERK8R3VectorS2_S2_(ptr noundef nonnull align 8 dereferenceable(72) %0, ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %.ptr.1, ptr noundef nonnull align 8 dereferenceable(24) %.ptr.2)
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %7) #8
  br label %182

182:                                              ; preds = %181, %.thread
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %6) #8
  ret void
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK7R3Point1XEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK7R3Point1YEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK7R3Point1ZEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #5

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

declare void @_Z14RNSvdDecomposeiiPKdPdS1_S1_(i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #6

declare void @_ZN8R3VectorC1Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #6

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

declare noundef double @_ZNK8R3Vector6LengthEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z12RNIsPositivedd(double noundef, double noundef) local_unnamed_addr #1

declare noundef nonnull align 8 dereferenceable(24) ptr @_ZN8R3VectordVEd(ptr noundef nonnull align 8 dereferenceable(24), double noundef) local_unnamed_addr #6

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK7R3Point6VectorEv(ptr dead_on_unwind noalias writable sret(%class.R3Vector) align 8, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4 align 2

declare void @_ZN8R3Vector4FlipEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #6

declare void @_ZrmRK8R3VectorS1_(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 #6

declare noundef nonnull align 8 dereferenceable(24) ptr @_ZN8R3VectoraSERKS_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z9RNIsEqualddd(double noundef, double noundef, double noundef) local_unnamed_addr #4

declare void @_Z7RNAbortPKcz(ptr noundef, ...) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z8RNIsZerodd(double noundef, double noundef) local_unnamed_addr #4

declare void @_ZN7R3TriadC1ERK8R3VectorS2_S2_(ptr noundef nonnull align 8 dereferenceable(72), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #6

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #7

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { "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 #7 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass