; LLVM IR from moarseniy/CudaFEMproject :: deprecated/Linal2/src/Linal2.ll (ZN6Matrix3detEi)

; 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.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%class.Matrix = type { i32, i32, i8, i8, ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.27 = external hidden unnamed_addr constant [13 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 willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_Z6det3x3fffffffff(float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef) #4

; Function Attrs: mustprogress uwtable
define dso_local noundef float @_ZN6Matrix3detEi(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %1) #4 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca float, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca float, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca float, align 4
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca %class.Matrix, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  %18 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store float 0.000000e+00, ptr %6, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 1, ptr %7, align 4, !tbaa !9
  %19 = load i32, ptr %5, align 4, !tbaa !9
  %20 = icmp eq i32 %19, 1
  br i1 %20, label %21, label %26

21:                                               ; preds = %2
  %22 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 4
  %23 = load ptr, ptr %22, align 8, !tbaa !13
  %24 = getelementptr inbounds float, ptr %23, i64 0
  %25 = load float, ptr %24, align 4, !tbaa !11
  store float %25, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %371

26:                                               ; preds = %2
  %27 = load i32, ptr %5, align 4, !tbaa !9
  %28 = icmp eq i32 %27, 2
  br i1 %28, label %29, label %69

29:                                               ; preds = %26
  %30 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 4
  %31 = load ptr, ptr %30, align 8, !tbaa !13
  %32 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 1
  %33 = load i32, ptr %32, align 4, !tbaa !16
  %34 = mul nsw i32 0, %33
  %35 = add nsw i32 0, %34
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds float, ptr %31, i64 %36
  %38 = load float, ptr %37, align 4, !tbaa !11
  %39 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 4
  %40 = load ptr, ptr %39, align 8, !tbaa !13
  %41 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 1
  %42 = load i32, ptr %41, align 4, !tbaa !16
  %43 = mul nsw i32 1, %42
  %44 = add nsw i32 1, %43
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds float, ptr %40, i64 %45
  %47 = load float, ptr %46, align 4, !tbaa !11
  %48 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 4
  %49 = load ptr, ptr %48, align 8, !tbaa !13
  %50 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 1
  %51 = load i32, ptr %50, align 4, !tbaa !16
  %52 = mul nsw i32 1, %51
  %53 = add nsw i32 0, %52
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds float, ptr %49, i64 %54
  %56 = load float, ptr %55, align 4, !tbaa !11
  %57 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 4
  %58 = load ptr, ptr %57, align 8, !tbaa !13
  %59 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 1
  %60 = load i32, ptr %59, align 4, !tbaa !16
  %61 = mul nsw i32 0, %60
  %62 = add nsw i32 1, %61
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds float, ptr %58, i64 %63
  %65 = load float, ptr %64, align 4, !tbaa !11
  %66 = fmul float %56, %65
  %67 = fneg float %66
  %68 = call float @llvm.fmuladd.f32(float %38, float %47, float %67)
  store float %68, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %371

69:                                               ; preds = %26
  %70 = load i32, ptr %5, align 4, !tbaa !9
  %71 = icmp eq i32 %70, 3
  br i1 %71, label %72, label %160

72:                                               ; preds = %69
  %73 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 4
  %74 = load ptr, ptr %73, align 8, !tbaa !13
  %75 = getelementptr inbounds float, ptr %74, i64 0
  %76 = load float, ptr %75, align 4, !tbaa !11
  %77 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 4
  %78 = load ptr, ptr %77, align 8, !tbaa !13
  %79 = getelementptr inbounds float, ptr %78, i64 4
  %80 = load float, ptr %79, align 4, !tbaa !11
  %81 = fmul float %76, %80
  %82 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 4
  %83 = load ptr, ptr %82, align 8, !tbaa !13
  %84 = getelementptr inbounds float, ptr %83, i64 8
  %85 = load float, ptr %84, align 4, !tbaa !11
  %86 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 4
  %87 = load ptr, ptr %86, align 8, !tbaa !13
  %88 = getelementptr inbounds float, ptr %87, i64 1
  %89 = load float, ptr %88, align 4, !tbaa !11
  %90 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 4
  %91 = load ptr, ptr %90, align 8, !tbaa !13
  %92 = getelementptr inbounds float, ptr %91, i64 6
  %93 = load float, ptr %92, align 4, !tbaa !11
  %94 = fmul float %89, %93
  %95 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 4
  %96 = load ptr, ptr %95, align 8, !tbaa !13
  %97 = getelementptr inbounds float, ptr %96, i64 5
  %98 = load float, ptr %97, align 4, !tbaa !11
  %99 = fmul float %94, %98
  %100 = call float @llvm.fmuladd.f32(float %81, float %85, float %99)
  %101 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 4
  %102 = load ptr, ptr %101, align 8, !tbaa !13
  %103 = getelementptr inbounds float, ptr %102, i64 2
  %104 = load float, ptr %103, align 4, !tbaa !11
  %105 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 4
  %106 = load ptr, ptr %105, align 8, !tbaa !13
  %107 = getelementptr inbounds float, ptr %106, i64 3
  %108 = load float, ptr %107, align 4, !tbaa !11
  %109 = fmul float %104, %108
  %110 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 4
  %111 = load ptr, ptr %110, align 8, !tbaa !13
  %112 = getelementptr inbounds float, ptr %111, i64 7
  %113 = load float, ptr %112, align 4, !tbaa !11
  %114 = call float @llvm.fmuladd.f32(float %109, float %113, float %100)
  %115 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 4
  %116 = load ptr, ptr %115, align 8, !tbaa !13
  %117 = getelementptr inbounds float, ptr %116, i64 6
  %118 = load float, ptr %117, align 4, !tbaa !11
  %119 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 4
  %120 = load ptr, ptr %119, align 8, !tbaa !13
  %121 = getelementptr inbounds float, ptr %120, i64 4
  %122 = load float, ptr %121, align 4, !tbaa !11
  %123 = fmul float %118, %122
  %124 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 4
  %125 = load ptr, ptr %124, align 8, !tbaa !13
  %126 = getelementptr inbounds float, ptr %125, i64 2
  %127 = load float, ptr %126, align 4, !tbaa !11
  %128 = fneg float %123
  %129 = call float @llvm.fmuladd.f32(float %128, float %127, float %114)
  %130 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 4
  %131 = load ptr, ptr %130, align 8, !tbaa !13
  %132 = getelementptr inbounds float, ptr %131, i64 0
  %133 = load float, ptr %132, align 4, !tbaa !11
  %134 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 4
  %135 = load ptr, ptr %134, align 8, !tbaa !13
  %136 = getelementptr inbounds float, ptr %135, i64 5
  %137 = load float, ptr %136, align 4, !tbaa !11
  %138 = fmul float %133, %137
  %139 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 4
  %140 = load ptr, ptr %139, align 8, !tbaa !13
  %141 = getelementptr inbounds float, ptr %140, i64 7
  %142 = load float, ptr %141, align 4, !tbaa !11
  %143 = fneg float %138
  %144 = call float @llvm.fmuladd.f32(float %143, float %142, float %129)
  %145 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 4
  %146 = load ptr, ptr %145, align 8, !tbaa !13
  %147 = getelementptr inbounds float, ptr %146, i64 1
  %148 = load float, ptr %147, align 4, !tbaa !11
  %149 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 4
  %150 = load ptr, ptr %149, align 8, !tbaa !13
  %151 = getelementptr inbounds float, ptr %150, i64 3
  %152 = load float, ptr %151, align 4, !tbaa !11
  %153 = fmul float %148, %152
  %154 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 4
  %155 = load ptr, ptr %154, align 8, !tbaa !13
  %156 = getelementptr inbounds float, ptr %155, i64 8
  %157 = load float, ptr %156, align 4, !tbaa !11
  %158 = fneg float %153
  %159 = call float @llvm.fmuladd.f32(float %158, float %157, float %144)
  store float %159, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %371

160:                                              ; preds = %69
  %161 = load i32, ptr %5, align 4, !tbaa !9
  %162 = icmp eq i32 %161, 4
  br i1 %162, label %163, label %319

163:                                              ; preds = %160
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %164 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 4
  %165 = load ptr, ptr %164, align 8, !tbaa !13
  %166 = getelementptr inbounds float, ptr %165, i64 5
  %167 = load float, ptr %166, align 4, !tbaa !11
  %168 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 4
  %169 = load ptr, ptr %168, align 8, !tbaa !13
  %170 = getelementptr inbounds float, ptr %169, i64 6
  %171 = load float, ptr %170, align 4, !tbaa !11
  %172 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 4
  %173 = load ptr, ptr %172, align 8, !tbaa !13
  %174 = getelementptr inbounds float, ptr %173, i64 7
  %175 = load float, ptr %174, align 4, !tbaa !11
  %176 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 4
  %177 = load ptr, ptr %176, align 8, !tbaa !13
  %178 = getelementptr inbounds float, ptr %177, i64 9
  %179 = load float, ptr %178, align 4, !tbaa !11
  %180 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 4
  %181 = load ptr, ptr %180, align 8, !tbaa !13
  %182 = getelementptr inbounds float, ptr %181, i64 10
  %183 = load float, ptr %182, align 4, !tbaa !11
  %184 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 4
  %185 = load ptr, ptr %184, align 8, !tbaa !13
  %186 = getelementptr inbounds float, ptr %185, i64 11
  %187 = load float, ptr %186, align 4, !tbaa !11
  %188 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 4
  %189 = load ptr, ptr %188, align 8, !tbaa !13
  %190 = getelementptr inbounds float, ptr %189, i64 13
  %191 = load float, ptr %190, align 4, !tbaa !11
  %192 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 4
  %193 = load ptr, ptr %192, align 8, !tbaa !13
  %194 = getelementptr inbounds float, ptr %193, i64 14
  %195 = load float, ptr %194, align 4, !tbaa !11
  %196 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 4
  %197 = load ptr, ptr %196, align 8, !tbaa !13
  %198 = getelementptr inbounds float, ptr %197, i64 15
  %199 = load float, ptr %198, align 4, !tbaa !11
  %200 = call noundef float @_Z6det3x3fffffffff(float noundef %167, float noundef %171, float noundef %175, float noundef %179, float noundef %183, float noundef %187, float noundef %191, float noundef %195, float noundef %199)
  store float %200, ptr %9, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %201 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 4
  %202 = load ptr, ptr %201, align 8, !tbaa !13
  %203 = getelementptr inbounds float, ptr %202, i64 1
  %204 = load float, ptr %203, align 4, !tbaa !11
  %205 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 4
  %206 = load ptr, ptr %205, align 8, !tbaa !13
  %207 = getelementptr inbounds float, ptr %206, i64 2
  %208 = load float, ptr %207, align 4, !tbaa !11
  %209 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 4
  %210 = load ptr, ptr %209, align 8, !tbaa !13
  %211 = getelementptr inbounds float, ptr %210, i64 3
  %212 = load float, ptr %211, align 4, !tbaa !11
  %213 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 4
  %214 = load ptr, ptr %213, align 8, !tbaa !13
  %215 = getelementptr inbounds float, ptr %214, i64 9
  %216 = load float, ptr %215, align 4, !tbaa !11
  %217 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 4
  %218 = load ptr, ptr %217, align 8, !tbaa !13
  %219 = getelementptr inbounds float, ptr %218, i64 10
  %220 = load float, ptr %219, align 4, !tbaa !11
  %221 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 4
  %222 = load ptr, ptr %221, align 8, !tbaa !13
  %223 = getelementptr inbounds float, ptr %222, i64 11
  %224 = load float, ptr %223, align 4, !tbaa !11
  %225 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 4
  %226 = load ptr, ptr %225, align 8, !tbaa !13
  %227 = getelementptr inbounds float, ptr %226, i64 13
  %228 = load float, ptr %227, align 4, !tbaa !11
  %229 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 4
  %230 = load ptr, ptr %229, align 8, !tbaa !13
  %231 = getelementptr inbounds float, ptr %230, i64 14
  %232 = load float, ptr %231, align 4, !tbaa !11
  %233 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 4
  %234 = load ptr, ptr %233, align 8, !tbaa !13
  %235 = getelementptr inbounds float, ptr %234, i64 15
  %236 = load float, ptr %235, align 4, !tbaa !11
  %237 = call noundef float @_Z6det3x3fffffffff(float noundef %204, float noundef %208, float noundef %212, float noundef %216, float noundef %220, float noundef %224, float noundef %228, float noundef %232, float noundef %236)
  store float %237, ptr %10, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %238 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 4
  %239 = load ptr, ptr %238, align 8, !tbaa !13
  %240 = getelementptr inbounds float, ptr %239, i64 1
  %241 = load float, ptr %240, align 4, !tbaa !11
  %242 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 4
  %243 = load ptr, ptr %242, align 8, !tbaa !13
  %244 = getelementptr inbounds float, ptr %243, i64 2
  %245 = load float, ptr %244, align 4, !tbaa !11
  %246 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 4
  %247 = load ptr, ptr %246, align 8, !tbaa !13
  %248 = getelementptr inbounds float, ptr %247, i64 3
  %249 = load float, ptr %248, align 4, !tbaa !11
  %250 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 4
  %251 = load ptr, ptr %250, align 8, !tbaa !13
  %252 = getelementptr inbounds float, ptr %251, i64 5
  %253 = load float, ptr %252, align 4, !tbaa !11
  %254 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 4
  %255 = load ptr, ptr %254, align 8, !tbaa !13
  %256 = getelementptr inbounds float, ptr %255, i64 6
  %257 = load float, ptr %256, align 4, !tbaa !11
  %258 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 4
  %259 = load ptr, ptr %258, align 8, !tbaa !13
  %260 = getelementptr inbounds float, ptr %259, i64 7
  %261 = load float, ptr %260, align 4, !tbaa !11
  %262 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 4
  %263 = load ptr, ptr %262, align 8, !tbaa !13
  %264 = getelementptr inbounds float, ptr %263, i64 13
  %265 = load float, ptr %264, align 4, !tbaa !11
  %266 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 4
  %267 = load ptr, ptr %266, align 8, !tbaa !13
  %268 = getelementptr inbounds float, ptr %267, i64 14
  %269 = load float, ptr %268, align 4, !tbaa !11
  %270 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 4
  %271 = load ptr, ptr %270, align 8, !tbaa !13
  %272 = getelementptr inbounds float, ptr %271, i64 15
  %273 = load float, ptr %272, align 4, !tbaa !11
  %274 = call noundef float @_Z6det3x3fffffffff(float noundef %241, float noundef %245, float noundef %249, float noundef %253, float noundef %257, float noundef %261, float noundef %265, float noundef %269, float noundef %273)
  store float %274, ptr %11, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %275 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 4
  %276 = load ptr, ptr %275, align 8, !tbaa !13
  %277 = getelementptr inbounds float, ptr %276, i64 1
  %278 = load float, ptr %277, align 4, !tbaa !11
  %279 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 4
  %280 = load ptr, ptr %279, align 8, !tbaa !13
  %281 = getelementptr inbounds float, ptr %280, i64 2
  %282 = load float, ptr %281, align 4, !tbaa !11
  %283 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 4
  %284 = load ptr, ptr %283, align 8, !tbaa !13
  %285 = getelementptr inbounds float, ptr %284, i64 3
  %286 = load float, ptr %285, align 4, !tbaa !11
  %287 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 4
  %288 = load ptr, ptr %287, align 8, !tbaa !13
  %289 = getelementptr inbounds float, ptr %288, i64 5
  %290 = load float, ptr %289, align 4, !tbaa !11
  %291 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 4
  %292 = load ptr, ptr %291, align 8, !tbaa !13
  %293 = getelementptr inbounds float, ptr %292, i64 6
  %294 = load float, ptr %293, align 4, !tbaa !11
  %295 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 4
  %296 = load ptr, ptr %295, align 8, !tbaa !13
  %297 = getelementptr inbounds float, ptr %296, i64 7
  %298 = load float, ptr %297, align 4, !tbaa !11
  %299 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 4
  %300 = load ptr, ptr %299, align 8, !tbaa !13
  %301 = getelementptr inbounds float, ptr %300, i64 9
  %302 = load float, ptr %301, align 4, !tbaa !11
  %303 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 4
  %304 = load ptr, ptr %303, align 8, !tbaa !13
  %305 = getelementptr inbounds float, ptr %304, i64 10
  %306 = load float, ptr %305, align 4, !tbaa !11
  %307 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 4
  %308 = load ptr, ptr %307, align 8, !tbaa !13
  %309 = getelementptr inbounds float, ptr %308, i64 11
  %310 = load float, ptr %309, align 4, !tbaa !11
  %311 = call noundef float @_Z6det3x3fffffffff(float noundef %278, float noundef %282, float noundef %286, float noundef %290, float noundef %294, float noundef %298, float noundef %302, float noundef %306, float noundef %310)
  store float %311, ptr %12, align 4, !tbaa !11
  %312 = load float, ptr %9, align 4, !tbaa !11
  %313 = load float, ptr %10, align 4, !tbaa !11
  %314 = fsub float %312, %313
  %315 = load float, ptr %11, align 4, !tbaa !11
  %316 = fadd float %314, %315
  %317 = load float, ptr %12, align 4, !tbaa !11
  %318 = fsub float %316, %317
  store float %318, ptr %3, align 4
  store i32 1, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %371

319:                                              ; preds = %160
  %320 = load i32, ptr %5, align 4, !tbaa !9
  %321 = icmp sge i32 %320, 5
  br i1 %321, label %322, label %365

322:                                              ; preds = %319
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %323

323:                                              ; preds = %356, %322
  %324 = load i32, ptr %13, align 4, !tbaa !9
  %325 = load i32, ptr %5, align 4, !tbaa !9
  %326 = icmp slt i32 %324, %325
  br i1 %326, label %328, label %327

327:                                              ; preds = %323
  store i32 2, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %363

328:                                              ; preds = %323
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %329 = load i32, ptr %5, align 4, !tbaa !9
  %330 = sub nsw i32 %329, 1
  store i32 %330, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #5
  %331 = load i32, ptr %14, align 4, !tbaa !9
  %332 = load i32, ptr %14, align 4, !tbaa !9
  call void @_ZN6MatrixC1Eii(ptr noundef nonnull align 8 dereferenceable(24) %15, i32 noundef %331, i32 noundef %332)
  %333 = load i32, ptr %5, align 4, !tbaa !9
  %334 = load i32, ptr %13, align 4, !tbaa !9
  call void @_ZN6Matrix10Get_matrixEiRS_ii(ptr noundef nonnull align 8 dereferenceable(24) %18, i32 noundef %333, ptr noundef nonnull align 8 dereferenceable(24) %15, i32 noundef 0, i32 noundef %334)
  %335 = load i32, ptr %7, align 4, !tbaa !9
  %336 = sitofp i32 %335 to float
  %337 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 4
  %338 = load ptr, ptr %337, align 8, !tbaa !13
  %339 = load i32, ptr %13, align 4, !tbaa !9
  %340 = getelementptr inbounds %class.Matrix, ptr %18, i32 0, i32 1
  %341 = load i32, ptr %340, align 4, !tbaa !16
  %342 = mul nsw i32 0, %341
  %343 = add nsw i32 %339, %342
  %344 = sext i32 %343 to i64
  %345 = getelementptr inbounds float, ptr %338, i64 %344
  %346 = load float, ptr %345, align 4, !tbaa !11
  %347 = fmul float %336, %346
  %348 = load i32, ptr %14, align 4, !tbaa !9
  %349 = invoke noundef float @_ZN6Matrix3detEi(ptr noundef nonnull align 8 dereferenceable(24) %15, i32 noundef %348)
          to label %350 unwind label %359

350:                                              ; preds = %328
  %351 = load float, ptr %6, align 4, !tbaa !11
  %352 = call float @llvm.fmuladd.f32(float %347, float %349, float %351)
  store float %352, ptr %6, align 4, !tbaa !11
  %353 = load i32, ptr %7, align 4, !tbaa !9
  %354 = load i32, ptr %7, align 4, !tbaa !9
  %355 = sub nsw i32 %354, %353
  store i32 %355, ptr %7, align 4, !tbaa !9
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %356

356:                                              ; preds = %350
  %357 = load i32, ptr %13, align 4, !tbaa !9
  %358 = add nsw i32 %357, 1
  store i32 %358, ptr %13, align 4, !tbaa !9
  br label %323, !llvm.loop !17

359:                                              ; preds = %328
  %360 = landingpad { ptr, i32 }
          cleanup
  %361 = extractvalue { ptr, i32 } %360, 0
  store ptr %361, ptr %16, align 8
  %362 = extractvalue { ptr, i32 } %360, 1
  store i32 %362, ptr %17, align 4
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %373

363:                                              ; preds = %327
  %364 = load float, ptr %6, align 4, !tbaa !11
  store float %364, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %371

365:                                              ; preds = %319
  br label %366

366:                                              ; preds = %365
  br label %367

367:                                              ; preds = %366
  br label %368

368:                                              ; preds = %367
  br label %369

369:                                              ; preds = %368
  %370 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.27)
  store float 0.000000e+00, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %371

371:                                              ; preds = %369, %363, %163, %72, %29, %21
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  %372 = load float, ptr %3, align 4
  ret float %372

373:                                              ; preds = %359
  %374 = load ptr, ptr %16, align 8
  %375 = load i32, ptr %17, align 4
  %376 = insertvalue { ptr, i32 } poison, ptr %374, 0
  %377 = insertvalue { ptr, i32 } %376, i32 %375, 1
  resume { ptr, i32 } %377
}

