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

; 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.R4Matrix = type { [4 x [4 x double]] }

@.str = external hidden unnamed_addr constant [46 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: 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: mustprogress uwtable
define dso_local void @_ZN8R4Matrix6InvertEv(ptr noundef nonnull align 8 dereferenceable(128) %0) #2 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca double, align 8
  %4 = alloca double, align 8
  %5 = alloca double, align 8
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %25 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %26 = getelementptr inbounds %class.R4Matrix, ptr %25, i32 0, i32 0
  %27 = getelementptr inbounds [4 x [4 x double]], ptr %26, i64 0, i64 0
  %28 = getelementptr inbounds [4 x double], ptr %27, i64 0, i64 0
  %29 = load double, ptr %28, align 8, !tbaa !9
  store double %29, ptr %3, align 8, !tbaa !9
  %30 = getelementptr inbounds %class.R4Matrix, ptr %25, i32 0, i32 0
  %31 = getelementptr inbounds [4 x [4 x double]], ptr %30, i64 0, i64 0
  %32 = getelementptr inbounds [4 x double], ptr %31, i64 0, i64 1
  %33 = load double, ptr %32, align 8, !tbaa !9
  store double %33, ptr %4, align 8, !tbaa !9
  %34 = getelementptr inbounds %class.R4Matrix, ptr %25, i32 0, i32 0
  %35 = getelementptr inbounds [4 x [4 x double]], ptr %34, i64 0, i64 0
  %36 = getelementptr inbounds [4 x double], ptr %35, i64 0, i64 2
  %37 = load double, ptr %36, align 8, !tbaa !9
  store double %37, ptr %5, align 8, !tbaa !9
  %38 = getelementptr inbounds %class.R4Matrix, ptr %25, i32 0, i32 0
  %39 = getelementptr inbounds [4 x [4 x double]], ptr %38, i64 0, i64 0
  %40 = getelementptr inbounds [4 x double], ptr %39, i64 0, i64 3
  %41 = load double, ptr %40, align 8, !tbaa !9
  store double %41, ptr %6, align 8, !tbaa !9
  %42 = getelementptr inbounds %class.R4Matrix, ptr %25, i32 0, i32 0
  %43 = getelementptr inbounds [4 x [4 x double]], ptr %42, i64 0, i64 1
  %44 = getelementptr inbounds [4 x double], ptr %43, i64 0, i64 0
  %45 = load double, ptr %44, align 8, !tbaa !9
  store double %45, ptr %7, align 8, !tbaa !9
  %46 = getelementptr inbounds %class.R4Matrix, ptr %25, i32 0, i32 0
  %47 = getelementptr inbounds [4 x [4 x double]], ptr %46, i64 0, i64 1
  %48 = getelementptr inbounds [4 x double], ptr %47, i64 0, i64 1
  %49 = load double, ptr %48, align 8, !tbaa !9
  store double %49, ptr %8, align 8, !tbaa !9
  %50 = getelementptr inbounds %class.R4Matrix, ptr %25, i32 0, i32 0
  %51 = getelementptr inbounds [4 x [4 x double]], ptr %50, i64 0, i64 1
  %52 = getelementptr inbounds [4 x double], ptr %51, i64 0, i64 2
  %53 = load double, ptr %52, align 8, !tbaa !9
  store double %53, ptr %9, align 8, !tbaa !9
  %54 = getelementptr inbounds %class.R4Matrix, ptr %25, i32 0, i32 0
  %55 = getelementptr inbounds [4 x [4 x double]], ptr %54, i64 0, i64 1
  %56 = getelementptr inbounds [4 x double], ptr %55, i64 0, i64 3
  %57 = load double, ptr %56, align 8, !tbaa !9
  store double %57, ptr %10, align 8, !tbaa !9
  %58 = getelementptr inbounds %class.R4Matrix, ptr %25, i32 0, i32 0
  %59 = getelementptr inbounds [4 x [4 x double]], ptr %58, i64 0, i64 2
  %60 = getelementptr inbounds [4 x double], ptr %59, i64 0, i64 0
  %61 = load double, ptr %60, align 8, !tbaa !9
  store double %61, ptr %11, align 8, !tbaa !9
  %62 = getelementptr inbounds %class.R4Matrix, ptr %25, i32 0, i32 0
  %63 = getelementptr inbounds [4 x [4 x double]], ptr %62, i64 0, i64 2
  %64 = getelementptr inbounds [4 x double], ptr %63, i64 0, i64 1
  %65 = load double, ptr %64, align 8, !tbaa !9
  store double %65, ptr %12, align 8, !tbaa !9
  %66 = getelementptr inbounds %class.R4Matrix, ptr %25, i32 0, i32 0
  %67 = getelementptr inbounds [4 x [4 x double]], ptr %66, i64 0, i64 2
  %68 = getelementptr inbounds [4 x double], ptr %67, i64 0, i64 2
  %69 = load double, ptr %68, align 8, !tbaa !9
  store double %69, ptr %13, align 8, !tbaa !9
  %70 = getelementptr inbounds %class.R4Matrix, ptr %25, i32 0, i32 0
  %71 = getelementptr inbounds [4 x [4 x double]], ptr %70, i64 0, i64 2
  %72 = getelementptr inbounds [4 x double], ptr %71, i64 0, i64 3
  %73 = load double, ptr %72, align 8, !tbaa !9
  store double %73, ptr %14, align 8, !tbaa !9
  %74 = getelementptr inbounds %class.R4Matrix, ptr %25, i32 0, i32 0
  %75 = getelementptr inbounds [4 x [4 x double]], ptr %74, i64 0, i64 3
  %76 = getelementptr inbounds [4 x double], ptr %75, i64 0, i64 0
  %77 = load double, ptr %76, align 8, !tbaa !9
  store double %77, ptr %15, align 8, !tbaa !9
  %78 = getelementptr inbounds %class.R4Matrix, ptr %25, i32 0, i32 0
  %79 = getelementptr inbounds [4 x [4 x double]], ptr %78, i64 0, i64 3
  %80 = getelementptr inbounds [4 x double], ptr %79, i64 0, i64 1
  %81 = load double, ptr %80, align 8, !tbaa !9
  store double %81, ptr %16, align 8, !tbaa !9
  %82 = getelementptr inbounds %class.R4Matrix, ptr %25, i32 0, i32 0
  %83 = getelementptr inbounds [4 x [4 x double]], ptr %82, i64 0, i64 3
  %84 = getelementptr inbounds [4 x double], ptr %83, i64 0, i64 2
  %85 = load double, ptr %84, align 8, !tbaa !9
  store double %85, ptr %17, align 8, !tbaa !9
  %86 = getelementptr inbounds %class.R4Matrix, ptr %25, i32 0, i32 0
  %87 = getelementptr inbounds [4 x [4 x double]], ptr %86, i64 0, i64 3
  %88 = getelementptr inbounds [4 x double], ptr %87, i64 0, i64 3
  %89 = load double, ptr %88, align 8, !tbaa !9
  store double %89, ptr %18, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %90 = load double, ptr %8, align 8, !tbaa !9
  %91 = load double, ptr %9, align 8, !tbaa !9
  %92 = load double, ptr %10, align 8, !tbaa !9
  %93 = load double, ptr %12, align 8, !tbaa !9
  %94 = load double, ptr %13, align 8, !tbaa !9
  %95 = load double, ptr %14, align 8, !tbaa !9
  %96 = load double, ptr %16, align 8, !tbaa !9
  %97 = load double, ptr %17, align 8, !tbaa !9
  %98 = load double, ptr %18, align 8, !tbaa !9
  %99 = call noundef double @_Z12R4MatrixDet3ddddddddd(double noundef %90, double noundef %91, double noundef %92, double noundef %93, double noundef %94, double noundef %95, double noundef %96, double noundef %97, double noundef %98)
  store double %99, ptr %19, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %100 = load double, ptr %7, align 8, !tbaa !9
  %101 = load double, ptr %9, align 8, !tbaa !9
  %102 = load double, ptr %10, align 8, !tbaa !9
  %103 = load double, ptr %11, align 8, !tbaa !9
  %104 = load double, ptr %13, align 8, !tbaa !9
  %105 = load double, ptr %14, align 8, !tbaa !9
  %106 = load double, ptr %15, align 8, !tbaa !9
  %107 = load double, ptr %17, align 8, !tbaa !9
  %108 = load double, ptr %18, align 8, !tbaa !9
  %109 = call noundef double @_Z12R4MatrixDet3ddddddddd(double noundef %100, double noundef %101, double noundef %102, double noundef %103, double noundef %104, double noundef %105, double noundef %106, double noundef %107, double noundef %108)
  store double %109, ptr %20, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %110 = load double, ptr %7, align 8, !tbaa !9
  %111 = load double, ptr %8, align 8, !tbaa !9
  %112 = load double, ptr %10, align 8, !tbaa !9
  %113 = load double, ptr %11, align 8, !tbaa !9
  %114 = load double, ptr %12, align 8, !tbaa !9
  %115 = load double, ptr %14, align 8, !tbaa !9
  %116 = load double, ptr %15, align 8, !tbaa !9
  %117 = load double, ptr %16, align 8, !tbaa !9
  %118 = load double, ptr %18, align 8, !tbaa !9
  %119 = call noundef double @_Z12R4MatrixDet3ddddddddd(double noundef %110, double noundef %111, double noundef %112, double noundef %113, double noundef %114, double noundef %115, double noundef %116, double noundef %117, double noundef %118)
  store double %119, ptr %21, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %120 = load double, ptr %7, align 8, !tbaa !9
  %121 = load double, ptr %8, align 8, !tbaa !9
  %122 = load double, ptr %9, align 8, !tbaa !9
  %123 = load double, ptr %11, align 8, !tbaa !9
  %124 = load double, ptr %12, align 8, !tbaa !9
  %125 = load double, ptr %13, align 8, !tbaa !9
  %126 = load double, ptr %15, align 8, !tbaa !9
  %127 = load double, ptr %16, align 8, !tbaa !9
  %128 = load double, ptr %17, align 8, !tbaa !9
  %129 = call noundef double @_Z12R4MatrixDet3ddddddddd(double noundef %120, double noundef %121, double noundef %122, double noundef %123, double noundef %124, double noundef %125, double noundef %126, double noundef %127, double noundef %128)
  store double %129, ptr %22, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %130 = load double, ptr %3, align 8, !tbaa !9
  %131 = load double, ptr %19, align 8, !tbaa !9
  %132 = load double, ptr %4, align 8, !tbaa !9
  %133 = load double, ptr %20, align 8, !tbaa !9
  %134 = fmul double %132, %133
  %135 = fneg double %134
  %136 = call double @llvm.fmuladd.f64(double %130, double %131, double %135)
  %137 = load double, ptr %5, align 8, !tbaa !9
  %138 = load double, ptr %21, align 8, !tbaa !9
  %139 = call double @llvm.fmuladd.f64(double %137, double %138, double %136)
  %140 = load double, ptr %6, align 8, !tbaa !9
  %141 = load double, ptr %22, align 8, !tbaa !9
  %142 = fneg double %140
  %143 = call double @llvm.fmuladd.f64(double %142, double %141, double %139)
  store double %143, ptr %23, align 8, !tbaa !9
  %144 = load double, ptr %23, align 8, !tbaa !9
  %145 = call noundef i32 @_Z8RNIsZerodd(double noundef %144, double noundef 1.000000e-08)
  %146 = icmp ne i32 %145, 0
  br i1 %146, label %147, label %148

147:                                              ; preds = %1
  call void (ptr, ...) @_Z9RNWarningPKcz(ptr noundef @.str)
  store i32 1, ptr %24, align 4
  br label %361

148:                                              ; preds = %1
  %149 = load double, ptr %19, align 8, !tbaa !9
  %150 = load double, ptr %23, align 8, !tbaa !9
  %151 = fdiv double %149, %150
  %152 = getelementptr inbounds %class.R4Matrix, ptr %25, i32 0, i32 0
  %153 = getelementptr inbounds [4 x [4 x double]], ptr %152, i64 0, i64 0
  %154 = getelementptr inbounds [4 x double], ptr %153, i64 0, i64 0
  store double %151, ptr %154, align 8, !tbaa !9
  %155 = load double, ptr %20, align 8, !tbaa !9
  %156 = fneg double %155
  %157 = load double, ptr %23, align 8, !tbaa !9
  %158 = fdiv double %156, %157
  %159 = getelementptr inbounds %class.R4Matrix, ptr %25, i32 0, i32 0
  %160 = getelementptr inbounds [4 x [4 x double]], ptr %159, i64 0, i64 1
  %161 = getelementptr inbounds [4 x double], ptr %160, i64 0, i64 0
  store double %158, ptr %161, align 8, !tbaa !9
  %162 = load double, ptr %21, align 8, !tbaa !9
  %163 = load double, ptr %23, align 8, !tbaa !9
  %164 = fdiv double %162, %163
  %165 = getelementptr inbounds %class.R4Matrix, ptr %25, i32 0, i32 0
  %166 = getelementptr inbounds [4 x [4 x double]], ptr %165, i64 0, i64 2
  %167 = getelementptr inbounds [4 x double], ptr %166, i64 0, i64 0
  store double %164, ptr %167, align 8, !tbaa !9
  %168 = load double, ptr %22, align 8, !tbaa !9
  %169 = fneg double %168
  %170 = load double, ptr %23, align 8, !tbaa !9
  %171 = fdiv double %169, %170
  %172 = getelementptr inbounds %class.R4Matrix, ptr %25, i32 0, i32 0
  %173 = getelementptr inbounds [4 x [4 x double]], ptr %172, i64 0, i64 3
  %174 = getelementptr inbounds [4 x double], ptr %173, i64 0, i64 0
  store double %171, ptr %174, align 8, !tbaa !9
  %175 = load double, ptr %4, align 8, !tbaa !9
  %176 = load double, ptr %5, align 8, !tbaa !9
  %177 = load double, ptr %6, align 8, !tbaa !9
  %178 = load double, ptr %12, align 8, !tbaa !9
  %179 = load double, ptr %13, align 8, !tbaa !9
  %180 = load double, ptr %14, align 8, !tbaa !9
  %181 = load double, ptr %16, align 8, !tbaa !9
  %182 = load double, ptr %17, align 8, !tbaa !9
  %183 = load double, ptr %18, align 8, !tbaa !9
  %184 = call noundef double @_Z12R4MatrixDet3ddddddddd(double noundef %175, double noundef %176, double noundef %177, double noundef %178, double noundef %179, double noundef %180, double noundef %181, double noundef %182, double noundef %183)
  %185 = fneg double %184
  %186 = load double, ptr %23, align 8, !tbaa !9
  %187 = fdiv double %185, %186
  %188 = getelementptr inbounds %class.R4Matrix, ptr %25, i32 0, i32 0
  %189 = getelementptr inbounds [4 x [4 x double]], ptr %188, i64 0, i64 0
  %190 = getelementptr inbounds [4 x double], ptr %189, i64 0, i64 1
  store double %187, ptr %190, align 8, !tbaa !9
  %191 = load double, ptr %3, align 8, !tbaa !9
  %192 = load double, ptr %5, align 8, !tbaa !9
  %193 = load double, ptr %6, align 8, !tbaa !9
  %194 = load double, ptr %11, align 8, !tbaa !9
  %195 = load double, ptr %13, align 8, !tbaa !9
  %196 = load double, ptr %14, align 8, !tbaa !9
  %197 = load double, ptr %15, align 8, !tbaa !9
  %198 = load double, ptr %17, align 8, !tbaa !9
  %199 = load double, ptr %18, align 8, !tbaa !9
  %200 = call noundef double @_Z12R4MatrixDet3ddddddddd(double noundef %191, double noundef %192, double noundef %193, double noundef %194, double noundef %195, double noundef %196, double noundef %197, double noundef %198, double noundef %199)
  %201 = load double, ptr %23, align 8, !tbaa !9
  %202 = fdiv double %200, %201
  %203 = getelementptr inbounds %class.R4Matrix, ptr %25, i32 0, i32 0
  %204 = getelementptr inbounds [4 x [4 x double]], ptr %203, i64 0, i64 1
  %205 = getelementptr inbounds [4 x double], ptr %204, i64 0, i64 1
  store double %202, ptr %205, align 8, !tbaa !9
  %206 = load double, ptr %3, align 8, !tbaa !9
  %207 = load double, ptr %4, align 8, !tbaa !9
  %208 = load double, ptr %6, align 8, !tbaa !9
  %209 = load double, ptr %11, align 8, !tbaa !9
  %210 = load double, ptr %12, align 8, !tbaa !9
  %211 = load double, ptr %14, align 8, !tbaa !9
  %212 = load double, ptr %15, align 8, !tbaa !9
  %213 = load double, ptr %16, align 8, !tbaa !9
  %214 = load double, ptr %18, align 8, !tbaa !9
  %215 = call noundef double @_Z12R4MatrixDet3ddddddddd(double noundef %206, double noundef %207, double noundef %208, double noundef %209, double noundef %210, double noundef %211, double noundef %212, double noundef %213, double noundef %214)
  %216 = fneg double %215
  %217 = load double, ptr %23, align 8, !tbaa !9
  %218 = fdiv double %216, %217
  %219 = getelementptr inbounds %class.R4Matrix, ptr %25, i32 0, i32 0
  %220 = getelementptr inbounds [4 x [4 x double]], ptr %219, i64 0, i64 2
  %221 = getelementptr inbounds [4 x double], ptr %220, i64 0, i64 1
  store double %218, ptr %221, align 8, !tbaa !9
  %222 = load double, ptr %3, align 8, !tbaa !9
  %223 = load double, ptr %4, align 8, !tbaa !9
  %224 = load double, ptr %5, align 8, !tbaa !9
  %225 = load double, ptr %11, align 8, !tbaa !9
  %226 = load double, ptr %12, align 8, !tbaa !9
  %227 = load double, ptr %13, align 8, !tbaa !9
  %228 = load double, ptr %15, align 8, !tbaa !9
  %229 = load double, ptr %16, align 8, !tbaa !9
  %230 = load double, ptr %17, align 8, !tbaa !9
  %231 = call noundef double @_Z12R4MatrixDet3ddddddddd(double noundef %222, double noundef %223, double noundef %224, double noundef %225, double noundef %226, double noundef %227, double noundef %228, double noundef %229, double noundef %230)
  %232 = load double, ptr %23, align 8, !tbaa !9
  %233 = fdiv double %231, %232
  %234 = getelementptr inbounds %class.R4Matrix, ptr %25, i32 0, i32 0
  %235 = getelementptr inbounds [4 x [4 x double]], ptr %234, i64 0, i64 3
  %236 = getelementptr inbounds [4 x double], ptr %235, i64 0, i64 1
  store double %233, ptr %236, align 8, !tbaa !9
  %237 = load double, ptr %4, align 8, !tbaa !9
  %238 = load double, ptr %5, align 8, !tbaa !9
  %239 = load double, ptr %6, align 8, !tbaa !9
  %240 = load double, ptr %8, align 8, !tbaa !9
  %241 = load double, ptr %9, align 8, !tbaa !9
  %242 = load double, ptr %10, align 8, !tbaa !9
  %243 = load double, ptr %16, align 8, !tbaa !9
  %244 = load double, ptr %17, align 8, !tbaa !9
  %245 = load double, ptr %18, align 8, !tbaa !9
  %246 = call noundef double @_Z12R4MatrixDet3ddddddddd(double noundef %237, double noundef %238, double noundef %239, double noundef %240, double noundef %241, double noundef %242, double noundef %243, double noundef %244, double noundef %245)
  %247 = load double, ptr %23, align 8, !tbaa !9
  %248 = fdiv double %246, %247
  %249 = getelementptr inbounds %class.R4Matrix, ptr %25, i32 0, i32 0
  %250 = getelementptr inbounds [4 x [4 x double]], ptr %249, i64 0, i64 0
  %251 = getelementptr inbounds [4 x double], ptr %250, i64 0, i64 2
  store double %248, ptr %251, align 8, !tbaa !9
  %252 = load double, ptr %3, align 8, !tbaa !9
  %253 = load double, ptr %5, align 8, !tbaa !9
  %254 = load double, ptr %6, align 8, !tbaa !9
  %255 = load double, ptr %7, align 8, !tbaa !9
  %256 = load double, ptr %9, align 8, !tbaa !9
  %257 = load double, ptr %10, align 8, !tbaa !9
  %258 = load double, ptr %15, align 8, !tbaa !9
  %259 = load double, ptr %17, align 8, !tbaa !9
  %260 = load double, ptr %18, align 8, !tbaa !9
  %261 = call noundef double @_Z12R4MatrixDet3ddddddddd(double noundef %252, double noundef %253, double noundef %254, double noundef %255, double noundef %256, double noundef %257, double noundef %258, double noundef %259, double noundef %260)
  %262 = fneg double %261
  %263 = load double, ptr %23, align 8, !tbaa !9
  %264 = fdiv double %262, %263
  %265 = getelementptr inbounds %class.R4Matrix, ptr %25, i32 0, i32 0
  %266 = getelementptr inbounds [4 x [4 x double]], ptr %265, i64 0, i64 1
  %267 = getelementptr inbounds [4 x double], ptr %266, i64 0, i64 2
  store double %264, ptr %267, align 8, !tbaa !9
  %268 = load double, ptr %3, align 8, !tbaa !9
  %269 = load double, ptr %4, align 8, !tbaa !9
  %270 = load double, ptr %6, align 8, !tbaa !9
  %271 = load double, ptr %7, align 8, !tbaa !9
  %272 = load double, ptr %8, align 8, !tbaa !9
  %273 = load double, ptr %10, align 8, !tbaa !9
  %274 = load double, ptr %15, align 8, !tbaa !9
  %275 = load double, ptr %16, align 8, !tbaa !9
  %276 = load double, ptr %18, align 8, !tbaa !9
  %277 = call noundef double @_Z12R4MatrixDet3ddddddddd(double noundef %268, double noundef %269, double noundef %270, double noundef %271, double noundef %272, double noundef %273, double noundef %274, double noundef %275, double noundef %276)
  %278 = load double, ptr %23, align 8, !tbaa !9
  %279 = fdiv double %277, %278
  %280 = getelementptr inbounds %class.R4Matrix, ptr %25, i32 0, i32 0
  %281 = getelementptr inbounds [4 x [4 x double]], ptr %280, i64 0, i64 2
  %282 = getelementptr inbounds [4 x double], ptr %281, i64 0, i64 2
  store double %279, ptr %282, align 8, !tbaa !9
  %283 = load double, ptr %3, align 8, !tbaa !9
  %284 = load double, ptr %4, align 8, !tbaa !9
  %285 = load double, ptr %5, align 8, !tbaa !9
  %286 = load double, ptr %7, align 8, !tbaa !9
  %287 = load double, ptr %8, align 8, !tbaa !9
  %288 = load double, ptr %9, align 8, !tbaa !9
  %289 = load double, ptr %15, align 8, !tbaa !9
  %290 = load double, ptr %16, align 8, !tbaa !9
  %291 = load double, ptr %17, align 8, !tbaa !9
  %292 = call noundef double @_Z12R4MatrixDet3ddddddddd(double noundef %283, double noundef %284, double noundef %285, double noundef %286, double noundef %287, double noundef %288, double noundef %289, double noundef %290, double noundef %291)
  %293 = fneg double %292
  %294 = load double, ptr %23, align 8, !tbaa !9
  %295 = fdiv double %293, %294
  %296 = getelementptr inbounds %class.R4Matrix, ptr %25, i32 0, i32 0
  %297 = getelementptr inbounds [4 x [4 x double]], ptr %296, i64 0, i64 3
  %298 = getelementptr inbounds [4 x double], ptr %297, i64 0, i64 2
  store double %295, ptr %298, align 8, !tbaa !9
  %299 = load double, ptr %4, align 8, !tbaa !9
  %300 = load double, ptr %5, align 8, !tbaa !9
  %301 = load double, ptr %6, align 8, !tbaa !9
  %302 = load double, ptr %8, align 8, !tbaa !9
  %303 = load double, ptr %9, align 8, !tbaa !9
  %304 = load double, ptr %10, align 8, !tbaa !9
  %305 = load double, ptr %12, align 8, !tbaa !9
  %306 = load double, ptr %13, align 8, !tbaa !9
  %307 = load double, ptr %14, align 8, !tbaa !9
  %308 = call noundef double @_Z12R4MatrixDet3ddddddddd(double noundef %299, double noundef %300, double noundef %301, double noundef %302, double noundef %303, double noundef %304, double noundef %305, double noundef %306, double noundef %307)
  %309 = fneg double %308
  %310 = load double, ptr %23, align 8, !tbaa !9
  %311 = fdiv double %309, %310
  %312 = getelementptr inbounds %class.R4Matrix, ptr %25, i32 0, i32 0
  %313 = getelementptr inbounds [4 x [4 x double]], ptr %312, i64 0, i64 0
  %314 = getelementptr inbounds [4 x double], ptr %313, i64 0, i64 3
  store double %311, ptr %314, align 8, !tbaa !9
  %315 = load double, ptr %3, align 8, !tbaa !9
  %316 = load double, ptr %5, align 8, !tbaa !9
  %317 = load double, ptr %6, align 8, !tbaa !9
  %318 = load double, ptr %7, align 8, !tbaa !9
  %319 = load double, ptr %9, align 8, !tbaa !9
  %320 = load double, ptr %10, align 8, !tbaa !9
  %321 = load double, ptr %11, align 8, !tbaa !9
  %322 = load double, ptr %13, align 8, !tbaa !9
  %323 = load double, ptr %14, align 8, !tbaa !9
  %324 = call noundef double @_Z12R4MatrixDet3ddddddddd(double noundef %315, double noundef %316, double noundef %317, double noundef %318, double noundef %319, double noundef %320, double noundef %321, double noundef %322, double noundef %323)
  %325 = load double, ptr %23, align 8, !tbaa !9
  %326 = fdiv double %324, %325
  %327 = getelementptr inbounds %class.R4Matrix, ptr %25, i32 0, i32 0
  %328 = getelementptr inbounds [4 x [4 x double]], ptr %327, i64 0, i64 1
  %329 = getelementptr inbounds [4 x double], ptr %328, i64 0, i64 3
  store double %326, ptr %329, align 8, !tbaa !9
  %330 = load double, ptr %3, align 8, !tbaa !9
  %331 = load double, ptr %4, align 8, !tbaa !9
  %332 = load double, ptr %6, align 8, !tbaa !9
  %333 = load double, ptr %7, align 8, !tbaa !9
  %334 = load double, ptr %8, align 8, !tbaa !9
  %335 = load double, ptr %10, align 8, !tbaa !9
  %336 = load double, ptr %11, align 8, !tbaa !9
  %337 = load double, ptr %12, align 8, !tbaa !9
  %338 = load double, ptr %14, align 8, !tbaa !9
  %339 = call noundef double @_Z12R4MatrixDet3ddddddddd(double noundef %330, double noundef %331, double noundef %332, double noundef %333, double noundef %334, double noundef %335, double noundef %336, double noundef %337, double noundef %338)
  %340 = fneg double %339
  %341 = load double, ptr %23, align 8, !tbaa !9
  %342 = fdiv double %340, %341
  %343 = getelementptr inbounds %class.R4Matrix, ptr %25, i32 0, i32 0
  %344 = getelementptr inbounds [4 x [4 x double]], ptr %343, i64 0, i64 2
  %345 = getelementptr inbounds [4 x double], ptr %344, i64 0, i64 3
  store double %342, ptr %345, align 8, !tbaa !9
  %346 = load double, ptr %3, align 8, !tbaa !9
  %347 = load double, ptr %4, align 8, !tbaa !9
  %348 = load double, ptr %5, align 8, !tbaa !9
  %349 = load double, ptr %7, align 8, !tbaa !9
  %350 = load double, ptr %8, align 8, !tbaa !9
  %351 = load double, ptr %9, align 8, !tbaa !9
  %352 = load double, ptr %11, align 8, !tbaa !9
  %353 = load double, ptr %12, align 8, !tbaa !9
  %354 = load double, ptr %13, align 8, !tbaa !9
  %355 = call noundef double @_Z12R4MatrixDet3ddddddddd(double noundef %346, double noundef %347, double noundef %348, double noundef %349, double noundef %350, double noundef %351, double noundef %352, double noundef %353, double noundef %354)
  %356 = load double, ptr %23, align 8, !tbaa !9
  %357 = fdiv double %355, %356
  %358 = getelementptr inbounds %class.R4Matrix, ptr %25, i32 0, i32 0
  %359 = getelementptr inbounds [4 x [4 x double]], ptr %358, i64 0, i64 3
  %360 = getelementptr inbounds [4 x double], ptr %359, i64 0, i64 3
  store double %357, ptr %360, align 8, !tbaa !9
  store i32 0, ptr %24, align 4
  br label %361

361:                                              ; preds = %148, %147
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  %362 = load i32, ptr %24, align 4
  switch i32 %362, label %364 [
    i32 0, label %363
    i32 1, label %363
  ]

363:                                              ; preds = %361, %361
  ret void

364:                                              ; preds = %361
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z12R4MatrixDet3ddddddddd(double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef) #3

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

declare void @_Z9RNWarningPKcz(ptr noundef, ...) #5

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

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

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


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

@.str = external hidden unnamed_addr constant [46 x i8], align 1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8R4Matrix6InvertEv(ptr nocapture noundef nonnull align 8 dereferenceable(128) %0) local_unnamed_addr #1 align 2 {
  %2 = load double, ptr %0, align 8, !tbaa !5
  %3 = getelementptr inbounds i8, ptr %0, i64 8
  %4 = load double, ptr %3, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %0, i64 16
  %6 = load double, ptr %5, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 24
  %8 = load double, ptr %7, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %0, i64 32
  %10 = load double, ptr %9, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %0, i64 40
  %12 = load double, ptr %11, align 8, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %0, i64 48
  %14 = load double, ptr %13, align 8, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %0, i64 56
  %16 = load double, ptr %15, align 8, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %0, i64 64
  %18 = load double, ptr %17, align 8, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %0, i64 72
  %20 = load double, ptr %19, align 8, !tbaa !5
  %21 = getelementptr inbounds i8, ptr %0, i64 80
  %22 = load double, ptr %21, align 8, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %0, i64 88
  %24 = load double, ptr %23, align 8, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %0, i64 96
  %26 = load double, ptr %25, align 8, !tbaa !5
  %27 = getelementptr inbounds i8, ptr %0, i64 104
  %28 = load double, ptr %27, align 8, !tbaa !5
  %29 = getelementptr inbounds i8, ptr %0, i64 112
  %30 = load double, ptr %29, align 8, !tbaa !5
  %31 = getelementptr inbounds i8, ptr %0, i64 120
  %32 = load double, ptr %31, align 8, !tbaa !5
  %33 = tail call noundef double @_Z12R4MatrixDet3ddddddddd(double noundef %12, double noundef %14, double noundef %16, double noundef %20, double noundef %22, double noundef %24, double noundef %28, double noundef %30, double noundef %32)
  %34 = tail call noundef double @_Z12R4MatrixDet3ddddddddd(double noundef %10, double noundef %14, double noundef %16, double noundef %18, double noundef %22, double noundef %24, double noundef %26, double noundef %30, double noundef %32)
  %35 = tail call noundef double @_Z12R4MatrixDet3ddddddddd(double noundef %10, double noundef %12, double noundef %16, double noundef %18, double noundef %20, double noundef %24, double noundef %26, double noundef %28, double noundef %32)
  %36 = tail call noundef double @_Z12R4MatrixDet3ddddddddd(double noundef %10, double noundef %12, double noundef %14, double noundef %18, double noundef %20, double noundef %22, double noundef %26, double noundef %28, double noundef %30)
  %37 = fneg double %4
  %38 = fmul double %34, %37
  %39 = tail call double @llvm.fmuladd.f64(double %2, double %33, double %38)
  %40 = tail call double @llvm.fmuladd.f64(double %6, double %35, double %39)
  %41 = fneg double %8
  %42 = tail call double @llvm.fmuladd.f64(double %41, double %36, double %40)
  %43 = tail call noundef i32 @_Z8RNIsZerodd(double noundef %42, double noundef 1.000000e-08)
  %.not = icmp eq i32 %43, 0
  br i1 %.not, label %45, label %44

44:                                               ; preds = %1
  tail call void (ptr, ...) @_Z9RNWarningPKcz(ptr noundef nonnull @.str)
  br label %82

45:                                               ; preds = %1
  %46 = fdiv double %33, %42
  store double %46, ptr %0, align 8, !tbaa !5
  %47 = fneg double %34
  %48 = fdiv double %47, %42
  store double %48, ptr %9, align 8, !tbaa !5
  %49 = fdiv double %35, %42
  store double %49, ptr %17, align 8, !tbaa !5
  %50 = fneg double %36
  %51 = fdiv double %50, %42
  store double %51, ptr %25, align 8, !tbaa !5
  %52 = tail call noundef double @_Z12R4MatrixDet3ddddddddd(double noundef %4, double noundef %6, double noundef %8, double noundef %20, double noundef %22, double noundef %24, double noundef %28, double noundef %30, double noundef %32)
  %53 = fneg double %52
  %54 = fdiv double %53, %42
  store double %54, ptr %3, align 8, !tbaa !5
  %55 = tail call noundef double @_Z12R4MatrixDet3ddddddddd(double noundef %2, double noundef %6, double noundef %8, double noundef %18, double noundef %22, double noundef %24, double noundef %26, double noundef %30, double noundef %32)
  %56 = fdiv double %55, %42
  store double %56, ptr %11, align 8, !tbaa !5
  %57 = tail call noundef double @_Z12R4MatrixDet3ddddddddd(double noundef %2, double noundef %4, double noundef %8, double noundef %18, double noundef %20, double noundef %24, double noundef %26, double noundef %28, double noundef %32)
  %58 = fneg double %57
  %59 = fdiv double %58, %42
  store double %59, ptr %19, align 8, !tbaa !5
  %60 = tail call noundef double @_Z12R4MatrixDet3ddddddddd(double noundef %2, double noundef %4, double noundef %6, double noundef %18, double noundef %20, double noundef %22, double noundef %26, double noundef %28, double noundef %30)
  %61 = fdiv double %60, %42
  store double %61, ptr %27, align 8, !tbaa !5
  %62 = tail call noundef double @_Z12R4MatrixDet3ddddddddd(double noundef %4, double noundef %6, double noundef %8, double noundef %12, double noundef %14, double noundef %16, double noundef %28, double noundef %30, double noundef %32)
  %63 = fdiv double %62, %42
  store double %63, ptr %5, align 8, !tbaa !5
  %64 = tail call noundef double @_Z12R4MatrixDet3ddddddddd(double noundef %2, double noundef %6, double noundef %8, double noundef %10, double noundef %14, double noundef %16, double noundef %26, double noundef %30, double noundef %32)
  %65 = fneg double %64
  %66 = fdiv double %65, %42
  store double %66, ptr %13, align 8, !tbaa !5
  %67 = tail call noundef double @_Z12R4MatrixDet3ddddddddd(double noundef %2, double noundef %4, double noundef %8, double noundef %10, double noundef %12, double noundef %16, double noundef %26, double noundef %28, double noundef %32)
  %68 = fdiv double %67, %42
  store double %68, ptr %21, align 8, !tbaa !5
  %69 = tail call noundef double @_Z12R4MatrixDet3ddddddddd(double noundef %2, double noundef %4, double noundef %6, double noundef %10, double noundef %12, double noundef %14, double noundef %26, double noundef %28, double noundef %30)
  %70 = fneg double %69
  %71 = fdiv double %70, %42
  store double %71, ptr %29, align 8, !tbaa !5
  %72 = tail call noundef double @_Z12R4MatrixDet3ddddddddd(double noundef %4, double noundef %6, double noundef %8, double noundef %12, double noundef %14, double noundef %16, double noundef %20, double noundef %22, double noundef %24)
  %73 = fneg double %72
  %74 = fdiv double %73, %42
  store double %74, ptr %7, align 8, !tbaa !5
  %75 = tail call noundef double @_Z12R4MatrixDet3ddddddddd(double noundef %2, double noundef %6, double noundef %8, double noundef %10, double noundef %14, double noundef %16, double noundef %18, double noundef %22, double noundef %24)
  %76 = fdiv double %75, %42
  store double %76, ptr %15, align 8, !tbaa !5
  %77 = tail call noundef double @_Z12R4MatrixDet3ddddddddd(double noundef %2, double noundef %4, double noundef %8, double noundef %10, double noundef %12, double noundef %16, double noundef %18, double noundef %20, double noundef %24)
  %78 = fneg double %77
  %79 = fdiv double %78, %42
  store double %79, ptr %23, align 8, !tbaa !5
  %80 = tail call noundef double @_Z12R4MatrixDet3ddddddddd(double noundef %2, double noundef %4, double noundef %6, double noundef %10, double noundef %12, double noundef %14, double noundef %18, double noundef %20, double noundef %22)
  %81 = fdiv double %80, %42
  store double %81, ptr %31, align 8, !tbaa !5
  br label %82

82:                                               ; preds = %45, %44
  ret void
}

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

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

declare void @_Z9RNWarningPKcz(ptr noundef, ...) local_unnamed_addr #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { 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 #2 = { 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 = { 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 #4 = { "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" }

!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: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass