; LLVM IR from rdguez-mariano/fast_imas_IPOL :: libNumerics/computeH.ll (ZNK11libNumerics8ComputeH16compute_rotationERNS_6vectorIdEE)

; 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.libNumerics::vector" = type { %"class.libNumerics::matrix" }
%"class.libNumerics::matrix" = type { ptr, i32, i32, ptr }
%"class.libNumerics::ComputeH" = type { i32, i32, [64 x double], [8 x double], double }

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZNK11libNumerics8ComputeH7q_errorERKNS_6vectorIdEE(ptr noundef nonnull align 8 dereferenceable(592), ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK11libNumerics8ComputeH16compute_rotationERNS_6vectorIdEE(ptr noundef nonnull align 8 dereferenceable(592) %0, ptr noundef nonnull align 8 dereferenceable(24) %1) #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca double, align 8
  %7 = alloca i32, align 4
  %8 = alloca double, align 8
  %9 = alloca float, align 4
  %10 = alloca %"class.libNumerics::vector", align 8
  %11 = alloca double, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %14 = load ptr, ptr %4, align 8
  %15 = getelementptr inbounds %"class.libNumerics::ComputeH", ptr %14, i32 0, i32 2
  %16 = getelementptr inbounds [64 x double], ptr %15, i64 0, i64 15
  %17 = load double, ptr %16, align 8, !tbaa !9
  %18 = fcmp ole double %17, 0.000000e+00
  br i1 %18, label %19, label %20

19:                                               ; preds = %2
  store i1 false, ptr %3, align 1
  br label %269

20:                                               ; preds = %2
  %21 = getelementptr inbounds %"class.libNumerics::ComputeH", ptr %14, i32 0, i32 2
  %22 = getelementptr inbounds [64 x double], ptr %21, i64 0, i64 15
  %23 = load double, ptr %22, align 8, !tbaa !9
  %24 = getelementptr inbounds %"class.libNumerics::ComputeH", ptr %14, i32 0, i32 3
  %25 = getelementptr inbounds [8 x double], ptr %24, i64 0, i64 0
  %26 = load double, ptr %25, align 8, !tbaa !9
  %27 = getelementptr inbounds %"class.libNumerics::ComputeH", ptr %14, i32 0, i32 2
  %28 = getelementptr inbounds [64 x double], ptr %27, i64 0, i64 2
  %29 = load double, ptr %28, align 8, !tbaa !9
  %30 = getelementptr inbounds %"class.libNumerics::ComputeH", ptr %14, i32 0, i32 3
  %31 = getelementptr inbounds [8 x double], ptr %30, i64 0, i64 2
  %32 = load double, ptr %31, align 8, !tbaa !9
  %33 = fmul double %29, %32
  %34 = fneg double %33
  %35 = call double @llvm.fmuladd.f64(double %23, double %26, double %34)
  %36 = getelementptr inbounds %"class.libNumerics::ComputeH", ptr %14, i32 0, i32 2
  %37 = getelementptr inbounds [64 x double], ptr %36, i64 0, i64 3
  %38 = load double, ptr %37, align 8, !tbaa !9
  %39 = getelementptr inbounds %"class.libNumerics::ComputeH", ptr %14, i32 0, i32 3
  %40 = getelementptr inbounds [8 x double], ptr %39, i64 0, i64 3
  %41 = load double, ptr %40, align 8, !tbaa !9
  %42 = fneg double %38
  %43 = call double @llvm.fmuladd.f64(double %42, double %41, double %35)
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %44, i32 noundef 0)
  store double %43, ptr %45, align 8, !tbaa !9
  %46 = getelementptr inbounds %"class.libNumerics::ComputeH", ptr %14, i32 0, i32 2
  %47 = getelementptr inbounds [64 x double], ptr %46, i64 0, i64 15
  %48 = load double, ptr %47, align 8, !tbaa !9
  %49 = getelementptr inbounds %"class.libNumerics::ComputeH", ptr %14, i32 0, i32 3
  %50 = getelementptr inbounds [8 x double], ptr %49, i64 0, i64 1
  %51 = load double, ptr %50, align 8, !tbaa !9
  %52 = getelementptr inbounds %"class.libNumerics::ComputeH", ptr %14, i32 0, i32 2
  %53 = getelementptr inbounds [64 x double], ptr %52, i64 0, i64 3
  %54 = load double, ptr %53, align 8, !tbaa !9
  %55 = getelementptr inbounds %"class.libNumerics::ComputeH", ptr %14, i32 0, i32 3
  %56 = getelementptr inbounds [8 x double], ptr %55, i64 0, i64 2
  %57 = load double, ptr %56, align 8, !tbaa !9
  %58 = fmul double %54, %57
  %59 = fneg double %58
  %60 = call double @llvm.fmuladd.f64(double %48, double %51, double %59)
  %61 = getelementptr inbounds %"class.libNumerics::ComputeH", ptr %14, i32 0, i32 2
  %62 = getelementptr inbounds [64 x double], ptr %61, i64 0, i64 2
  %63 = load double, ptr %62, align 8, !tbaa !9
  %64 = getelementptr inbounds %"class.libNumerics::ComputeH", ptr %14, i32 0, i32 3
  %65 = getelementptr inbounds [8 x double], ptr %64, i64 0, i64 3
  %66 = load double, ptr %65, align 8, !tbaa !9
  %67 = call double @llvm.fmuladd.f64(double %63, double %66, double %60)
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  %69 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %68, i32 noundef 1)
  store double %67, ptr %69, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  %71 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %70, i32 noundef 0)
  %72 = load double, ptr %71, align 8, !tbaa !9
  %73 = load ptr, ptr %5, align 8, !tbaa !5
  %74 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %73, i32 noundef 0)
  %75 = load double, ptr %74, align 8, !tbaa !9
  %76 = load ptr, ptr %5, align 8, !tbaa !5
  %77 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %76, i32 noundef 1)
  %78 = load double, ptr %77, align 8, !tbaa !9
  %79 = load ptr, ptr %5, align 8, !tbaa !5
  %80 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %79, i32 noundef 1)
  %81 = load double, ptr %80, align 8, !tbaa !9
  %82 = fmul double %78, %81
  %83 = call double @llvm.fmuladd.f64(double %72, double %75, double %82)
  %84 = call double @sqrt(double noundef %83) #7
  store double %84, ptr %6, align 8, !tbaa !9
  %85 = load double, ptr %6, align 8, !tbaa !9
  %86 = fcmp olt double %85, 0x3F50624DE0000000
  br i1 %86, label %87, label %88

87:                                               ; preds = %20
  store i1 false, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %268

88:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %89 = getelementptr inbounds %"class.libNumerics::ComputeH", ptr %14, i32 0, i32 2
  %90 = getelementptr inbounds [64 x double], ptr %89, i64 0, i64 2
  %91 = load double, ptr %90, align 8, !tbaa !9
  %92 = getelementptr inbounds %"class.libNumerics::ComputeH", ptr %14, i32 0, i32 2
  %93 = getelementptr inbounds [64 x double], ptr %92, i64 0, i64 2
  %94 = load double, ptr %93, align 8, !tbaa !9
  %95 = getelementptr inbounds %"class.libNumerics::ComputeH", ptr %14, i32 0, i32 2
  %96 = getelementptr inbounds [64 x double], ptr %95, i64 0, i64 3
  %97 = load double, ptr %96, align 8, !tbaa !9
  %98 = getelementptr inbounds %"class.libNumerics::ComputeH", ptr %14, i32 0, i32 2
  %99 = getelementptr inbounds [64 x double], ptr %98, i64 0, i64 3
  %100 = load double, ptr %99, align 8, !tbaa !9
  %101 = fmul double %97, %100
  %102 = call double @llvm.fmuladd.f64(double %91, double %94, double %101)
  %103 = load double, ptr %6, align 8, !tbaa !9
  %104 = fadd double %102, %103
  %105 = getelementptr inbounds %"class.libNumerics::ComputeH", ptr %14, i32 0, i32 2
  %106 = getelementptr inbounds [64 x double], ptr %105, i64 0, i64 15
  %107 = load double, ptr %106, align 8, !tbaa !9
  %108 = fdiv double %104, %107
  store double %108, ptr %8, align 8, !tbaa !9
  %109 = load double, ptr %6, align 8, !tbaa !9
  %110 = load ptr, ptr %5, align 8, !tbaa !5
  %111 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %110, i32 noundef 0)
  %112 = load double, ptr %111, align 8, !tbaa !9
  %113 = fdiv double %112, %109
  store double %113, ptr %111, align 8, !tbaa !9
  %114 = load double, ptr %6, align 8, !tbaa !9
  %115 = load ptr, ptr %5, align 8, !tbaa !5
  %116 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %115, i32 noundef 1)
  %117 = load double, ptr %116, align 8, !tbaa !9
  %118 = fdiv double %117, %114
  store double %118, ptr %116, align 8, !tbaa !9
  %119 = getelementptr inbounds %"class.libNumerics::ComputeH", ptr %14, i32 0, i32 2
  %120 = getelementptr inbounds [64 x double], ptr %119, i64 0, i64 2
  %121 = load double, ptr %120, align 8, !tbaa !9
  %122 = fneg double %121
  %123 = getelementptr inbounds %"class.libNumerics::ComputeH", ptr %14, i32 0, i32 3
  %124 = getelementptr inbounds [8 x double], ptr %123, i64 0, i64 0
  %125 = load double, ptr %124, align 8, !tbaa !9
  %126 = getelementptr inbounds %"class.libNumerics::ComputeH", ptr %14, i32 0, i32 2
  %127 = getelementptr inbounds [64 x double], ptr %126, i64 0, i64 3
  %128 = load double, ptr %127, align 8, !tbaa !9
  %129 = getelementptr inbounds %"class.libNumerics::ComputeH", ptr %14, i32 0, i32 3
  %130 = getelementptr inbounds [8 x double], ptr %129, i64 0, i64 1
  %131 = load double, ptr %130, align 8, !tbaa !9
  %132 = fmul double %128, %131
  %133 = fneg double %132
  %134 = call double @llvm.fmuladd.f64(double %122, double %125, double %133)
  %135 = load double, ptr %8, align 8, !tbaa !9
  %136 = getelementptr inbounds %"class.libNumerics::ComputeH", ptr %14, i32 0, i32 3
  %137 = getelementptr inbounds [8 x double], ptr %136, i64 0, i64 2
  %138 = load double, ptr %137, align 8, !tbaa !9
  %139 = call double @llvm.fmuladd.f64(double %135, double %138, double %134)
  %140 = load double, ptr %6, align 8, !tbaa !9
  %141 = fdiv double %139, %140
  %142 = load ptr, ptr %5, align 8, !tbaa !5
  %143 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %142, i32 noundef 2)
  store double %141, ptr %143, align 8, !tbaa !9
  %144 = getelementptr inbounds %"class.libNumerics::ComputeH", ptr %14, i32 0, i32 2
  %145 = getelementptr inbounds [64 x double], ptr %144, i64 0, i64 3
  %146 = load double, ptr %145, align 8, !tbaa !9
  %147 = fneg double %146
  %148 = getelementptr inbounds %"class.libNumerics::ComputeH", ptr %14, i32 0, i32 3
  %149 = getelementptr inbounds [8 x double], ptr %148, i64 0, i64 0
  %150 = load double, ptr %149, align 8, !tbaa !9
  %151 = getelementptr inbounds %"class.libNumerics::ComputeH", ptr %14, i32 0, i32 2
  %152 = getelementptr inbounds [64 x double], ptr %151, i64 0, i64 2
  %153 = load double, ptr %152, align 8, !tbaa !9
  %154 = getelementptr inbounds %"class.libNumerics::ComputeH", ptr %14, i32 0, i32 3
  %155 = getelementptr inbounds [8 x double], ptr %154, i64 0, i64 1
  %156 = load double, ptr %155, align 8, !tbaa !9
  %157 = fmul double %153, %156
  %158 = call double @llvm.fmuladd.f64(double %147, double %150, double %157)
  %159 = load double, ptr %8, align 8, !tbaa !9
  %160 = getelementptr inbounds %"class.libNumerics::ComputeH", ptr %14, i32 0, i32 3
  %161 = getelementptr inbounds [8 x double], ptr %160, i64 0, i64 3
  %162 = load double, ptr %161, align 8, !tbaa !9
  %163 = call double @llvm.fmuladd.f64(double %159, double %162, double %158)
  %164 = load double, ptr %6, align 8, !tbaa !9
  %165 = fdiv double %163, %164
  %166 = load ptr, ptr %5, align 8, !tbaa !5
  %167 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %166, i32 noundef 3)
  store double %165, ptr %167, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %168 = load ptr, ptr %5, align 8, !tbaa !5
  %169 = call noundef float @_ZNK11libNumerics8ComputeH7q_errorERKNS_6vectorIdEE(ptr noundef nonnull align 8 dereferenceable(592) %14, ptr noundef nonnull align 8 dereferenceable(24) %168)
  store float %169, ptr %9, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #7
  call void @_ZN11libNumerics6vectorIdEC2Ei(ptr noundef nonnull align 8 dereferenceable(24) %10, i32 noundef 4)
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %170 = getelementptr inbounds %"class.libNumerics::ComputeH", ptr %14, i32 0, i32 2
  %171 = getelementptr inbounds [64 x double], ptr %170, i64 0, i64 2
  %172 = load double, ptr %171, align 8, !tbaa !9
  %173 = getelementptr inbounds %"class.libNumerics::ComputeH", ptr %14, i32 0, i32 2
  %174 = getelementptr inbounds [64 x double], ptr %173, i64 0, i64 2
  %175 = load double, ptr %174, align 8, !tbaa !9
  %176 = getelementptr inbounds %"class.libNumerics::ComputeH", ptr %14, i32 0, i32 2
  %177 = getelementptr inbounds [64 x double], ptr %176, i64 0, i64 3
  %178 = load double, ptr %177, align 8, !tbaa !9
  %179 = getelementptr inbounds %"class.libNumerics::ComputeH", ptr %14, i32 0, i32 2
  %180 = getelementptr inbounds [64 x double], ptr %179, i64 0, i64 3
  %181 = load double, ptr %180, align 8, !tbaa !9
  %182 = fmul double %178, %181
  %183 = call double @llvm.fmuladd.f64(double %172, double %175, double %182)
  %184 = load double, ptr %6, align 8, !tbaa !9
  %185 = fsub double %183, %184
  %186 = getelementptr inbounds %"class.libNumerics::ComputeH", ptr %14, i32 0, i32 2
  %187 = getelementptr inbounds [64 x double], ptr %186, i64 0, i64 15
  %188 = load double, ptr %187, align 8, !tbaa !9
  %189 = fdiv double %185, %188
  store double %189, ptr %11, align 8, !tbaa !9
  %190 = load ptr, ptr %5, align 8, !tbaa !5
  %191 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %190, i32 noundef 0)
          to label %192 unwind label %263

192:                                              ; preds = %88
  %193 = load double, ptr %191, align 8, !tbaa !9
  %194 = fneg double %193
  %195 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %10, i32 noundef 0)
          to label %196 unwind label %263

196:                                              ; preds = %192
  store double %194, ptr %195, align 8, !tbaa !9
  %197 = load ptr, ptr %5, align 8, !tbaa !5
  %198 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %197, i32 noundef 1)
          to label %199 unwind label %263

199:                                              ; preds = %196
  %200 = load double, ptr %198, align 8, !tbaa !9
  %201 = fneg double %200
  %202 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %10, i32 noundef 1)
          to label %203 unwind label %263

203:                                              ; preds = %199
  store double %201, ptr %202, align 8, !tbaa !9
  %204 = getelementptr inbounds %"class.libNumerics::ComputeH", ptr %14, i32 0, i32 2
  %205 = getelementptr inbounds [64 x double], ptr %204, i64 0, i64 2
  %206 = load double, ptr %205, align 8, !tbaa !9
  %207 = fneg double %206
  %208 = getelementptr inbounds %"class.libNumerics::ComputeH", ptr %14, i32 0, i32 3
  %209 = getelementptr inbounds [8 x double], ptr %208, i64 0, i64 0
  %210 = load double, ptr %209, align 8, !tbaa !9
  %211 = getelementptr inbounds %"class.libNumerics::ComputeH", ptr %14, i32 0, i32 2
  %212 = getelementptr inbounds [64 x double], ptr %211, i64 0, i64 3
  %213 = load double, ptr %212, align 8, !tbaa !9
  %214 = getelementptr inbounds %"class.libNumerics::ComputeH", ptr %14, i32 0, i32 3
  %215 = getelementptr inbounds [8 x double], ptr %214, i64 0, i64 1
  %216 = load double, ptr %215, align 8, !tbaa !9
  %217 = fmul double %213, %216
  %218 = fneg double %217
  %219 = call double @llvm.fmuladd.f64(double %207, double %210, double %218)
  %220 = load double, ptr %11, align 8, !tbaa !9
  %221 = getelementptr inbounds %"class.libNumerics::ComputeH", ptr %14, i32 0, i32 3
  %222 = getelementptr inbounds [8 x double], ptr %221, i64 0, i64 2
  %223 = load double, ptr %222, align 8, !tbaa !9
  %224 = call double @llvm.fmuladd.f64(double %220, double %223, double %219)
  %225 = fneg double %224
  %226 = load double, ptr %6, align 8, !tbaa !9
  %227 = fdiv double %225, %226
  %228 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %10, i32 noundef 2)
          to label %229 unwind label %263

229:                                              ; preds = %203
  store double %227, ptr %228, align 8, !tbaa !9
  %230 = getelementptr inbounds %"class.libNumerics::ComputeH", ptr %14, i32 0, i32 2
  %231 = getelementptr inbounds [64 x double], ptr %230, i64 0, i64 3
  %232 = load double, ptr %231, align 8, !tbaa !9
  %233 = fneg double %232
  %234 = getelementptr inbounds %"class.libNumerics::ComputeH", ptr %14, i32 0, i32 3
  %235 = getelementptr inbounds [8 x double], ptr %234, i64 0, i64 0
  %236 = load double, ptr %235, align 8, !tbaa !9
  %237 = getelementptr inbounds %"class.libNumerics::ComputeH", ptr %14, i32 0, i32 2
  %238 = getelementptr inbounds [64 x double], ptr %237, i64 0, i64 2
  %239 = load double, ptr %238, align 8, !tbaa !9
  %240 = getelementptr inbounds %"class.libNumerics::ComputeH", ptr %14, i32 0, i32 3
  %241 = getelementptr inbounds [8 x double], ptr %240, i64 0, i64 1
  %242 = load double, ptr %241, align 8, !tbaa !9
  %243 = fmul double %239, %242
  %244 = call double @llvm.fmuladd.f64(double %233, double %236, double %243)
  %245 = load double, ptr %11, align 8, !tbaa !9
  %246 = getelementptr inbounds %"class.libNumerics::ComputeH", ptr %14, i32 0, i32 3
  %247 = getelementptr inbounds [8 x double], ptr %246, i64 0, i64 3
  %248 = load double, ptr %247, align 8, !tbaa !9
  %249 = call double @llvm.fmuladd.f64(double %245, double %248, double %244)
  %250 = fneg double %249
  %251 = load double, ptr %6, align 8, !tbaa !9
  %252 = fdiv double %250, %251
  %253 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %10, i32 noundef 3)
          to label %254 unwind label %263

254:                                              ; preds = %229
  store double %252, ptr %253, align 8, !tbaa !9
  %255 = load float, ptr %9, align 4, !tbaa !11
  %256 = invoke noundef float @_ZNK11libNumerics8ComputeH7q_errorERKNS_6vectorIdEE(ptr noundef nonnull align 8 dereferenceable(592) %14, ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %257 unwind label %263

257:                                              ; preds = %254
  %258 = fcmp ogt float %255, %256
  br i1 %258, label %259, label %267

259:                                              ; preds = %257
  %260 = load ptr, ptr %5, align 8, !tbaa !5
  %261 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN11libNumerics6vectorIdEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %260, ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %262 unwind label %263

262:                                              ; preds = %259
  br label %267

263:                                              ; preds = %259, %254, %229, %203, %199, %196, %192, %88
  %264 = landingpad { ptr, i32 }
          cleanup
  %265 = extractvalue { ptr, i32 } %264, 0
  store ptr %265, ptr %12, align 8
  %266 = extractvalue { ptr, i32 } %264, 1
  store i32 %266, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @_ZN11libNumerics6matrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  br label %271

267:                                              ; preds = %262, %257
  store i1 true, ptr %3, align 1
  store i32 1, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @_ZN11libNumerics6matrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  br label %268

268:                                              ; preds = %267, %87
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  br label %269

269:                                              ; preds = %268, %19
  %270 = load i1, ptr %3, align 1
  ret i1 %270

271:                                              ; preds = %263
  %272 = load ptr, ptr %12, align 8
  %273 = load i32, ptr %13, align 4
  %274 = insertvalue { ptr, i32 } poison, ptr %272, 0
  %275 = insertvalue { ptr, i32 } %274, i32 %273, 1
  resume { ptr, i32 } %275
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11libNumerics6matrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #6 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { 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 #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 = !{!"float", !7, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.libNumerics::vector" = type { %"class.libNumerics::matrix" }
%"class.libNumerics::matrix" = type { ptr, i32, i32, ptr }

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZNK11libNumerics8ComputeH7q_errorERKNS_6vectorIdEE(ptr noundef nonnull align 8 dereferenceable(592), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK11libNumerics8ComputeH16compute_rotationERNS_6vectorIdEE(ptr noundef nonnull align 8 dereferenceable(592) %0, ptr noundef nonnull align 8 dereferenceable(24) %1) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.libNumerics::vector", align 8
  %4 = getelementptr inbounds i8, ptr %0, i64 128
  %5 = load double, ptr %4, align 8, !tbaa !5
  %6 = fcmp ugt double %5, 0.000000e+00
  br i1 %6, label %7, label %134

7:                                                ; preds = %2
  %8 = getelementptr inbounds i8, ptr %0, i64 520
  %9 = load double, ptr %8, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %0, i64 24
  %11 = load double, ptr %10, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %0, i64 536
  %13 = load double, ptr %12, align 8, !tbaa !5
  %14 = fneg double %11
  %15 = fmul double %13, %14
  %16 = tail call double @llvm.fmuladd.f64(double %5, double %9, double %15)
  %17 = getelementptr inbounds i8, ptr %0, i64 32
  %18 = load double, ptr %17, align 8, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %0, i64 544
  %20 = load double, ptr %19, align 8, !tbaa !5
  %21 = fneg double %18
  %22 = tail call double @llvm.fmuladd.f64(double %21, double %20, double %16)
  %23 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 0)
  store double %22, ptr %23, align 8, !tbaa !5
  %24 = load double, ptr %4, align 8, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %0, i64 528
  %26 = load double, ptr %25, align 8, !tbaa !5
  %27 = load double, ptr %17, align 8, !tbaa !5
  %28 = load double, ptr %12, align 8, !tbaa !5
  %29 = fneg double %27
  %30 = fmul double %28, %29
  %31 = tail call double @llvm.fmuladd.f64(double %24, double %26, double %30)
  %32 = load double, ptr %10, align 8, !tbaa !5
  %33 = load double, ptr %19, align 8, !tbaa !5
  %34 = tail call double @llvm.fmuladd.f64(double %32, double %33, double %31)
  %35 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 1)
  store double %34, ptr %35, align 8, !tbaa !5
  %36 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 0)
  %37 = load double, ptr %36, align 8, !tbaa !5
  %38 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 0)
  %39 = load double, ptr %38, align 8, !tbaa !5
  %40 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 1)
  %41 = load double, ptr %40, align 8, !tbaa !5
  %42 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 1)
  %43 = load double, ptr %42, align 8, !tbaa !5
  %44 = fmul double %41, %43
  %45 = tail call double @llvm.fmuladd.f64(double %37, double %39, double %44)
  %46 = tail call double @sqrt(double noundef %45) #7
  %47 = fcmp uge double %46, 0x3F50624DE0000000
  br i1 %47, label %48, label %134