declare void @_ZN6MatrixC1Eii(ptr, i32, i32)

declare void @_ZN6MatrixD1Ev(ptr)

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

!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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !6, i64 16}
!14 = !{!"_ZTS6Matrix", !10, i64 0, !10, i64 4, !15, i64 8, !15, i64 9, !6, i64 16}
!15 = !{!"bool", !7, i64 0}
!16 = !{!14, !10, i64 4}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}


; 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.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%class.Matrix = type { i32, i32, i8, i8, ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.27 = external hidden unnamed_addr constant [13 x i8], align 1

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_Z6det3x3fffffffff(float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local noundef float @_ZN6Matrix3detEi(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %1) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %class.Matrix, align 8
  switch i32 %1, label %144 [
    i32 1, label %4
    i32 2, label %8
    i32 3, label %24
    i32 4, label %59
  ]

4:                                                ; preds = %2
  %5 = getelementptr inbounds i8, ptr %0, i64 16
  %6 = load ptr, ptr %5, align 8, !tbaa !5
  %7 = load float, ptr %6, align 4, !tbaa !12
  br label %.loopexit

8:                                                ; preds = %2
  %9 = getelementptr inbounds i8, ptr %0, i64 16
  %10 = load ptr, ptr %9, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %0, i64 4
  %12 = load i32, ptr %11, align 4, !tbaa !14
  %13 = load float, ptr %10, align 4, !tbaa !12
  %14 = sext i32 %12 to i64
  %15 = getelementptr float, ptr %10, i64 %14
  %16 = getelementptr i8, ptr %15, i64 4
  %17 = load float, ptr %16, align 4, !tbaa !12
  %18 = load float, ptr %15, align 4, !tbaa !12
  %19 = getelementptr inbounds i8, ptr %10, i64 4
  %20 = load float, ptr %19, align 4, !tbaa !12
  %21 = fneg float %18
  %22 = fmul float %20, %21
  %23 = tail call float @llvm.fmuladd.f32(float %13, float %17, float %22)
  br label %.loopexit

24:                                               ; preds = %2
  %25 = getelementptr inbounds i8, ptr %0, i64 16
  %26 = load ptr, ptr %25, align 8, !tbaa !5
  %27 = load float, ptr %26, align 4, !tbaa !12
  %28 = getelementptr inbounds i8, ptr %26, i64 16
  %29 = load float, ptr %28, align 4, !tbaa !12
  %30 = fmul float %27, %29
  %31 = getelementptr inbounds i8, ptr %26, i64 32
  %32 = load float, ptr %31, align 4, !tbaa !12
  %33 = getelementptr inbounds i8, ptr %26, i64 4
  %34 = load float, ptr %33, align 4, !tbaa !12
  %35 = getelementptr inbounds i8, ptr %26, i64 24
  %36 = load float, ptr %35, align 4, !tbaa !12
  %37 = fmul float %34, %36
  %38 = getelementptr inbounds i8, ptr %26, i64 20
  %39 = load float, ptr %38, align 4, !tbaa !12
  %40 = fmul float %37, %39
  %41 = tail call float @llvm.fmuladd.f32(float %30, float %32, float %40)
  %42 = getelementptr inbounds i8, ptr %26, i64 8
  %43 = load float, ptr %42, align 4, !tbaa !12
  %44 = getelementptr inbounds i8, ptr %26, i64 12
  %45 = load float, ptr %44, align 4, !tbaa !12
  %46 = fmul float %43, %45
  %47 = getelementptr inbounds i8, ptr %26, i64 28
  %48 = load float, ptr %47, align 4, !tbaa !12
  %49 = tail call float @llvm.fmuladd.f32(float %46, float %48, float %41)
  %50 = fneg float %36
  %51 = fmul float %29, %50
  %52 = tail call float @llvm.fmuladd.f32(float %51, float %43, float %49)
  %53 = fneg float %27
  %54 = fmul float %39, %53
  %55 = tail call float @llvm.fmuladd.f32(float %54, float %48, float %52)
  %56 = fneg float %34
  %57 = fmul float %45, %56
  %58 = tail call float @llvm.fmuladd.f32(float %57, float %32, float %55)
  br label %.loopexit

59:                                               ; preds = %2
  %60 = getelementptr inbounds i8, ptr %0, i64 16
  %61 = load ptr, ptr %60, align 8, !tbaa !5
  %62 = getelementptr inbounds i8, ptr %61, i64 20
  %63 = load float, ptr %62, align 4, !tbaa !12
  %64 = getelementptr inbounds i8, ptr %61, i64 24
  %65 = load float, ptr %64, align 4, !tbaa !12
  %66 = getelementptr inbounds i8, ptr %61, i64 28
  %67 = load float, ptr %66, align 4, !tbaa !12
  %68 = getelementptr inbounds i8, ptr %61, i64 36
  %69 = load float, ptr %68, align 4, !tbaa !12
  %70 = getelementptr inbounds i8, ptr %61, i64 40
  %71 = load float, ptr %70, align 4, !tbaa !12
  %72 = getelementptr inbounds i8, ptr %61, i64 44
  %73 = load float, ptr %72, align 4, !tbaa !12
  %74 = getelementptr inbounds i8, ptr %61, i64 52
  %75 = load float, ptr %74, align 4, !tbaa !12
  %76 = getelementptr inbounds i8, ptr %61, i64 56
  %77 = load float, ptr %76, align 4, !tbaa !12
  %78 = getelementptr inbounds i8, ptr %61, i64 60
  %79 = load float, ptr %78, align 4, !tbaa !12
  %80 = tail call noundef float @_Z6det3x3fffffffff(float noundef %63, float noundef %65, float noundef %67, float noundef %69, float noundef %71, float noundef %73, float noundef %75, float noundef %77, float noundef %79)
  %81 = load ptr, ptr %60, align 8, !tbaa !5
  %82 = getelementptr inbounds i8, ptr %81, i64 4
  %83 = load float, ptr %82, align 4, !tbaa !12
  %84 = getelementptr inbounds i8, ptr %81, i64 8
  %85 = load float, ptr %84, align 4, !tbaa !12
  %86 = getelementptr inbounds i8, ptr %81, i64 12
  %87 = load float, ptr %86, align 4, !tbaa !12
  %88 = getelementptr inbounds i8, ptr %81, i64 36
  %89 = load float, ptr %88, align 4, !tbaa !12
  %90 = getelementptr inbounds i8, ptr %81, i64 40
  %91 = load float, ptr %90, align 4, !tbaa !12
  %92 = getelementptr inbounds i8, ptr %81, i64 44
  %93 = load float, ptr %92, align 4, !tbaa !12
  %94 = getelementptr inbounds i8, ptr %81, i64 52
  %95 = load float, ptr %94, align 4, !tbaa !12
  %96 = getelementptr inbounds i8, ptr %81, i64 56
  %97 = load float, ptr %96, align 4, !tbaa !12
  %98 = getelementptr inbounds i8, ptr %81, i64 60
  %99 = load float, ptr %98, align 4, !tbaa !12
  %100 = tail call noundef float @_Z6det3x3fffffffff(float noundef %83, float noundef %85, float noundef %87, float noundef %89, float noundef %91, float noundef %93, float noundef %95, float noundef %97, float noundef %99)
  %101 = load ptr, ptr %60, align 8, !tbaa !5
  %102 = getelementptr inbounds i8, ptr %101, i64 4
  %103 = load float, ptr %102, align 4, !tbaa !12
  %104 = getelementptr inbounds i8, ptr %101, i64 8
  %105 = load float, ptr %104, align 4, !tbaa !12
  %106 = getelementptr inbounds i8, ptr %101, i64 12
  %107 = load float, ptr %106, align 4, !tbaa !12
  %108 = getelementptr inbounds i8, ptr %101, i64 20
  %109 = load float, ptr %108, align 4, !tbaa !12
  %110 = getelementptr inbounds i8, ptr %101, i64 24
  %111 = load float, ptr %110, align 4, !tbaa !12
  %112 = getelementptr inbounds i8, ptr %101, i64 28
  %113 = load float, ptr %112, align 4, !tbaa !12
  %114 = getelementptr inbounds i8, ptr %101, i64 52
  %115 = load float, ptr %114, align 4, !tbaa !12
  %116 = getelementptr inbounds i8, ptr %101, i64 56
  %117 = load float, ptr %116, align 4, !tbaa !12
  %118 = getelementptr inbounds i8, ptr %101, i64 60
  %119 = load float, ptr %118, align 4, !tbaa !12
  %120 = tail call noundef float @_Z6det3x3fffffffff(float noundef %103, float noundef %105, float noundef %107, float noundef %109, float noundef %111, float noundef %113, float noundef %115, float noundef %117, float noundef %119)
  %121 = load ptr, ptr %60, align 8, !tbaa !5
  %122 = getelementptr inbounds i8, ptr %121, i64 4
  %123 = load float, ptr %122, align 4, !tbaa !12
  %124 = getelementptr inbounds i8, ptr %121, i64 8
  %125 = load float, ptr %124, align 4, !tbaa !12
  %126 = getelementptr inbounds i8, ptr %121, i64 12
  %127 = load float, ptr %126, align 4, !tbaa !12
  %128 = getelementptr inbounds i8, ptr %121, i64 20
  %129 = load float, ptr %128, align 4, !tbaa !12
  %130 = getelementptr inbounds i8, ptr %121, i64 24
  %131 = load float, ptr %130, align 4, !tbaa !12
  %132 = getelementptr inbounds i8, ptr %121, i64 28
  %133 = load float, ptr %132, align 4, !tbaa !12
  %134 = getelementptr inbounds i8, ptr %121, i64 36
  %135 = load float, ptr %134, align 4, !tbaa !12
  %136 = getelementptr inbounds i8, ptr %121, i64 40
  %137 = load float, ptr %136, align 4, !tbaa !12
  %138 = getelementptr inbounds i8, ptr %121, i64 44
  %139 = load float, ptr %138, align 4, !tbaa !12
  %140 = tail call noundef float @_Z6det3x3fffffffff(float noundef %123, float noundef %125, float noundef %127, float noundef %129, float noundef %131, float noundef %133, float noundef %135, float noundef %137, float noundef %139)
  %141 = fsub float %80, %100
  %142 = fadd float %141, %120
  %143 = fsub float %142, %140
  br label %.loopexit

144:                                              ; preds = %2
  %145 = icmp sgt i32 %1, 4
  br i1 %145, label %.preheader, label %162

.preheader:                                       ; preds = %144
  %146 = add nsw i32 %1, -1
  %147 = getelementptr inbounds i8, ptr %0, i64 16
  %wide.trip.count = zext nneg i32 %1 to i64
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #5
  call void @_ZN6MatrixC1Eii(ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef %146, i32 noundef %146)
  call void @_ZN6Matrix10Get_matrixEiRS_ii(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %1, ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef 0, i32 noundef 0)
  %148 = load ptr, ptr %147, align 8, !tbaa !5
  %149 = load float, ptr %148, align 4, !tbaa !12
  %150 = invoke noundef float @_ZN6Matrix3detEi(ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef %146)
          to label %.peel.next unwind label %.loopexit.split-lp

.peel.next:                                       ; preds = %.preheader
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #5
  %151 = call float @llvm.fmuladd.f32(float %149, float %150, float 0.000000e+00)
  br label %152

152:                                              ; preds = %.peel.next, %158
  %indvars.iv = phi i64 [ 1, %.peel.next ], [ %indvars.iv.next, %158 ]
  %.02734 = phi float [ %151, %.peel.next ], [ %160, %158 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #5
  call void @_ZN6MatrixC1Eii(ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef %146, i32 noundef %146)
  %153 = trunc nuw nsw i64 %indvars.iv to i32
  call void @_ZN6Matrix10Get_matrixEiRS_ii(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %1, ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef 0, i32 noundef %153)
  %154 = load ptr, ptr %147, align 8, !tbaa !5
  %155 = getelementptr inbounds float, ptr %154, i64 %indvars.iv
  %156 = load float, ptr %155, align 4, !tbaa !12
  %157 = invoke noundef float @_ZN6Matrix3detEi(ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef %146)
          to label %158 unwind label %.loopexit37

158:                                              ; preds = %152
  %159 = fmul float %156, 0.000000e+00
  %160 = call float @llvm.fmuladd.f32(float %159, float %157, float %.02734)
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit, label %152, !llvm.loop !15

.loopexit37:                                      ; preds = %152
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %161

.loopexit.split-lp:                               ; preds = %.preheader
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %161

161:                                              ; preds = %.loopexit.split-lp, %.loopexit37
  %lpad.phi = phi { ptr, i32 } [ %lpad.loopexit, %.loopexit37 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZN6MatrixD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #5
  resume { ptr, i32 } %lpad.phi

162:                                              ; preds = %144
  %163 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.27)
  br label %.loopexit

.loopexit:                                        ; preds = %158, %162, %59, %24, %8, %4
  %.0 = phi float [ %7, %4 ], [ %23, %8 ], [ %58, %24 ], [ %143, %59 ], [ 0.000000e+00, %162 ], [ %160, %158 ]
  ret float %.0
}

declare void @_ZN6MatrixC1Eii(ptr, i32, i32) local_unnamed_addr

declare void @_ZN6MatrixD1Ev(ptr) local_unnamed_addr

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

!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, !11, i64 16}
!6 = !{!"_ZTS6Matrix", !7, i64 0, !7, i64 4, !10, i64 8, !10, i64 9, !11, i64 16}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"float", !8, i64 0}
!14 = !{!6, !7, i64 4}
!15 = distinct !{!15, !16, !17}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!"llvm.loop.peeled.count", i32 1}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopFullUnrollPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass