; LLVM IR from ThePhysicsGuys/Physics3D :: Physics3D/math/linalg (eigen)

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

%"struct.P3D::EigenSet" = type { %"struct.P3D::EigenValues", %"class.P3D::Matrix" }
%"struct.P3D::EigenValues" = type { [3 x double] }
%"class.P3D::Matrix" = type { [9 x double] }
%"class.std::initializer_list" = type { ptr, i64 }

@__const._ZN3P3D21getEigenDecompositionERKNS_15SymmetricMatrixIdLm3EEE.changed = external hidden unnamed_addr constant [3 x i8], align 1
@__const._ZN3P3D21getEigenDecompositionERKNS_15SymmetricMatrixIdLm3EEE.values = external hidden unnamed_addr constant [6 x i32], align 16

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3P3D21getEigenDecompositionERKNS_15SymmetricMatrixIdLm3EEE(ptr dead_on_unwind noalias writable sret(%"struct.P3D::EigenSet") align 8 %0, ptr noundef nonnull align 8 dereferenceable(48) %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca %"class.P3D::Matrix", align 8
  %5 = alloca %"struct.P3D::EigenValues", align 8
  %6 = alloca %"class.std::initializer_list", align 8
  %7 = alloca [3 x double], align 8
  %8 = alloca %"class.P3D::Matrix", align 8
  %9 = alloca [3 x i8], align 1
  %10 = alloca i32, align 4
  %11 = alloca [6 x i32], align 16
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca double, align 8
  %18 = alloca %"struct.P3D::EigenValues", align 8
  %19 = alloca i32, align 4
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca double, align 8
  %31 = alloca double, align 8
  %32 = alloca %"struct.P3D::EigenValues", align 8
  store ptr %1, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 72, ptr %4) #8
  %33 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZNK3P3D15SymmetricMatrixIdLm3EEcvNS_6MatrixIdLm3ELm3EEEEv(ptr dead_on_unwind writable sret(%"class.P3D::Matrix") align 8 %4, ptr noundef nonnull align 8 dereferenceable(48) %33)
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #8
  %34 = load ptr, ptr %3, align 8, !tbaa !5
  %35 = call noundef double @_ZNK3P3D15SymmetricMatrixIdLm3EEclEmm(ptr noundef nonnull align 8 dereferenceable(48) %34, i64 noundef 0, i64 noundef 0)
  store double %35, ptr %7, align 8, !tbaa !9
  %36 = getelementptr inbounds double, ptr %7, i64 1
  %37 = load ptr, ptr %3, align 8, !tbaa !5
  %38 = call noundef double @_ZNK3P3D15SymmetricMatrixIdLm3EEclEmm(ptr noundef nonnull align 8 dereferenceable(48) %37, i64 noundef 1, i64 noundef 1)
  store double %38, ptr %36, align 8, !tbaa !9
  %39 = getelementptr inbounds double, ptr %7, i64 2
  %40 = load ptr, ptr %3, align 8, !tbaa !5
  %41 = call noundef double @_ZNK3P3D15SymmetricMatrixIdLm3EEclEmm(ptr noundef nonnull align 8 dereferenceable(48) %40, i64 noundef 2, i64 noundef 2)
  store double %41, ptr %39, align 8, !tbaa !9
  %42 = getelementptr inbounds %"class.std::initializer_list", ptr %6, i32 0, i32 0
  store ptr %7, ptr %42, align 8, !tbaa !11
  %43 = getelementptr inbounds %"class.std::initializer_list", ptr %6, i32 0, i32 1
  store i64 3, ptr %43, align 8, !tbaa !14
  %44 = getelementptr inbounds { ptr, i64 }, ptr %6, i32 0, i32 0
  %45 = load ptr, ptr %44, align 8
  %46 = getelementptr inbounds { ptr, i64 }, ptr %6, i32 0, i32 1
  %47 = load i64, ptr %46, align 8
  call void @_ZN3P3D11EigenValuesIdLm3EEC2ESt16initializer_listIdE(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr %45, i64 %47)
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #8
  call void @llvm.lifetime.start.p0(i64 72, ptr %8) #8
  call void @_ZN3P3D6MatrixIdLm3ELm3EE8IDENTITYEv(ptr dead_on_unwind writable sret(%"class.P3D::Matrix") align 8 %8)
  call void @llvm.lifetime.start.p0(i64 3, ptr %9) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %9, ptr align 1 @__const._ZN3P3D21getEigenDecompositionERKNS_15SymmetricMatrixIdLm3EEE.changed, i64 3, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  store i32 0, ptr %10, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %11, ptr align 16 @__const._ZN3P3D21getEigenDecompositionERKNS_15SymmetricMatrixIdLm3EEE.values, i64 24, i1 false)
  br label %48

48:                                               ; preds = %283, %2
  %49 = getelementptr inbounds [3 x i8], ptr %9, i64 0, i64 0
  %50 = load i8, ptr %49, align 1, !tbaa !17, !range !19, !noundef !20
  %51 = trunc i8 %50 to i1
  br i1 %51, label %60, label %52

52:                                               ; preds = %48
  %53 = getelementptr inbounds [3 x i8], ptr %9, i64 0, i64 1
  %54 = load i8, ptr %53, align 1, !tbaa !17, !range !19, !noundef !20
  %55 = trunc i8 %54 to i1
  br i1 %55, label %60, label %56

56:                                               ; preds = %52
  %57 = getelementptr inbounds [3 x i8], ptr %9, i64 0, i64 2
  %58 = load i8, ptr %57, align 1, !tbaa !17, !range !19, !noundef !20
  %59 = trunc i8 %58 to i1
  br label %60

60:                                               ; preds = %56, %52, %48
  %61 = phi i1 [ true, %52 ], [ true, %48 ], [ %59, %56 ]
  br i1 %61, label %62, label %284

62:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D6MatrixIdLm3ELm3EEclEmm(ptr noundef nonnull align 8 dereferenceable(72) %4, i64 noundef 0, i64 noundef 1)
  %64 = load double, ptr %63, align 8, !tbaa !9
  %65 = call noundef double @_ZSt3absd(double noundef %64)
  store double %65, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %66 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D6MatrixIdLm3ELm3EEclEmm(ptr noundef nonnull align 8 dereferenceable(72) %4, i64 noundef 0, i64 noundef 2)
  %67 = load double, ptr %66, align 8, !tbaa !9
  %68 = call noundef double @_ZSt3absd(double noundef %67)
  store double %68, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %69 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D6MatrixIdLm3ELm3EEclEmm(ptr noundef nonnull align 8 dereferenceable(72) %4, i64 noundef 1, i64 noundef 2)
  %70 = load double, ptr %69, align 8, !tbaa !9
  %71 = call noundef double @_ZSt3absd(double noundef %70)
  store double %71, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  %72 = load double, ptr %12, align 8, !tbaa !9
  %73 = load double, ptr %13, align 8, !tbaa !9
  %74 = fcmp ogt double %72, %73
  br i1 %74, label %75, label %80

75:                                               ; preds = %62
  %76 = load double, ptr %12, align 8, !tbaa !9
  %77 = load double, ptr %14, align 8, !tbaa !9
  %78 = fcmp ogt double %76, %77
  br i1 %78, label %79, label %80

79:                                               ; preds = %75
  store i32 0, ptr %15, align 4, !tbaa !15
  store i32 1, ptr %16, align 4, !tbaa !15
  br label %115

80:                                               ; preds = %75, %62
  %81 = load double, ptr %13, align 8, !tbaa !9
  %82 = load double, ptr %12, align 8, !tbaa !9
  %83 = fcmp ogt double %81, %82
  br i1 %83, label %84, label %89

84:                                               ; preds = %80
  %85 = load double, ptr %13, align 8, !tbaa !9
  %86 = load double, ptr %14, align 8, !tbaa !9
  %87 = fcmp ogt double %85, %86
  br i1 %87, label %88, label %89

88:                                               ; preds = %84
  store i32 0, ptr %15, align 4, !tbaa !15
  store i32 2, ptr %16, align 4, !tbaa !15
  br label %114

89:                                               ; preds = %84, %80
  %90 = load double, ptr %14, align 8, !tbaa !9
  %91 = load double, ptr %12, align 8, !tbaa !9
  %92 = fcmp ogt double %90, %91
  br i1 %92, label %93, label %98

93:                                               ; preds = %89
  %94 = load double, ptr %14, align 8, !tbaa !9
  %95 = load double, ptr %13, align 8, !tbaa !9
  %96 = fcmp ogt double %94, %95
  br i1 %96, label %97, label %98

97:                                               ; preds = %93
  store i32 1, ptr %15, align 4, !tbaa !15
  store i32 2, ptr %16, align 4, !tbaa !15
  br label %113

98:                                               ; preds = %93, %89
  %99 = load i32, ptr %10, align 4, !tbaa !15
  %100 = mul nsw i32 %99, 2
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [6 x i32], ptr %11, i64 0, i64 %101
  %103 = load i32, ptr %102, align 4, !tbaa !15
  store i32 %103, ptr %15, align 4, !tbaa !15
  %104 = load i32, ptr %10, align 4, !tbaa !15
  %105 = mul nsw i32 %104, 2
  %106 = add nsw i32 %105, 1
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [6 x i32], ptr %11, i64 0, i64 %107
  %109 = load i32, ptr %108, align 4, !tbaa !15
  store i32 %109, ptr %16, align 4, !tbaa !15
  %110 = load i32, ptr %10, align 4, !tbaa !15
  %111 = add nsw i32 %110, 1
  %112 = srem i32 %111, 3
  store i32 %112, ptr %10, align 4, !tbaa !15
  br label %113

113:                                              ; preds = %98, %97
  br label %114

114:                                              ; preds = %113, %88
  br label %115

115:                                              ; preds = %114, %79
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %116 = load i32, ptr %15, align 4, !tbaa !15
  %117 = sext i32 %116 to i64
  %118 = load i32, ptr %16, align 4, !tbaa !15
  %119 = sext i32 %118 to i64
  %120 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D6MatrixIdLm3ELm3EEclEmm(ptr noundef nonnull align 8 dereferenceable(72) %4, i64 noundef %117, i64 noundef %119)
  %121 = load double, ptr %120, align 8, !tbaa !9
  store double %121, ptr %17, align 8, !tbaa !9
  %122 = load double, ptr %17, align 8, !tbaa !9
  %123 = fcmp oeq double %122, 0.000000e+00
  br i1 %123, label %124, label %125

124:                                              ; preds = %115
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %18, ptr align 8 %5, i64 24, i1 false), !tbaa.struct !21
  call void @_ZN3P3D8EigenSetIdLm3EEC2ENS_11EigenValuesIdLm3EEERKNS_6MatrixIdLm3ELm3EEE(ptr noundef nonnull align 8 dereferenceable(96) %0, ptr noundef byval(%"struct.P3D::EigenValues") align 8 %18, ptr noundef nonnull align 8 dereferenceable(72) %8)
  store i32 1, ptr %19, align 4
  br label %281

125:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %126 = load i32, ptr %16, align 4, !tbaa !15
  %127 = sext i32 %126 to i64
  %128 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D11EigenValuesIdLm3EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %127)
  %129 = load double, ptr %128, align 8, !tbaa !9
  %130 = load i32, ptr %15, align 4, !tbaa !15
  %131 = sext i32 %130 to i64
  %132 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D11EigenValuesIdLm3EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %131)
  %133 = load double, ptr %132, align 8, !tbaa !9
  %134 = fsub double %129, %133
  %135 = fdiv double %134, 2.000000e+00
  store double %135, ptr %20, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %136 = load double, ptr %20, align 8, !tbaa !9
  %137 = call noundef double @_ZSt3absd(double noundef %136)
  %138 = load double, ptr %17, align 8, !tbaa !9
  %139 = load double, ptr %17, align 8, !tbaa !9
  %140 = load double, ptr %20, align 8, !tbaa !9
  %141 = load double, ptr %20, align 8, !tbaa !9
  %142 = fmul double %140, %141
  %143 = call double @llvm.fmuladd.f64(double %138, double %139, double %142)
  %144 = call double @sqrt(double noundef %143) #8
  %145 = fadd double %137, %144
  store double %145, ptr %21, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %146 = load double, ptr %17, align 8, !tbaa !9
  %147 = load double, ptr %17, align 8, !tbaa !9
  %148 = load double, ptr %21, align 8, !tbaa !9
  %149 = load double, ptr %21, align 8, !tbaa !9
  %150 = fmul double %148, %149
  %151 = call double @llvm.fmuladd.f64(double %146, double %147, double %150)
  %152 = call double @sqrt(double noundef %151) #8
  store double %152, ptr %22, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %153 = load double, ptr %21, align 8, !tbaa !9
  %154 = load double, ptr %22, align 8, !tbaa !9
  %155 = fdiv double %153, %154
  store double %155, ptr %23, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  %156 = load double, ptr %17, align 8, !tbaa !9
  %157 = load double, ptr %22, align 8, !tbaa !9
  %158 = fdiv double %156, %157
  store double %158, ptr %24, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #8
  %159 = load double, ptr %17, align 8, !tbaa !9
  %160 = load double, ptr %17, align 8, !tbaa !9
  %161 = fmul double %159, %160
  %162 = load double, ptr %21, align 8, !tbaa !9
  %163 = fdiv double %161, %162
  store double %163, ptr %25, align 8, !tbaa !9
  %164 = load double, ptr %20, align 8, !tbaa !9
  %165 = fcmp olt double %164, 0.000000e+00
  br i1 %165, label %166, label %171

166:                                              ; preds = %125
  %167 = load double, ptr %24, align 8, !tbaa !9
  %168 = fneg double %167
  store double %168, ptr %24, align 8, !tbaa !9
  %169 = load double, ptr %25, align 8, !tbaa !9
  %170 = fneg double %169
  store double %170, ptr %25, align 8, !tbaa !9
  br label %171

171:                                              ; preds = %166, %125
  %172 = load i32, ptr %15, align 4, !tbaa !15
  %173 = sext i32 %172 to i64
  %174 = load i32, ptr %16, align 4, !tbaa !15
  %175 = sext i32 %174 to i64
  %176 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D6MatrixIdLm3ELm3EEclEmm(ptr noundef nonnull align 8 dereferenceable(72) %4, i64 noundef %173, i64 noundef %175)
  store double 0.000000e+00, ptr %176, align 8, !tbaa !9
  %177 = getelementptr inbounds [3 x i8], ptr %9, i64 0, i64 0
  %178 = load i32, ptr %15, align 4, !tbaa !15
  %179 = load double, ptr %25, align 8, !tbaa !9
  %180 = fneg double %179
  call void @_ZN3P3D6updateIdEEvRNS_11EigenValuesIT_Lm3EEEPbiS2_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef %177, i32 noundef %178, double noundef %180)
  %181 = getelementptr inbounds [3 x i8], ptr %9, i64 0, i64 0
  %182 = load i32, ptr %16, align 4, !tbaa !15
  %183 = load double, ptr %25, align 8, !tbaa !9
  call void @_ZN3P3D6updateIdEEvRNS_11EigenValuesIT_Lm3EEEPbiS2_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef %181, i32 noundef %182, double noundef %183)
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  store i32 0, ptr %26, align 4, !tbaa !15
  br label %184

184:                                              ; preds = %197, %171
  %185 = load i32, ptr %26, align 4, !tbaa !15
  %186 = load i32, ptr %15, align 4, !tbaa !15
  %187 = sub nsw i32 %186, 1
  %188 = icmp sle i32 %185, %187
  br i1 %188, label %190, label %189

189:                                              ; preds = %184
  store i32 4, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  br label %200

190:                                              ; preds = %184
  %191 = load i32, ptr %26, align 4, !tbaa !15
  %192 = load i32, ptr %15, align 4, !tbaa !15
  %193 = load i32, ptr %26, align 4, !tbaa !15
  %194 = load i32, ptr %16, align 4, !tbaa !15
  %195 = load double, ptr %23, align 8, !tbaa !9
  %196 = load double, ptr %24, align 8, !tbaa !9
  call void @_ZN3P3D11rotateEigenIdEEvRNS_6MatrixIT_Lm3ELm3EEEiiiiS2_S2_(ptr noundef nonnull align 8 dereferenceable(72) %4, i32 noundef %191, i32 noundef %192, i32 noundef %193, i32 noundef %194, double noundef %195, double noundef %196)
  br label %197

197:                                              ; preds = %190
  %198 = load i32, ptr %26, align 4, !tbaa !15
  %199 = add nsw i32 %198, 1
  store i32 %199, ptr %26, align 4, !tbaa !15
  br label %184, !llvm.loop !23

200:                                              ; preds = %189
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  %201 = load i32, ptr %15, align 4, !tbaa !15
  %202 = add nsw i32 %201, 1
  store i32 %202, ptr %27, align 4, !tbaa !15
  br label %203

203:                                              ; preds = %216, %200
  %204 = load i32, ptr %27, align 4, !tbaa !15
  %205 = load i32, ptr %16, align 4, !tbaa !15
  %206 = sub nsw i32 %205, 1
  %207 = icmp sle i32 %204, %206
  br i1 %207, label %209, label %208

208:                                              ; preds = %203
  store i32 7, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  br label %219

209:                                              ; preds = %203
  %210 = load i32, ptr %15, align 4, !tbaa !15
  %211 = load i32, ptr %27, align 4, !tbaa !15
  %212 = load i32, ptr %27, align 4, !tbaa !15
  %213 = load i32, ptr %16, align 4, !tbaa !15
  %214 = load double, ptr %23, align 8, !tbaa !9
  %215 = load double, ptr %24, align 8, !tbaa !9
  call void @_ZN3P3D11rotateEigenIdEEvRNS_6MatrixIT_Lm3ELm3EEEiiiiS2_S2_(ptr noundef nonnull align 8 dereferenceable(72) %4, i32 noundef %210, i32 noundef %211, i32 noundef %212, i32 noundef %213, double noundef %214, double noundef %215)
  br label %216

216:                                              ; preds = %209
  %217 = load i32, ptr %27, align 4, !tbaa !15
  %218 = add nsw i32 %217, 1
  store i32 %218, ptr %27, align 4, !tbaa !15
  br label %203, !llvm.loop !25

219:                                              ; preds = %208
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #8
  %220 = load i32, ptr %16, align 4, !tbaa !15
  %221 = add nsw i32 %220, 1
  store i32 %221, ptr %28, align 4, !tbaa !15
  br label %222

222:                                              ; preds = %233, %219
  %223 = load i32, ptr %28, align 4, !tbaa !15
  %224 = icmp slt i32 %223, 3
  br i1 %224, label %226, label %225

225:                                              ; preds = %222
  store i32 10, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  br label %236

226:                                              ; preds = %222
  %227 = load i32, ptr %15, align 4, !tbaa !15
  %228 = load i32, ptr %28, align 4, !tbaa !15
  %229 = load i32, ptr %16, align 4, !tbaa !15
  %230 = load i32, ptr %28, align 4, !tbaa !15
  %231 = load double, ptr %23, align 8, !tbaa !9
  %232 = load double, ptr %24, align 8, !tbaa !9
  call void @_ZN3P3D11rotateEigenIdEEvRNS_6MatrixIT_Lm3ELm3EEEiiiiS2_S2_(ptr noundef nonnull align 8 dereferenceable(72) %4, i32 noundef %227, i32 noundef %228, i32 noundef %229, i32 noundef %230, double noundef %231, double noundef %232)
  br label %233

233:                                              ; preds = %226
  %234 = load i32, ptr %28, align 4, !tbaa !15
  %235 = add nsw i32 %234, 1
  store i32 %235, ptr %28, align 4, !tbaa !15
  br label %222, !llvm.loop !26

236:                                              ; preds = %225
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #8
  store i32 0, ptr %29, align 4, !tbaa !15
  br label %237

237:                                              ; preds = %277, %236
  %238 = load i32, ptr %29, align 4, !tbaa !15
  %239 = icmp slt i32 %238, 3
  br i1 %239, label %241, label %240

240:                                              ; preds = %237
  store i32 13, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  br label %280

241:                                              ; preds = %237
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #8
  %242 = load i32, ptr %29, align 4, !tbaa !15
  %243 = sext i32 %242 to i64
  %244 = load i32, ptr %15, align 4, !tbaa !15
  %245 = sext i32 %244 to i64
  %246 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D6MatrixIdLm3ELm3EEclEmm(ptr noundef nonnull align 8 dereferenceable(72) %8, i64 noundef %243, i64 noundef %245)
  %247 = load double, ptr %246, align 8, !tbaa !9
  store double %247, ptr %30, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #8
  %248 = load i32, ptr %29, align 4, !tbaa !15
  %249 = sext i32 %248 to i64
  %250 = load i32, ptr %16, align 4, !tbaa !15
  %251 = sext i32 %250 to i64
  %252 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D6MatrixIdLm3ELm3EEclEmm(ptr noundef nonnull align 8 dereferenceable(72) %8, i64 noundef %249, i64 noundef %251)
  %253 = load double, ptr %252, align 8, !tbaa !9
  store double %253, ptr %31, align 8, !tbaa !9
  %254 = load double, ptr %23, align 8, !tbaa !9
  %255 = load double, ptr %30, align 8, !tbaa !9
  %256 = load double, ptr %24, align 8, !tbaa !9
  %257 = load double, ptr %31, align 8, !tbaa !9
  %258 = fmul double %256, %257
  %259 = fneg double %258
  %260 = call double @llvm.fmuladd.f64(double %254, double %255, double %259)
  %261 = load i32, ptr %29, align 4, !tbaa !15
  %262 = sext i32 %261 to i64
  %263 = load i32, ptr %15, align 4, !tbaa !15
  %264 = sext i32 %263 to i64
  %265 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D6MatrixIdLm3ELm3EEclEmm(ptr noundef nonnull align 8 dereferenceable(72) %8, i64 noundef %262, i64 noundef %264)
  store double %260, ptr %265, align 8, !tbaa !9
  %266 = load double, ptr %24, align 8, !tbaa !9
  %267 = load double, ptr %30, align 8, !tbaa !9
  %268 = load double, ptr %23, align 8, !tbaa !9
  %269 = load double, ptr %31, align 8, !tbaa !9
  %270 = fmul double %268, %269
  %271 = call double @llvm.fmuladd.f64(double %266, double %267, double %270)
  %272 = load i32, ptr %29, align 4, !tbaa !15
  %273 = sext i32 %272 to i64
  %274 = load i32, ptr %16, align 4, !tbaa !15
  %275 = sext i32 %274 to i64
  %276 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D6MatrixIdLm3ELm3EEclEmm(ptr noundef nonnull align 8 dereferenceable(72) %8, i64 noundef %273, i64 noundef %275)
  store double %271, ptr %276, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  br label %277

277:                                              ; preds = %241
  %278 = load i32, ptr %29, align 4, !tbaa !15
  %279 = add nsw i32 %278, 1
  store i32 %279, ptr %29, align 4, !tbaa !15
  br label %237, !llvm.loop !27

280:                                              ; preds = %240
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  store i32 0, ptr %19, align 4
  br label %281

281:                                              ; preds = %280, %124
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  %282 = load i32, ptr %19, align 4
  switch i32 %282, label %285 [
    i32 0, label %283
  ]

283:                                              ; preds = %281
  br label %48, !llvm.loop !28

284:                                              ; preds = %60
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %32, ptr align 8 %5, i64 24, i1 false), !tbaa.struct !21
  call void @_ZN3P3D8EigenSetIdLm3EEC2ENS_11EigenValuesIdLm3EEERKNS_6MatrixIdLm3ELm3EEE(ptr noundef nonnull align 8 dereferenceable(96) %0, ptr noundef byval(%"struct.P3D::EigenValues") align 8 %32, ptr noundef nonnull align 8 dereferenceable(72) %8)
  store i32 1, ptr %19, align 4
  br label %285

285:                                              ; preds = %284, %281
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 3, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr %4) #8
  ret void
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3P3D15SymmetricMatrixIdLm3EEcvNS_6MatrixIdLm3ELm3EEEEv(ptr dead_on_unwind noalias writable sret(%"class.P3D::Matrix") align 8, ptr noundef nonnull align 8 dereferenceable(48)) #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK3P3D15SymmetricMatrixIdLm3EEclEmm(ptr noundef nonnull align 8 dereferenceable(48), i64 noundef, i64 noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D11EigenValuesIdLm3EEC2ESt16initializer_listIdE(ptr noundef nonnull align 8 dereferenceable(24), ptr, i64) unnamed_addr #3 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3P3D6MatrixIdLm3ELm3EE8IDENTITYEv(ptr dead_on_unwind noalias writable sret(%"class.P3D::Matrix") align 8) #4 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3absd(double noundef) #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D8EigenSetIdLm3EEC2ENS_11EigenValuesIdLm3EEERKNS_6MatrixIdLm3ELm3EEE(ptr noundef nonnull align 8 dereferenceable(96), ptr noundef byval(%"struct.P3D::EigenValues") align 8, ptr noundef nonnull align 8 dereferenceable(72)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D11EigenValuesIdLm3EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2

; Function Attrs: nounwind
declare double @sqrt(double noundef) #6

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D6updateIdEEvRNS_11EigenValuesIT_Lm3EEEPbiS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, i32 noundef, double noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D11rotateEigenIdEEvRNS_6MatrixIT_Lm3ELm3EEEiiiiS2_S2_(ptr noundef nonnull align 8 dereferenceable(72), i32 noundef, i32 noundef, i32 noundef, i32 noundef, double noundef, double noundef) #3

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


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

%"struct.P3D::EigenSet" = type { %"struct.P3D::EigenValues", %"class.P3D::Matrix" }
%"struct.P3D::EigenValues" = type { [3 x double] }
%"class.P3D::Matrix" = type { [9 x double] }

@__const._ZN3P3D21getEigenDecompositionERKNS_15SymmetricMatrixIdLm3EEE.changed = external hidden unnamed_addr constant [3 x i8], align 1
@__const._ZN3P3D21getEigenDecompositionERKNS_15SymmetricMatrixIdLm3EEE.values = external hidden unnamed_addr constant [6 x i32], align 16

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3P3D21getEigenDecompositionERKNS_15SymmetricMatrixIdLm3EEE(ptr dead_on_unwind noalias writable sret(%"struct.P3D::EigenSet") align 8 %0, ptr noundef nonnull align 8 dereferenceable(48) %1) local_unnamed_addr #0 {
  %3 = alloca %"class.P3D::Matrix", align 8
  %4 = alloca %"struct.P3D::EigenValues", align 8
  %5 = alloca [3 x double], align 8
  %6 = alloca %"class.P3D::Matrix", align 8
  %7 = alloca [3 x i8], align 1
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %3) #8
  call void @_ZNK3P3D15SymmetricMatrixIdLm3EEcvNS_6MatrixIdLm3ELm3EEEEv(ptr dead_on_unwind nonnull writable sret(%"class.P3D::Matrix") align 8 %3, ptr noundef nonnull align 8 dereferenceable(48) %1)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #8
  %8 = call noundef double @_ZNK3P3D15SymmetricMatrixIdLm3EEclEmm(ptr noundef nonnull align 8 dereferenceable(48) %1, i64 noundef 0, i64 noundef 0)
  store double %8, ptr %5, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %5, i64 8
  %10 = call noundef double @_ZNK3P3D15SymmetricMatrixIdLm3EEclEmm(ptr noundef nonnull align 8 dereferenceable(48) %1, i64 noundef 1, i64 noundef 1)
  store double %10, ptr %9, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %5, i64 16
  %12 = call noundef double @_ZNK3P3D15SymmetricMatrixIdLm3EEclEmm(ptr noundef nonnull align 8 dereferenceable(48) %1, i64 noundef 2, i64 noundef 2)
  store double %12, ptr %11, align 8, !tbaa !5
  call void @_ZN3P3D11EigenValuesIdLm3EEC2ESt16initializer_listIdE(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr nonnull %5, i64 3)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #8
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %6) #8
  call void @_ZN3P3D6MatrixIdLm3ELm3EE8IDENTITYEv(ptr dead_on_unwind nonnull writable sret(%"class.P3D::Matrix") align 8 %6)
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %7) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(3) %7, ptr noundef nonnull align 1 dereferenceable(3) @__const._ZN3P3D21getEigenDecompositionERKNS_15SymmetricMatrixIdLm3EEE.changed, i64 3, i1 false)
  %13 = getelementptr inbounds i8, ptr %7, i64 1
  %14 = getelementptr inbounds i8, ptr %7, i64 2
  br label %15

15:                                               ; preds = %.preheader, %2
  %.0 = phi i32 [ 0, %2 ], [ %.1, %.preheader ]
  %16 = load i8, ptr %7, align 1, !tbaa !9, !range !11, !noundef !12
  %17 = trunc nuw i8 %16 to i1
  br i1 %17, label %.critedge, label %18

18:                                               ; preds = %15
  %19 = load i8, ptr %13, align 1, !tbaa !9, !range !11, !noundef !12
  %20 = trunc nuw i8 %19 to i1
  br i1 %20, label %.critedge, label %21

21:                                               ; preds = %18
  %22 = load i8, ptr %14, align 1, !tbaa !9, !range !11, !noundef !12
  %23 = trunc nuw i8 %22 to i1
  br i1 %23, label %.critedge, label %.loopexit

.critedge:                                        ; preds = %18, %15, %21
  %24 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D6MatrixIdLm3ELm3EEclEmm(ptr noundef nonnull align 8 dereferenceable(72) %3, i64 noundef 0, i64 noundef 1)
  %25 = load double, ptr %24, align 8, !tbaa !5
  %26 = call noundef double @_ZSt3absd(double noundef %25)
  %27 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D6MatrixIdLm3ELm3EEclEmm(ptr noundef nonnull align 8 dereferenceable(72) %3, i64 noundef 0, i64 noundef 2)
  %28 = load double, ptr %27, align 8, !tbaa !5
  %29 = call noundef double @_ZSt3absd(double noundef %28)
  %30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D6MatrixIdLm3ELm3EEclEmm(ptr noundef nonnull align 8 dereferenceable(72) %3, i64 noundef 1, i64 noundef 2)
  %31 = load double, ptr %30, align 8, !tbaa !5
  %32 = call noundef double @_ZSt3absd(double noundef %31)
  %33 = fcmp ogt double %26, %29
  %34 = fcmp ogt double %26, %32
  %or.cond = and i1 %33, %34
  br i1 %or.cond, label %52, label %35

35:                                               ; preds = %.critedge
  %36 = fcmp ogt double %29, %26
  %37 = fcmp ogt double %29, %32
  %or.cond109 = and i1 %36, %37
  br i1 %or.cond109, label %52, label %38

38:                                               ; preds = %35
  %39 = fcmp ogt double %32, %26
  %40 = fcmp ogt double %32, %29
  %or.cond110 = and i1 %39, %40
  br i1 %or.cond110, label %52, label %41

41:                                               ; preds = %38
  %42 = shl nuw nsw i32 %.0, 1
  %43 = zext nneg i32 %42 to i64
  %44 = getelementptr inbounds [6 x i32], ptr @__const._ZN3P3D21getEigenDecompositionERKNS_15SymmetricMatrixIdLm3EEE.values, i64 0, i64 %43
  %45 = load i32, ptr %44, align 8, !tbaa !13
  %46 = or disjoint i32 %42, 1
  %47 = zext nneg i32 %46 to i64
  %48 = getelementptr inbounds [6 x i32], ptr @__const._ZN3P3D21getEigenDecompositionERKNS_15SymmetricMatrixIdLm3EEE.values, i64 0, i64 %47
  %49 = load i32, ptr %48, align 4, !tbaa !13
  %50 = add nuw nsw i32 %.0, 1
  %51 = urem i32 %50, 3
  br label %52

52:                                               ; preds = %38, %35, %.critedge, %41
  %.0102 = phi i32 [ %49, %41 ], [ 1, %.critedge ], [ 2, %35 ], [ 2, %38 ]
  %.095 = phi i32 [ %45, %41 ], [ 0, %.critedge ], [ 0, %35 ], [ 1, %38 ]
  %.1 = phi i32 [ %51, %41 ], [ %.0, %.critedge ], [ %.0, %35 ], [ %.0, %38 ]
  %53 = sext i32 %.095 to i64
  %54 = sext i32 %.0102 to i64
  %55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D6MatrixIdLm3ELm3EEclEmm(ptr noundef nonnull align 8 dereferenceable(72) %3, i64 noundef %53, i64 noundef %54)
  %56 = load double, ptr %55, align 8, !tbaa !5
  %57 = fcmp une double %56, 0.000000e+00
  br i1 %57, label %58, label %.loopexit