48:                                               ; preds = %7
  %49 = load double, ptr %10, align 8, !tbaa !5
  %50 = load double, ptr %17, align 8, !tbaa !5
  %51 = fmul double %50, %50
  %52 = tail call double @llvm.fmuladd.f64(double %49, double %49, double %51)
  %53 = fadd double %46, %52
  %54 = load double, ptr %4, align 8, !tbaa !5
  %55 = fdiv double %53, %54
  %56 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 0)
  %57 = load double, ptr %56, align 8, !tbaa !5
  %58 = fdiv double %57, %46
  store double %58, ptr %56, align 8, !tbaa !5
  %59 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 1)
  %60 = load double, ptr %59, align 8, !tbaa !5
  %61 = fdiv double %60, %46
  store double %61, ptr %59, align 8, !tbaa !5
  %62 = load double, ptr %10, align 8, !tbaa !5
  %63 = fneg double %62
  %64 = load double, ptr %8, align 8, !tbaa !5
  %65 = load double, ptr %17, align 8, !tbaa !5
  %66 = load double, ptr %25, align 8, !tbaa !5
  %67 = fneg double %65
  %68 = fmul double %66, %67
  %69 = tail call double @llvm.fmuladd.f64(double %63, double %64, double %68)
  %70 = load double, ptr %12, align 8, !tbaa !5
  %71 = tail call double @llvm.fmuladd.f64(double %55, double %70, double %69)
  %72 = fdiv double %71, %46
  %73 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 2)
  store double %72, ptr %73, align 8, !tbaa !5
  %74 = load double, ptr %17, align 8, !tbaa !5
  %75 = fneg double %74
  %76 = load double, ptr %8, align 8, !tbaa !5
  %77 = load double, ptr %10, align 8, !tbaa !5
  %78 = load double, ptr %25, align 8, !tbaa !5
  %79 = fmul double %77, %78
  %80 = tail call double @llvm.fmuladd.f64(double %75, double %76, double %79)
  %81 = load double, ptr %19, align 8, !tbaa !5
  %82 = tail call double @llvm.fmuladd.f64(double %55, double %81, double %80)
  %83 = fdiv double %82, %46
  %84 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 3)
  store double %83, ptr %84, align 8, !tbaa !5
  %85 = tail call noundef float @_ZNK11libNumerics8ComputeH7q_errorERKNS_6vectorIdEE(ptr noundef nonnull align 8 dereferenceable(592) %0, ptr noundef nonnull align 8 dereferenceable(24) %1)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #7
  call void @_ZN11libNumerics6vectorIdEC2Ei(ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef 4)
  %86 = load double, ptr %10, align 8, !tbaa !5
  %87 = load double, ptr %17, align 8, !tbaa !5
  %88 = fmul double %87, %87
  %89 = call double @llvm.fmuladd.f64(double %86, double %86, double %88)
  %90 = fsub double %89, %46
  %91 = load double, ptr %4, align 8, !tbaa !5
  %92 = fdiv double %90, %91
  %93 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 0)
  %94 = load double, ptr %93, align 8, !tbaa !5
  %95 = fneg double %94
  %96 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef 0)
  store double %95, ptr %96, align 8, !tbaa !5
  %97 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef 1)
  %98 = load double, ptr %97, align 8, !tbaa !5
  %99 = fneg double %98
  %100 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef 1)
  store double %99, ptr %100, align 8, !tbaa !5
  %101 = load double, ptr %10, align 8, !tbaa !5
  %102 = fneg double %101
  %103 = load double, ptr %8, align 8, !tbaa !5
  %104 = load double, ptr %17, align 8, !tbaa !5
  %105 = load double, ptr %25, align 8, !tbaa !5
  %106 = fneg double %104
  %107 = fmul double %105, %106
  %108 = call double @llvm.fmuladd.f64(double %102, double %103, double %107)
  %109 = load double, ptr %12, align 8, !tbaa !5
  %110 = call double @llvm.fmuladd.f64(double %92, double %109, double %108)
  %111 = fneg double %110
  %112 = fdiv double %111, %46
  %113 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef 2)
  store double %112, ptr %113, align 8, !tbaa !5
  %114 = load double, ptr %17, align 8, !tbaa !5
  %115 = fneg double %114
  %116 = load double, ptr %8, align 8, !tbaa !5
  %117 = load double, ptr %10, align 8, !tbaa !5
  %118 = load double, ptr %25, align 8, !tbaa !5
  %119 = fmul double %117, %118
  %120 = call double @llvm.fmuladd.f64(double %115, double %116, double %119)
  %121 = load double, ptr %19, align 8, !tbaa !5
  %122 = call double @llvm.fmuladd.f64(double %92, double %121, double %120)
  %123 = fneg double %122
  %124 = fdiv double %123, %46
  %125 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN11libNumerics6matrixIdEclEi(ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef 3)
  store double %124, ptr %125, align 8, !tbaa !5
  %126 = invoke noundef float @_ZNK11libNumerics8ComputeH7q_errorERKNS_6vectorIdEE(ptr noundef nonnull align 8 dereferenceable(592) %0, ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %127 unwind label %131

127:                                              ; preds = %48
  %128 = fcmp ogt float %85, %126
  br i1 %128, label %129, label %133

129:                                              ; preds = %127
  %130 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN11libNumerics6vectorIdEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %133 unwind label %131

131:                                              ; preds = %129, %48
  %132 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN11libNumerics6matrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #7
  resume { ptr, i32 } %132

133:                                              ; preds = %129, %127
  call void @_ZN11libNumerics6matrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #7
  br label %134

134:                                              ; preds = %133, %7, %2
  %.1 = phi i1 [ false, %2 ], [ false, %7 ], [ true, %133 ]
  ret i1 %.1
}

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11libNumerics6matrixIdED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #6 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nofree nounwind willreturn memory(write) "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 = { 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 #6 = { 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 #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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}


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