58:                                               ; preds = %52
  %59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D11EigenValuesIdLm3EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %54)
  %60 = load double, ptr %59, align 8, !tbaa !5
  %61 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D11EigenValuesIdLm3EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %53)
  %62 = load double, ptr %61, align 8, !tbaa !5
  %63 = fsub double %60, %62
  %64 = fmul double %63, 5.000000e-01
  %65 = call noundef double @_ZSt3absd(double noundef %64)
  %66 = fmul double %64, %64
  %67 = call double @llvm.fmuladd.f64(double %56, double %56, double %66)
  %sqrt111 = call double @llvm.sqrt.f64(double %67)
  %68 = fadd double %65, %sqrt111
  %69 = fmul double %68, %68
  %70 = call double @llvm.fmuladd.f64(double %56, double %56, double %69)
  %sqrt = call double @llvm.sqrt.f64(double %70)
  %71 = fdiv double %68, %sqrt
  %72 = fdiv double %56, %sqrt
  %73 = fmul double %56, %56
  %74 = fdiv double %73, %68
  %75 = fcmp olt double %64, 0.000000e+00
  %76 = fneg double %72
  %77 = fneg double %74
  %.0101 = select i1 %75, double %76, double %72
  %.0100 = select i1 %75, double %77, double %74
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D6MatrixIdLm3ELm3EEclEmm(ptr noundef nonnull align 8 dereferenceable(72) %3, i64 noundef %53, i64 noundef %54)
  store double 0.000000e+00, ptr %78, align 8, !tbaa !5
  %79 = fneg double %.0100
  call void @_ZN3P3D6updateIdEEvRNS_11EigenValuesIT_Lm3EEEPbiS2_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull %7, i32 noundef %.095, double noundef %79)
  call void @_ZN3P3D6updateIdEEvRNS_11EigenValuesIT_Lm3EEEPbiS2_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull %7, i32 noundef %.0102, double noundef %.0100)
  %.not.not114 = icmp sgt i32 %.095, 0
  br i1 %.not.not114, label %.lr.ph, label %.preheader113

.preheader113:                                    ; preds = %.lr.ph, %58
  %80 = add nsw i32 %.0102, -1
  %.not.not108116 = icmp slt i32 %.095, %80
  br i1 %.not.not108116, label %.lr.ph118, label %.preheader112

.lr.ph:                                           ; preds = %58, %.lr.ph
  %.099115 = phi i32 [ %81, %.lr.ph ], [ 0, %58 ]
  call void @_ZN3P3D11rotateEigenIdEEvRNS_6MatrixIT_Lm3ELm3EEEiiiiS2_S2_(ptr noundef nonnull align 8 dereferenceable(72) %3, i32 noundef %.099115, i32 noundef %.095, i32 noundef %.099115, i32 noundef %.0102, double noundef %71, double noundef %.0101)
  %81 = add nuw nsw i32 %.099115, 1
  %exitcond.not = icmp eq i32 %81, %.095
  br i1 %exitcond.not, label %.preheader113, label %.lr.ph, !llvm.loop !15

.preheader112:                                    ; preds = %.lr.ph118, %.preheader113
  %82 = icmp slt i32 %.0102, 2
  br i1 %82, label %.lr.ph120, label %.preheader

.lr.ph118:                                        ; preds = %.preheader113, %.lr.ph118
  %.098.in117 = phi i32 [ %.098, %.lr.ph118 ], [ %.095, %.preheader113 ]
  %.098 = add nsw i32 %.098.in117, 1
  call void @_ZN3P3D11rotateEigenIdEEvRNS_6MatrixIT_Lm3ELm3EEEiiiiS2_S2_(ptr noundef nonnull align 8 dereferenceable(72) %3, i32 noundef %.095, i32 noundef %.098, i32 noundef %.098, i32 noundef %.0102, double noundef %71, double noundef %.0101)
  %exitcond122.not = icmp eq i32 %.098, %80
  br i1 %exitcond122.not, label %.preheader112, label %.lr.ph118, !llvm.loop !17

.preheader:                                       ; preds = %.lr.ph120, %.preheader112
  %83 = fneg double %.0101
  %84 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D6MatrixIdLm3ELm3EEclEmm(ptr noundef nonnull align 8 dereferenceable(72) %6, i64 noundef 0, i64 noundef %53)
  %85 = load double, ptr %84, align 8, !tbaa !5
  %86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D6MatrixIdLm3ELm3EEclEmm(ptr noundef nonnull align 8 dereferenceable(72) %6, i64 noundef 0, i64 noundef %54)
  %87 = load double, ptr %86, align 8, !tbaa !5
  %88 = fmul double %87, %83
  %89 = call double @llvm.fmuladd.f64(double %71, double %85, double %88)
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D6MatrixIdLm3ELm3EEclEmm(ptr noundef nonnull align 8 dereferenceable(72) %6, i64 noundef 0, i64 noundef %53)
  store double %89, ptr %90, align 8, !tbaa !5
  %91 = fmul double %71, %87
  %92 = call double @llvm.fmuladd.f64(double %.0101, double %85, double %91)
  %93 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D6MatrixIdLm3ELm3EEclEmm(ptr noundef nonnull align 8 dereferenceable(72) %6, i64 noundef 0, i64 noundef %54)
  store double %92, ptr %93, align 8, !tbaa !5
  %94 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D6MatrixIdLm3ELm3EEclEmm(ptr noundef nonnull align 8 dereferenceable(72) %6, i64 noundef 1, i64 noundef %53)
  %95 = load double, ptr %94, align 8, !tbaa !5
  %96 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D6MatrixIdLm3ELm3EEclEmm(ptr noundef nonnull align 8 dereferenceable(72) %6, i64 noundef 1, i64 noundef %54)
  %97 = load double, ptr %96, align 8, !tbaa !5
  %98 = fmul double %97, %83
  %99 = call double @llvm.fmuladd.f64(double %71, double %95, double %98)
  %100 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D6MatrixIdLm3ELm3EEclEmm(ptr noundef nonnull align 8 dereferenceable(72) %6, i64 noundef 1, i64 noundef %53)
  store double %99, ptr %100, align 8, !tbaa !5
  %101 = fmul double %71, %97
  %102 = call double @llvm.fmuladd.f64(double %.0101, double %95, double %101)
  %103 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D6MatrixIdLm3ELm3EEclEmm(ptr noundef nonnull align 8 dereferenceable(72) %6, i64 noundef 1, i64 noundef %54)
  store double %102, ptr %103, align 8, !tbaa !5
  %104 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D6MatrixIdLm3ELm3EEclEmm(ptr noundef nonnull align 8 dereferenceable(72) %6, i64 noundef 2, i64 noundef %53)
  %105 = load double, ptr %104, align 8, !tbaa !5
  %106 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D6MatrixIdLm3ELm3EEclEmm(ptr noundef nonnull align 8 dereferenceable(72) %6, i64 noundef 2, i64 noundef %54)
  %107 = load double, ptr %106, align 8, !tbaa !5
  %108 = fmul double %107, %83
  %109 = call double @llvm.fmuladd.f64(double %71, double %105, double %108)
  %110 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D6MatrixIdLm3ELm3EEclEmm(ptr noundef nonnull align 8 dereferenceable(72) %6, i64 noundef 2, i64 noundef %53)
  store double %109, ptr %110, align 8, !tbaa !5
  %111 = fmul double %71, %107
  %112 = call double @llvm.fmuladd.f64(double %.0101, double %105, double %111)
  %113 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3D6MatrixIdLm3ELm3EEclEmm(ptr noundef nonnull align 8 dereferenceable(72) %6, i64 noundef 2, i64 noundef %54)
  store double %112, ptr %113, align 8, !tbaa !5
  br label %15

.lr.ph120:                                        ; preds = %.preheader112, %.lr.ph120
  %.097.in119 = phi i32 [ %.097, %.lr.ph120 ], [ %.0102, %.preheader112 ]
  %.097 = add nsw i32 %.097.in119, 1
  call void @_ZN3P3D11rotateEigenIdEEvRNS_6MatrixIT_Lm3ELm3EEEiiiiS2_S2_(ptr noundef nonnull align 8 dereferenceable(72) %3, i32 noundef %.095, i32 noundef %.097, i32 noundef %.0102, i32 noundef %.097, double noundef %71, double noundef %.0101)
  %exitcond123.not = icmp eq i32 %.097, 2
  br i1 %exitcond123.not, label %.preheader, label %.lr.ph120, !llvm.loop !18

.loopexit:                                        ; preds = %21, %52
  call void @_ZN3P3D8EigenSetIdLm3EEC2ENS_11EigenValuesIdLm3EEERKNS_6MatrixIdLm3ELm3EEE(ptr noundef nonnull align 8 dereferenceable(96) %0, ptr noundef nonnull byval(%"struct.P3D::EigenValues") align 8 %4, ptr noundef nonnull align 8 dereferenceable(72) %6)
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %3) #8
  ret void
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3P3D15SymmetricMatrixIdLm3EEcvNS_6MatrixIdLm3ELm3EEEEv(ptr dead_on_unwind noalias writable sret(%"class.P3D::Matrix") align 8, ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK3P3D15SymmetricMatrixIdLm3EEclEmm(ptr noundef nonnull align 8 dereferenceable(48), i64 noundef, i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D11EigenValuesIdLm3EEC2ESt16initializer_listIdE(ptr noundef nonnull align 8 dereferenceable(24), ptr, i64) unnamed_addr #3 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3P3D6MatrixIdLm3ELm3EE8IDENTITYEv(ptr dead_on_unwind noalias writable sret(%"class.P3D::Matrix") align 8) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3absd(double noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D8EigenSetIdLm3EEC2ENS_11EigenValuesIdLm3EEERKNS_6MatrixIdLm3ELm3EEE(ptr noundef nonnull align 8 dereferenceable(96), ptr noundef byval(%"struct.P3D::EigenValues") align 8, ptr noundef nonnull align 8 dereferenceable(72)) unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D6updateIdEEvRNS_11EigenValuesIT_Lm3EEEPbiS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, i32 noundef, double noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D11rotateEigenIdEEvRNS_6MatrixIT_Lm3ELm3EEEiiiiS2_S2_(ptr noundef nonnull align 8 dereferenceable(72), i32 noundef, i32 noundef, i32 noundef, i32 noundef, double noundef, double noundef) local_unnamed_addr #3

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

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


; Effective O3 passes: AggressiveInstCombinePass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass